WooCommerce - Version 5.4.0-rc.1

Version Description

Download this release

Release Info

Developer obliviousharmony
Plugin Icon 128x128 WooCommerce
Version 5.4.0-rc.1
Comparing to
See all releases

Code changes from version 5.4.0-beta.1 to 5.4.0-rc.1

Files changed (40) hide show
  1. assets/js/admin/settings.js +1 -1
  2. assets/js/admin/settings.min.js +1 -1
  3. assets/js/frontend/cart-fragments.js +1 -1
  4. assets/js/frontend/cart-fragments.min.js +1 -1
  5. assets/js/frontend/price-slider.js +1 -1
  6. assets/js/frontend/price-slider.min.js +1 -1
  7. i18n/languages/woocommerce.pot +428 -399
  8. includes/class-wc-post-types.php +20 -12
  9. includes/class-woocommerce.php +13 -0
  10. includes/customizer/class-wc-shop-customizer.php +4 -15
  11. includes/theme-support/class-wc-twenty-eleven.php +2 -3
  12. includes/theme-support/class-wc-twenty-fifteen.php +2 -3
  13. includes/theme-support/class-wc-twenty-fourteen.php +2 -3
  14. includes/theme-support/class-wc-twenty-nineteen.php +2 -2
  15. includes/theme-support/class-wc-twenty-seventeen.php +2 -2
  16. includes/theme-support/class-wc-twenty-sixteen.php +2 -3
  17. includes/theme-support/class-wc-twenty-ten.php +2 -3
  18. includes/theme-support/class-wc-twenty-thirteen.php +2 -3
  19. includes/theme-support/class-wc-twenty-twelve.php +2 -3
  20. includes/theme-support/class-wc-twenty-twenty-one.php +2 -2
  21. includes/theme-support/class-wc-twenty-twenty.php +2 -2
  22. includes/wc-core-functions.php +32 -2
  23. packages/woocommerce-admin/dist/app/index.asset.php +1 -1
  24. packages/woocommerce-admin/dist/app/index.js +1 -1
  25. packages/woocommerce-admin/dist/chunks/0.js +1 -1
  26. packages/woocommerce-admin/dist/chunks/1.js +1 -1
  27. packages/woocommerce-admin/dist/chunks/2.js +1 -1
  28. packages/woocommerce-admin/dist/chunks/3.js +1 -1
  29. packages/woocommerce-admin/dist/chunks/4.js +1 -1
  30. packages/woocommerce-admin/dist/chunks/47.style.css +1 -1
  31. packages/woocommerce-admin/dist/chunks/47.style.rtl.css +1 -1
  32. packages/woocommerce-admin/dist/chunks/5.js +1 -1
  33. packages/woocommerce-admin/dist/chunks/55.js +1 -1
  34. packages/woocommerce-admin/dist/chunks/56.js +1 -1
  35. packages/woocommerce-admin/dist/chunks/57.js +1 -1
  36. packages/woocommerce-admin/dist/chunks/6.js +1 -1
  37. packages/woocommerce-admin/dist/chunks/activity-panels-help.js +1 -1
  38. packages/woocommerce-admin/dist/chunks/activity-panels-inbox.js +1 -1
  39. packages/woocommerce-admin/dist/chunks/analytics-report-categories.js +1 -1
  40. packages/woocommerce-admin/dist/chunks/analytics-report-coupons.js +0 -1
assets/js/admin/settings.js CHANGED
@@ -110,7 +110,7 @@
110
 
111
  // Select all/none
112
  $( '.woocommerce' ).on( 'click', '.select_all', function() {
113
- $( this ).closest( 'td' ).find( 'select option' ).attr( 'selected', 'selected' );
114
  $( this ).closest( 'td' ).find( 'select' ).trigger( 'change' );
115
  return false;
116
  });
110
 
111
  // Select all/none
112
  $( '.woocommerce' ).on( 'click', '.select_all', function() {
113
+ $( this ).closest( 'td' ).find( 'select option' ).prop( 'selected', true );
114
  $( this ).closest( 'td' ).find( 'select' ).trigger( 'change' );
115
  return false;
116
  });
assets/js/admin/settings.min.js CHANGED
@@ -1 +1 @@
1
- !function(n,c,s){n(function(){n("select#woocommerce_allowed_countries").on("change",function(){"specific"===n(this).val()?(n(this).closest("tr").next("tr").hide(),n(this).closest("tr").next().next("tr").show()):("all_except"===n(this).val()?n(this).closest("tr").next("tr").show():n(this).closest("tr").next("tr").hide(),n(this).closest("tr").next().next("tr").hide())}).trigger("change"),n("select#woocommerce_ship_to_countries").on("change",function(){"specific"===n(this).val()?n(this).closest("tr").next("tr").show():n(this).closest("tr").next("tr").hide()}).trigger("change"),n("input#woocommerce_manage_stock").on("change",function(){n(this).is(":checked")?n(this).closest("tbody").find(".manage_stock_field").closest("tr").show():n(this).closest("tbody").find(".manage_stock_field").closest("tr").hide()}).trigger("change"),n(".colorpick").iris({change:function(e,t){n(this).parent().find(".colorpickpreview").css({backgroundColor:t.color.toString()})},hide:!0,border:!0}).on("click focus",function(e){e.stopPropagation(),n(".iris-picker").hide(),n(this).closest("td").find(".iris-picker").show(),n(this).data("originalValue",n(this).val())}).on("change",function(){n(this).is(".iris-error")&&(n(this).data("originalValue").match(/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)?n(this).val(n(this).data("originalValue")):n(this).val("")).trigger("change")}),n("body").on("click",function(){n(".iris-picker").hide()}),n(function(){var e=!1;n("input, textarea, select, checkbox").on("change",function(){e||(window.onbeforeunload=function(){return c.i18n_nav_warning},e=!0)}),n(".submit :input").on("click",function(){window.onbeforeunload=""})}),n("table.wc_gateways tbody, table.wc_shipping tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,helper:function(e,t){return t.children().each(function(){n(this).width(n(this).width())}),t.css("left","0"),t},start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style"),t.item.trigger("updateMoveButtons")}}),n(".woocommerce").on("click",".select_all",function(){return n(this).closest("td").find("select option").attr("selected","selected"),n(this).closest("td").find("select").trigger("change"),!1}),n(".woocommerce").on("click",".select_none",function(){return n(this).closest("td").find("select option").prop("selected",!1),n(this).closest("td").find("select").trigger("change"),!1}),n(".wc-item-reorder-nav").find(".wc-move-up, .wc-move-down").on("click",function(){var e=n(this),t=e.closest("tr");e.trigger("focus");var i=e.is(".wc-move-up"),o=e.is(".wc-move-down");i?(i=t.prev("tr"))&&i.length&&(i.before(t),s.a11y.speak(c.i18n_moved_up)):!o||(o=t.next("tr"))&&o.length&&(o.after(t),s.a11y.speak(c.i18n_moved_down)),e.trigger("focus"),e.closest("table").trigger("updateMoveButtons")}),n(".wc-item-reorder-nav").closest("table").on("updateMoveButtons",function(){var e=n(this),t=n(this).find("tbody tr:last"),i=n(this).find("tbody tr:first");e.find(".wc-item-reorder-nav .wc-move-disabled").removeClass("wc-move-disabled").attr({tabindex:"0","aria-hidden":"false"}),i.find(".wc-item-reorder-nav .wc-move-up").addClass("wc-move-disabled").attr({tabindex:"-1","aria-hidden":"true"}),t.find(".wc-item-reorder-nav .wc-move-down").addClass("wc-move-disabled").attr({tabindex:"-1","aria-hidden":"true"})}),n(".wc-item-reorder-nav").closest("table").trigger("updateMoveButtons"),n(".submit button").on("click",function(){if("specific"===n("select#woocommerce_allowed_countries").val()&&!n('[name="woocommerce_specific_allowed_countries[]"]').val())return!!window.confirm(woocommerce_settings_params.i18n_no_specific_countries_selected)})})}(jQuery,woocommerce_settings_params,wp);
1
+ !function(n,c,s){n(function(){n("select#woocommerce_allowed_countries").on("change",function(){"specific"===n(this).val()?(n(this).closest("tr").next("tr").hide(),n(this).closest("tr").next().next("tr").show()):("all_except"===n(this).val()?n(this).closest("tr").next("tr").show():n(this).closest("tr").next("tr").hide(),n(this).closest("tr").next().next("tr").hide())}).trigger("change"),n("select#woocommerce_ship_to_countries").on("change",function(){"specific"===n(this).val()?n(this).closest("tr").next("tr").show():n(this).closest("tr").next("tr").hide()}).trigger("change"),n("input#woocommerce_manage_stock").on("change",function(){n(this).is(":checked")?n(this).closest("tbody").find(".manage_stock_field").closest("tr").show():n(this).closest("tbody").find(".manage_stock_field").closest("tr").hide()}).trigger("change"),n(".colorpick").iris({change:function(e,t){n(this).parent().find(".colorpickpreview").css({backgroundColor:t.color.toString()})},hide:!0,border:!0}).on("click focus",function(e){e.stopPropagation(),n(".iris-picker").hide(),n(this).closest("td").find(".iris-picker").show(),n(this).data("originalValue",n(this).val())}).on("change",function(){n(this).is(".iris-error")&&(n(this).data("originalValue").match(/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)?n(this).val(n(this).data("originalValue")):n(this).val("")).trigger("change")}),n("body").on("click",function(){n(".iris-picker").hide()}),n(function(){var e=!1;n("input, textarea, select, checkbox").on("change",function(){e||(window.onbeforeunload=function(){return c.i18n_nav_warning},e=!0)}),n(".submit :input").on("click",function(){window.onbeforeunload=""})}),n("table.wc_gateways tbody, table.wc_shipping tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,helper:function(e,t){return t.children().each(function(){n(this).width(n(this).width())}),t.css("left","0"),t},start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style"),t.item.trigger("updateMoveButtons")}}),n(".woocommerce").on("click",".select_all",function(){return n(this).closest("td").find("select option").prop("selected",!0),n(this).closest("td").find("select").trigger("change"),!1}),n(".woocommerce").on("click",".select_none",function(){return n(this).closest("td").find("select option").prop("selected",!1),n(this).closest("td").find("select").trigger("change"),!1}),n(".wc-item-reorder-nav").find(".wc-move-up, .wc-move-down").on("click",function(){var e=n(this),t=e.closest("tr");e.trigger("focus");var i=e.is(".wc-move-up"),o=e.is(".wc-move-down");i?(i=t.prev("tr"))&&i.length&&(i.before(t),s.a11y.speak(c.i18n_moved_up)):!o||(o=t.next("tr"))&&o.length&&(o.after(t),s.a11y.speak(c.i18n_moved_down)),e.trigger("focus"),e.closest("table").trigger("updateMoveButtons")}),n(".wc-item-reorder-nav").closest("table").on("updateMoveButtons",function(){var e=n(this),t=n(this).find("tbody tr:last"),i=n(this).find("tbody tr:first");e.find(".wc-item-reorder-nav .wc-move-disabled").removeClass("wc-move-disabled").attr({tabindex:"0","aria-hidden":"false"}),i.find(".wc-item-reorder-nav .wc-move-up").addClass("wc-move-disabled").attr({tabindex:"-1","aria-hidden":"true"}),t.find(".wc-item-reorder-nav .wc-move-down").addClass("wc-move-disabled").attr({tabindex:"-1","aria-hidden":"true"})}),n(".wc-item-reorder-nav").closest("table").trigger("updateMoveButtons"),n(".submit button").on("click",function(){if("specific"===n("select#woocommerce_allowed_countries").val()&&!n('[name="woocommerce_specific_allowed_countries[]"]').val())return!!window.confirm(woocommerce_settings_params.i18n_no_specific_countries_selected)})})}(jQuery,woocommerce_settings_params,wp);
assets/js/frontend/cart-fragments.js CHANGED
@@ -180,7 +180,7 @@ jQuery( function( $ ) {
180
  wp.customize.widgetsPreview.WidgetPartial
181
  );
182
  if ( hasSelectiveRefresh ) {
183
- wp.customize.selectiveRefresh.on( 'partial-content-rendered', function() {
184
  refresh_cart_fragment();
185
  } );
186
  }
180
  wp.customize.widgetsPreview.WidgetPartial
181
  );
182
  if ( hasSelectiveRefresh ) {
183
+ wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function() {
184
  refresh_cart_fragment();
185
  } );
186
  }
assets/js/frontend/cart-fragments.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(r){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,o=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(w){t=!1}function a(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function s(e){t&&(localStorage.setItem(o,e),sessionStorage.setItem(o,e))}var e={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(e){e&&e.fragments&&(r.each(e.fragments,function(e,t){r(e).replaceWith(t)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(e.fragments)),s(e.cart_hash),e.cart_hash&&a()),r(document.body).trigger("wc_fragments_refreshed"))},error:function(){r(document.body).trigger("wc_fragments_ajax_error")}};function n(){r.ajax(e)}if(t){var i=null;r(document.body).on("wc_fragment_refresh updated_wc_div",function(){n()}),r(document.body).on("added_to_cart removed_from_cart",function(e,t,r){var n=sessionStorage.getItem(o);null!==n&&n!==undefined&&""!==n||a(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),s(r)}),r(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(n,864e5)}),r(window).on("storage onstorage",function(e){o===e.originalEvent.key&&localStorage.getItem(o)!==sessionStorage.getItem(o)&&n()}),r(window).on("pageshow",function(e){e.originalEvent.persisted&&(r(".widget_shopping_cart_content").empty(),r(document.body).trigger("wc_fragment_refresh"))});try{var c=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(o),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=+m+864e5,m=(new Date).getTime();if(d<m)throw"Fragment expired";i=setTimeout(n,d-m)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";r.each(c,function(e,t){r(e).replaceWith(t)}),r(document.body).trigger("wc_fragments_loaded")}catch(w){n()}}else n();0<Cookies.get("woocommerce_items_in_cart")?r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),r(document.body).on("adding_to_cart",function(){r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.on("partial-content-rendered",function(){n()})});
1
+ jQuery(function(r){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,o=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(w){t=!1}function a(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function s(e){t&&(localStorage.setItem(o,e),sessionStorage.setItem(o,e))}var e={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(e){e&&e.fragments&&(r.each(e.fragments,function(e,t){r(e).replaceWith(t)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(e.fragments)),s(e.cart_hash),e.cart_hash&&a()),r(document.body).trigger("wc_fragments_refreshed"))},error:function(){r(document.body).trigger("wc_fragments_ajax_error")}};function n(){r.ajax(e)}if(t){var i=null;r(document.body).on("wc_fragment_refresh updated_wc_div",function(){n()}),r(document.body).on("added_to_cart removed_from_cart",function(e,t,r){var n=sessionStorage.getItem(o);null!==n&&n!==undefined&&""!==n||a(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),s(r)}),r(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(n,864e5)}),r(window).on("storage onstorage",function(e){o===e.originalEvent.key&&localStorage.getItem(o)!==sessionStorage.getItem(o)&&n()}),r(window).on("pageshow",function(e){e.originalEvent.persisted&&(r(".widget_shopping_cart_content").empty(),r(document.body).trigger("wc_fragment_refresh"))});try{var c=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(o),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=+m+864e5,m=(new Date).getTime();if(d<m)throw"Fragment expired";i=setTimeout(n,d-m)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";r.each(c,function(e,t){r(e).replaceWith(t)}),r(document.body).trigger("wc_fragments_loaded")}catch(w){n()}}else n();0<Cookies.get("woocommerce_items_in_cart")?r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),r(document.body).on("adding_to_cart",function(){r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){n()})});
assets/js/frontend/price-slider.js CHANGED
@@ -76,7 +76,7 @@ jQuery( function( $ ) {
76
  wp.customize.widgetsPreview.WidgetPartial
77
  );
78
  if ( hasSelectiveRefresh ) {
79
- wp.customize.selectiveRefresh.on( 'partial-content-rendered', function() {
80
  init_price_filter();
81
  } );
82
  }
76
  wp.customize.widgetsPreview.WidgetPartial
77
  );
78
  if ( hasSelectiveRefresh ) {
79
+ wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function() {
80
  init_price_filter();
81
  } );
82
  }
assets/js/frontend/price-slider.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(_){return"undefined"!=typeof woocommerce_price_slider_params&&(_(document.body).on("price_slider_create price_slider_slide",function(e,r,i){_(".price_slider_amount span.from").html(accounting.formatMoney(r,{symbol:woocommerce_price_slider_params.currency_format_symbol,decimal:woocommerce_price_slider_params.currency_format_decimal_sep,thousand:woocommerce_price_slider_params.currency_format_thousand_sep,precision:woocommerce_price_slider_params.currency_format_num_decimals,format:woocommerce_price_slider_params.currency_format})),_(".price_slider_amount span.to").html(accounting.formatMoney(i,{symbol:woocommerce_price_slider_params.currency_format_symbol,decimal:woocommerce_price_slider_params.currency_format_decimal_sep,thousand:woocommerce_price_slider_params.currency_format_thousand_sep,precision:woocommerce_price_slider_params.currency_format_num_decimals,format:woocommerce_price_slider_params.currency_format})),_(document.body).trigger("price_slider_updated",[r,i])}),e(),_(document.body).on("init_price_filter",e),void("undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.on("partial-content-rendered",function(){e()})));function e(){_("input#min_price, input#max_price").hide(),_(".price_slider, .price_label").show();var e=_(".price_slider_amount #min_price").data("min"),r=_(".price_slider_amount #max_price").data("max"),i=_(".price_slider_amount").data("step")||1,c=_(".price_slider_amount #min_price").val(),o=_(".price_slider_amount #max_price").val();_(".price_slider:not(.ui-slider)").slider({range:!0,animate:!0,min:e,max:r,step:i,values:[c,o],create:function(){_(".price_slider_amount #min_price").val(c),_(".price_slider_amount #max_price").val(o),_(document.body).trigger("price_slider_create",[c,o])},slide:function(e,r){_("input#min_price").val(r.values[0]),_("input#max_price").val(r.values[1]),_(document.body).trigger("price_slider_slide",[r.values[0],r.values[1]])},change:function(e,r){_(document.body).trigger("price_slider_change",[r.values[0],r.values[1]])}})}});
1
+ jQuery(function(_){return"undefined"!=typeof woocommerce_price_slider_params&&(_(document.body).on("price_slider_create price_slider_slide",function(e,r,i){_(".price_slider_amount span.from").html(accounting.formatMoney(r,{symbol:woocommerce_price_slider_params.currency_format_symbol,decimal:woocommerce_price_slider_params.currency_format_decimal_sep,thousand:woocommerce_price_slider_params.currency_format_thousand_sep,precision:woocommerce_price_slider_params.currency_format_num_decimals,format:woocommerce_price_slider_params.currency_format})),_(".price_slider_amount span.to").html(accounting.formatMoney(i,{symbol:woocommerce_price_slider_params.currency_format_symbol,decimal:woocommerce_price_slider_params.currency_format_decimal_sep,thousand:woocommerce_price_slider_params.currency_format_thousand_sep,precision:woocommerce_price_slider_params.currency_format_num_decimals,format:woocommerce_price_slider_params.currency_format})),_(document.body).trigger("price_slider_updated",[r,i])}),e(),_(document.body).on("init_price_filter",e),void("undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){e()})));function e(){_("input#min_price, input#max_price").hide(),_(".price_slider, .price_label").show();var e=_(".price_slider_amount #min_price").data("min"),r=_(".price_slider_amount #max_price").data("max"),i=_(".price_slider_amount").data("step")||1,c=_(".price_slider_amount #min_price").val(),o=_(".price_slider_amount #max_price").val();_(".price_slider:not(.ui-slider)").slider({range:!0,animate:!0,min:e,max:r,step:i,values:[c,o],create:function(){_(".price_slider_amount #min_price").val(c),_(".price_slider_amount #max_price").val(o),_(document.body).trigger("price_slider_create",[c,o])},slide:function(e,r){_("input#min_price").val(r.values[0]),_("input#max_price").val(r.values[1]),_(document.body).trigger("price_slider_slide",[r.values[0],r.values[1]])},change:function(e,r){_(document.body).trigger("price_slider_change",[r.values[0],r.values[1]])}})}});
i18n/languages/woocommerce.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce 5.4.0-beta.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2021-05-16T20:47:53+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0-alpha\n"
15
  "X-Domain: woocommerce\n"
@@ -27,7 +27,7 @@ msgstr ""
27
  #: includes/class-wc-order.php:1695
28
  #: includes/class-wc-order.php:1696
29
  #: includes/class-wc-privacy.php:52
30
- #: includes/customizer/class-wc-shop-customizer.php:49
31
  #: includes/wc-order-functions.php:971
32
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:62
33
  #: packages/woocommerce-admin/src/Loader.php:1072
@@ -8748,9 +8748,9 @@ msgstr ""
8748
  #: includes/admin/settings/views/html-admin-page-shipping-classes.php:54
8749
  #: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:125
8750
  #: includes/admin/settings/views/html-admin-page-shipping-zones.php:78
8751
- #: includes/class-wc-post-types.php:320
8752
- #: includes/class-wc-post-types.php:387
8753
- #: includes/class-wc-post-types.php:452
8754
  #: packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostTypeRegistrar.php:35
8755
  #: templates/myaccount/my-address.php:63
8756
  #: packages/woocommerce-blocks/assets/js/blocks/attribute-filter/edit.js:56
@@ -8967,7 +8967,7 @@ msgid "Total"
8967
  msgstr ""
8968
 
8969
  #: includes/admin/class-wc-admin-dashboard.php:433
8970
- #: includes/class-wc-post-types.php:392
8971
  msgid "No orders found"
8972
  msgstr ""
8973
 
@@ -9267,7 +9267,7 @@ msgid "WooCommerce extensions"
9267
  msgstr ""
9268
 
9269
  #: includes/admin/class-wc-admin-menus.php:193
9270
- #: includes/class-wc-post-types.php:395
9271
  msgctxt "Admin menu name"
9272
  msgid "Orders"
9273
  msgstr ""
@@ -9401,14 +9401,14 @@ msgid "Product attribute base"
9401
  msgstr ""
9402
 
9403
  #: includes/admin/class-wc-admin-permalink-settings.php:74
9404
- #: includes/wc-core-functions.php:2100
9405
  #: includes/wc-update-functions.php:60
9406
  msgctxt "slug"
9407
  msgid "product-category"
9408
  msgstr ""
9409
 
9410
  #: includes/admin/class-wc-admin-permalink-settings.php:83
9411
- #: includes/wc-core-functions.php:2101
9412
  #: includes/wc-update-functions.php:61
9413
  msgctxt "slug"
9414
  msgid "product-tag"
@@ -9454,7 +9454,7 @@ msgstr ""
9454
 
9455
  #: includes/admin/class-wc-admin-permalink-settings.php:193
9456
  #: includes/admin/class-wc-admin-permalink-settings.php:196
9457
- #: includes/wc-core-functions.php:2099
9458
  #: includes/wc-update-functions.php:70
9459
  msgctxt "slug"
9460
  msgid "product"
@@ -9541,8 +9541,8 @@ msgid "Upload or assign an image to your product here. This image will be shown
9541
  msgstr ""
9542
 
9543
  #: includes/admin/class-wc-admin-pointers.php:181
9544
- #: includes/class-wc-post-types.php:133
9545
- #: includes/class-wc-post-types.php:135
9546
  #: includes/widgets/class-wc-widget-product-tag-cloud.php:29
9547
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:264
9548
  msgid "Product tags"
@@ -9945,7 +9945,7 @@ msgstr ""
9945
  #: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:61
9946
  #: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:113
9947
  #: includes/admin/settings/class-wc-settings-general.php:63
9948
- #: includes/customizer/class-wc-shop-customizer.php:699
9949
  #: includes/rest-api/Controllers/Version2/class-wc-rest-customers-v2-controller.php:220
9950
  #: includes/rest-api/Controllers/Version2/class-wc-rest-customers-v2-controller.php:283
9951
  #: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1117
@@ -10031,7 +10031,7 @@ msgstr ""
10031
  #: includes/admin/list-tables/class-wc-admin-list-table-orders.php:384
10032
  #: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:88
10033
  #: includes/class-wc-countries.php:1488
10034
- #: includes/customizer/class-wc-shop-customizer.php:700
10035
  #: packages/woocommerce-blocks/src/StoreApi/Schemas/BillingAddressSchema.php:46
10036
  #: packages/woocommerce-blocks/assets/js/blocks/cart-checkout/checkout/edit.js:143
10037
  #: packages/woocommerce-blocks/assets/js/blocks/cart-checkout/checkout/form/phone-number/index.js:25
@@ -10072,7 +10072,7 @@ msgstr ""
10072
  #: includes/admin/class-wc-admin-reports.php:47
10073
  #: includes/admin/reports/class-wc-report-customer-list.php:219
10074
  #: includes/admin/settings/class-wc-settings-advanced.php:247
10075
- #: includes/class-wc-post-types.php:383
10076
  #: includes/class-wc-privacy-exporters.php:76
10077
  #: includes/class-wc-query.php:113
10078
  #: includes/wc-account-functions.php:100
@@ -11063,7 +11063,7 @@ msgstr ""
11063
  #: includes/admin/class-wc-admin-taxonomies.php:238
11064
  #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:189
11065
  #: includes/admin/settings/class-wc-settings-products.php:27
11066
- #: includes/class-wc-post-types.php:314
11067
  #: includes/widgets/class-wc-widget-products.php:23
11068
  #: includes/widgets/class-wc-widget-products.php:27
11069
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:193
@@ -11844,7 +11844,7 @@ msgstr ""
11844
  #: includes/admin/settings/class-wc-settings-shipping.php:375
11845
  #: includes/admin/views/html-bulk-edit-product.php:166
11846
  #: includes/admin/views/html-quick-edit-product.php:123
11847
- #: includes/class-wc-post-types.php:177
11848
  #: includes/export/class-wc-product-csv-exporter.php:137
11849
  msgid "Shipping class"
11850
  msgstr ""
@@ -12233,7 +12233,7 @@ msgstr ""
12233
  #: includes/admin/reports/class-wc-report-downloads.php:219
12234
  #: includes/admin/reports/class-wc-report-stock.php:173
12235
  #: includes/class-wc-emails.php:447
12236
- #: includes/class-wc-post-types.php:315
12237
  #: includes/class-wc-privacy-exporters.php:353
12238
  #: includes/data-stores/class-wc-product-data-store-cpt.php:122
12239
  #: includes/wc-account-functions.php:218
@@ -12264,7 +12264,7 @@ msgstr ""
12264
 
12265
  #: includes/admin/importers/views/html-csv-import-done.php:102
12266
  #: includes/class-wc-auth.php:94
12267
- #: includes/class-wc-post-types.php:324
12268
  #: includes/class-wc-product-grouped.php:42
12269
  msgid "View products"
12270
  msgstr ""
@@ -13147,7 +13147,7 @@ msgid "Linked Products"
13147
  msgstr ""
13148
 
13149
  #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:117
13150
- #: includes/class-wc-post-types.php:367
13151
  #: packages/woocommerce-admin/src/API/Reports/Products/Controller.php:394
13152
  #: packages/woocommerce-admin/src/Features/Analytics.php:179
13153
  #: packages/woocommerce-admin/src/ReportCSVEmail.php:41
@@ -13466,7 +13466,6 @@ msgstr ""
13466
  #: includes/admin/meta-boxes/views/html-order-items.php:386
13467
  #: packages/woocommerce-admin/dist/app/index.js:2
13468
  #: packages/woocommerce-admin/dist/chunks/homescreen.js:1
13469
- #: packages/woocommerce-admin/dist/chunks/task-list.js:1
13470
  msgid "Add products"
13471
  msgstr ""
13472
 
@@ -13488,7 +13487,7 @@ msgid "Or, enter tax rate ID:"
13488
  msgstr ""
13489
 
13490
  #: includes/admin/meta-boxes/views/html-order-items.php:464
13491
- #: includes/customizer/class-wc-shop-customizer.php:722
13492
  #: includes/gateways/paypal/includes/settings-paypal.php:122
13493
  #: includes/gateways/paypal/includes/settings-paypal.php:136
13494
  #: includes/gateways/paypal/includes/settings-paypal.php:144
@@ -14889,8 +14888,8 @@ msgid "Adds an option to the orders screen for removing personal data in bulk. N
14889
  msgstr ""
14890
 
14891
  #: includes/admin/settings/class-wc-settings-accounts.php:138
14892
- #: includes/customizer/class-wc-shop-customizer.php:778
14893
- #: includes/customizer/class-wc-shop-customizer.php:828
14894
  msgid "Privacy policy"
14895
  msgstr ""
14896
 
@@ -14918,13 +14917,13 @@ msgid "Checkout privacy policy"
14918
  msgstr ""
14919
 
14920
  #: includes/admin/settings/class-wc-settings-accounts.php:157
14921
- #: includes/customizer/class-wc-shop-customizer.php:829
14922
  msgid "Optionally add some text about your store privacy policy to show during checkout."
14923
  msgstr ""
14924
 
14925
  #. translators: %s privacy policy page name and link
14926
  #: includes/admin/settings/class-wc-settings-accounts.php:160
14927
- #: includes/customizer/class-wc-shop-customizer.php:757
14928
  #: includes/wc-template-functions.php:849
14929
  msgid "Your personal data will be used to process your order, support your experience throughout this website, and for other purposes described in our %s."
14930
  msgstr ""
@@ -15015,9 +15014,9 @@ msgid "My account page"
15015
  msgstr ""
15016
 
15017
  #: includes/admin/settings/class-wc-settings-advanced.php:133
15018
- #: includes/customizer/class-wc-shop-customizer.php:779
15019
- #: includes/customizer/class-wc-shop-customizer.php:783
15020
- #: includes/customizer/class-wc-shop-customizer.php:840
15021
  msgid "Terms and conditions"
15022
  msgstr ""
15023
 
@@ -15109,7 +15108,7 @@ msgid "Endpoint for the \"My account &rarr; Orders\" page."
15109
  msgstr ""
15110
 
15111
  #: includes/admin/settings/class-wc-settings-advanced.php:256
15112
- #: includes/class-wc-post-types.php:390
15113
  msgid "View order"
15114
  msgstr ""
15115
 
@@ -15943,7 +15942,7 @@ msgstr ""
15943
 
15944
  #: includes/admin/settings/class-wc-settings-shipping.php:51
15945
  #: includes/admin/settings/views/html-admin-page-shipping-classes.php:14
15946
- #: includes/class-wc-post-types.php:174
15947
  msgid "Shipping classes"
15948
  msgstr ""
15949
 
@@ -17576,7 +17575,7 @@ msgstr ""
17576
 
17577
  #: includes/admin/views/html-bulk-edit-product.php:190
17578
  #: includes/admin/views/html-quick-edit-product.php:148
17579
- #: includes/customizer/class-wc-shop-customizer.php:721
17580
  #: includes/wc-product-functions.php:813
17581
  msgid "Hidden"
17582
  msgstr ""
@@ -18352,7 +18351,7 @@ msgid "Apartment, suite, unit, etc. (optional)"
18352
  msgstr ""
18353
 
18354
  #: includes/class-wc-countries.php:699
18355
- #: includes/customizer/class-wc-shop-customizer.php:698
18356
  msgid "Company name"
18357
  msgstr ""
18358
 
@@ -19192,158 +19191,174 @@ msgstr ""
19192
  msgid "No categories found"
19193
  msgstr ""
19194
 
19195
- #: includes/class-wc-post-types.php:136
 
 
 
 
 
 
 
 
19196
  msgid "Tag"
19197
  msgstr ""
19198
 
19199
- #: includes/class-wc-post-types.php:137
19200
  msgctxt "Admin menu name"
19201
  msgid "Tags"
19202
  msgstr ""
19203
 
19204
- #: includes/class-wc-post-types.php:138
19205
  msgid "Search tags"
19206
  msgstr ""
19207
 
19208
- #: includes/class-wc-post-types.php:139
19209
  msgid "All tags"
19210
  msgstr ""
19211
 
19212
- #: includes/class-wc-post-types.php:140
19213
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:274
19214
  msgid "Edit tag"
19215
  msgstr ""
19216
 
19217
- #: includes/class-wc-post-types.php:141
19218
  msgid "Update tag"
19219
  msgstr ""
19220
 
19221
- #: includes/class-wc-post-types.php:142
19222
  msgid "Add new tag"
19223
  msgstr ""
19224
 
19225
- #: includes/class-wc-post-types.php:143
19226
  msgid "New tag name"
19227
  msgstr ""
19228
 
19229
- #: includes/class-wc-post-types.php:144
19230
  msgid "Popular tags"
19231
  msgstr ""
19232
 
19233
- #: includes/class-wc-post-types.php:145
19234
  msgid "Separate tags with commas"
19235
  msgstr ""
19236
 
19237
- #: includes/class-wc-post-types.php:146
19238
  msgid "Add or remove tags"
19239
  msgstr ""
19240
 
19241
- #: includes/class-wc-post-types.php:147
19242
  msgid "Choose from the most used tags"
19243
  msgstr ""
19244
 
19245
- #: includes/class-wc-post-types.php:148
19246
  msgid "No tags found"
19247
  msgstr ""
19248
 
19249
- #: includes/class-wc-post-types.php:176
 
 
 
 
 
 
 
 
19250
  msgid "Product shipping classes"
19251
  msgstr ""
19252
 
19253
- #: includes/class-wc-post-types.php:178
19254
  msgctxt "Admin menu name"
19255
  msgid "Shipping classes"
19256
  msgstr ""
19257
 
19258
- #: includes/class-wc-post-types.php:179
19259
  msgid "Search shipping classes"
19260
  msgstr ""
19261
 
19262
- #: includes/class-wc-post-types.php:180
19263
  msgid "All shipping classes"
19264
  msgstr ""
19265
 
19266
- #: includes/class-wc-post-types.php:181
19267
  msgid "Parent shipping class"
19268
  msgstr ""
19269
 
19270
- #: includes/class-wc-post-types.php:182
19271
  msgid "Parent shipping class:"
19272
  msgstr ""
19273
 
19274
- #: includes/class-wc-post-types.php:183
19275
  msgid "Edit shipping class"
19276
  msgstr ""
19277
 
19278
- #: includes/class-wc-post-types.php:184
19279
  msgid "Update shipping class"
19280
  msgstr ""
19281
 
19282
- #: includes/class-wc-post-types.php:185
19283
  msgid "Add new shipping class"
19284
  msgstr ""
19285
 
19286
- #: includes/class-wc-post-types.php:186
19287
  msgid "New shipping class Name"
19288
  msgstr ""
19289
 
19290
  #. translators: %s: attribute name
19291
- #: includes/class-wc-post-types.php:221
19292
  msgctxt "Product Attribute"
19293
  msgid "Product %s"
19294
  msgstr ""
19295
 
19296
  #. translators: %s: attribute name
19297
- #: includes/class-wc-post-types.php:224
19298
  msgid "Search %s"
19299
  msgstr ""
19300
 
19301
  #. translators: %s: attribute name
19302
- #: includes/class-wc-post-types.php:226
19303
  msgid "All %s"
19304
  msgstr ""
19305
 
19306
  #. translators: %s: attribute name
19307
- #: includes/class-wc-post-types.php:228
19308
  msgid "Parent %s"
19309
  msgstr ""
19310
 
19311
  #. translators: %s: attribute name
19312
- #: includes/class-wc-post-types.php:230
19313
  msgid "Parent %s:"
19314
  msgstr ""
19315
 
19316
  #. translators: %s: attribute name
19317
- #: includes/class-wc-post-types.php:232
19318
  msgid "Edit %s"
19319
  msgstr ""
19320
 
19321
  #. translators: %s: attribute name
19322
- #: includes/class-wc-post-types.php:234
19323
  msgid "Update %s"
19324
  msgstr ""
19325
 
19326
  #. translators: %s: attribute name
19327
- #: includes/class-wc-post-types.php:236
19328
  msgid "Add new %s"
19329
  msgstr ""
19330
 
19331
  #. translators: %s: attribute name
19332
- #: includes/class-wc-post-types.php:238
19333
  msgid "New %s"
19334
  msgstr ""
19335
 
19336
  #. translators: %s: attribute name
19337
- #: includes/class-wc-post-types.php:240
19338
  msgid "No &quot;%s&quot; found"
19339
  msgstr ""
19340
 
19341
  #. translators: %s: attribute name
19342
- #: includes/class-wc-post-types.php:242
19343
  msgid "&larr; Back to \"%s\" attributes"
19344
  msgstr ""
19345
 
19346
- #: includes/class-wc-post-types.php:316
19347
  #: packages/woocommerce-admin/dist/chunks/analytics-report-products.js:1
19348
  #: packages/woocommerce-admin/dist/chunks/analytics-report-stock.js:1
19349
  #: packages/woocommerce-admin/dist/chunks/dashboard-charts.js:1
@@ -19352,19 +19367,19 @@ msgstr ""
19352
  msgid "All Products"
19353
  msgstr ""
19354
 
19355
- #: includes/class-wc-post-types.php:317
19356
  msgctxt "Admin menu name"
19357
  msgid "Products"
19358
  msgstr ""
19359
 
19360
- #: includes/class-wc-post-types.php:318
19361
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:143
19362
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:174
19363
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:204
19364
  msgid "Add New"
19365
  msgstr ""
19366
 
19367
- #: includes/class-wc-post-types.php:319
19368
  #: packages/woocommerce-blocks/assets/js/blocks/price-filter/edit.js:139
19369
  #: packages/woocommerce-blocks/assets/js/blocks/products/utils.js:39
19370
  #: packages/woocommerce-blocks/build/all-products.js:1
@@ -19372,26 +19387,26 @@ msgstr ""
19372
  msgid "Add new product"
19373
  msgstr ""
19374
 
19375
- #: includes/class-wc-post-types.php:321
19376
  #: includes/tracks/events/class-wc-products-tracking.php:130
19377
  msgid "Edit product"
19378
  msgstr ""
19379
 
19380
- #: includes/class-wc-post-types.php:322
19381
  msgid "New product"
19382
  msgstr ""
19383
 
19384
- #: includes/class-wc-post-types.php:323
19385
  msgid "View product"
19386
  msgstr ""
19387
 
19388
- #: includes/class-wc-post-types.php:325
19389
  #: packages/woocommerce-admin/dist/chunks/5.js:1
19390
  #: packages/woocommerce-admin/dist/chunks/analytics-report-variations.js:1
19391
  msgid "Search products"
19392
  msgstr ""
19393
 
19394
- #: includes/class-wc-post-types.php:326
19395
  #: packages/woocommerce-blocks/assets/js/base/components/product-list/no-matching-products.js:19
19396
  #: packages/woocommerce-blocks/assets/js/base/components/product-list/product-list.js:92
19397
  #: packages/woocommerce-blocks/build/all-products-frontend.js:6
@@ -19399,110 +19414,118 @@ msgstr ""
19399
  msgid "No products found"
19400
  msgstr ""
19401
 
19402
- #: includes/class-wc-post-types.php:327
19403
  msgid "No products found in trash"
19404
  msgstr ""
19405
 
19406
- #: includes/class-wc-post-types.php:328
19407
  msgid "Parent product"
19408
  msgstr ""
19409
 
19410
- #: includes/class-wc-post-types.php:329
19411
  msgid "Product image"
19412
  msgstr ""
19413
 
19414
- #: includes/class-wc-post-types.php:330
19415
  msgid "Set product image"
19416
  msgstr ""
19417
 
19418
- #: includes/class-wc-post-types.php:331
19419
  msgid "Remove product image"
19420
  msgstr ""
19421
 
19422
- #: includes/class-wc-post-types.php:332
19423
  msgid "Use as product image"
19424
  msgstr ""
19425
 
19426
- #: includes/class-wc-post-types.php:333
19427
  msgid "Insert into product"
19428
  msgstr ""
19429
 
19430
- #: includes/class-wc-post-types.php:334
19431
  msgid "Uploaded to this product"
19432
  msgstr ""
19433
 
19434
- #: includes/class-wc-post-types.php:335
19435
  msgid "Filter products"
19436
  msgstr ""
19437
 
19438
- #: includes/class-wc-post-types.php:336
19439
  msgid "Products navigation"
19440
  msgstr ""
19441
 
19442
- #: includes/class-wc-post-types.php:337
19443
  msgid "Products list"
19444
  msgstr ""
19445
 
19446
- #: includes/class-wc-post-types.php:339
 
 
 
 
 
 
 
 
19447
  msgid "This is where you can add new products to your store."
19448
  msgstr ""
19449
 
19450
- #: includes/class-wc-post-types.php:384
19451
  msgctxt "shop_order post type singular name"
19452
  msgid "Order"
19453
  msgstr ""
19454
 
19455
- #: includes/class-wc-post-types.php:385
19456
  msgid "Add order"
19457
  msgstr ""
19458
 
19459
- #: includes/class-wc-post-types.php:386
19460
  msgid "Add new order"
19461
  msgstr ""
19462
 
19463
- #: includes/class-wc-post-types.php:388
19464
  msgid "Edit order"
19465
  msgstr ""
19466
 
19467
- #: includes/class-wc-post-types.php:389
19468
  #: includes/emails/class-wc-email-new-order.php:31
19469
  msgid "New order"
19470
  msgstr ""
19471
 
19472
- #: includes/class-wc-post-types.php:391
19473
  msgid "Search orders"
19474
  msgstr ""
19475
 
19476
- #: includes/class-wc-post-types.php:393
19477
  msgid "No orders found in trash"
19478
  msgstr ""
19479
 
19480
- #: includes/class-wc-post-types.php:394
19481
  msgid "Parent orders"
19482
  msgstr ""
19483
 
19484
- #: includes/class-wc-post-types.php:396
19485
  msgid "Filter orders"
19486
  msgstr ""
19487
 
19488
- #: includes/class-wc-post-types.php:397
19489
  msgid "Orders navigation"
19490
  msgstr ""
19491
 
19492
- #: includes/class-wc-post-types.php:398
19493
  msgid "Orders list"
19494
  msgstr ""
19495
 
19496
- #: includes/class-wc-post-types.php:400
19497
  msgid "This is where store orders are stored."
19498
  msgstr ""
19499
 
19500
- #: includes/class-wc-post-types.php:423
19501
  #: packages/woocommerce-admin/dist/chunks/5.js:1
19502
  msgid "Refunds"
19503
  msgstr ""
19504
 
19505
- #: includes/class-wc-post-types.php:447
19506
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:163
19507
  #: packages/woocommerce-admin/src/API/Reports/Revenue/Stats/Controller.php:453
19508
  #: packages/woocommerce-admin/src/Features/Analytics.php:199
@@ -19522,226 +19545,226 @@ msgstr ""
19522
  msgid "Coupons"
19523
  msgstr ""
19524
 
19525
- #: includes/class-wc-post-types.php:448
19526
  msgid "Coupon"
19527
  msgstr ""
19528
 
19529
- #: includes/class-wc-post-types.php:449
19530
  msgctxt "Admin menu name"
19531
  msgid "Coupons"
19532
  msgstr ""
19533
 
19534
- #: includes/class-wc-post-types.php:450
19535
  msgid "Add coupon"
19536
  msgstr ""
19537
 
19538
- #: includes/class-wc-post-types.php:451
19539
  msgid "Add new coupon"
19540
  msgstr ""
19541
 
19542
- #: includes/class-wc-post-types.php:453
19543
  msgid "Edit coupon"
19544
  msgstr ""
19545
 
19546
- #: includes/class-wc-post-types.php:454
19547
  msgid "New coupon"
19548
  msgstr ""
19549
 
19550
- #: includes/class-wc-post-types.php:455
19551
  msgid "View coupon"
19552
  msgstr ""
19553
 
19554
- #: includes/class-wc-post-types.php:456
19555
  #: packages/woocommerce-admin/dist/chunks/5.js:1
19556
  msgid "Search coupons"
19557
  msgstr ""
19558
 
19559
- #: includes/class-wc-post-types.php:457
19560
  msgid "No coupons found"
19561
  msgstr ""
19562
 
19563
- #: includes/class-wc-post-types.php:458
19564
  msgid "No coupons found in trash"
19565
  msgstr ""
19566
 
19567
- #: includes/class-wc-post-types.php:459
19568
  msgid "Parent coupon"
19569
  msgstr ""
19570
 
19571
- #: includes/class-wc-post-types.php:460
19572
  msgid "Filter coupons"
19573
  msgstr ""
19574
 
19575
- #: includes/class-wc-post-types.php:461
19576
  msgid "Coupons navigation"
19577
  msgstr ""
19578
 
19579
- #: includes/class-wc-post-types.php:462
19580
  msgid "Coupons list"
19581
  msgstr ""
19582
 
19583
- #: includes/class-wc-post-types.php:464
19584
  msgid "This is where you can add new coupons that customers can use in your store."
19585
  msgstr ""
19586
 
19587
- #: includes/class-wc-post-types.php:496
19588
  msgid "Category added."
19589
  msgstr ""
19590
 
19591
- #: includes/class-wc-post-types.php:497
19592
  msgid "Category deleted."
19593
  msgstr ""
19594
 
19595
- #: includes/class-wc-post-types.php:498
19596
  msgid "Category updated."
19597
  msgstr ""
19598
 
19599
- #: includes/class-wc-post-types.php:499
19600
  msgid "Category not added."
19601
  msgstr ""
19602
 
19603
- #: includes/class-wc-post-types.php:500
19604
  msgid "Category not updated."
19605
  msgstr ""
19606
 
19607
- #: includes/class-wc-post-types.php:501
19608
  msgid "Categories deleted."
19609
  msgstr ""
19610
 
19611
- #: includes/class-wc-post-types.php:506
19612
  msgid "Tag added."
19613
  msgstr ""
19614
 
19615
- #: includes/class-wc-post-types.php:507
19616
  msgid "Tag deleted."
19617
  msgstr ""
19618
 
19619
- #: includes/class-wc-post-types.php:508
19620
  msgid "Tag updated."
19621
  msgstr ""
19622
 
19623
- #: includes/class-wc-post-types.php:509
19624
  msgid "Tag not added."
19625
  msgstr ""
19626
 
19627
- #: includes/class-wc-post-types.php:510
19628
  msgid "Tag not updated."
19629
  msgstr ""
19630
 
19631
- #: includes/class-wc-post-types.php:511
19632
  msgid "Tags deleted."
19633
  msgstr ""
19634
 
19635
  #. translators: %s: taxonomy label
19636
- #: includes/class-wc-post-types.php:527
19637
  msgctxt "taxonomy term messages"
19638
  msgid "%s added"
19639
  msgstr ""
19640
 
19641
  #. translators: %s: taxonomy label
19642
- #: includes/class-wc-post-types.php:529
19643
  #: includes/class-wc-post-types.php:537
 
19644
  msgctxt "taxonomy term messages"
19645
  msgid "%s deleted"
19646
  msgstr ""
19647
 
19648
  #. translators: %s: taxonomy label
19649
- #: includes/class-wc-post-types.php:531
19650
  msgctxt "taxonomy term messages"
19651
  msgid "%s updated"
19652
  msgstr ""
19653
 
19654
  #. translators: %s: taxonomy label
19655
- #: includes/class-wc-post-types.php:533
19656
  msgctxt "taxonomy term messages"
19657
  msgid "%s not added"
19658
  msgstr ""
19659
 
19660
  #. translators: %s: taxonomy label
19661
- #: includes/class-wc-post-types.php:535
19662
  msgctxt "taxonomy term messages"
19663
  msgid "%s not updated"
19664
  msgstr ""
19665
 
19666
- #: includes/class-wc-post-types.php:555
19667
  #: includes/wc-order-functions.php:95
19668
  msgctxt "Order status"
19669
  msgid "Pending payment"
19670
  msgstr ""
19671
 
19672
  #. translators: %s: number of orders
19673
- #: includes/class-wc-post-types.php:561
19674
  msgid "Pending payment <span class=\"count\">(%s)</span>"
19675
  msgid_plural "Pending payment <span class=\"count\">(%s)</span>"
19676
  msgstr[0] ""
19677
  msgstr[1] ""
19678
 
19679
- #: includes/class-wc-post-types.php:564
19680
  #: includes/wc-order-functions.php:96
19681
  msgctxt "Order status"
19682
  msgid "Processing"
19683
  msgstr ""
19684
 
19685
  #. translators: %s: number of orders
19686
- #: includes/class-wc-post-types.php:570
19687
  msgid "Processing <span class=\"count\">(%s)</span>"
19688
  msgid_plural "Processing <span class=\"count\">(%s)</span>"
19689
  msgstr[0] ""
19690
  msgstr[1] ""
19691
 
19692
- #: includes/class-wc-post-types.php:573
19693
  #: includes/wc-order-functions.php:97
19694
  msgctxt "Order status"
19695
  msgid "On hold"
19696
  msgstr ""
19697
 
19698
  #. translators: %s: number of orders
19699
- #: includes/class-wc-post-types.php:579
19700
  msgid "On hold <span class=\"count\">(%s)</span>"
19701
  msgid_plural "On hold <span class=\"count\">(%s)</span>"
19702
  msgstr[0] ""
19703
  msgstr[1] ""
19704
 
19705
- #: includes/class-wc-post-types.php:582
19706
  #: includes/wc-order-functions.php:98
19707
  msgctxt "Order status"
19708
  msgid "Completed"
19709
  msgstr ""
19710
 
19711
  #. translators: %s: number of orders
19712
- #: includes/class-wc-post-types.php:588
19713
  msgid "Completed <span class=\"count\">(%s)</span>"
19714
  msgid_plural "Completed <span class=\"count\">(%s)</span>"
19715
  msgstr[0] ""
19716
  msgstr[1] ""
19717
 
19718
- #: includes/class-wc-post-types.php:591
19719
  #: includes/wc-order-functions.php:99
19720
  msgctxt "Order status"
19721
  msgid "Cancelled"
19722
  msgstr ""
19723
 
19724
  #. translators: %s: number of orders
19725
- #: includes/class-wc-post-types.php:597
19726
  msgid "Cancelled <span class=\"count\">(%s)</span>"
19727
  msgid_plural "Cancelled <span class=\"count\">(%s)</span>"
19728
  msgstr[0] ""
19729
  msgstr[1] ""
19730
 
19731
- #: includes/class-wc-post-types.php:600
19732
  #: includes/wc-order-functions.php:100
19733
  msgctxt "Order status"
19734
  msgid "Refunded"
19735
  msgstr ""
19736
 
19737
  #. translators: %s: number of orders
19738
- #: includes/class-wc-post-types.php:606
19739
  msgid "Refunded <span class=\"count\">(%s)</span>"
19740
  msgid_plural "Refunded <span class=\"count\">(%s)</span>"
19741
  msgstr[0] ""
19742
  msgstr[1] ""
19743
 
19744
- #: includes/class-wc-post-types.php:609
19745
  #: includes/wc-order-functions.php:101
19746
  msgctxt "Order status"
19747
  msgid "Failed"
@@ -19749,7 +19772,7 @@ msgstr ""
19749
 
19750
  #. translators: %s: number of orders
19751
  #. translators: %s: count
19752
- #: includes/class-wc-post-types.php:615
19753
  #: packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostStatusRegistrar.php:38
19754
  msgid "Failed <span class=\"count\">(%s)</span>"
19755
  msgid_plural "Failed <span class=\"count\">(%s)</span>"
@@ -20339,16 +20362,16 @@ msgid "Error: Delivery URL returned response code: %s"
20339
  msgstr ""
20340
 
20341
  #. translators: 1: error message 2: file name and path 3: line number
20342
- #: includes/class-woocommerce.php:226
20343
  msgid "%1$s in %2$s on line %3$s"
20344
  msgstr ""
20345
 
20346
- #: includes/class-woocommerce.php:918
20347
  msgid "You have installed a development version of WooCommerce which requires files to be built and minified. From the plugin directory, run <code>grunt assets</code> to build and minify assets."
20348
  msgstr ""
20349
 
20350
  #. translators: 1: URL of WordPress.org Repository 2: URL of the GitHub Repository release page
20351
- #: includes/class-woocommerce.php:921
20352
  msgid "Or you can download a pre-built version of the plugin from the <a href=\"%1$s\">WordPress.org repository</a> or by visiting <a href=\"%2$s\">the releases page in the GitHub repository</a>."
20353
  msgstr ""
20354
 
@@ -20478,27 +20501,27 @@ msgid "%1$d update functions completed. Database version is %2$s"
20478
  msgstr ""
20479
 
20480
  #. translators: %d: Setting value
20481
- #: includes/customizer/class-wc-shop-customizer.php:111
20482
  msgid "The minimum allowed setting is %d"
20483
  msgstr ""
20484
 
20485
  #. translators: %d: Setting value
20486
- #: includes/customizer/class-wc-shop-customizer.php:113
20487
  msgid "The maximum allowed setting is %d"
20488
  msgstr ""
20489
 
20490
- #: includes/customizer/class-wc-shop-customizer.php:287
20491
- #: includes/customizer/class-wc-shop-customizer.php:457
20492
  msgid "Default sorting (custom ordering + name)"
20493
  msgstr ""
20494
 
20495
- #: includes/customizer/class-wc-shop-customizer.php:288
20496
- #: includes/customizer/class-wc-shop-customizer.php:458
20497
  msgid "Popularity (sales)"
20498
  msgstr ""
20499
 
20500
- #: includes/customizer/class-wc-shop-customizer.php:289
20501
- #: includes/customizer/class-wc-shop-customizer.php:459
20502
  #: includes/widgets/class-wc-widget-rating-filter.php:27
20503
  #: packages/woocommerce-blocks/src/StoreApi/Schemas/ProductCollectionDataSchema.php:87
20504
  #: packages/woocommerce-blocks/assets/js/base/components/product-list/product-sort-select/index.js:34
@@ -20508,214 +20531,214 @@ msgstr ""
20508
  msgid "Average rating"
20509
  msgstr ""
20510
 
20511
- #: includes/customizer/class-wc-shop-customizer.php:290
20512
- #: includes/customizer/class-wc-shop-customizer.php:460
20513
  msgid "Sort by most recent"
20514
  msgstr ""
20515
 
20516
- #: includes/customizer/class-wc-shop-customizer.php:291
20517
- #: includes/customizer/class-wc-shop-customizer.php:461
20518
  msgid "Sort by price (asc)"
20519
  msgstr ""
20520
 
20521
- #: includes/customizer/class-wc-shop-customizer.php:292
20522
- #: includes/customizer/class-wc-shop-customizer.php:462
20523
  msgid "Sort by price (desc)"
20524
  msgstr ""
20525
 
20526
- #: includes/customizer/class-wc-shop-customizer.php:308
20527
  msgid "Store Notice"
20528
  msgstr ""
20529
 
20530
- #: includes/customizer/class-wc-shop-customizer.php:328
20531
  #: includes/wc-template-functions.php:1056
20532
  msgid "This is a demo store for testing purposes &mdash; no orders shall be fulfilled."
20533
  msgstr ""
20534
 
20535
- #: includes/customizer/class-wc-shop-customizer.php:339
20536
  msgid "Store notice"
20537
  msgstr ""
20538
 
20539
- #: includes/customizer/class-wc-shop-customizer.php:340
20540
  msgid "If enabled, this text will be shown site-wide. You can use it to show events or promotions to visitors!"
20541
  msgstr ""
20542
 
20543
- #: includes/customizer/class-wc-shop-customizer.php:350
20544
  msgid "Enable store notice"
20545
  msgstr ""
20546
 
20547
- #: includes/customizer/class-wc-shop-customizer.php:378
20548
  msgid "Product Catalog"
20549
  msgstr ""
20550
 
20551
- #: includes/customizer/class-wc-shop-customizer.php:397
20552
  msgid "Shop page display"
20553
  msgstr ""
20554
 
20555
- #: includes/customizer/class-wc-shop-customizer.php:398
20556
  msgid "Choose what to display on the main shop page."
20557
  msgstr ""
20558
 
20559
- #: includes/customizer/class-wc-shop-customizer.php:403
20560
- #: includes/customizer/class-wc-shop-customizer.php:429
20561
  msgid "Show products"
20562
  msgstr ""
20563
 
20564
- #: includes/customizer/class-wc-shop-customizer.php:404
20565
  msgid "Show categories"
20566
  msgstr ""
20567
 
20568
- #: includes/customizer/class-wc-shop-customizer.php:405
20569
  msgid "Show categories &amp; products"
20570
  msgstr ""
20571
 
20572
- #: includes/customizer/class-wc-shop-customizer.php:423
20573
  msgid "Category display"
20574
  msgstr ""
20575
 
20576
- #: includes/customizer/class-wc-shop-customizer.php:424
20577
  msgid "Choose what to display on product category pages."
20578
  msgstr ""
20579
 
20580
- #: includes/customizer/class-wc-shop-customizer.php:430
20581
  msgid "Show subcategories"
20582
  msgstr ""
20583
 
20584
- #: includes/customizer/class-wc-shop-customizer.php:431
20585
  msgid "Show subcategories &amp; products"
20586
  msgstr ""
20587
 
20588
- #: includes/customizer/class-wc-shop-customizer.php:449
20589
  msgid "Default product sorting"
20590
  msgstr ""
20591
 
20592
- #: includes/customizer/class-wc-shop-customizer.php:450
20593
  msgid "How should products be sorted in the catalog by default?"
20594
  msgstr ""
20595
 
20596
- #: includes/customizer/class-wc-shop-customizer.php:487
20597
  msgid "Products per row"
20598
  msgstr ""
20599
 
20600
- #: includes/customizer/class-wc-shop-customizer.php:488
20601
  msgid "How many products should be shown per row?"
20602
  msgstr ""
20603
 
20604
- #: includes/customizer/class-wc-shop-customizer.php:517
20605
  #: packages/woocommerce-admin/dist/components/index.js:2
20606
  #: packages/woocommerce-blocks/build/vendors.js:6
20607
  msgid "Rows per page"
20608
  msgstr ""
20609
 
20610
- #: includes/customizer/class-wc-shop-customizer.php:518
20611
  msgid "How many rows of products should be shown per page?"
20612
  msgstr ""
20613
 
20614
- #: includes/customizer/class-wc-shop-customizer.php:540
20615
  msgid "After publishing your changes, new image sizes will be generated automatically."
20616
  msgstr ""
20617
 
20618
  #. translators: 1: tools URL 2: regen thumbs url
20619
- #: includes/customizer/class-wc-shop-customizer.php:543
20620
  msgid "After publishing your changes, new image sizes may not be shown until you regenerate thumbnails. You can do this from the <a href=\"%1$s\" target=\"_blank\">tools section in WooCommerce</a> or by using a plugin such as <a href=\"%2$s\" target=\"_blank\">Regenerate Thumbnails</a>."
20621
  msgstr ""
20622
 
20623
  #. translators: %s: regen thumbs url
20624
- #: includes/customizer/class-wc-shop-customizer.php:546
20625
  msgid "After publishing your changes, new image sizes may not be shown until you <a href=\"%s\" target=\"_blank\">Regenerate Thumbnails</a>."
20626
  msgstr ""
20627
 
20628
- #: includes/customizer/class-wc-shop-customizer.php:552
20629
  msgid "Product Images"
20630
  msgstr ""
20631
 
20632
- #: includes/customizer/class-wc-shop-customizer.php:574
20633
  msgid "Main image width"
20634
  msgstr ""
20635
 
20636
- #: includes/customizer/class-wc-shop-customizer.php:575
20637
  msgid "Image size used for the main image on single product pages. These images will remain uncropped."
20638
  msgstr ""
20639
 
20640
- #: includes/customizer/class-wc-shop-customizer.php:602
20641
  msgid "Thumbnail width"
20642
  msgstr ""
20643
 
20644
- #: includes/customizer/class-wc-shop-customizer.php:603
20645
  msgid "Image size used for products in the catalog."
20646
  msgstr ""
20647
 
20648
- #: includes/customizer/class-wc-shop-customizer.php:660
20649
  msgid "Thumbnail cropping"
20650
  msgstr ""
20651
 
20652
- #: includes/customizer/class-wc-shop-customizer.php:663
20653
  msgid "1:1"
20654
  msgstr ""
20655
 
20656
- #: includes/customizer/class-wc-shop-customizer.php:664
20657
  msgid "Images will be cropped into a square"
20658
  msgstr ""
20659
 
20660
- #: includes/customizer/class-wc-shop-customizer.php:667
20661
  #: packages/woocommerce-admin/dist/components/index.js:2
20662
  #: packages/woocommerce-admin/dist/date/index.js:1
20663
  #: packages/woocommerce-blocks/build/vendors.js:6
20664
  msgid "Custom"
20665
  msgstr ""
20666
 
20667
- #: includes/customizer/class-wc-shop-customizer.php:668
20668
  msgid "Images will be cropped to a custom aspect ratio"
20669
  msgstr ""
20670
 
20671
- #: includes/customizer/class-wc-shop-customizer.php:671
20672
  msgid "Uncropped"
20673
  msgstr ""
20674
 
20675
- #: includes/customizer/class-wc-shop-customizer.php:672
20676
  msgid "Images will display using the aspect ratio in which they were uploaded"
20677
  msgstr ""
20678
 
20679
- #: includes/customizer/class-wc-shop-customizer.php:689
20680
  #: includes/wc-template-functions.php:2136
20681
  #: packages/woocommerce-blocks/assets/js/blocks/cart-checkout/checkout/index.js:17
20682
  #: packages/woocommerce-blocks/build/checkout.js:1
20683
  msgid "Checkout"
20684
  msgstr ""
20685
 
20686
- #: includes/customizer/class-wc-shop-customizer.php:692
20687
  msgid "These options let you change the appearance of the WooCommerce checkout."
20688
  msgstr ""
20689
 
20690
  #. Translators: %s field name.
20691
- #: includes/customizer/class-wc-shop-customizer.php:716
20692
  msgid "%s field"
20693
  msgstr ""
20694
 
20695
- #: includes/customizer/class-wc-shop-customizer.php:723
20696
  msgid "Required"
20697
  msgstr ""
20698
 
20699
  #. translators: %s terms and conditions page name and link
20700
- #: includes/customizer/class-wc-shop-customizer.php:745
20701
  #: includes/wc-template-functions.php:833
20702
  msgid "I have read and agree to the website %s"
20703
  msgstr ""
20704
 
20705
- #: includes/customizer/class-wc-shop-customizer.php:769
20706
  msgid "Highlight required fields with an asterisk"
20707
  msgstr ""
20708
 
20709
- #: includes/customizer/class-wc-shop-customizer.php:801
20710
  msgid "No page set"
20711
  msgstr ""
20712
 
20713
  #. Translators: %s: page name.
20714
- #: includes/customizer/class-wc-shop-customizer.php:816
20715
  msgid "%s page"
20716
  msgstr ""
20717
 
20718
- #: includes/customizer/class-wc-shop-customizer.php:841
20719
  msgid "Optionally add some text for the terms checkbox that customers must accept."
20720
  msgstr ""
20721
 
@@ -23624,7 +23647,7 @@ msgstr ""
23624
  #: includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:280
23625
  #: includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:79
23626
  #: includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php:44
23627
- #: includes/wc-core-functions.php:150
23628
  #: includes/wc-order-functions.php:514
23629
  #: includes/wc-order-functions.php:1078
23630
  msgid "Invalid order ID."
@@ -27664,702 +27687,702 @@ msgid "(includes %1$s estimated for %2$s)"
27664
  msgstr ""
27665
 
27666
  #. translators: %s template
27667
- #: includes/wc-core-functions.php:319
27668
  msgid "%s does not exist."
27669
  msgstr ""
27670
 
27671
- #: includes/wc-core-functions.php:336
27672
  msgid "action_args should not be overwritten when calling wc_get_template."
27673
  msgstr ""
27674
 
27675
- #: includes/wc-core-functions.php:484
27676
  msgid "United Arab Emirates dirham"
27677
  msgstr ""
27678
 
27679
- #: includes/wc-core-functions.php:485
27680
  msgid "Afghan afghani"
27681
  msgstr ""
27682
 
27683
- #: includes/wc-core-functions.php:486
27684
  msgid "Albanian lek"
27685
  msgstr ""
27686
 
27687
- #: includes/wc-core-functions.php:487
27688
  msgid "Armenian dram"
27689
  msgstr ""
27690
 
27691
- #: includes/wc-core-functions.php:488
27692
  msgid "Netherlands Antillean guilder"
27693
  msgstr ""
27694
 
27695
- #: includes/wc-core-functions.php:489
27696
  msgid "Angolan kwanza"
27697
  msgstr ""
27698
 
27699
- #: includes/wc-core-functions.php:490
27700
  msgid "Argentine peso"
27701
  msgstr ""
27702
 
27703
- #: includes/wc-core-functions.php:491
27704
  msgid "Australian dollar"
27705
  msgstr ""
27706
 
27707
- #: includes/wc-core-functions.php:492
27708
  msgid "Aruban florin"
27709
  msgstr ""
27710
 
27711
- #: includes/wc-core-functions.php:493
27712
  msgid "Azerbaijani manat"
27713
  msgstr ""
27714
 
27715
- #: includes/wc-core-functions.php:494
27716
  msgid "Bosnia and Herzegovina convertible mark"
27717
  msgstr ""
27718
 
27719
- #: includes/wc-core-functions.php:495
27720
  msgid "Barbadian dollar"
27721
  msgstr ""
27722
 
27723
- #: includes/wc-core-functions.php:496
27724
  msgid "Bangladeshi taka"
27725
  msgstr ""
27726
 
27727
- #: includes/wc-core-functions.php:497
27728
  msgid "Bulgarian lev"
27729
  msgstr ""
27730
 
27731
- #: includes/wc-core-functions.php:498
27732
  msgid "Bahraini dinar"
27733
  msgstr ""
27734
 
27735
- #: includes/wc-core-functions.php:499
27736
  msgid "Burundian franc"
27737
  msgstr ""
27738
 
27739
- #: includes/wc-core-functions.php:500
27740
  msgid "Bermudian dollar"
27741
  msgstr ""
27742
 
27743
- #: includes/wc-core-functions.php:501
27744
  msgid "Brunei dollar"
27745
  msgstr ""
27746
 
27747
- #: includes/wc-core-functions.php:502
27748
  msgid "Bolivian boliviano"
27749
  msgstr ""
27750
 
27751
- #: includes/wc-core-functions.php:503
27752
  msgid "Brazilian real"
27753
  msgstr ""
27754
 
27755
- #: includes/wc-core-functions.php:504
27756
  msgid "Bahamian dollar"
27757
  msgstr ""
27758
 
27759
- #: includes/wc-core-functions.php:505
27760
  msgid "Bitcoin"
27761
  msgstr ""
27762
 
27763
- #: includes/wc-core-functions.php:506
27764
  msgid "Bhutanese ngultrum"
27765
  msgstr ""
27766
 
27767
- #: includes/wc-core-functions.php:507
27768
  msgid "Botswana pula"
27769
  msgstr ""
27770
 
27771
- #: includes/wc-core-functions.php:508
27772
  msgid "Belarusian ruble (old)"
27773
  msgstr ""
27774
 
27775
- #: includes/wc-core-functions.php:509
27776
  msgid "Belarusian ruble"
27777
  msgstr ""
27778
 
27779
- #: includes/wc-core-functions.php:510
27780
  msgid "Belize dollar"
27781
  msgstr ""
27782
 
27783
- #: includes/wc-core-functions.php:511
27784
  msgid "Canadian dollar"
27785
  msgstr ""
27786
 
27787
- #: includes/wc-core-functions.php:512
27788
  msgid "Congolese franc"
27789
  msgstr ""
27790
 
27791
- #: includes/wc-core-functions.php:513
27792
  msgid "Swiss franc"
27793
  msgstr ""
27794
 
27795
- #: includes/wc-core-functions.php:514
27796
  msgid "Chilean peso"
27797
  msgstr ""
27798
 
27799
- #: includes/wc-core-functions.php:515
27800
  msgid "Chinese yuan"
27801
  msgstr ""
27802
 
27803
- #: includes/wc-core-functions.php:516
27804
  msgid "Colombian peso"
27805
  msgstr ""
27806
 
27807
- #: includes/wc-core-functions.php:517
27808
  msgid "Costa Rican col&oacute;n"
27809
  msgstr ""
27810
 
27811
- #: includes/wc-core-functions.php:518
27812
  msgid "Cuban convertible peso"
27813
  msgstr ""
27814
 
27815
- #: includes/wc-core-functions.php:519
27816
  msgid "Cuban peso"
27817
  msgstr ""
27818
 
27819
- #: includes/wc-core-functions.php:520
27820
  msgid "Cape Verdean escudo"
27821
  msgstr ""
27822
 
27823
- #: includes/wc-core-functions.php:521
27824
  msgid "Czech koruna"
27825
  msgstr ""
27826
 
27827
- #: includes/wc-core-functions.php:522
27828
  msgid "Djiboutian franc"
27829
  msgstr ""
27830
 
27831
- #: includes/wc-core-functions.php:523
27832
  msgid "Danish krone"
27833
  msgstr ""
27834
 
27835
- #: includes/wc-core-functions.php:524
27836
  msgid "Dominican peso"
27837
  msgstr ""
27838
 
27839
- #: includes/wc-core-functions.php:525
27840
  msgid "Algerian dinar"
27841
  msgstr ""
27842
 
27843
- #: includes/wc-core-functions.php:526
27844
  msgid "Egyptian pound"
27845
  msgstr ""
27846
 
27847
- #: includes/wc-core-functions.php:527
27848
  msgid "Eritrean nakfa"
27849
  msgstr ""
27850
 
27851
- #: includes/wc-core-functions.php:528
27852
  msgid "Ethiopian birr"
27853
  msgstr ""
27854
 
27855
- #: includes/wc-core-functions.php:529
27856
  msgid "Euro"
27857
  msgstr ""
27858
 
27859
- #: includes/wc-core-functions.php:530
27860
  msgid "Fijian dollar"
27861
  msgstr ""
27862
 
27863
- #: includes/wc-core-functions.php:531
27864
  msgid "Falkland Islands pound"
27865
  msgstr ""
27866
 
27867
- #: includes/wc-core-functions.php:532
27868
  msgid "Pound sterling"
27869
  msgstr ""
27870
 
27871
- #: includes/wc-core-functions.php:533
27872
  msgid "Georgian lari"
27873
  msgstr ""
27874
 
27875
- #: includes/wc-core-functions.php:534
27876
  msgid "Guernsey pound"
27877
  msgstr ""
27878
 
27879
- #: includes/wc-core-functions.php:535
27880
  msgid "Ghana cedi"
27881
  msgstr ""
27882
 
27883
- #: includes/wc-core-functions.php:536
27884
  msgid "Gibraltar pound"
27885
  msgstr ""
27886
 
27887
- #: includes/wc-core-functions.php:537
27888
  msgid "Gambian dalasi"
27889
  msgstr ""
27890
 
27891
- #: includes/wc-core-functions.php:538
27892
  msgid "Guinean franc"
27893
  msgstr ""
27894
 
27895
- #: includes/wc-core-functions.php:539
27896
  msgid "Guatemalan quetzal"
27897
  msgstr ""
27898
 
27899
- #: includes/wc-core-functions.php:540
27900
  msgid "Guyanese dollar"
27901
  msgstr ""
27902
 
27903
- #: includes/wc-core-functions.php:541
27904
  msgid "Hong Kong dollar"
27905
  msgstr ""
27906
 
27907
- #: includes/wc-core-functions.php:542
27908
  msgid "Honduran lempira"
27909
  msgstr ""
27910
 
27911
- #: includes/wc-core-functions.php:543
27912
  msgid "Croatian kuna"
27913
  msgstr ""
27914
 
27915
- #: includes/wc-core-functions.php:544
27916
  msgid "Haitian gourde"
27917
  msgstr ""
27918
 
27919
- #: includes/wc-core-functions.php:545
27920
  msgid "Hungarian forint"
27921
  msgstr ""
27922
 
27923
- #: includes/wc-core-functions.php:546
27924
  msgid "Indonesian rupiah"
27925
  msgstr ""
27926
 
27927
- #: includes/wc-core-functions.php:547
27928
  msgid "Israeli new shekel"
27929
  msgstr ""
27930
 
27931
- #: includes/wc-core-functions.php:548
27932
  msgid "Manx pound"
27933
  msgstr ""
27934
 
27935
- #: includes/wc-core-functions.php:549
27936
  msgid "Indian rupee"
27937
  msgstr ""
27938
 
27939
- #: includes/wc-core-functions.php:550
27940
  msgid "Iraqi dinar"
27941
  msgstr ""
27942
 
27943
- #: includes/wc-core-functions.php:551
27944
  msgid "Iranian rial"
27945
  msgstr ""
27946
 
27947
- #: includes/wc-core-functions.php:552
27948
  msgid "Iranian toman"
27949
  msgstr ""
27950
 
27951
- #: includes/wc-core-functions.php:553
27952
  msgid "Icelandic kr&oacute;na"
27953
  msgstr ""
27954
 
27955
- #: includes/wc-core-functions.php:554
27956
  msgid "Jersey pound"
27957
  msgstr ""
27958
 
27959
- #: includes/wc-core-functions.php:555
27960
  msgid "Jamaican dollar"
27961
  msgstr ""
27962
 
27963
- #: includes/wc-core-functions.php:556
27964
  msgid "Jordanian dinar"
27965
  msgstr ""
27966
 
27967
- #: includes/wc-core-functions.php:557
27968
  msgid "Japanese yen"
27969
  msgstr ""
27970
 
27971
- #: includes/wc-core-functions.php:558
27972
  msgid "Kenyan shilling"
27973
  msgstr ""
27974
 
27975
- #: includes/wc-core-functions.php:559
27976
  msgid "Kyrgyzstani som"
27977
  msgstr ""
27978
 
27979
- #: includes/wc-core-functions.php:560
27980
  msgid "Cambodian riel"
27981
  msgstr ""
27982
 
27983
- #: includes/wc-core-functions.php:561
27984
  msgid "Comorian franc"
27985
  msgstr ""
27986
 
27987
- #: includes/wc-core-functions.php:562
27988
  msgid "North Korean won"
27989
  msgstr ""
27990
 
27991
- #: includes/wc-core-functions.php:563
27992
  msgid "South Korean won"
27993
  msgstr ""
27994
 
27995
- #: includes/wc-core-functions.php:564
27996
  msgid "Kuwaiti dinar"
27997
  msgstr ""
27998
 
27999
- #: includes/wc-core-functions.php:565
28000
  msgid "Cayman Islands dollar"
28001
  msgstr ""
28002
 
28003
- #: includes/wc-core-functions.php:566
28004
  msgid "Kazakhstani tenge"
28005
  msgstr ""
28006
 
28007
- #: includes/wc-core-functions.php:567
28008
  msgid "Lao kip"
28009
  msgstr ""
28010
 
28011
- #: includes/wc-core-functions.php:568
28012
  msgid "Lebanese pound"
28013
  msgstr ""
28014
 
28015
- #: includes/wc-core-functions.php:569
28016
  msgid "Sri Lankan rupee"
28017
  msgstr ""
28018
 
28019
- #: includes/wc-core-functions.php:570
28020
  msgid "Liberian dollar"
28021
  msgstr ""
28022
 
28023
- #: includes/wc-core-functions.php:571
28024
  msgid "Lesotho loti"
28025
  msgstr ""
28026
 
28027
- #: includes/wc-core-functions.php:572
28028
  msgid "Libyan dinar"
28029
  msgstr ""
28030
 
28031
- #: includes/wc-core-functions.php:573
28032
  msgid "Moroccan dirham"
28033
  msgstr ""
28034
 
28035
- #: includes/wc-core-functions.php:574
28036
  msgid "Moldovan leu"
28037
  msgstr ""
28038
 
28039
- #: includes/wc-core-functions.php:575
28040
  msgid "Malagasy ariary"
28041
  msgstr ""
28042
 
28043
- #: includes/wc-core-functions.php:576
28044
  msgid "Macedonian denar"
28045
  msgstr ""
28046
 
28047
- #: includes/wc-core-functions.php:577
28048
  msgid "Burmese kyat"
28049
  msgstr ""
28050
 
28051
- #: includes/wc-core-functions.php:578
28052
  msgid "Mongolian t&ouml;gr&ouml;g"
28053
  msgstr ""
28054
 
28055
- #: includes/wc-core-functions.php:579
28056
  msgid "Macanese pataca"
28057
  msgstr ""
28058
 
28059
- #: includes/wc-core-functions.php:580
28060
  msgid "Mauritanian ouguiya"
28061
  msgstr ""
28062
 
28063
- #: includes/wc-core-functions.php:581
28064
  msgid "Mauritian rupee"
28065
  msgstr ""
28066
 
28067
- #: includes/wc-core-functions.php:582
28068
  msgid "Maldivian rufiyaa"
28069
  msgstr ""
28070
 
28071
- #: includes/wc-core-functions.php:583
28072
  msgid "Malawian kwacha"
28073
  msgstr ""
28074
 
28075
- #: includes/wc-core-functions.php:584
28076
  msgid "Mexican peso"
28077
  msgstr ""
28078
 
28079
- #: includes/wc-core-functions.php:585
28080
  msgid "Malaysian ringgit"
28081
  msgstr ""
28082
 
28083
- #: includes/wc-core-functions.php:586
28084
  msgid "Mozambican metical"
28085
  msgstr ""
28086
 
28087
- #: includes/wc-core-functions.php:587
28088
  msgid "Namibian dollar"
28089
  msgstr ""
28090
 
28091
- #: includes/wc-core-functions.php:588
28092
  msgid "Nigerian naira"
28093
  msgstr ""
28094
 
28095
- #: includes/wc-core-functions.php:589
28096
  msgid "Nicaraguan c&oacute;rdoba"
28097
  msgstr ""
28098
 
28099
- #: includes/wc-core-functions.php:590
28100
  msgid "Norwegian krone"
28101
  msgstr ""
28102
 
28103
- #: includes/wc-core-functions.php:591
28104
  msgid "Nepalese rupee"
28105
  msgstr ""
28106
 
28107
- #: includes/wc-core-functions.php:592
28108
  msgid "New Zealand dollar"
28109
  msgstr ""
28110
 
28111
- #: includes/wc-core-functions.php:593
28112
  msgid "Omani rial"
28113
  msgstr ""
28114
 
28115
- #: includes/wc-core-functions.php:594
28116
  msgid "Panamanian balboa"
28117
  msgstr ""
28118
 
28119
- #: includes/wc-core-functions.php:595
28120
  msgid "Sol"
28121
  msgstr ""
28122
 
28123
- #: includes/wc-core-functions.php:596
28124
  msgid "Papua New Guinean kina"
28125
  msgstr ""
28126
 
28127
- #: includes/wc-core-functions.php:597
28128
  msgid "Philippine peso"
28129
  msgstr ""
28130
 
28131
- #: includes/wc-core-functions.php:598
28132
  msgid "Pakistani rupee"
28133
  msgstr ""
28134
 
28135
- #: includes/wc-core-functions.php:599
28136
  msgid "Polish z&#x142;oty"
28137
  msgstr ""
28138
 
28139
- #: includes/wc-core-functions.php:600
28140
  msgid "Transnistrian ruble"
28141
  msgstr ""
28142
 
28143
- #: includes/wc-core-functions.php:601
28144
  msgid "Paraguayan guaran&iacute;"
28145
  msgstr ""
28146
 
28147
- #: includes/wc-core-functions.php:602
28148
  msgid "Qatari riyal"
28149
  msgstr ""
28150
 
28151
- #: includes/wc-core-functions.php:603
28152
  msgid "Romanian leu"
28153
  msgstr ""
28154
 
28155
- #: includes/wc-core-functions.php:604
28156
  msgid "Serbian dinar"
28157
  msgstr ""
28158
 
28159
- #: includes/wc-core-functions.php:605
28160
  msgid "Russian ruble"
28161
  msgstr ""
28162
 
28163
- #: includes/wc-core-functions.php:606
28164
  msgid "Rwandan franc"
28165
  msgstr ""
28166
 
28167
- #: includes/wc-core-functions.php:607
28168
  msgid "Saudi riyal"
28169
  msgstr ""
28170
 
28171
- #: includes/wc-core-functions.php:608
28172
  msgid "Solomon Islands dollar"
28173
  msgstr ""
28174
 
28175
- #: includes/wc-core-functions.php:609
28176
  msgid "Seychellois rupee"
28177
  msgstr ""
28178
 
28179
- #: includes/wc-core-functions.php:610
28180
  msgid "Sudanese pound"
28181
  msgstr ""
28182
 
28183
- #: includes/wc-core-functions.php:611
28184
  msgid "Swedish krona"
28185
  msgstr ""
28186
 
28187
- #: includes/wc-core-functions.php:612
28188
  msgid "Singapore dollar"
28189
  msgstr ""
28190
 
28191
- #: includes/wc-core-functions.php:613
28192
  msgid "Saint Helena pound"
28193
  msgstr ""
28194
 
28195
- #: includes/wc-core-functions.php:614
28196
  msgid "Sierra Leonean leone"
28197
  msgstr ""
28198
 
28199
- #: includes/wc-core-functions.php:615
28200
  msgid "Somali shilling"
28201
  msgstr ""
28202
 
28203
- #: includes/wc-core-functions.php:616
28204
  msgid "Surinamese dollar"
28205
  msgstr ""
28206
 
28207
- #: includes/wc-core-functions.php:617
28208
  msgid "South Sudanese pound"
28209
  msgstr ""
28210
 
28211
- #: includes/wc-core-functions.php:618
28212
  msgid "S&atilde;o Tom&eacute; and Pr&iacute;ncipe dobra"
28213
  msgstr ""
28214
 
28215
- #: includes/wc-core-functions.php:619
28216
  msgid "Syrian pound"
28217
  msgstr ""
28218
 
28219
- #: includes/wc-core-functions.php:620
28220
  msgid "Swazi lilangeni"
28221
  msgstr ""
28222
 
28223
- #: includes/wc-core-functions.php:621
28224
  msgid "Thai baht"
28225
  msgstr ""
28226
 
28227
- #: includes/wc-core-functions.php:622
28228
  msgid "Tajikistani somoni"
28229
  msgstr ""
28230
 
28231
- #: includes/wc-core-functions.php:623
28232
  msgid "Turkmenistan manat"
28233
  msgstr ""
28234
 
28235
- #: includes/wc-core-functions.php:624
28236
  msgid "Tunisian dinar"
28237
  msgstr ""
28238
 
28239
- #: includes/wc-core-functions.php:625
28240
  msgid "Tongan pa&#x2bb;anga"
28241
  msgstr ""
28242
 
28243
- #: includes/wc-core-functions.php:626
28244
  msgid "Turkish lira"
28245
  msgstr ""
28246
 
28247
- #: includes/wc-core-functions.php:627
28248
  msgid "Trinidad and Tobago dollar"
28249
  msgstr ""
28250
 
28251
- #: includes/wc-core-functions.php:628
28252
  msgid "New Taiwan dollar"
28253
  msgstr ""
28254
 
28255
- #: includes/wc-core-functions.php:629
28256
  msgid "Tanzanian shilling"
28257
  msgstr ""
28258
 
28259
- #: includes/wc-core-functions.php:630
28260
  msgid "Ukrainian hryvnia"
28261
  msgstr ""
28262
 
28263
- #: includes/wc-core-functions.php:631
28264
  msgid "Ugandan shilling"
28265
  msgstr ""
28266
 
28267
- #: includes/wc-core-functions.php:632
28268
  msgid "United States (US) dollar"
28269
  msgstr ""
28270
 
28271
- #: includes/wc-core-functions.php:633
28272
  msgid "Uruguayan peso"
28273
  msgstr ""
28274
 
28275
- #: includes/wc-core-functions.php:634
28276
  msgid "Uzbekistani som"
28277
  msgstr ""
28278
 
28279
- #: includes/wc-core-functions.php:635
28280
  msgid "Venezuelan bol&iacute;var"
28281
  msgstr ""
28282
 
28283
- #: includes/wc-core-functions.php:636
28284
  msgid "Bol&iacute;var soberano"
28285
  msgstr ""
28286
 
28287
- #: includes/wc-core-functions.php:637
28288
  msgid "Vietnamese &#x111;&#x1ed3;ng"
28289
  msgstr ""
28290
 
28291
- #: includes/wc-core-functions.php:638
28292
  msgid "Vanuatu vatu"
28293
  msgstr ""
28294
 
28295
- #: includes/wc-core-functions.php:639
28296
  msgid "Samoan t&#x101;l&#x101;"
28297
  msgstr ""
28298
 
28299
- #: includes/wc-core-functions.php:640
28300
  msgid "Central African CFA franc"
28301
  msgstr ""
28302
 
28303
- #: includes/wc-core-functions.php:641
28304
  msgid "East Caribbean dollar"
28305
  msgstr ""
28306
 
28307
- #: includes/wc-core-functions.php:642
28308
  msgid "West African CFA franc"
28309
  msgstr ""
28310
 
28311
- #: includes/wc-core-functions.php:643
28312
  msgid "CFP franc"
28313
  msgstr ""
28314
 
28315
- #: includes/wc-core-functions.php:644
28316
  msgid "Yemeni rial"
28317
  msgstr ""
28318
 
28319
- #: includes/wc-core-functions.php:645
28320
  msgid "South African rand"
28321
  msgstr ""
28322
 
28323
- #: includes/wc-core-functions.php:646
28324
  msgid "Zambian kwacha"
28325
  msgstr ""
28326
 
28327
- #: includes/wc-core-functions.php:1487
28328
  msgid "MasterCard"
28329
  msgstr ""
28330
 
28331
- #: includes/wc-core-functions.php:1488
28332
  #: packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php:229
28333
  msgid "Visa"
28334
  msgstr ""
28335
 
28336
- #: includes/wc-core-functions.php:1489
28337
  #: packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php:244
28338
  msgid "Discover"
28339
  msgstr ""
28340
 
28341
- #: includes/wc-core-functions.php:1490
28342
  #: packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php:233
28343
  msgid "American Express"
28344
  msgstr ""
28345
 
28346
- #: includes/wc-core-functions.php:1491
28347
  #: packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php:252
28348
  msgid "Diners"
28349
  msgstr ""
28350
 
28351
- #: includes/wc-core-functions.php:1492
28352
  #: packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php:248
28353
  msgid "JCB"
28354
  msgstr ""
28355
 
28356
  #. translators: 1: class name 2: woocommerce_logging_class 3: WC_Logger_Interface
28357
- #: includes/wc-core-functions.php:1940
28358
  msgid "The class %1$s provided by %2$s filter must implement %3$s."
28359
  msgstr ""
28360
 
28361
  #. translators: 1: wc_load_cart 2: woocommerce_init
28362
- #: includes/wc-core-functions.php:2479
28363
  msgid "%1$s should not be called before the %2$s action."
28364
  msgstr ""
28365
 
@@ -32311,6 +32334,8 @@ msgid "Set up additional payment providers"
32311
  msgstr ""
32312
 
32313
  #: packages/woocommerce-admin/src/Notes/SetUpAdditionalPaymentTypes.php:94
 
 
32314
  msgid "Set up payments"
32315
  msgstr ""
32316
 
@@ -34701,22 +34726,14 @@ msgid "WordPress Dashboard"
34701
  msgstr ""
34702
 
34703
  #: packages/woocommerce-admin/dist/app/index.js:2
34704
- #: packages/woocommerce-admin/dist/chunks/task-list.js:1
34705
- msgid "Choose payment methods"
34706
- msgstr ""
34707
-
34708
- #: packages/woocommerce-admin/dist/app/index.js:2
34709
- #: packages/woocommerce-admin/dist/chunks/task-list.js:1
34710
  msgid "Add tax rates"
34711
  msgstr ""
34712
 
34713
  #: packages/woocommerce-admin/dist/app/index.js:2
34714
- #: packages/woocommerce-admin/dist/chunks/task-list.js:1
34715
  msgid "Personalize your store"
34716
  msgstr ""
34717
 
34718
  #: packages/woocommerce-admin/dist/app/index.js:2
34719
- #: packages/woocommerce-admin/dist/chunks/task-list.js:1
34720
  msgid "Set up shipping costs"
34721
  msgstr ""
34722
 
@@ -36835,6 +36852,7 @@ msgid "Marketing & Merchandising"
36835
  msgstr ""
36836
 
36837
  #: packages/woocommerce-admin/dist/chunks/homescreen.js:1
 
36838
  msgid "Personalize my store"
36839
  msgstr ""
36840
 
@@ -37001,7 +37019,6 @@ msgid "Google Listings and Ads"
37001
  msgstr ""
37002
 
37003
  #: packages/woocommerce-admin/dist/chunks/homescreen.js:1
37004
- #: packages/woocommerce-admin/dist/chunks/profile-wizard.js:1
37005
  #: packages/woocommerce-admin/dist/data/index.js:2
37006
  msgid "MailPoet"
37007
  msgstr ""
@@ -37287,7 +37304,11 @@ msgid "%1$s %2$s will be installed & activated for free."
37287
  msgstr ""
37288
 
37289
  #: packages/woocommerce-admin/dist/chunks/profile-wizard.js:1
37290
- msgid "The default all-in-one solution for WooCommerce email."
 
 
 
 
37291
  msgstr ""
37292
 
37293
  #: packages/woocommerce-admin/dist/chunks/profile-wizard.js:1
@@ -38075,11 +38096,11 @@ msgid "Install %s"
38075
  msgstr ""
38076
 
38077
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38078
- msgid "Add paid extensions to your store"
38079
  msgstr ""
38080
 
38081
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38082
- msgid "Add %s to your store"
38083
  msgstr ""
38084
 
38085
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
@@ -38090,6 +38111,10 @@ msgstr ""
38090
  msgid "2 minutes"
38091
  msgstr ""
38092
 
 
 
 
 
38093
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38094
  msgid "1 minute per product"
38095
  msgstr ""
@@ -38102,12 +38127,16 @@ msgstr ""
38102
  msgid "By setting up, you are agreeing to the <a href=\"https://wordpress.com/tos/\" target=\"_blank\">Terms of Service</a>"
38103
  msgstr ""
38104
 
 
 
 
 
38105
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38106
  msgid "1 minute"
38107
  msgstr ""
38108
 
38109
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38110
- msgid "Get ready to start selling"
38111
  msgstr ""
38112
 
38113
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
2
  # This file is distributed under the same license as the WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce 5.4.0-rc.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2021-05-24T22:44:22+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0-alpha\n"
15
  "X-Domain: woocommerce\n"
27
  #: includes/class-wc-order.php:1695
28
  #: includes/class-wc-order.php:1696
29
  #: includes/class-wc-privacy.php:52
30
+ #: includes/customizer/class-wc-shop-customizer.php:38
31
  #: includes/wc-order-functions.php:971
32
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:62
33
  #: packages/woocommerce-admin/src/Loader.php:1072
8748
  #: includes/admin/settings/views/html-admin-page-shipping-classes.php:54
8749
  #: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:125
8750
  #: includes/admin/settings/views/html-admin-page-shipping-zones.php:78
8751
+ #: includes/class-wc-post-types.php:326
8752
+ #: includes/class-wc-post-types.php:395
8753
+ #: includes/class-wc-post-types.php:460
8754
  #: packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostTypeRegistrar.php:35
8755
  #: templates/myaccount/my-address.php:63
8756
  #: packages/woocommerce-blocks/assets/js/blocks/attribute-filter/edit.js:56
8967
  msgstr ""
8968
 
8969
  #: includes/admin/class-wc-admin-dashboard.php:433
8970
+ #: includes/class-wc-post-types.php:400
8971
  msgid "No orders found"
8972
  msgstr ""
8973
 
9267
  msgstr ""
9268
 
9269
  #: includes/admin/class-wc-admin-menus.php:193
9270
+ #: includes/class-wc-post-types.php:403
9271
  msgctxt "Admin menu name"
9272
  msgid "Orders"
9273
  msgstr ""
9401
  msgstr ""
9402
 
9403
  #: includes/admin/class-wc-admin-permalink-settings.php:74
9404
+ #: includes/wc-core-functions.php:2130
9405
  #: includes/wc-update-functions.php:60
9406
  msgctxt "slug"
9407
  msgid "product-category"
9408
  msgstr ""
9409
 
9410
  #: includes/admin/class-wc-admin-permalink-settings.php:83
9411
+ #: includes/wc-core-functions.php:2131
9412
  #: includes/wc-update-functions.php:61
9413
  msgctxt "slug"
9414
  msgid "product-tag"
9454
 
9455
  #: includes/admin/class-wc-admin-permalink-settings.php:193
9456
  #: includes/admin/class-wc-admin-permalink-settings.php:196
9457
+ #: includes/wc-core-functions.php:2129
9458
  #: includes/wc-update-functions.php:70
9459
  msgctxt "slug"
9460
  msgid "product"
9541
  msgstr ""
9542
 
9543
  #: includes/admin/class-wc-admin-pointers.php:181
9544
+ #: includes/class-wc-post-types.php:136
9545
+ #: includes/class-wc-post-types.php:138
9546
  #: includes/widgets/class-wc-widget-product-tag-cloud.php:29
9547
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:264
9548
  msgid "Product tags"
9945
  #: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:61
9946
  #: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:113
9947
  #: includes/admin/settings/class-wc-settings-general.php:63
9948
+ #: includes/customizer/class-wc-shop-customizer.php:688
9949
  #: includes/rest-api/Controllers/Version2/class-wc-rest-customers-v2-controller.php:220
9950
  #: includes/rest-api/Controllers/Version2/class-wc-rest-customers-v2-controller.php:283
9951
  #: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1117
10031
  #: includes/admin/list-tables/class-wc-admin-list-table-orders.php:384
10032
  #: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:88
10033
  #: includes/class-wc-countries.php:1488
10034
+ #: includes/customizer/class-wc-shop-customizer.php:689
10035
  #: packages/woocommerce-blocks/src/StoreApi/Schemas/BillingAddressSchema.php:46
10036
  #: packages/woocommerce-blocks/assets/js/blocks/cart-checkout/checkout/edit.js:143
10037
  #: packages/woocommerce-blocks/assets/js/blocks/cart-checkout/checkout/form/phone-number/index.js:25
10072
  #: includes/admin/class-wc-admin-reports.php:47
10073
  #: includes/admin/reports/class-wc-report-customer-list.php:219
10074
  #: includes/admin/settings/class-wc-settings-advanced.php:247
10075
+ #: includes/class-wc-post-types.php:391
10076
  #: includes/class-wc-privacy-exporters.php:76
10077
  #: includes/class-wc-query.php:113
10078
  #: includes/wc-account-functions.php:100
11063
  #: includes/admin/class-wc-admin-taxonomies.php:238
11064
  #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:189
11065
  #: includes/admin/settings/class-wc-settings-products.php:27
11066
+ #: includes/class-wc-post-types.php:320
11067
  #: includes/widgets/class-wc-widget-products.php:23
11068
  #: includes/widgets/class-wc-widget-products.php:27
11069
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:193
11844
  #: includes/admin/settings/class-wc-settings-shipping.php:375
11845
  #: includes/admin/views/html-bulk-edit-product.php:166
11846
  #: includes/admin/views/html-quick-edit-product.php:123
11847
+ #: includes/class-wc-post-types.php:183
11848
  #: includes/export/class-wc-product-csv-exporter.php:137
11849
  msgid "Shipping class"
11850
  msgstr ""
12233
  #: includes/admin/reports/class-wc-report-downloads.php:219
12234
  #: includes/admin/reports/class-wc-report-stock.php:173
12235
  #: includes/class-wc-emails.php:447
12236
+ #: includes/class-wc-post-types.php:321
12237
  #: includes/class-wc-privacy-exporters.php:353
12238
  #: includes/data-stores/class-wc-product-data-store-cpt.php:122
12239
  #: includes/wc-account-functions.php:218
12264
 
12265
  #: includes/admin/importers/views/html-csv-import-done.php:102
12266
  #: includes/class-wc-auth.php:94
12267
+ #: includes/class-wc-post-types.php:330
12268
  #: includes/class-wc-product-grouped.php:42
12269
  msgid "View products"
12270
  msgstr ""
13147
  msgstr ""
13148
 
13149
  #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:117
13150
+ #: includes/class-wc-post-types.php:375
13151
  #: packages/woocommerce-admin/src/API/Reports/Products/Controller.php:394
13152
  #: packages/woocommerce-admin/src/Features/Analytics.php:179
13153
  #: packages/woocommerce-admin/src/ReportCSVEmail.php:41
13466
  #: includes/admin/meta-boxes/views/html-order-items.php:386
13467
  #: packages/woocommerce-admin/dist/app/index.js:2
13468
  #: packages/woocommerce-admin/dist/chunks/homescreen.js:1
 
13469
  msgid "Add products"
13470
  msgstr ""
13471
 
13487
  msgstr ""
13488
 
13489
  #: includes/admin/meta-boxes/views/html-order-items.php:464
13490
+ #: includes/customizer/class-wc-shop-customizer.php:711
13491
  #: includes/gateways/paypal/includes/settings-paypal.php:122
13492
  #: includes/gateways/paypal/includes/settings-paypal.php:136
13493
  #: includes/gateways/paypal/includes/settings-paypal.php:144
14888
  msgstr ""
14889
 
14890
  #: includes/admin/settings/class-wc-settings-accounts.php:138
14891
+ #: includes/customizer/class-wc-shop-customizer.php:767
14892
+ #: includes/customizer/class-wc-shop-customizer.php:817
14893
  msgid "Privacy policy"
14894
  msgstr ""
14895
 
14917
  msgstr ""
14918
 
14919
  #: includes/admin/settings/class-wc-settings-accounts.php:157
14920
+ #: includes/customizer/class-wc-shop-customizer.php:818
14921
  msgid "Optionally add some text about your store privacy policy to show during checkout."
14922
  msgstr ""
14923
 
14924
  #. translators: %s privacy policy page name and link
14925
  #: includes/admin/settings/class-wc-settings-accounts.php:160
14926
+ #: includes/customizer/class-wc-shop-customizer.php:746
14927
  #: includes/wc-template-functions.php:849
14928
  msgid "Your personal data will be used to process your order, support your experience throughout this website, and for other purposes described in our %s."
14929
  msgstr ""
15014
  msgstr ""
15015
 
15016
  #: includes/admin/settings/class-wc-settings-advanced.php:133
15017
+ #: includes/customizer/class-wc-shop-customizer.php:768
15018
+ #: includes/customizer/class-wc-shop-customizer.php:772
15019
+ #: includes/customizer/class-wc-shop-customizer.php:829
15020
  msgid "Terms and conditions"
15021
  msgstr ""
15022
 
15108
  msgstr ""
15109
 
15110
  #: includes/admin/settings/class-wc-settings-advanced.php:256
15111
+ #: includes/class-wc-post-types.php:398
15112
  msgid "View order"
15113
  msgstr ""
15114
 
15942
 
15943
  #: includes/admin/settings/class-wc-settings-shipping.php:51
15944
  #: includes/admin/settings/views/html-admin-page-shipping-classes.php:14
15945
+ #: includes/class-wc-post-types.php:180
15946
  msgid "Shipping classes"
15947
  msgstr ""
15948
 
17575
 
17576
  #: includes/admin/views/html-bulk-edit-product.php:190
17577
  #: includes/admin/views/html-quick-edit-product.php:148
17578
+ #: includes/customizer/class-wc-shop-customizer.php:710
17579
  #: includes/wc-product-functions.php:813
17580
  msgid "Hidden"
17581
  msgstr ""
18351
  msgstr ""
18352
 
18353
  #: includes/class-wc-countries.php:699
18354
+ #: includes/customizer/class-wc-shop-customizer.php:687
18355
  msgid "Company name"
18356
  msgstr ""
18357
 
19191
  msgid "No categories found"
19192
  msgstr ""
19193
 
19194
+ #: includes/class-wc-post-types.php:107
19195
+ msgid "Product Category Link"
19196
+ msgstr ""
19197
+
19198
+ #: includes/class-wc-post-types.php:108
19199
+ msgid "A link to a product category."
19200
+ msgstr ""
19201
+
19202
+ #: includes/class-wc-post-types.php:139
19203
  msgid "Tag"
19204
  msgstr ""
19205
 
19206
+ #: includes/class-wc-post-types.php:140
19207
  msgctxt "Admin menu name"
19208
  msgid "Tags"
19209
  msgstr ""
19210
 
19211
+ #: includes/class-wc-post-types.php:141
19212
  msgid "Search tags"
19213
  msgstr ""
19214
 
19215
+ #: includes/class-wc-post-types.php:142
19216
  msgid "All tags"
19217
  msgstr ""
19218
 
19219
+ #: includes/class-wc-post-types.php:143
19220
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:274
19221
  msgid "Edit tag"
19222
  msgstr ""
19223
 
19224
+ #: includes/class-wc-post-types.php:144
19225
  msgid "Update tag"
19226
  msgstr ""
19227
 
19228
+ #: includes/class-wc-post-types.php:145
19229
  msgid "Add new tag"
19230
  msgstr ""
19231
 
19232
+ #: includes/class-wc-post-types.php:146
19233
  msgid "New tag name"
19234
  msgstr ""
19235
 
19236
+ #: includes/class-wc-post-types.php:147
19237
  msgid "Popular tags"
19238
  msgstr ""
19239
 
19240
+ #: includes/class-wc-post-types.php:148
19241
  msgid "Separate tags with commas"
19242
  msgstr ""
19243
 
19244
+ #: includes/class-wc-post-types.php:149
19245
  msgid "Add or remove tags"
19246
  msgstr ""
19247
 
19248
+ #: includes/class-wc-post-types.php:150
19249
  msgid "Choose from the most used tags"
19250
  msgstr ""
19251
 
19252
+ #: includes/class-wc-post-types.php:151
19253
  msgid "No tags found"
19254
  msgstr ""
19255
 
19256
+ #: includes/class-wc-post-types.php:152
19257
+ msgid "Product Tag Link"
19258
+ msgstr ""
19259
+
19260
+ #: includes/class-wc-post-types.php:153
19261
+ msgid "A link to a product tag."
19262
+ msgstr ""
19263
+
19264
+ #: includes/class-wc-post-types.php:182
19265
  msgid "Product shipping classes"
19266
  msgstr ""
19267
 
19268
+ #: includes/class-wc-post-types.php:184
19269
  msgctxt "Admin menu name"
19270
  msgid "Shipping classes"
19271
  msgstr ""
19272
 
19273
+ #: includes/class-wc-post-types.php:185
19274
  msgid "Search shipping classes"
19275
  msgstr ""
19276
 
19277
+ #: includes/class-wc-post-types.php:186
19278
  msgid "All shipping classes"
19279
  msgstr ""
19280
 
19281
+ #: includes/class-wc-post-types.php:187
19282
  msgid "Parent shipping class"
19283
  msgstr ""
19284
 
19285
+ #: includes/class-wc-post-types.php:188
19286
  msgid "Parent shipping class:"
19287
  msgstr ""
19288
 
19289
+ #: includes/class-wc-post-types.php:189
19290
  msgid "Edit shipping class"
19291
  msgstr ""
19292
 
19293
+ #: includes/class-wc-post-types.php:190
19294
  msgid "Update shipping class"
19295
  msgstr ""
19296
 
19297
+ #: includes/class-wc-post-types.php:191
19298
  msgid "Add new shipping class"
19299
  msgstr ""
19300
 
19301
+ #: includes/class-wc-post-types.php:192
19302
  msgid "New shipping class Name"
19303
  msgstr ""
19304
 
19305
  #. translators: %s: attribute name
19306
+ #: includes/class-wc-post-types.php:227
19307
  msgctxt "Product Attribute"
19308
  msgid "Product %s"
19309
  msgstr ""
19310
 
19311
  #. translators: %s: attribute name
19312
+ #: includes/class-wc-post-types.php:230
19313
  msgid "Search %s"
19314
  msgstr ""
19315
 
19316
  #. translators: %s: attribute name
19317
+ #: includes/class-wc-post-types.php:232
19318
  msgid "All %s"
19319
  msgstr ""
19320
 
19321
  #. translators: %s: attribute name
19322
+ #: includes/class-wc-post-types.php:234
19323
  msgid "Parent %s"
19324
  msgstr ""
19325
 
19326
  #. translators: %s: attribute name
19327
+ #: includes/class-wc-post-types.php:236
19328
  msgid "Parent %s:"
19329
  msgstr ""
19330
 
19331
  #. translators: %s: attribute name
19332
+ #: includes/class-wc-post-types.php:238
19333
  msgid "Edit %s"
19334
  msgstr ""
19335
 
19336
  #. translators: %s: attribute name
19337
+ #: includes/class-wc-post-types.php:240
19338
  msgid "Update %s"
19339
  msgstr ""
19340
 
19341
  #. translators: %s: attribute name
19342
+ #: includes/class-wc-post-types.php:242
19343
  msgid "Add new %s"
19344
  msgstr ""
19345
 
19346
  #. translators: %s: attribute name
19347
+ #: includes/class-wc-post-types.php:244
19348
  msgid "New %s"
19349
  msgstr ""
19350
 
19351
  #. translators: %s: attribute name
19352
+ #: includes/class-wc-post-types.php:246
19353
  msgid "No &quot;%s&quot; found"
19354
  msgstr ""
19355
 
19356
  #. translators: %s: attribute name
19357
+ #: includes/class-wc-post-types.php:248
19358
  msgid "&larr; Back to \"%s\" attributes"
19359
  msgstr ""
19360
 
19361
+ #: includes/class-wc-post-types.php:322
19362
  #: packages/woocommerce-admin/dist/chunks/analytics-report-products.js:1
19363
  #: packages/woocommerce-admin/dist/chunks/analytics-report-stock.js:1
19364
  #: packages/woocommerce-admin/dist/chunks/dashboard-charts.js:1
19367
  msgid "All Products"
19368
  msgstr ""
19369
 
19370
+ #: includes/class-wc-post-types.php:323
19371
  msgctxt "Admin menu name"
19372
  msgid "Products"
19373
  msgstr ""
19374
 
19375
+ #: includes/class-wc-post-types.php:324
19376
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:143
19377
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:174
19378
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:204
19379
  msgid "Add New"
19380
  msgstr ""
19381
 
19382
+ #: includes/class-wc-post-types.php:325
19383
  #: packages/woocommerce-blocks/assets/js/blocks/price-filter/edit.js:139
19384
  #: packages/woocommerce-blocks/assets/js/blocks/products/utils.js:39
19385
  #: packages/woocommerce-blocks/build/all-products.js:1
19387
  msgid "Add new product"
19388
  msgstr ""
19389
 
19390
+ #: includes/class-wc-post-types.php:327
19391
  #: includes/tracks/events/class-wc-products-tracking.php:130
19392
  msgid "Edit product"
19393
  msgstr ""
19394
 
19395
+ #: includes/class-wc-post-types.php:328
19396
  msgid "New product"
19397
  msgstr ""
19398
 
19399
+ #: includes/class-wc-post-types.php:329
19400
  msgid "View product"
19401
  msgstr ""
19402
 
19403
+ #: includes/class-wc-post-types.php:331
19404
  #: packages/woocommerce-admin/dist/chunks/5.js:1
19405
  #: packages/woocommerce-admin/dist/chunks/analytics-report-variations.js:1
19406
  msgid "Search products"
19407
  msgstr ""
19408
 
19409
+ #: includes/class-wc-post-types.php:332
19410
  #: packages/woocommerce-blocks/assets/js/base/components/product-list/no-matching-products.js:19
19411
  #: packages/woocommerce-blocks/assets/js/base/components/product-list/product-list.js:92
19412
  #: packages/woocommerce-blocks/build/all-products-frontend.js:6
19414
  msgid "No products found"
19415
  msgstr ""
19416
 
19417
+ #: includes/class-wc-post-types.php:333
19418
  msgid "No products found in trash"
19419
  msgstr ""
19420
 
19421
+ #: includes/class-wc-post-types.php:334
19422
  msgid "Parent product"
19423
  msgstr ""
19424
 
19425
+ #: includes/class-wc-post-types.php:335
19426
  msgid "Product image"
19427
  msgstr ""
19428
 
19429
+ #: includes/class-wc-post-types.php:336
19430
  msgid "Set product image"
19431
  msgstr ""
19432
 
19433
+ #: includes/class-wc-post-types.php:337
19434
  msgid "Remove product image"
19435
  msgstr ""
19436
 
19437
+ #: includes/class-wc-post-types.php:338
19438
  msgid "Use as product image"
19439
  msgstr ""
19440
 
19441
+ #: includes/class-wc-post-types.php:339
19442
  msgid "Insert into product"
19443
  msgstr ""
19444
 
19445
+ #: includes/class-wc-post-types.php:340
19446
  msgid "Uploaded to this product"
19447
  msgstr ""
19448
 
19449
+ #: includes/class-wc-post-types.php:341
19450
  msgid "Filter products"
19451
  msgstr ""
19452
 
19453
+ #: includes/class-wc-post-types.php:342
19454
  msgid "Products navigation"
19455
  msgstr ""
19456
 
19457
+ #: includes/class-wc-post-types.php:343
19458
  msgid "Products list"
19459
  msgstr ""
19460
 
19461
+ #: includes/class-wc-post-types.php:344
19462
+ msgid "Product Link"
19463
+ msgstr ""
19464
+
19465
+ #: includes/class-wc-post-types.php:345
19466
+ msgid "A link to a product."
19467
+ msgstr ""
19468
+
19469
+ #: includes/class-wc-post-types.php:347
19470
  msgid "This is where you can add new products to your store."
19471
  msgstr ""
19472
 
19473
+ #: includes/class-wc-post-types.php:392
19474
  msgctxt "shop_order post type singular name"
19475
  msgid "Order"
19476
  msgstr ""
19477
 
19478
+ #: includes/class-wc-post-types.php:393
19479
  msgid "Add order"
19480
  msgstr ""
19481
 
19482
+ #: includes/class-wc-post-types.php:394
19483
  msgid "Add new order"
19484
  msgstr ""
19485
 
19486
+ #: includes/class-wc-post-types.php:396
19487
  msgid "Edit order"
19488
  msgstr ""
19489
 
19490
+ #: includes/class-wc-post-types.php:397
19491
  #: includes/emails/class-wc-email-new-order.php:31
19492
  msgid "New order"
19493
  msgstr ""
19494
 
19495
+ #: includes/class-wc-post-types.php:399
19496
  msgid "Search orders"
19497
  msgstr ""
19498
 
19499
+ #: includes/class-wc-post-types.php:401
19500
  msgid "No orders found in trash"
19501
  msgstr ""
19502
 
19503
+ #: includes/class-wc-post-types.php:402
19504
  msgid "Parent orders"
19505
  msgstr ""
19506
 
19507
+ #: includes/class-wc-post-types.php:404
19508
  msgid "Filter orders"
19509
  msgstr ""
19510
 
19511
+ #: includes/class-wc-post-types.php:405
19512
  msgid "Orders navigation"
19513
  msgstr ""
19514
 
19515
+ #: includes/class-wc-post-types.php:406
19516
  msgid "Orders list"
19517
  msgstr ""
19518
 
19519
+ #: includes/class-wc-post-types.php:408
19520
  msgid "This is where store orders are stored."
19521
  msgstr ""
19522
 
19523
+ #: includes/class-wc-post-types.php:431
19524
  #: packages/woocommerce-admin/dist/chunks/5.js:1
19525
  msgid "Refunds"
19526
  msgstr ""
19527
 
19528
+ #: includes/class-wc-post-types.php:455
19529
  #: packages/woocommerce-admin/includes/connect-existing-pages.php:163
19530
  #: packages/woocommerce-admin/src/API/Reports/Revenue/Stats/Controller.php:453
19531
  #: packages/woocommerce-admin/src/Features/Analytics.php:199
19545
  msgid "Coupons"
19546
  msgstr ""
19547
 
19548
+ #: includes/class-wc-post-types.php:456
19549
  msgid "Coupon"
19550
  msgstr ""
19551
 
19552
+ #: includes/class-wc-post-types.php:457
19553
  msgctxt "Admin menu name"
19554
  msgid "Coupons"
19555
  msgstr ""
19556
 
19557
+ #: includes/class-wc-post-types.php:458
19558
  msgid "Add coupon"
19559
  msgstr ""
19560
 
19561
+ #: includes/class-wc-post-types.php:459
19562
  msgid "Add new coupon"
19563
  msgstr ""
19564
 
19565
+ #: includes/class-wc-post-types.php:461
19566
  msgid "Edit coupon"
19567
  msgstr ""
19568
 
19569
+ #: includes/class-wc-post-types.php:462
19570
  msgid "New coupon"
19571
  msgstr ""
19572
 
19573
+ #: includes/class-wc-post-types.php:463
19574
  msgid "View coupon"
19575
  msgstr ""
19576
 
19577
+ #: includes/class-wc-post-types.php:464
19578
  #: packages/woocommerce-admin/dist/chunks/5.js:1
19579
  msgid "Search coupons"
19580
  msgstr ""
19581
 
19582
+ #: includes/class-wc-post-types.php:465
19583
  msgid "No coupons found"
19584
  msgstr ""
19585
 
19586
+ #: includes/class-wc-post-types.php:466
19587
  msgid "No coupons found in trash"
19588
  msgstr ""
19589
 
19590
+ #: includes/class-wc-post-types.php:467
19591
  msgid "Parent coupon"
19592
  msgstr ""
19593
 
19594
+ #: includes/class-wc-post-types.php:468
19595
  msgid "Filter coupons"
19596
  msgstr ""
19597
 
19598
+ #: includes/class-wc-post-types.php:469
19599
  msgid "Coupons navigation"
19600
  msgstr ""
19601
 
19602
+ #: includes/class-wc-post-types.php:470
19603
  msgid "Coupons list"
19604
  msgstr ""
19605
 
19606
+ #: includes/class-wc-post-types.php:472
19607
  msgid "This is where you can add new coupons that customers can use in your store."
19608
  msgstr ""
19609
 
19610
+ #: includes/class-wc-post-types.php:504
19611
  msgid "Category added."
19612
  msgstr ""
19613
 
19614
+ #: includes/class-wc-post-types.php:505
19615
  msgid "Category deleted."
19616
  msgstr ""
19617
 
19618
+ #: includes/class-wc-post-types.php:506
19619
  msgid "Category updated."
19620
  msgstr ""
19621
 
19622
+ #: includes/class-wc-post-types.php:507
19623
  msgid "Category not added."
19624
  msgstr ""
19625
 
19626
+ #: includes/class-wc-post-types.php:508
19627
  msgid "Category not updated."
19628
  msgstr ""
19629
 
19630
+ #: includes/class-wc-post-types.php:509
19631
  msgid "Categories deleted."
19632
  msgstr ""
19633
 
19634
+ #: includes/class-wc-post-types.php:514
19635
  msgid "Tag added."
19636
  msgstr ""
19637
 
19638
+ #: includes/class-wc-post-types.php:515
19639
  msgid "Tag deleted."
19640
  msgstr ""
19641
 
19642
+ #: includes/class-wc-post-types.php:516
19643
  msgid "Tag updated."
19644
  msgstr ""
19645
 
19646
+ #: includes/class-wc-post-types.php:517
19647
  msgid "Tag not added."
19648
  msgstr ""
19649
 
19650
+ #: includes/class-wc-post-types.php:518
19651
  msgid "Tag not updated."
19652
  msgstr ""
19653
 
19654
+ #: includes/class-wc-post-types.php:519
19655
  msgid "Tags deleted."
19656
  msgstr ""
19657
 
19658
  #. translators: %s: taxonomy label
19659
+ #: includes/class-wc-post-types.php:535
19660
  msgctxt "taxonomy term messages"
19661
  msgid "%s added"
19662
  msgstr ""
19663
 
19664
  #. translators: %s: taxonomy label
 
19665
  #: includes/class-wc-post-types.php:537
19666
+ #: includes/class-wc-post-types.php:545
19667
  msgctxt "taxonomy term messages"
19668
  msgid "%s deleted"
19669
  msgstr ""
19670
 
19671
  #. translators: %s: taxonomy label
19672
+ #: includes/class-wc-post-types.php:539
19673
  msgctxt "taxonomy term messages"
19674
  msgid "%s updated"
19675
  msgstr ""
19676
 
19677
  #. translators: %s: taxonomy label
19678
+ #: includes/class-wc-post-types.php:541
19679
  msgctxt "taxonomy term messages"
19680
  msgid "%s not added"
19681
  msgstr ""
19682
 
19683
  #. translators: %s: taxonomy label
19684
+ #: includes/class-wc-post-types.php:543
19685
  msgctxt "taxonomy term messages"
19686
  msgid "%s not updated"
19687
  msgstr ""
19688
 
19689
+ #: includes/class-wc-post-types.php:563
19690
  #: includes/wc-order-functions.php:95
19691
  msgctxt "Order status"
19692
  msgid "Pending payment"
19693
  msgstr ""
19694
 
19695
  #. translators: %s: number of orders
19696
+ #: includes/class-wc-post-types.php:569
19697
  msgid "Pending payment <span class=\"count\">(%s)</span>"
19698
  msgid_plural "Pending payment <span class=\"count\">(%s)</span>"
19699
  msgstr[0] ""
19700
  msgstr[1] ""
19701
 
19702
+ #: includes/class-wc-post-types.php:572
19703
  #: includes/wc-order-functions.php:96
19704
  msgctxt "Order status"
19705
  msgid "Processing"
19706
  msgstr ""
19707
 
19708
  #. translators: %s: number of orders
19709
+ #: includes/class-wc-post-types.php:578
19710
  msgid "Processing <span class=\"count\">(%s)</span>"
19711
  msgid_plural "Processing <span class=\"count\">(%s)</span>"
19712
  msgstr[0] ""
19713
  msgstr[1] ""
19714
 
19715
+ #: includes/class-wc-post-types.php:581
19716
  #: includes/wc-order-functions.php:97
19717
  msgctxt "Order status"
19718
  msgid "On hold"
19719
  msgstr ""
19720
 
19721
  #. translators: %s: number of orders
19722
+ #: includes/class-wc-post-types.php:587
19723
  msgid "On hold <span class=\"count\">(%s)</span>"
19724
  msgid_plural "On hold <span class=\"count\">(%s)</span>"
19725
  msgstr[0] ""
19726
  msgstr[1] ""
19727
 
19728
+ #: includes/class-wc-post-types.php:590
19729
  #: includes/wc-order-functions.php:98
19730
  msgctxt "Order status"
19731
  msgid "Completed"
19732
  msgstr ""
19733
 
19734
  #. translators: %s: number of orders
19735
+ #: includes/class-wc-post-types.php:596
19736
  msgid "Completed <span class=\"count\">(%s)</span>"
19737
  msgid_plural "Completed <span class=\"count\">(%s)</span>"
19738
  msgstr[0] ""
19739
  msgstr[1] ""
19740
 
19741
+ #: includes/class-wc-post-types.php:599
19742
  #: includes/wc-order-functions.php:99
19743
  msgctxt "Order status"
19744
  msgid "Cancelled"
19745
  msgstr ""
19746
 
19747
  #. translators: %s: number of orders
19748
+ #: includes/class-wc-post-types.php:605
19749
  msgid "Cancelled <span class=\"count\">(%s)</span>"
19750
  msgid_plural "Cancelled <span class=\"count\">(%s)</span>"
19751
  msgstr[0] ""
19752
  msgstr[1] ""
19753
 
19754
+ #: includes/class-wc-post-types.php:608
19755
  #: includes/wc-order-functions.php:100
19756
  msgctxt "Order status"
19757
  msgid "Refunded"
19758
  msgstr ""
19759
 
19760
  #. translators: %s: number of orders
19761
+ #: includes/class-wc-post-types.php:614
19762
  msgid "Refunded <span class=\"count\">(%s)</span>"
19763
  msgid_plural "Refunded <span class=\"count\">(%s)</span>"
19764
  msgstr[0] ""
19765
  msgstr[1] ""
19766
 
19767
+ #: includes/class-wc-post-types.php:617
19768
  #: includes/wc-order-functions.php:101
19769
  msgctxt "Order status"
19770
  msgid "Failed"
19772
 
19773
  #. translators: %s: number of orders
19774
  #. translators: %s: count
19775
+ #: includes/class-wc-post-types.php:623
19776
  #: packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostStatusRegistrar.php:38
19777
  msgid "Failed <span class=\"count\">(%s)</span>"
19778
  msgid_plural "Failed <span class=\"count\">(%s)</span>"
20362
  msgstr ""
20363
 
20364
  #. translators: 1: error message 2: file name and path 3: line number
20365
+ #: includes/class-woocommerce.php:239
20366
  msgid "%1$s in %2$s on line %3$s"
20367
  msgstr ""
20368
 
20369
+ #: includes/class-woocommerce.php:931
20370
  msgid "You have installed a development version of WooCommerce which requires files to be built and minified. From the plugin directory, run <code>grunt assets</code> to build and minify assets."
20371
  msgstr ""
20372
 
20373
  #. translators: 1: URL of WordPress.org Repository 2: URL of the GitHub Repository release page
20374
+ #: includes/class-woocommerce.php:934
20375
  msgid "Or you can download a pre-built version of the plugin from the <a href=\"%1$s\">WordPress.org repository</a> or by visiting <a href=\"%2$s\">the releases page in the GitHub repository</a>."
20376
  msgstr ""
20377
 
20501
  msgstr ""
20502
 
20503
  #. translators: %d: Setting value
20504
+ #: includes/customizer/class-wc-shop-customizer.php:100
20505
  msgid "The minimum allowed setting is %d"
20506
  msgstr ""
20507
 
20508
  #. translators: %d: Setting value
20509
+ #: includes/customizer/class-wc-shop-customizer.php:102
20510
  msgid "The maximum allowed setting is %d"
20511
  msgstr ""
20512
 
20513
+ #: includes/customizer/class-wc-shop-customizer.php:276
20514
+ #: includes/customizer/class-wc-shop-customizer.php:446
20515
  msgid "Default sorting (custom ordering + name)"
20516
  msgstr ""
20517
 
20518
+ #: includes/customizer/class-wc-shop-customizer.php:277
20519
+ #: includes/customizer/class-wc-shop-customizer.php:447
20520
  msgid "Popularity (sales)"
20521
  msgstr ""
20522
 
20523
+ #: includes/customizer/class-wc-shop-customizer.php:278
20524
+ #: includes/customizer/class-wc-shop-customizer.php:448
20525
  #: includes/widgets/class-wc-widget-rating-filter.php:27
20526
  #: packages/woocommerce-blocks/src/StoreApi/Schemas/ProductCollectionDataSchema.php:87
20527
  #: packages/woocommerce-blocks/assets/js/base/components/product-list/product-sort-select/index.js:34
20531
  msgid "Average rating"
20532
  msgstr ""
20533
 
20534
+ #: includes/customizer/class-wc-shop-customizer.php:279
20535
+ #: includes/customizer/class-wc-shop-customizer.php:449
20536
  msgid "Sort by most recent"
20537
  msgstr ""
20538
 
20539
+ #: includes/customizer/class-wc-shop-customizer.php:280
20540
+ #: includes/customizer/class-wc-shop-customizer.php:450
20541
  msgid "Sort by price (asc)"
20542
  msgstr ""
20543
 
20544
+ #: includes/customizer/class-wc-shop-customizer.php:281
20545
+ #: includes/customizer/class-wc-shop-customizer.php:451
20546
  msgid "Sort by price (desc)"
20547
  msgstr ""
20548
 
20549
+ #: includes/customizer/class-wc-shop-customizer.php:297
20550
  msgid "Store Notice"
20551
  msgstr ""
20552
 
20553
+ #: includes/customizer/class-wc-shop-customizer.php:317
20554
  #: includes/wc-template-functions.php:1056
20555
  msgid "This is a demo store for testing purposes &mdash; no orders shall be fulfilled."
20556
  msgstr ""
20557
 
20558
+ #: includes/customizer/class-wc-shop-customizer.php:328
20559
  msgid "Store notice"
20560
  msgstr ""
20561
 
20562
+ #: includes/customizer/class-wc-shop-customizer.php:329
20563
  msgid "If enabled, this text will be shown site-wide. You can use it to show events or promotions to visitors!"
20564
  msgstr ""
20565
 
20566
+ #: includes/customizer/class-wc-shop-customizer.php:339
20567
  msgid "Enable store notice"
20568
  msgstr ""
20569
 
20570
+ #: includes/customizer/class-wc-shop-customizer.php:367
20571
  msgid "Product Catalog"
20572
  msgstr ""
20573
 
20574
+ #: includes/customizer/class-wc-shop-customizer.php:386
20575
  msgid "Shop page display"
20576
  msgstr ""
20577
 
20578
+ #: includes/customizer/class-wc-shop-customizer.php:387
20579
  msgid "Choose what to display on the main shop page."
20580
  msgstr ""
20581
 
20582
+ #: includes/customizer/class-wc-shop-customizer.php:392
20583
+ #: includes/customizer/class-wc-shop-customizer.php:418
20584
  msgid "Show products"
20585
  msgstr ""
20586
 
20587
+ #: includes/customizer/class-wc-shop-customizer.php:393
20588
  msgid "Show categories"
20589
  msgstr ""
20590
 
20591
+ #: includes/customizer/class-wc-shop-customizer.php:394
20592
  msgid "Show categories &amp; products"
20593
  msgstr ""
20594
 
20595
+ #: includes/customizer/class-wc-shop-customizer.php:412
20596
  msgid "Category display"
20597
  msgstr ""
20598
 
20599
+ #: includes/customizer/class-wc-shop-customizer.php:413
20600
  msgid "Choose what to display on product category pages."
20601
  msgstr ""
20602
 
20603
+ #: includes/customizer/class-wc-shop-customizer.php:419
20604
  msgid "Show subcategories"
20605
  msgstr ""
20606
 
20607
+ #: includes/customizer/class-wc-shop-customizer.php:420
20608
  msgid "Show subcategories &amp; products"
20609
  msgstr ""
20610
 
20611
+ #: includes/customizer/class-wc-shop-customizer.php:438
20612
  msgid "Default product sorting"
20613
  msgstr ""
20614
 
20615
+ #: includes/customizer/class-wc-shop-customizer.php:439
20616
  msgid "How should products be sorted in the catalog by default?"
20617
  msgstr ""
20618
 
20619
+ #: includes/customizer/class-wc-shop-customizer.php:476
20620
  msgid "Products per row"
20621
  msgstr ""
20622
 
20623
+ #: includes/customizer/class-wc-shop-customizer.php:477
20624
  msgid "How many products should be shown per row?"
20625
  msgstr ""
20626
 
20627
+ #: includes/customizer/class-wc-shop-customizer.php:506
20628
  #: packages/woocommerce-admin/dist/components/index.js:2
20629
  #: packages/woocommerce-blocks/build/vendors.js:6
20630
  msgid "Rows per page"
20631
  msgstr ""
20632
 
20633
+ #: includes/customizer/class-wc-shop-customizer.php:507
20634
  msgid "How many rows of products should be shown per page?"
20635
  msgstr ""
20636
 
20637
+ #: includes/customizer/class-wc-shop-customizer.php:529
20638
  msgid "After publishing your changes, new image sizes will be generated automatically."
20639
  msgstr ""
20640
 
20641
  #. translators: 1: tools URL 2: regen thumbs url
20642
+ #: includes/customizer/class-wc-shop-customizer.php:532
20643
  msgid "After publishing your changes, new image sizes may not be shown until you regenerate thumbnails. You can do this from the <a href=\"%1$s\" target=\"_blank\">tools section in WooCommerce</a> or by using a plugin such as <a href=\"%2$s\" target=\"_blank\">Regenerate Thumbnails</a>."
20644
  msgstr ""
20645
 
20646
  #. translators: %s: regen thumbs url
20647
+ #: includes/customizer/class-wc-shop-customizer.php:535
20648
  msgid "After publishing your changes, new image sizes may not be shown until you <a href=\"%s\" target=\"_blank\">Regenerate Thumbnails</a>."
20649
  msgstr ""
20650
 
20651
+ #: includes/customizer/class-wc-shop-customizer.php:541
20652
  msgid "Product Images"
20653
  msgstr ""
20654
 
20655
+ #: includes/customizer/class-wc-shop-customizer.php:563
20656
  msgid "Main image width"
20657
  msgstr ""
20658
 
20659
+ #: includes/customizer/class-wc-shop-customizer.php:564
20660
  msgid "Image size used for the main image on single product pages. These images will remain uncropped."
20661
  msgstr ""
20662
 
20663
+ #: includes/customizer/class-wc-shop-customizer.php:591
20664
  msgid "Thumbnail width"
20665
  msgstr ""
20666
 
20667
+ #: includes/customizer/class-wc-shop-customizer.php:592
20668
  msgid "Image size used for products in the catalog."
20669
  msgstr ""
20670
 
20671
+ #: includes/customizer/class-wc-shop-customizer.php:649
20672
  msgid "Thumbnail cropping"
20673
  msgstr ""
20674
 
20675
+ #: includes/customizer/class-wc-shop-customizer.php:652
20676
  msgid "1:1"
20677
  msgstr ""
20678
 
20679
+ #: includes/customizer/class-wc-shop-customizer.php:653
20680
  msgid "Images will be cropped into a square"
20681
  msgstr ""
20682
 
20683
+ #: includes/customizer/class-wc-shop-customizer.php:656
20684
  #: packages/woocommerce-admin/dist/components/index.js:2
20685
  #: packages/woocommerce-admin/dist/date/index.js:1
20686
  #: packages/woocommerce-blocks/build/vendors.js:6
20687
  msgid "Custom"
20688
  msgstr ""
20689
 
20690
+ #: includes/customizer/class-wc-shop-customizer.php:657
20691
  msgid "Images will be cropped to a custom aspect ratio"
20692
  msgstr ""
20693
 
20694
+ #: includes/customizer/class-wc-shop-customizer.php:660
20695
  msgid "Uncropped"
20696
  msgstr ""
20697
 
20698
+ #: includes/customizer/class-wc-shop-customizer.php:661
20699
  msgid "Images will display using the aspect ratio in which they were uploaded"
20700
  msgstr ""
20701
 
20702
+ #: includes/customizer/class-wc-shop-customizer.php:678
20703
  #: includes/wc-template-functions.php:2136
20704
  #: packages/woocommerce-blocks/assets/js/blocks/cart-checkout/checkout/index.js:17
20705
  #: packages/woocommerce-blocks/build/checkout.js:1
20706
  msgid "Checkout"
20707
  msgstr ""
20708
 
20709
+ #: includes/customizer/class-wc-shop-customizer.php:681
20710
  msgid "These options let you change the appearance of the WooCommerce checkout."
20711
  msgstr ""
20712
 
20713
  #. Translators: %s field name.
20714
+ #: includes/customizer/class-wc-shop-customizer.php:705
20715
  msgid "%s field"
20716
  msgstr ""
20717
 
20718
+ #: includes/customizer/class-wc-shop-customizer.php:712
20719
  msgid "Required"
20720
  msgstr ""
20721
 
20722
  #. translators: %s terms and conditions page name and link
20723
+ #: includes/customizer/class-wc-shop-customizer.php:734
20724
  #: includes/wc-template-functions.php:833
20725
  msgid "I have read and agree to the website %s"
20726
  msgstr ""
20727
 
20728
+ #: includes/customizer/class-wc-shop-customizer.php:758
20729
  msgid "Highlight required fields with an asterisk"
20730
  msgstr ""
20731
 
20732
+ #: includes/customizer/class-wc-shop-customizer.php:790
20733
  msgid "No page set"
20734
  msgstr ""
20735
 
20736
  #. Translators: %s: page name.
20737
+ #: includes/customizer/class-wc-shop-customizer.php:805
20738
  msgid "%s page"
20739
  msgstr ""
20740
 
20741
+ #: includes/customizer/class-wc-shop-customizer.php:830
20742
  msgid "Optionally add some text for the terms checkbox that customers must accept."
20743
  msgstr ""
20744
 
23647
  #: includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:280
23648
  #: includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:79
23649
  #: includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php:44
23650
+ #: includes/wc-core-functions.php:149
23651
  #: includes/wc-order-functions.php:514
23652
  #: includes/wc-order-functions.php:1078
23653
  msgid "Invalid order ID."
27687
  msgstr ""
27688
 
27689
  #. translators: %s template
27690
+ #: includes/wc-core-functions.php:318
27691
  msgid "%s does not exist."
27692
  msgstr ""
27693
 
27694
+ #: includes/wc-core-functions.php:335
27695
  msgid "action_args should not be overwritten when calling wc_get_template."
27696
  msgstr ""
27697
 
27698
+ #: includes/wc-core-functions.php:483
27699
  msgid "United Arab Emirates dirham"
27700
  msgstr ""
27701
 
27702
+ #: includes/wc-core-functions.php:484
27703
  msgid "Afghan afghani"
27704
  msgstr ""
27705
 
27706
+ #: includes/wc-core-functions.php:485
27707
  msgid "Albanian lek"
27708
  msgstr ""
27709
 
27710
+ #: includes/wc-core-functions.php:486
27711
  msgid "Armenian dram"
27712
  msgstr ""
27713
 
27714
+ #: includes/wc-core-functions.php:487
27715
  msgid "Netherlands Antillean guilder"
27716
  msgstr ""
27717
 
27718
+ #: includes/wc-core-functions.php:488
27719
  msgid "Angolan kwanza"
27720
  msgstr ""
27721
 
27722
+ #: includes/wc-core-functions.php:489
27723
  msgid "Argentine peso"
27724
  msgstr ""
27725
 
27726
+ #: includes/wc-core-functions.php:490
27727
  msgid "Australian dollar"
27728
  msgstr ""
27729
 
27730
+ #: includes/wc-core-functions.php:491
27731
  msgid "Aruban florin"
27732
  msgstr ""
27733
 
27734
+ #: includes/wc-core-functions.php:492
27735
  msgid "Azerbaijani manat"
27736
  msgstr ""
27737
 
27738
+ #: includes/wc-core-functions.php:493
27739
  msgid "Bosnia and Herzegovina convertible mark"
27740
  msgstr ""
27741
 
27742
+ #: includes/wc-core-functions.php:494
27743
  msgid "Barbadian dollar"
27744
  msgstr ""
27745
 
27746
+ #: includes/wc-core-functions.php:495
27747
  msgid "Bangladeshi taka"
27748
  msgstr ""
27749
 
27750
+ #: includes/wc-core-functions.php:496
27751
  msgid "Bulgarian lev"
27752
  msgstr ""
27753
 
27754
+ #: includes/wc-core-functions.php:497
27755
  msgid "Bahraini dinar"
27756
  msgstr ""
27757
 
27758
+ #: includes/wc-core-functions.php:498
27759
  msgid "Burundian franc"
27760
  msgstr ""
27761
 
27762
+ #: includes/wc-core-functions.php:499
27763
  msgid "Bermudian dollar"
27764
  msgstr ""
27765
 
27766
+ #: includes/wc-core-functions.php:500
27767
  msgid "Brunei dollar"
27768
  msgstr ""
27769
 
27770
+ #: includes/wc-core-functions.php:501
27771
  msgid "Bolivian boliviano"
27772
  msgstr ""
27773
 
27774
+ #: includes/wc-core-functions.php:502
27775
  msgid "Brazilian real"
27776
  msgstr ""
27777
 
27778
+ #: includes/wc-core-functions.php:503
27779
  msgid "Bahamian dollar"
27780
  msgstr ""
27781
 
27782
+ #: includes/wc-core-functions.php:504
27783
  msgid "Bitcoin"
27784
  msgstr ""
27785
 
27786
+ #: includes/wc-core-functions.php:505
27787
  msgid "Bhutanese ngultrum"
27788
  msgstr ""
27789
 
27790
+ #: includes/wc-core-functions.php:506
27791
  msgid "Botswana pula"
27792
  msgstr ""
27793
 
27794
+ #: includes/wc-core-functions.php:507
27795
  msgid "Belarusian ruble (old)"
27796
  msgstr ""
27797
 
27798
+ #: includes/wc-core-functions.php:508
27799
  msgid "Belarusian ruble"
27800
  msgstr ""
27801
 
27802
+ #: includes/wc-core-functions.php:509
27803
  msgid "Belize dollar"
27804
  msgstr ""
27805
 
27806
+ #: includes/wc-core-functions.php:510
27807
  msgid "Canadian dollar"
27808
  msgstr ""
27809
 
27810
+ #: includes/wc-core-functions.php:511
27811
  msgid "Congolese franc"
27812
  msgstr ""
27813
 
27814
+ #: includes/wc-core-functions.php:512
27815
  msgid "Swiss franc"
27816
  msgstr ""
27817
 
27818
+ #: includes/wc-core-functions.php:513
27819
  msgid "Chilean peso"
27820
  msgstr ""
27821
 
27822
+ #: includes/wc-core-functions.php:514
27823
  msgid "Chinese yuan"
27824
  msgstr ""
27825
 
27826
+ #: includes/wc-core-functions.php:515
27827
  msgid "Colombian peso"
27828
  msgstr ""
27829
 
27830
+ #: includes/wc-core-functions.php:516
27831
  msgid "Costa Rican col&oacute;n"
27832
  msgstr ""
27833
 
27834
+ #: includes/wc-core-functions.php:517
27835
  msgid "Cuban convertible peso"
27836
  msgstr ""
27837
 
27838
+ #: includes/wc-core-functions.php:518
27839
  msgid "Cuban peso"
27840
  msgstr ""
27841
 
27842
+ #: includes/wc-core-functions.php:519
27843
  msgid "Cape Verdean escudo"
27844
  msgstr ""
27845
 
27846
+ #: includes/wc-core-functions.php:520
27847
  msgid "Czech koruna"
27848
  msgstr ""
27849
 
27850
+ #: includes/wc-core-functions.php:521
27851
  msgid "Djiboutian franc"
27852
  msgstr ""
27853
 
27854
+ #: includes/wc-core-functions.php:522
27855
  msgid "Danish krone"
27856
  msgstr ""
27857
 
27858
+ #: includes/wc-core-functions.php:523
27859
  msgid "Dominican peso"
27860
  msgstr ""
27861
 
27862
+ #: includes/wc-core-functions.php:524
27863
  msgid "Algerian dinar"
27864
  msgstr ""
27865
 
27866
+ #: includes/wc-core-functions.php:525
27867
  msgid "Egyptian pound"
27868
  msgstr ""
27869
 
27870
+ #: includes/wc-core-functions.php:526
27871
  msgid "Eritrean nakfa"
27872
  msgstr ""
27873
 
27874
+ #: includes/wc-core-functions.php:527
27875
  msgid "Ethiopian birr"
27876
  msgstr ""
27877
 
27878
+ #: includes/wc-core-functions.php:528
27879
  msgid "Euro"
27880
  msgstr ""
27881
 
27882
+ #: includes/wc-core-functions.php:529
27883
  msgid "Fijian dollar"
27884
  msgstr ""
27885
 
27886
+ #: includes/wc-core-functions.php:530
27887
  msgid "Falkland Islands pound"
27888
  msgstr ""
27889
 
27890
+ #: includes/wc-core-functions.php:531
27891
  msgid "Pound sterling"
27892
  msgstr ""
27893
 
27894
+ #: includes/wc-core-functions.php:532
27895
  msgid "Georgian lari"
27896
  msgstr ""
27897
 
27898
+ #: includes/wc-core-functions.php:533
27899
  msgid "Guernsey pound"
27900
  msgstr ""
27901
 
27902
+ #: includes/wc-core-functions.php:534
27903
  msgid "Ghana cedi"
27904
  msgstr ""
27905
 
27906
+ #: includes/wc-core-functions.php:535
27907
  msgid "Gibraltar pound"
27908
  msgstr ""
27909
 
27910
+ #: includes/wc-core-functions.php:536
27911
  msgid "Gambian dalasi"
27912
  msgstr ""
27913
 
27914
+ #: includes/wc-core-functions.php:537
27915
  msgid "Guinean franc"
27916
  msgstr ""
27917
 
27918
+ #: includes/wc-core-functions.php:538
27919
  msgid "Guatemalan quetzal"
27920
  msgstr ""
27921
 
27922
+ #: includes/wc-core-functions.php:539
27923
  msgid "Guyanese dollar"
27924
  msgstr ""
27925
 
27926
+ #: includes/wc-core-functions.php:540
27927
  msgid "Hong Kong dollar"
27928
  msgstr ""
27929
 
27930
+ #: includes/wc-core-functions.php:541
27931
  msgid "Honduran lempira"
27932
  msgstr ""
27933
 
27934
+ #: includes/wc-core-functions.php:542
27935
  msgid "Croatian kuna"
27936
  msgstr ""
27937
 
27938
+ #: includes/wc-core-functions.php:543
27939
  msgid "Haitian gourde"
27940
  msgstr ""
27941
 
27942
+ #: includes/wc-core-functions.php:544
27943
  msgid "Hungarian forint"
27944
  msgstr ""
27945
 
27946
+ #: includes/wc-core-functions.php:545
27947
  msgid "Indonesian rupiah"
27948
  msgstr ""
27949
 
27950
+ #: includes/wc-core-functions.php:546
27951
  msgid "Israeli new shekel"
27952
  msgstr ""
27953
 
27954
+ #: includes/wc-core-functions.php:547
27955
  msgid "Manx pound"
27956
  msgstr ""
27957
 
27958
+ #: includes/wc-core-functions.php:548
27959
  msgid "Indian rupee"
27960
  msgstr ""
27961
 
27962
+ #: includes/wc-core-functions.php:549
27963
  msgid "Iraqi dinar"
27964
  msgstr ""
27965
 
27966
+ #: includes/wc-core-functions.php:550
27967
  msgid "Iranian rial"
27968
  msgstr ""
27969
 
27970
+ #: includes/wc-core-functions.php:551
27971
  msgid "Iranian toman"
27972
  msgstr ""
27973
 
27974
+ #: includes/wc-core-functions.php:552
27975
  msgid "Icelandic kr&oacute;na"
27976
  msgstr ""
27977
 
27978
+ #: includes/wc-core-functions.php:553
27979
  msgid "Jersey pound"
27980
  msgstr ""
27981
 
27982
+ #: includes/wc-core-functions.php:554
27983
  msgid "Jamaican dollar"
27984
  msgstr ""
27985
 
27986
+ #: includes/wc-core-functions.php:555
27987
  msgid "Jordanian dinar"
27988
  msgstr ""
27989
 
27990
+ #: includes/wc-core-functions.php:556
27991
  msgid "Japanese yen"
27992
  msgstr ""
27993
 
27994
+ #: includes/wc-core-functions.php:557
27995
  msgid "Kenyan shilling"
27996
  msgstr ""
27997
 
27998
+ #: includes/wc-core-functions.php:558
27999
  msgid "Kyrgyzstani som"
28000
  msgstr ""
28001
 
28002
+ #: includes/wc-core-functions.php:559
28003
  msgid "Cambodian riel"
28004
  msgstr ""
28005
 
28006
+ #: includes/wc-core-functions.php:560
28007
  msgid "Comorian franc"
28008
  msgstr ""
28009
 
28010
+ #: includes/wc-core-functions.php:561
28011
  msgid "North Korean won"
28012
  msgstr ""
28013
 
28014
+ #: includes/wc-core-functions.php:562
28015
  msgid "South Korean won"
28016
  msgstr ""
28017
 
28018
+ #: includes/wc-core-functions.php:563
28019
  msgid "Kuwaiti dinar"
28020
  msgstr ""
28021
 
28022
+ #: includes/wc-core-functions.php:564
28023
  msgid "Cayman Islands dollar"
28024
  msgstr ""
28025
 
28026
+ #: includes/wc-core-functions.php:565
28027
  msgid "Kazakhstani tenge"
28028
  msgstr ""
28029
 
28030
+ #: includes/wc-core-functions.php:566
28031
  msgid "Lao kip"
28032
  msgstr ""
28033
 
28034
+ #: includes/wc-core-functions.php:567
28035
  msgid "Lebanese pound"
28036
  msgstr ""
28037
 
28038
+ #: includes/wc-core-functions.php:568
28039
  msgid "Sri Lankan rupee"
28040
  msgstr ""
28041
 
28042
+ #: includes/wc-core-functions.php:569
28043
  msgid "Liberian dollar"
28044
  msgstr ""
28045
 
28046
+ #: includes/wc-core-functions.php:570
28047
  msgid "Lesotho loti"
28048
  msgstr ""
28049
 
28050
+ #: includes/wc-core-functions.php:571
28051
  msgid "Libyan dinar"
28052
  msgstr ""
28053
 
28054
+ #: includes/wc-core-functions.php:572
28055
  msgid "Moroccan dirham"
28056
  msgstr ""
28057
 
28058
+ #: includes/wc-core-functions.php:573
28059
  msgid "Moldovan leu"
28060
  msgstr ""
28061
 
28062
+ #: includes/wc-core-functions.php:574
28063
  msgid "Malagasy ariary"
28064
  msgstr ""
28065
 
28066
+ #: includes/wc-core-functions.php:575
28067
  msgid "Macedonian denar"
28068
  msgstr ""
28069
 
28070
+ #: includes/wc-core-functions.php:576
28071
  msgid "Burmese kyat"
28072
  msgstr ""
28073
 
28074
+ #: includes/wc-core-functions.php:577
28075
  msgid "Mongolian t&ouml;gr&ouml;g"
28076
  msgstr ""
28077
 
28078
+ #: includes/wc-core-functions.php:578
28079
  msgid "Macanese pataca"
28080
  msgstr ""
28081
 
28082
+ #: includes/wc-core-functions.php:579
28083
  msgid "Mauritanian ouguiya"
28084
  msgstr ""
28085
 
28086
+ #: includes/wc-core-functions.php:580
28087
  msgid "Mauritian rupee"
28088
  msgstr ""
28089
 
28090
+ #: includes/wc-core-functions.php:581
28091
  msgid "Maldivian rufiyaa"
28092
  msgstr ""
28093
 
28094
+ #: includes/wc-core-functions.php:582
28095
  msgid "Malawian kwacha"
28096
  msgstr ""
28097
 
28098
+ #: includes/wc-core-functions.php:583
28099
  msgid "Mexican peso"
28100
  msgstr ""
28101
 
28102
+ #: includes/wc-core-functions.php:584
28103
  msgid "Malaysian ringgit"
28104
  msgstr ""
28105
 
28106
+ #: includes/wc-core-functions.php:585
28107
  msgid "Mozambican metical"
28108
  msgstr ""
28109
 
28110
+ #: includes/wc-core-functions.php:586
28111
  msgid "Namibian dollar"
28112
  msgstr ""
28113
 
28114
+ #: includes/wc-core-functions.php:587
28115
  msgid "Nigerian naira"
28116
  msgstr ""
28117
 
28118
+ #: includes/wc-core-functions.php:588
28119
  msgid "Nicaraguan c&oacute;rdoba"
28120
  msgstr ""
28121
 
28122
+ #: includes/wc-core-functions.php:589
28123
  msgid "Norwegian krone"
28124
  msgstr ""
28125
 
28126
+ #: includes/wc-core-functions.php:590
28127
  msgid "Nepalese rupee"
28128
  msgstr ""
28129
 
28130
+ #: includes/wc-core-functions.php:591
28131
  msgid "New Zealand dollar"
28132
  msgstr ""
28133
 
28134
+ #: includes/wc-core-functions.php:592
28135
  msgid "Omani rial"
28136
  msgstr ""
28137
 
28138
+ #: includes/wc-core-functions.php:593
28139
  msgid "Panamanian balboa"
28140
  msgstr ""
28141
 
28142
+ #: includes/wc-core-functions.php:594
28143
  msgid "Sol"
28144
  msgstr ""
28145
 
28146
+ #: includes/wc-core-functions.php:595
28147
  msgid "Papua New Guinean kina"
28148
  msgstr ""
28149
 
28150
+ #: includes/wc-core-functions.php:596
28151
  msgid "Philippine peso"
28152
  msgstr ""
28153
 
28154
+ #: includes/wc-core-functions.php:597
28155
  msgid "Pakistani rupee"
28156
  msgstr ""
28157
 
28158
+ #: includes/wc-core-functions.php:598
28159
  msgid "Polish z&#x142;oty"
28160
  msgstr ""
28161
 
28162
+ #: includes/wc-core-functions.php:599
28163
  msgid "Transnistrian ruble"
28164
  msgstr ""
28165
 
28166
+ #: includes/wc-core-functions.php:600
28167
  msgid "Paraguayan guaran&iacute;"
28168
  msgstr ""
28169
 
28170
+ #: includes/wc-core-functions.php:601
28171
  msgid "Qatari riyal"
28172
  msgstr ""
28173
 
28174
+ #: includes/wc-core-functions.php:602
28175
  msgid "Romanian leu"
28176
  msgstr ""
28177
 
28178
+ #: includes/wc-core-functions.php:603
28179
  msgid "Serbian dinar"
28180
  msgstr ""
28181
 
28182
+ #: includes/wc-core-functions.php:604
28183
  msgid "Russian ruble"
28184
  msgstr ""
28185
 
28186
+ #: includes/wc-core-functions.php:605
28187
  msgid "Rwandan franc"
28188
  msgstr ""
28189
 
28190
+ #: includes/wc-core-functions.php:606
28191
  msgid "Saudi riyal"
28192
  msgstr ""
28193
 
28194
+ #: includes/wc-core-functions.php:607
28195
  msgid "Solomon Islands dollar"
28196
  msgstr ""
28197
 
28198
+ #: includes/wc-core-functions.php:608
28199
  msgid "Seychellois rupee"
28200
  msgstr ""
28201
 
28202
+ #: includes/wc-core-functions.php:609
28203
  msgid "Sudanese pound"
28204
  msgstr ""
28205
 
28206
+ #: includes/wc-core-functions.php:610
28207
  msgid "Swedish krona"
28208
  msgstr ""
28209
 
28210
+ #: includes/wc-core-functions.php:611
28211
  msgid "Singapore dollar"
28212
  msgstr ""
28213
 
28214
+ #: includes/wc-core-functions.php:612
28215
  msgid "Saint Helena pound"
28216
  msgstr ""
28217
 
28218
+ #: includes/wc-core-functions.php:613
28219
  msgid "Sierra Leonean leone"
28220
  msgstr ""
28221
 
28222
+ #: includes/wc-core-functions.php:614
28223
  msgid "Somali shilling"
28224
  msgstr ""
28225
 
28226
+ #: includes/wc-core-functions.php:615
28227
  msgid "Surinamese dollar"
28228
  msgstr ""
28229
 
28230
+ #: includes/wc-core-functions.php:616
28231
  msgid "South Sudanese pound"
28232
  msgstr ""
28233
 
28234
+ #: includes/wc-core-functions.php:617
28235
  msgid "S&atilde;o Tom&eacute; and Pr&iacute;ncipe dobra"
28236
  msgstr ""
28237
 
28238
+ #: includes/wc-core-functions.php:618
28239
  msgid "Syrian pound"
28240
  msgstr ""
28241
 
28242
+ #: includes/wc-core-functions.php:619
28243
  msgid "Swazi lilangeni"
28244
  msgstr ""
28245
 
28246
+ #: includes/wc-core-functions.php:620
28247
  msgid "Thai baht"
28248
  msgstr ""
28249
 
28250
+ #: includes/wc-core-functions.php:621
28251
  msgid "Tajikistani somoni"
28252
  msgstr ""
28253
 
28254
+ #: includes/wc-core-functions.php:622
28255
  msgid "Turkmenistan manat"
28256
  msgstr ""
28257
 
28258
+ #: includes/wc-core-functions.php:623
28259
  msgid "Tunisian dinar"
28260
  msgstr ""
28261
 
28262
+ #: includes/wc-core-functions.php:624
28263
  msgid "Tongan pa&#x2bb;anga"
28264
  msgstr ""
28265
 
28266
+ #: includes/wc-core-functions.php:625
28267
  msgid "Turkish lira"
28268
  msgstr ""
28269
 
28270
+ #: includes/wc-core-functions.php:626
28271
  msgid "Trinidad and Tobago dollar"
28272
  msgstr ""
28273
 
28274
+ #: includes/wc-core-functions.php:627
28275
  msgid "New Taiwan dollar"
28276
  msgstr ""
28277
 
28278
+ #: includes/wc-core-functions.php:628
28279
  msgid "Tanzanian shilling"
28280
  msgstr ""
28281
 
28282
+ #: includes/wc-core-functions.php:629
28283
  msgid "Ukrainian hryvnia"
28284
  msgstr ""
28285
 
28286
+ #: includes/wc-core-functions.php:630
28287
  msgid "Ugandan shilling"
28288
  msgstr ""
28289
 
28290
+ #: includes/wc-core-functions.php:631
28291
  msgid "United States (US) dollar"
28292
  msgstr ""
28293
 
28294
+ #: includes/wc-core-functions.php:632
28295
  msgid "Uruguayan peso"
28296
  msgstr ""
28297
 
28298
+ #: includes/wc-core-functions.php:633
28299
  msgid "Uzbekistani som"
28300
  msgstr ""
28301
 
28302
+ #: includes/wc-core-functions.php:634
28303
  msgid "Venezuelan bol&iacute;var"
28304
  msgstr ""
28305
 
28306
+ #: includes/wc-core-functions.php:635
28307
  msgid "Bol&iacute;var soberano"
28308
  msgstr ""
28309
 
28310
+ #: includes/wc-core-functions.php:636
28311
  msgid "Vietnamese &#x111;&#x1ed3;ng"
28312
  msgstr ""
28313
 
28314
+ #: includes/wc-core-functions.php:637
28315
  msgid "Vanuatu vatu"
28316
  msgstr ""
28317
 
28318
+ #: includes/wc-core-functions.php:638
28319
  msgid "Samoan t&#x101;l&#x101;"
28320
  msgstr ""
28321
 
28322
+ #: includes/wc-core-functions.php:639
28323
  msgid "Central African CFA franc"
28324
  msgstr ""
28325
 
28326
+ #: includes/wc-core-functions.php:640
28327
  msgid "East Caribbean dollar"
28328
  msgstr ""
28329
 
28330
+ #: includes/wc-core-functions.php:641
28331
  msgid "West African CFA franc"
28332
  msgstr ""
28333
 
28334
+ #: includes/wc-core-functions.php:642
28335
  msgid "CFP franc"
28336
  msgstr ""
28337
 
28338
+ #: includes/wc-core-functions.php:643
28339
  msgid "Yemeni rial"
28340
  msgstr ""
28341
 
28342
+ #: includes/wc-core-functions.php:644
28343
  msgid "South African rand"
28344
  msgstr ""
28345
 
28346
+ #: includes/wc-core-functions.php:645
28347
  msgid "Zambian kwacha"
28348
  msgstr ""
28349
 
28350
+ #: includes/wc-core-functions.php:1517
28351
  msgid "MasterCard"
28352
  msgstr ""
28353
 
28354
+ #: includes/wc-core-functions.php:1518
28355
  #: packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php:229
28356
  msgid "Visa"
28357
  msgstr ""
28358
 
28359
+ #: includes/wc-core-functions.php:1519
28360
  #: packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php:244
28361
  msgid "Discover"
28362
  msgstr ""
28363
 
28364
+ #: includes/wc-core-functions.php:1520
28365
  #: packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php:233
28366
  msgid "American Express"
28367
  msgstr ""
28368
 
28369
+ #: includes/wc-core-functions.php:1521
28370
  #: packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php:252
28371
  msgid "Diners"
28372
  msgstr ""
28373
 
28374
+ #: includes/wc-core-functions.php:1522
28375
  #: packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php:248
28376
  msgid "JCB"
28377
  msgstr ""
28378
 
28379
  #. translators: 1: class name 2: woocommerce_logging_class 3: WC_Logger_Interface
28380
+ #: includes/wc-core-functions.php:1970
28381
  msgid "The class %1$s provided by %2$s filter must implement %3$s."
28382
  msgstr ""
28383
 
28384
  #. translators: 1: wc_load_cart 2: woocommerce_init
28385
+ #: includes/wc-core-functions.php:2509
28386
  msgid "%1$s should not be called before the %2$s action."
28387
  msgstr ""
28388
 
32334
  msgstr ""
32335
 
32336
  #: packages/woocommerce-admin/src/Notes/SetUpAdditionalPaymentTypes.php:94
32337
+ #: packages/woocommerce-admin/dist/app/index.js:2
32338
+ #: packages/woocommerce-admin/dist/chunks/task-list.js:1
32339
  msgid "Set up payments"
32340
  msgstr ""
32341
 
34726
  msgstr ""
34727
 
34728
  #: packages/woocommerce-admin/dist/app/index.js:2
 
 
 
 
 
 
34729
  msgid "Add tax rates"
34730
  msgstr ""
34731
 
34732
  #: packages/woocommerce-admin/dist/app/index.js:2
 
34733
  msgid "Personalize your store"
34734
  msgstr ""
34735
 
34736
  #: packages/woocommerce-admin/dist/app/index.js:2
 
34737
  msgid "Set up shipping costs"
34738
  msgstr ""
34739
 
36852
  msgstr ""
36853
 
36854
  #: packages/woocommerce-admin/dist/chunks/homescreen.js:1
36855
+ #: packages/woocommerce-admin/dist/chunks/task-list.js:1
36856
  msgid "Personalize my store"
36857
  msgstr ""
36858
 
37019
  msgstr ""
37020
 
37021
  #: packages/woocommerce-admin/dist/chunks/homescreen.js:1
 
37022
  #: packages/woocommerce-admin/dist/data/index.js:2
37023
  msgid "MailPoet"
37024
  msgstr ""
37304
  msgstr ""
37305
 
37306
  #: packages/woocommerce-admin/dist/chunks/profile-wizard.js:1
37307
+ msgid "All-in-one email marketing by MailPoet"
37308
+ msgstr ""
37309
+
37310
+ #: packages/woocommerce-admin/dist/chunks/profile-wizard.js:1
37311
+ msgid "Create and send purchase follow-up emails, newsletters, and promotional campaigns straight from your dashboard."
37312
  msgstr ""
37313
 
37314
  #: packages/woocommerce-admin/dist/chunks/profile-wizard.js:1
38096
  msgstr ""
38097
 
38098
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38099
+ msgid "Add paid extensions to my store"
38100
  msgstr ""
38101
 
38102
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38103
+ msgid "Add %s to my store"
38104
  msgstr ""
38105
 
38106
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38111
  msgid "2 minutes"
38112
  msgstr ""
38113
 
38114
+ #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38115
+ msgid "Add my products"
38116
+ msgstr ""
38117
+
38118
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38119
  msgid "1 minute per product"
38120
  msgstr ""
38127
  msgid "By setting up, you are agreeing to the <a href=\"https://wordpress.com/tos/\" target=\"_blank\">Terms of Service</a>"
38128
  msgstr ""
38129
 
38130
+ #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38131
+ msgid "Set up tax"
38132
+ msgstr ""
38133
+
38134
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38135
  msgid "1 minute"
38136
  msgstr ""
38137
 
38138
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
38139
+ msgid "Set up shipping"
38140
  msgstr ""
38141
 
38142
  #: packages/woocommerce-admin/dist/chunks/task-list.js:1
includes/class-wc-post-types.php CHANGED
@@ -92,19 +92,22 @@ class WC_Post_Types {
92
  'update_count_callback' => '_wc_term_recount',
93
  'label' => __( 'Categories', 'woocommerce' ),
94
  'labels' => array(
95
- 'name' => __( 'Product categories', 'woocommerce' ),
96
- 'singular_name' => __( 'Category', 'woocommerce' ),
97
- 'menu_name' => _x( 'Categories', 'Admin menu name', 'woocommerce' ),
98
- 'search_items' => __( 'Search categories', 'woocommerce' ),
99
- 'all_items' => __( 'All categories', 'woocommerce' ),
100
- 'parent_item' => __( 'Parent category', 'woocommerce' ),
101
- 'parent_item_colon' => __( 'Parent category:', 'woocommerce' ),
102
- 'edit_item' => __( 'Edit category', 'woocommerce' ),
103
- 'update_item' => __( 'Update category', 'woocommerce' ),
104
- 'add_new_item' => __( 'Add new category', 'woocommerce' ),
105
- 'new_item_name' => __( 'New category name', 'woocommerce' ),
106
- 'not_found' => __( 'No categories found', 'woocommerce' ),
 
 
107
  ),
 
108
  'show_ui' => true,
109
  'query_var' => true,
110
  'capabilities' => array(
@@ -146,7 +149,10 @@ class WC_Post_Types {
146
  'add_or_remove_items' => __( 'Add or remove tags', 'woocommerce' ),
147
  'choose_from_most_used' => __( 'Choose from the most used tags', 'woocommerce' ),
148
  'not_found' => __( 'No tags found', 'woocommerce' ),
 
 
149
  ),
 
150
  'show_ui' => true,
151
  'query_var' => true,
152
  'capabilities' => array(
@@ -335,6 +341,8 @@ class WC_Post_Types {
335
  'filter_items_list' => __( 'Filter products', 'woocommerce' ),
336
  'items_list_navigation' => __( 'Products navigation', 'woocommerce' ),
337
  'items_list' => __( 'Products list', 'woocommerce' ),
 
 
338
  ),
339
  'description' => __( 'This is where you can add new products to your store.', 'woocommerce' ),
340
  'public' => true,
92
  'update_count_callback' => '_wc_term_recount',
93
  'label' => __( 'Categories', 'woocommerce' ),
94
  'labels' => array(
95
+ 'name' => __( 'Product categories', 'woocommerce' ),
96
+ 'singular_name' => __( 'Category', 'woocommerce' ),
97
+ 'menu_name' => _x( 'Categories', 'Admin menu name', 'woocommerce' ),
98
+ 'search_items' => __( 'Search categories', 'woocommerce' ),
99
+ 'all_items' => __( 'All categories', 'woocommerce' ),
100
+ 'parent_item' => __( 'Parent category', 'woocommerce' ),
101
+ 'parent_item_colon' => __( 'Parent category:', 'woocommerce' ),
102
+ 'edit_item' => __( 'Edit category', 'woocommerce' ),
103
+ 'update_item' => __( 'Update category', 'woocommerce' ),
104
+ 'add_new_item' => __( 'Add new category', 'woocommerce' ),
105
+ 'new_item_name' => __( 'New category name', 'woocommerce' ),
106
+ 'not_found' => __( 'No categories found', 'woocommerce' ),
107
+ 'item_link' => __( 'Product Category Link', 'woocommerce' ),
108
+ 'item_link_description' => __( 'A link to a product category.', 'woocommerce' ),
109
  ),
110
+ 'show_in_rest' => true,
111
  'show_ui' => true,
112
  'query_var' => true,
113
  'capabilities' => array(
149
  'add_or_remove_items' => __( 'Add or remove tags', 'woocommerce' ),
150
  'choose_from_most_used' => __( 'Choose from the most used tags', 'woocommerce' ),
151
  'not_found' => __( 'No tags found', 'woocommerce' ),
152
+ 'item_link' => __( 'Product Tag Link', 'woocommerce' ),
153
+ 'item_link_description' => __( 'A link to a product tag.', 'woocommerce' ),
154
  ),
155
+ 'show_in_rest' => true,
156
  'show_ui' => true,
157
  'query_var' => true,
158
  'capabilities' => array(
341
  'filter_items_list' => __( 'Filter products', 'woocommerce' ),
342
  'items_list_navigation' => __( 'Products navigation', 'woocommerce' ),
343
  'items_list' => __( 'Products list', 'woocommerce' ),
344
+ 'item_link' => __( 'Product Link', 'woocommerce' ),
345
+ 'item_link_description' => __( 'A link to a product.', 'woocommerce' ),
346
  ),
347
  'description' => __( 'This is where you can add new products to your store.', 'woocommerce' ),
348
  'public' => true,
includes/class-woocommerce.php CHANGED
@@ -205,6 +205,8 @@ final class WooCommerce {
205
  add_action( 'switch_blog', array( $this, 'wpdb_table_fix' ), 0 );
206
  add_action( 'activated_plugin', array( $this, 'activated_plugin' ) );
207
  add_action( 'deactivated_plugin', array( $this, 'deactivated_plugin' ) );
 
 
208
 
209
  // These classes set up hooks on instantiation.
210
  wc_get_container()->get( DownloadPermissionsAdjuster::class );
@@ -212,6 +214,17 @@ final class WooCommerce {
212
  wc_get_container()->get( DataRegenerator::class );
213
  }
214
 
 
 
 
 
 
 
 
 
 
 
 
215
  /**
216
  * Ensures fatal errors are logged so they can be picked up in the status report.
217
  *
205
  add_action( 'switch_blog', array( $this, 'wpdb_table_fix' ), 0 );
206
  add_action( 'activated_plugin', array( $this, 'activated_plugin' ) );
207
  add_action( 'deactivated_plugin', array( $this, 'deactivated_plugin' ) );
208
+ add_action( 'woocommerce_installed', array( $this, 'add_woocommerce_inbox_variant' ) );
209
+ add_action( 'woocommerce_updated', array( $this, 'add_woocommerce_inbox_variant' ) );
210
 
211
  // These classes set up hooks on instantiation.
212
  wc_get_container()->get( DownloadPermissionsAdjuster::class );
214
  wc_get_container()->get( DataRegenerator::class );
215
  }
216
 
217
+ /**
218
+ * Add woocommerce_inbox_variant for the Remote Inbox Notification.
219
+ *
220
+ * P2 post can be found at https://wp.me/paJDYF-1uJ.
221
+ */
222
+ public function add_woocommerce_inbox_variant() {
223
+ $config_name = 'woocommerce_inbox_variant_assignment';
224
+ if ( false === get_option( $config_name, false ) ) {
225
+ update_option( $config_name, wp_rand( 1, 12 ) );
226
+ }
227
+ }
228
  /**
229
  * Ensures fatal errors are logged so they can be picked up in the status report.
230
  *
includes/customizer/class-wc-shop-customizer.php CHANGED
@@ -6,8 +6,6 @@
6
  * @package WooCommerce
7
  */
8
 
9
- use Automattic\WooCommerce\Internal\ThemeSupport;
10
-
11
  defined( 'ABSPATH' ) || exit;
12
 
13
  /**
@@ -15,19 +13,10 @@ defined( 'ABSPATH' ) || exit;
15
  */
16
  class WC_Shop_Customizer {
17
 
18
- /**
19
- * Holds the instance of ThemeSupport to use.
20
- *
21
- * @var ThemeSupport $theme_support The instance of ThemeSupport to use.
22
- */
23
- private $theme_support;
24
-
25
  /**
26
  * Constructor.
27
  */
28
  public function __construct() {
29
- $this->theme_support = wc_get_container()->get( ThemeSupport::class );
30
-
31
  add_action( 'customize_register', array( $this, 'add_sections' ) );
32
  add_action( 'customize_controls_print_styles', array( $this, 'add_styles' ) );
33
  add_action( 'customize_controls_print_scripts', array( $this, 'add_scripts' ), 30 );
@@ -556,11 +545,11 @@ class WC_Shop_Customizer {
556
  )
557
  );
558
 
559
- if ( ! $this->theme_support->has_option( 'single_image_width', false ) ) {
560
  $wp_customize->add_setting(
561
  'woocommerce_single_image_width',
562
  array(
563
- 'default' => $this->theme_support->get_option( 'single_image_width', 600 ),
564
  'type' => 'option',
565
  'capability' => 'manage_woocommerce',
566
  'sanitize_callback' => 'absint',
@@ -584,11 +573,11 @@ class WC_Shop_Customizer {
584
  );
585
  }
586
 
587
- if ( ! $this->theme_support->has_option( 'thumbnail_image_width', false ) ) {
588
  $wp_customize->add_setting(
589
  'woocommerce_thumbnail_image_width',
590
  array(
591
- 'default' => $this->theme_support->get_option( 'thumbnail_image_width', 300 ),
592
  'type' => 'option',
593
  'capability' => 'manage_woocommerce',
594
  'sanitize_callback' => 'absint',
6
  * @package WooCommerce
7
  */
8
 
 
 
9
  defined( 'ABSPATH' ) || exit;
10
 
11
  /**
13
  */
14
  class WC_Shop_Customizer {
15
 
 
 
 
 
 
 
 
16
  /**
17
  * Constructor.
18
  */
19
  public function __construct() {
 
 
20
  add_action( 'customize_register', array( $this, 'add_sections' ) );
21
  add_action( 'customize_controls_print_styles', array( $this, 'add_styles' ) );
22
  add_action( 'customize_controls_print_scripts', array( $this, 'add_scripts' ), 30 );
545
  )
546
  );
547
 
548
+ if ( ! wc_get_theme_support( 'single_image_width' ) ) {
549
  $wp_customize->add_setting(
550
  'woocommerce_single_image_width',
551
  array(
552
+ 'default' => 600,
553
  'type' => 'option',
554
  'capability' => 'manage_woocommerce',
555
  'sanitize_callback' => 'absint',
573
  );
574
  }
575
 
576
+ if ( ! wc_get_theme_support( 'thumbnail_image_width' ) ) {
577
  $wp_customize->add_setting(
578
  'woocommerce_thumbnail_image_width',
579
  array(
580
+ 'default' => 300,
581
  'type' => 'option',
582
  'capability' => 'manage_woocommerce',
583
  'sanitize_callback' => 'absint',
includes/theme-support/class-wc-twenty-eleven.php CHANGED
@@ -6,8 +6,6 @@
6
  * @package WooCommerce\Classes
7
  */
8
 
9
- use Automattic\WooCommerce\Internal\ThemeSupport;
10
-
11
  defined( 'ABSPATH' ) || exit;
12
 
13
  /**
@@ -31,7 +29,8 @@ class WC_Twenty_Eleven {
31
  add_theme_support( 'wc-product-gallery-zoom' );
32
  add_theme_support( 'wc-product-gallery-lightbox' );
33
  add_theme_support( 'wc-product-gallery-slider' );
34
- wc_get_container()->get( ThemeSupport::class )->add_default_options(
 
35
  array(
36
  'thumbnail_image_width' => 150,
37
  'single_image_width' => 300,
6
  * @package WooCommerce\Classes
7
  */
8
 
 
 
9
  defined( 'ABSPATH' ) || exit;
10
 
11
  /**
29
  add_theme_support( 'wc-product-gallery-zoom' );
30
  add_theme_support( 'wc-product-gallery-lightbox' );
31
  add_theme_support( 'wc-product-gallery-slider' );
32
+ add_theme_support(
33
+ 'woocommerce',
34
  array(
35
  'thumbnail_image_width' => 150,
36
  'single_image_width' => 300,
includes/theme-support/class-wc-twenty-fifteen.php CHANGED
@@ -7,8 +7,6 @@
7
  * @package WooCommerce\Classes
8
  */
9
 
10
- use Automattic\WooCommerce\Internal\ThemeSupport;
11
-
12
  defined( 'ABSPATH' ) || exit;
13
 
14
  /**
@@ -32,7 +30,8 @@ class WC_Twenty_Fifteen {
32
  add_theme_support( 'wc-product-gallery-zoom' );
33
  add_theme_support( 'wc-product-gallery-lightbox' );
34
  add_theme_support( 'wc-product-gallery-slider' );
35
- wc_get_container()->get( ThemeSupport::class )->add_default_options(
 
36
  array(
37
  'thumbnail_image_width' => 200,
38
  'single_image_width' => 350,
7
  * @package WooCommerce\Classes
8
  */
9
 
 
 
10
  defined( 'ABSPATH' ) || exit;
11
 
12
  /**
30
  add_theme_support( 'wc-product-gallery-zoom' );
31
  add_theme_support( 'wc-product-gallery-lightbox' );
32
  add_theme_support( 'wc-product-gallery-slider' );
33
+ add_theme_support(
34
+ 'woocommerce',
35
  array(
36
  'thumbnail_image_width' => 200,
37
  'single_image_width' => 350,
includes/theme-support/class-wc-twenty-fourteen.php CHANGED
@@ -7,8 +7,6 @@
7
  * @package WooCommerce\Classes
8
  */
9
 
10
- use Automattic\WooCommerce\Internal\ThemeSupport;
11
-
12
  defined( 'ABSPATH' ) || exit;
13
 
14
  /**
@@ -32,7 +30,8 @@ class WC_Twenty_Fourteen {
32
  add_theme_support( 'wc-product-gallery-zoom' );
33
  add_theme_support( 'wc-product-gallery-lightbox' );
34
  add_theme_support( 'wc-product-gallery-slider' );
35
- wc_get_container()->get( ThemeSupport::class )->add_default_options(
 
36
  array(
37
  'thumbnail_image_width' => 150,
38
  'single_image_width' => 300,
7
  * @package WooCommerce\Classes
8
  */
9
 
 
 
10
  defined( 'ABSPATH' ) || exit;
11
 
12
  /**
30
  add_theme_support( 'wc-product-gallery-zoom' );
31
  add_theme_support( 'wc-product-gallery-lightbox' );
32
  add_theme_support( 'wc-product-gallery-slider' );
33
+ add_theme_support(
34
+ 'woocommerce',
35
  array(
36
  'thumbnail_image_width' => 150,
37
  'single_image_width' => 300,
includes/theme-support/class-wc-twenty-nineteen.php CHANGED
@@ -7,7 +7,6 @@
7
  */
8
 
9
  use Automattic\Jetpack\Constants;
10
- use Automattic\WooCommerce\Internal\ThemeSupport;
11
 
12
  defined( 'ABSPATH' ) || exit;
13
 
@@ -38,7 +37,8 @@ class WC_Twenty_Nineteen {
38
  add_theme_support( 'wc-product-gallery-zoom' );
39
  add_theme_support( 'wc-product-gallery-lightbox' );
40
  add_theme_support( 'wc-product-gallery-slider' );
41
- wc_get_container()->get( ThemeSupport::class )->add_default_options(
 
42
  array(
43
  'thumbnail_image_width' => 300,
44
  'single_image_width' => 450,
7
  */
8
 
9
  use Automattic\Jetpack\Constants;
 
10
 
11
  defined( 'ABSPATH' ) || exit;
12
 
37
  add_theme_support( 'wc-product-gallery-zoom' );
38
  add_theme_support( 'wc-product-gallery-lightbox' );
39
  add_theme_support( 'wc-product-gallery-slider' );
40
+ add_theme_support(
41
+ 'woocommerce',
42
  array(
43
  'thumbnail_image_width' => 300,
44
  'single_image_width' => 450,
includes/theme-support/class-wc-twenty-seventeen.php CHANGED
@@ -7,7 +7,6 @@
7
  */
8
 
9
  use Automattic\Jetpack\Constants;
10
- use Automattic\WooCommerce\Internal\ThemeSupport;
11
 
12
  defined( 'ABSPATH' ) || exit;
13
 
@@ -31,7 +30,8 @@ class WC_Twenty_Seventeen {
31
  add_theme_support( 'wc-product-gallery-zoom' );
32
  add_theme_support( 'wc-product-gallery-lightbox' );
33
  add_theme_support( 'wc-product-gallery-slider' );
34
- wc_get_container()->get( ThemeSupport::class )->add_default_options(
 
35
  array(
36
  'thumbnail_image_width' => 250,
37
  'single_image_width' => 350,
7
  */
8
 
9
  use Automattic\Jetpack\Constants;
 
10
 
11
  defined( 'ABSPATH' ) || exit;
12
 
30
  add_theme_support( 'wc-product-gallery-zoom' );
31
  add_theme_support( 'wc-product-gallery-lightbox' );
32
  add_theme_support( 'wc-product-gallery-slider' );
33
+ add_theme_support(
34
+ 'woocommerce',
35
  array(
36
  'thumbnail_image_width' => 250,
37
  'single_image_width' => 350,
includes/theme-support/class-wc-twenty-sixteen.php CHANGED
@@ -6,8 +6,6 @@
6
  * @package WooCommerce\Classes
7
  */
8
 
9
- use Automattic\WooCommerce\Internal\ThemeSupport;
10
-
11
  defined( 'ABSPATH' ) || exit;
12
 
13
  /**
@@ -31,7 +29,8 @@ class WC_Twenty_Sixteen {
31
  add_theme_support( 'wc-product-gallery-zoom' );
32
  add_theme_support( 'wc-product-gallery-lightbox' );
33
  add_theme_support( 'wc-product-gallery-slider' );
34
- wc_get_container()->get( ThemeSupport::class )->add_default_options(
 
35
  array(
36
  'thumbnail_image_width' => 250,
37
  'single_image_width' => 400,
6
  * @package WooCommerce\Classes
7
  */
8
 
 
 
9
  defined( 'ABSPATH' ) || exit;
10
 
11
  /**
29
  add_theme_support( 'wc-product-gallery-zoom' );
30
  add_theme_support( 'wc-product-gallery-lightbox' );
31
  add_theme_support( 'wc-product-gallery-slider' );
32
+ add_theme_support(
33
+ 'woocommerce',
34
  array(
35
  'thumbnail_image_width' => 250,
36
  'single_image_width' => 400,
includes/theme-support/class-wc-twenty-ten.php CHANGED
@@ -6,8 +6,6 @@
6
  * @package WooCommerce\Classes
7
  */
8
 
9
- use Automattic\WooCommerce\Internal\ThemeSupport;
10
-
11
  defined( 'ABSPATH' ) || exit;
12
 
13
  /**
@@ -31,7 +29,8 @@ class WC_Twenty_Ten {
31
  add_theme_support( 'wc-product-gallery-zoom' );
32
  add_theme_support( 'wc-product-gallery-lightbox' );
33
  add_theme_support( 'wc-product-gallery-slider' );
34
- wc_get_container()->get( ThemeSupport::class )->add_default_options(
 
35
  array(
36
  'thumbnail_image_width' => 200,
37
  'single_image_width' => 300,
6
  * @package WooCommerce\Classes
7
  */
8
 
 
 
9
  defined( 'ABSPATH' ) || exit;
10
 
11
  /**
29
  add_theme_support( 'wc-product-gallery-zoom' );
30
  add_theme_support( 'wc-product-gallery-lightbox' );
31
  add_theme_support( 'wc-product-gallery-slider' );
32
+ add_theme_support(
33
+ 'woocommerce',
34
  array(
35
  'thumbnail_image_width' => 200,
36
  'single_image_width' => 300,
includes/theme-support/class-wc-twenty-thirteen.php CHANGED
@@ -7,8 +7,6 @@
7
  * @package WooCommerce\Classes
8
  */
9
 
10
- use Automattic\WooCommerce\Internal\ThemeSupport;
11
-
12
  defined( 'ABSPATH' ) || exit;
13
 
14
  /**
@@ -32,7 +30,8 @@ class WC_Twenty_Thirteen {
32
  add_theme_support( 'wc-product-gallery-zoom' );
33
  add_theme_support( 'wc-product-gallery-lightbox' );
34
  add_theme_support( 'wc-product-gallery-slider' );
35
- wc_get_container()->get( ThemeSupport::class )->add_default_options(
 
36
  array(
37
  'thumbnail_image_width' => 200,
38
  'single_image_width' => 300,
7
  * @package WooCommerce\Classes
8
  */
9
 
 
 
10
  defined( 'ABSPATH' ) || exit;
11
 
12
  /**
30
  add_theme_support( 'wc-product-gallery-zoom' );
31
  add_theme_support( 'wc-product-gallery-lightbox' );
32
  add_theme_support( 'wc-product-gallery-slider' );
33
+ add_theme_support(
34
+ 'woocommerce',
35
  array(
36
  'thumbnail_image_width' => 200,
37
  'single_image_width' => 300,
includes/theme-support/class-wc-twenty-twelve.php CHANGED
@@ -7,8 +7,6 @@
7
  * @package WooCommerce\Classes
8
  */
9
 
10
- use Automattic\WooCommerce\Internal\ThemeSupport;
11
-
12
  defined( 'ABSPATH' ) || exit;
13
 
14
  /**
@@ -32,7 +30,8 @@ class WC_Twenty_Twelve {
32
  add_theme_support( 'wc-product-gallery-zoom' );
33
  add_theme_support( 'wc-product-gallery-lightbox' );
34
  add_theme_support( 'wc-product-gallery-slider' );
35
- wc_get_container()->get( ThemeSupport::class )->add_default_options(
 
36
  array(
37
  'thumbnail_image_width' => 200,
38
  'single_image_width' => 300,
7
  * @package WooCommerce\Classes
8
  */
9
 
 
 
10
  defined( 'ABSPATH' ) || exit;
11
 
12
  /**
30
  add_theme_support( 'wc-product-gallery-zoom' );
31
  add_theme_support( 'wc-product-gallery-lightbox' );
32
  add_theme_support( 'wc-product-gallery-slider' );
33
+ add_theme_support(
34
+ 'woocommerce',
35
  array(
36
  'thumbnail_image_width' => 200,
37
  'single_image_width' => 300,
includes/theme-support/class-wc-twenty-twenty-one.php CHANGED
@@ -7,7 +7,6 @@
7
  */
8
 
9
  use Automattic\Jetpack\Constants;
10
- use Automattic\WooCommerce\Internal\ThemeSupport;
11
 
12
  defined( 'ABSPATH' ) || exit;
13
 
@@ -38,7 +37,8 @@ class WC_Twenty_Twenty_One {
38
  add_theme_support( 'wc-product-gallery-zoom' );
39
  add_theme_support( 'wc-product-gallery-lightbox' );
40
  add_theme_support( 'wc-product-gallery-slider' );
41
- wc_get_container()->get( ThemeSupport::class )->add_default_options(
 
42
  array(
43
  'thumbnail_image_width' => 450,
44
  'single_image_width' => 600,
7
  */
8
 
9
  use Automattic\Jetpack\Constants;
 
10
 
11
  defined( 'ABSPATH' ) || exit;
12
 
37
  add_theme_support( 'wc-product-gallery-zoom' );
38
  add_theme_support( 'wc-product-gallery-lightbox' );
39
  add_theme_support( 'wc-product-gallery-slider' );
40
+ add_theme_support(
41
+ 'woocommerce',
42
  array(
43
  'thumbnail_image_width' => 450,
44
  'single_image_width' => 600,
includes/theme-support/class-wc-twenty-twenty.php CHANGED
@@ -7,7 +7,6 @@
7
  */
8
 
9
  use Automattic\Jetpack\Constants;
10
- use Automattic\WooCommerce\Internal\ThemeSupport;
11
 
12
  defined( 'ABSPATH' ) || exit;
13
 
@@ -38,7 +37,8 @@ class WC_Twenty_Twenty {
38
  add_theme_support( 'wc-product-gallery-zoom' );
39
  add_theme_support( 'wc-product-gallery-lightbox' );
40
  add_theme_support( 'wc-product-gallery-slider' );
41
- wc_get_container()->get( ThemeSupport::class )->add_default_options(
 
42
  array(
43
  'thumbnail_image_width' => 450,
44
  'single_image_width' => 600,
7
  */
8
 
9
  use Automattic\Jetpack\Constants;
 
10
 
11
  defined( 'ABSPATH' ) || exit;
12
 
37
  add_theme_support( 'wc-product-gallery-zoom' );
38
  add_theme_support( 'wc-product-gallery-lightbox' );
39
  add_theme_support( 'wc-product-gallery-slider' );
40
+ add_theme_support(
41
+ 'woocommerce',
42
  array(
43
  'thumbnail_image_width' => 450,
44
  'single_image_width' => 600,
includes/wc-core-functions.php CHANGED
@@ -9,7 +9,6 @@
9
  */
10
 
11
  use Automattic\Jetpack\Constants;
12
- use Automattic\WooCommerce\Internal\ThemeSupport;
13
  use Automattic\WooCommerce\Utilities\NumberUtil;
14
 
15
  if ( ! defined( 'ABSPATH' ) ) {
@@ -880,7 +879,38 @@ function wc_mail( $to, $subject, $message, $headers = "Content-Type: text/html\r
880
  * @return mixed Value of prop(s).
881
  */
882
  function wc_get_theme_support( $prop = '', $default = null ) {
883
- return wc_get_container()->get( ThemeSupport::class )->get_option( $prop, $default );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
884
  }
885
 
886
  /**
9
  */
10
 
11
  use Automattic\Jetpack\Constants;
 
12
  use Automattic\WooCommerce\Utilities\NumberUtil;
13
 
14
  if ( ! defined( 'ABSPATH' ) ) {
879
  * @return mixed Value of prop(s).
880
  */
881
  function wc_get_theme_support( $prop = '', $default = null ) {
882
+ $theme_support = get_theme_support( 'woocommerce' );
883
+ $theme_support = is_array( $theme_support ) ? $theme_support[0] : false;
884
+
885
+ if ( ! $theme_support ) {
886
+ return $default;
887
+ }
888
+
889
+ if ( $prop ) {
890
+ $prop_stack = explode( '::', $prop );
891
+ $prop_key = array_shift( $prop_stack );
892
+
893
+ if ( isset( $theme_support[ $prop_key ] ) ) {
894
+ $value = $theme_support[ $prop_key ];
895
+
896
+ if ( count( $prop_stack ) ) {
897
+ foreach ( $prop_stack as $prop_key ) {
898
+ if ( is_array( $value ) && isset( $value[ $prop_key ] ) ) {
899
+ $value = $value[ $prop_key ];
900
+ } else {
901
+ $value = $default;
902
+ break;
903
+ }
904
+ }
905
+ }
906
+ } else {
907
+ $value = $default;
908
+ }
909
+
910
+ return $value;
911
+ }
912
+
913
+ return $theme_support;
914
  }
915
 
916
  /**
packages/woocommerce-admin/dist/app/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-components', 'wc-csv', 'wc-currency', 'wc-customer-effort-score', 'wc-date', 'wc-experimental', 'wc-explat', 'wc-navigation', 'wc-notices', 'wc-number', 'wc-store-data', 'wc-tracks', 'wp-a11y', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-warning'), 'version' => '68d8242c418c658e5f3e3defc00945b4');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-components', 'wc-csv', 'wc-currency', 'wc-customer-effort-score', 'wc-date', 'wc-experimental', 'wc-explat', 'wc-navigation', 'wc-notices', 'wc-number', 'wc-store-data', 'wc-tracks', 'wp-a11y', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-warning'), 'version' => '55fbb90aa137fc43e68a1fb6ca009fb4');
packages/woocommerce-admin/dist/app/index.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see index.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",34:"homescreen",36:"leaderboards",38:"marketing-overview",47:"payment-recommendations",49:"profile-wizard",50:"store-alerts",51:"store-performance",52:"task-list",54:"wcpay-usage-modal"}[e]||e)+".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,4:1,7:1,9:1,10:1,14:1,15:1,20:1,28:1,29:1,34:1,36:1,38:1,47:1,49:1,50:1,51:1,52: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=451)}([function(e,t){e.exports=window.wp.element},function(e,t,n){e.exports=n(189)()},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},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},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(93))},function(e,t,n){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=n.apply(null,o);a&&e.push(a)}else if("object"===i)for(var c in o)t.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return n})):window.classNames=n}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=window.React},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},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},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=window.wp.data},function(e,t,n){var r=n(176);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)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(62).default,o=n(10);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(8),o=n(70),i=n(22),a=n(68),c=n(76),u=n(110),s=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return i(s,e)&&(c||"string"==typeof s[e])||(c&&i(l,e)?s[e]=l[e]:s[e]=f("Symbol."+e)),s[e]}},function(e,t,n){var r=n(23);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.moment},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=window.wp.dataControls},function(e,t,n){var r=n(12);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(8),o=n(45).f,i=n(31),a=n(37),c=n(54),u=n(108),s=n(82);e.exports=function(e,t){var n,l,f,p,d,m=e.target,h=e.global,v=e.stat;if(n=h?r:v?r[m]||c(m,{}):(r[m]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(d=o(n,l))&&d.value:n[l],!s(h?l:m+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,e)}}},function(e,t,n){var r=n(25),o=n(73),i=n(19),a=n(53),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=window.wc.navigation},function(e,t,n){var r=n(142),o=n(143),i=n(98),a=n(144);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(145),o=n(146),i=n(98),a=n(147);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(25),o=n(27),i=n(46);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},,function(e,t){e.exports=window.wc.data},function(e,t){e.exports=window.wp.compose},function(e,t,n){var r=n(81),o=n(40);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(94),o=n(8),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){var r=n(8),o=n(31),i=n(22),a=n(54),c=n(65),u=n(50),s=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,c){var u,s=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,d=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),(u=l(n)).source||(u.source=f.join("string"==typeof t?t:""))),e!==r?(s?!d&&e[t]&&(p=!0):delete e[t],p?e[t]=n:o(e,t,n)):p?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},function(e,t){e.exports=window.wp.url},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},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},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(62),o=n.n(r),i=(n(83),n(107),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}},function(e,t,n){var r=n(52),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){e.exports=window.wc.tracks},function(e,t,n){var r=n(25),o=n(84),i=n(46),a=n(35),c=n(53),u=n(22),s=n(73),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=c(t,!0),s)try{return l(e,t)}catch(e){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t){e.exports=window.wp.apiFetch},function(e,t,n){var r=n(40);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r,o,i,a=n(109),c=n(8),u=n(23),s=n(31),l=n(22),f=n(55),p=n(60),d=n(47),m=c.WeakMap;if(a){var h=f.state||(f.state=new m),v=h.get,y=h.has,g=h.set;r=function(e,t){return t.facade=e,g.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return y.call(h,e)}}else{var b=p("state");d[b]=!0,r=function(e,t){return t.facade=e,s(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},,function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(23);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(8),o=n(31);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(8),o=n(54),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){e.exports=window.wc.date},function(e,t){e.exports=window.wc.experimental},function(e,t){e.exports=!1},function(e,t,n){var r=n(70),o=n(68),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(75),o=n(56);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(8),o=n(23),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(55),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(196);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},e.exports.default=e.exports,e.exports.__esModule=!0},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)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r,o=n(19),i=n(105),a=n(56),c=n(47),u=n(97),s=n(64),l=n(60),f=l("IE_PROTO"),p=function(){},d=function(e){return"<script>"+e+"<\/script>"},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;m=r?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=s("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};c[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=o(e),n=new p,p.prototype=null,n[f]=e):n=m(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(59),o=n(55);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},,function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(25),o=n(12),i=n(64);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(75),o=n(56).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(22),o=n(35),i=n(85).indexOf,a=n(47);e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){var r=n(77),o=n(78),i=n(12);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!Symbol.sham&&(r?38===o:o>37&&o<41)}))},function(e,t,n){var r=n(41),o=n(8);e.exports="process"==r(o.process)},function(e,t,n){var r,o,i=n(8),a=n(89),c=i.process,u=c&&c.versions,s=u&&u.v8;s?o=(r=s.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},,,function(e,t,n){var r=n(12),o=n(41),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(12),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(26),o=n(49),i=n(63);r({target:"Object",stat:!0,forced:n(12)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(35),o=n(43),i=n(102),a=function(e){return function(t,n,a){var c,u=r(t),s=o(u.length),l=i(a,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t){e.exports={}},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},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(36);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(27).f,o=n(22),i=n(18)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r={};r[n(18)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t){e.exports=window.wp.keycodes},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(8);e.exports=r},function(e,t,n){var r=n(61);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},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}))},function(e,t,n){var r=n(36);e.exports=r("document","documentElement")},function(e,t,n){var r=n(87);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}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=window.wp.htmlEntities},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=window.wp.hooks},function(e,t,n){var r=n(52),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){var r=n(36),o=n(74),i=n(88),a=n(19);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},,function(e,t,n){var r=n(25),o=n(27),i=n(19),a=n(63);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=r.length,u=0;c>u;)o.f(e,n=r[u++],t[n]);return e}},,function(e,t,n){"use strict";var r=n(26),o=n(85).includes,i=n(118);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,n){var r=n(22),o=n(103),i=n(45),a=n(27);e.exports=function(e,t){for(var n=o(t),c=a.f,u=i.f,s=0;s<n.length;s++){var l=n[s];r(e,l)||c(e,l,u(t,l))}}},function(e,t,n){var r=n(8),o=n(65),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){var r=n(76);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t){e.exports=window.wc.components},function(e,t,n){var r=n(91),o=n(41),i=n(18)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(91),o=n(37),i=n(161);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){var r=n(95),o=n(81),i=n(49),a=n(43),c=n(153),u=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,l=4==e,f=6==e,p=7==e,d=5==e||f;return function(m,h,v,y){for(var g,b,w=i(m),O=o(w),j=r(h,v,3),x=a(O.length),E=0,_=y||c,S=t?_(m,x):n||p?_(m,0):void 0;x>E;E++)if((d||E in O)&&(b=j(g=O[E],E,w),e))if(t)S[E]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return E;case 2:u.call(S,g)}else switch(e){case 4:return!1;case 7:u.call(S,g)}return f?-1:s||l?l:S}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterOut:s(7)}},function(e,t,n){"use strict";var r=n(26),o=n(114).map;r({target:"Array",proto:!0,forced:!n(128)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(26),o=n(120);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(35),o=n(118),i=n(86),a=n(50),c=n(177),u=a.set,s=a.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,t){u(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var r=n(18),o=n(69),i=n(27),a=r("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),e.exports=function(e){c[a][e]=!0}},function(e,t,n){"use strict";var r=n(53),o=n(27),i=n(46);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){"use strict";var r,o,i=n(169),a=n(188),c=RegExp.prototype.exec,u=String.prototype.replace,s=c,l=(r=/a/,o=/b*/g,c.call(r,"a"),c.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||f)&&(s=function(e){var t,n,r,o,a=this,s=f&&a.sticky,d=i.call(a),m=a.source,h=0,v=e;return s&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),v=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(m="(?: "+m+")",v=" "+v,h++),n=new RegExp("^(?:"+m+")",d)),p&&(n=new RegExp("^"+m+"$(?!\\s)",d)),l&&(t=a.lastIndex),r=c.call(s?n:a,v),s?r?(r.input=r.input.slice(h),r[0]=r[0].slice(h),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:l&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),p&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=s},,function(e,t,n){"use strict";var r=n(215),o=n(216),i=n(133);e.exports={formats:i,parse:o,stringify:r}},function(e,t){e.exports=window.ReactDOM},,function(e,t,n){"use strict";var r=n(26),o=n(8),i=n(36),a=n(59),c=n(25),u=n(76),s=n(110),l=n(12),f=n(22),p=n(129),d=n(23),m=n(19),h=n(49),v=n(35),y=n(53),g=n(46),b=n(69),w=n(63),O=n(74),j=n(242),x=n(88),E=n(45),_=n(27),S=n(84),k=n(31),P=n(37),C=n(70),A=n(60),T=n(47),R=n(68),N=n(18),I=n(195),L=n(243),M=n(90),U=n(50),D=n(114).forEach,F=A("hidden"),V=N("toPrimitive"),B=U.set,q=U.getterFor("Symbol"),z=Object.prototype,H=o.Symbol,$=i("JSON","stringify"),W=E.f,G=_.f,Q=j.f,Y=S.f,K=C("symbols"),Z=C("op-symbols"),J=C("string-to-symbol-registry"),X=C("symbol-to-string-registry"),ee=C("wks"),te=o.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=c&&l((function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=W(z,t);r&&delete z[t],G(e,t,n),r&&e!==z&&G(z,t,r)}:G,oe=function(e,t){var n=K[e]=b(H.prototype);return B(n,{type:"Symbol",tag:e,description:t}),c||(n.description=t),n},ie=s?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},ae=function(e,t,n){e===z&&ae(Z,t,n),m(e);var r=y(t,!0);return m(n),f(K,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:g(0,!1)})):(f(e,F)||G(e,F,g(1,{})),e[F][r]=!0),re(e,r,n)):G(e,r,n)},ce=function(e,t){m(e);var n=v(t),r=w(n).concat(fe(n));return D(r,(function(t){c&&!ue.call(n,t)||ae(e,t,n[t])})),e},ue=function(e){var t=y(e,!0),n=Y.call(this,t);return!(this===z&&f(K,t)&&!f(Z,t))&&(!(n||!f(this,t)||!f(K,t)||f(this,F)&&this[F][t])||n)},se=function(e,t){var n=v(e),r=y(t,!0);if(n!==z||!f(K,r)||f(Z,r)){var o=W(n,r);return!o||!f(K,r)||f(n,F)&&n[F][r]||(o.enumerable=!0),o}},le=function(e){var t=Q(v(e)),n=[];return D(t,(function(e){f(K,e)||f(T,e)||n.push(e)})),n},fe=function(e){var t=e===z,n=Q(t?Z:v(e)),r=[];return D(n,(function(e){!f(K,e)||t&&!f(z,e)||r.push(K[e])})),r};(u||(P((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function(e){this===z&&n.call(Z,e),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),re(this,t,g(1,e))};return c&&ne&&re(z,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return q(this).tag})),P(H,"withoutSetter",(function(e){return oe(R(e),e)})),S.f=ue,_.f=ae,E.f=se,O.f=j.f=le,x.f=fe,I.f=function(e){return oe(N(e),e)},c&&(G(H.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),a||P(z,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:H}),D(w(ee),(function(e){L(e)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(J,t))return J[t];var n=H(t);return J[t]=n,X[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(f(X,e))return X[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?b(e):ce(b(e),t)},defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:se}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:le,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:l((function(){x.f(1)}))},{getOwnPropertySymbols:function(e){return x.f(h(e))}}),$)&&r({target:"JSON",stat:!0,forced:!u||l((function(){var e=H();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(d(t)||void 0!==e)&&!ie(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ie(t))return t}),o[1]=t,$.apply(null,o)}});H.prototype[V]||k(H.prototype,V,H.prototype.valueOf),M(H,"Symbol"),T[F]=!0},function(e,t,n){var r=n(8),o=n(175),i=n(206),a=n(31);for(var c in o){var u=r[c],s=u&&u.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(e){s.forEach=i}}},function(e,t,n){"use strict";var r=n(26),o=n(12),i=n(129),a=n(23),c=n(49),u=n(43),s=n(119),l=n(153),f=n(128),p=n(18),d=n(78),m=p("isConcatSpreadable"),h=d>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=f("concat"),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!h||!v},{concat:function(e){var t,n,r,o,i,a=c(this),f=l(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(y(i=-1===t?a:arguments[t])){if(p+(o=u(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&s(f,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(f,p++,i)}return f.length=p,f}})},function(e,t,n){var r=n(12),o=n(18),i=n(78),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(41);e.exports=Array.isArray||function(e){return"Array"==r(e)}},,function(e,t,n){"use strict";var r=n(26),o=n(114).filter;r({target:"Array",proto:!0,forced:!n(128)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(112),o=n(86),i=n(18)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},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}},function(e,t,n){"use strict";var r=n(139).charAt,o=n(50),i=n(177),a=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},,,function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){var r=n(52),o=n(40),i=function(e){return function(t,n){var i,a,c=String(o(t)),u=r(n),s=c.length;return u<0||u>=s?e?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?e?c.charAt(u):i:e?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){"use strict";n(116);var r=n(37),o=n(12),i=n(18),a=n(120),c=n(31),u=i("species"),s=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=i("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),d=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var m=i(e),h=!o((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),v=h&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t}));if(!h||!v||"replace"===e&&(!s||!l||p)||"split"===e&&!d){var y=/./[m],g=n(m,""[e],(function(e,t,n,r,o){return t.exec===a?h&&!o?{done:!0,value:y.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=g[0],w=g[1];r(String.prototype,e,b),r(RegExp.prototype,m,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&c(RegExp.prototype[m],"sham",!0)}},function(e,t,n){var r=n(41),o=n(120);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){var r=n(87);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},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.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},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}},e.exports.default=e.exports,e.exports.__esModule=!0},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.")},e.exports.default=e.exports,e.exports.__esModule=!0},,,function(e,t,n){var r=n(26),o=n(12),i=n(35),a=n(45).f,c=n(25),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!c||u,sham:!c},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){var r=n(26),o=n(25),i=n(103),a=n(35),c=n(45),u=n(119);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=c.f,s=i(r),l={},f=0;s.length>f;)void 0!==(n=o(r,t=s[f++]))&&u(l,t,n);return l}})},function(e,t,n){var r=n(8),o=n(175),i=n(117),a=n(31),c=n(18),u=c("iterator"),s=c("toStringTag"),l=i.values;for(var f in o){var p=r[f],d=p&&p.prototype;if(d){if(d[u]!==l)try{a(d,u,l)}catch(e){d[u]=l}if(d[s]||a(d,s,f),o[f])for(var m in i)if(d[m]!==i[m])try{a(d,m,i[m])}catch(e){d[m]=i[m]}}}},function(e,t,n){var r=n(23),o=n(129),i=n(18)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(37);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},,,function(e,t,n){"use strict";var r,o,i,a,c=n(26),u=n(59),s=n(8),l=n(36),f=n(208),p=n(37),d=n(154),m=n(90),h=n(162),v=n(23),y=n(61),g=n(135),b=n(65),w=n(179),O=n(165),j=n(180),x=n(166).set,E=n(209),_=n(211),S=n(212),k=n(168),P=n(213),C=n(50),A=n(82),T=n(18),R=n(77),N=n(78),I=T("species"),L="Promise",M=C.get,U=C.set,D=C.getterFor(L),F=f,V=s.TypeError,B=s.document,q=s.process,z=l("fetch"),H=k.f,$=H,W=!!(B&&B.createEvent&&s.dispatchEvent),G="function"==typeof PromiseRejectionEvent,Q=A(L,(function(){if(!(b(F)!==String(F))){if(66===N)return!0;if(!R&&!G)return!0}if(u&&!F.prototype.finally)return!0;if(N>=51&&/native code/.test(F))return!1;var e=F.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[I]=t,!(e.then((function(){}))instanceof t)})),Y=Q||!O((function(e){F.all(e).catch((function(){}))})),K=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},Z=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;E((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,c,u,s=n[i++],l=o?s.ok:s.fail,f=s.resolve,p=s.reject,d=s.domain;try{l?(o||(2===e.rejection&&te(e),e.rejection=1),!0===l?a=r:(d&&d.enter(),a=l(r),d&&(d.exit(),u=!0)),a===s.promise?p(V("Promise-chain cycle")):(c=K(a))?c.call(a,f,p):f(a)):p(r)}catch(e){d&&!u&&d.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&X(e)}))}},J=function(e,t,n){var r,o;W?((r=B.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},!G&&(o=s["on"+e])?o(r):"unhandledrejection"===e&&S("Unhandled promise rejection",n)},X=function(e){x.call(s,(function(){var t,n=e.facade,r=e.value;if(ee(e)&&(t=P((function(){R?q.emit("unhandledRejection",r,n):J("unhandledrejection",n,r)})),e.rejection=R||ee(e)?2:1,t.error))throw t.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e){x.call(s,(function(){var t=e.facade;R?q.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)}))},ne=function(e,t,n){return function(r){e(t,r,n)}},re=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Z(e,!0))},oe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw V("Promise can't be resolved itself");var r=K(t);r?E((function(){var n={done:!1};try{r.call(t,ne(oe,n,e),ne(re,n,e))}catch(t){re(n,t,e)}})):(e.value=t,e.state=1,Z(e,!1))}catch(t){re({done:!1},t,e)}}};Q&&(F=function(e){g(this,F,L),y(e),r.call(this);var t=M(this);try{e(ne(oe,t),ne(re,t))}catch(e){re(t,e)}},(r=function(e){U(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(F.prototype,{then:function(e,t){var n=D(this),r=H(j(this,F));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=R?q.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Z(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=M(e);this.promise=e,this.resolve=ne(oe,t),this.reject=ne(re,t)},k.f=H=function(e){return e===F||e===i?new o(e):$(e)},u||"function"!=typeof f||(a=f.prototype.then,p(f.prototype,"then",(function(e,t){var n=this;return new F((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof z&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return _(F,z.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:Q},{Promise:F}),m(F,L,!1,!0),h(L),i=l(L),c({target:L,stat:!0,forced:Q},{reject:function(e){var t=H(this);return t.reject.call(void 0,e),t.promise}}),c({target:L,stat:!0,forced:u||Q},{resolve:function(e){return _(u&&this===i?F:this,e)}}),c({target:L,stat:!0,forced:Y},{all:function(e){var t=this,n=H(t),r=n.resolve,o=n.reject,i=P((function(){var n=y(t.resolve),i=[],a=0,c=1;w(e,(function(e){var u=a++,s=!1;i.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=H(t),r=n.reject,o=P((function(){var o=y(t.resolve);w(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(e,t,n){"use strict";var r=n(140),o=n(19),i=n(43),a=n(52),c=n(40),u=n(170),s=n(214),l=n(141),f=Math.max,p=Math.min;r("replace",2,(function(e,t,n,r){var d=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=r.REPLACE_KEEPS_$0,h=d?"$":"$0";return[function(n,r){var o=c(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!d&&m||"string"==typeof r&&-1===r.indexOf(h)){var c=n(t,e,this,r);if(c.done)return c.value}var v=o(e),y=String(this),g="function"==typeof r;g||(r=String(r));var b=v.global;if(b){var w=v.unicode;v.lastIndex=0}for(var O=[];;){var j=l(v,y);if(null===j)break;if(O.push(j),!b)break;""===String(j[0])&&(v.lastIndex=u(y,i(v.lastIndex),w))}for(var x,E="",_=0,S=0;S<O.length;S++){j=O[S];for(var k=String(j[0]),P=f(p(a(j.index),y.length),0),C=[],A=1;A<j.length;A++)C.push(void 0===(x=j[A])?x:String(x));var T=j.groups;if(g){var R=[k].concat(C,P,y);void 0!==T&&R.push(T);var N=String(r.apply(void 0,R))}else N=s(k,y,P,C,T,r);P>=_&&(E+=y.slice(_,P)+N,_=P+k.length)}return E+y.slice(_)}]}))},function(e,t,n){"use strict";var r,o,i,a=n(12),c=n(160),u=n(31),s=n(22),l=n(18),f=n(59),p=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):d=!0);var m=null==r||a((function(){var e={};return r[p].call(e)!==e}));m&&(r={}),f&&!m||s(r,p)||u(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var r=n(22),o=n(49),i=n(60),a=n(207),c=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){"use strict";var r=n(91),o=n(112);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r=n(36),o=n(27),i=n(18),a=n(25),c=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(18),o=n(86),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(19);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(18)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){var r,o,i,a=n(8),c=n(12),u=n(95),s=n(97),l=n(64),f=n(167),p=n(77),d=a.location,m=a.setImmediate,h=a.clearImmediate,v=a.process,y=a.MessageChannel,g=a.Dispatch,b=0,w={},O=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},j=function(e){return function(){O(e)}},x=function(e){O(e.data)},E=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};m&&h||(m=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},h=function(e){delete w[e]},p?r=function(e){v.nextTick(j(e))}:g&&g.now?r=function(e){g.now(j(e))}:y&&!f?(i=(o=new y).port2,o.port1.onmessage=x,r=u(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&d&&"file:"!==d.protocol&&!c(E)?(r=E,a.addEventListener("message",x,!1)):r="onreadystatechange"in l("script")?function(e){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),O(e)}}:function(e){setTimeout(j(e),0)}),e.exports={set:m,clear:h}},function(e,t,n){var r=n(89);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r=n(61),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(19);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(139).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(133),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)}}},,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(72);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(138);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 y=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}function b(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),y||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?g:h,O=a.keyLength,j=void 0===O?6:O,x=e.basename?p(l(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return x&&(i=f(i,x)),m(i,r,n)}function _(){return Math.random().toString(36).substr(2,j)}var S=v();function k(e){Object(r.a)(F,e),F.length=n.length,S.notifyListeners(F.location,F.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||T(E(e.state))}function C(){T(E(b()))}var A=!1;function T(e){if(A)A=!1,k();else{S.confirmTransitionTo(e,"POP",w,(function(t){t?k({action:"POP",location:e}):function(e){var t=F.location,n=N.indexOf(t.key);-1===n&&(n=0);var r=N.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(A=!0,L(o))}(e)}))}}var R=E(b()),N=[R.key];function I(e){return x+d(e)}function L(e){n.go(e)}var M=0;function U(e){1===(M+=e)&&1===e?(window.addEventListener("popstate",P),i&&window.addEventListener("hashchange",C)):0===M&&(window.removeEventListener("popstate",P),i&&window.removeEventListener("hashchange",C))}var D=!1;var F={length:n.length,action:"POP",location:R,createHref:I,push:function(e,t){var r=m(e,t,_(),F.location);S.confirmTransitionTo(r,"PUSH",w,(function(e){if(e){var t=I(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=N.indexOf(F.location.key),s=N.slice(0,c+1);s.push(r.key),N=s,k({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=m(e,t,_(),F.location);S.confirmTransitionTo(r,"REPLACE",w,(function(e){if(e){var t=I(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=N.indexOf(F.location.key);-1!==c&&(N[c]=r.key),k({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=S.setPrompt(e);return D||(U(1),D=!0),function(){return D&&(D=!1,U(-1)),t()}},listen:function(e){var t=S.appendListener(e);return U(1),function(){U(-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),y=i.map((function(e){return m(e,void 0,"string"==typeof e?p():e.key||p())})),g=d;function b(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:y.length,action:"POP",location:y[h],index:h,entries:y,createHref:g,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:b,goBack:function(){b(-1)},goForward:function(){b(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}},function(e,t,n){var r=n(26),o=n(36),i=n(61),a=n(19),c=n(23),u=n(69),s=n(205),l=n(12),f=o("Reflect","construct"),p=l((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),d=!l((function(){f((function(){}))})),m=p||d;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(d&&!p)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(s.apply(e,r))}var o=n.prototype,l=u(c(o)?o:Object.prototype),m=Function.apply.call(e,l,t);return c(m)?m:l}})},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(26),o=n(186),i=n(160),a=n(178),c=n(90),u=n(31),s=n(37),l=n(18),f=n(59),p=n(86),d=n(159),m=d.IteratorPrototype,h=d.BUGGY_SAFARI_ITERATORS,v=l("iterator"),y=function(){return this};e.exports=function(e,t,n,l,d,g,b){o(n,t,l);var w,O,j,x=function(e){if(e===d&&P)return P;if(!h&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",_=!1,S=e.prototype,k=S[v]||S["@@iterator"]||d&&S[d],P=!h&&k||x(d),C="Array"==t&&S.entries||k;if(C&&(w=i(C.call(new e)),m!==Object.prototype&&w.next&&(f||i(w)===m||(a?a(w,m):"function"!=typeof w[v]&&u(w,v,y)),c(w,E,!0,!0),f&&(p[E]=y))),"values"==d&&k&&"values"!==k.name&&(_=!0,P=function(){return k.call(this)}),f&&!b||S[v]===P||u(S,v,P),p[t]=P,d)if(O={values:x("values"),keys:g?P:x("keys"),entries:x("entries")},b)for(j in O)(h||_||!(j in S))&&s(S,j,O[j]);else r({target:t,proto:!0,forced:h||_},O);return O}},function(e,t,n){var r=n(19),o=n(187);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){var r=n(19),o=n(163),i=n(43),a=n(95),c=n(132),u=n(164),s=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,f,p,d,m,h,v,y=n&&n.that,g=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),O=a(t,y,1+g+w),j=function(e){return l&&u(l),new s(!0,e)},x=function(e){return g?(r(e),w?O(e[0],e[1],j):O(e[0],e[1])):w?O(e,j):O(e)};if(b)l=e;else{if("function"!=typeof(f=c(e)))throw TypeError("Target is not iterable");if(o(f)){for(p=0,d=i(e.length);d>p;p++)if((m=x(e[p]))&&m instanceof s)return m;return new s(!1)}l=f.call(e)}for(h=l.next;!(v=h.call(l)).done;){try{m=x(v.value)}catch(e){throw u(l),e}if("object"==typeof m&&m&&m instanceof s)return m}return new s(!1)}},function(e,t,n){var r=n(19),o=n(61),i=n(18)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r="wc/customer-effort-score",o="/wc-admin",i="woocommerce_ces_tracks_queue"},function(e,t){e.exports=window.wp.date},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var r=n(159).IteratorPrototype,o=n(69),i=n(46),a=n(90),c=n(86),u=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,s,!1,!0),c[s]=u,e}},function(e,t,n){var r=n(23);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var r=n(12);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var r=n(190);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,function(e,t,n){var r=n(18);t.f=r},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},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(23),o=n(41),i=n(18)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},,,function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(100);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},,,function(e,t,n){"use strict";var r=n(26),o=n(290),i=n(40);r({target:"String",proto:!0,forced:!n(291)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(61),o=n(23),i=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?c(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(a.prototype=t.prototype),a}},function(e,t,n){"use strict";var r=n(114).forEach,o=n(185)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(12);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(8);e.exports=r.Promise},function(e,t,n){var r,o,i,a,c,u,s,l,f=n(8),p=n(45).f,d=n(166).set,m=n(167),h=n(210),v=n(77),y=f.MutationObserver||f.WebKitMutationObserver,g=f.document,b=f.process,w=f.Promise,O=p(f,"queueMicrotask"),j=O&&O.value;j||(r=function(){var e,t;for(v&&(e=b.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},m||v||h||!y||!g?w&&w.resolve?(s=w.resolve(void 0),l=s.then,a=function(){l.call(s,r)}):a=v?function(){b.nextTick(r)}:function(){d.call(f,r)}:(c=!0,u=g.createTextNode(""),new y(r).observe(u,{characterData:!0}),a=function(){u.data=c=!c})),e.exports=j||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},function(e,t,n){var r=n(89);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){var r=n(19),o=n(23),i=n(168);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r=n(8);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){var r=n(49),o=Math.floor,i="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,u,s,l){var f=n+e.length,p=u.length,d=c;return void 0!==s&&(s=r(s),d=a),i.call(l,d,(function(r,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":a=s[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>p){var l=o(c/10);return 0===l?r:l<=p?void 0===u[l-1]?i.charAt(1):u[l-1]+i.charAt(1):r}a=u[c-1]}return void 0===a?"":a}))}},function(e,t,n){"use strict";var r=n(171),o=n(133),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,y,g){var b,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&&!y?u(n,p.encoder,g,"key",h):n;w=""}if("string"==typeof(b=w)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||r.isBuffer(w))return u?[v(y?n:u(n,p.encoder,g,"key",h))+"="+v(u(w,p.encoder,g,"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 x=Object.keys(w);O=f?x.sort(f):x}for(var E=0;E<O.length;++E){var _=O[E],S="object"==typeof _&&void 0!==_.value?_.value:w[_];if(!a||null!==S){var k=c(w)?"function"==typeof o?o(n,_):n:n+(d?"."+_:"["+_+"]");s(j,e(S,k,o,i,a,u,l,f,d,m,h,v,y,g))}}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 y=f.join(u.delimiter),g=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),y.length>0?g+y:""}},function(e,t,n){"use strict";var r=n(171),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,y=p[n],g=y.indexOf("]="),b=-1===g?y.indexOf("="):g+1;-1===b?(h=t.decoder(y,a.decoder,m,"key"),v=t.strictNullHandling?null:""):(h=t.decoder(y.slice(0,b),a.decoder,m,"key"),v=r.maybeMap(u(y.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===m&&(v=c(v)),y.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)}},,,,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(29),o=n.n(r),i=(n(116),n(239),n(107),n(204),n(115),n(117),n(113),n(442),n(134),n(152),n(127),n(126),n(328),n(260),n(158),n(99)),a=n(3),c=n(42);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)}},,function(e,t,n){"use strict";var r=n(25),o=n(12),i=n(63),a=n(88),c=n(84),u=n(49),s=n(81),l=Object.assign,f=Object.defineProperty;e.exports=!l||o((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=i(l({},t)).join("")}))?function(e,t){for(var n=u(e),o=arguments.length,l=1,f=a.f,p=c.f;o>l;)for(var d,m=s(arguments[l++]),h=f?i(m).concat(f(m)):i(m),v=h.length,y=0;v>y;)d=h[y++],r&&!p.call(m,d)||(n[d]=m[d]);return n}:l},function(e,t,n){"use strict";var r=n(95),o=n(49),i=n(244),a=n(163),c=n(43),u=n(119),s=n(132);e.exports=function(e){var t,n,l,f,p,d,m=o(e),h="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,g=void 0!==y,b=s(m),w=0;if(g&&(y=r(y,v>2?arguments[2]:void 0,2)),null==b||h==Array&&a(b))for(n=new h(t=c(m.length));t>w;w++)d=g?y(m[w],w):m[w],u(n,w,d);else for(p=(f=b.call(m)).next,n=new h;!(l=p.call(f)).done;w++)d=g?i(f,y,[l.value,w],!0):l.value,u(n,w,d);return n.length=w,n}},function(e,t,n){var r=n(23),o=n(178);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(140),o=n(197),i=n(19),a=n(40),c=n(180),u=n(170),s=n(43),l=n(141),f=n(120),p=n(12),d=[].push,m=Math.min,h=!p((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var c,u,s,l=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,h=new RegExp(e.source,p+"g");(c=f.call(h,r))&&!((u=h.lastIndex)>m&&(l.push(r.slice(m,c.index)),c.length>1&&c.index<r.length&&d.apply(l,c.slice(1)),s=c[0].length,m=u,l.length>=i));)h.lastIndex===c.index&&h.lastIndex++;return m===r.length?!s&&h.test("")||l.push(""):l.push(r.slice(m)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var f=i(e),p=String(this),d=c(f,RegExp),v=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(h?"y":"g"),g=new d(h?f:"^(?:"+f.source+")",y),b=void 0===o?4294967295:o>>>0;if(0===b)return[];if(0===p.length)return null===l(g,p)?[p]:[];for(var w=0,O=0,j=[];O<p.length;){g.lastIndex=h?O:0;var x,E=l(g,h?p:p.slice(O));if(null===E||(x=m(s(g.lastIndex+(h?0:O)),p.length))===w)O=u(p,O,v);else{if(j.push(p.slice(w,O)),j.length===b)return j;for(var _=1;_<=E.length-1;_++)if(j.push(E[_]),j.length===b)return j;O=w=x}}return j.push(p.slice(w)),j}]}),!h)},function(e,t){e.exports=window.wc.currency},,function(e,t,n){var r=n(35),o=n(74).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(94),o=n(22),i=n(195),a=n(27).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(19),o=n(164);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){throw o(e),t}}},function(e,t,n){var r=n(12),o=n(18),i=n(59),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},,,,,,,,function(e,t){e.exports=window.wp.dom},,function(e,t,n){"use strict";var r=n(140),o=n(19),i=n(40),a=n(300),c=n(141);r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),u=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var l=c(i,u);return a(i.lastIndex,s)||(i.lastIndex=s),null===l?-1:l.index}]}))},,,function(e,t,n){"use strict";var r=n(37),o=n(19),i=n(12),a=n(169),c=RegExp.prototype,u=c.toString,s=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),l="toString"!=u.name;(s||l)&&r(RegExp.prototype,"toString",(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var r=n(140),o=n(19),i=n(43),a=n(40),c=n(170),u=n(141);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),s=String(this);if(!a.global)return u(a,s);var l=a.unicode;a.lastIndex=0;for(var f,p=[],d=0;null!==(f=u(a,s));){var m=String(f[0]);p[d]=m,""===m&&(a.lastIndex=c(s,i(a.lastIndex),l)),d++}return 0===d?null:p}]}))},function(e,t,n){"use strict";var r=n(25),o=n(8),i=n(82),a=n(37),c=n(22),u=n(41),s=n(224),l=n(53),f=n(12),p=n(69),d=n(74).f,m=n(45).f,h=n(27).f,v=n(285).trim,y=o.Number,g=y.prototype,b="Number"==u(p(g)),w=function(e){var t,n,r,o,i,a,c,u,s=l(e,!1);if("string"==typeof s&&s.length>2)if(43===(t=(s=v(s)).charCodeAt(0))||45===t){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(s.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,c=0;c<a;c++)if((u=i.charCodeAt(c))<48||u>o)return NaN;return parseInt(i,r)}return+s};if(i("Number",!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var O,j=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof j&&(b?f((function(){g.valueOf.call(n)})):"Number"!=u(n))?s(new y(w(t)),n,j):w(t)},x=r?d(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),E=0;x.length>E;E++)c(y,O=x[E])&&!c(j,O)&&h(j,O,m(y,O));j.prototype=g,g.constructor=j,a(o,"Number",j)}},function(e,t,n){var r=n(25),o=n(8),i=n(82),a=n(224),c=n(27).f,u=n(74).f,s=n(197),l=n(169),f=n(188),p=n(37),d=n(12),m=n(50).set,h=n(162),v=n(18)("match"),y=o.RegExp,g=y.prototype,b=/a/g,w=/a/g,O=new y(b)!==b,j=f.UNSUPPORTED_Y;if(r&&i("RegExp",!O||j||d((function(){return w[v]=!1,y(b)!=b||y(w)==w||"/a/i"!=y(b,"i")})))){for(var x=function(e,t){var n,r=this instanceof x,o=s(e),i=void 0===t;if(!r&&o&&e.constructor===x&&i)return e;O?o&&!i&&(e=e.source):e instanceof x&&(i&&(t=l.call(e)),e=e.source),j&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var c=a(O?new y(e,t):y(e,t),r?this:g,x);return j&&n&&m(c,{sticky:n}),c},E=function(e){e in x||c(x,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},_=u(y),S=0;_.length>S;)E(_[S++]);g.constructor=x,x.prototype=g,p(o,"RegExp",x)}h("RegExp")},,function(e,t,n){var r=n(47),o=n(23),i=n(22),a=n(27).f,c=n(68),u=n(456),s=c("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(e){a(e,s,{value:{objectID:"O"+ ++l,weakData:{}}})},d=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[s].objectID},getWeakData:function(e,t){if(!i(e,s)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[s].weakData},onFreeze:function(e){return u&&d.REQUIRED&&f(e)&&!i(e,s)&&p(e),e}};r[s]=!0},function(e,t,n){"use strict";e.exports=n(305)},,,,,,,,,,function(e,t,n){"use strict";n(117),n(113),n(157),n(134),n(152),n(131);var r=n(2),o=n(101),i=n(42),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,622))})),s=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(2),n.e(15)]).then(n.bind(null,618))})),l=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(2),n.e(19)]).then(n.bind(null,623))})),f=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(5),n.e(14)]).then(n.bind(null,624))})),p=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(2),n.e(10)]).then(n.bind(null,620))})),d=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(11)]).then(n.bind(null,625))})),m=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(18)]).then(n.bind(null,626))})),h=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(13)]).then(n.bind(null,627))})),v=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(17)]).then(n.bind(null,619))})),y=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(12)]).then(n.bind(null,621))}));t.a=function(){var e=[{report:"revenue",title:Object(r.__)("Revenue",'woocommerce'),component:u,navArgs:{id:"woocommerce-analytics-revenue"}},{report:"products",title:Object(r.__)("Products",'woocommerce'),component:s,navArgs:{id:"woocommerce-analytics-products"}},{report:"variations",title:Object(r.__)("Variations",'woocommerce'),component:l,navArgs:{id:"woocommerce-analytics-variations"}},{report:"orders",title:Object(r.__)("Orders",'woocommerce'),component:f,navArgs:{id:"woocommerce-analytics-orders"}},{report:"categories",title:Object(r.__)("Categories",'woocommerce'),component:p,navArgs:{id:"woocommerce-analytics-categories"}},{report:"coupons",title:Object(r.__)("Coupons",'woocommerce'),component:d,navArgs:{id:"woocommerce-analytics-coupons"}},{report:"taxes",title:Object(r.__)("Taxes",'woocommerce'),component:m,navArgs:{id:"woocommerce-analytics-taxes"}},"yes"===c?{report:"stock",title:Object(r.__)("Stock",'woocommerce'),component:v,navArgs:{id:"woocommerce-analytics-stock"}}:null,{report:"customers",title:Object(r.__)("Customers",'woocommerce'),component:y},{report:"downloads",title:Object(r.__)("Downloads",'woocommerce'),component:h,navArgs:{id:"woocommerce-analytics-downloads"}}].filter(Boolean);return Object(o.applyFilters)("woocommerce_admin_reports_list",e)}},function(e,t,n){"use strict";var r=n(264),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 y=a[v];if(!(i[y]||r&&r[y]||h&&h[y]||c&&c[y])){var g=p(n,y);try{s(t,y,g)}catch(e){}}}}return t}},,,function(e,t){e.exports=window.wp.plugins},,function(e,t,n){"use strict";n.d(t,"c",(function(){return Vt})),n.d(t,"b",(function(){return zt})),n.d(t,"a",(function(){return Ht}));n(174),n(83),n(125),n(150),n(126),n(151);var r=n(39),o=n.n(r),i=n(66),a=n.n(i),c=n(4),u=n.n(c),s=n(13),l=n.n(s),f=n(14),p=n.n(f),d=n(16),m=n.n(d),h=n(17),v=n.n(h),y=n(7),g=n.n(y),b=n(0),w=(n(117),n(113),n(157),n(134),n(152),n(116),n(255),n(158),n(107),n(204),n(115),n(131),n(5)),O=n(34),j=n(15),x=n(96),E=n(11),_=n.n(E),S=n(1),k=n.n(S),P=n(173),C=n(325),A=n(138),T=n(72),R=n(326),N=n.n(R),I=(n(264),n(100)),L=(n(275),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"),U=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(x.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={},F=0;function V(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 F<1e4&&(r[e]=i,F++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var l=u[0],f=u.slice(1),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 B=function(e){function t(){return e.apply(this,arguments)||this}return Object(x.a)(t,e),t.prototype.render=function(){var e=this;return _.a.createElement(M.Consumer,null,(function(t){t||Object(A.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?V(n.pathname,e.props):t.match,o=Object(T.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 q(e){return"/"===e.charAt(0)?e:"/"+e}function z(e,t){if(!e)return t;var n=q(e);return 0!==t.pathname.indexOf(n)?t:Object(T.a)({},t,{pathname:t.pathname.substr(n.length)})}function H(e){return"string"==typeof e?e:Object(P.d)(e)}function $(e){return function(){Object(A.a)(!1)}}function W(){}_.a.Component;var G=function(e){function t(){return e.apply(this,arguments)||this}return Object(x.a)(t,e),t.prototype.render=function(){var e=this;return _.a.createElement(M.Consumer,null,(function(t){t||Object(A.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?V(o.pathname,Object(T.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),Y=n(122),K=n(111),Z=n(28),J=n(42),X=n(33),ee=n(44),te=(n(454),n(455),n(127),n(259),n(239),n(294),n(287),n(101)),ne=n(2),re=n(274),oe=n(220);function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var ae=Object(b.lazy)((function(){return n.e(9).then(n.bind(null,743))})),ce=Object(b.lazy)((function(){return n.e(20).then(n.bind(null,764))})),ue=Object(b.lazy)((function(){return n.e(28).then(n.bind(null,744))})),se=Object(b.lazy)((function(){return Promise.all([n.e(1),n.e(3),n.e(55),n.e(4),n.e(34)]).then(n.bind(null,762))})),le=Object(b.lazy)((function(){return Promise.all([n.e(3),n.e(38)]).then(n.bind(null,765))})),fe=Object(b.lazy)((function(){return Promise.all([n.e(56),n.e(49)]).then(n.bind(null,763))})),pe=Object(b.lazy)((function(){return Promise.all([n.e(56),n.e(49)]).then(n.bind(null,756))})),de=function(){var e=[],t=[["",wcSettings.woocommerceTranslation]];return e.push({container:se,path:"/",breadcrumbs:[].concat(t,[Object(ne.__)("Home",'woocommerce')]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-home"},capability:"manage_woocommerce"}),window.wcAdminFeatures.analytics&&(e.push({container:ue,path:"/analytics/overview",breadcrumbs:[].concat(t,[["/analytics/overview",Object(ne.__)("Analytics",'woocommerce')],Object(ne.__)("Overview",'woocommerce')]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-overview"},capability:"view_woocommerce_reports"}),e.push({container:ce,path:"/analytics/settings",breadcrumbs:[].concat(t,[["/analytics/revenue",Object(ne.__)("Analytics",'woocommerce')],Object(ne.__)("Settings",'woocommerce')]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-settings"},capability:"view_woocommerce_reports"}),e.push({container:ae,path:"/customers",breadcrumbs:[].concat(t,[Object(ne.__)("Customers",'woocommerce')]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-analytics-customers"},capability:"view_woocommerce_reports"}),e.push({container:ae,path:"/analytics/:report",breadcrumbs:function(e){var n=e.match,r=Object(Q.find)(Object(re.a)(),{report:n.params.report});return r?[].concat(t,[["/analytics/revenue",Object(ne.__)("Analytics",'woocommerce')],r.title]):[]},wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",capability:"view_woocommerce_reports"})),window.wcAdminFeatures.marketing&&e.push({container:le,path:"/marketing",breadcrumbs:[].concat(t,[["/marketing",Object(ne.__)("Marketing",'woocommerce')],Object(ne.__)("Overview",'woocommerce')]),wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"woocommerce-marketing-overview"},capability:"view_woocommerce_reports"}),window.wcAdminFeatures.onboarding&&e.push({container:fe,path:"/setup-wizard",breadcrumbs:[].concat(t,[["/setup-wizard",Object(ne.__)("Setup Wizard",'woocommerce')]]),capability:"manage_woocommerce"}),window.wcAdminFeatures.settings&&e.push({container:pe,path:"/settings/:page",breadcrumbs:function(e){var n=e.match,r=Object(J.g)("settingsPages"),o=r[n.params.page];return o?[].concat(t,[[r.general?"/settings/general":"/settings/".concat(Object.keys(r)[0]),Object(ne.__)("Settings",'woocommerce')],o]):[]},wpOpenMenu:"toplevel_page_woocommerce",capability:"manage_woocommerce"}),Object(te.applyFilters)("woocommerce_admin_pages_list",e)},me=function(e){m()(n,e);var t=ie(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(b.createElement)(b.Suspense,{fallback:Object(b.createElement)(K.Spinner,null)},Object(b.createElement)(t.container,{params:i,path:o,pathMatch:t.path,query:r}))}}]),n}(b.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(oe.f)(e.href)){var r=Object(Q.last)(e.href.split("?")),o=Object(Y.parse)(r),i=o.path||"homescreen",a=Object(Z.getScreenFromPath)(i),c=n.includes(a),u="admin.php?"+Object(Y.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")};n(293),n(284),n(282);var he=n(9),ve=n.n(he),ye=n(99),ge=n(58),be=n(461),we=n(635),Oe=n(92),je=(n(458),n(30)),xe=n.n(je),Ee=(n(281),n(20)),_e=Object(b.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(Ee.Path,{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"})),Se=Object(b.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(Ee.Path,{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"})),ke=n(634),Pe=(n(459),n(342)),Ce={page:1,per_page:X.QUERY_DEFAULTS.pageSize,status:"unactioned",type:X.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc"};function Ae(e){var t=e(X.NOTES_STORE_NAME),n=t.getNotes,r=t.getNotesError,o=t.isResolving,i=(0,e(X.USER_STORE_NAME).getCurrentUser)(),a=parseInt(i&&i.woocommerce_meta&&i.woocommerce_meta.activity_panel_inbox_last_read,10);if(!a)return null;n(Ce);var c=Boolean(r("getNotes",[Ce])),u=o("getNotes",[Ce]);if(c||u)return null;var s=n(Ce);return Object(Pe.a)(s,a)>0}var Te=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=ve()("woocommerce-layout__activity-panel-tab",{"is-active":a&&i,"has-unread":o}),s="activity-panel-tab-".concat(r);return Object(b.createElement)(w.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(b.createElement)("span",{className:"screen-reader-text"},Object(ne.__)("unread activity",'woocommerce')))},Re=function(e){var t=e.tabs,n=e.onTabClick,r=e.selectedTab,i=e.tabOpen,a=void 0!==i&&i,c=Object(b.useState)({tabOpen:a,currentTab:r}),u=xe()(c,2),s=u[0],l=s.tabOpen,f=s.currentTab,p=u[1];return Object(b.useEffect)((function(){p({tabOpen:a,currentTab:r})}),[a,r]),Object(b.createElement)(w.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(b.createElement)(r,o()({key:t},i))}return Object(b.createElement)(Te,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(ee.recordEvent)("activity_panel_open",{tab:e.name}),p({tabOpen:t,currentTab:e.name}),n(e,t)}}))})))},Ne=function(){return Object(b.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(b.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(b.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"}))},Ie=n(423),Le=n(633),Me=(n(460),"highlight-tooltip__show");function Ue(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,p=void 0!==f&&f,d=Object(b.useState)(u>0?null:i),m=xe()(d,2),h=m[0],v=m[1],y=Object(b.useState)(null),g=xe()(y,2),O=g[0],j=g[1],x=Object(b.useState)(null),E=xe()(x,2),_=E[0],S=E[1];function k(){if(p){var e=document.getElementById(a);S(e.getBoundingClientRect())}}Object(b.useEffect)((function(){var e,t,n=document.getElementById(a);n&&!O&&(p?(t=document.createElement("div"),document.body.appendChild(t)):t=n.parentElement,(e=document.createElement("div")).classList.add("highlight-tooltip__container"),t.appendChild(e),j(e));var r=P(e);return function(){if(e){var t=e.parentElement;t.removeChild(e),p&&t.remove()}r&&clearTimeout(r)}}),[]),Object(b.useEffect)((function(){!h&&O&&O.classList.remove(Me)}),[h]),Object(b.useEffect)((function(){i!==h&&null!==h&&O&&(v(i),i?O&&P(O):O.classList.remove(Me))}),[i]),Object(b.useLayoutEffect)((function(){return window.addEventListener("resize",k),function(){return window.removeEventListener("resize",k)}}),[]);var P=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&&p&&S(t.getBoundingClientRect()),e&&e.classList.add(Me),v(!0),l()},A=function(){v(!1),c&&c()};return O?Object(b.createPortal)(Object(b.createElement)("div",{className:"highlight-tooltip__portal"},h?Object(b.createElement)(b.Fragment,null,Object(b.createElement)(w.IsolatedEventContainer,{className:"highlight-tooltip__overlay"}),Object(b.createElement)(w.Popover,{className:"highlight-tooltip__popover",noArrow:!1,anchorRect:_,focusOnMount:"container"},Object(b.createElement)(w.Card,{size:"medium"},Object(b.createElement)(w.CardHeader,null,t,Object(b.createElement)(w.Button,{isSmall:!0,onClick:A,icon:Le.a})),Object(b.createElement)(w.CardBody,null,r||null),Object(b.createElement)(w.CardFooter,{isBorderless:!0},Object(b.createElement)(w.Button,{size:"small",isPrimary:!0,onClick:A},n||Object(ne.__)("Close",'woocommerce')))))):null),O):null}Ue.propTypes={id:k.a.string.isRequired,title:k.a.string.isRequired,closeButtonText:k.a.string.isRequired,content:k.a.oneOfType([k.a.string,k.a.node]),show:k.a.bool,onClose:k.a.func,delay:k.a.number,onShow:k.a.func,useAnchor:k.a.bool};n(328);var De=n(253);var Fe=["button","submit"];function Ve(e){var t=Object(b.useRef)(e);Object(b.useEffect)((function(){t.current=e}),[e]);var n=Object(b.useRef)(!1),r=Object(b.useRef)(),o=Object(b.useCallback)((function(){clearTimeout(r.current)}),[]);Object(b.useEffect)((function(){return function(){return o()}}),[]),Object(b.useEffect)((function(){e||o()}),[e,o]);var i=Object(b.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)(Fe,e.type)}return!1}(r)&&(n.current=!0)}),[]),a=Object(b.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 Be=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="woocommerce-layout__activity-panel-wrapper",l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement",t=Object(b.useRef)(e);return Object(b.useEffect)((function(){t.current=e}),[e]),Object(b.useCallback)((function(e){if(e&&!1!==t.current&&!e.contains(e.ownerDocument.activeElement)){var n=e;if("firstElement"===t.current){var r=De.focus.tabbable.find(e)[0];r&&(n=r)}n.focus()}}),[])}(),f=Ve((function(e){var t=e.relatedTarget&&(e.relatedTarget.closest(".woocommerce-inbox-dismiss-confirmation_modal")||e.relatedTarget.closest(".components-snackbar__action"));n&&!t&&c()})),p=Object(b.useRef)(null),d=Object(b.useCallback)((function(e){p.current=e,l(e)}),[]);if(!a)return Object(b.createElement)("div",{className:s});if(!t)return null;var m=ve()(s,{"is-open":n,"is-switching":r});return Object(b.createElement)("div",o()({className:m,tabIndex:0,role:"tabpanel","aria-label":a.title,onTransitionEnd:function(e){e&&"transform"===e.propertyName&&(u(),p.current&&n&&a&&l(p.current))}},f,{ref:d}),Object(b.createElement)("div",{className:"woocommerce-layout__activity-panel-content",key:"activity-panel-"+i,id:"activity-panel-"+i},Object(b.createElement)(b.Suspense,{fallback:Object(b.createElement)(K.Spinner,null)},t)))},qe=Object(b.lazy)((function(){return Promise.all([n.e(57),n.e(6),n.e(7)]).then(n.bind(null,757))})),ze=Object(b.lazy)((function(){return Promise.all([n.e(1),n.e(3),n.e(4),n.e(8)]).then(n.bind(null,742))})),He=function(e){var t,n,r,o=e.isEmbedded,i=e.query,a=e.userPreferencesData,c=Object(b.useState)(""),u=xe()(c,2),s=u[0],l=u[1],f=Object(b.useState)(!1),p=xe()(f,2),d=p[0],m=p[1],h=Object(b.useState)(!1),v=xe()(h,2),y=v[0],g=v[1],w=Object(b.useState)(!1),O=xe()(w,2),x=O[0],E=O[1],_=function(e,t){var n={};if("wc-admin"===i.page&&"appearance"===i.task){var r,o=(0,e(X.ONBOARDING_STORE_NAME).getTasksStatus)();n={set_notice:t("woocommerce_demo_store_notice")?"Y":"N",create_homepage:!0===o.hasHomepage?"Y":"N",upload_logo:null!==(r=o.themeMods)&&void 0!==r&&r.custom_logo?"Y":"N"}}return n},S=Object(j.useSelect)((function(e){var t=e(X.OPTIONS_STORE_NAME),n=t.getOption,r=t.isResolving;return{hasUnreadNotes:Ae(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")||[],previewSiteBtnTrackData:_(e,n)}})),k=S.hasUnreadNotes,P=S.requestingTaskListOptions,C=S.setupTaskListComplete,A=S.setupTaskListHidden,T=S.trackedCompletedTasks,R=S.previewSiteBtnTrackData,N=Object(j.useDispatch)(X.OPTIONS_STORE_NAME).updateOptions,I=Object(X.useUser)().currentUserCan,L=function(){return"wc-admin"===i.page&&!i.path},M=function(){return i.task&&!i.path&&(!0===P||!1===A&&!1===C)},U=function(){var e={name:"inbox",title:Object(ne.__)("Inbox",'woocommerce'),icon:Object(b.createElement)(be.a,{icon:_e}),unread:k,visible:(o||!L())&&!M()},t={name:"setup",title:Object(ne.__)("Finish setup",'woocommerce'),icon:Object(b.createElement)(Ne,null),onClick:function(){return window.location.href!==Object(J.f)("admin.php?page=wc-admin")&&("no"===A?D():N({woocommerce_task_list_hidden:"no"}).then(D)),null},visible:I("manage_woocommerce")&&!C&&!A&&!M()&&(!L()||o)},n={name:"help",title:Object(ne.__)("Help",'woocommerce'),icon:Object(b.createElement)(be.a,{icon:Se}),visible:L()&&!o||M()},r={component:Ie.b,visible:!o&&L()&&!M()};return[e,t,{name:"previewSite",title:Object(ne.__)("Preview site",'woocommerce'),icon:Object(b.createElement)(be.a,{icon:ke.a}),visible:"wc-admin"===i.page&&"appearance"===i.task,onClick:function(){return window.open(window.wcSettings.siteUrl),Object(ee.recordEvent)("wcadmin_tasklist_previewsite",R),null}},r,n].filter((function(e){return e.visible}))},D=function(){Object(oe.f)(window.location.href)?Object(Z.getHistory)().push(Object(Z.getNewPath)({},"/",{})):window.location.href=Object(J.f)("admin.php?page=wc-admin")},F=U(),V=Object(Q.uniqueId)("activity-panel-header_"),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)||T.includes(t)));return Object(b.createElement)("div",null,Object(b.createElement)(K.H,{id:V,className:"screen-reader-text"},Object(ne.__)("Store Activity",'woocommerce')),Object(b.createElement)(K.Section,{component:"aside",id:"woocommerce-activity-panel",className:"woocommerce-layout__activity-panel","aria-labelledby":V},Object(b.createElement)(Re,{tabs:F,tabOpen:y,selectedTab:s,onTabClick:function(e,t){var n,r,o;e.onClick?e.onClick():(n=t,r=e.name,o=r!==s&&""!==s&&n&&y,d||(l(r),g(n),E(o)))}}),Object(b.createElement)(Be,{currentTab:!0,isPanelOpen:y,isPanelSwitching:x,tab:Object(Q.find)(U(),{name:s}),content:function(e){var t=i.task;switch(e){case"inbox":return Object(b.createElement)(ze,null);case"help":return Object(b.createElement)(qe,{taskName:t});default:return null}}(s),closePanel:function(){return m(!0),void g(!1)},clearPanel:function(){y||(m(!1),E(!1),l(""))}})),B?Object(b.createElement)(Ue,{delay:1e3,useAnchor:!0,title:Object(ne.__)("We're here for help",'woocommerce'),content:Object(ne.__)("If you have any questions, feel free to explore the WooCommerce docs listed here.",'woocommerce'),closeButtonText:Object(ne.__)("Got it",'woocommerce'),id:"activity-panel-tab-help",onClose:function(){return Object(ee.recordEvent)("help_tooltip_click"),void(a&&a.updateUserPreferences&&a.updateUserPreferences({help_panel_highlight_shown:"yes"}))},onShow:function(){return Object(ee.recordEvent)("help_tooltip_view")}}):null)};He.defaultProps={getHistory:Z.getHistory};var $e=He,We=function(){return/iPhone|iPad|iPod/i.test(window.navigator.userAgent)?"ios":/Android/i.test(window.navigator.userAgent)?"android":"unknown"},Ge=function(){return Object(b.createElement)("svg",{width:"37",height:"37",viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)("rect",{width:"92",height:"92",rx:"21.3953",fill:"#7F54B3"}),Object(b.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"}))},Qe=(n(462),function(e){var t=e.onInstall,n=e.onDismiss;Object(b.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(b.useState)(!1),o=xe()(r,2),i=o[0],a=o[1];return"android"!==We()||i?null:Object(b.createElement)("div",{className:"woocommerce-mobile-app-banner"},Object(b.createElement)(w.Icon,{icon:"no-alt","data-testid":"dismiss-btn",onClick:function(){n(),a(!0),Object(ee.recordEvent)("wcadmin_mobile_android_banner_click",{action:"dismiss"})}}),Object(b.createElement)(Ge,null),Object(b.createElement)("div",{className:"woocommerce-mobile-app-banner__description"},Object(b.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(ne.__)("Run your store from anywhere",'woocommerce')),Object(b.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(ne.__)("Download the WooCommerce app",'woocommerce'))),Object(b.createElement)(w.Button,{href:"https://play.google.com/store/apps/details?id=com.woocommerce.android",isSecondary:!0,onClick:function(){t(),a(!0),Object(ee.recordEvent)("wcadmin_mobile_android_banner_click",{action:"install"})}},Object(ne.__)("Install",'woocommerce')))});function Ye(){var e=Object(b.useState)(!1),t=xe()(e,2),n=t[0],r=t[1],o=Object(b.useRef)(null);return Object(b.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 Ke=n(278),Ze=(n(463),n(29)),Je=n.n(Ze);n(441),n(464),n(260),n(261),n(258);function Xe(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}var et=function(e){return 0===e.indexOf("http")?e:Object(J.f)(e)},tt=function(e){var t=e.replace(/[-\/\\^$*+?.()|[\]{}]/gi,"\\$&").split(/\\\?|#/),n=xe()(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},nt=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)return 0;var r=et(t),o=e.href;if(r===o)return Number.MAX_SAFE_INTEGER;var i=tt(r),a=new RegExp(n||i,"i");return(decodeURIComponent(o).match(a)||[]).length}(window.location,e.url,e.matchExpression);r>0&&r>=n&&(n=r,t=e)})),t||null},rt=["primary","favorites","plugins","secondary"],ot={woocommerce:{id:"woocommerce",isCategory:!0,menuId:"primary",migrate:!0,order:10,parent:"",title:"WooCommerce"}},it=function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},ot);return{items:function(e){return e.sort((function(e,t){return e.order===t.order?e.title.localeCompare(t.title):e.order-t.order}))}(e).reduce((function(e,r){if(e[r.parent]||(e[r.parent]={},rt.forEach((function(t){e[r.parent][t]=[]}))),!e[r.parent][r.menuId])return e;if(t&&r.capability&&!t(r.capability))return e;r.isCategory&&(n[r.id]=r);var o=e[r.parent][r.menuId];return o&&o.push(r),e}),{}),categories:n}},at=Object(b.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(b.createElement)(Ee.Path,{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"})),ct=function(){var e=Object(J.g)("siteTitle",""),t=Object(J.g)("homeUrl",""),n=Ye(),r=Object(b.useState)(document.body.classList.contains(!1)),o=xe()(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(b.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)}Object(Z.addHistoryListener)((function(){return f()}))}),[]);var p=Object(b.createElement)(be.a,{size:"36px",icon:at}),d=Object(j.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=d.isRequestingSiteIcon,h=d.siteIconUrl;h?p=Object(b.createElement)("img",{alt:Object(ne.__)("Site Icon"),src:h}):m&&(p=null);var v=ve()("woocommerce-navigation-header",{"is-scrolled":n});return Object(b.createElement)("div",{className:v},Object(b.createElement)(w.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"},p),Object(b.createElement)(w.Button,{href:t,className:"woocommerce-navigation-header__site-title",as:"span"},Object(ye.decodeEntities)(e)))},ut=(n(465),n(466),function(e){var t=e.id,n=Object(j.useSelect)((function(e){return{favorites:e(X.NAVIGATION_STORE_NAME).getFavorites(),isResolving:e(X.NAVIGATION_STORE_NAME).isResolving("getFavorites")}})),r=n.favorites,o=n.isResolving,i=Object(j.useDispatch)(X.NAVIGATION_STORE_NAME),a=i.addFavorite,c=i.removeFavorite,u=r.includes(t);return o?null:Object(b.createElement)(w.Button,{id:"woocommerce-navigation-favorite-button",className:"woocommerce-navigation-favorite-button",isTertiary:!0,onClick:function(){(u?c:a)(t),Object(ee.recordEvent)("navigation_favorite",{id:t,action:u?"unfavorite":"favorite"})},icon:u?"star-filled":"star-empty","aria-label":u?Object(ne.__)("Add this item to your favorites.",'woocommerce'):Object(ne.__)("Remove this item from your favorites.",'woocommerce')})}),st="woocommerce_navigation_favorites_tooltip_hidden",lt=function(){var e=Object(j.useSelect)((function(e){var t=e(X.OPTIONS_STORE_NAME),n=t.getOption,r=t.isResolving;return{isFavoritesResolving:e(X.NAVIGATION_STORE_NAME).isResolving("getFavorites"),isOptionResolving:r("getOption",[st]),isTooltipHidden:"yes"===n(st)}})),t=e.isFavoritesResolving,n=e.isOptionResolving,r=e.isTooltipHidden,o=Object(j.useDispatch)(X.OPTIONS_STORE_NAME).updateOptions;return t||r||n||document.body.classList.contains("is-wc-nav-folded")?null:Object(b.createElement)(Ue,{delay:1e3,title:Object(ne.__)("Introducing favorites",'woocommerce'),content:Object(ne.__)("You can now favorite your extensions to pin them in the top level of the navigation.",'woocommerce'),closeButtonText:Object(ne.__)("Got it",'woocommerce'),id:"woocommerce-navigation-favorite-button",onClose:function(){return o(u()({},st,"yes"))},useAnchor:!0})},ft=function(e){var t=e.category,n=t.id,r=t.menuId,o=t.title,i="woocommerce-navigation-category-title";return["plugins","favorites"].includes(r)?Object(b.createElement)("span",{className:i},Object(b.createElement)("span",{className:"".concat(i,"__text")},o),Object(b.createElement)(ut,{id:n}),Object(b.createElement)(lt,null)):Object(b.createElement)("span",{className:i},o)},pt=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(ee.recordEvent)("navigation_click",{menu_item:e})};return r&&!t.isCategory?Object(b.createElement)(ge.NavigationItem,{key:t.id,item:t.id},Object(b.createElement)("div",{onClick:function(){return o(t.id)}},Object(b.createElement)(Z.WooNavigationItem.Slot,{name:t.id}))):Object(b.createElement)(ge.NavigationItem,{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})},dt=function(e){var t=e.category,n=e.onBackClick,r=e.pluginItems,o=e.primaryItems;if(!o.length&&!r.length)return null;var i=Object(te.applyFilters)("woocommerce_navigation_root_back_label",Object(ne.__)("WordPress Dashboard",'woocommerce')),a=Object(te.applyFilters)("woocommerce_navigation_root_back_url",window.wcNavigation.rootBackUrl),c="woocommerce"===t.id&&a;return Object(b.createElement)(ge.NavigationMenu,{title:Object(b.createElement)(ft,{category:t}),menu:t.id,parentMenu:t.parent,backButtonLabel:c?i:t.backButtonLabel||null,onBackButtonClick:c?function(){n("woocommerce"),window.location=a}:function(){return n(t.id)}},!!o.length&&Object(b.createElement)(ge.NavigationGroup,null,o.map((function(e){return Object(b.createElement)(pt,{key:e.id,item:e})}))),!!r.length&&Object(b.createElement)(ge.NavigationGroup,{title:"woocommerce"===t.id?Object(ne.__)("Extensions",'woocommerce'):null},r.map((function(e){return Object(b.createElement)(pt,{key:e.id,item:e})}))))},mt=function(e){var t=e.category,n=e.items,r=e.onBackClick;if(!n.length)return null;var o="woocommerce"===t.id;return Object(b.createElement)(ge.NavigationMenu,{className:"components-navigation__menu-secondary",title:!o&&Object(b.createElement)(ft,{category:t}),menu:t.id,parentMenu:t.parent,backButtonLabel:t.backButtonLabel||null,onBackButtonClick:o?null:function(){return r(t.id)}},Object(b.createElement)(ge.NavigationGroup,{onBackButtonClick:function(){return r(t.id)}},n.map((function(e){return Object(b.createElement)(pt,{key:e.id,item:e})}))))},ht=function(){var e=Object(j.useSelect)((function(e){return{menuItems:e(X.NAVIGATION_STORE_NAME).getMenuItems()}})).menuItems;Object(b.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 t=Object(b.useState)("woocommerce-home"),n=xe()(t,2),r=n[0],o=n[1],i=Object(b.useState)("woocommerce"),a=xe()(i,2),c=a[0],u=a[1];Object(b.useEffect)((function(){var t=nt(e);return t&&r!==t&&(o(t),u(t.parent)),Object(Z.addHistoryListener)((function(){setTimeout((function(){var t=nt(e);t&&(o(t),u(t.parent))}),0)}))}),[e]);var s=Object(X.useUser)().currentUserCan,l=Object(b.useMemo)((function(){return it(e,s)}),[e,s]),f=l.categories,p=l.items,d=Object(b.useRef)(null),m=function(e){Object(ee.recordEvent)("navigation_back_click",{category:e})},h="woocommerce"===c,v=ve()("woocommerce-navigation",{"is-root":h});return Object(b.createElement)("div",{className:v},Object(b.createElement)(ct,null),Object(b.createElement)("div",{className:"woocommerce-navigation__wrapper",ref:d},Object(b.createElement)(ge.Navigation,{activeItem:r?r.id:null,activeMenu:c,onActivateMenu:function(){d&&d.current&&(d.current.scrollTop=0),u.apply(void 0,arguments)}},Object.values(f).map((function(e){var t=p[e.id];return!!t&&[Object(b.createElement)(dt,{key:e.id,category:e,onBackClick:m,primaryItems:[].concat(Je()(t.primary),Je()(t.favorites)),pluginItems:t.plugins}),Object(b.createElement)(mt,{key:"secondary/".concat(e.id),category:e,onBackClick:m,items:t.secondary})]})))))},vt=Object(X.withNavigationHydration)(window.wcNavigation)((function(){return Object(b.createElement)(Z.NavSlotFillProvider,null,Object(b.createElement)(ht,null),Object(b.createElement)(Ke.PluginArea,null))}));function yt(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bt=function(){if(new URL(window.location.href).searchParams.get("task")){var e=Object(ne.__)("WooCommerce Home",'woocommerce'),t=function(){Object(ee.recordEvent)("topbar_back_button",{page_name:wt(window.title)}),Object(Z.updateQueryString)({},Object(Z.getHistory)().location.pathname,{})};return Object(b.createElement)(w.Tooltip,{text:e},Object(b.createElement)("div",{tabIndex:"0",role:"button","data-testid":"header-back-button",className:"woocommerce-layout__header-back-button",onKeyDown:function(e){var n=e.keyCode;n!==Oe.ENTER&&n!==Oe.SPACE||t()}},Object(b.createElement)(be.a,{icon:we.a,onClick:t})))}return null},wt=function(e){var t=new URL(window.location.href).searchParams.get("task");return{payments:Object(ne.__)("Choose payment methods",'woocommerce'),tax:Object(ne.__)("Add tax rates",'woocommerce'),appearance:Object(ne.__)("Personalize your store",'woocommerce'),products:Object(ne.__)("Add products",'woocommerce'),shipping:Object(ne.__)("Set up shipping costs",'woocommerce')}[t]||e},Ot=function(e){var t=e.sections,n=e.isEmbedded,r=void 0!==n&&n,o=e.query,i=Object(b.useRef)(null),c=Object(J.g)("siteTitle",""),u=t.slice(-1)[0],s=Ye(),l=Object(X.useUserPreferences)(),f=l.updateUserPreferences,p=a()(l,["updateUserPreferences"]),d="yes"===p.android_app_banner_dismissed,m=null,h=ve()("woocommerce-layout__header",{"is-scrolled":s});Object(b.useLayoutEffect)((function(){return v(),window.addEventListener("resize",v),function(){window.removeEventListener("resize",v);var e=document.querySelector("#wpbody");e&&(e.style.marginTop=null)}}),[d]);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(b.useEffect)((function(){if(!r){var e=t.map((function(e){return Array.isArray(e)?e[1]:e})).reverse().join(" &lsaquo; "),n=Object(ye.decodeEntities)(Object(ne.sprintf)(Object(ne.__)("%1$s &lsaquo; %2$s &#8212; WooCommerce",'woocommerce'),e,c));document.title!==n&&(document.title=n)}}),[r,t,c]);var y=function(){f({android_app_banner_dismissed:"yes"})},g=bt()?"with-back-button":"";return Object(b.createElement)("div",{className:h,ref:i},!d&&Object(b.createElement)(Qe,{onDismiss:y,onInstall:y}),Object(b.createElement)("div",{className:"woocommerce-layout__header-wrapper"},window.wcAdminFeatures.navigation&&Object(b.createElement)(vt,null),bt(),Object(b.createElement)(ge.Text,{className:"woocommerce-layout__header-heading ".concat(g),as:"h1",variant:"subtitle.small"},wt(Object(ye.decodeEntities)(u))),window.wcAdminFeatures["activity-panels"]&&Object(b.createElement)($e,{isEmbedded:r,query:o,userPreferencesData:gt(gt({},p),{},{updateUserPreferences:f})})))};function jt(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var xt=function(e){m()(n,e);var t=jt(n);function n(){return l()(this,n),t.apply(this,arguments)}return p()(n,[{key:"render",value:function(){return Object(b.createElement)("div",{id:"woocommerce-layout__notice-list",className:"woocommerce-layout__notice-list"})}}]),n}(b.Component),Et=n(67),_t=n.n(Et),St=n(6),kt=n.n(St),Pt=(n(467),n(324)),Ct=n(424);var At=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(O.useReducedMotion)(),l=Object(b.useState)((function(){return new WeakMap})),f=xe()(l,1)[0],p=Object(Pt.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=_t()(kt.a.mark((function t(n){return kt.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=_t()(kt.a.mark((function e(t){return kt.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=ve()("components-snackbar-list",n);var d=function(e){return function(){a(e.id),u(e.id)}};return Object(b.createElement)("div",{className:n},r,p.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(b.createElement)(Pt.animated.div,{key:n,style:r},Object(b.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&f.set(t,e)}},Object(b.createElement)(Ct.a,o()({},Object(Q.omit)(t,["content"]),{onRemove:d(t)}),t.content)))})))};n(470);function Tt(e){var t=Object(j.useDispatch)("core/notices").removeNotice,n=Object(j.useDispatch)("core/notices2").removeNotice,r=Object(j.useSelect)((function(e){return{notices:e("core/notices").getNotices(),notices2:e("core/notices2").getNotices()}})),o=e.className,i=ve()("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(b.createElement)(At,{notices:a,className:i,onRemove:t,onRemove2:n})}Tt.propTypes={className:k.a.string,notices:k.a.array};var Rt=Tt;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 It(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}function Lt(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?Lt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}Object(Ke.registerPlugin)("wc-admin-navigation",{render:function(){var e=Object(j.useSelect)((function(e){return{persistedQuery:e(X.NAVIGATION_STORE_NAME).getPersistedQuery()}})).persistedQuery;if(!Object(oe.f)(window.location.href))return null;var t=Object(re.a)().filter((function(e){return e.navArgs})),n=de().filter((function(e){return e.navArgs})).map((function(e){return"/analytics/settings"===e.path?It(It({},e),{},{breadcrumbs:[Object(ne.__)("Analytics",'woocommerce')]}):e}));return Object(b.createElement)(b.Fragment,null,n.map((function(t){return Object(b.createElement)(Z.WooNavigationItem,{item:t.navArgs.id,key:t.navArgs.id},Object(b.createElement)(K.Link,{className:"components-button",href:Object(Z.getNewPath)(Object(Z.pathIsExcluded)(t.path)?{}:e,t.path,{}),type:"wc-admin"},t.breadcrumbs[t.breadcrumbs.length-1]))})),t.map((function(t){return Object(b.createElement)(Z.WooNavigationItem,{item:t.navArgs.id,key:t.navArgs.id},Object(b.createElement)(K.Link,{className:"components-button",href:Object(Z.getNewPath)(Object(Z.pathIsExcluded)(t.report)?{}:e,"/analytics/".concat(t.report),{}),type:"wc-admin"},t.title))})))}});var Dt=Object(b.lazy)((function(){return Promise.all([n.e(1),n.e(50)]).then(n.bind(null,767))})),Ft=Object(b.lazy)((function(){return n.e(54).then(n.bind(null,648))})),Vt=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.children;return Object(b.createElement)("div",{className:"woocommerce-layout__primary",id:"woocommerce-layout__primary"},window.wcAdminFeatures["store-alerts"]&&Object(b.createElement)(b.Suspense,{fallback:Object(b.createElement)(K.Spinner,null)},Object(b.createElement)(Dt,null)),Object(b.createElement)(xt,null),e)}}]),n}(b.Component),Bt=function(e){m()(n,e);var t=Ut(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(ee.recordPageView)(a,Mt({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(ee.recordPageView)(u,Mt({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(Y.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(b.createElement)(w.SlotFillProvider,null,Object(b.createElement)("div",{className:"woocommerce-layout"},Object(b.createElement)(Ot,{sections:Object(Q.isFunction)(c)?c(this.props):c,isEmbedded:t,query:u}),Object(b.createElement)(Rt,null),!t&&Object(b.createElement)(Vt,null,Object(b.createElement)("div",{className:"woocommerce-layout__main"},Object(b.createElement)(me,o()({},n,{query:u})))),t&&this.isWCPaySettingsPage()&&Object(b.createElement)(b.Suspense,{fallback:null},Object(b.createElement)(Ft,null))))}}]),n}(b.Component);Bt.propTypes={isEmbedded:k.a.bool,page:k.a.shape({container:k.a.oneOfType([k.a.func,k.a.object]),path:k.a.string,breadcrumbs:k.a.oneOfType([k.a.func,k.a.arrayOf(k.a.oneOfType([k.a.arrayOf(k.a.string),k.a.string]))]).isRequired,wpOpenMenu:k.a.string}).isRequired};var qt=Object(O.compose)(Object(X.withPluginsHydration)(Mt(Mt({},window.wcSettings.plugins||{}),{},{jetpackStatus:window.wcSettings.dataEndpoints&&window.wcSettings.dataEndpoints.jetpackStatus||!1})),Object(j.withSelect)((function(e,t){if(!t.isEmbedded){var n=e(X.PLUGINS_STORE_NAME),r=n.getActivePlugins,o=n.getInstalledPlugins,i=n.isJetpackConnected;return{activePlugins:r(),isJetpackConnected:i(),installedPlugins:o()}}})))(Bt),zt=Object(O.compose)(window.wcSettings.preloadOptions?Object(X.withOptionsHydration)(Mt({},window.wcSettings.preloadOptions)):Q.identity)((function(){var e=Object(X.useUser)().currentUserCan;return Object(b.createElement)(U,{history:Object(Z.getHistory)()},Object(b.createElement)(G,null,de().filter((function(t){return!t.capability||e(t.capability)})).map((function(e){return Object(b.createElement)(B,{key:e.path,path:e.path,exact:!0,render:function(t){return Object(b.createElement)(qt,o()({page:e},t))}})}))))})),Ht=Object(O.compose)(window.wcSettings.preloadOptions?Object(X.withOptionsHydration)(Mt({},window.wcSettings.preloadOptions)):Q.identity)((function(){return Object(b.createElement)(qt,{page:{breadcrumbs:Object(J.g)("embedBreadcrumbs",[])},isEmbedded:!0})}))},function(e,t,n){var r=n(25),o=n(27).f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(26),o=n(81),i=n(35),a=n(185),c=[].join,u=o!=Object,s=a("join",",");r({target:"Array",proto:!0,forced:u||!s},{join:function(e){return c.call(i(this),void 0===e?",":e)}})},function(e,t){e.exports=window.wc.number},function(e,t,n){"use strict";var r=n(26),o=n(23),i=n(129),a=n(102),c=n(43),u=n(35),s=n(119),l=n(18),f=n(128)("slice"),p=l("species"),d=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var n,r,l,f=u(this),h=c(f.length),v=a(e,h),y=a(void 0===t?h:t,h);if(i(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[p])&&(n=void 0):n=void 0,n===Array||void 0===n))return d.call(f,v,y);for(r=new(void 0===n?Array:n)(m(y-v,0)),l=0;v<y;v++,l++)v in f&&s(r,l,f[v]);return r.length=l,r}})},function(e,t,n){var r=n(40),o="["+n(286)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),c=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){var r=n(26),o=n(223);r({target:"Array",stat:!0,forced:!n(165)((function(e){Array.from(e)}))},{from:o})},,function(e,t){e.exports=window.wc.explat},function(e,t,n){var r=n(197);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(18)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},,function(e,t,n){"use strict";n(134);var r,o=n(26),i=n(25),a=n(245),c=n(8),u=n(105),s=n(37),l=n(135),f=n(22),p=n(222),d=n(223),m=n(139).codeAt,h=n(301),v=n(90),y=n(302),g=n(50),b=c.URL,w=y.URLSearchParams,O=y.getState,j=g.set,x=g.getterFor("URL"),E=Math.floor,_=Math.pow,S=/[A-Za-z]/,k=/[\d+-.A-Za-z]/,P=/\d/,C=/^(0x|0X)/,A=/^[0-7]+$/,T=/^\d+$/,R=/^[\dA-Fa-f]+$/,N=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,I=/[\u0000\t\u000A\u000D #/:?@[\\]]/,L=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\t\u000A\u000D]/g,U=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=F(t.slice(1,-1))))return"Invalid host";e.host=n}else if(G(e)){if(t=h(t),N.test(t))return"Invalid host";if(null===(n=D(t)))return"Invalid host";e.host=n}else{if(I.test(t))return"Invalid host";for(n="",r=d(t),o=0;o<r.length;o++)n+=$(r[o],B);e.host=n}},D=function(e){var t,n,r,o,i,a,c,u=e.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(t=u.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=u[r]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=C.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?T:8==i?A:R).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=_(256,5-t))return null}else if(a>255)return null;for(c=n.pop(),r=0;r<n.length;r++)c+=n[r]*_(256,3-r);return c},F=function(e){var t,n,r,o,i,a,c,u=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,p=function(){return e.charAt(f)};if(":"==p()){if(":"!=e.charAt(1))return;f+=2,l=++s}for(;p();){if(8==s)return;if(":"!=p()){for(t=n=0;n<4&&R.test(p());)t=16*t+parseInt(p(),16),f++,n++;if("."==p()){if(0==n)return;if(f-=n,s>6)return;for(r=0;p();){if(o=null,r>0){if(!("."==p()&&r<4))return;f++}if(!P.test(p()))return;for(;P.test(p());){if(i=parseInt(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}u[s]=256*u[s]+o,2!=++r&&4!=r||s++}if(4!=r)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;u[s++]=t}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(a=s-l,s=7;0!=s&&a>0;)c=u[s],u[s--]=u[l+a-1],u[l+--a]=c;else if(8!=s)return;return u},V=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=E(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},B={},q=p({},B,{" ":1,'"':1,"<":1,">":1,"`":1}),z=p({},q,{"#":1,"?":1,"{":1,"}":1}),H=p({},z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),$=function(e,t){var n=m(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},W={ftp:21,file:null,http:80,https:443,ws:80,wss:443},G=function(e){return f(W,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},Y=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},K=function(e,t){var n;return 2==e.length&&S.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},Z=function(e){var t;return e.length>1&&K(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},J=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&K(t[0],!0)||t.pop()},X=function(e){return"."===e||"%2e"===e.toLowerCase()},ee={},te={},ne={},re={},oe={},ie={},ae={},ce={},ue={},se={},le={},fe={},pe={},de={},me={},he={},ve={},ye={},ge={},be={},we={},Oe=function(e,t,n,o){var i,a,c,u,s,l=n||ee,p=0,m="",h=!1,v=!1,y=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(L,"")),t=t.replace(M,""),i=d(t);p<=i.length;){switch(a=i[p],l){case ee:if(!a||!S.test(a)){if(n)return"Invalid scheme";l=ne;continue}m+=a.toLowerCase(),l=te;break;case te:if(a&&(k.test(a)||"+"==a||"-"==a||"."==a))m+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";m="",l=ne,p=0;continue}if(n&&(G(e)!=f(W,m)||"file"==m&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=m,n)return void(G(e)&&W[e.scheme]==e.port&&(e.port=null));m="","file"==e.scheme?l=de:G(e)&&o&&o.scheme==e.scheme?l=re:G(e)?l=ce:"/"==i[p+1]?(l=oe,p++):(e.cannotBeABaseURL=!0,e.path.push(""),l=ge)}break;case ne:if(!o||o.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,l=we;break}l="file"==o.scheme?de:ie;continue;case re:if("/"!=a||"/"!=i[p+1]){l=ie;continue}l=ue,p++;break;case oe:if("/"==a){l=se;break}l=ye;continue;case ie:if(e.scheme=o.scheme,a==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&G(e))l=ae;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",l=be;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),l=ye;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=we}break;case ae:if(!G(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,l=ye;continue}l=se}else l=ue;break;case ce:if(l=ue,"/"!=a||"/"!=m.charAt(p+1))continue;p++;break;case ue:if("/"!=a&&"\\"!=a){l=se;continue}break;case se:if("@"==a){h&&(m="%40"+m),h=!0,c=d(m);for(var g=0;g<c.length;g++){var b=c[g];if(":"!=b||y){var w=$(b,H);y?e.password+=w:e.username+=w}else y=!0}m=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(e)){if(h&&""==m)return"Invalid authority";p-=d(m).length+1,m="",l=le}else m+=a;break;case le:case fe:if(n&&"file"==e.scheme){l=he;continue}if(":"!=a||v){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(e)){if(G(e)&&""==m)return"Invalid host";if(n&&""==m&&(Q(e)||null!==e.port))return;if(u=U(e,m))return u;if(m="",l=ve,n)return;continue}"["==a?v=!0:"]"==a&&(v=!1),m+=a}else{if(""==m)return"Invalid host";if(u=U(e,m))return u;if(m="",l=pe,n==fe)return}break;case pe:if(!P.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(e)||n){if(""!=m){var O=parseInt(m,10);if(O>65535)return"Invalid port";e.port=G(e)&&O===W[e.scheme]?null:O,m=""}if(n)return;l=ve;continue}return"Invalid port"}m+=a;break;case de:if(e.scheme="file","/"==a||"\\"==a)l=me;else{if(!o||"file"!=o.scheme){l=ye;continue}if(a==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",l=be;else{if("#"!=a){Z(i.slice(p).join(""))||(e.host=o.host,e.path=o.path.slice(),J(e)),l=ye;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=we}}break;case me:if("/"==a||"\\"==a){l=he;break}o&&"file"==o.scheme&&!Z(i.slice(p).join(""))&&(K(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),l=ye;continue;case he:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&K(m))l=ye;else if(""==m){if(e.host="",n)return;l=ve}else{if(u=U(e,m))return u;if("localhost"==e.host&&(e.host=""),n)return;m="",l=ve}continue}m+=a;break;case ve:if(G(e)){if(l=ye,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(l=ye,"/"!=a))continue}else e.fragment="",l=we;else e.query="",l=be;break;case ye:if(a==r||"/"==a||"\\"==a&&G(e)||!n&&("?"==a||"#"==a)){if(".."===(s=(s=m).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(J(e),"/"==a||"\\"==a&&G(e)||e.path.push("")):X(m)?"/"==a||"\\"==a&&G(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&K(m)&&(e.host&&(e.host=""),m=m.charAt(0)+":"),e.path.push(m)),m="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",l=be):"#"==a&&(e.fragment="",l=we)}else m+=$(a,z);break;case ge:"?"==a?(e.query="",l=be):"#"==a?(e.fragment="",l=we):a!=r&&(e.path[0]+=$(a,B));break;case be:n||"#"!=a?a!=r&&("'"==a&&G(e)?e.query+="%27":e.query+="#"==a?"%23":$(a,B)):(e.fragment="",l=we);break;case we:a!=r&&(e.fragment+=$(a,q))}p++}},je=function(e){var t,n,r=l(this,je,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),c=j(r,{type:"URL"});if(void 0!==o)if(o instanceof je)t=x(o);else if(n=Oe(t={},String(o)))throw TypeError(n);if(n=Oe(c,a,null,t))throw TypeError(n);var u=c.searchParams=new w,s=O(u);s.updateSearchParams(c.query),s.updateURL=function(){c.query=String(u)||null},i||(r.href=Ee.call(r),r.origin=_e.call(r),r.protocol=Se.call(r),r.username=ke.call(r),r.password=Pe.call(r),r.host=Ce.call(r),r.hostname=Ae.call(r),r.port=Te.call(r),r.pathname=Re.call(r),r.search=Ne.call(r),r.searchParams=Ie.call(r),r.hash=Le.call(r))},xe=je.prototype,Ee=function(){var e=x(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,c=e.query,u=e.fragment,s=t+":";return null!==o?(s+="//",Q(e)&&(s+=n+(r?":"+r:"")+"@"),s+=V(o),null!==i&&(s+=":"+i)):"file"==t&&(s+="//"),s+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(s+="?"+c),null!==u&&(s+="#"+u),s},_e=function(){var e=x(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&G(e)?t+"://"+V(e.host)+(null!==n?":"+n:""):"null"},Se=function(){return x(this).scheme+":"},ke=function(){return x(this).username},Pe=function(){return x(this).password},Ce=function(){var e=x(this),t=e.host,n=e.port;return null===t?"":null===n?V(t):V(t)+":"+n},Ae=function(){var e=x(this).host;return null===e?"":V(e)},Te=function(){var e=x(this).port;return null===e?"":String(e)},Re=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ne=function(){var e=x(this).query;return e?"?"+e:""},Ie=function(){return x(this).searchParams},Le=function(){var e=x(this).fragment;return e?"#"+e:""},Me=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&u(xe,{href:Me(Ee,(function(e){var t=x(this),n=String(e),r=Oe(t,n);if(r)throw TypeError(r);O(t.searchParams).updateSearchParams(t.query)})),origin:Me(_e),protocol:Me(Se,(function(e){var t=x(this);Oe(t,String(e)+":",ee)})),username:Me(ke,(function(e){var t=x(this),n=d(String(e));if(!Y(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=$(n[r],H)}})),password:Me(Pe,(function(e){var t=x(this),n=d(String(e));if(!Y(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=$(n[r],H)}})),host:Me(Ce,(function(e){var t=x(this);t.cannotBeABaseURL||Oe(t,String(e),le)})),hostname:Me(Ae,(function(e){var t=x(this);t.cannotBeABaseURL||Oe(t,String(e),fe)})),port:Me(Te,(function(e){var t=x(this);Y(t)||(""==(e=String(e))?t.port=null:Oe(t,e,pe))})),pathname:Me(Re,(function(e){var t=x(this);t.cannotBeABaseURL||(t.path=[],Oe(t,e+"",ve))})),search:Me(Ne,(function(e){var t=x(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Oe(t,e,be)),O(t.searchParams).updateSearchParams(t.query)})),searchParams:Me(Ie),hash:Me(Le,(function(e){var t=x(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Oe(t,e,we)):t.fragment=null}))}),s(xe,"toJSON",(function(){return Ee.call(this)}),{enumerable:!0}),s(xe,"toString",(function(){return Ee.call(this)}),{enumerable:!0}),b){var Ue=b.createObjectURL,De=b.revokeObjectURL;Ue&&s(je,"createObjectURL",(function(e){return Ue.apply(b,arguments)})),De&&s(je,"revokeObjectURL",(function(e){return De.apply(b,arguments)}))}v(je,"URL"),o({global:!0,forced:!a,sham:!i},{URL:je})},function(e,t,n){var r=n(26),o=n(222);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},,,,,function(e,t){e.exports=window.wp.notices},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",a=Math.floor,c=String.fromCharCode,u=function(e){return e+22+75*(e<26)},s=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},l=function(e){var t,n,r=[],o=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e)).length,l=128,f=0,p=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(c(n));var d=r.length,m=d;for(d&&r.push("-");m<o;){var h=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=l&&n<h&&(h=n);var v=m+1;if(h-l>a((2147483647-f)/v))throw RangeError(i);for(f+=(h-l)*v,l=h,t=0;t<e.length;t++){if((n=e[t])<l&&++f>2147483647)throw RangeError(i);if(n==l){for(var y=f,g=36;;g+=36){var b=g<=p?1:g>=p+26?26:g-p;if(y<b)break;var w=y-b,O=36-b;r.push(c(u(b+w%O))),y=a(w/O)}r.push(c(u(y))),p=s(f,v,m==d),f=0,++m}}++f,++l}return r.join("")};e.exports=function(e){var t,n,i=[],a=e.toLowerCase().replace(o,".").split(".");for(t=0;t<a.length;t++)n=a[t],i.push(r.test(n)?"xn--"+l(n):n);return i.join(".")}},function(e,t,n){"use strict";n(117);var r=n(26),o=n(36),i=n(245),a=n(37),c=n(154),u=n(90),s=n(186),l=n(50),f=n(135),p=n(22),d=n(95),m=n(112),h=n(19),v=n(23),y=n(69),g=n(46),b=n(303),w=n(132),O=n(18),j=o("fetch"),x=o("Headers"),E=O("iterator"),_=l.set,S=l.getterFor("URLSearchParams"),k=l.getterFor("URLSearchParamsIterator"),P=/\+/g,C=Array(4),A=function(e){return C[e-1]||(C[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},T=function(e){try{return decodeURIComponent(e)}catch(t){return e}},R=function(e){var t=e.replace(P," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(A(n--),T);return t}},N=/[!'()~]|%20/g,I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},L=function(e){return I[e]},M=function(e){return encodeURIComponent(e).replace(N,L)},U=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),e.push({key:R(r.shift()),value:R(r.join("="))}))},D=function(e){this.entries.length=0,U(this.entries,e)},F=function(e,t){if(e<t)throw TypeError("Not enough arguments")},V=s((function(e,t){_(this,{type:"URLSearchParamsIterator",iterator:b(S(e).entries),kind:t})}),"Iterator",(function(){var e=k(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),B=function(){f(this,B,"URLSearchParams");var e,t,n,r,o,i,a,c,u,s=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(_(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:D}),void 0!==s)if(v(s))if("function"==typeof(e=w(s)))for(n=(t=e.call(s)).next;!(r=n.call(t)).done;){if((a=(i=(o=b(h(r.value))).next).call(o)).done||(c=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:c.value+""})}else for(u in s)p(s,u)&&d.push({key:u,value:s[u]+""});else U(d,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},q=B.prototype;c(q,{append:function(e,t){F(arguments.length,2);var n=S(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){F(arguments.length,1);for(var t=S(this),n=t.entries,r=e+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){F(arguments.length,1);for(var t=S(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){F(arguments.length,1);for(var t=S(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){F(arguments.length,1);for(var t=S(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){F(arguments.length,1);for(var n,r=S(this),o=r.entries,i=!1,a=e+"",c=t+"",u=0;u<o.length;u++)(n=o[u]).key===a&&(i?o.splice(u--,1):(i=!0,n.value=c));i||o.push({key:a,value:c}),r.updateURL()},sort:function(){var e,t,n,r=S(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(e=i[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=S(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new V(this,"keys")},values:function(){return new V(this,"values")},entries:function(){return new V(this,"entries")}},{enumerable:!0}),a(q,E,q.entries),a(q,"toString",(function(){for(var e,t=S(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(M(e.key)+"="+M(e.value));return n.join("&")}),{enumerable:!0}),u(B,"URLSearchParams"),r({global:!0,forced:!i},{URLSearchParams:B}),i||"function"!=typeof j||"function"!=typeof x||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,o=[e];return arguments.length>1&&(v(t=arguments[1])&&(n=t.body,"URLSearchParams"===m(n)&&((r=t.headers?new x(t.headers):new x).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=y(t,{body:g(0,String(n)),headers:g(0,r)}))),o.push(t)),j.apply(this,o)}}),e.exports={URLSearchParams:B,getState:S}},function(e,t,n){var r=n(19),o=n(132);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},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}},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,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=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 y:case v:case s:return e;default:return t}}case i:return t}}}function x(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=y,t.Memo=v,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||j(e)===f},t.isConcurrentMode=x,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)===y},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===y||e.$$typeof===v||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===b||e.$$typeof===w||e.$$typeof===O||e.$$typeof===g)},t.typeOf=j},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(39)),i=r(n(196)),a=n(11),c=r(a),u=r(n(469)),s=r(n(10)),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,y,g=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}return u(t,e),t}(g),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 g&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}u(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof g)&&(t[n]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(g);function O(e,t){v={fn:e,transform:t}}function j(e){y=e}var x,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},_=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){x=e}var k,P=function(){return Date.now()};function C(e){k=e}var A,T,R=function(e){return e.current};function N(e){A=e}var I=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:O,get colorNames(){return y},injectColorNames:j,get requestFrame(){return E},get cancelFrame(){return _},injectFrame:function(e,t){E=e,_=t},get interpolation(){return x},injectStringInterpolator:S,get now(){return P},injectNow:function(e){P=e},get defaultElement(){return k},injectDefaultElement:C,get animatedApi(){return R},injectAnimatedApi:function(e){R=e},get createAnimatedStyle(){return A},injectCreateAnimatedStyle:N,get manualFrameloop(){return T},injectManualFrameloop:function(e){T=e}}),L=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:A(t.style)}):t,r.update=n,r.attach(),r}return u(t,e),t}(w),M=!1,U=new Set,D=function e(){if(!M)return!1;var t=P(),n=U,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,y=h instanceof g,b=Array.isArray(s.initialVelocity)?s.initialVelocity[p]:s.initialVelocity;if(y&&(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+b/(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,b=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*(b+=1*((-s.tension*(v-h)+-s.friction*b)/s.mass)/1e3)/1e3}var j=!(!s.clamp||0===s.tension)&&(m<h?v>h:v<h),x=Math.abs(b)<=s.precision,_=0===s.tension||Math.abs(h-v)<=s.precision;l=j||x&&_,d.lastVelocity=b,d.lastTime=t}y&&!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||(U.delete(a),a.stop(!0))}return U.size?T?T():E(e):M=!1,M};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(x&&"string"==typeof e.output[0])return x(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 V=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof b&&!(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}(b);var B=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}u(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new V(this,e,t,n)},t}(g),q=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new B(e)})),n}u(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(b),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,U.has(t)||U.add(t),M||(M=!0,E(T||D));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,U.has(t)&&U.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,g=n.immediate;if(f){var b=[c,i];i=b[0],c=b[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)&&!y[a],h=l.arr(a),b=!u&&!h&&!f,O=l.und(i[r])?a:i[r],j=u||h||f?a:1,E=m(s,r);w&&(j=w.animations[r].parent);var _,S=c.parent,k=c.interpolation,C=d(w?j.getPayload():j),A=a;b&&(A=x({range:[0,1],output:[a,a]})(1));var T,R=k&&k.getValue(),N=!l.und(S)&&c.animatedValues.some((function(e){return!e.done})),I=!l.equ(A,R),L=!l.equ(A,c.previous),M=!l.equ(E,c.config);if(v||L&&I||M){var U;if(u||f)S=k=c.parent||new B(O);else if(h)S=k=c.parent||new q(O);else if(b){var D=c.interpolation&&c.interpolation.calc(c.parent.value);D=void 0===D||v?O:D,c.parent?(S=c.parent).setValue(0,!1):S=new B(0);var F={output:[D,a]};c.interpolation?(k=c.interpolation,c.interpolation.updateConfig(F)):k=S.interpolate(F)}return C=d(w?j.getPayload():j),_=d(S.getPayload()),v&&!b&&S.setValue(O,!1),t.hasChanged=!0,_.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=N?e.lastVelocity:void 0,e.lastTime=N?e.lastTime:void 0,e.startTime=P(),e.done=!1,e.animatedStyles.clear()})),m(g,r)&&S.setValue(b?j:a,!1),o({},e,((U={})[r]=o({},c,{name:r,parent:S,interpolation:k,animatedValues:_,toValues:C,previous:A,config:E,fromValues:d(S.getValue()),immediate:m(g,r),initialVelocity:p(E.velocity,0),clamp:p(E.clamp,!1),precision:p(E.precision,.01),tension:p(E.tension,170),friction:p(E.friction,26),mass:p(E.mass,1),duration:E.duration,easing:p(E.easing,(function(e){return e})),decay:E.decay}),U))}return I?e:(b&&(S.setValue(1,!1),k.updateConfig({output:[A,A]})),S.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,G=function(e,t){return("function"==typeof t?e.map(t):d(t)).map(String)},Q=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,a=i(e,["items","keys"]);return t=d(void 0!==t?t:null),o({items:t,keys:G(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 K=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=v.transform(t)),n.payload=t,n}return u(t,e),t}(w),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},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:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|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,ye=new RegExp("("+Object.keys(Z).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","Ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return be.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var Oe={};N((function(e){return new K(e)})),C("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ve,me)})).map((function(e){return e.replace(ye,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(Z),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,xe,Ee=(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 L(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 R(p,u,r)})),d(t);var m,h=s.current.getValue(),y=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),g=(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({},y,{ref:g}))}))},void 0===(xe=!1)&&(xe=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=xe?t[0].toLowerCase()+t.substring(1):t;return e[n]=je(n),e}),je)}),_e=Ee(["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=Ee,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=D,t.animated=_e,t.a=_e,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=I,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=Q(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,y=c.onStart,g=c.ref,b=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=Q(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,y=void 0===v?0:v,g=c.unique,b=c.config,w=c.order,O=void 0===w?["enter","leave","update"]:w,j=Q(r),x=j.keys,E=j.items,_=o({},a.current),S=[].concat(a.deleted),k=Object.keys(_),P=new Set(k),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})),R=s.filter((function(e){return P.has(e)})),N=-y;for(;O.length;){switch(O.shift()){case"enter":A.forEach((function(e,t){g&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=u[r],i=n&&void 0!==l?"initial":"enter";_[e]={slot:i,originalKey:e,key:g?String(e):W++,item:o,trail:N+=y,config:m(b,o,i),from:m(n&&void 0!==l?l||{}:f,o),to:m(p,o)}}));break;case"leave":T.forEach((function(e){var t=x.indexOf(e),n=E[t];S.unshift(o({},_[e],{slot:"leave",destroyed:!0,left:x[Math.max(0,t-1)],right:x[Math.min(x.length,t+1)],trail:N+=y,config:m(b,n,"leave"),to:m(d,n)})),delete _[e]}));break;case"update":R.forEach((function(e){var t=s.indexOf(e),n=u[t];_[e]=o({},_[e],{item:n,slot:"update",trail:N+=y,config:m(b,n,"update"),to:m(h,n)})}))}}var I=s.map((function(e){return _[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=I.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),I=[].concat(I.slice(0,t),[r],I.slice(t))})),o({},a,{changed:A.length||T.length||R.length,first:n&&0===A.length,transitions:I,current:_,deleted:S,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({},b,{to:r,from:n,config:i,ref:g,onRest:function(n){j.current.mounted&&(e.destroyed&&(g||s||Y(j,c),d&&d(u)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&j.current.deleted.length>0&&Y(j),v&&v(u,t,n))},onStart:y&&function(){return y(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=$},function(e,t,n){"use strict";(function(e){var r=n(11),o=n.n(r),i=n(96),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(93))},function(e,t,n){var r=n(471);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],y=n[4],g=n[5],b=n[6],w=n[7];c&&(r.push(c),c="");var O=null!=h&&null!=m&&m!==h,j="+"===b||"*"===b,x="?"===b||"*"===b,E=n[2]||l,_=y||g;r.push({name:v||i++,prefix:h||"",delimiter:E,optional:x,repeat:j,partial:O,asterisk:!!w,pattern:_?s(_):w?".*":"[^"+u(E)+"]+?"})}}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)}},,function(e,t,n){"use strict";var r=n(26),o=n(114).find,i=n(118),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(26),o=n(8),i=n(82),a=n(37),c=n(263),u=n(179),s=n(135),l=n(23),f=n(12),p=n(165),d=n(90),m=n(224);e.exports=function(e,t,n){var h=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),y=h?"set":"add",g=o[e],b=g&&g.prototype,w=g,O={},j=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof g||!(v||b.forEach&&!f((function(){(new g).entries().next()})))))w=n.getConstructor(t,e,h,y),c.REQUIRED=!0;else if(i(e,!0)){var x=new w,E=x[y](v?{}:-0,1)!=x,_=f((function(){x.has(1)})),S=p((function(e){new g(e)})),k=!v&&f((function(){for(var e=new g,t=5;t--;)e[y](t,t);return!e.has(-0)}));S||((w=t((function(t,n){s(t,w,e);var r=m(new g,t,w);return null!=n&&u(n,r[y],{that:r,AS_ENTRIES:h}),r}))).prototype=b,b.constructor=w),(_||k)&&(j("delete"),j("has"),h&&j("get")),(k||E)&&j(y),v&&b.clear&&delete b.clear}return O[e]=w,r({global:!0,forced:w!=g},O),d(w,e),v||n.setStrong(w,e,h),w}},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}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m}));var r=n(0),o=n(5),i=n(15),a=n(2),c=n(33),u=n(44),s=function(){return Object(r.createElement)(r.Fragment,null,Object(r.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(r.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(r.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(r.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(r.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(a.__)("Display",'woocommerce'))},l=Object(o.createSlotFill)("DisplayOptions"),f=l.Fill,p=l.Slot;f.Slot=p;var d=[{value:"single_column",label:Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.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(r.createElement)("rect",{x:"0.5",y:"0.5",width:"11",height:"13",strokeWidth:"1"}))}),null),Object(a.__)("Single column",'woocommerce'))},{value:"two_columns",label:Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.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(r.createElement)("rect",{x:"0.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}),Object(r.createElement)("rect",{x:"9.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}))}),null),Object(a.__)("Two columns",'woocommerce'))}],m=function(){var e=Object(i.useSelect)((function(e){return{defaultHomescreenLayout:(0,e(c.OPTIONS_STORE_NAME).getOption)("woocommerce_default_homepage_layout")||"single_column"}})).defaultHomescreenLayout,t=Object(c.useUserPreferences)(),n=t.updateUserPreferences,l=t.homepage_layout;return Object(r.createElement)(p,null,(function(t){return Object(r.createElement)(o.DropdownMenu,{icon:Object(r.createElement)(s,null),label:Object(a.__)("Display options",'woocommerce'),toggleProps:{className:"woocommerce-layout__activity-panel-tab display-options",onClick:function(){return Object(u.recordEvent)("homescreen_display_click")}},popoverProps:{className:"woocommerce-layout__activity-panel-popover"}},(function(i){var c=i.onClose;return Object(r.createElement)(r.Fragment,null,t,Object(r.createElement)(o.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",label:Object(a.__)("Layout",'woocommerce')},Object(r.createElement)(o.MenuItemsChoice,{choices:d,onSelect:function(e){n({homepage_layout:e}),c(),Object(u.recordEvent)("homescreen_display_option",{display_option:e})},value:l||e})))}))}))}},function(e,t,n){"use strict";(function(e){var r=n(0),o=(n(115),n(3)),i=n(9),a=n.n(i),c=n(425),u=n(2),s=(n(426),n(5));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,y=t.onRemove,g=void 0===y?o.noop:y,b=t.icon,w=void 0===b?null:b,O=t.explicitDismiss,j=void 0!==O&&O,x=t.onDismiss,E=void 0===x?null:x;function _(e){e&&e.preventDefault&&e.preventDefault(),E(),g()}E=E||o.noop,function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.speak)(n,t)}),[n,t])}(p,m),Object(r.useEffect)((function(){var e=setTimeout((function(){j||(E(),g())}),1e4);return function(){return clearTimeout(e)}}),[j,E,g]);var S=a()(i,"components-snackbar",{"components-snackbar-explicit-dismiss":!!j});v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]);var k=a()("components-snackbar__content",{"components-snackbar__content-with-icon":!!w});return Object(r.createElement)("div",{ref:n,className:S,onClick:j?o.noop:_,tabIndex:"0",role:j?"":"button",onKeyPress:j?o.noop:_,"aria-label":j?"":Object(u.__)("Dismiss this notice")},Object(r.createElement)("div",{className:k},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(),g(),t&&t(e)}(e,o)},className:"components-snackbar__action"},n)})),j&&Object(r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:_,onKeyPress:_},"✕")))}))}).call(this,n(304))},function(e,t){e.exports=window.wp.a11y},function(e,t){e.exports=window.wp.warning},function(e,t){e.exports=window.wc.customerEffortScore},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));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})),n.d(r,"addCesSurveyForCustomerSearch",(function(){return R}));var o={};n.r(o),n.d(o,"getCesSurveyQueue",(function(){return M}));var i={};n.r(i),n.d(i,"getCesSurveyQueue",(function(){return U}));n(83),n(125),n(131),n(150),n(126),n(151);var a=n(29),c=n.n(a),u=n(4),s=n.n(u),l=n(30),f=n.n(l),p=n(0),d=(n(127),n(1)),m=n.n(d),h=n(44),v=n(427),y=n.n(v),g=n(34),b=n(15),w=n(33),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 x(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(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'):o,a=e.cesShownForActions,u=e.allowTracking,l=e.resolving,d=e.storeAgeInWeeks,m=e.updateOptions,v=e.createNotice,g=Object(p.useState)(!1),b=f()(g,2),w=b[0],j=b[1];if(l)return null;if(!u)return null;if(-1!==a.indexOf(t)&&!w)return null;var E=function(){m(s()({},"woocommerce_ces_shown_for_actions",[t].concat(c()(a))))};return Object(p.createElement)(y.a,{recordScoreCallback:function(e,r){Object(h.recordEvent)("ces_feedback",x({action:t,score:e,comments:r||"",store_age:d},n)),v("success",i)},label:r,onNoticeShownCallback:function(){Object(h.recordEvent)("ces_snackbar_view",x({action:t,store_age:d},n))},onNoticeDismissedCallback:function(){Object(h.recordEvent)("ces_snackbar_dismiss",x({action:t,store_age:d},n)),E()},onModalShownCallback:function(){j(!0),Object(h.recordEvent)("ces_view",x({action:t,store_age:d},n)),E()},icon:Object(p.createElement)("span",{style:{height:21,width:21},role:"img","aria-label":Object(O.__)("Pencil icon",'woocommerce')},"✏️")})}E.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 _=Object(g.compose)(Object(b.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(b.withDispatch)((function(e){return{updateOptions:e(w.OPTIONS_STORE_NAME).updateOptions,createNotice:e("core/notices").createNotice}})))(E),S=(n(115),n(183)),k=n(24),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,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return{type:P.ADD_CES_SURVEY,action:e,label:t,pageNow:n,adminPage:r,onsubmit_label:o,props:i}}function T(){return A("analytics_filtered",Object(O.__)("How easy was it to filter your store analytics?",'woocommerce'),"woocommerce_page_wc-admin","woocommerce_page_wc-admin")}function R(){return A("ces_search",Object(O.__)("How easy was it to use search?",'woocommerce'),"woocommerce_page_wc-admin","woocommerce_page_wc-admin",void 0,{search_area:"customer"})}var N=n(6),I=n.n(N),L=I.a.mark(M);function M(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(k.apiFetch)({path:"".concat(S.a,"/options?options=").concat(S.b)});case 2:if(!(e=t.sent)){t.next=8;break}return t.next=6,C(e[S.b]||[]);case 6:t.next=9;break;case 8:throw new Error;case 9:case"end":return t.stop()}}),L)}function U(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 F(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 V={queue:[]},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case P.SET_CES_SURVEY_QUEUE:return F(F({},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,props:t.props};return F(F({},e),{},{queue:[].concat(c()(e.queue),[r])});default:return e}};Object(b.registerStore)(S.c,{actions:r,selectors:i,resolvers:o,controls:k.controls,reducer:B});function q(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)(_,{key:t,action:e.action,label:e.label,onSubmitLabel:e.onsubmit_label,trackProps:e.props||{}})})))}q.propTypes={queue:m.a.arrayOf(m.a.object),resolving:m.a.bool,clearQueue:m.a.func};var z=Object(g.compose)(Object(b.withSelect)((function(e){var t=e(S.c),n=t.getCesSurveyQueue,r=t.isResolving;return{queue:n(),resolving:r("getOption",[S.b])}})),Object(b.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}})}}})))(q)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(39),o=n.n(r),i=n(0),a=(n(116),n(255),n(115),n(101)),c=n(122),u=(n(117),n(113),n(157),n(134),n(152),Object(i.lazy)((function(){return n.e(47).then(n.bind(null,759))})));n(472);var s=[function(e){var t=e.page,n=e.tab,r=e.section;return"wc-settings"!==t||"checkout"!==n||r?null:Object(i.createElement)(i.Suspense,{fallback:null},Object(i.createElement)(u,null))}],l=function(){var e=Object(c.parse)(location.search.substring(1)),t={page:"",tab:""};void 0!==e.page&&(t=e);var n=Object(a.applyFilters)("woocommerce_admin_embedded_layout_components",s,t);return Object(i.createElement)("div",{className:"woocommerce-embedded-layout__primary",id:"woocommerce-embedded-layout__primary"},n.map((function(e,n){return Object(i.createElement)(e,o()({key:n},t))})))}},,,,function(e,t,n){var r=n(26),o=n(443).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){"use strict";var r=n(341),o=n(457);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){var r=n(25),o=n(63),i=n(35),a=n(84).f,c=function(e){return function(t){for(var n,c=i(t),u=o(c),s=u.length,l=0,f=[];s>l;)n=u[l++],r&&!a.call(c,n)||f.push(e?[n,c[n]]:c[n]);return f}};e.exports={entries:c(!0),values:c(!1)}},,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(0),r=(n(299),n(33)),o=(n(453),n(280)),i=n(436),a=n(437);n.p=e.wcAdminAssets.path;var c,u=document.getElementById("root"),s=document.getElementById("woocommerce-embedded-root"),l=window.wcSettings.currentUserData;if(u){var f=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.b);window.wcSettings.preloadSettings&&window.wcSettings.preloadSettings.general&&(f=Object(r.withSettingsHydration)("general",{general:window.wcSettings.preloadSettings.general})(f)),l&&(f=Object(r.withCurrentUserHydration)(l)(f)),Object(t.render)(Object(t.createElement)(f,null),u)}else if(s){var p=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.a);l&&(p=Object(r.withCurrentUserHydration)(l)(p)),Object(t.render)(Object(t.createElement)(p,null),s),s.classList.remove("is-embed-loading");var d=document.getElementById("wpbody-content"),m=d.querySelector(".wrap.woocommerce")||d.querySelector('[class="wrap"]'),h=document.createElement("div");Object(t.render)(Object(t.createElement)("div",{className:"woocommerce-layout"},Object(t.createElement)(o.c,null)),d.insertBefore(h,m));var v=document.createElement("div");Object(t.render)(Object(t.createElement)(a.a,null),d.insertBefore(v,m.nextSibling))}window.wcAdminFeatures&&!0===window.wcAdminFeatures["customer-effort-score-tracks"]&&(c=u||s,Object(t.render)(Object(t.createElement)(i.a,null),c.insertBefore(document.createElement("div"),null)))}.call(this,n(93))},,function(e,t,n){},function(e,t){e.exports=window.wc.notices},function(e,t,n){},function(e,t,n){var r=n(12);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(27).f,o=n(69),i=n(154),a=n(95),c=n(135),u=n(179),s=n(177),l=n(162),f=n(25),p=n(263).fastKey,d=n(50),m=d.set,h=d.getterFor;e.exports={getConstructor:function(e,t,n,s){var l=e((function(e,r){c(e,l,t),m(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[s],{that:e,AS_ENTRIES:n})})),d=h(t),v=function(e,t,n){var r,o,i=d(e),a=y(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},y=function(e,t){var n,r=d(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(l.prototype,{clear:function(){for(var e=d(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=d(this),n=y(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=d(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(l.prototype,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=h(t),i=h(r);s(e,t,(function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(200),o=n(201),i=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,u=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:c,height:c},u))}},function(e,t,n){},function(e,t,n){},function(e,t,n){n(26)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r,o=n(8),i=n(154),a=n(263),c=n(341),u=n(468),s=n(23),l=n(50).enforce,f=n(109),p=!o.ActiveXObject&&"ActiveXObject"in o,d=Object.isExtensible,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},h=e.exports=c("WeakMap",m,u);if(f&&p){r=u.getConstructor(m,"WeakMap",!0),a.REQUIRED=!0;var v=h.prototype,y=v.delete,g=v.has,b=v.get,w=v.set;i(v,{delete:function(e){if(s(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.delete(e)}return y.call(this,e)},has:function(e){if(s(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen.has(e)}return g.call(this,e)},get:function(e){if(s(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),g.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(s(e)&&!d(e)){var n=l(this);n.frozen||(n.frozen=new r),g.call(this,e)?w.call(this,e,t):n.frozen.set(e,t)}else w.call(this,e,t);return this}})}},function(e,t,n){"use strict";var r=n(154),o=n(263).getWeakData,i=n(19),a=n(23),c=n(135),u=n(179),s=n(114),l=n(22),f=n(50),p=f.set,d=f.getterFor,m=s.find,h=s.findIndex,v=0,y=function(e){return e.frozen||(e.frozen=new g)},g=function(){this.entries=[]},b=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=h(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,s){var f=e((function(e,r){c(e,f,t),p(e,{type:t,id:v++,frozen:void 0}),null!=r&&u(r,e[s],{that:e,AS_ENTRIES:n})})),m=d(t),h=function(e,t,n){var r=m(e),a=o(i(t),!0);return!0===a?y(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=m(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).has(e):n&&l(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=m(this);if(a(e)){var n=o(e);return!0===n?y(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return h(this,e,t)}}:{add:function(e){return h(this,e,!0)}}),f}}},function(e,t,n){var r=n(176);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=window.wc.csvExport},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=i}]);
1
  /*! For license information please see index.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",34:"homescreen",36:"leaderboards",38:"marketing-overview",47:"payment-recommendations",49:"profile-wizard",50:"store-alerts",51:"store-performance",52:"task-list",54:"wcpay-usage-modal"}[e]||e)+".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,4:1,7:1,9:1,10:1,14:1,15:1,20:1,28:1,29:1,34:1,36:1,38:1,47:1,49:1,50:1,51:1,52: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=445)}([function(e,t){e.exports=window.wp.element},function(e,t,n){e.exports=n(190)()},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(88))},function(e,t,n){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=n.apply(null,o);a&&e.push(a)}else if("object"===i)for(var c in o)t.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return n})):window.classNames=n}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=window.React},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){e.exports=window.wp.data},function(e,t,n){var r=n(177);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(62),o=n(10);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){var r=n(8),o=n(70),i=n(22),a=n(68),c=n(76),u=n(111),s=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return i(s,e)&&(c||"string"==typeof s[e])||(c&&i(l,e)?s[e]=l[e]:s[e]=f("Symbol."+e)),s[e]}},function(e,t,n){var r=n(23);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.moment},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=window.wp.dataControls},function(e,t,n){var r=n(12);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(8),o=n(45).f,i=n(31),a=n(37),c=n(54),u=n(109),s=n(82);e.exports=function(e,t){var n,l,f,p,d,m=e.target,h=e.global,v=e.stat;if(n=h?r:v?r[m]||c(m,{}):(r[m]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(d=o(n,l))&&d.value:n[l],!s(h?l:m+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,e)}}},function(e,t,n){var r=n(25),o=n(73),i=n(19),a=n(53),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=window.wc.navigation},function(e,t,n){var r=n(143),o=n(144),i=n(98),a=n(145);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){var r=n(146),o=n(147),i=n(98),a=n(148);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){var r=n(25),o=n(27),i=n(46);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},,function(e,t){e.exports=window.wc.data},function(e,t){e.exports=window.wp.compose},function(e,t,n){var r=n(81),o=n(40);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(94),o=n(8),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){var r=n(8),o=n(31),i=n(22),a=n(54),c=n(65),u=n(50),s=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,c){var u,s=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,d=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),(u=l(n)).source||(u.source=f.join("string"==typeof t?t:""))),e!==r?(s?!d&&e[t]&&(p=!0):delete e[t],p?e[t]=n:o(e,t,n)):p?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},function(e,t){e.exports=window.wp.url},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},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(62),o=n.n(r),i=(n(83),n(108),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}},function(e,t,n){var r=n(52),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){e.exports=window.wc.tracks},function(e,t,n){var r=n(25),o=n(84),i=n(46),a=n(35),c=n(53),u=n(22),s=n(73),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=c(t,!0),s)try{return l(e,t)}catch(e){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t){e.exports=window.wp.apiFetch},function(e,t,n){var r=n(40);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r,o,i,a=n(110),c=n(8),u=n(23),s=n(31),l=n(22),f=n(55),p=n(60),d=n(47),m=c.WeakMap;if(a){var h=f.state||(f.state=new m),v=h.get,y=h.has,g=h.set;r=function(e,t){return t.facade=e,g.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return y.call(h,e)}}else{var b=p("state");d[b]=!0,r=function(e,t){return t.facade=e,s(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},,function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(23);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(8),o=n(31);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(8),o=n(54),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){e.exports=window.wc.date},function(e,t){e.exports=window.wc.experimental},function(e,t){e.exports=!1},function(e,t,n){var r=n(70),o=n(68),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){var r=n(75),o=n(56);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(8),o=n(23),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(55),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(199);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t){function n(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,u,"next",e)}function u(e){n(a,o,i,c,u,"throw",e)}c(void 0)}))}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r,o=n(19),i=n(106),a=n(56),c=n(47),u=n(97),s=n(64),l=n(60),f=l("IE_PROTO"),p=function(){},d=function(e){return"<script>"+e+"<\/script>"},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;m=r?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=s("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};c[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=o(e),n=new p,p.prototype=null,n[f]=e):n=m(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(59),o=n(55);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},,function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(25),o=n(12),i=n(64);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(75),o=n(56).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(22),o=n(35),i=n(85).indexOf,a=n(47);e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){var r=n(77),o=n(78),i=n(12);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!Symbol.sham&&(r?38===o:o>37&&o<41)}))},function(e,t,n){var r=n(41),o=n(8);e.exports="process"==r(o.process)},function(e,t,n){var r,o,i=n(8),a=n(90),c=i.process,u=c&&c.versions,s=u&&u.v8;s?o=(r=s.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},,,function(e,t,n){var r=n(12),o=n(41),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(12),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(26),o=n(49),i=n(63);r({target:"Object",stat:!0,forced:n(12)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(35),o=n(43),i=n(102),a=function(e){return function(t,n,a){var c,u=r(t),s=o(u.length),l=i(a,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(36);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(27).f,o=n(22),i=n(18)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r={};r[n(18)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t){e.exports=window.wp.keycodes},function(e,t,n){var r=n(8);e.exports=r},function(e,t,n){var r=n(61);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},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}))},function(e,t,n){var r=n(36);e.exports=r("document","documentElement")},function(e,t,n){var r=n(87);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=window.wp.htmlEntities},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=window.wp.hooks},function(e,t,n){var r=n(52),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){var r=n(36),o=n(74),i=n(89),a=n(19);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){"use strict";var r=n(192),o=n(193),i=n(114);e.exports={formats:i,parse:o,stringify:r}},,function(e,t,n){var r=n(25),o=n(27),i=n(19),a=n(63);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=r.length,u=0;c>u;)o.f(e,n=r[u++],t[n]);return e}},,function(e,t,n){"use strict";var r=n(26),o=n(85).includes,i=n(120);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,n){var r=n(22),o=n(103),i=n(45),a=n(27);e.exports=function(e,t){for(var n=o(t),c=a.f,u=i.f,s=0;s<n.length;s++){var l=n[s];r(e,l)||c(e,l,u(t,l))}}},function(e,t,n){var r=n(8),o=n(65),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){var r=n(76);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t){e.exports=window.wc.components},function(e,t,n){var r=n(92),o=n(41),i=n(18)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},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}},function(e,t,n){var r=n(92),o=n(37),i=n(162);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){var r=n(95),o=n(81),i=n(49),a=n(43),c=n(154),u=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,l=4==e,f=6==e,p=7==e,d=5==e||f;return function(m,h,v,y){for(var g,b,w=i(m),O=o(w),j=r(h,v,3),E=a(O.length),_=0,x=y||c,S=t?x(m,E):n||p?x(m,0):void 0;E>_;_++)if((d||_ in O)&&(b=j(g=O[_],_,w),e))if(t)S[_]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return _;case 2:u.call(S,g)}else switch(e){case 4:return!1;case 7:u.call(S,g)}return f?-1:s||l?l:S}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterOut:s(7)}},function(e,t,n){"use strict";var r=n(26),o=n(116).map;r({target:"Array",proto:!0,forced:!n(129)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(26),o=n(122);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(35),o=n(120),i=n(86),a=n(50),c=n(178),u=a.set,s=a.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,t){u(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var r=n(18),o=n(69),i=n(27),a=r("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),e.exports=function(e){c[a][e]=!0}},function(e,t,n){"use strict";var r=n(53),o=n(27),i=n(46);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){"use strict";var r,o,i=n(170),a=n(189),c=RegExp.prototype.exec,u=String.prototype.replace,s=c,l=(r=/a/,o=/b*/g,c.call(r,"a"),c.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||f)&&(s=function(e){var t,n,r,o,a=this,s=f&&a.sticky,d=i.call(a),m=a.source,h=0,v=e;return s&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),v=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(m="(?: "+m+")",v=" "+v,h++),n=new RegExp("^(?:"+m+")",d)),p&&(n=new RegExp("^"+m+"$(?!\\s)",d)),l&&(t=a.lastIndex),r=c.call(s?n:a,v),s?r?(r.input=r.input.slice(h),r[0]=r[0].slice(h),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:l&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),p&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=s},,function(e,t){e.exports=window.ReactDOM},,function(e,t,n){"use strict";var r=n(26),o=n(8),i=n(36),a=n(59),c=n(25),u=n(76),s=n(111),l=n(12),f=n(22),p=n(130),d=n(23),m=n(19),h=n(49),v=n(35),y=n(53),g=n(46),b=n(69),w=n(63),O=n(74),j=n(240),E=n(89),_=n(45),x=n(27),S=n(84),k=n(31),P=n(37),C=n(70),A=n(60),T=n(47),R=n(68),N=n(18),I=n(198),L=n(241),M=n(91),U=n(50),D=n(116).forEach,F=A("hidden"),V=N("toPrimitive"),B=U.set,q=U.getterFor("Symbol"),z=Object.prototype,H=o.Symbol,$=i("JSON","stringify"),W=_.f,G=x.f,Q=j.f,Y=S.f,K=C("symbols"),Z=C("op-symbols"),J=C("string-to-symbol-registry"),X=C("symbol-to-string-registry"),ee=C("wks"),te=o.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=c&&l((function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=W(z,t);r&&delete z[t],G(e,t,n),r&&e!==z&&G(z,t,r)}:G,oe=function(e,t){var n=K[e]=b(H.prototype);return B(n,{type:"Symbol",tag:e,description:t}),c||(n.description=t),n},ie=s?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},ae=function(e,t,n){e===z&&ae(Z,t,n),m(e);var r=y(t,!0);return m(n),f(K,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:g(0,!1)})):(f(e,F)||G(e,F,g(1,{})),e[F][r]=!0),re(e,r,n)):G(e,r,n)},ce=function(e,t){m(e);var n=v(t),r=w(n).concat(fe(n));return D(r,(function(t){c&&!ue.call(n,t)||ae(e,t,n[t])})),e},ue=function(e){var t=y(e,!0),n=Y.call(this,t);return!(this===z&&f(K,t)&&!f(Z,t))&&(!(n||!f(this,t)||!f(K,t)||f(this,F)&&this[F][t])||n)},se=function(e,t){var n=v(e),r=y(t,!0);if(n!==z||!f(K,r)||f(Z,r)){var o=W(n,r);return!o||!f(K,r)||f(n,F)&&n[F][r]||(o.enumerable=!0),o}},le=function(e){var t=Q(v(e)),n=[];return D(t,(function(e){f(K,e)||f(T,e)||n.push(e)})),n},fe=function(e){var t=e===z,n=Q(t?Z:v(e)),r=[];return D(n,(function(e){!f(K,e)||t&&!f(z,e)||r.push(K[e])})),r};(u||(P((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function(e){this===z&&n.call(Z,e),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),re(this,t,g(1,e))};return c&&ne&&re(z,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return q(this).tag})),P(H,"withoutSetter",(function(e){return oe(R(e),e)})),S.f=ue,x.f=ae,_.f=se,O.f=j.f=le,E.f=fe,I.f=function(e){return oe(N(e),e)},c&&(G(H.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),a||P(z,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:H}),D(w(ee),(function(e){L(e)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(J,t))return J[t];var n=H(t);return J[t]=n,X[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(f(X,e))return X[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?b(e):ce(b(e),t)},defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:se}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:le,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:l((function(){E.f(1)}))},{getOwnPropertySymbols:function(e){return E.f(h(e))}}),$)&&r({target:"JSON",stat:!0,forced:!u||l((function(){var e=H();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(d(t)||void 0!==e)&&!ie(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ie(t))return t}),o[1]=t,$.apply(null,o)}});H.prototype[V]||k(H.prototype,V,H.prototype.valueOf),M(H,"Symbol"),T[F]=!0},function(e,t,n){var r=n(8),o=n(176),i=n(207),a=n(31);for(var c in o){var u=r[c],s=u&&u.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(e){s.forEach=i}}},function(e,t,n){"use strict";var r=n(26),o=n(12),i=n(130),a=n(23),c=n(49),u=n(43),s=n(121),l=n(154),f=n(129),p=n(18),d=n(78),m=p("isConcatSpreadable"),h=d>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=f("concat"),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!h||!v},{concat:function(e){var t,n,r,o,i,a=c(this),f=l(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(y(i=-1===t?a:arguments[t])){if(p+(o=u(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&s(f,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(f,p++,i)}return f.length=p,f}})},function(e,t,n){var r=n(12),o=n(18),i=n(78),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(41);e.exports=Array.isArray||function(e){return"Array"==r(e)}},,function(e,t,n){"use strict";var r=n(26),o=n(116).filter;r({target:"Array",proto:!0,forced:!n(129)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(113),o=n(86),i=n(18)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r=n(140).charAt,o=n(50),i=n(178),a=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){"use strict";var r=n(114),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)}}},,,function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){var r=n(52),o=n(40),i=function(e){return function(t,n){var i,a,c=String(o(t)),u=r(n),s=c.length;return u<0||u>=s?e?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?e?c.charAt(u):i:e?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){"use strict";n(118);var r=n(37),o=n(12),i=n(18),a=n(122),c=n(31),u=i("species"),s=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=i("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),d=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var m=i(e),h=!o((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),v=h&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t}));if(!h||!v||"replace"===e&&(!s||!l||p)||"split"===e&&!d){var y=/./[m],g=n(m,""[e],(function(e,t,n,r,o){return t.exec===a?h&&!o?{done:!0,value:y.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=g[0],w=g[1];r(String.prototype,e,b),r(RegExp.prototype,m,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&c(RegExp.prototype[m],"sham",!0)}},function(e,t,n){var r=n(41),o=n(122);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){var r=n(87);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},,,function(e,t,n){var r=n(26),o=n(12),i=n(35),a=n(45).f,c=n(25),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!c||u,sham:!c},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){var r=n(26),o=n(25),i=n(103),a=n(35),c=n(45),u=n(121);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=c.f,s=i(r),l={},f=0;s.length>f;)void 0!==(n=o(r,t=s[f++]))&&u(l,t,n);return l}})},function(e,t,n){var r=n(8),o=n(176),i=n(119),a=n(31),c=n(18),u=c("iterator"),s=c("toStringTag"),l=i.values;for(var f in o){var p=r[f],d=p&&p.prototype;if(d){if(d[u]!==l)try{a(d,u,l)}catch(e){d[u]=l}if(d[s]||a(d,s,f),o[f])for(var m in i)if(d[m]!==i[m])try{a(d,m,i[m])}catch(e){d[m]=i[m]}}}},function(e,t,n){var r=n(23),o=n(130),i=n(18)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(37);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},,,function(e,t,n){"use strict";var r,o,i,a,c=n(26),u=n(59),s=n(8),l=n(36),f=n(209),p=n(37),d=n(155),m=n(91),h=n(163),v=n(23),y=n(61),g=n(135),b=n(65),w=n(180),O=n(166),j=n(181),E=n(167).set,_=n(210),x=n(212),S=n(213),k=n(169),P=n(214),C=n(50),A=n(82),T=n(18),R=n(77),N=n(78),I=T("species"),L="Promise",M=C.get,U=C.set,D=C.getterFor(L),F=f,V=s.TypeError,B=s.document,q=s.process,z=l("fetch"),H=k.f,$=H,W=!!(B&&B.createEvent&&s.dispatchEvent),G="function"==typeof PromiseRejectionEvent,Q=A(L,(function(){if(!(b(F)!==String(F))){if(66===N)return!0;if(!R&&!G)return!0}if(u&&!F.prototype.finally)return!0;if(N>=51&&/native code/.test(F))return!1;var e=F.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[I]=t,!(e.then((function(){}))instanceof t)})),Y=Q||!O((function(e){F.all(e).catch((function(){}))})),K=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},Z=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;_((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,c,u,s=n[i++],l=o?s.ok:s.fail,f=s.resolve,p=s.reject,d=s.domain;try{l?(o||(2===e.rejection&&te(e),e.rejection=1),!0===l?a=r:(d&&d.enter(),a=l(r),d&&(d.exit(),u=!0)),a===s.promise?p(V("Promise-chain cycle")):(c=K(a))?c.call(a,f,p):f(a)):p(r)}catch(e){d&&!u&&d.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&X(e)}))}},J=function(e,t,n){var r,o;W?((r=B.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},!G&&(o=s["on"+e])?o(r):"unhandledrejection"===e&&S("Unhandled promise rejection",n)},X=function(e){E.call(s,(function(){var t,n=e.facade,r=e.value;if(ee(e)&&(t=P((function(){R?q.emit("unhandledRejection",r,n):J("unhandledrejection",n,r)})),e.rejection=R||ee(e)?2:1,t.error))throw t.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e){E.call(s,(function(){var t=e.facade;R?q.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)}))},ne=function(e,t,n){return function(r){e(t,r,n)}},re=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Z(e,!0))},oe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw V("Promise can't be resolved itself");var r=K(t);r?_((function(){var n={done:!1};try{r.call(t,ne(oe,n,e),ne(re,n,e))}catch(t){re(n,t,e)}})):(e.value=t,e.state=1,Z(e,!1))}catch(t){re({done:!1},t,e)}}};Q&&(F=function(e){g(this,F,L),y(e),r.call(this);var t=M(this);try{e(ne(oe,t),ne(re,t))}catch(e){re(t,e)}},(r=function(e){U(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(F.prototype,{then:function(e,t){var n=D(this),r=H(j(this,F));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=R?q.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Z(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=M(e);this.promise=e,this.resolve=ne(oe,t),this.reject=ne(re,t)},k.f=H=function(e){return e===F||e===i?new o(e):$(e)},u||"function"!=typeof f||(a=f.prototype.then,p(f.prototype,"then",(function(e,t){var n=this;return new F((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof z&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return x(F,z.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:Q},{Promise:F}),m(F,L,!1,!0),h(L),i=l(L),c({target:L,stat:!0,forced:Q},{reject:function(e){var t=H(this);return t.reject.call(void 0,e),t.promise}}),c({target:L,stat:!0,forced:u||Q},{resolve:function(e){return x(u&&this===i?F:this,e)}}),c({target:L,stat:!0,forced:Y},{all:function(e){var t=this,n=H(t),r=n.resolve,o=n.reject,i=P((function(){var n=y(t.resolve),i=[],a=0,c=1;w(e,(function(e){var u=a++,s=!1;i.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=H(t),r=n.reject,o=P((function(){var o=y(t.resolve);w(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(e,t,n){"use strict";var r=n(141),o=n(19),i=n(43),a=n(52),c=n(40),u=n(171),s=n(215),l=n(142),f=Math.max,p=Math.min;r("replace",2,(function(e,t,n,r){var d=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=r.REPLACE_KEEPS_$0,h=d?"$":"$0";return[function(n,r){var o=c(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!d&&m||"string"==typeof r&&-1===r.indexOf(h)){var c=n(t,e,this,r);if(c.done)return c.value}var v=o(e),y=String(this),g="function"==typeof r;g||(r=String(r));var b=v.global;if(b){var w=v.unicode;v.lastIndex=0}for(var O=[];;){var j=l(v,y);if(null===j)break;if(O.push(j),!b)break;""===String(j[0])&&(v.lastIndex=u(y,i(v.lastIndex),w))}for(var E,_="",x=0,S=0;S<O.length;S++){j=O[S];for(var k=String(j[0]),P=f(p(a(j.index),y.length),0),C=[],A=1;A<j.length;A++)C.push(void 0===(E=j[A])?E:String(E));var T=j.groups;if(g){var R=[k].concat(C,P,y);void 0!==T&&R.push(T);var N=String(r.apply(void 0,R))}else N=s(k,y,P,C,T,r);P>=x&&(_+=y.slice(x,P)+N,x=P+k.length)}return _+y.slice(x)}]}))},function(e,t,n){"use strict";var r,o,i,a=n(12),c=n(161),u=n(31),s=n(22),l=n(18),f=n(59),p=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):d=!0);var m=null==r||a((function(){var e={};return r[p].call(e)!==e}));m&&(r={}),f&&!m||s(r,p)||u(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var r=n(22),o=n(49),i=n(60),a=n(208),c=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){"use strict";var r=n(92),o=n(113);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r=n(36),o=n(27),i=n(18),a=n(25),c=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(18),o=n(86),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(19);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(18)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){var r,o,i,a=n(8),c=n(12),u=n(95),s=n(97),l=n(64),f=n(168),p=n(77),d=a.location,m=a.setImmediate,h=a.clearImmediate,v=a.process,y=a.MessageChannel,g=a.Dispatch,b=0,w={},O=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},j=function(e){return function(){O(e)}},E=function(e){O(e.data)},_=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};m&&h||(m=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},h=function(e){delete w[e]},p?r=function(e){v.nextTick(j(e))}:g&&g.now?r=function(e){g.now(j(e))}:y&&!f?(i=(o=new y).port2,o.port1.onmessage=E,r=u(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&d&&"file:"!==d.protocol&&!c(_)?(r=_,a.addEventListener("message",E,!1)):r="onreadystatechange"in l("script")?function(e){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),O(e)}}:function(e){setTimeout(j(e),0)}),e.exports={set:m,clear:h}},function(e,t,n){var r=n(90);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r=n(61),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(19);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(140).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},,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(72);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(139);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 y=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}function b(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),y||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?g: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 x(){return Math.random().toString(36).substr(2,j)}var S=v();function k(e){Object(r.a)(F,e),F.length=n.length,S.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(_(b()))}var A=!1;function T(e){if(A)A=!1,k();else{S.confirmTransitionTo(e,"POP",w,(function(t){t?k({action:"POP",location:e}):function(e){var t=F.location,n=N.indexOf(t.key);-1===n&&(n=0);var r=N.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(A=!0,L(o))}(e)}))}}var R=_(b()),N=[R.key];function I(e){return E+d(e)}function L(e){n.go(e)}var M=0;function U(e){1===(M+=e)&&1===e?(window.addEventListener("popstate",P),i&&window.addEventListener("hashchange",C)):0===M&&(window.removeEventListener("popstate",P),i&&window.removeEventListener("hashchange",C))}var D=!1;var F={length:n.length,action:"POP",location:R,createHref:I,push:function(e,t){var r=m(e,t,x(),F.location);S.confirmTransitionTo(r,"PUSH",w,(function(e){if(e){var t=I(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=N.indexOf(F.location.key),s=N.slice(0,c+1);s.push(r.key),N=s,k({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=m(e,t,x(),F.location);S.confirmTransitionTo(r,"REPLACE",w,(function(e){if(e){var t=I(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=N.indexOf(F.location.key);-1!==c&&(N[c]=r.key),k({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=S.setPrompt(e);return D||(U(1),D=!0),function(){return D&&(D=!1,U(-1)),t()}},listen:function(e){var t=S.appendListener(e);return U(1),function(){U(-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),y=i.map((function(e){return m(e,void 0,"string"==typeof e?p():e.key||p())})),g=d;function b(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:y.length,action:"POP",location:y[h],index:h,entries:y,createHref:g,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:b,goBack:function(){b(-1)},goForward:function(){b(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}},function(e,t,n){var r=n(26),o=n(36),i=n(61),a=n(19),c=n(23),u=n(69),s=n(206),l=n(12),f=o("Reflect","construct"),p=l((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),d=!l((function(){f((function(){}))})),m=p||d;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(d&&!p)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(s.apply(e,r))}var o=n.prototype,l=u(c(o)?o:Object.prototype),m=Function.apply.call(e,l,t);return c(m)?m:l}})},,function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(26),o=n(187),i=n(161),a=n(179),c=n(91),u=n(31),s=n(37),l=n(18),f=n(59),p=n(86),d=n(160),m=d.IteratorPrototype,h=d.BUGGY_SAFARI_ITERATORS,v=l("iterator"),y=function(){return this};e.exports=function(e,t,n,l,d,g,b){o(n,t,l);var w,O,j,E=function(e){if(e===d&&P)return P;if(!h&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},_=t+" Iterator",x=!1,S=e.prototype,k=S[v]||S["@@iterator"]||d&&S[d],P=!h&&k||E(d),C="Array"==t&&S.entries||k;if(C&&(w=i(C.call(new e)),m!==Object.prototype&&w.next&&(f||i(w)===m||(a?a(w,m):"function"!=typeof w[v]&&u(w,v,y)),c(w,_,!0,!0),f&&(p[_]=y))),"values"==d&&k&&"values"!==k.name&&(x=!0,P=function(){return k.call(this)}),f&&!b||S[v]===P||u(S,v,P),p[t]=P,d)if(O={values:E("values"),keys:g?P:E("keys"),entries:E("entries")},b)for(j in O)(h||x||!(j in S))&&s(S,j,O[j]);else r({target:t,proto:!0,forced:h||x},O);return O}},function(e,t,n){var r=n(19),o=n(188);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){var r=n(19),o=n(164),i=n(43),a=n(95),c=n(133),u=n(165),s=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,f,p,d,m,h,v,y=n&&n.that,g=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),O=a(t,y,1+g+w),j=function(e){return l&&u(l),new s(!0,e)},E=function(e){return g?(r(e),w?O(e[0],e[1],j):O(e[0],e[1])):w?O(e,j):O(e)};if(b)l=e;else{if("function"!=typeof(f=c(e)))throw TypeError("Target is not iterable");if(o(f)){for(p=0,d=i(e.length);d>p;p++)if((m=E(e[p]))&&m instanceof s)return m;return new s(!1)}l=f.call(e)}for(h=l.next;!(v=h.call(l)).done;){try{m=E(v.value)}catch(e){throw u(l),e}if("object"==typeof m&&m&&m instanceof s)return m}return new s(!1)}},function(e,t,n){var r=n(19),o=n(61),i=n(18)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r="wc/customer-effort-score",o="/wc-admin",i="woocommerce_ces_tracks_queue"},function(e,t){e.exports=window.wp.date},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var r=n(160).IteratorPrototype,o=n(69),i=n(46),a=n(91),c=n(86),u=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,s,!1,!0),c[s]=u,e}},function(e,t,n){var r=n(23);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var r=n(12);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var r=n(191);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(136),o=n(114),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,y,g){var b,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&&!y?u(n,p.encoder,g,"key",h):n;w=""}if("string"==typeof(b=w)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||r.isBuffer(w))return u?[v(y?n:u(n,p.encoder,g,"key",h))+"="+v(u(w,p.encoder,g,"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 x=O[_],S="object"==typeof x&&void 0!==x.value?x.value:w[x];if(!a||null!==S){var k=c(w)?"function"==typeof o?o(n,x):n:n+(d?"."+x:"["+x+"]");s(j,e(S,k,o,i,a,u,l,f,d,m,h,v,y,g))}}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 y=f.join(u.delimiter),g=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),y.length>0?g+y:""}},function(e,t,n){"use strict";var r=n(136),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,y=p[n],g=y.indexOf("]="),b=-1===g?y.indexOf("="):g+1;-1===b?(h=t.decoder(y,a.decoder,m,"key"),v=t.strictNullHandling?null:""):(h=t.decoder(y.slice(0,b),a.decoder,m,"key"),v=r.maybeMap(u(y.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===m&&(v=c(v)),y.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)}},,,,,function(e,t,n){var r=n(18);t.f=r},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){var r=n(23),o=n(41),i=n(18)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},,,,,function(e,t,n){"use strict";var r=n(26),o=n(285),i=n(40);r({target:"String",proto:!0,forced:!n(286)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(61),o=n(23),i=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?c(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(a.prototype=t.prototype),a}},function(e,t,n){"use strict";var r=n(116).forEach,o=n(186)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(12);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(8);e.exports=r.Promise},function(e,t,n){var r,o,i,a,c,u,s,l,f=n(8),p=n(45).f,d=n(167).set,m=n(168),h=n(211),v=n(77),y=f.MutationObserver||f.WebKitMutationObserver,g=f.document,b=f.process,w=f.Promise,O=p(f,"queueMicrotask"),j=O&&O.value;j||(r=function(){var e,t;for(v&&(e=b.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},m||v||h||!y||!g?w&&w.resolve?(s=w.resolve(void 0),l=s.then,a=function(){l.call(s,r)}):a=v?function(){b.nextTick(r)}:function(){d.call(f,r)}:(c=!0,u=g.createTextNode(""),new y(r).observe(u,{characterData:!0}),a=function(){u.data=c=!c})),e.exports=j||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},function(e,t,n){var r=n(90);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){var r=n(19),o=n(23),i=n(169);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r=n(8);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){var r=n(49),o=Math.floor,i="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,u,s,l){var f=n+e.length,p=u.length,d=c;return void 0!==s&&(s=r(s),d=a),i.call(l,d,(function(r,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":a=s[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>p){var l=o(c/10);return 0===l?r:l<=p?void 0===u[l-1]?i.charAt(1):u[l-1]+i.charAt(1):r}a=u[c-1]}return void 0===a?"":a}))}},,,,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(29),o=n.n(r),i=(n(118),n(238),n(108),n(205),n(117),n(119),n(115),n(436),n(134),n(153),n(128),n(127),n(322),n(257),n(159),n(99)),a=n(3),c=n(42);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)}},,function(e,t,n){"use strict";var r=n(25),o=n(12),i=n(63),a=n(89),c=n(84),u=n(49),s=n(81),l=Object.assign,f=Object.defineProperty;e.exports=!l||o((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=i(l({},t)).join("")}))?function(e,t){for(var n=u(e),o=arguments.length,l=1,f=a.f,p=c.f;o>l;)for(var d,m=s(arguments[l++]),h=f?i(m).concat(f(m)):i(m),v=h.length,y=0;v>y;)d=h[y++],r&&!p.call(m,d)||(n[d]=m[d]);return n}:l},function(e,t,n){"use strict";var r=n(95),o=n(49),i=n(242),a=n(164),c=n(43),u=n(121),s=n(133);e.exports=function(e){var t,n,l,f,p,d,m=o(e),h="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,g=void 0!==y,b=s(m),w=0;if(g&&(y=r(y,v>2?arguments[2]:void 0,2)),null==b||h==Array&&a(b))for(n=new h(t=c(m.length));t>w;w++)d=g?y(m[w],w):m[w],u(n,w,d);else for(p=(f=b.call(m)).next,n=new h;!(l=p.call(f)).done;w++)d=g?i(f,y,[l.value,w],!0):l.value,u(n,w,d);return n.length=w,n}},function(e,t,n){var r=n(23),o=n(179);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(141),o=n(200),i=n(19),a=n(40),c=n(181),u=n(171),s=n(43),l=n(142),f=n(122),p=n(12),d=[].push,m=Math.min,h=!p((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var c,u,s,l=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,h=new RegExp(e.source,p+"g");(c=f.call(h,r))&&!((u=h.lastIndex)>m&&(l.push(r.slice(m,c.index)),c.length>1&&c.index<r.length&&d.apply(l,c.slice(1)),s=c[0].length,m=u,l.length>=i));)h.lastIndex===c.index&&h.lastIndex++;return m===r.length?!s&&h.test("")||l.push(""):l.push(r.slice(m)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var f=i(e),p=String(this),d=c(f,RegExp),v=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(h?"y":"g"),g=new d(h?f:"^(?:"+f.source+")",y),b=void 0===o?4294967295:o>>>0;if(0===b)return[];if(0===p.length)return null===l(g,p)?[p]:[];for(var w=0,O=0,j=[];O<p.length;){g.lastIndex=h?O:0;var E,_=l(g,h?p:p.slice(O));if(null===_||(E=m(s(g.lastIndex+(h?0:O)),p.length))===w)O=u(p,O,v);else{if(j.push(p.slice(w,O)),j.length===b)return j;for(var x=1;x<=_.length-1;x++)if(j.push(_[x]),j.length===b)return j;O=w=E}}return j.push(p.slice(w)),j}]}),!h)},function(e,t){e.exports=window.wc.currency},function(e,t,n){var r=n(35),o=n(74).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(94),o=n(22),i=n(198),a=n(27).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(19),o=n(165);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){throw o(e),t}}},function(e,t,n){var r=n(12),o=n(18),i=n(59),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},,,,,,,,function(e,t){e.exports=window.wp.dom},,function(e,t,n){"use strict";var r=n(141),o=n(19),i=n(40),a=n(295),c=n(142);r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),u=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var l=c(i,u);return a(i.lastIndex,s)||(i.lastIndex=s),null===l?-1:l.index}]}))},,function(e,t,n){"use strict";var r=n(37),o=n(19),i=n(12),a=n(170),c=RegExp.prototype,u=c.toString,s=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),l="toString"!=u.name;(s||l)&&r(RegExp.prototype,"toString",(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var r=n(141),o=n(19),i=n(43),a=n(40),c=n(171),u=n(142);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),s=String(this);if(!a.global)return u(a,s);var l=a.unicode;a.lastIndex=0;for(var f,p=[],d=0;null!==(f=u(a,s));){var m=String(f[0]);p[d]=m,""===m&&(a.lastIndex=c(s,i(a.lastIndex),l)),d++}return 0===d?null:p}]}))},function(e,t,n){"use strict";var r=n(25),o=n(8),i=n(82),a=n(37),c=n(22),u=n(41),s=n(223),l=n(53),f=n(12),p=n(69),d=n(74).f,m=n(45).f,h=n(27).f,v=n(280).trim,y=o.Number,g=y.prototype,b="Number"==u(p(g)),w=function(e){var t,n,r,o,i,a,c,u,s=l(e,!1);if("string"==typeof s&&s.length>2)if(43===(t=(s=v(s)).charCodeAt(0))||45===t){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(s.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,c=0;c<a;c++)if((u=i.charCodeAt(c))<48||u>o)return NaN;return parseInt(i,r)}return+s};if(i("Number",!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var O,j=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof j&&(b?f((function(){g.valueOf.call(n)})):"Number"!=u(n))?s(new y(w(t)),n,j):w(t)},E=r?d(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),_=0;E.length>_;_++)c(y,O=E[_])&&!c(j,O)&&h(j,O,m(y,O));j.prototype=g,g.constructor=j,a(o,"Number",j)}},function(e,t,n){var r=n(25),o=n(8),i=n(82),a=n(223),c=n(27).f,u=n(74).f,s=n(200),l=n(170),f=n(189),p=n(37),d=n(12),m=n(50).set,h=n(163),v=n(18)("match"),y=o.RegExp,g=y.prototype,b=/a/g,w=/a/g,O=new y(b)!==b,j=f.UNSUPPORTED_Y;if(r&&i("RegExp",!O||j||d((function(){return w[v]=!1,y(b)!=b||y(w)==w||"/a/i"!=y(b,"i")})))){for(var E=function(e,t){var n,r=this instanceof E,o=s(e),i=void 0===t;if(!r&&o&&e.constructor===E&&i)return e;O?o&&!i&&(e=e.source):e instanceof E&&(i&&(t=l.call(e)),e=e.source),j&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var c=a(O?new y(e,t):y(e,t),r?this:g,E);return j&&n&&m(c,{sticky:n}),c},_=function(e){e in E||c(E,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},x=u(y),S=0;x.length>S;)_(x[S++]);g.constructor=E,E.prototype=g,p(o,"RegExp",E)}h("RegExp")},,function(e,t,n){var r=n(47),o=n(23),i=n(22),a=n(27).f,c=n(68),u=n(450),s=c("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(e){a(e,s,{value:{objectID:"O"+ ++l,weakData:{}}})},d=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[s].objectID},getWeakData:function(e,t){if(!i(e,s)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[s].weakData},onFreeze:function(e){return u&&d.REQUIRED&&f(e)&&!i(e,s)&&p(e),e}};r[s]=!0},function(e,t,n){"use strict";e.exports=n(300)},,,,,,,,,function(e,t,n){"use strict";n(119),n(115),n(158),n(134),n(153),n(132);var r=n(2),o=n(101),i=n(42),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,614))})),s=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(2),n.e(15)]).then(n.bind(null,610))})),l=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(2),n.e(19)]).then(n.bind(null,615))})),f=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(5),n.e(14)]).then(n.bind(null,616))})),p=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(2),n.e(10)]).then(n.bind(null,612))})),d=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(11)]).then(n.bind(null,617))})),m=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(18)]).then(n.bind(null,618))})),h=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(13)]).then(n.bind(null,619))})),v=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(17)]).then(n.bind(null,611))})),y=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(12)]).then(n.bind(null,613))}));t.a=function(){var e=[{report:"revenue",title:Object(r.__)("Revenue",'woocommerce'),component:u,navArgs:{id:"woocommerce-analytics-revenue"}},{report:"products",title:Object(r.__)("Products",'woocommerce'),component:s,navArgs:{id:"woocommerce-analytics-products"}},{report:"variations",title:Object(r.__)("Variations",'woocommerce'),component:l,navArgs:{id:"woocommerce-analytics-variations"}},{report:"orders",title:Object(r.__)("Orders",'woocommerce'),component:f,navArgs:{id:"woocommerce-analytics-orders"}},{report:"categories",title:Object(r.__)("Categories",'woocommerce'),component:p,navArgs:{id:"woocommerce-analytics-categories"}},{report:"coupons",title:Object(r.__)("Coupons",'woocommerce'),component:d,navArgs:{id:"woocommerce-analytics-coupons"}},{report:"taxes",title:Object(r.__)("Taxes",'woocommerce'),component:m,navArgs:{id:"woocommerce-analytics-taxes"}},"yes"===c?{report:"stock",title:Object(r.__)("Stock",'woocommerce'),component:v,navArgs:{id:"woocommerce-analytics-stock"}}:null,{report:"customers",title:Object(r.__)("Customers",'woocommerce'),component:y},{report:"downloads",title:Object(r.__)("Downloads",'woocommerce'),component:h,navArgs:{id:"woocommerce-analytics-downloads"}}].filter(Boolean);return Object(o.applyFilters)("woocommerce_admin_reports_list",e)}},function(e,t,n){"use strict";var r=n(261),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 y=a[v];if(!(i[y]||r&&r[y]||h&&h[y]||c&&c[y])){var g=p(n,y);try{s(t,y,g)}catch(e){}}}}return t}},,,function(e,t){e.exports=window.wp.plugins},function(e,t,n){"use strict";n.d(t,"c",(function(){return Vt})),n.d(t,"b",(function(){return zt})),n.d(t,"a",(function(){return Ht}));n(174),n(83),n(126),n(151),n(127),n(152);var r=n(39),o=n.n(r),i=n(66),a=n.n(i),c=n(4),u=n.n(c),s=n(13),l=n.n(s),f=n(14),p=n.n(f),d=n(16),m=n.n(d),h=n(17),v=n.n(h),y=n(7),g=n.n(y),b=n(0),w=(n(119),n(115),n(158),n(134),n(153),n(118),n(253),n(159),n(108),n(205),n(117),n(132),n(5)),O=n(34),j=n(15),E=n(96),_=n(11),x=n.n(_),S=n(1),k=n.n(S),P=n(173),C=n(319),A=n(139),T=n(72),R=n(320),N=n.n(R),I=(n(261),n(100)),L=(n(271),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"),U=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(E.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 x.a.createElement(M.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},x.a.createElement(L.Provider,{children:this.props.children||null,value:this.props.history}))},t}(x.a.Component);x.a.Component;x.a.Component;var D={},F=0;function V(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 F<1e4&&(r[e]=i,F++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var l=u[0],f=u.slice(1),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 B=function(e){function t(){return e.apply(this,arguments)||this}return Object(E.a)(t,e),t.prototype.render=function(){var e=this;return x.a.createElement(M.Consumer,null,(function(t){t||Object(A.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?V(n.pathname,e.props):t.match,o=Object(T.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),x.a.createElement(M.Provider,{value:o},o.match?a?"function"==typeof a?a(o):a:c?x.a.createElement(c,o):u?u(o):null:"function"==typeof a?a(o):null)}))},t}(x.a.Component);function q(e){return"/"===e.charAt(0)?e:"/"+e}function z(e,t){if(!e)return t;var n=q(e);return 0!==t.pathname.indexOf(n)?t:Object(T.a)({},t,{pathname:t.pathname.substr(n.length)})}function H(e){return"string"==typeof e?e:Object(P.d)(e)}function $(e){return function(){Object(A.a)(!1)}}function W(){}x.a.Component;var G=function(e){function t(){return e.apply(this,arguments)||this}return Object(E.a)(t,e),t.prototype.render=function(){var e=this;return x.a.createElement(M.Consumer,null,(function(t){t||Object(A.a)(!1);var n,r,o=e.props.location||t.location;return x.a.Children.forEach(e.props.children,(function(e){if(null==r&&x.a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?V(o.pathname,Object(T.a)({},e.props,{path:i})):t.match}})),r?x.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(x.a.Component);x.a.useContext;var Q=n(3),Y=n(104),K=n(112),Z=n(28),J=n(42),X=n(33),ee=n(44),te=(n(448),n(449),n(128),n(256),n(238),n(289),n(282),n(101)),ne=n(2),re=n(270),oe=n(219);function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var ae=Object(b.lazy)((function(){return n.e(9).then(n.bind(null,734))})),ce=Object(b.lazy)((function(){return n.e(20).then(n.bind(null,753))})),ue=Object(b.lazy)((function(){return n.e(28).then(n.bind(null,735))})),se=Object(b.lazy)((function(){return Promise.all([n.e(1),n.e(3),n.e(55),n.e(4),n.e(34)]).then(n.bind(null,751))})),le=Object(b.lazy)((function(){return Promise.all([n.e(3),n.e(38)]).then(n.bind(null,754))})),fe=Object(b.lazy)((function(){return Promise.all([n.e(56),n.e(49)]).then(n.bind(null,752))})),pe=Object(b.lazy)((function(){return Promise.all([n.e(56),n.e(49)]).then(n.bind(null,745))})),de=function(){var e=[],t=[["",wcSettings.woocommerceTranslation]];return e.push({container:se,path:"/",breadcrumbs:[].concat(t,[Object(ne.__)("Home",'woocommerce')]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-home"},capability:"manage_woocommerce"}),window.wcAdminFeatures.analytics&&(e.push({container:ue,path:"/analytics/overview",breadcrumbs:[].concat(t,[["/analytics/overview",Object(ne.__)("Analytics",'woocommerce')],Object(ne.__)("Overview",'woocommerce')]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-overview"},capability:"view_woocommerce_reports"}),e.push({container:ce,path:"/analytics/settings",breadcrumbs:[].concat(t,[["/analytics/revenue",Object(ne.__)("Analytics",'woocommerce')],Object(ne.__)("Settings",'woocommerce')]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-settings"},capability:"view_woocommerce_reports"}),e.push({container:ae,path:"/customers",breadcrumbs:[].concat(t,[Object(ne.__)("Customers",'woocommerce')]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-analytics-customers"},capability:"view_woocommerce_reports"}),e.push({container:ae,path:"/analytics/:report",breadcrumbs:function(e){var n=e.match,r=Object(Q.find)(Object(re.a)(),{report:n.params.report});return r?[].concat(t,[["/analytics/revenue",Object(ne.__)("Analytics",'woocommerce')],r.title]):[]},wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",capability:"view_woocommerce_reports"})),window.wcAdminFeatures.marketing&&e.push({container:le,path:"/marketing",breadcrumbs:[].concat(t,[["/marketing",Object(ne.__)("Marketing",'woocommerce')],Object(ne.__)("Overview",'woocommerce')]),wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"woocommerce-marketing-overview"},capability:"view_woocommerce_reports"}),window.wcAdminFeatures.onboarding&&e.push({container:fe,path:"/setup-wizard",breadcrumbs:[].concat(t,[["/setup-wizard",Object(ne.__)("Setup Wizard",'woocommerce')]]),capability:"manage_woocommerce"}),window.wcAdminFeatures.settings&&e.push({container:pe,path:"/settings/:page",breadcrumbs:function(e){var n=e.match,r=Object(J.g)("settingsPages"),o=r[n.params.page];return o?[].concat(t,[[r.general?"/settings/general":"/settings/".concat(Object.keys(r)[0]),Object(ne.__)("Settings",'woocommerce')],o]):[]},wpOpenMenu:"toplevel_page_woocommerce",capability:"manage_woocommerce"}),Object(te.applyFilters)("woocommerce_admin_pages_list",e)},me=function(e){m()(n,e);var t=ie(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(b.createElement)(b.Suspense,{fallback:Object(b.createElement)(K.Spinner,null)},Object(b.createElement)(t.container,{params:i,path:o,pathMatch:t.path,query:r}))}}]),n}(b.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(oe.f)(e.href)){var r=Object(Q.last)(e.href.split("?")),o=Object(Y.parse)(r),i=o.path||"homescreen",a=Object(Z.getScreenFromPath)(i),c=n.includes(a),u="admin.php?"+Object(Y.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")};n(288),n(279),n(277);var he=n(9),ve=n.n(he),ye=n(99),ge=n(58),be=n(417),we=n(460),Oe=n(93),je=(n(452),n(30)),Ee=n.n(je),_e=(n(276),n(20)),xe=Object(b.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(_e.Path,{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"})),Se=Object(b.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(_e.Path,{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"})),ke=n(626),Pe=(n(453),n(336)),Ce={page:1,per_page:X.QUERY_DEFAULTS.pageSize,status:"unactioned",type:X.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc"};function Ae(e){var t=e(X.NOTES_STORE_NAME),n=t.getNotes,r=t.getNotesError,o=t.isResolving,i=(0,e(X.USER_STORE_NAME).getCurrentUser)(),a=parseInt(i&&i.woocommerce_meta&&i.woocommerce_meta.activity_panel_inbox_last_read,10);if(!a)return null;n(Ce);var c=Boolean(r("getNotes",[Ce])),u=o("getNotes",[Ce]);if(c||u)return null;var s=n(Ce);return Object(Pe.a)(s,a)>0}var Te=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=ve()("woocommerce-layout__activity-panel-tab",{"is-active":a&&i,"has-unread":o}),s="activity-panel-tab-".concat(r);return Object(b.createElement)(w.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(b.createElement)("span",{className:"screen-reader-text"},Object(ne.__)("unread activity",'woocommerce')))},Re=function(e){var t=e.tabs,n=e.onTabClick,r=e.selectedTab,i=e.tabOpen,a=void 0!==i&&i,c=Object(b.useState)({tabOpen:a,currentTab:r}),u=Ee()(c,2),s=u[0],l=s.tabOpen,f=s.currentTab,p=u[1];return Object(b.useEffect)((function(){p({tabOpen:a,currentTab:r})}),[a,r]),Object(b.createElement)(w.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(b.createElement)(r,o()({key:t},i))}return Object(b.createElement)(Te,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(ee.recordEvent)("activity_panel_open",{tab:e.name}),p({tabOpen:t,currentTab:e.name}),n(e,t)}}))})))},Ne=function(){return Object(b.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(b.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(b.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"}))},Ie=n(416),Le=n(625),Me=(n(454),"highlight-tooltip__show");function Ue(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,p=void 0!==f&&f,d=Object(b.useState)(u>0?null:i),m=Ee()(d,2),h=m[0],v=m[1],y=Object(b.useState)(null),g=Ee()(y,2),O=g[0],j=g[1],E=Object(b.useState)(null),_=Ee()(E,2),x=_[0],S=_[1];function k(){if(p){var e=document.getElementById(a);S(e.getBoundingClientRect())}}Object(b.useEffect)((function(){var e,t,n=document.getElementById(a);n&&!O&&(p?(t=document.createElement("div"),document.body.appendChild(t)):t=n.parentElement,(e=document.createElement("div")).classList.add("highlight-tooltip__container"),t.appendChild(e),j(e));var r=P(e);return function(){if(e){var t=e.parentElement;t.removeChild(e),p&&t.remove()}r&&clearTimeout(r)}}),[]),Object(b.useEffect)((function(){!h&&O&&O.classList.remove(Me)}),[h]),Object(b.useEffect)((function(){i!==h&&null!==h&&O&&(v(i),i?O&&P(O):O.classList.remove(Me))}),[i]),Object(b.useLayoutEffect)((function(){return window.addEventListener("resize",k),function(){return window.removeEventListener("resize",k)}}),[]);var P=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&&p&&S(t.getBoundingClientRect()),e&&e.classList.add(Me),v(!0),l()},A=function(){v(!1),c&&c()};return O?Object(b.createPortal)(Object(b.createElement)("div",{className:"highlight-tooltip__portal"},h?Object(b.createElement)(b.Fragment,null,Object(b.createElement)(w.IsolatedEventContainer,{className:"highlight-tooltip__overlay"}),Object(b.createElement)(w.Popover,{className:"highlight-tooltip__popover",noArrow:!1,anchorRect:x,focusOnMount:"container"},Object(b.createElement)(w.Card,{size:"medium"},Object(b.createElement)(w.CardHeader,null,t,Object(b.createElement)(w.Button,{isSmall:!0,onClick:A,icon:Le.a})),Object(b.createElement)(w.CardBody,null,r||null),Object(b.createElement)(w.CardFooter,{isBorderless:!0},Object(b.createElement)(w.Button,{size:"small",isPrimary:!0,onClick:A},n||Object(ne.__)("Close",'woocommerce')))))):null),O):null}Ue.propTypes={id:k.a.string.isRequired,title:k.a.string.isRequired,closeButtonText:k.a.string.isRequired,content:k.a.oneOfType([k.a.string,k.a.node]),show:k.a.bool,onClose:k.a.func,delay:k.a.number,onShow:k.a.func,useAnchor:k.a.bool};n(322);var De=n(251);var Fe=["button","submit"];function Ve(e){var t=Object(b.useRef)(e);Object(b.useEffect)((function(){t.current=e}),[e]);var n=Object(b.useRef)(!1),r=Object(b.useRef)(),o=Object(b.useCallback)((function(){clearTimeout(r.current)}),[]);Object(b.useEffect)((function(){return function(){return o()}}),[]),Object(b.useEffect)((function(){e||o()}),[e,o]);var i=Object(b.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)(Fe,e.type)}return!1}(r)&&(n.current=!0)}),[]),a=Object(b.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 Be=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="woocommerce-layout__activity-panel-wrapper",l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement",t=Object(b.useRef)(e);return Object(b.useEffect)((function(){t.current=e}),[e]),Object(b.useCallback)((function(e){if(e&&!1!==t.current&&!e.contains(e.ownerDocument.activeElement)){var n=e;if("firstElement"===t.current){var r=De.focus.tabbable.find(e)[0];r&&(n=r)}n.focus()}}),[])}(),f=Ve((function(e){var t=e.relatedTarget&&(e.relatedTarget.closest(".woocommerce-inbox-dismiss-confirmation_modal")||e.relatedTarget.closest(".components-snackbar__action"));n&&!t&&c()})),p=Object(b.useRef)(null),d=Object(b.useCallback)((function(e){p.current=e,l(e)}),[]);if(!a)return Object(b.createElement)("div",{className:s});if(!t)return null;var m=ve()(s,{"is-open":n,"is-switching":r});return Object(b.createElement)("div",o()({className:m,tabIndex:0,role:"tabpanel","aria-label":a.title,onTransitionEnd:function(e){e&&"transform"===e.propertyName&&(u(),p.current&&n&&a&&l(p.current))}},f,{ref:d}),Object(b.createElement)("div",{className:"woocommerce-layout__activity-panel-content",key:"activity-panel-"+i,id:"activity-panel-"+i},Object(b.createElement)(b.Suspense,{fallback:Object(b.createElement)(K.Spinner,null)},t)))},qe=Object(b.lazy)((function(){return Promise.all([n.e(57),n.e(6),n.e(7)]).then(n.bind(null,746))})),ze=Object(b.lazy)((function(){return Promise.all([n.e(1),n.e(3),n.e(4),n.e(8)]).then(n.bind(null,733))})),He=function(e){var t,n,r,o=e.isEmbedded,i=e.query,a=e.userPreferencesData,c=Object(b.useState)(""),u=Ee()(c,2),s=u[0],l=u[1],f=Object(b.useState)(!1),p=Ee()(f,2),d=p[0],m=p[1],h=Object(b.useState)(!1),v=Ee()(h,2),y=v[0],g=v[1],w=Object(b.useState)(!1),O=Ee()(w,2),E=O[0],_=O[1],x=function(e,t){var n={};if("wc-admin"===i.page&&"appearance"===i.task){var r,o=(0,e(X.ONBOARDING_STORE_NAME).getTasksStatus)();n={set_notice:t("woocommerce_demo_store_notice")?"Y":"N",create_homepage:!0===o.hasHomepage?"Y":"N",upload_logo:null!==(r=o.themeMods)&&void 0!==r&&r.custom_logo?"Y":"N"}}return n},S=Object(j.useSelect)((function(e){var t=e(X.OPTIONS_STORE_NAME),n=t.getOption,r=t.isResolving;return{hasUnreadNotes:Ae(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")||[],previewSiteBtnTrackData:x(e,n)}})),k=S.hasUnreadNotes,P=S.requestingTaskListOptions,C=S.setupTaskListComplete,A=S.setupTaskListHidden,T=S.trackedCompletedTasks,R=S.previewSiteBtnTrackData,N=Object(j.useDispatch)(X.OPTIONS_STORE_NAME).updateOptions,I=Object(X.useUser)().currentUserCan,L=function(){return"wc-admin"===i.page&&!i.path},M=function(){return i.task&&!i.path&&(!0===P||!1===A&&!1===C)},U=function(){var e={name:"inbox",title:Object(ne.__)("Inbox",'woocommerce'),icon:Object(b.createElement)(be.a,{icon:xe}),unread:k,visible:(o||!L())&&!M()},t={name:"setup",title:Object(ne.__)("Finish setup",'woocommerce'),icon:Object(b.createElement)(Ne,null),onClick:function(){return window.location.href!==Object(J.f)("admin.php?page=wc-admin")&&("no"===A?D():N({woocommerce_task_list_hidden:"no"}).then(D)),null},visible:I("manage_woocommerce")&&!C&&!A&&!M()&&(!L()||o)},n={name:"help",title:Object(ne.__)("Help",'woocommerce'),icon:Object(b.createElement)(be.a,{icon:Se}),visible:L()&&!o||M()},r={component:Ie.b,visible:!o&&L()&&!M()};return[e,t,{name:"previewSite",title:Object(ne.__)("Preview site",'woocommerce'),icon:Object(b.createElement)(be.a,{icon:ke.a}),visible:"wc-admin"===i.page&&"appearance"===i.task,onClick:function(){return window.open(window.wcSettings.siteUrl),Object(ee.recordEvent)("wcadmin_tasklist_previewsite",R),null}},r,n].filter((function(e){return e.visible}))},D=function(){Object(oe.f)(window.location.href)?Object(Z.getHistory)().push(Object(Z.getNewPath)({},"/",{})):window.location.href=Object(J.f)("admin.php?page=wc-admin")},F=U(),V=Object(Q.uniqueId)("activity-panel-header_"),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)||T.includes(t)));return Object(b.createElement)("div",null,Object(b.createElement)(K.H,{id:V,className:"screen-reader-text"},Object(ne.__)("Store Activity",'woocommerce')),Object(b.createElement)(K.Section,{component:"aside",id:"woocommerce-activity-panel",className:"woocommerce-layout__activity-panel","aria-labelledby":V},Object(b.createElement)(Re,{tabs:F,tabOpen:y,selectedTab:s,onTabClick:function(e,t){var n,r,o;e.onClick?e.onClick():(n=t,r=e.name,o=r!==s&&""!==s&&n&&y,d||(l(r),g(n),_(o)))}}),Object(b.createElement)(Be,{currentTab:!0,isPanelOpen:y,isPanelSwitching:E,tab:Object(Q.find)(U(),{name:s}),content:function(e){var t=i.task;switch(e){case"inbox":return Object(b.createElement)(ze,null);case"help":return Object(b.createElement)(qe,{taskName:t});default:return null}}(s),closePanel:function(){return m(!0),void g(!1)},clearPanel:function(){y||(m(!1),_(!1),l(""))}})),B?Object(b.createElement)(Ue,{delay:1e3,useAnchor:!0,title:Object(ne.__)("We're here for help",'woocommerce'),content:Object(ne.__)("If you have any questions, feel free to explore the WooCommerce docs listed here.",'woocommerce'),closeButtonText:Object(ne.__)("Got it",'woocommerce'),id:"activity-panel-tab-help",onClose:function(){return Object(ee.recordEvent)("help_tooltip_click"),void(a&&a.updateUserPreferences&&a.updateUserPreferences({help_panel_highlight_shown:"yes"}))},onShow:function(){return Object(ee.recordEvent)("help_tooltip_view")}}):null)};He.defaultProps={getHistory:Z.getHistory};var $e=He,We=function(){return/iPhone|iPad|iPod/i.test(window.navigator.userAgent)?"ios":/Android/i.test(window.navigator.userAgent)?"android":"unknown"},Ge=function(){return Object(b.createElement)("svg",{width:"37",height:"37",viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)("rect",{width:"92",height:"92",rx:"21.3953",fill:"#7F54B3"}),Object(b.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"}))},Qe=(n(455),function(e){var t=e.onInstall,n=e.onDismiss;Object(b.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(b.useState)(!1),o=Ee()(r,2),i=o[0],a=o[1];return"android"!==We()||i?null:Object(b.createElement)("div",{className:"woocommerce-mobile-app-banner"},Object(b.createElement)(w.Icon,{icon:"no-alt","data-testid":"dismiss-btn",onClick:function(){n(),a(!0),Object(ee.recordEvent)("wcadmin_mobile_android_banner_click",{action:"dismiss"})}}),Object(b.createElement)(Ge,null),Object(b.createElement)("div",{className:"woocommerce-mobile-app-banner__description"},Object(b.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(ne.__)("Run your store from anywhere",'woocommerce')),Object(b.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(ne.__)("Download the WooCommerce app",'woocommerce'))),Object(b.createElement)(w.Button,{href:"https://play.google.com/store/apps/details?id=com.woocommerce.android",isSecondary:!0,onClick:function(){t(),a(!0),Object(ee.recordEvent)("wcadmin_mobile_android_banner_click",{action:"install"})}},Object(ne.__)("Install",'woocommerce')))});function Ye(){var e=Object(b.useState)(!1),t=Ee()(e,2),n=t[0],r=t[1],o=Object(b.useRef)(null);return Object(b.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 Ke=n(274),Ze=(n(456),n(29)),Je=n.n(Ze);n(435),n(457),n(257),n(258),n(255);function Xe(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}var et=function(e){return 0===e.indexOf("http")?e:Object(J.f)(e)},tt=function(e){var t=e.replace(/[-\/\\^$*+?.()|[\]{}]/gi,"\\$&").split(/\\\?|#/),n=Ee()(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},nt=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)return 0;var r=et(t),o=e.href;if(r===o)return Number.MAX_SAFE_INTEGER;var i=tt(r),a=new RegExp(n||i,"i");return(decodeURIComponent(o).match(a)||[]).length}(window.location,e.url,e.matchExpression);r>0&&r>=n&&(n=r,t=e)})),t||null},rt=["primary","favorites","plugins","secondary"],ot={woocommerce:{id:"woocommerce",isCategory:!0,menuId:"primary",migrate:!0,order:10,parent:"",title:"WooCommerce"}},it=function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},ot);return{items:function(e){return e.sort((function(e,t){return e.order===t.order?e.title.localeCompare(t.title):e.order-t.order}))}(e).reduce((function(e,r){if(e[r.parent]||(e[r.parent]={},rt.forEach((function(t){e[r.parent][t]=[]}))),!e[r.parent][r.menuId])return e;if(t&&r.capability&&!t(r.capability))return e;r.isCategory&&(n[r.id]=r);var o=e[r.parent][r.menuId];return o&&o.push(r),e}),{}),categories:n}},at=Object(b.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(b.createElement)(_e.Path,{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"})),ct=function(){var e=Object(J.g)("siteTitle",""),t=Object(J.g)("homeUrl",""),n=Ye(),r=Object(b.useState)(document.body.classList.contains(!1)),o=Ee()(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(b.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)}Object(Z.addHistoryListener)((function(){return f()}))}),[]);var p=Object(b.createElement)(be.a,{size:"36px",icon:at}),d=Object(j.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=d.isRequestingSiteIcon,h=d.siteIconUrl;h?p=Object(b.createElement)("img",{alt:Object(ne.__)("Site Icon"),src:h}):m&&(p=null);var v=ve()("woocommerce-navigation-header",{"is-scrolled":n});return Object(b.createElement)("div",{className:v},Object(b.createElement)(w.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"},p),Object(b.createElement)(w.Button,{href:t,className:"woocommerce-navigation-header__site-title",as:"span"},Object(ye.decodeEntities)(e)))},ut=(n(458),n(459),function(e){var t=e.id,n=Object(j.useSelect)((function(e){return{favorites:e(X.NAVIGATION_STORE_NAME).getFavorites(),isResolving:e(X.NAVIGATION_STORE_NAME).isResolving("getFavorites")}})),r=n.favorites,o=n.isResolving,i=Object(j.useDispatch)(X.NAVIGATION_STORE_NAME),a=i.addFavorite,c=i.removeFavorite,u=r.includes(t);return o?null:Object(b.createElement)(w.Button,{id:"woocommerce-navigation-favorite-button",className:"woocommerce-navigation-favorite-button",isTertiary:!0,onClick:function(){(u?c:a)(t),Object(ee.recordEvent)("navigation_favorite",{id:t,action:u?"unfavorite":"favorite"})},icon:u?"star-filled":"star-empty","aria-label":u?Object(ne.__)("Add this item to your favorites.",'woocommerce'):Object(ne.__)("Remove this item from your favorites.",'woocommerce')})}),st="woocommerce_navigation_favorites_tooltip_hidden",lt=function(){var e=Object(j.useSelect)((function(e){var t=e(X.OPTIONS_STORE_NAME),n=t.getOption,r=t.isResolving;return{isFavoritesResolving:e(X.NAVIGATION_STORE_NAME).isResolving("getFavorites"),isOptionResolving:r("getOption",[st]),isTooltipHidden:"yes"===n(st)}})),t=e.isFavoritesResolving,n=e.isOptionResolving,r=e.isTooltipHidden,o=Object(j.useDispatch)(X.OPTIONS_STORE_NAME).updateOptions;return t||r||n||document.body.classList.contains("is-wc-nav-folded")?null:Object(b.createElement)(Ue,{delay:1e3,title:Object(ne.__)("Introducing favorites",'woocommerce'),content:Object(ne.__)("You can now favorite your extensions to pin them in the top level of the navigation.",'woocommerce'),closeButtonText:Object(ne.__)("Got it",'woocommerce'),id:"woocommerce-navigation-favorite-button",onClose:function(){return o(u()({},st,"yes"))},useAnchor:!0})},ft=function(e){var t=e.category,n=t.id,r=t.menuId,o=t.title,i="woocommerce-navigation-category-title";return["plugins","favorites"].includes(r)?Object(b.createElement)("span",{className:i},Object(b.createElement)("span",{className:"".concat(i,"__text")},o),Object(b.createElement)(ut,{id:n}),Object(b.createElement)(lt,null)):Object(b.createElement)("span",{className:i},o)},pt=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(ee.recordEvent)("navigation_click",{menu_item:e})};return r&&!t.isCategory?Object(b.createElement)(ge.NavigationItem,{key:t.id,item:t.id},Object(b.createElement)("div",{onClick:function(){return o(t.id)}},Object(b.createElement)(Z.WooNavigationItem.Slot,{name:t.id}))):Object(b.createElement)(ge.NavigationItem,{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})},dt=function(e){var t=e.category,n=e.onBackClick,r=e.pluginItems,o=e.primaryItems;if(!o.length&&!r.length)return null;var i=Object(te.applyFilters)("woocommerce_navigation_root_back_label",Object(ne.__)("WordPress Dashboard",'woocommerce')),a=Object(te.applyFilters)("woocommerce_navigation_root_back_url",window.wcNavigation.rootBackUrl),c="woocommerce"===t.id&&a;return Object(b.createElement)(ge.NavigationMenu,{title:Object(b.createElement)(ft,{category:t}),menu:t.id,parentMenu:t.parent,backButtonLabel:c?i:t.backButtonLabel||null,onBackButtonClick:c?function(){n("woocommerce"),window.location=a}:function(){return n(t.id)}},!!o.length&&Object(b.createElement)(ge.NavigationGroup,null,o.map((function(e){return Object(b.createElement)(pt,{key:e.id,item:e})}))),!!r.length&&Object(b.createElement)(ge.NavigationGroup,{title:"woocommerce"===t.id?Object(ne.__)("Extensions",'woocommerce'):null},r.map((function(e){return Object(b.createElement)(pt,{key:e.id,item:e})}))))},mt=function(e){var t=e.category,n=e.items,r=e.onBackClick;if(!n.length)return null;var o="woocommerce"===t.id;return Object(b.createElement)(ge.NavigationMenu,{className:"components-navigation__menu-secondary",title:!o&&Object(b.createElement)(ft,{category:t}),menu:t.id,parentMenu:t.parent,backButtonLabel:t.backButtonLabel||null,onBackButtonClick:o?null:function(){return r(t.id)}},Object(b.createElement)(ge.NavigationGroup,{onBackButtonClick:function(){return r(t.id)}},n.map((function(e){return Object(b.createElement)(pt,{key:e.id,item:e})}))))},ht=function(){var e=Object(j.useSelect)((function(e){return{menuItems:e(X.NAVIGATION_STORE_NAME).getMenuItems()}})).menuItems;Object(b.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 t=Object(b.useState)("woocommerce-home"),n=Ee()(t,2),r=n[0],o=n[1],i=Object(b.useState)("woocommerce"),a=Ee()(i,2),c=a[0],u=a[1];Object(b.useEffect)((function(){var t=nt(e);return t&&r!==t&&(o(t),u(t.parent)),Object(Z.addHistoryListener)((function(){setTimeout((function(){var t=nt(e);t&&(o(t),u(t.parent))}),0)}))}),[e]);var s=Object(X.useUser)().currentUserCan,l=Object(b.useMemo)((function(){return it(e,s)}),[e,s]),f=l.categories,p=l.items,d=Object(b.useRef)(null),m=function(e){Object(ee.recordEvent)("navigation_back_click",{category:e})},h="woocommerce"===c,v=ve()("woocommerce-navigation",{"is-root":h});return Object(b.createElement)("div",{className:v},Object(b.createElement)(ct,null),Object(b.createElement)("div",{className:"woocommerce-navigation__wrapper",ref:d},Object(b.createElement)(ge.Navigation,{activeItem:r?r.id:null,activeMenu:c,onActivateMenu:function(){d&&d.current&&(d.current.scrollTop=0),u.apply(void 0,arguments)}},Object.values(f).map((function(e){var t=p[e.id];return!!t&&[Object(b.createElement)(dt,{key:e.id,category:e,onBackClick:m,primaryItems:[].concat(Je()(t.primary),Je()(t.favorites)),pluginItems:t.plugins}),Object(b.createElement)(mt,{key:"secondary/".concat(e.id),category:e,onBackClick:m,items:t.secondary})]})))))},vt=Object(X.withNavigationHydration)(window.wcNavigation)((function(){return Object(b.createElement)(Z.NavSlotFillProvider,null,Object(b.createElement)(ht,null),Object(b.createElement)(Ke.PluginArea,null))}));function yt(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bt=function(){if(new URL(window.location.href).searchParams.get("task")){var e=Object(ne.__)("WooCommerce Home",'woocommerce'),t=function(){Object(ee.recordEvent)("topbar_back_button",{page_name:wt(window.title)}),Object(Z.updateQueryString)({},Object(Z.getHistory)().location.pathname,{})};return Object(b.createElement)(w.Tooltip,{text:e},Object(b.createElement)("div",{tabIndex:"0",role:"button","data-testid":"header-back-button",className:"woocommerce-layout__header-back-button",onKeyDown:function(e){var n=e.keyCode;n!==Oe.ENTER&&n!==Oe.SPACE||t()}},Object(b.createElement)(be.a,{icon:we.a,onClick:t})))}return null},wt=function(e){var t=new URL(window.location.href).searchParams.get("task");return{payments:Object(ne.__)("Set up payments",'woocommerce'),tax:Object(ne.__)("Add tax rates",'woocommerce'),appearance:Object(ne.__)("Personalize your store",'woocommerce'),products:Object(ne.__)("Add products",'woocommerce'),shipping:Object(ne.__)("Set up shipping costs",'woocommerce')}[t]||e},Ot=function(e){var t=e.sections,n=e.isEmbedded,r=void 0!==n&&n,o=e.query,i=Object(b.useRef)(null),c=Object(J.g)("siteTitle",""),u=t.slice(-1)[0],s=Ye(),l=Object(X.useUserPreferences)(),f=l.updateUserPreferences,p=a()(l,["updateUserPreferences"]),d="yes"===p.android_app_banner_dismissed,m=null,h=ve()("woocommerce-layout__header",{"is-scrolled":s});Object(b.useLayoutEffect)((function(){return v(),window.addEventListener("resize",v),function(){window.removeEventListener("resize",v);var e=document.querySelector("#wpbody");e&&(e.style.marginTop=null)}}),[d]);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(b.useEffect)((function(){if(!r){var e=t.map((function(e){return Array.isArray(e)?e[1]:e})).reverse().join(" &lsaquo; "),n=Object(ye.decodeEntities)(Object(ne.sprintf)(Object(ne.__)("%1$s &lsaquo; %2$s &#8212; WooCommerce",'woocommerce'),e,c));document.title!==n&&(document.title=n)}}),[r,t,c]);var y=function(){f({android_app_banner_dismissed:"yes"})},g=bt()?"with-back-button":"";return Object(b.createElement)("div",{className:h,ref:i},!d&&Object(b.createElement)(Qe,{onDismiss:y,onInstall:y}),Object(b.createElement)("div",{className:"woocommerce-layout__header-wrapper"},window.wcAdminFeatures.navigation&&Object(b.createElement)(vt,null),bt(),Object(b.createElement)(ge.Text,{className:"woocommerce-layout__header-heading ".concat(g),as:"h1",variant:"subtitle.small"},wt(Object(ye.decodeEntities)(u))),window.wcAdminFeatures["activity-panels"]&&Object(b.createElement)($e,{isEmbedded:r,query:o,userPreferencesData:gt(gt({},p),{},{updateUserPreferences:f})})))};function jt(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var Et=function(e){m()(n,e);var t=jt(n);function n(){return l()(this,n),t.apply(this,arguments)}return p()(n,[{key:"render",value:function(){return Object(b.createElement)("div",{id:"woocommerce-layout__notice-list",className:"woocommerce-layout__notice-list"})}}]),n}(b.Component),_t=n(67),xt=n.n(_t),St=n(6),kt=n.n(St),Pt=(n(461),n(318)),Ct=n(418);var At=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(O.useReducedMotion)(),l=Object(b.useState)((function(){return new WeakMap})),f=Ee()(l,1)[0],p=Object(Pt.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=xt()(kt.a.mark((function t(n){return kt.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=xt()(kt.a.mark((function e(t){return kt.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=ve()("components-snackbar-list",n);var d=function(e){return function(){a(e.id),u(e.id)}};return Object(b.createElement)("div",{className:n},r,p.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(b.createElement)(Pt.animated.div,{key:n,style:r},Object(b.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&f.set(t,e)}},Object(b.createElement)(Ct.a,o()({},Object(Q.omit)(t,["content"]),{onRemove:d(t)}),t.content)))})))};n(464);function Tt(e){var t=Object(j.useDispatch)("core/notices").removeNotice,n=Object(j.useDispatch)("core/notices2").removeNotice,r=Object(j.useSelect)((function(e){return{notices:e("core/notices").getNotices(),notices2:e("core/notices2").getNotices()}})),o=e.className,i=ve()("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(b.createElement)(At,{notices:a,className:i,onRemove:t,onRemove2:n})}Tt.propTypes={className:k.a.string,notices:k.a.array};var Rt=Tt;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 It(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}function Lt(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?Lt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}Object(Ke.registerPlugin)("wc-admin-navigation",{render:function(){var e=Object(j.useSelect)((function(e){return{persistedQuery:e(X.NAVIGATION_STORE_NAME).getPersistedQuery()}})).persistedQuery;if(!Object(oe.f)(window.location.href))return null;var t=Object(re.a)().filter((function(e){return e.navArgs})),n=de().filter((function(e){return e.navArgs})).map((function(e){return"/analytics/settings"===e.path?It(It({},e),{},{breadcrumbs:[Object(ne.__)("Analytics",'woocommerce')]}):e}));return Object(b.createElement)(b.Fragment,null,n.map((function(t){return Object(b.createElement)(Z.WooNavigationItem,{item:t.navArgs.id,key:t.navArgs.id},Object(b.createElement)(K.Link,{className:"components-button",href:Object(Z.getNewPath)(Object(Z.pathIsExcluded)(t.path)?{}:e,t.path,{}),type:"wc-admin"},t.breadcrumbs[t.breadcrumbs.length-1]))})),t.map((function(t){return Object(b.createElement)(Z.WooNavigationItem,{item:t.navArgs.id,key:t.navArgs.id},Object(b.createElement)(K.Link,{className:"components-button",href:Object(Z.getNewPath)(Object(Z.pathIsExcluded)(t.report)?{}:e,"/analytics/".concat(t.report),{}),type:"wc-admin"},t.title))})))}});var Dt=Object(b.lazy)((function(){return Promise.all([n.e(1),n.e(50)]).then(n.bind(null,756))})),Ft=Object(b.lazy)((function(){return n.e(54).then(n.bind(null,639))})),Vt=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.children;return Object(b.createElement)("div",{className:"woocommerce-layout__primary",id:"woocommerce-layout__primary"},window.wcAdminFeatures["store-alerts"]&&Object(b.createElement)(b.Suspense,{fallback:Object(b.createElement)(K.Spinner,null)},Object(b.createElement)(Dt,null)),Object(b.createElement)(Et,null),e)}}]),n}(b.Component),Bt=function(e){m()(n,e);var t=Ut(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(ee.recordPageView)(a,Mt({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(ee.recordPageView)(u,Mt({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(Y.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(b.createElement)(w.SlotFillProvider,null,Object(b.createElement)("div",{className:"woocommerce-layout"},Object(b.createElement)(Ot,{sections:Object(Q.isFunction)(c)?c(this.props):c,isEmbedded:t,query:u}),Object(b.createElement)(Rt,null),!t&&Object(b.createElement)(Vt,null,Object(b.createElement)("div",{className:"woocommerce-layout__main"},Object(b.createElement)(me,o()({},n,{query:u})))),t&&this.isWCPaySettingsPage()&&Object(b.createElement)(b.Suspense,{fallback:null},Object(b.createElement)(Ft,null))))}}]),n}(b.Component);Bt.propTypes={isEmbedded:k.a.bool,page:k.a.shape({container:k.a.oneOfType([k.a.func,k.a.object]),path:k.a.string,breadcrumbs:k.a.oneOfType([k.a.func,k.a.arrayOf(k.a.oneOfType([k.a.arrayOf(k.a.string),k.a.string]))]).isRequired,wpOpenMenu:k.a.string}).isRequired};var qt=Object(O.compose)(Object(X.withPluginsHydration)(Mt(Mt({},window.wcSettings.plugins||{}),{},{jetpackStatus:window.wcSettings.dataEndpoints&&window.wcSettings.dataEndpoints.jetpackStatus||!1})),Object(j.withSelect)((function(e,t){if(!t.isEmbedded){var n=e(X.PLUGINS_STORE_NAME),r=n.getActivePlugins,o=n.getInstalledPlugins,i=n.isJetpackConnected;return{activePlugins:r(),isJetpackConnected:i(),installedPlugins:o()}}})))(Bt),zt=Object(O.compose)(window.wcSettings.preloadOptions?Object(X.withOptionsHydration)(Mt({},window.wcSettings.preloadOptions)):Q.identity)((function(){var e=Object(X.useUser)().currentUserCan;return Object(b.createElement)(U,{history:Object(Z.getHistory)()},Object(b.createElement)(G,null,de().filter((function(t){return!t.capability||e(t.capability)})).map((function(e){return Object(b.createElement)(B,{key:e.path,path:e.path,exact:!0,render:function(t){return Object(b.createElement)(qt,o()({page:e},t))}})}))))})),Ht=Object(O.compose)(window.wcSettings.preloadOptions?Object(X.withOptionsHydration)(Mt({},window.wcSettings.preloadOptions)):Q.identity)((function(){return Object(b.createElement)(qt,{page:{breadcrumbs:Object(J.g)("embedBreadcrumbs",[])},isEmbedded:!0})}))},function(e,t,n){var r=n(25),o=n(27).f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(26),o=n(81),i=n(35),a=n(186),c=[].join,u=o!=Object,s=a("join",",");r({target:"Array",proto:!0,forced:u||!s},{join:function(e){return c.call(i(this),void 0===e?",":e)}})},function(e,t){e.exports=window.wc.number},function(e,t,n){"use strict";var r=n(26),o=n(23),i=n(130),a=n(102),c=n(43),u=n(35),s=n(121),l=n(18),f=n(129)("slice"),p=l("species"),d=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var n,r,l,f=u(this),h=c(f.length),v=a(e,h),y=a(void 0===t?h:t,h);if(i(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[p])&&(n=void 0):n=void 0,n===Array||void 0===n))return d.call(f,v,y);for(r=new(void 0===n?Array:n)(m(y-v,0)),l=0;v<y;v++,l++)v in f&&s(r,l,f[v]);return r.length=l,r}})},function(e,t,n){var r=n(40),o="["+n(281)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),c=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){var r=n(26),o=n(222);r({target:"Array",stat:!0,forced:!n(166)((function(e){Array.from(e)}))},{from:o})},,function(e,t){e.exports=window.wc.explat},function(e,t,n){var r=n(200);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(18)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},,function(e,t,n){"use strict";n(134);var r,o=n(26),i=n(25),a=n(243),c=n(8),u=n(106),s=n(37),l=n(135),f=n(22),p=n(221),d=n(222),m=n(140).codeAt,h=n(296),v=n(91),y=n(297),g=n(50),b=c.URL,w=y.URLSearchParams,O=y.getState,j=g.set,E=g.getterFor("URL"),_=Math.floor,x=Math.pow,S=/[A-Za-z]/,k=/[\d+-.A-Za-z]/,P=/\d/,C=/^(0x|0X)/,A=/^[0-7]+$/,T=/^\d+$/,R=/^[\dA-Fa-f]+$/,N=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,I=/[\u0000\t\u000A\u000D #/:?@[\\]]/,L=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\t\u000A\u000D]/g,U=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=F(t.slice(1,-1))))return"Invalid host";e.host=n}else if(G(e)){if(t=h(t),N.test(t))return"Invalid host";if(null===(n=D(t)))return"Invalid host";e.host=n}else{if(I.test(t))return"Invalid host";for(n="",r=d(t),o=0;o<r.length;o++)n+=$(r[o],B);e.host=n}},D=function(e){var t,n,r,o,i,a,c,u=e.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(t=u.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=u[r]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=C.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?T:8==i?A:R).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=x(256,5-t))return null}else if(a>255)return null;for(c=n.pop(),r=0;r<n.length;r++)c+=n[r]*x(256,3-r);return c},F=function(e){var t,n,r,o,i,a,c,u=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,p=function(){return e.charAt(f)};if(":"==p()){if(":"!=e.charAt(1))return;f+=2,l=++s}for(;p();){if(8==s)return;if(":"!=p()){for(t=n=0;n<4&&R.test(p());)t=16*t+parseInt(p(),16),f++,n++;if("."==p()){if(0==n)return;if(f-=n,s>6)return;for(r=0;p();){if(o=null,r>0){if(!("."==p()&&r<4))return;f++}if(!P.test(p()))return;for(;P.test(p());){if(i=parseInt(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}u[s]=256*u[s]+o,2!=++r&&4!=r||s++}if(4!=r)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;u[s++]=t}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(a=s-l,s=7;0!=s&&a>0;)c=u[s],u[s--]=u[l+a-1],u[l+--a]=c;else if(8!=s)return;return u},V=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=_(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},B={},q=p({},B,{" ":1,'"':1,"<":1,">":1,"`":1}),z=p({},q,{"#":1,"?":1,"{":1,"}":1}),H=p({},z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),$=function(e,t){var n=m(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},W={ftp:21,file:null,http:80,https:443,ws:80,wss:443},G=function(e){return f(W,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},Y=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},K=function(e,t){var n;return 2==e.length&&S.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},Z=function(e){var t;return e.length>1&&K(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},J=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&K(t[0],!0)||t.pop()},X=function(e){return"."===e||"%2e"===e.toLowerCase()},ee={},te={},ne={},re={},oe={},ie={},ae={},ce={},ue={},se={},le={},fe={},pe={},de={},me={},he={},ve={},ye={},ge={},be={},we={},Oe=function(e,t,n,o){var i,a,c,u,s,l=n||ee,p=0,m="",h=!1,v=!1,y=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(L,"")),t=t.replace(M,""),i=d(t);p<=i.length;){switch(a=i[p],l){case ee:if(!a||!S.test(a)){if(n)return"Invalid scheme";l=ne;continue}m+=a.toLowerCase(),l=te;break;case te:if(a&&(k.test(a)||"+"==a||"-"==a||"."==a))m+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";m="",l=ne,p=0;continue}if(n&&(G(e)!=f(W,m)||"file"==m&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=m,n)return void(G(e)&&W[e.scheme]==e.port&&(e.port=null));m="","file"==e.scheme?l=de:G(e)&&o&&o.scheme==e.scheme?l=re:G(e)?l=ce:"/"==i[p+1]?(l=oe,p++):(e.cannotBeABaseURL=!0,e.path.push(""),l=ge)}break;case ne:if(!o||o.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,l=we;break}l="file"==o.scheme?de:ie;continue;case re:if("/"!=a||"/"!=i[p+1]){l=ie;continue}l=ue,p++;break;case oe:if("/"==a){l=se;break}l=ye;continue;case ie:if(e.scheme=o.scheme,a==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&G(e))l=ae;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",l=be;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),l=ye;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=we}break;case ae:if(!G(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,l=ye;continue}l=se}else l=ue;break;case ce:if(l=ue,"/"!=a||"/"!=m.charAt(p+1))continue;p++;break;case ue:if("/"!=a&&"\\"!=a){l=se;continue}break;case se:if("@"==a){h&&(m="%40"+m),h=!0,c=d(m);for(var g=0;g<c.length;g++){var b=c[g];if(":"!=b||y){var w=$(b,H);y?e.password+=w:e.username+=w}else y=!0}m=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(e)){if(h&&""==m)return"Invalid authority";p-=d(m).length+1,m="",l=le}else m+=a;break;case le:case fe:if(n&&"file"==e.scheme){l=he;continue}if(":"!=a||v){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(e)){if(G(e)&&""==m)return"Invalid host";if(n&&""==m&&(Q(e)||null!==e.port))return;if(u=U(e,m))return u;if(m="",l=ve,n)return;continue}"["==a?v=!0:"]"==a&&(v=!1),m+=a}else{if(""==m)return"Invalid host";if(u=U(e,m))return u;if(m="",l=pe,n==fe)return}break;case pe:if(!P.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(e)||n){if(""!=m){var O=parseInt(m,10);if(O>65535)return"Invalid port";e.port=G(e)&&O===W[e.scheme]?null:O,m=""}if(n)return;l=ve;continue}return"Invalid port"}m+=a;break;case de:if(e.scheme="file","/"==a||"\\"==a)l=me;else{if(!o||"file"!=o.scheme){l=ye;continue}if(a==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",l=be;else{if("#"!=a){Z(i.slice(p).join(""))||(e.host=o.host,e.path=o.path.slice(),J(e)),l=ye;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=we}}break;case me:if("/"==a||"\\"==a){l=he;break}o&&"file"==o.scheme&&!Z(i.slice(p).join(""))&&(K(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),l=ye;continue;case he:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&K(m))l=ye;else if(""==m){if(e.host="",n)return;l=ve}else{if(u=U(e,m))return u;if("localhost"==e.host&&(e.host=""),n)return;m="",l=ve}continue}m+=a;break;case ve:if(G(e)){if(l=ye,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(l=ye,"/"!=a))continue}else e.fragment="",l=we;else e.query="",l=be;break;case ye:if(a==r||"/"==a||"\\"==a&&G(e)||!n&&("?"==a||"#"==a)){if(".."===(s=(s=m).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(J(e),"/"==a||"\\"==a&&G(e)||e.path.push("")):X(m)?"/"==a||"\\"==a&&G(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&K(m)&&(e.host&&(e.host=""),m=m.charAt(0)+":"),e.path.push(m)),m="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",l=be):"#"==a&&(e.fragment="",l=we)}else m+=$(a,z);break;case ge:"?"==a?(e.query="",l=be):"#"==a?(e.fragment="",l=we):a!=r&&(e.path[0]+=$(a,B));break;case be:n||"#"!=a?a!=r&&("'"==a&&G(e)?e.query+="%27":e.query+="#"==a?"%23":$(a,B)):(e.fragment="",l=we);break;case we:a!=r&&(e.fragment+=$(a,q))}p++}},je=function(e){var t,n,r=l(this,je,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),c=j(r,{type:"URL"});if(void 0!==o)if(o instanceof je)t=E(o);else if(n=Oe(t={},String(o)))throw TypeError(n);if(n=Oe(c,a,null,t))throw TypeError(n);var u=c.searchParams=new w,s=O(u);s.updateSearchParams(c.query),s.updateURL=function(){c.query=String(u)||null},i||(r.href=_e.call(r),r.origin=xe.call(r),r.protocol=Se.call(r),r.username=ke.call(r),r.password=Pe.call(r),r.host=Ce.call(r),r.hostname=Ae.call(r),r.port=Te.call(r),r.pathname=Re.call(r),r.search=Ne.call(r),r.searchParams=Ie.call(r),r.hash=Le.call(r))},Ee=je.prototype,_e=function(){var e=E(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,c=e.query,u=e.fragment,s=t+":";return null!==o?(s+="//",Q(e)&&(s+=n+(r?":"+r:"")+"@"),s+=V(o),null!==i&&(s+=":"+i)):"file"==t&&(s+="//"),s+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(s+="?"+c),null!==u&&(s+="#"+u),s},xe=function(){var e=E(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&G(e)?t+"://"+V(e.host)+(null!==n?":"+n:""):"null"},Se=function(){return E(this).scheme+":"},ke=function(){return E(this).username},Pe=function(){return E(this).password},Ce=function(){var e=E(this),t=e.host,n=e.port;return null===t?"":null===n?V(t):V(t)+":"+n},Ae=function(){var e=E(this).host;return null===e?"":V(e)},Te=function(){var e=E(this).port;return null===e?"":String(e)},Re=function(){var e=E(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ne=function(){var e=E(this).query;return e?"?"+e:""},Ie=function(){return E(this).searchParams},Le=function(){var e=E(this).fragment;return e?"#"+e:""},Me=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&u(Ee,{href:Me(_e,(function(e){var t=E(this),n=String(e),r=Oe(t,n);if(r)throw TypeError(r);O(t.searchParams).updateSearchParams(t.query)})),origin:Me(xe),protocol:Me(Se,(function(e){var t=E(this);Oe(t,String(e)+":",ee)})),username:Me(ke,(function(e){var t=E(this),n=d(String(e));if(!Y(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=$(n[r],H)}})),password:Me(Pe,(function(e){var t=E(this),n=d(String(e));if(!Y(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=$(n[r],H)}})),host:Me(Ce,(function(e){var t=E(this);t.cannotBeABaseURL||Oe(t,String(e),le)})),hostname:Me(Ae,(function(e){var t=E(this);t.cannotBeABaseURL||Oe(t,String(e),fe)})),port:Me(Te,(function(e){var t=E(this);Y(t)||(""==(e=String(e))?t.port=null:Oe(t,e,pe))})),pathname:Me(Re,(function(e){var t=E(this);t.cannotBeABaseURL||(t.path=[],Oe(t,e+"",ve))})),search:Me(Ne,(function(e){var t=E(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Oe(t,e,be)),O(t.searchParams).updateSearchParams(t.query)})),searchParams:Me(Ie),hash:Me(Le,(function(e){var t=E(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Oe(t,e,we)):t.fragment=null}))}),s(Ee,"toJSON",(function(){return _e.call(this)}),{enumerable:!0}),s(Ee,"toString",(function(){return _e.call(this)}),{enumerable:!0}),b){var Ue=b.createObjectURL,De=b.revokeObjectURL;Ue&&s(je,"createObjectURL",(function(e){return Ue.apply(b,arguments)})),De&&s(je,"revokeObjectURL",(function(e){return De.apply(b,arguments)}))}v(je,"URL"),o({global:!0,forced:!a,sham:!i},{URL:je})},function(e,t,n){var r=n(26),o=n(221);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},,,,,function(e,t){e.exports=window.wp.notices},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",a=Math.floor,c=String.fromCharCode,u=function(e){return e+22+75*(e<26)},s=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},l=function(e){var t,n,r=[],o=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e)).length,l=128,f=0,p=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(c(n));var d=r.length,m=d;for(d&&r.push("-");m<o;){var h=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=l&&n<h&&(h=n);var v=m+1;if(h-l>a((2147483647-f)/v))throw RangeError(i);for(f+=(h-l)*v,l=h,t=0;t<e.length;t++){if((n=e[t])<l&&++f>2147483647)throw RangeError(i);if(n==l){for(var y=f,g=36;;g+=36){var b=g<=p?1:g>=p+26?26:g-p;if(y<b)break;var w=y-b,O=36-b;r.push(c(u(b+w%O))),y=a(w/O)}r.push(c(u(y))),p=s(f,v,m==d),f=0,++m}}++f,++l}return r.join("")};e.exports=function(e){var t,n,i=[],a=e.toLowerCase().replace(o,".").split(".");for(t=0;t<a.length;t++)n=a[t],i.push(r.test(n)?"xn--"+l(n):n);return i.join(".")}},function(e,t,n){"use strict";n(119);var r=n(26),o=n(36),i=n(243),a=n(37),c=n(155),u=n(91),s=n(187),l=n(50),f=n(135),p=n(22),d=n(95),m=n(113),h=n(19),v=n(23),y=n(69),g=n(46),b=n(298),w=n(133),O=n(18),j=o("fetch"),E=o("Headers"),_=O("iterator"),x=l.set,S=l.getterFor("URLSearchParams"),k=l.getterFor("URLSearchParamsIterator"),P=/\+/g,C=Array(4),A=function(e){return C[e-1]||(C[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},T=function(e){try{return decodeURIComponent(e)}catch(t){return e}},R=function(e){var t=e.replace(P," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(A(n--),T);return t}},N=/[!'()~]|%20/g,I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},L=function(e){return I[e]},M=function(e){return encodeURIComponent(e).replace(N,L)},U=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),e.push({key:R(r.shift()),value:R(r.join("="))}))},D=function(e){this.entries.length=0,U(this.entries,e)},F=function(e,t){if(e<t)throw TypeError("Not enough arguments")},V=s((function(e,t){x(this,{type:"URLSearchParamsIterator",iterator:b(S(e).entries),kind:t})}),"Iterator",(function(){var e=k(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),B=function(){f(this,B,"URLSearchParams");var e,t,n,r,o,i,a,c,u,s=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(x(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:D}),void 0!==s)if(v(s))if("function"==typeof(e=w(s)))for(n=(t=e.call(s)).next;!(r=n.call(t)).done;){if((a=(i=(o=b(h(r.value))).next).call(o)).done||(c=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:c.value+""})}else for(u in s)p(s,u)&&d.push({key:u,value:s[u]+""});else U(d,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},q=B.prototype;c(q,{append:function(e,t){F(arguments.length,2);var n=S(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){F(arguments.length,1);for(var t=S(this),n=t.entries,r=e+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){F(arguments.length,1);for(var t=S(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){F(arguments.length,1);for(var t=S(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){F(arguments.length,1);for(var t=S(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){F(arguments.length,1);for(var n,r=S(this),o=r.entries,i=!1,a=e+"",c=t+"",u=0;u<o.length;u++)(n=o[u]).key===a&&(i?o.splice(u--,1):(i=!0,n.value=c));i||o.push({key:a,value:c}),r.updateURL()},sort:function(){var e,t,n,r=S(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(e=i[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=S(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new V(this,"keys")},values:function(){return new V(this,"values")},entries:function(){return new V(this,"entries")}},{enumerable:!0}),a(q,_,q.entries),a(q,"toString",(function(){for(var e,t=S(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(M(e.key)+"="+M(e.value));return n.join("&")}),{enumerable:!0}),u(B,"URLSearchParams"),r({global:!0,forced:!i},{URLSearchParams:B}),i||"function"!=typeof j||"function"!=typeof E||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,o=[e];return arguments.length>1&&(v(t=arguments[1])&&(n=t.body,"URLSearchParams"===m(n)&&((r=t.headers?new E(t.headers):new E).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=y(t,{body:g(0,String(n)),headers:g(0,r)}))),o.push(t)),j.apply(this,o)}}),e.exports={URLSearchParams:B,getState:S}},function(e,t,n){var r=n(19),o=n(133);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},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}},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,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=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 y: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=y,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)===y},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===y||e.$$typeof===v||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===b||e.$$typeof===w||e.$$typeof===O||e.$$typeof===g)},t.typeOf=j},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(39)),i=r(n(199)),a=n(11),c=r(a),u=r(n(463)),s=r(n(10)),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,y,g=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}return u(t,e),t}(g),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 g&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}u(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof g)&&(t[n]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(g);function O(e,t){v={fn:e,transform:t}}function j(e){y=e}var E,_=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},x=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){E=e}var k,P=function(){return Date.now()};function C(e){k=e}var A,T,R=function(e){return e.current};function N(e){A=e}var I=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:O,get colorNames(){return y},injectColorNames:j,get requestFrame(){return _},get cancelFrame(){return x},injectFrame:function(e,t){_=e,x=t},get interpolation(){return E},injectStringInterpolator:S,get now(){return P},injectNow:function(e){P=e},get defaultElement(){return k},injectDefaultElement:C,get animatedApi(){return R},injectAnimatedApi:function(e){R=e},get createAnimatedStyle(){return A},injectCreateAnimatedStyle:N,get manualFrameloop(){return T},injectManualFrameloop:function(e){T=e}}),L=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:A(t.style)}):t,r.update=n,r.attach(),r}return u(t,e),t}(w),M=!1,U=new Set,D=function e(){if(!M)return!1;var t=P(),n=U,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,y=h instanceof g,b=Array.isArray(s.initialVelocity)?s.initialVelocity[p]:s.initialVelocity;if(y&&(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+b/(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,b=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*(b+=1*((-s.tension*(v-h)+-s.friction*b)/s.mass)/1e3)/1e3}var j=!(!s.clamp||0===s.tension)&&(m<h?v>h:v<h),E=Math.abs(b)<=s.precision,x=0===s.tension||Math.abs(h-v)<=s.precision;l=j||E&&x,d.lastVelocity=b,d.lastTime=t}y&&!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||(U.delete(a),a.stop(!0))}return U.size?T?T():_(e):M=!1,M};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 V=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof b&&!(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}(b);var B=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}u(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new V(this,e,t,n)},t}(g),q=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new B(e)})),n}u(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(b),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,U.has(t)||U.add(t),M||(M=!0,_(T||D));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,U.has(t)&&U.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,g=n.immediate;if(f){var b=[c,i];i=b[0],c=b[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)&&!y[a],h=l.arr(a),b=!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 x,S=c.parent,k=c.interpolation,C=d(w?j.getPayload():j),A=a;b&&(A=E({range:[0,1],output:[a,a]})(1));var T,R=k&&k.getValue(),N=!l.und(S)&&c.animatedValues.some((function(e){return!e.done})),I=!l.equ(A,R),L=!l.equ(A,c.previous),M=!l.equ(_,c.config);if(v||L&&I||M){var U;if(u||f)S=k=c.parent||new B(O);else if(h)S=k=c.parent||new q(O);else if(b){var D=c.interpolation&&c.interpolation.calc(c.parent.value);D=void 0===D||v?O:D,c.parent?(S=c.parent).setValue(0,!1):S=new B(0);var F={output:[D,a]};c.interpolation?(k=c.interpolation,c.interpolation.updateConfig(F)):k=S.interpolate(F)}return C=d(w?j.getPayload():j),x=d(S.getPayload()),v&&!b&&S.setValue(O,!1),t.hasChanged=!0,x.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=N?e.lastVelocity:void 0,e.lastTime=N?e.lastTime:void 0,e.startTime=P(),e.done=!1,e.animatedStyles.clear()})),m(g,r)&&S.setValue(b?j:a,!1),o({},e,((U={})[r]=o({},c,{name:r,parent:S,interpolation:k,animatedValues:x,toValues:C,previous:A,config:_,fromValues:d(S.getValue()),immediate:m(g,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}),U))}return I?e:(b&&(S.setValue(1,!1),k.updateConfig({output:[A,A]})),S.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,G=function(e,t){return("function"==typeof t?e.map(t):d(t)).map(String)},Q=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,a=i(e,["items","keys"]);return t=d(void 0!==t?t:null),o({items:t,keys:G(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 K=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=v.transform(t)),n.payload=t,n}return u(t,e),t}(w),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},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:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|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,ye=new RegExp("("+Object.keys(Z).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","Ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return be.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var Oe={};N((function(e){return new K(e)})),C("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ve,me)})).map((function(e){return e.replace(ye,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(Z),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 L(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 R(p,u,r)})),d(t);var m,h=s.current.getValue(),y=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),g=(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({},y,{ref:g}))}))},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)}),xe=_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=D,t.animated=xe,t.a=xe,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=I,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=Q(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,y=c.onStart,g=c.ref,b=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=Q(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,y=void 0===v?0:v,g=c.unique,b=c.config,w=c.order,O=void 0===w?["enter","leave","update"]:w,j=Q(r),E=j.keys,_=j.items,x=o({},a.current),S=[].concat(a.deleted),k=Object.keys(x),P=new Set(k),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})),R=s.filter((function(e){return P.has(e)})),N=-y;for(;O.length;){switch(O.shift()){case"enter":A.forEach((function(e,t){g&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=u[r],i=n&&void 0!==l?"initial":"enter";x[e]={slot:i,originalKey:e,key:g?String(e):W++,item:o,trail:N+=y,config:m(b,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];S.unshift(o({},x[e],{slot:"leave",destroyed:!0,left:E[Math.max(0,t-1)],right:E[Math.min(E.length,t+1)],trail:N+=y,config:m(b,n,"leave"),to:m(d,n)})),delete x[e]}));break;case"update":R.forEach((function(e){var t=s.indexOf(e),n=u[t];x[e]=o({},x[e],{item:n,slot:"update",trail:N+=y,config:m(b,n,"update"),to:m(h,n)})}))}}var I=s.map((function(e){return x[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=I.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),I=[].concat(I.slice(0,t),[r],I.slice(t))})),o({},a,{changed:A.length||T.length||R.length,first:n&&0===A.length,transitions:I,current:x,deleted:S,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({},b,{to:r,from:n,config:i,ref:g,onRest:function(n){j.current.mounted&&(e.destroyed&&(g||s||Y(j,c),d&&d(u)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&j.current.deleted.length>0&&Y(j),v&&v(u,t,n))},onStart:y&&function(){return y(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=$},function(e,t,n){"use strict";(function(e){var r=n(11),o=n.n(r),i=n(96),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(88))},function(e,t,n){var r=n(465);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],y=n[4],g=n[5],b=n[6],w=n[7];c&&(r.push(c),c="");var O=null!=h&&null!=m&&m!==h,j="+"===b||"*"===b,E="?"===b||"*"===b,_=n[2]||l,x=y||g;r.push({name:v||i++,prefix:h||"",delimiter:_,optional:E,repeat:j,partial:O,asterisk:!!w,pattern:x?s(x):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)}},,function(e,t,n){"use strict";var r=n(26),o=n(116).find,i=n(120),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(26),o=n(8),i=n(82),a=n(37),c=n(260),u=n(180),s=n(135),l=n(23),f=n(12),p=n(166),d=n(91),m=n(223);e.exports=function(e,t,n){var h=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),y=h?"set":"add",g=o[e],b=g&&g.prototype,w=g,O={},j=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof g||!(v||b.forEach&&!f((function(){(new g).entries().next()})))))w=n.getConstructor(t,e,h,y),c.REQUIRED=!0;else if(i(e,!0)){var E=new w,_=E[y](v?{}:-0,1)!=E,x=f((function(){E.has(1)})),S=p((function(e){new g(e)})),k=!v&&f((function(){for(var e=new g,t=5;t--;)e[y](t,t);return!e.has(-0)}));S||((w=t((function(t,n){s(t,w,e);var r=m(new g,t,w);return null!=n&&u(n,r[y],{that:r,AS_ENTRIES:h}),r}))).prototype=b,b.constructor=w),(x||k)&&(j("delete"),j("has"),h&&j("get")),(k||_)&&j(y),v&&b.clear&&delete b.clear}return O[e]=w,r({global:!0,forced:w!=g},O),d(w,e),v||n.setStrong(w,e,h),w}},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}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m}));var r=n(0),o=n(5),i=n(15),a=n(2),c=n(33),u=n(44),s=function(){return Object(r.createElement)(r.Fragment,null,Object(r.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(r.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(r.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(r.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(r.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(a.__)("Display",'woocommerce'))},l=Object(o.createSlotFill)("DisplayOptions"),f=l.Fill,p=l.Slot;f.Slot=p;var d=[{value:"single_column",label:Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.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(r.createElement)("rect",{x:"0.5",y:"0.5",width:"11",height:"13",strokeWidth:"1"}))}),null),Object(a.__)("Single column",'woocommerce'))},{value:"two_columns",label:Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.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(r.createElement)("rect",{x:"0.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}),Object(r.createElement)("rect",{x:"9.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}))}),null),Object(a.__)("Two columns",'woocommerce'))}],m=function(){var e=Object(i.useSelect)((function(e){return{defaultHomescreenLayout:(0,e(c.OPTIONS_STORE_NAME).getOption)("woocommerce_default_homepage_layout")||"single_column"}})).defaultHomescreenLayout,t=Object(c.useUserPreferences)(),n=t.updateUserPreferences,l=t.homepage_layout;return Object(r.createElement)(p,null,(function(t){return Object(r.createElement)(o.DropdownMenu,{icon:Object(r.createElement)(s,null),label:Object(a.__)("Display options",'woocommerce'),toggleProps:{className:"woocommerce-layout__activity-panel-tab display-options",onClick:function(){return Object(u.recordEvent)("homescreen_display_click")}},popoverProps:{className:"woocommerce-layout__activity-panel-popover"}},(function(i){var c=i.onClose;return Object(r.createElement)(r.Fragment,null,t,Object(r.createElement)(o.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",label:Object(a.__)("Layout",'woocommerce')},Object(r.createElement)(o.MenuItemsChoice,{choices:d,onSelect:function(e){n({homepage_layout:e}),c(),Object(u.recordEvent)("homescreen_display_option",{display_option:e})},value:l||e})))}))}))}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(100);var 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=function(e,t){if(null==e)return{};var n,r,i=Object(o.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(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){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:c,height:c},u))}},function(e,t,n){"use strict";(function(e){var r=n(0),o=(n(117),n(3)),i=n(9),a=n.n(i),c=n(419),u=n(2),s=(n(420),n(5));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,y=t.onRemove,g=void 0===y?o.noop:y,b=t.icon,w=void 0===b?null:b,O=t.explicitDismiss,j=void 0!==O&&O,E=t.onDismiss,_=void 0===E?null:E;function x(e){e&&e.preventDefault&&e.preventDefault(),_(),g()}_=_||o.noop,function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.speak)(n,t)}),[n,t])}(p,m),Object(r.useEffect)((function(){var e=setTimeout((function(){j||(_(),g())}),1e4);return function(){return clearTimeout(e)}}),[j,_,g]);var S=a()(i,"components-snackbar",{"components-snackbar-explicit-dismiss":!!j});v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]);var k=a()("components-snackbar__content",{"components-snackbar__content-with-icon":!!w});return Object(r.createElement)("div",{ref:n,className:S,onClick:j?o.noop:x,tabIndex:"0",role:j?"":"button",onKeyPress:j?o.noop:x,"aria-label":j?"":Object(u.__)("Dismiss this notice")},Object(r.createElement)("div",{className:k},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(),g(),t&&t(e)}(e,o)},className:"components-snackbar__action"},n)})),j&&Object(r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:x,onKeyPress:x},"✕")))}))}).call(this,n(299))},function(e,t){e.exports=window.wp.a11y},function(e,t){e.exports=window.wp.warning},function(e,t){e.exports=window.wc.customerEffortScore},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));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})),n.d(r,"addCesSurveyForCustomerSearch",(function(){return R}));var o={};n.r(o),n.d(o,"getCesSurveyQueue",(function(){return M}));var i={};n.r(i),n.d(i,"getCesSurveyQueue",(function(){return U}));n(83),n(126),n(132),n(151),n(127),n(152);var a=n(29),c=n.n(a),u=n(4),s=n.n(u),l=n(30),f=n.n(l),p=n(0),d=(n(128),n(1)),m=n.n(d),h=n(44),v=n(421),y=n.n(v),g=n(34),b=n(15),w=n(33),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'):o,a=e.cesShownForActions,u=e.allowTracking,l=e.resolving,d=e.storeAgeInWeeks,m=e.updateOptions,v=e.createNotice,g=Object(p.useState)(!1),b=f()(g,2),w=b[0],j=b[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)(y.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')},"✏️")})}_.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 x=Object(g.compose)(Object(b.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(b.withDispatch)((function(e){return{updateOptions:e(w.OPTIONS_STORE_NAME).updateOptions,createNotice:e("core/notices").createNotice}})))(_),S=(n(117),n(184)),k=n(24),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,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return{type:P.ADD_CES_SURVEY,action:e,label:t,pageNow:n,adminPage:r,onsubmit_label:o,props:i}}function T(){return A("analytics_filtered",Object(O.__)("How easy was it to filter your store analytics?",'woocommerce'),"woocommerce_page_wc-admin","woocommerce_page_wc-admin")}function R(){return A("ces_search",Object(O.__)("How easy was it to use search?",'woocommerce'),"woocommerce_page_wc-admin","woocommerce_page_wc-admin",void 0,{search_area:"customer"})}var N=n(6),I=n.n(N),L=I.a.mark(M);function M(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(k.apiFetch)({path:"".concat(S.a,"/options?options=").concat(S.b)});case 2:if(!(e=t.sent)){t.next=8;break}return t.next=6,C(e[S.b]||[]);case 6:t.next=9;break;case 8:throw new Error;case 9:case"end":return t.stop()}}),L)}function U(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 F(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 V={queue:[]},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case P.SET_CES_SURVEY_QUEUE:return F(F({},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,props:t.props};return F(F({},e),{},{queue:[].concat(c()(e.queue),[r])});default:return e}};Object(b.registerStore)(S.c,{actions:r,selectors:i,resolvers:o,controls:k.controls,reducer:B});function q(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)(x,{key:t,action:e.action,label:e.label,onSubmitLabel:e.onsubmit_label,trackProps:e.props||{}})})))}q.propTypes={queue:m.a.arrayOf(m.a.object),resolving:m.a.bool,clearQueue:m.a.func};var z=Object(g.compose)(Object(b.withSelect)((function(e){var t=e(S.c),n=t.getCesSurveyQueue,r=t.isResolving;return{queue:n(),resolving:r("getOption",[S.b])}})),Object(b.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}})}}})))(q)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(39),o=n.n(r),i=n(0),a=(n(118),n(253),n(117),n(101)),c=n(104),u=(n(119),n(115),n(158),n(134),n(153),Object(i.lazy)((function(){return n.e(47).then(n.bind(null,748))})));n(466);var s=[function(e){var t=e.page,n=e.tab,r=e.section;return"wc-settings"!==t||"checkout"!==n||r?null:Object(i.createElement)(i.Suspense,{fallback:null},Object(i.createElement)(u,null))}],l=function(){var e=Object(c.parse)(location.search.substring(1)),t={page:"",tab:""};void 0!==e.page&&(t=e);var n=Object(a.applyFilters)("woocommerce_admin_embedded_layout_components",s,t);return Object(i.createElement)("div",{className:"woocommerce-embedded-layout__primary",id:"woocommerce-embedded-layout__primary"},n.map((function(e,n){return Object(i.createElement)(e,o()({key:n},t))})))}},,,,function(e,t,n){var r=n(26),o=n(437).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){"use strict";var r=n(335),o=n(451);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){var r=n(25),o=n(63),i=n(35),a=n(84).f,c=function(e){return function(t){for(var n,c=i(t),u=o(c),s=u.length,l=0,f=[];s>l;)n=u[l++],r&&!a.call(c,n)||f.push(e?[n,c[n]]:c[n]);return f}};e.exports={entries:c(!0),values:c(!1)}},,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(0),r=(n(294),n(33)),o=(n(447),n(275)),i=n(430),a=n(431);n.p=e.wcAdminAssets.path;var c,u=document.getElementById("root"),s=document.getElementById("woocommerce-embedded-root"),l=window.wcSettings.currentUserData;if(u){var f=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.b);window.wcSettings.preloadSettings&&window.wcSettings.preloadSettings.general&&(f=Object(r.withSettingsHydration)("general",{general:window.wcSettings.preloadSettings.general})(f)),l&&(f=Object(r.withCurrentUserHydration)(l)(f)),Object(t.render)(Object(t.createElement)(f,null),u)}else if(s){var p=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.a);l&&(p=Object(r.withCurrentUserHydration)(l)(p)),Object(t.render)(Object(t.createElement)(p,null),s),s.classList.remove("is-embed-loading");var d=document.getElementById("wpbody-content"),m=d.querySelector(".wrap.woocommerce")||d.querySelector('[class="wrap"]'),h=document.createElement("div");Object(t.render)(Object(t.createElement)("div",{className:"woocommerce-layout"},Object(t.createElement)(o.c,null)),d.insertBefore(h,m));var v=document.createElement("div");Object(t.render)(Object(t.createElement)(a.a,null),d.insertBefore(v,m.nextSibling))}window.wcAdminFeatures&&!0===window.wcAdminFeatures["customer-effort-score-tracks"]&&(c=u||s,Object(t.render)(Object(t.createElement)(i.a,null),c.insertBefore(document.createElement("div"),null)))}.call(this,n(88))},,function(e,t,n){},function(e,t){e.exports=window.wc.notices},function(e,t,n){},function(e,t,n){var r=n(12);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(27).f,o=n(69),i=n(155),a=n(95),c=n(135),u=n(180),s=n(178),l=n(163),f=n(25),p=n(260).fastKey,d=n(50),m=d.set,h=d.getterFor;e.exports={getConstructor:function(e,t,n,s){var l=e((function(e,r){c(e,l,t),m(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[s],{that:e,AS_ENTRIES:n})})),d=h(t),v=function(e,t,n){var r,o,i=d(e),a=y(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},y=function(e,t){var n,r=d(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(l.prototype,{clear:function(){for(var e=d(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=d(this),n=y(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=d(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(l.prototype,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=h(t),i=h(r);s(e,t,(function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){n(26)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=i},function(e,t,n){"use strict";var r,o=n(8),i=n(155),a=n(260),c=n(335),u=n(462),s=n(23),l=n(50).enforce,f=n(110),p=!o.ActiveXObject&&"ActiveXObject"in o,d=Object.isExtensible,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},h=e.exports=c("WeakMap",m,u);if(f&&p){r=u.getConstructor(m,"WeakMap",!0),a.REQUIRED=!0;var v=h.prototype,y=v.delete,g=v.has,b=v.get,w=v.set;i(v,{delete:function(e){if(s(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.delete(e)}return y.call(this,e)},has:function(e){if(s(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen.has(e)}return g.call(this,e)},get:function(e){if(s(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),g.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(s(e)&&!d(e)){var n=l(this);n.frozen||(n.frozen=new r),g.call(this,e)?w.call(this,e,t):n.frozen.set(e,t)}else w.call(this,e,t);return this}})}},function(e,t,n){"use strict";var r=n(155),o=n(260).getWeakData,i=n(19),a=n(23),c=n(135),u=n(180),s=n(116),l=n(22),f=n(50),p=f.set,d=f.getterFor,m=s.find,h=s.findIndex,v=0,y=function(e){return e.frozen||(e.frozen=new g)},g=function(){this.entries=[]},b=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=h(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,s){var f=e((function(e,r){c(e,f,t),p(e,{type:t,id:v++,frozen:void 0}),null!=r&&u(r,e[s],{that:e,AS_ENTRIES:n})})),m=d(t),h=function(e,t,n){var r=m(e),a=o(i(t),!0);return!0===a?y(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=m(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).has(e):n&&l(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=m(this);if(a(e)){var n=o(e);return!0===n?y(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return h(this,e,t)}}:{add:function(e){return h(this,e,!0)}}),f}}},function(e,t,n){var r=n(177);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}},function(e,t,n){},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=window.wc.csvExport},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));t.a=i}]);
packages/woocommerce-admin/dist/chunks/0.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[0],{636: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(101),o=r(240),c=r.n(o),i=r(42),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)},637:function(e,t,r){"use strict";r(174);var a=r(13),n=r.n(a),o=r(14),c=r.n(o),i=r(16),s=r.n(i),l=r(17),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(111),O=r(42);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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 v=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'),t=Object(b.__)("Reload",'woocommerce'),a=function(){window.location.reload()}):i&&(e=Object(b.__)("No results could be found for this date range.",'woocommerce'),t=Object(b.__)("View Orders",'woocommerce'),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);v.propTypes={className:y.a.string,isError:y.a.bool,isEmpty:y.a.bool},v.defaultProps={className:""},t.a=v},646:function(e,t,r){"use strict";r(174),r(125),r(150),r(126),r(151);var a=r(4),n=r.n(a),o=r(13),c=r.n(o),i=r(14),s=r.n(i),l=r(10),u=r.n(l),d=r(16),p=r.n(d),m=r(17),b=r.n(m),f=r(7),y=r.n(f),g=r(0),O=(r(131),r(107),r(83),r(116),r(259),r(34)),h=r(1),v=r.n(h),j=r(3),_=r(15),w=r(111),S=r(42),C=r(33),E=r(57),D=r(44),R=r(636),P=r(183);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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(j.omitBy)(e,j.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(j.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(E.getDateParamsFromQuery)(n,c),s=i.period,l=i.compare,u=i.before,d=i.after,p=Object(E.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:E.isoDateFormat})}}]),r}(g.Component);x.contextType=R.a,t.a=Object(O.compose)(Object(_.withSelect)((function(e){return{defaultDateRange:e(C.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:v.a.object,filters:v.a.array,path:v.a.string.isRequired,query:v.a.object,showDatePicker:v.a.bool,report:v.a.string.isRequired}},647:function(e,t,r){"use strict";r(83),r(125),r(150),r(126),r(151);var a=r(39),n=r.n(a),o=r(29),c=r.n(o),i=r(4),s=r.n(i),l=r(30),u=r.n(l),d=r(66),p=r.n(d),m=r(0),b=(r(328),r(115),r(107),r(204),r(294),r(116),r(255),r(282),r(158),r(127),r(284),r(131),r(5)),f=r(101),y=r(34),g=r(253),O=r(15),h=r(3),v=r(2),j=r(1),_=r.n(j),w=r(111),S=r(28),C=r(617),E=r(33),D=r(44),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(637);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}var q=r(183);r(725);function x(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 A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var T=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,j=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,x=e.columnPrefsKey,T=l.items,N=l.query,B=q[O]?Object(S.getIdsFromQuery)(q[y]):[],Q=Object(m.useState)(B),I=u()(Q,2),L=I[0],M=I[1],U=Object(m.useRef)(null),V=Object(E.useUserPreferences)(),z=V.updateUserPreferences,H=p()(V,["updateUserPreferences"]);if(l.isError||i.isError)return Object(m.createElement)(P.a,{isError:!0});var G=[];x&&(G=H&&H[x]?H[x]: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||0,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(v.__)("Select All"),checked:W,disabled:!Y}),required:!0})].concat(c()(se)));var de=function(e,t){return t?e.map((function(e){return A(A({},e),{},{visible:e.required||!t.includes(e.key)})})):e.map((function(e){return A(A({},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:!!j,actions:[y&&Object(m.createElement)(w.CompareButton,{key:"compare",className:"woocommerce-table__compare",count:L.length,helpText:F.helpText||Object(v.__)("Check at least two items below to compare",'woocommerce'),onClick:function(){y&&Object(S.onQueryChange)("compare")(y,O,L.join(","))},disabled:!ne},F.compareButton||Object(v.__)("Compare",'woocommerce')),j&&Object(m.createElement)(w.Search,{allowFreeTextSearch:!0,inlineTags:!0,key:"search",onChange:function(t){var r,a=e.baseSearchQuery,n=e.addCesSurveyForCustomerSearch,o=t.map((function(e){return e.label.replace(",","%2C")}));o.length?(Object(S.updateQueryString)(A(A((r={filter:void 0},s()(r,O,void 0),s()(r,j,void 0),r),a),{},{search:Object(h.uniq)(o).join(",")})),n()):Object(S.updateQueryString)({search:void 0});Object(D.recordEvent)("analytics_table_filter",{report:d})},placeholder:F.placeholder||Object(v.__)("Search by item name",'woocommerce'),selected:oe,showClearButton:!0,type:j,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[j],o&&o.length===c){var s=X(o,c),l=s.headers,u=s.rows;Object(C.downloadCSVFile)(Object(C.generateCSVFileName)(a,n),Object(C.generateCSVDataFromTable)(l,u))}else i="email",r(d,N).then((function(){return t("success",Object(v.sprintf)(Object(v.__)("Your %s Report will be emailed to you.",'woocommerce'),a))})).catch((function(e){return t("error",e.message||Object(v.sprintf)(Object(v.__)("There was a problem exporting your %s Report. Please try again.",'woocommerce'),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(v.__)("Download",'woocommerce')))],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(x){var a=s()({},x,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.focus.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)||E.QUERY_DEFAULTS.pageSize,summary:ue,totalRows:ae},k)))};T.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},T.defaultProps={primaryData:{},tableData:{items:{data:[],totalResults:0},query:{}},tableQuery:{},compareParam:"filter",downloadable:!1,onSearch:h.noop,baseSearchQuery:{}};var N=[],B={};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 B;var p=e(E.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,m="categories"===r?"products":r,b=a?Object(E.getReportChartData)({endpoint:m,dataType:"primary",query:c,select:e,filters:l,advancedFilters:u,defaultDateRange:p,fields:d}):B,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(E.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]})):N,tableData:f,query:c}})),Object(O.withDispatch)((function(e){var t=e(E.EXPORT_STORE_NAME).startExport;return{createNotice:e("core/notices").createNotice,startExport:t,addCesSurveyForCustomerSearch:e(q.c).addCesSurveyForCustomerSearch}})))(T)},725:function(e,t,r){}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[0],{627: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(101),o=r(239),c=r.n(o),i=r(42),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)},628:function(e,t,r){"use strict";r(174);var a=r(13),n=r.n(a),o=r(14),c=r.n(o),i=r(16),s=r.n(i),l=r(17),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(112),O=r(42);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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 v=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'),t=Object(b.__)("Reload",'woocommerce'),a=function(){window.location.reload()}):i&&(e=Object(b.__)("No results could be found for this date range.",'woocommerce'),t=Object(b.__)("View Orders",'woocommerce'),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);v.propTypes={className:y.a.string,isError:y.a.bool,isEmpty:y.a.bool},v.defaultProps={className:""},t.a=v},637:function(e,t,r){"use strict";r(174),r(126),r(151),r(127),r(152);var a=r(4),n=r.n(a),o=r(13),c=r.n(o),i=r(14),s=r.n(i),l=r(10),u=r.n(l),d=r(16),p=r.n(d),m=r(17),b=r.n(m),f=r(7),y=r.n(f),g=r(0),O=(r(132),r(108),r(83),r(118),r(256),r(34)),h=r(1),v=r.n(h),j=r(3),_=r(15),w=r(112),S=r(42),C=r(33),E=r(57),D=r(44),R=r(627),P=r(184);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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(j.omitBy)(e,j.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(j.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(E.getDateParamsFromQuery)(n,c),s=i.period,l=i.compare,u=i.before,d=i.after,p=Object(E.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:E.isoDateFormat})}}]),r}(g.Component);x.contextType=R.a,t.a=Object(O.compose)(Object(_.withSelect)((function(e){return{defaultDateRange:e(C.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:v.a.object,filters:v.a.array,path:v.a.string.isRequired,query:v.a.object,showDatePicker:v.a.bool,report:v.a.string.isRequired}},638:function(e,t,r){"use strict";r(83),r(126),r(151),r(127),r(152);var a=r(39),n=r.n(a),o=r(29),c=r.n(o),i=r(4),s=r.n(i),l=r(30),u=r.n(l),d=r(66),p=r.n(d),m=r(0),b=(r(322),r(117),r(108),r(205),r(289),r(118),r(253),r(277),r(159),r(128),r(279),r(132),r(5)),f=r(101),y=r(34),g=r(251),O=r(15),h=r(3),v=r(2),j=r(1),_=r.n(j),w=r(112),S=r(28),C=r(609),E=r(33),D=r(44),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(628);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}var q=r(184);r(715);function x(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 A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var T=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,j=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,x=e.columnPrefsKey,T=l.items,N=l.query,B=q[O]?Object(S.getIdsFromQuery)(q[y]):[],Q=Object(m.useState)(B),I=u()(Q,2),L=I[0],M=I[1],U=Object(m.useRef)(null),V=Object(E.useUserPreferences)(),z=V.updateUserPreferences,H=p()(V,["updateUserPreferences"]);if(l.isError||i.isError)return Object(m.createElement)(P.a,{isError:!0});var G=[];x&&(G=H&&H[x]?H[x]: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||0,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(v.__)("Select All"),checked:W,disabled:!Y}),required:!0})].concat(c()(se)));var de=function(e,t){return t?e.map((function(e){return A(A({},e),{},{visible:e.required||!t.includes(e.key)})})):e.map((function(e){return A(A({},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:!!j,actions:[y&&Object(m.createElement)(w.CompareButton,{key:"compare",className:"woocommerce-table__compare",count:L.length,helpText:F.helpText||Object(v.__)("Check at least two items below to compare",'woocommerce'),onClick:function(){y&&Object(S.onQueryChange)("compare")(y,O,L.join(","))},disabled:!ne},F.compareButton||Object(v.__)("Compare",'woocommerce')),j&&Object(m.createElement)(w.Search,{allowFreeTextSearch:!0,inlineTags:!0,key:"search",onChange:function(t){var r,a=e.baseSearchQuery,n=e.addCesSurveyForCustomerSearch,o=t.map((function(e){return e.label.replace(",","%2C")}));o.length?(Object(S.updateQueryString)(A(A((r={filter:void 0},s()(r,O,void 0),s()(r,j,void 0),r),a),{},{search:Object(h.uniq)(o).join(",")})),n()):Object(S.updateQueryString)({search:void 0});Object(D.recordEvent)("analytics_table_filter",{report:d})},placeholder:F.placeholder||Object(v.__)("Search by item name",'woocommerce'),selected:oe,showClearButton:!0,type:j,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[j],o&&o.length===c){var s=X(o,c),l=s.headers,u=s.rows;Object(C.downloadCSVFile)(Object(C.generateCSVFileName)(a,n),Object(C.generateCSVDataFromTable)(l,u))}else i="email",r(d,N).then((function(){return t("success",Object(v.sprintf)(Object(v.__)("Your %s Report will be emailed to you.",'woocommerce'),a))})).catch((function(e){return t("error",e.message||Object(v.sprintf)(Object(v.__)("There was a problem exporting your %s Report. Please try again.",'woocommerce'),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(v.__)("Download",'woocommerce')))],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(x){var a=s()({},x,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.focus.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)||E.QUERY_DEFAULTS.pageSize,summary:ue,totalRows:ae},k)))};T.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},T.defaultProps={primaryData:{},tableData:{items:{data:[],totalResults:0},query:{}},tableQuery:{},compareParam:"filter",downloadable:!1,onSearch:h.noop,baseSearchQuery:{}};var N=[],B={};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 B;var p=e(E.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,m="categories"===r?"products":r,b=a?Object(E.getReportChartData)({endpoint:m,dataType:"primary",query:c,select:e,filters:l,advancedFilters:u,defaultDateRange:p,fields:d}):B,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(E.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]})):N,tableData:f,query:c}})),Object(O.withDispatch)((function(e){var t=e(E.EXPORT_STORE_NAME).startExport;return{createNotice:e("core/notices").createNotice,startExport:t,addCesSurveyForCustomerSearch:e(q.c).addCesSurveyForCustomerSearch}})))(T)},715:function(e,t,r){}}]);
packages/woocommerce-admin/dist/chunks/1.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see 1.js.LICENSE.txt */
2
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[1],{330: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 f,m=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),A=w(RegExp.prototype.test),T=(f=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(f,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 k(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 function(e){return console.warn("fallback value for",e),null}}var _=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.7",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,f=t.NamedNodeMap,w=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,Y=t.Text,J=t.Comment,X=t.DOMParser,$=t.trustedTypes,Z=s.prototype,Q=k(Z,"cloneNode"),ee=k(Z,"nextSibling"),te=k(Z,"childNodes"),ne=k(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,fe=r.importNode,me={};try{me=S(o).documentMode?o.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof ne&&le&&void 0!==le.createHTMLDocument&&9!==me;var de=z,ge=H,he=U,ye=j,ve=B,be=W,Ae=P,Te=null,we=x({},[].concat(q(_),q(R),q(D),q(N),q(O))),xe=null,Se=x({},[].concat(q(M),q(F),q(C),q(I))),ke=null,_e=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),Te="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,ke="FORBID_TAGS"in e?x({},e.FORBID_TAGS):{},_e="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,Ae=e.ALLOWED_URI_REGEXP||Ae,Ne&&(De=!1),Ce&&(Fe=!0),Pe&&(Te=x({},[].concat(q(O))),xe=[],!0===Pe.html&&(x(Te,_),x(xe,M)),!0===Pe.svg&&(x(Te,R),x(xe,F),x(xe,I)),!0===Pe.svgFilters&&(x(Te,D),x(xe,F),x(xe,I)),!0===Pe.mathMl&&(x(Te,N),x(xe,C),x(xe,I))),e.ADD_TAGS&&(Te===we&&(Te=S(Te)),x(Te,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&&(Te["#text"]=!0),Le&&x(Te,["html","head","body"]),Te.table&&(x(Te,["tbody"]),delete ke.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})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Fe||Ce)try{ot(t)}catch(e){}else try{t.setAttribute(e,"")}catch(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]&&m(pe[e],(function(e){e.call(n,t,r,Ve)}))},ft=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:Te}),!st(e.firstElementChild)&&(!st(e.content)||!st(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return ot(e),!0;if(!Te[r]||ke[r]){if(Ue&&!Be[r]){var o=ne(e),i=te(e);if(i&&o)for(var 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||!A(/<\/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)},mt=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in o||n in Ye))return!1;if(De&&A(he,t));else if(Re&&A(ye,t));else{if(!xe[t]||_e[t])return!1;if(qe[t]);else if(A(Ae,y(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!We[e])if(Ee&&!A(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(A(/\/>/i,r))it(s,e);else{Ne&&(r=y(r,de," "),r=y(r,ge," "));var f=e.nodeName.toLowerCase();if(mt(f,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),ft(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,f=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!st(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("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 m=lt(je?e:i);s=m.nextNode();)3===s.nodeType&&s===u||ft(s)||(s.content instanceof a&&dt(s.content),pt(s),u=s);if(u=null,je)return e;if(Fe){if(Ce)for(f=ue.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return Ie&&(f=fe.call(r,f,!0)),f}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 mt(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.js.LICENSE.txt */
2
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[1],{324: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 f,m=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),A=w(RegExp.prototype.test),T=(f=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(f,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 k(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 function(e){return console.warn("fallback value for",e),null}}var _=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.7",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,f=t.NamedNodeMap,w=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,Y=t.Text,J=t.Comment,X=t.DOMParser,$=t.trustedTypes,Z=s.prototype,Q=k(Z,"cloneNode"),ee=k(Z,"nextSibling"),te=k(Z,"childNodes"),ne=k(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,fe=r.importNode,me={};try{me=S(o).documentMode?o.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof ne&&le&&void 0!==le.createHTMLDocument&&9!==me;var de=z,ge=H,he=U,ye=j,ve=B,be=W,Ae=P,Te=null,we=x({},[].concat(q(_),q(R),q(D),q(N),q(O))),xe=null,Se=x({},[].concat(q(M),q(F),q(C),q(I))),ke=null,_e=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),Te="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,ke="FORBID_TAGS"in e?x({},e.FORBID_TAGS):{},_e="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,Ae=e.ALLOWED_URI_REGEXP||Ae,Ne&&(De=!1),Ce&&(Fe=!0),Pe&&(Te=x({},[].concat(q(O))),xe=[],!0===Pe.html&&(x(Te,_),x(xe,M)),!0===Pe.svg&&(x(Te,R),x(xe,F),x(xe,I)),!0===Pe.svgFilters&&(x(Te,D),x(xe,F),x(xe,I)),!0===Pe.mathMl&&(x(Te,N),x(xe,C),x(xe,I))),e.ADD_TAGS&&(Te===we&&(Te=S(Te)),x(Te,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&&(Te["#text"]=!0),Le&&x(Te,["html","head","body"]),Te.table&&(x(Te,["tbody"]),delete ke.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})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Fe||Ce)try{ot(t)}catch(e){}else try{t.setAttribute(e,"")}catch(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]&&m(pe[e],(function(e){e.call(n,t,r,Ve)}))},ft=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:Te}),!st(e.firstElementChild)&&(!st(e.content)||!st(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return ot(e),!0;if(!Te[r]||ke[r]){if(Ue&&!Be[r]){var o=ne(e),i=te(e);if(i&&o)for(var 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||!A(/<\/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)},mt=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in o||n in Ye))return!1;if(De&&A(he,t));else if(Re&&A(ye,t));else{if(!xe[t]||_e[t])return!1;if(qe[t]);else if(A(Ae,y(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!We[e])if(Ee&&!A(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(A(/\/>/i,r))it(s,e);else{Ne&&(r=y(r,de," "),r=y(r,ge," "));var f=e.nodeName.toLowerCase();if(mt(f,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),ft(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,f=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!st(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("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 m=lt(je?e:i);s=m.nextNode();)3===s.nodeType&&s===u||ft(s)||(s.content instanceof a&&dt(s.content),pt(s),u=s);if(u=null,je)return e;if(Fe){if(Ce)for(f=ue.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return Ie&&(f=fe.call(r,f,!0)),f}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 mt(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}()}()}}]);
packages/woocommerce-admin/dist/chunks/2.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[2],{638:function(e,t,r){"use strict";r.d(t,"e",(function(){return d})),r.d(t,"a",(function(){return m})),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 g})),r.d(t,"h",(function(){return b})),r.d(t,"g",(function(){return v}));r(113),r(157),r(282),r(115),r(281);var a=r(38),n=r(48),i=r.n(n),o=r(3),s=r(28),u=r(33),c=r(42),l=r(641);function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.identity;return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,o="function"==typeof e?e(n):e,u=Object(s.getIdsFromQuery)(r);if(u.length<1)return Promise.resolve([]);var c={include:u.join(","),per_page:u.length};return i()({path:Object(a.addQueryArgs)(o,c)}).then((function(e){return e.map(t)}))}}d(u.NAMESPACE+"/products/attributes",(function(e){return{key:e.id,label:e.name}}));var m=d(u.NAMESPACE+"/products/categories",(function(e){return{key:e.id,label:e.name}})),f=d(u.NAMESPACE+"/coupons",(function(e){return{key:e.id,label:e.code}})),p=d(u.NAMESPACE+"/customers",(function(e){return{key:e.id,label:e.name}})),y=d(u.NAMESPACE+"/products",(function(e){return{key:e.id,label:e.name}})),g=d(u.NAMESPACE+"/taxes",(function(e){return{key:e.id,label:Object(l.a)(e)}}));function b(e){var t=e.attributes,r=e.name,a=Object(c.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=d((function(e){var t=e.products;return t?u.NAMESPACE+"/products/".concat(t,"/variations"):u.NAMESPACE+"/variations"}),(function(e){return{key:e.id,label:b(e)}}))},639:function(e,t,r){"use strict";var a=r(26),n=r(285).trim;a({target:"String",proto:!0,forced:r(640)("trim")},{trim:function(){return n(this)}})},640:function(e,t,r){var a=r(12),n=r(286);e.exports=function(e){return a((function(){return!!n[e]()||"​…᠎"!="​…᠎"[e]()||n[e].name!==e}))}},641:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r(282),r(131),r(115),r(281),r(639),r(113),r(258);var a=r(2);function n(e){return[e.country,e.state,e.name||Object(a.__)("TAX",'woocommerce'),e.priority].map((function(e){return e.toString().toUpperCase().trim()})).filter(Boolean).join("-")}},642:function(e,t,r){"use strict";r(174),r(83),r(125),r(131),r(150),r(151);var a=r(4),n=r.n(a),i=r(13),o=r.n(i),s=r(14),u=r.n(s),c=r(16),l=r.n(c),d=r(17),m=r.n(d),f=r(7),p=r.n(f),y=r(0),g=(r(115),r(126),r(127),r(116),r(255),r(2)),b=r(34),v=r(184),h=r(15),O=r(3),j=r(1),R=r.n(j),D=r(111),q=r(33),C=r(57),E=r(636),_=r(637),k=(r(284),r(107),r(204),r(28));function P(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 S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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 m()(this,r)}}var T=function(e){l()(r,e);var t=w(r);function r(){return o()(this,r),t.apply(this,arguments)}return u()(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}}})),S({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,i=e.defaultDateRange,o=Object(C.getIntervalForQuery)(t),s=Object(C.getCurrentDates)(t,i),u=s.primary,c=s.secondary;return r.data.intervals.map((function(e,r){var i=Object(C.getPreviousDate)(e.date_start,u.after,c.after,t.compare,o),s=a.data.intervals[r];return{date:Object(v.format)("Y-m-d\\TH:i:s",e.date_start),primary:{label:"".concat(u.label," (").concat(u.range,")"),labelDate:e.date_start,value:e.subtotals[n.key]||0},secondary:{label:"".concat(c.label," (").concat(c.range,")"),labelDate:i.format("YYYY-MM-DD HH:mm:ss"),value:s&&s.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,i=n.emptySearchResults,o=n.filterParam,s=n.interactiveLegend,u=n.itemsLabel,c=n.legendPosition,l=n.path,d=n.query,m=n.selectedChart,f=n.showHeaderControls,p=n.primaryData,b=Object(C.getIntervalForQuery)(d),v=Object(C.getAllowedIntervalsForQuery)(d),h=Object(C.getDateFormatsForInterval)(b,p.data.intervals.length),O=i?Object(g.__)("No data for the current search",'woocommerce'):Object(g.__)("No data for the selected date range",'woocommerce'),j=this.context,R=j.formatAmount,E=j.getCurrencyConfig;return Object(y.createElement)(D.Chart,{allowedIntervals:v,data:r,dateParser:"%Y-%m-%dT%H:%M:%S",emptyMessage:O,filterParam:o,interactiveLegend:s,interval:b,isRequesting:t,itemsLabel:u,legendPosition:c,legendTotals:a,mode:e,path:l,query:d,screenReaderFormat:h.screenReaderFormat,showHeaderControls:f,title:m.label,tooltipLabelFormat:h.tooltipLabelFormat,tooltipTitle:"time-comparison"===e&&m.label||null,tooltipValueFormat:Object(q.getTooltipValueFormat)(m.type,R),chartType:Object(C.getChartTypeForQuery)(d),valueType:m.type,xFormat:h.xFormat,x2Format:h.x2Format,currency:E()})}},{key:"renderItemComparison",value:function(){var e=this.props,t=e.isRequesting,r=e.primaryData;if(r.isError)return Object(y.createElement)(_.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)(_.a,{isError:!0});var n=t||r.isRequesting||a.isRequesting,i=this.getTimeChartData(),o=this.getTimeChartTotals();return this.renderChart("time-comparison",n,i,o)}},{key:"render",value:function(){return"item-comparison"===this.props.mode?this.renderItemComparison():this.renderTimeComparison()}}]),r}(y.Component);T.contextType=E.a,T.propTypes={filters:R.a.array,isRequesting:R.a.bool,itemsLabel:R.a.string,limitProperties:R.a.array,mode:R.a.string,path:R.a.string.isRequired,primaryData:R.a.object,query:R.a.object.isRequired,secondaryData:R.a.object,selectedChart:R.a.shape({key:R.a.string.isRequired,label:R.a.string.isRequired,order:R.a.oneOf(["asc","desc"]),orderby:R.a.string,type:R.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(b.compose)(Object(h.withSelect)((function(e,t){var r=t.charts,a=t.endpoint,n=t.filters,i=t.isRequesting,o=t.limitProperties,s=t.query,u=t.advancedFilters,c=o||[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),i=n.pop();if(i.showFilters(r,a)){var o=Object(k.flattenFilters)(i.filters),s=r[i.param]||i.defaultValue||"all";return Object(O.find)(o,{value:s})}return e(n,r,a)}(n,s),d=Object(O.get)(l,["settings","param"]),m=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,s)||"time-comparison",f=e(q.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,p={mode:m,filterParam:d,defaultDateRange:f};if(i)return p;var y=c.some((function(e){return s[e]&&s[e].length}));if(s.search&&!y)return S(S({},p),{},{emptySearchResults:!0});var g=r&&r.map((function(e){return e.key})),b=Object(q.getReportChartData)({endpoint:a,dataType:"primary",query:s,select:e,limitBy:c,filters:n,advancedFilters:u,defaultDateRange:f,fields:g});if("item-comparison"===m)return S(S({},p),{},{primaryData:b});var v=Object(q.getReportChartData)({endpoint:a,dataType:"secondary",query:s,select:e,limitBy:c,filters:n,advancedFilters:u,defaultDateRange:f,fields:g});return S(S({},p),{},{primaryData:b,secondaryData:v})})))(T)},644: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]}},645:function(e,t,r){"use strict";r(174);var a=r(13),n=r.n(a),i=r(14),o=r.n(i),s=r(16),u=r.n(s),c=r(17),l=r.n(c),d=r(7),m=r.n(d),f=r(0),p=(r(115),r(116),r(255),r(2)),y=r(34),g=r(15),b=r(1),v=r.n(b),h=r(28),O=r(111),j=r(283),R=r(33),D=r(57),q=r(44),C=r(637),E=r(636);function _(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=m()(e);if(t){var n=m()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return l()(this,r)}}var k=function(e){u()(r,e);var t=_(r);function r(){return n()(this,r),t.apply(this,arguments)}return o()(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,i=n.primary?n.primary[e]:0,o=n.secondary?n.secondary[e]:0,s=a?0:i,u=a?0:o;return{delta:Object(j.calculateDelta)(s,u),prevValue:this.formatVal(u,t),value:this.formatVal(s,t)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.charts,a=t.query,n=t.selectedChart,i=t.summaryData,o=t.endpoint,s=t.report,u=t.defaultDateRange,c=i.isError,l=i.isRequesting;if(c)return Object(f.createElement)(C.a,{isError:!0});if(l)return Object(f.createElement)(O.SummaryListPlaceholder,{numberOfItems:r.length});var d=Object(D.getDateParamsFromQuery)(a,u).compare;return Object(f.createElement)(O.SummaryList,null,(function(t){var a=t.onToggle;return r.map((function(t){var r=t.key,i=t.order,u=t.orderby,c=t.label,l=t.type,m={chart:r};u&&(m.orderby=u),i&&(m.order=i);var y=Object(h.getNewPath)(m),g=n.key===r,b=e.getValues(r,l),v=b.delta,j=b.prevValue,R=b.value;return Object(f.createElement)(O.SummaryNumber,{key:r,delta:v,href:y,label:c,prevLabel:"previous_period"===d?Object(p.__)("Previous Period:",'woocommerce'):Object(p.__)("Previous Year:",'woocommerce'),prevValue:j,selected:g,value:R,onLinkClickCallback:function(){a&&a(),Object(q.recordEvent)("analytics_chart_tab_click",{report:s||o,key:r})}})}))}))}}]),r}(f.Component);k.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},k.defaultProps={summaryData:{totals:{primary:{},secondary:{}},isError:!1}},k.contextType=E.a,t.a=Object(y.compose)(Object(g.withSelect)((function(e,t){var r=t.charts,a=t.endpoint,n=t.limitProperties,i=t.query,o=t.filters,s=t.advancedFilters,u=n||[a],c=u.some((function(e){return i[e]&&i[e].length}));if(i.search&&!c)return{emptySearchResults:!0};var l=r&&r.map((function(e){return e.key})),d=e(R.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range;return{summaryData:Object(R.getSummaryNumbers)({endpoint:a,query:i,select:e,limitBy:u,filters:o,advancedFilters:s,defaultDateRange:d,fields:l}),defaultDateRange:d}})))(k)},657:function(e,t,r){"use strict";function a(e,t,r){return!!t&&(e&&t<=r==="instock")}r.d(t,"a",(function(){return a}))}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[2],{629:function(e,t,r){"use strict";r.d(t,"e",(function(){return d})),r.d(t,"a",(function(){return m})),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 g})),r.d(t,"h",(function(){return b})),r.d(t,"g",(function(){return v}));r(115),r(158),r(277),r(117),r(276);var a=r(38),n=r(48),i=r.n(n),o=r(3),s=r(28),u=r(33),c=r(42),l=r(632);function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.identity;return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,o="function"==typeof e?e(n):e,u=Object(s.getIdsFromQuery)(r);if(u.length<1)return Promise.resolve([]);var c={include:u.join(","),per_page:u.length};return i()({path:Object(a.addQueryArgs)(o,c)}).then((function(e){return e.map(t)}))}}d(u.NAMESPACE+"/products/attributes",(function(e){return{key:e.id,label:e.name}}));var m=d(u.NAMESPACE+"/products/categories",(function(e){return{key:e.id,label:e.name}})),f=d(u.NAMESPACE+"/coupons",(function(e){return{key:e.id,label:e.code}})),p=d(u.NAMESPACE+"/customers",(function(e){return{key:e.id,label:e.name}})),y=d(u.NAMESPACE+"/products",(function(e){return{key:e.id,label:e.name}})),g=d(u.NAMESPACE+"/taxes",(function(e){return{key:e.id,label:Object(l.a)(e)}}));function b(e){var t=e.attributes,r=e.name,a=Object(c.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=d((function(e){var t=e.products;return t?u.NAMESPACE+"/products/".concat(t,"/variations"):u.NAMESPACE+"/variations"}),(function(e){return{key:e.id,label:b(e)}}))},630:function(e,t,r){"use strict";var a=r(26),n=r(280).trim;a({target:"String",proto:!0,forced:r(631)("trim")},{trim:function(){return n(this)}})},631:function(e,t,r){var a=r(12),n=r(281);e.exports=function(e){return a((function(){return!!n[e]()||"​…᠎"!="​…᠎"[e]()||n[e].name!==e}))}},632:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r(277),r(132),r(117),r(276),r(630),r(115),r(255);var a=r(2);function n(e){return[e.country,e.state,e.name||Object(a.__)("TAX",'woocommerce'),e.priority].map((function(e){return e.toString().toUpperCase().trim()})).filter(Boolean).join("-")}},633:function(e,t,r){"use strict";r(174),r(83),r(126),r(132),r(151),r(152);var a=r(4),n=r.n(a),i=r(13),o=r.n(i),s=r(14),u=r.n(s),c=r(16),l=r.n(c),d=r(17),m=r.n(d),f=r(7),p=r.n(f),y=r(0),g=(r(117),r(127),r(128),r(118),r(253),r(2)),b=r(34),v=r(185),h=r(15),O=r(3),j=r(1),R=r.n(j),D=r(112),q=r(33),C=r(57),E=r(627),_=r(628),k=(r(279),r(108),r(205),r(28));function P(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 S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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 m()(this,r)}}var T=function(e){l()(r,e);var t=w(r);function r(){return o()(this,r),t.apply(this,arguments)}return u()(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}}})),S({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,i=e.defaultDateRange,o=Object(C.getIntervalForQuery)(t),s=Object(C.getCurrentDates)(t,i),u=s.primary,c=s.secondary;return r.data.intervals.map((function(e,r){var i=Object(C.getPreviousDate)(e.date_start,u.after,c.after,t.compare,o),s=a.data.intervals[r];return{date:Object(v.format)("Y-m-d\\TH:i:s",e.date_start),primary:{label:"".concat(u.label," (").concat(u.range,")"),labelDate:e.date_start,value:e.subtotals[n.key]||0},secondary:{label:"".concat(c.label," (").concat(c.range,")"),labelDate:i.format("YYYY-MM-DD HH:mm:ss"),value:s&&s.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,i=n.emptySearchResults,o=n.filterParam,s=n.interactiveLegend,u=n.itemsLabel,c=n.legendPosition,l=n.path,d=n.query,m=n.selectedChart,f=n.showHeaderControls,p=n.primaryData,b=Object(C.getIntervalForQuery)(d),v=Object(C.getAllowedIntervalsForQuery)(d),h=Object(C.getDateFormatsForInterval)(b,p.data.intervals.length),O=i?Object(g.__)("No data for the current search",'woocommerce'):Object(g.__)("No data for the selected date range",'woocommerce'),j=this.context,R=j.formatAmount,E=j.getCurrencyConfig;return Object(y.createElement)(D.Chart,{allowedIntervals:v,data:r,dateParser:"%Y-%m-%dT%H:%M:%S",emptyMessage:O,filterParam:o,interactiveLegend:s,interval:b,isRequesting:t,itemsLabel:u,legendPosition:c,legendTotals:a,mode:e,path:l,query:d,screenReaderFormat:h.screenReaderFormat,showHeaderControls:f,title:m.label,tooltipLabelFormat:h.tooltipLabelFormat,tooltipTitle:"time-comparison"===e&&m.label||null,tooltipValueFormat:Object(q.getTooltipValueFormat)(m.type,R),chartType:Object(C.getChartTypeForQuery)(d),valueType:m.type,xFormat:h.xFormat,x2Format:h.x2Format,currency:E()})}},{key:"renderItemComparison",value:function(){var e=this.props,t=e.isRequesting,r=e.primaryData;if(r.isError)return Object(y.createElement)(_.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)(_.a,{isError:!0});var n=t||r.isRequesting||a.isRequesting,i=this.getTimeChartData(),o=this.getTimeChartTotals();return this.renderChart("time-comparison",n,i,o)}},{key:"render",value:function(){return"item-comparison"===this.props.mode?this.renderItemComparison():this.renderTimeComparison()}}]),r}(y.Component);T.contextType=E.a,T.propTypes={filters:R.a.array,isRequesting:R.a.bool,itemsLabel:R.a.string,limitProperties:R.a.array,mode:R.a.string,path:R.a.string.isRequired,primaryData:R.a.object,query:R.a.object.isRequired,secondaryData:R.a.object,selectedChart:R.a.shape({key:R.a.string.isRequired,label:R.a.string.isRequired,order:R.a.oneOf(["asc","desc"]),orderby:R.a.string,type:R.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(b.compose)(Object(h.withSelect)((function(e,t){var r=t.charts,a=t.endpoint,n=t.filters,i=t.isRequesting,o=t.limitProperties,s=t.query,u=t.advancedFilters,c=o||[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),i=n.pop();if(i.showFilters(r,a)){var o=Object(k.flattenFilters)(i.filters),s=r[i.param]||i.defaultValue||"all";return Object(O.find)(o,{value:s})}return e(n,r,a)}(n,s),d=Object(O.get)(l,["settings","param"]),m=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,s)||"time-comparison",f=e(q.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,p={mode:m,filterParam:d,defaultDateRange:f};if(i)return p;var y=c.some((function(e){return s[e]&&s[e].length}));if(s.search&&!y)return S(S({},p),{},{emptySearchResults:!0});var g=r&&r.map((function(e){return e.key})),b=Object(q.getReportChartData)({endpoint:a,dataType:"primary",query:s,select:e,limitBy:c,filters:n,advancedFilters:u,defaultDateRange:f,fields:g});if("item-comparison"===m)return S(S({},p),{},{primaryData:b});var v=Object(q.getReportChartData)({endpoint:a,dataType:"secondary",query:s,select:e,limitBy:c,filters:n,advancedFilters:u,defaultDateRange:f,fields:g});return S(S({},p),{},{primaryData:b,secondaryData:v})})))(T)},635: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]}},636:function(e,t,r){"use strict";r(174);var a=r(13),n=r.n(a),i=r(14),o=r.n(i),s=r(16),u=r.n(s),c=r(17),l=r.n(c),d=r(7),m=r.n(d),f=r(0),p=(r(117),r(118),r(253),r(2)),y=r(34),g=r(15),b=r(1),v=r.n(b),h=r(28),O=r(112),j=r(278),R=r(33),D=r(57),q=r(44),C=r(628),E=r(627);function _(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=m()(e);if(t){var n=m()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return l()(this,r)}}var k=function(e){u()(r,e);var t=_(r);function r(){return n()(this,r),t.apply(this,arguments)}return o()(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,i=n.primary?n.primary[e]:0,o=n.secondary?n.secondary[e]:0,s=a?0:i,u=a?0:o;return{delta:Object(j.calculateDelta)(s,u),prevValue:this.formatVal(u,t),value:this.formatVal(s,t)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.charts,a=t.query,n=t.selectedChart,i=t.summaryData,o=t.endpoint,s=t.report,u=t.defaultDateRange,c=i.isError,l=i.isRequesting;if(c)return Object(f.createElement)(C.a,{isError:!0});if(l)return Object(f.createElement)(O.SummaryListPlaceholder,{numberOfItems:r.length});var d=Object(D.getDateParamsFromQuery)(a,u).compare;return Object(f.createElement)(O.SummaryList,null,(function(t){var a=t.onToggle;return r.map((function(t){var r=t.key,i=t.order,u=t.orderby,c=t.label,l=t.type,m={chart:r};u&&(m.orderby=u),i&&(m.order=i);var y=Object(h.getNewPath)(m),g=n.key===r,b=e.getValues(r,l),v=b.delta,j=b.prevValue,R=b.value;return Object(f.createElement)(O.SummaryNumber,{key:r,delta:v,href:y,label:c,prevLabel:"previous_period"===d?Object(p.__)("Previous Period:",'woocommerce'):Object(p.__)("Previous Year:",'woocommerce'),prevValue:j,selected:g,value:R,onLinkClickCallback:function(){a&&a(),Object(q.recordEvent)("analytics_chart_tab_click",{report:s||o,key:r})}})}))}))}}]),r}(f.Component);k.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},k.defaultProps={summaryData:{totals:{primary:{},secondary:{}},isError:!1}},k.contextType=E.a,t.a=Object(y.compose)(Object(g.withSelect)((function(e,t){var r=t.charts,a=t.endpoint,n=t.limitProperties,i=t.query,o=t.filters,s=t.advancedFilters,u=n||[a],c=u.some((function(e){return i[e]&&i[e].length}));if(i.search&&!c)return{emptySearchResults:!0};var l=r&&r.map((function(e){return e.key})),d=e(R.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range;return{summaryData:Object(R.getSummaryNumbers)({endpoint:a,query:i,select:e,limitBy:u,filters:o,advancedFilters:s,defaultDateRange:d,fields:l}),defaultDateRange:d}})))(k)},648:function(e,t,r){"use strict";function a(e,t,r){return!!t&&(e&&t<=r==="instock")}r.d(t,"a",(function(){return a}))}}]);
packages/woocommerce-admin/dist/chunks/3.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[3],{149:function(e,t,n){"use strict";var i=n(11),s=n.n(i);t.a=s.a.createContext(null)},449:function(e,t,n){"use strict";var i=n(72),s=n(100),r=n(96);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(11),l=n.n(o),c=n(123),u=n.n(c),p=!1,d=n(149),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},450:function(e,t,n){"use strict";var i=n(100),s=n(72);var r=n(96),a=(n(1),n(11)),o=n.n(a),l=n(149);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}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[3],{150:function(e,t,n){"use strict";var i=n(11),s=n.n(i);t.a=s.a.createContext(null)},443:function(e,t,n){"use strict";var i=n(72),s=n(100),r=n(96);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(11),l=n.n(o),c=n(124),u=n.n(c),p=!1,d=n(150),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},444:function(e,t,n){"use strict";var i=n(100),s=n(72);var r=n(96),a=(n(1),n(11)),o=n.n(a),l=n(150);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}}]);
packages/woocommerce-admin/dist/chunks/4.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[4],{649:function(e,t,n){"use strict";var c=n(330),o=["a","b","em","i","strong","p","br"],a=["target","href","rel","name","download"];t.a=function(e){return{__html:Object(c.sanitize)(e,{ALLOWED_TAGS:o,ALLOWED_ATTR:a})}}},653:function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return R}));n(174);var c=n(13),o=n.n(c),a=n(14),i=n.n(a),r=n(16),s=n.n(r),l=n(17),m=n.n(l),u=n(7),d=n.n(u),f=n(0),b=(n(115),n(9)),p=n.n(b),_=n(331),v=n.n(_),h=n(21),O=n.n(h),y=n(1),g=n.n(y),j=n(111),N=n(5),E=(n(689),n(3));function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var o=d()(this).constructor;n=Reflect.construct(c,arguments,o)}else n=c.apply(this,arguments);return m()(this,n)}}var k=function(e){s()(n,e);var t=w(n);function n(){return o()(this,n),t.apply(this,arguments)}return i()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.hasAction,c=e.hasDate,o=e.hasSubtitle,a=e.lines,i=p()("woocommerce-activity-card is-loading",t);return Object(f.createElement)("div",{className:i,"aria-hidden":!0},Object(f.createElement)("span",{className:"woocommerce-activity-card__icon"},Object(f.createElement)("span",{className:"is-placeholder"})),Object(f.createElement)("div",{className:"woocommerce-activity-card__header"},Object(f.createElement)("div",{className:"woocommerce-activity-card__title is-placeholder"}),o&&Object(f.createElement)("div",{className:"woocommerce-activity-card__subtitle is-placeholder"}),c&&Object(f.createElement)("div",{className:"woocommerce-activity-card__date"},Object(f.createElement)("span",{className:"is-placeholder"}))),Object(f.createElement)("div",{className:"woocommerce-activity-card__body"},Object(E.range)(a).map((function(e){return Object(f.createElement)("span",{className:"is-placeholder",key:e})}))),n&&Object(f.createElement)("div",{className:"woocommerce-activity-card__actions"},Object(f.createElement)("span",{className:"is-placeholder"})))}}]),n}(f.Component);k.propTypes={className:g.a.string,hasAction:g.a.bool,hasDate:g.a.bool,hasSubtitle:g.a.bool,lines:g.a.number},k.defaultProps={hasAction:!1,hasDate:!1,hasSubtitle:!1,lines:1};var R=k;function C(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var o=d()(this).constructor;n=Reflect.construct(c,arguments,o)}else n=c.apply(this,arguments);return m()(this,n)}}var x=function(e){s()(n,e);var t=C(n);function n(){return o()(this,n),t.apply(this,arguments)}return i()(n,[{key:"getCard",value:function(){var e=this.props,t=e.actions,n=e.className,c=e.children,o=e.date,a=e.icon,i=e.subtitle,r=e.title,s=e.unread,l=p()("woocommerce-activity-card",n),m=Array.isArray(t)?t:[t],u=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(o)?O.a.utc(o).fromNow():o;return Object(f.createElement)("section",{className:l},s&&Object(f.createElement)("span",{className:"woocommerce-activity-card__unread"}),a&&Object(f.createElement)("span",{className:"woocommerce-activity-card__icon","aria-hidden":!0},a),r&&Object(f.createElement)("header",{className:"woocommerce-activity-card__header"},Object(f.createElement)(j.H,{className:"woocommerce-activity-card__title"},r),i&&Object(f.createElement)("div",{className:"woocommerce-activity-card__subtitle"},i),u&&Object(f.createElement)("span",{className:"woocommerce-activity-card__date"},u)),c&&Object(f.createElement)(j.Section,{className:"woocommerce-activity-card__body"},c),t&&Object(f.createElement)("footer",{className:"woocommerce-activity-card__actions"},m.map((function(e,t){return Object(f.cloneElement)(e,{key:t})}))))}},{key:"render",value:function(){var e=this.props.onClick;return e?Object(f.createElement)(N.Button,{className:"woocommerce-activity-card__button",onClick:e},this.getCard()):this.getCard()}}]),n}(f.Component);x.propTypes={actions:g.a.oneOfType([g.a.arrayOf(g.a.element),g.a.element]),onClick:g.a.func,className:g.a.string,children:g.a.node,date:g.a.string,icon:g.a.node,subtitle:g.a.node,title:g.a.oneOfType([g.a.string,g.a.node]),unread:g.a.bool},x.defaultProps={icon:Object(f.createElement)(v.a,{size:48}),unread:!1}},678:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return o}));n(116),n(239),n(260),n(255),n(158);function c(){var e,t="",n=(e=window.location.search)?e.substr(1).split("&").reduce((function(e,t){var n=t.split("="),c=n[0],o=decodeURIComponent(n[1]);return o=isNaN(Number(o))?o:Number(o),e[c]=o,e}),{}):{},c=n.page,o=n.path,a=n.post_type;if(c){var i="wc-admin"===c?"home_screen":c;t=o?o.replace(/\//g,"_").substring(1):i}else a&&(t=a);return t}var o=function(e,t){return e.reduce((function(e,n){return e[t(n)?0:1].push(n),e}),[[],[]])}},689:function(e,t,n){},695:function(e,t,n){},742:function(e,t,n){"use strict";n.r(t);var c=n(30),o=n.n(c),a=n(66),i=n.n(a),r=n(0),s=(n(115),n(83),n(2)),l=n(34),m=n(111),u=n(33),d=n(15),f=n(450),b=n(449),p=n(653),_=(n(174),n(13)),v=n.n(_),h=n(14),O=n.n(h),y=n(16),g=n.n(y),j=n(17),N=n.n(j),E=n(7),w=n.n(E),k=n(1),R=n.n(k);function C(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=w()(e);if(t){var o=w()(this).constructor;n=Reflect.construct(c,arguments,o)}else n=c.apply(this,arguments);return N()(this,n)}}var x=function(e){g()(n,e);var t=C(n);function n(){return v()(this,n),t.apply(this,arguments)}return O()(n,[{key:"render",value:function(){var e=this.props.className;return Object(r.createElement)("div",{className:"woocommerce-inbox-message is-placeholder ".concat(e),"aria-hidden":!0},Object(r.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(r.createElement)("div",{className:"woocommerce-inbox-message__content"},Object(r.createElement)("div",{className:"woocommerce-inbox-message__date"},Object(r.createElement)("div",{className:"sixth-line"})),Object(r.createElement)("div",{className:"woocommerce-inbox-message__title"},Object(r.createElement)("div",{className:"line"}),Object(r.createElement)("div",{className:"line"})),Object(r.createElement)("div",{className:"woocommerce-inbox-message__text"},Object(r.createElement)("div",{className:"line"}),Object(r.createElement)("div",{className:"third-line"}))),Object(r.createElement)("div",{className:"woocommerce-inbox-message__actions"},Object(r.createElement)("div",{className:"fifth-line"}),Object(r.createElement)("div",{className:"fifth-line"}))))}}]),n}(r.Component);x.propTypes={className:R.a.string};var A=x,D=n(10),B=n.n(D),T=n(4),S=n.n(T),M=(n(281),n(107),n(204),n(5)),U=n(676),P=n.n(U),L=n(21),q=n.n(L),I=n(9),F=n.n(I),Y=n(44),V=(n(677),n(42));function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=w()(e);if(t){var o=w()(this).constructor;n=Reflect.construct(c,arguments,o)}else n=c.apply(this,arguments);return N()(this,n)}}var z=function(e){g()(n,e);var t=W(n);function n(e){var c;return v()(this,n),(c=t.call(this,e)).state={inAction:!1},c.handleActionClick=c.handleActionClick.bind(B()(c)),c}return O()(n,[{key:"handleActionClick",value:function(e){var t=this.props,n=t.action,c=t.actionCallback,o=t.batchUpdateNotes,a=t.createNotice,i=t.noteId,r=t.triggerNoteAction,l=t.removeAllNotes,m=t.removeNote,u=t.onClick,d=t.updateNote,f=e.target.href||"",b=!0;f.length&&!f.startsWith(V.a)&&(e.preventDefault(),b=!1,window.open(f,"_blank")),n?this.setState({inAction:b},(function(){r(i,n.id),u&&u()})):(i?m(i).then((function(){a("success",Object(s.__)("Message dismissed",'woocommerce'),{actions:[{label:Object(s.__)("Undo",'woocommerce'),onClick:function(){d(i,{is_deleted:0})}}]})})).catch((function(){a("error",Object(s.__)("Message could not be dismissed",'woocommerce'))})):l().then((function(e){a("success",Object(s.__)("All messages dismissed",'woocommerce'),{actions:[{label:Object(s.__)("Undo",'woocommerce'),onClick:function(){o(e.map((function(e){return e.id})),{is_deleted:0})}}]})})).catch((function(){a("error",Object(s.__)("Message could not be dismissed",'woocommerce'))})),c(!0))}},{key:"render",value:function(){var e=this.props,t=e.action,n=e.dismiss,c=e.label;return Object(r.createElement)(M.Button,{isSecondary:!0,isBusy:this.state.inAction,disabled:this.state.inAction,href:t&&t.url&&t.url.length?t.url:void 0,onClick:this.handleActionClick},n?c:t.label)}}]),n}(r.Component);z.propTypes={noteId:R.a.number,label:R.a.string,dismiss:R.a.bool,actionCallback:R.a.func,action:R.a.shape({id:R.a.number.isRequired,url:R.a.string,label:R.a.string.isRequired,primary:R.a.bool.isRequired}),onClick:R.a.func};var H=Object(l.compose)(Object(d.withDispatch)((function(e){var t=e("core/notices").createNotice,n=e(u.NOTES_STORE_NAME),c=n.batchUpdateNotes,o=n.removeAllNotes,a=n.removeNote,i=n.updateNote;return{batchUpdateNotes:c,createNotice:t,removeAllNotes:o,removeNote:a,triggerNoteAction:n.triggerNoteAction,updateNote:i}})))(z),J=n(649),Q=(n(695),n(678));function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=w()(e);if(t){var o=w()(this).constructor;n=Reflect.construct(c,arguments,o)}else n=c.apply(this,arguments);return N()(this,n)}}var Z=function(e){g()(n,e);var t=G(n);function n(e){var c;return v()(this,n),c=t.call(this,e),S()(B()(c),"onActionClicked",(function(e){e.actioned_text&&c.setState({clickedActionText:e.actioned_text})})),c.onVisible=c.onVisible.bind(B()(c)),c.hasBeenSeen=!1,c.state={isDismissModalOpen:!1,dismissType:null,clickedActionText:null},c.openDismissModal=c.openDismissModal.bind(B()(c)),c.closeDismissModal=c.closeDismissModal.bind(B()(c)),c.bodyNotificationRef=Object(r.createRef)(),c.toggleButtonRef=Object(r.createRef)(),c.screen=Object(Q.a)(),c}return O()(n,[{key:"componentDidMount",value:function(){var e=this;this.bodyNotificationRef.current&&this.bodyNotificationRef.current.addEventListener("click",(function(t){return e.handleBodyClick(t,e.props)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.bodyNotificationRef.current&&this.bodyNotificationRef.current.removeEventListener("click",(function(t){return e.handleBodyClick(t,e.props)}))}},{key:"handleBodyClick",value:function(e,t){var n=e.target.href;if(n){var c=t.note;Object(Y.recordEvent)("wcadmin_inbox_action_click",{note_name:c.name,note_title:c.title,note_content_inner_link:n})}}},{key:"onVisible",value:function(e){if(e&&!this.hasBeenSeen){var t=this.props.note;Object(Y.recordEvent)("inbox_note_view",{note_content:t.content,note_name:t.name,note_title:t.title,note_type:t.type,screen:this.screen}),this.hasBeenSeen=!0}}},{key:"openDismissModal",value:function(e,t){this.setState({isDismissModalOpen:!0,dismissType:e}),t()}},{key:"closeDismissModal",value:function(e){var t=this.state.dismissType,n=this.props.note,c="all"===t;Object(Y.recordEvent)("inbox_action_dismiss",{note_name:n.name,note_title:n.title,note_name_dismiss_all:c,note_name_dismiss_confirmation:e||!1,screen:this.screen}),this.setState({isDismissModalOpen:!1})}},{key:"handleBlur",value:function(e,t){var n;if(e.relatedTarget)n=e.relatedTarget;else if(this.toggleButtonRef.current){var c=this.toggleButtonRef.current.ownerDocument;n=c?c.activeElement:null}!!n&&["woocommerce-admin-dismiss-notification","components-popover__content"].some((function(e){return n.className.includes(e)}))?e.preventDefault():t()}},{key:"renderDismissButton",value:function(){var e=this;return this.state.clickedActionText?null:Object(r.createElement)(M.Dropdown,{contentClassName:"woocommerce-admin-dismiss-dropdown",position:"bottom right",renderToggle:function(t){var n=t.onClose,c=t.onToggle;return Object(r.createElement)(M.Button,{isTertiary:!0,onClick:c,ref:e.toggleButtonRef,onBlur:function(t){return e.handleBlur(t,n)}},Object(s.__)("Dismiss",'woocommerce'))},focusOnMount:!1,popoverProps:{noArrow:!0},renderContent:function(t){var n=t.onToggle;return Object(r.createElement)("ul",null,Object(r.createElement)("li",null,Object(r.createElement)(M.Button,{className:"woocommerce-admin-dismiss-notification",onClick:function(){return e.openDismissModal("this",n)}},Object(s.__)("Dismiss this message",'woocommerce'))),Object(r.createElement)("li",null,Object(r.createElement)(M.Button,{className:"woocommerce-admin-dismiss-notification",onClick:function(){return e.openDismissModal("all",n)}},Object(s.__)("Dismiss all messages",'woocommerce'))))}})}},{key:"getDismissConfirmationButton",value:function(){var e=this.props.note,t=this.state.dismissType;return Object(r.createElement)(H,{key:e.id,noteId:"all"===t?null:e.id,label:Object(s.__)("Yes, I'm sure",'woocommerce'),actionCallback:this.closeDismissModal,dismiss:!0,screen:this.screen})}},{key:"renderDismissConfirmationModal",value:function(){var e=this;return Object(r.createElement)(M.Modal,{title:Object(r.createElement)(r.Fragment,null,Object(s.__)("Are you sure?",'woocommerce')),onRequestClose:function(){return e.closeDismissModal()},className:"woocommerce-inbox-dismiss-confirmation_modal"},Object(r.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_wrapper"},Object(r.createElement)("p",null,Object(s.__)("Dismissed messages cannot be viewed again",'woocommerce')),Object(r.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_buttons"},Object(r.createElement)(M.Button,{isSecondary:!0,onClick:function(){return e.closeDismissModal()}},Object(s.__)("Cancel",'woocommerce')),this.getDismissConfirmationButton())))}},{key:"renderActions",value:function(e){var t=this,n=e.actions,c=e.id,o=this.state.clickedActionText;return o||(n?Object(r.createElement)(r.Fragment,null,n.map((function(e,n){return Object(r.createElement)(H,{key:n,noteId:c,action:e,onClick:function(){return t.onActionClicked(e)}})}))):void 0)}},{key:"render",value:function(){var e=this.props,t=e.lastRead,n=e.note,c=this.state.isDismissModalOpen,o=n.content,a=n.date_created,i=n.date_created_gmt,s=n.image,l=n.is_deleted,u=n.layout,d=n.status,f=n.title;if(l)return null;var b=!t||!i||new Date(i+"Z").getTime()>t,p=a,_="plain"!==u&&""!==u,v=F()("woocommerce-inbox-message",u,{"message-is-unread":b&&"unactioned"===d});return Object(r.createElement)(P.a,{onChange:this.onVisible},Object(r.createElement)("section",{className:v},_&&Object(r.createElement)("div",{className:"woocommerce-inbox-message__image"},Object(r.createElement)("img",{src:s,alt:""})),Object(r.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(r.createElement)("div",{className:"woocommerce-inbox-message__content"},b&&Object(r.createElement)("div",{className:"woocommerce-inbox-message__unread-indicator"}),p&&Object(r.createElement)("span",{className:"woocommerce-inbox-message__date"},q.a.utc(p).fromNow()),Object(r.createElement)(m.H,{className:"woocommerce-inbox-message__title"},f),Object(r.createElement)(m.Section,{className:"woocommerce-inbox-message__text"},Object(r.createElement)("span",{dangerouslySetInnerHTML:Object(J.a)(o),ref:this.bodyNotificationRef}))),Object(r.createElement)("div",{className:"woocommerce-inbox-message__actions"},this.renderActions(n),this.renderDismissButton())),c&&this.renderDismissConfirmationModal()))}}]),n}(r.Component);Z.propTypes={note:R.a.shape({id:R.a.number,status:R.a.string,title:R.a.string,content:R.a.string,date_created:R.a.string,date_created_gmt:R.a.string,actions:R.a.arrayOf(R.a.shape({id:R.a.number.isRequired,url:R.a.string,label:R.a.string.isRequired,primary:R.a.bool.isRequired})),layout:R.a.string,image:R.a.string,is_deleted:R.a.bool}),lastRead:R.a.number};var K=Z,X=n(342),$=function(e){var t=e.hasNotes,n=e.isBatchUpdating,c=e.lastRead,o=e.notes;if(!n){if(!t)return Object(r.createElement)(p.a,{className:"woocommerce-empty-activity-card",title:Object(s.__)("Your inbox is empty",'woocommerce'),icon:!1},Object(s.__)("As things begin to happen in your store your inbox will start to fill up. You'll see things like achievements, new feature announcements, extension recommendations and more!",'woocommerce'));var a=Object.keys(o).map((function(e){return o[e]}));return Object(r.createElement)(f.a,{role:"menu"},a.map((function(e){var t=e.id;return e.is_deleted?null:Object(r.createElement)(b.a,{key:t,timeout:500,classNames:"woocommerce-inbox-message"},Object(r.createElement)(K,{key:t,note:e,lastRead:c}))})))}},ee={page:1,per_page:u.QUERY_DEFAULTS.pageSize,status:"unactioned",type:u.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc",_fields:["id","name","title","content","type","status","actions","date_created","date_created_gmt","layout","image","is_deleted"]};t.default=Object(l.compose)(Object(d.withSelect)((function(e){var t=e(u.NOTES_STORE_NAME),n=t.getNotes,c=t.getNotesError,o=t.isResolving,a=t.isNotesRequesting;return{notes:n(ee),isError:Boolean(c("getNotes",[ee])),isResolving:o("getNotes",[ee]),isBatchUpdating:a("batchUpdateNotes")}})))((function(e){var t=e.isError,n=e.isResolving,c=e.isBatchUpdating,a=e.notes,l=Object(u.useUserPreferences)(),d=l.updateUserPreferences,f=i()(l,["updateUserPreferences"]),b=Object(r.useState)(f.activity_panel_inbox_last_read),p=o()(b,1)[0];if(Object(r.useEffect)((function(){var e=Date.now();d({activity_panel_inbox_last_read:e})}),[]),t){var _=Object(s.__)("There was an error getting your inbox. Please try again.",'woocommerce'),v=Object(s.__)("Reload",'woocommerce');return Object(r.createElement)(m.EmptyContent,{title:_,actionLabel:v,actionURL:null,actionCallback:function(){window.location.reload()}})}var h=Object(X.b)(a);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"woocommerce-homepage-notes-wrapper"},(n||c)&&Object(r.createElement)(m.Section,null,Object(r.createElement)(A,{className:"banner message-is-unread"})),Object(r.createElement)(m.Section,null,!n&&!c&&$({hasNotes:h,isBatchUpdating:c,lastRead:p,notes:a}))))}))}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[4],{640:function(e,t,n){"use strict";var c=n(324),o=["a","b","em","i","strong","p","br"],a=["target","href","rel","name","download"];t.a=function(e){return{__html:Object(c.sanitize)(e,{ALLOWED_TAGS:o,ALLOWED_ATTR:a})}}},644:function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return R}));n(174);var c=n(13),o=n.n(c),a=n(14),i=n.n(a),r=n(16),s=n.n(r),l=n(17),m=n.n(l),u=n(7),d=n.n(u),f=n(0),b=(n(117),n(9)),p=n.n(b),_=n(325),v=n.n(_),h=n(21),O=n.n(h),y=n(1),g=n.n(y),j=n(112),N=n(5),E=(n(679),n(3));function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var o=d()(this).constructor;n=Reflect.construct(c,arguments,o)}else n=c.apply(this,arguments);return m()(this,n)}}var k=function(e){s()(n,e);var t=w(n);function n(){return o()(this,n),t.apply(this,arguments)}return i()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.hasAction,c=e.hasDate,o=e.hasSubtitle,a=e.lines,i=p()("woocommerce-activity-card is-loading",t);return Object(f.createElement)("div",{className:i,"aria-hidden":!0},Object(f.createElement)("span",{className:"woocommerce-activity-card__icon"},Object(f.createElement)("span",{className:"is-placeholder"})),Object(f.createElement)("div",{className:"woocommerce-activity-card__header"},Object(f.createElement)("div",{className:"woocommerce-activity-card__title is-placeholder"}),o&&Object(f.createElement)("div",{className:"woocommerce-activity-card__subtitle is-placeholder"}),c&&Object(f.createElement)("div",{className:"woocommerce-activity-card__date"},Object(f.createElement)("span",{className:"is-placeholder"}))),Object(f.createElement)("div",{className:"woocommerce-activity-card__body"},Object(E.range)(a).map((function(e){return Object(f.createElement)("span",{className:"is-placeholder",key:e})}))),n&&Object(f.createElement)("div",{className:"woocommerce-activity-card__actions"},Object(f.createElement)("span",{className:"is-placeholder"})))}}]),n}(f.Component);k.propTypes={className:g.a.string,hasAction:g.a.bool,hasDate:g.a.bool,hasSubtitle:g.a.bool,lines:g.a.number},k.defaultProps={hasAction:!1,hasDate:!1,hasSubtitle:!1,lines:1};var R=k;function C(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var o=d()(this).constructor;n=Reflect.construct(c,arguments,o)}else n=c.apply(this,arguments);return m()(this,n)}}var x=function(e){s()(n,e);var t=C(n);function n(){return o()(this,n),t.apply(this,arguments)}return i()(n,[{key:"getCard",value:function(){var e=this.props,t=e.actions,n=e.className,c=e.children,o=e.date,a=e.icon,i=e.subtitle,r=e.title,s=e.unread,l=p()("woocommerce-activity-card",n),m=Array.isArray(t)?t:[t],u=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(o)?O.a.utc(o).fromNow():o;return Object(f.createElement)("section",{className:l},s&&Object(f.createElement)("span",{className:"woocommerce-activity-card__unread"}),a&&Object(f.createElement)("span",{className:"woocommerce-activity-card__icon","aria-hidden":!0},a),r&&Object(f.createElement)("header",{className:"woocommerce-activity-card__header"},Object(f.createElement)(j.H,{className:"woocommerce-activity-card__title"},r),i&&Object(f.createElement)("div",{className:"woocommerce-activity-card__subtitle"},i),u&&Object(f.createElement)("span",{className:"woocommerce-activity-card__date"},u)),c&&Object(f.createElement)(j.Section,{className:"woocommerce-activity-card__body"},c),t&&Object(f.createElement)("footer",{className:"woocommerce-activity-card__actions"},m.map((function(e,t){return Object(f.cloneElement)(e,{key:t})}))))}},{key:"render",value:function(){var e=this.props.onClick;return e?Object(f.createElement)(N.Button,{className:"woocommerce-activity-card__button",onClick:e},this.getCard()):this.getCard()}}]),n}(f.Component);x.propTypes={actions:g.a.oneOfType([g.a.arrayOf(g.a.element),g.a.element]),onClick:g.a.func,className:g.a.string,children:g.a.node,date:g.a.string,icon:g.a.node,subtitle:g.a.node,title:g.a.oneOfType([g.a.string,g.a.node]),unread:g.a.bool},x.defaultProps={icon:Object(f.createElement)(v.a,{size:48}),unread:!1}},668:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return o}));n(118),n(238),n(257),n(253),n(159);function c(){var e,t="",n=(e=window.location.search)?e.substr(1).split("&").reduce((function(e,t){var n=t.split("="),c=n[0],o=decodeURIComponent(n[1]);return o=isNaN(Number(o))?o:Number(o),e[c]=o,e}),{}):{},c=n.page,o=n.path,a=n.post_type;if(c){var i="wc-admin"===c?"home_screen":c;t=o?o.replace(/\//g,"_").substring(1):i}else a&&(t=a);return t}var o=function(e,t){return e.reduce((function(e,n){return e[t(n)?0:1].push(n),e}),[[],[]])}},679:function(e,t,n){},685:function(e,t,n){},733:function(e,t,n){"use strict";n.r(t);var c=n(30),o=n.n(c),a=n(66),i=n.n(a),r=n(0),s=(n(117),n(83),n(2)),l=n(34),m=n(112),u=n(33),d=n(15),f=n(444),b=n(443),p=n(644),_=(n(174),n(13)),v=n.n(_),h=n(14),O=n.n(h),y=n(16),g=n.n(y),j=n(17),N=n.n(j),E=n(7),w=n.n(E),k=n(1),R=n.n(k);function C(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=w()(e);if(t){var o=w()(this).constructor;n=Reflect.construct(c,arguments,o)}else n=c.apply(this,arguments);return N()(this,n)}}var x=function(e){g()(n,e);var t=C(n);function n(){return v()(this,n),t.apply(this,arguments)}return O()(n,[{key:"render",value:function(){var e=this.props.className;return Object(r.createElement)("div",{className:"woocommerce-inbox-message is-placeholder ".concat(e),"aria-hidden":!0},Object(r.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(r.createElement)("div",{className:"woocommerce-inbox-message__content"},Object(r.createElement)("div",{className:"woocommerce-inbox-message__date"},Object(r.createElement)("div",{className:"sixth-line"})),Object(r.createElement)("div",{className:"woocommerce-inbox-message__title"},Object(r.createElement)("div",{className:"line"}),Object(r.createElement)("div",{className:"line"})),Object(r.createElement)("div",{className:"woocommerce-inbox-message__text"},Object(r.createElement)("div",{className:"line"}),Object(r.createElement)("div",{className:"third-line"}))),Object(r.createElement)("div",{className:"woocommerce-inbox-message__actions"},Object(r.createElement)("div",{className:"fifth-line"}),Object(r.createElement)("div",{className:"fifth-line"}))))}}]),n}(r.Component);x.propTypes={className:R.a.string};var A=x,D=n(10),B=n.n(D),T=n(4),S=n.n(T),M=(n(276),n(108),n(205),n(5)),U=n(666),P=n.n(U),L=n(21),q=n.n(L),I=n(9),F=n.n(I),Y=n(44),V=(n(667),n(42));function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=w()(e);if(t){var o=w()(this).constructor;n=Reflect.construct(c,arguments,o)}else n=c.apply(this,arguments);return N()(this,n)}}var z=function(e){g()(n,e);var t=W(n);function n(e){var c;return v()(this,n),(c=t.call(this,e)).state={inAction:!1},c.handleActionClick=c.handleActionClick.bind(B()(c)),c}return O()(n,[{key:"handleActionClick",value:function(e){var t=this.props,n=t.action,c=t.actionCallback,o=t.batchUpdateNotes,a=t.createNotice,i=t.noteId,r=t.triggerNoteAction,l=t.removeAllNotes,m=t.removeNote,u=t.onClick,d=t.updateNote,f=e.target.href||"",b=!0;f.length&&!f.startsWith(V.a)&&(e.preventDefault(),b=!1,window.open(f,"_blank")),n?this.setState({inAction:b},(function(){r(i,n.id),u&&u()})):(i?m(i).then((function(){a("success",Object(s.__)("Message dismissed",'woocommerce'),{actions:[{label:Object(s.__)("Undo",'woocommerce'),onClick:function(){d(i,{is_deleted:0})}}]})})).catch((function(){a("error",Object(s.__)("Message could not be dismissed",'woocommerce'))})):l().then((function(e){a("success",Object(s.__)("All messages dismissed",'woocommerce'),{actions:[{label:Object(s.__)("Undo",'woocommerce'),onClick:function(){o(e.map((function(e){return e.id})),{is_deleted:0})}}]})})).catch((function(){a("error",Object(s.__)("Message could not be dismissed",'woocommerce'))})),c(!0))}},{key:"render",value:function(){var e=this.props,t=e.action,n=e.dismiss,c=e.label;return Object(r.createElement)(M.Button,{isSecondary:!0,isBusy:this.state.inAction,disabled:this.state.inAction,href:t&&t.url&&t.url.length?t.url:void 0,onClick:this.handleActionClick},n?c:t.label)}}]),n}(r.Component);z.propTypes={noteId:R.a.number,label:R.a.string,dismiss:R.a.bool,actionCallback:R.a.func,action:R.a.shape({id:R.a.number.isRequired,url:R.a.string,label:R.a.string.isRequired,primary:R.a.bool.isRequired}),onClick:R.a.func};var H=Object(l.compose)(Object(d.withDispatch)((function(e){var t=e("core/notices").createNotice,n=e(u.NOTES_STORE_NAME),c=n.batchUpdateNotes,o=n.removeAllNotes,a=n.removeNote,i=n.updateNote;return{batchUpdateNotes:c,createNotice:t,removeAllNotes:o,removeNote:a,triggerNoteAction:n.triggerNoteAction,updateNote:i}})))(z),J=n(640),Q=(n(685),n(668));function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=w()(e);if(t){var o=w()(this).constructor;n=Reflect.construct(c,arguments,o)}else n=c.apply(this,arguments);return N()(this,n)}}var Z=function(e){g()(n,e);var t=G(n);function n(e){var c;return v()(this,n),c=t.call(this,e),S()(B()(c),"onActionClicked",(function(e){e.actioned_text&&c.setState({clickedActionText:e.actioned_text})})),c.onVisible=c.onVisible.bind(B()(c)),c.hasBeenSeen=!1,c.state={isDismissModalOpen:!1,dismissType:null,clickedActionText:null},c.openDismissModal=c.openDismissModal.bind(B()(c)),c.closeDismissModal=c.closeDismissModal.bind(B()(c)),c.bodyNotificationRef=Object(r.createRef)(),c.toggleButtonRef=Object(r.createRef)(),c.screen=Object(Q.a)(),c}return O()(n,[{key:"componentDidMount",value:function(){var e=this;this.bodyNotificationRef.current&&this.bodyNotificationRef.current.addEventListener("click",(function(t){return e.handleBodyClick(t,e.props)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.bodyNotificationRef.current&&this.bodyNotificationRef.current.removeEventListener("click",(function(t){return e.handleBodyClick(t,e.props)}))}},{key:"handleBodyClick",value:function(e,t){var n=e.target.href;if(n){var c=t.note;Object(Y.recordEvent)("wcadmin_inbox_action_click",{note_name:c.name,note_title:c.title,note_content_inner_link:n})}}},{key:"onVisible",value:function(e){if(e&&!this.hasBeenSeen){var t=this.props.note;Object(Y.recordEvent)("inbox_note_view",{note_content:t.content,note_name:t.name,note_title:t.title,note_type:t.type,screen:this.screen}),this.hasBeenSeen=!0}}},{key:"openDismissModal",value:function(e,t){this.setState({isDismissModalOpen:!0,dismissType:e}),t()}},{key:"closeDismissModal",value:function(e){var t=this.state.dismissType,n=this.props.note,c="all"===t;Object(Y.recordEvent)("inbox_action_dismiss",{note_name:n.name,note_title:n.title,note_name_dismiss_all:c,note_name_dismiss_confirmation:e||!1,screen:this.screen}),this.setState({isDismissModalOpen:!1})}},{key:"handleBlur",value:function(e,t){var n;if(e.relatedTarget)n=e.relatedTarget;else if(this.toggleButtonRef.current){var c=this.toggleButtonRef.current.ownerDocument;n=c?c.activeElement:null}!!n&&["woocommerce-admin-dismiss-notification","components-popover__content"].some((function(e){return n.className.includes(e)}))?e.preventDefault():t()}},{key:"renderDismissButton",value:function(){var e=this;return this.state.clickedActionText?null:Object(r.createElement)(M.Dropdown,{contentClassName:"woocommerce-admin-dismiss-dropdown",position:"bottom right",renderToggle:function(t){var n=t.onClose,c=t.onToggle;return Object(r.createElement)(M.Button,{isTertiary:!0,onClick:c,ref:e.toggleButtonRef,onBlur:function(t){return e.handleBlur(t,n)}},Object(s.__)("Dismiss",'woocommerce'))},focusOnMount:!1,popoverProps:{noArrow:!0},renderContent:function(t){var n=t.onToggle;return Object(r.createElement)("ul",null,Object(r.createElement)("li",null,Object(r.createElement)(M.Button,{className:"woocommerce-admin-dismiss-notification",onClick:function(){return e.openDismissModal("this",n)}},Object(s.__)("Dismiss this message",'woocommerce'))),Object(r.createElement)("li",null,Object(r.createElement)(M.Button,{className:"woocommerce-admin-dismiss-notification",onClick:function(){return e.openDismissModal("all",n)}},Object(s.__)("Dismiss all messages",'woocommerce'))))}})}},{key:"getDismissConfirmationButton",value:function(){var e=this.props.note,t=this.state.dismissType;return Object(r.createElement)(H,{key:e.id,noteId:"all"===t?null:e.id,label:Object(s.__)("Yes, I'm sure",'woocommerce'),actionCallback:this.closeDismissModal,dismiss:!0,screen:this.screen})}},{key:"renderDismissConfirmationModal",value:function(){var e=this;return Object(r.createElement)(M.Modal,{title:Object(r.createElement)(r.Fragment,null,Object(s.__)("Are you sure?",'woocommerce')),onRequestClose:function(){return e.closeDismissModal()},className:"woocommerce-inbox-dismiss-confirmation_modal"},Object(r.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_wrapper"},Object(r.createElement)("p",null,Object(s.__)("Dismissed messages cannot be viewed again",'woocommerce')),Object(r.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_buttons"},Object(r.createElement)(M.Button,{isSecondary:!0,onClick:function(){return e.closeDismissModal()}},Object(s.__)("Cancel",'woocommerce')),this.getDismissConfirmationButton())))}},{key:"renderActions",value:function(e){var t=this,n=e.actions,c=e.id,o=this.state.clickedActionText;return o||(n?Object(r.createElement)(r.Fragment,null,n.map((function(e,n){return Object(r.createElement)(H,{key:n,noteId:c,action:e,onClick:function(){return t.onActionClicked(e)}})}))):void 0)}},{key:"render",value:function(){var e=this.props,t=e.lastRead,n=e.note,c=this.state.isDismissModalOpen,o=n.content,a=n.date_created,i=n.date_created_gmt,s=n.image,l=n.is_deleted,u=n.layout,d=n.status,f=n.title;if(l)return null;var b=!t||!i||new Date(i+"Z").getTime()>t,p=a,_="plain"!==u&&""!==u,v=F()("woocommerce-inbox-message",u,{"message-is-unread":b&&"unactioned"===d});return Object(r.createElement)(P.a,{onChange:this.onVisible},Object(r.createElement)("section",{className:v},_&&Object(r.createElement)("div",{className:"woocommerce-inbox-message__image"},Object(r.createElement)("img",{src:s,alt:""})),Object(r.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(r.createElement)("div",{className:"woocommerce-inbox-message__content"},b&&Object(r.createElement)("div",{className:"woocommerce-inbox-message__unread-indicator"}),p&&Object(r.createElement)("span",{className:"woocommerce-inbox-message__date"},q.a.utc(p).fromNow()),Object(r.createElement)(m.H,{className:"woocommerce-inbox-message__title"},f),Object(r.createElement)(m.Section,{className:"woocommerce-inbox-message__text"},Object(r.createElement)("span",{dangerouslySetInnerHTML:Object(J.a)(o),ref:this.bodyNotificationRef}))),Object(r.createElement)("div",{className:"woocommerce-inbox-message__actions"},this.renderActions(n),this.renderDismissButton())),c&&this.renderDismissConfirmationModal()))}}]),n}(r.Component);Z.propTypes={note:R.a.shape({id:R.a.number,status:R.a.string,title:R.a.string,content:R.a.string,date_created:R.a.string,date_created_gmt:R.a.string,actions:R.a.arrayOf(R.a.shape({id:R.a.number.isRequired,url:R.a.string,label:R.a.string.isRequired,primary:R.a.bool.isRequired})),layout:R.a.string,image:R.a.string,is_deleted:R.a.bool}),lastRead:R.a.number};var K=Z,X=n(336),$=function(e){var t=e.hasNotes,n=e.isBatchUpdating,c=e.lastRead,o=e.notes;if(!n){if(!t)return Object(r.createElement)(p.a,{className:"woocommerce-empty-activity-card",title:Object(s.__)("Your inbox is empty",'woocommerce'),icon:!1},Object(s.__)("As things begin to happen in your store your inbox will start to fill up. You'll see things like achievements, new feature announcements, extension recommendations and more!",'woocommerce'));var a=Object.keys(o).map((function(e){return o[e]}));return Object(r.createElement)(f.a,{role:"menu"},a.map((function(e){var t=e.id;return e.is_deleted?null:Object(r.createElement)(b.a,{key:t,timeout:500,classNames:"woocommerce-inbox-message"},Object(r.createElement)(K,{key:t,note:e,lastRead:c}))})))}},ee={page:1,per_page:u.QUERY_DEFAULTS.pageSize,status:"unactioned",type:u.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc",_fields:["id","name","title","content","type","status","actions","date_created","date_created_gmt","layout","image","is_deleted"]};t.default=Object(l.compose)(Object(d.withSelect)((function(e){var t=e(u.NOTES_STORE_NAME),n=t.getNotes,c=t.getNotesError,o=t.isResolving,a=t.isNotesRequesting;return{notes:n(ee),isError:Boolean(c("getNotes",[ee])),isResolving:o("getNotes",[ee]),isBatchUpdating:a("batchUpdateNotes")}})))((function(e){var t=e.isError,n=e.isResolving,c=e.isBatchUpdating,a=e.notes,l=Object(u.useUserPreferences)(),d=l.updateUserPreferences,f=i()(l,["updateUserPreferences"]),b=Object(r.useState)(f.activity_panel_inbox_last_read),p=o()(b,1)[0];if(Object(r.useEffect)((function(){var e=Date.now();d({activity_panel_inbox_last_read:e})}),[]),t){var _=Object(s.__)("There was an error getting your inbox. Please try again.",'woocommerce'),v=Object(s.__)("Reload",'woocommerce');return Object(r.createElement)(m.EmptyContent,{title:_,actionLabel:v,actionURL:null,actionCallback:function(){window.location.reload()}})}var h=Object(X.b)(a);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"woocommerce-homepage-notes-wrapper"},(n||c)&&Object(r.createElement)(m.Section,null,Object(r.createElement)(A,{className:"banner message-is-unread"})),Object(r.createElement)(m.Section,null,!n&&!c&&$({hasNotes:h,isBatchUpdating:c,lastRead:p,notes:a}))))}))}}]);
packages/woocommerce-admin/dist/chunks/47.style.css CHANGED
@@ -1 +1 @@
1
- :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-recommended-payments-card{margin:0 15px 10px 0;animation:isLoaded;animation-duration:2s}.woocommerce-recommended-payments-card .woocommerce-list__item>.woocommerce-list__item-inner{align-items:flex-start}.woocommerce-recommended-payments-card .woocommerce-list__item:hover{background-color:#fff}.woocommerce-recommended-payments-card .woocommerce-list__item:hover .woocommerce-list__item-title{color:#1e1e1e}.woocommerce-recommended-payments-card .woocommerce-list__item-title{font-size:14px;color:#1e1e1e;font-weight:600}.woocommerce-recommended-payments-card .woocommerce-review-activity-card__section-controls{text-align:center}.woocommerce-recommended-payments-card .components-card__body{padding:0}.woocommerce-recommended-payments-card .woocommerce-pill{margin-left:4px;padding:2px 8px}@media (max-width:480px){.woocommerce-recommended-payments-card .woocommerce-pill{margin-top:4px;margin-bottom:4px}}.woocommerce-recommended-payments-card .components-card__footer{padding:16px 24px}.woocommerce-recommended-payments-card .woocommerce-list__item-enter{opacity:0;max-height:100vh;transform:none}.woocommerce-recommended-payments-card .woocommerce-list__item-enter-active{opacity:1;transition:opacity .2s}.woocommerce-recommended-payments-card .woocommerce-list__item-after .components-button{margin-left:12px}.woocommerce-recommended-payments-card .woocommerce-list__item-text,.woocommerce-recommended-payments-card .woocommerce-recommended-payments__header-heading{max-width:749px}@media (max-width:782px){.woocommerce-recommended-payments-card{margin:0 0 10px}}
1
+ :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-recommended-payments-card{margin:0 15px 10px 0;animation:isLoaded;animation-duration:.25s}.woocommerce-recommended-payments-card .woocommerce-list__item>.woocommerce-list__item-inner{align-items:flex-start}.woocommerce-recommended-payments-card .woocommerce-list__item:hover{background-color:#fff}.woocommerce-recommended-payments-card .woocommerce-list__item:hover .woocommerce-list__item-title{color:#1e1e1e}.woocommerce-recommended-payments-card .woocommerce-list__item-title{font-size:14px;color:#1e1e1e;font-weight:600}.woocommerce-recommended-payments-card .woocommerce-review-activity-card__section-controls{text-align:center}.woocommerce-recommended-payments-card .components-card__body{padding:0}.woocommerce-recommended-payments-card .woocommerce-pill{margin-left:4px;padding:2px 8px}@media (max-width:480px){.woocommerce-recommended-payments-card .woocommerce-pill{margin-top:4px;margin-bottom:4px}}.woocommerce-recommended-payments-card .components-card__footer{padding:16px 24px}.woocommerce-recommended-payments-card .components-card__footer .gridicon{margin-left:4px}.woocommerce-recommended-payments-card .woocommerce-list__item-enter{opacity:0;max-height:100vh;transform:none}.woocommerce-recommended-payments-card .woocommerce-list__item-enter-active{opacity:1;transition:opacity .2s}.woocommerce-recommended-payments-card .woocommerce-list__item-after .components-button{margin-left:12px}.woocommerce-recommended-payments-card .woocommerce-list__item-text,.woocommerce-recommended-payments-card .woocommerce-recommended-payments__header-heading{max-width:749px}@media (max-width:782px){.woocommerce-recommended-payments-card{margin:0 0 10px}}
packages/woocommerce-admin/dist/chunks/47.style.rtl.css CHANGED
@@ -1 +1 @@
1
- :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-recommended-payments-card{margin:0 0 10px 15px;animation:isLoaded;animation-duration:2s}.woocommerce-recommended-payments-card .woocommerce-list__item>.woocommerce-list__item-inner{align-items:flex-start}.woocommerce-recommended-payments-card .woocommerce-list__item:hover{background-color:#fff}.woocommerce-recommended-payments-card .woocommerce-list__item:hover .woocommerce-list__item-title{color:#1e1e1e}.woocommerce-recommended-payments-card .woocommerce-list__item-title{font-size:14px;color:#1e1e1e;font-weight:600}.woocommerce-recommended-payments-card .woocommerce-review-activity-card__section-controls{text-align:center}.woocommerce-recommended-payments-card .components-card__body{padding:0}.woocommerce-recommended-payments-card .woocommerce-pill{margin-right:4px;padding:2px 8px}@media (max-width:480px){.woocommerce-recommended-payments-card .woocommerce-pill{margin-top:4px;margin-bottom:4px}}.woocommerce-recommended-payments-card .components-card__footer{padding:16px 24px}.woocommerce-recommended-payments-card .woocommerce-list__item-enter{opacity:0;max-height:100vh;transform:none}.woocommerce-recommended-payments-card .woocommerce-list__item-enter-active{opacity:1;transition:opacity .2s}.woocommerce-recommended-payments-card .woocommerce-list__item-after .components-button{margin-right:12px}.woocommerce-recommended-payments-card .woocommerce-list__item-text,.woocommerce-recommended-payments-card .woocommerce-recommended-payments__header-heading{max-width:749px}@media (max-width:782px){.woocommerce-recommended-payments-card{margin:0 0 10px}}
1
+ :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-recommended-payments-card{margin:0 0 10px 15px;animation:isLoaded;animation-duration:.25s}.woocommerce-recommended-payments-card .woocommerce-list__item>.woocommerce-list__item-inner{align-items:flex-start}.woocommerce-recommended-payments-card .woocommerce-list__item:hover{background-color:#fff}.woocommerce-recommended-payments-card .woocommerce-list__item:hover .woocommerce-list__item-title{color:#1e1e1e}.woocommerce-recommended-payments-card .woocommerce-list__item-title{font-size:14px;color:#1e1e1e;font-weight:600}.woocommerce-recommended-payments-card .woocommerce-review-activity-card__section-controls{text-align:center}.woocommerce-recommended-payments-card .components-card__body{padding:0}.woocommerce-recommended-payments-card .woocommerce-pill{margin-right:4px;padding:2px 8px}@media (max-width:480px){.woocommerce-recommended-payments-card .woocommerce-pill{margin-top:4px;margin-bottom:4px}}.woocommerce-recommended-payments-card .components-card__footer{padding:16px 24px}.woocommerce-recommended-payments-card .components-card__footer .gridicon{margin-right:4px}.woocommerce-recommended-payments-card .woocommerce-list__item-enter{opacity:0;max-height:100vh;transform:none}.woocommerce-recommended-payments-card .woocommerce-list__item-enter-active{opacity:1;transition:opacity .2s}.woocommerce-recommended-payments-card .woocommerce-list__item-after .components-button{margin-right:12px}.woocommerce-recommended-payments-card .woocommerce-list__item-text,.woocommerce-recommended-payments-card .woocommerce-recommended-payments__header-heading{max-width:749px}@media (max-width:782px){.woocommerce-recommended-payments-card{margin:0 0 10px}}
packages/woocommerce-admin/dist/chunks/5.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[5],{638:function(e,t,r){"use strict";r.d(t,"e",(function(){return u})),r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return b})),r.d(t,"d",(function(){return f})),r.d(t,"f",(function(){return _})),r.d(t,"h",(function(){return O})),r.d(t,"g",(function(){return v}));r(113),r(157),r(282),r(115),r(281);var a=r(38),o=r(48),n=r.n(o),c=r(3),i=r(28),l=r(33),m=r(42),s=r(641);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.identity;return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1?arguments[1]:void 0,c="function"==typeof e?e(o):e,l=Object(i.getIdsFromQuery)(r);if(l.length<1)return Promise.resolve([]);var m={include:l.join(","),per_page:l.length};return n()({path:Object(a.addQueryArgs)(c,m)}).then((function(e){return e.map(t)}))}}u(l.NAMESPACE+"/products/attributes",(function(e){return{key:e.id,label:e.name}}));var d=u(l.NAMESPACE+"/products/categories",(function(e){return{key:e.id,label:e.name}})),p=u(l.NAMESPACE+"/coupons",(function(e){return{key:e.id,label:e.code}})),b=u(l.NAMESPACE+"/customers",(function(e){return{key:e.id,label:e.name}})),f=u(l.NAMESPACE+"/products",(function(e){return{key:e.id,label:e.name}})),_=u(l.NAMESPACE+"/taxes",(function(e){return{key:e.id,label:Object(s.a)(e)}}));function O(e){var t=e.attributes,r=e.name,a=Object(m.g)("variationTitleAttributesSeparator"," - ");if(r.indexOf(a)>-1)return r;var o=t.map((function(e){return e.option})).join(", ");return o?r+a+o:r}var v=u((function(e){var t=e.products;return t?l.NAMESPACE+"/products/".concat(t,"/variations"):l.NAMESPACE+"/variations"}),(function(e){return{key:e.id,label:O(e)}}))},639:function(e,t,r){"use strict";var a=r(26),o=r(285).trim;a({target:"String",proto:!0,forced:r(640)("trim")},{trim:function(){return o(this)}})},640:function(e,t,r){var a=r(12),o=r(286);e.exports=function(e){return a((function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e}))}},641:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r(282),r(131),r(115),r(281),r(639),r(113),r(258);var a=r(2);function o(e){return[e.country,e.state,e.name||Object(a.__)("TAX",'woocommerce'),e.priority].map((function(e){return e.toString().toUpperCase().trim()})).filter(Boolean).join("-")}},642:function(e,t,r){"use strict";r(174),r(83),r(125),r(131),r(150),r(151);var a=r(4),o=r.n(a),n=r(13),c=r.n(n),i=r(14),l=r.n(i),m=r(16),s=r.n(m),u=r(17),d=r.n(u),p=r(7),b=r.n(p),f=r(0),_=(r(115),r(126),r(127),r(116),r(255),r(2)),O=r(34),v=r(184),y=r(15),j=r(3),g=r(1),h=r.n(g),w=r(111),S=r(33),R=r(57),C=r(636),x=r(637),D=(r(284),r(107),r(204),r(28));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 A(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){o()(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=b()(e);if(t){var o=b()(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return d()(this,r)}}var q=function(e){s()(r,e);var t=P(r);function r(){return c()(this,r),t.apply(this,arguments)}return l()(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(j.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}}})),A({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,o=e.selectedChart,n=e.defaultDateRange,c=Object(R.getIntervalForQuery)(t),i=Object(R.getCurrentDates)(t,n),l=i.primary,m=i.secondary;return r.data.intervals.map((function(e,r){var n=Object(R.getPreviousDate)(e.date_start,l.after,m.after,t.compare,c),i=a.data.intervals[r];return{date:Object(v.format)("Y-m-d\\TH:i:s",e.date_start),primary:{label:"".concat(l.label," (").concat(l.range,")"),labelDate:e.date_start,value:e.subtotals[o.key]||0},secondary:{label:"".concat(m.label," (").concat(m.range,")"),labelDate:n.format("YYYY-MM-DD HH:mm:ss"),value:i&&i.subtotals[o.key]||0}}}))}},{key:"getTimeChartTotals",value:function(){var e=this.props,t=e.primaryData,r=e.secondaryData,a=e.selectedChart;return{primary:Object(j.get)(t,["data","totals",a.key],null),secondary:Object(j.get)(r,["data","totals",a.key],null)}}},{key:"renderChart",value:function(e,t,r,a){var o=this.props,n=o.emptySearchResults,c=o.filterParam,i=o.interactiveLegend,l=o.itemsLabel,m=o.legendPosition,s=o.path,u=o.query,d=o.selectedChart,p=o.showHeaderControls,b=o.primaryData,O=Object(R.getIntervalForQuery)(u),v=Object(R.getAllowedIntervalsForQuery)(u),y=Object(R.getDateFormatsForInterval)(O,b.data.intervals.length),j=n?Object(_.__)("No data for the current search",'woocommerce'):Object(_.__)("No data for the selected date range",'woocommerce'),g=this.context,h=g.formatAmount,C=g.getCurrencyConfig;return Object(f.createElement)(w.Chart,{allowedIntervals:v,data:r,dateParser:"%Y-%m-%dT%H:%M:%S",emptyMessage:j,filterParam:c,interactiveLegend:i,interval:O,isRequesting:t,itemsLabel:l,legendPosition:m,legendTotals:a,mode:e,path:s,query:u,screenReaderFormat:y.screenReaderFormat,showHeaderControls:p,title:d.label,tooltipLabelFormat:y.tooltipLabelFormat,tooltipTitle:"time-comparison"===e&&d.label||null,tooltipValueFormat:Object(S.getTooltipValueFormat)(d.type,h),chartType:Object(R.getChartTypeForQuery)(u),valueType:d.type,xFormat:y.xFormat,x2Format:y.x2Format,currency:C()})}},{key:"renderItemComparison",value:function(){var e=this.props,t=e.isRequesting,r=e.primaryData;if(r.isError)return Object(f.createElement)(x.a,{isError:!0});var a=t||r.isRequesting,o=this.getItemChartData();return this.renderChart("item-comparison",a,o)}},{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(f.createElement)(x.a,{isError:!0});var o=t||r.isRequesting||a.isRequesting,n=this.getTimeChartData(),c=this.getTimeChartTotals();return this.renderChart("time-comparison",o,n,c)}},{key:"render",value:function(){return"item-comparison"===this.props.mode?this.renderItemComparison():this.renderTimeComparison()}}]),r}(f.Component);q.contextType=C.a,q.propTypes={filters:h.a.array,isRequesting:h.a.bool,itemsLabel:h.a.string,limitProperties:h.a.array,mode:h.a.string,path:h.a.string.isRequired,primaryData:h.a.object,query:h.a.object.isRequired,secondaryData:h.a.object,selectedChart:h.a.shape({key:h.a.string.isRequired,label:h.a.string.isRequired,order:h.a.oneOf(["asc","desc"]),orderby:h.a.string,type:h.a.oneOf(["average","number","currency"]).isRequired}).isRequired},q.defaultProps={isRequesting:!1,primaryData:{data:{intervals:[]},isError:!1,isRequesting:!1},secondaryData:{data:{intervals:[]},isError:!1,isRequesting:!1}};t.a=Object(O.compose)(Object(y.withSelect)((function(e,t){var r=t.charts,a=t.endpoint,o=t.filters,n=t.isRequesting,c=t.limitProperties,i=t.query,l=t.advancedFilters,m=c||[a],s=function e(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||0===t.length)return null;var o=t.slice(0),n=o.pop();if(n.showFilters(r,a)){var c=Object(D.flattenFilters)(n.filters),i=r[n.param]||n.defaultValue||"all";return Object(j.find)(c,{value:i})}return e(o,r,a)}(o,i),u=Object(j.get)(s,["settings","param"]),d=t.mode||function(e,t){if(e&&t){var r=Object(j.get)(e,["settings","param"]);if(!r||Object.keys(t).includes(r))return Object(j.get)(e,["chartMode"])}return null}(s,i)||"time-comparison",p=e(S.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,b={mode:d,filterParam:u,defaultDateRange:p};if(n)return b;var f=m.some((function(e){return i[e]&&i[e].length}));if(i.search&&!f)return A(A({},b),{},{emptySearchResults:!0});var _=r&&r.map((function(e){return e.key})),O=Object(S.getReportChartData)({endpoint:a,dataType:"primary",query:i,select:e,limitBy:m,filters:o,advancedFilters:l,defaultDateRange:p,fields:_});if("item-comparison"===d)return A(A({},b),{},{primaryData:O});var v=Object(S.getReportChartData)({endpoint:a,dataType:"secondary",query:i,select:e,limitBy:m,filters:o,advancedFilters:l,defaultDateRange:p,fields:_});return A(A({},b),{},{primaryData:O,secondaryData:v})})))(q)},680:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return l})),r.d(t,"a",(function(){return m}));r(115),r(83);var a=r(2),o=r(101),n=r(42),c=r(638),i=Object(o.applyFilters)("woocommerce_admin_orders_report_charts",[{key:"orders_count",label:Object(a.__)("Orders",'woocommerce'),type:"number"},{key:"net_revenue",label:Object(a.__)("Net Sales",'woocommerce'),order:"desc",orderby:"net_total",type:"currency"},{key:"avg_order_value",label:Object(a.__)("Average Order Value",'woocommerce'),type:"currency"},{key:"avg_items_per_order",label:Object(a.__)("Average Items Per Order",'woocommerce'),order:"desc",orderby:"num_items_sold",type:"average"}]),l=Object(o.applyFilters)("woocommerce_admin_orders_report_filters",[{label:Object(a.__)("Show",'woocommerce'),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(a.__)("All Orders",'woocommerce'),value:"all"},{label:Object(a.__)("Advanced Filters",'woocommerce'),value:"advanced"}]}]),m=Object(o.applyFilters)("woocommerce_admin_orders_report_advanced_filters",{title:Object(a._x)("Orders Match {{select /}} Filters","A sentence describing filters for Orders. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ",'woocommerce'),filters:{status:{labels:{add:Object(a.__)("Order Status",'woocommerce'),remove:Object(a.__)("Remove order status filter",'woocommerce'),rule:Object(a.__)("Select an order status filter match",'woocommerce'),title:Object(a.__)("{{title}}Order Status{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select an order status",'woocommerce')},rules:[{value:"is",label:Object(a._x)("Is","order status",'woocommerce')},{value:"is_not",label:Object(a._x)("Is Not","order status",'woocommerce')}],input:{component:"SelectControl",options:Object.keys(n.d).map((function(e){return{value:e,label:n.d[e]}}))}},product:{labels:{add:Object(a.__)("Products",'woocommerce'),placeholder:Object(a.__)("Search products",'woocommerce'),remove:Object(a.__)("Remove products filter",'woocommerce'),rule:Object(a.__)("Select a product filter match",'woocommerce'),title:Object(a.__)("{{title}}Product{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select products",'woocommerce')},rules:[{value:"includes",label:Object(a._x)("Includes","products",'woocommerce')},{value:"excludes",label:Object(a._x)("Excludes","products",'woocommerce')}],input:{component:"Search",type:"products",getLabels:c.d}},variation:{labels:{add:Object(a.__)("Variations",'woocommerce'),placeholder:Object(a.__)("Search variations",'woocommerce'),remove:Object(a.__)("Remove variations filter",'woocommerce'),rule:Object(a.__)("Select a variation filter match",'woocommerce'),title:Object(a.__)("{{title}}Variation{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select variation",'woocommerce')},rules:[{value:"includes",label:Object(a._x)("Includes","variations",'woocommerce')},{value:"excludes",label:Object(a._x)("Excludes","variations",'woocommerce')}],input:{component:"Search",type:"variations",getLabels:c.g}},coupon:{labels:{add:Object(a.__)("Coupon Codes",'woocommerce'),placeholder:Object(a.__)("Search coupons",'woocommerce'),remove:Object(a.__)("Remove coupon filter",'woocommerce'),rule:Object(a.__)("Select a coupon filter match",'woocommerce'),title:Object(a.__)("{{title}}Coupon Code{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select coupon codes",'woocommerce')},rules:[{value:"includes",label:Object(a._x)("Includes","coupon code",'woocommerce')},{value:"excludes",label:Object(a._x)("Excludes","coupon code",'woocommerce')}],input:{component:"Search",type:"coupons",getLabels:c.b}},customer_type:{labels:{add:Object(a.__)("Customer Type",'woocommerce'),remove:Object(a.__)("Remove customer filter",'woocommerce'),rule:Object(a.__)("Select a customer filter match",'woocommerce'),title:Object(a.__)("{{title}}Customer is{{/title}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select a customer type",'woocommerce')},input:{component:"SelectControl",options:[{value:"new",label:Object(a.__)("New",'woocommerce')},{value:"returning",label:Object(a.__)("Returning",'woocommerce')}],defaultOption:"new"}},refunds:{labels:{add:Object(a.__)("Refunds",'woocommerce'),remove:Object(a.__)("Remove refunds filter",'woocommerce'),rule:Object(a.__)("Select a refund filter match",'woocommerce'),title:Object(a.__)("{{title}}Refunds{{/title}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select a refund type",'woocommerce')},input:{component:"SelectControl",options:[{value:"all",label:Object(a.__)("All",'woocommerce')},{value:"partial",label:Object(a.__)("Partially refunded",'woocommerce')},{value:"full",label:Object(a.__)("Fully refunded",'woocommerce')},{value:"none",label:Object(a.__)("None",'woocommerce')}],defaultOption:"all"}},tax_rate:{labels:{add:Object(a.__)("Tax Rates",'woocommerce'),placeholder:Object(a.__)("Search tax rates",'woocommerce'),remove:Object(a.__)("Remove tax rate filter",'woocommerce'),rule:Object(a.__)("Select a tax rate filter match",'woocommerce'),title:Object(a.__)("{{title}}Tax Rate{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select tax rates",'woocommerce')},rules:[{value:"includes",label:Object(a._x)("Includes","tax rate",'woocommerce')},{value:"excludes",label:Object(a._x)("Excludes","tax rate",'woocommerce')}],input:{component:"Search",type:"taxes",getLabels:c.f}},attribute:{allowMultiple:!0,labels:{add:Object(a.__)("Attribute",'woocommerce'),placeholder:Object(a.__)("Search attributes",'woocommerce'),remove:Object(a.__)("Remove attribute filter",'woocommerce'),rule:Object(a.__)("Select a product attribute filter match",'woocommerce'),title:Object(a.__)("{{title}}Attribute{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select attributes",'woocommerce')},rules:[{value:"is",label:Object(a._x)("Is","product attribute",'woocommerce')},{value:"is_not",label:Object(a._x)("Is Not","product attribute",'woocommerce')}],input:{component:"ProductAttribute"}}}})}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[5],{629:function(e,t,r){"use strict";r.d(t,"e",(function(){return u})),r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return b})),r.d(t,"d",(function(){return f})),r.d(t,"f",(function(){return _})),r.d(t,"h",(function(){return O})),r.d(t,"g",(function(){return v}));r(115),r(158),r(277),r(117),r(276);var a=r(38),o=r(48),n=r.n(o),c=r(3),i=r(28),l=r(33),m=r(42),s=r(632);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.identity;return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1?arguments[1]:void 0,c="function"==typeof e?e(o):e,l=Object(i.getIdsFromQuery)(r);if(l.length<1)return Promise.resolve([]);var m={include:l.join(","),per_page:l.length};return n()({path:Object(a.addQueryArgs)(c,m)}).then((function(e){return e.map(t)}))}}u(l.NAMESPACE+"/products/attributes",(function(e){return{key:e.id,label:e.name}}));var d=u(l.NAMESPACE+"/products/categories",(function(e){return{key:e.id,label:e.name}})),p=u(l.NAMESPACE+"/coupons",(function(e){return{key:e.id,label:e.code}})),b=u(l.NAMESPACE+"/customers",(function(e){return{key:e.id,label:e.name}})),f=u(l.NAMESPACE+"/products",(function(e){return{key:e.id,label:e.name}})),_=u(l.NAMESPACE+"/taxes",(function(e){return{key:e.id,label:Object(s.a)(e)}}));function O(e){var t=e.attributes,r=e.name,a=Object(m.g)("variationTitleAttributesSeparator"," - ");if(r.indexOf(a)>-1)return r;var o=t.map((function(e){return e.option})).join(", ");return o?r+a+o:r}var v=u((function(e){var t=e.products;return t?l.NAMESPACE+"/products/".concat(t,"/variations"):l.NAMESPACE+"/variations"}),(function(e){return{key:e.id,label:O(e)}}))},630:function(e,t,r){"use strict";var a=r(26),o=r(280).trim;a({target:"String",proto:!0,forced:r(631)("trim")},{trim:function(){return o(this)}})},631:function(e,t,r){var a=r(12),o=r(281);e.exports=function(e){return a((function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e}))}},632:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r(277),r(132),r(117),r(276),r(630),r(115),r(255);var a=r(2);function o(e){return[e.country,e.state,e.name||Object(a.__)("TAX",'woocommerce'),e.priority].map((function(e){return e.toString().toUpperCase().trim()})).filter(Boolean).join("-")}},633:function(e,t,r){"use strict";r(174),r(83),r(126),r(132),r(151),r(152);var a=r(4),o=r.n(a),n=r(13),c=r.n(n),i=r(14),l=r.n(i),m=r(16),s=r.n(m),u=r(17),d=r.n(u),p=r(7),b=r.n(p),f=r(0),_=(r(117),r(127),r(128),r(118),r(253),r(2)),O=r(34),v=r(185),y=r(15),j=r(3),g=r(1),h=r.n(g),w=r(112),S=r(33),R=r(57),C=r(627),x=r(628),D=(r(279),r(108),r(205),r(28));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 A(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){o()(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=b()(e);if(t){var o=b()(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return d()(this,r)}}var q=function(e){s()(r,e);var t=P(r);function r(){return c()(this,r),t.apply(this,arguments)}return l()(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(j.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}}})),A({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,o=e.selectedChart,n=e.defaultDateRange,c=Object(R.getIntervalForQuery)(t),i=Object(R.getCurrentDates)(t,n),l=i.primary,m=i.secondary;return r.data.intervals.map((function(e,r){var n=Object(R.getPreviousDate)(e.date_start,l.after,m.after,t.compare,c),i=a.data.intervals[r];return{date:Object(v.format)("Y-m-d\\TH:i:s",e.date_start),primary:{label:"".concat(l.label," (").concat(l.range,")"),labelDate:e.date_start,value:e.subtotals[o.key]||0},secondary:{label:"".concat(m.label," (").concat(m.range,")"),labelDate:n.format("YYYY-MM-DD HH:mm:ss"),value:i&&i.subtotals[o.key]||0}}}))}},{key:"getTimeChartTotals",value:function(){var e=this.props,t=e.primaryData,r=e.secondaryData,a=e.selectedChart;return{primary:Object(j.get)(t,["data","totals",a.key],null),secondary:Object(j.get)(r,["data","totals",a.key],null)}}},{key:"renderChart",value:function(e,t,r,a){var o=this.props,n=o.emptySearchResults,c=o.filterParam,i=o.interactiveLegend,l=o.itemsLabel,m=o.legendPosition,s=o.path,u=o.query,d=o.selectedChart,p=o.showHeaderControls,b=o.primaryData,O=Object(R.getIntervalForQuery)(u),v=Object(R.getAllowedIntervalsForQuery)(u),y=Object(R.getDateFormatsForInterval)(O,b.data.intervals.length),j=n?Object(_.__)("No data for the current search",'woocommerce'):Object(_.__)("No data for the selected date range",'woocommerce'),g=this.context,h=g.formatAmount,C=g.getCurrencyConfig;return Object(f.createElement)(w.Chart,{allowedIntervals:v,data:r,dateParser:"%Y-%m-%dT%H:%M:%S",emptyMessage:j,filterParam:c,interactiveLegend:i,interval:O,isRequesting:t,itemsLabel:l,legendPosition:m,legendTotals:a,mode:e,path:s,query:u,screenReaderFormat:y.screenReaderFormat,showHeaderControls:p,title:d.label,tooltipLabelFormat:y.tooltipLabelFormat,tooltipTitle:"time-comparison"===e&&d.label||null,tooltipValueFormat:Object(S.getTooltipValueFormat)(d.type,h),chartType:Object(R.getChartTypeForQuery)(u),valueType:d.type,xFormat:y.xFormat,x2Format:y.x2Format,currency:C()})}},{key:"renderItemComparison",value:function(){var e=this.props,t=e.isRequesting,r=e.primaryData;if(r.isError)return Object(f.createElement)(x.a,{isError:!0});var a=t||r.isRequesting,o=this.getItemChartData();return this.renderChart("item-comparison",a,o)}},{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(f.createElement)(x.a,{isError:!0});var o=t||r.isRequesting||a.isRequesting,n=this.getTimeChartData(),c=this.getTimeChartTotals();return this.renderChart("time-comparison",o,n,c)}},{key:"render",value:function(){return"item-comparison"===this.props.mode?this.renderItemComparison():this.renderTimeComparison()}}]),r}(f.Component);q.contextType=C.a,q.propTypes={filters:h.a.array,isRequesting:h.a.bool,itemsLabel:h.a.string,limitProperties:h.a.array,mode:h.a.string,path:h.a.string.isRequired,primaryData:h.a.object,query:h.a.object.isRequired,secondaryData:h.a.object,selectedChart:h.a.shape({key:h.a.string.isRequired,label:h.a.string.isRequired,order:h.a.oneOf(["asc","desc"]),orderby:h.a.string,type:h.a.oneOf(["average","number","currency"]).isRequired}).isRequired},q.defaultProps={isRequesting:!1,primaryData:{data:{intervals:[]},isError:!1,isRequesting:!1},secondaryData:{data:{intervals:[]},isError:!1,isRequesting:!1}};t.a=Object(O.compose)(Object(y.withSelect)((function(e,t){var r=t.charts,a=t.endpoint,o=t.filters,n=t.isRequesting,c=t.limitProperties,i=t.query,l=t.advancedFilters,m=c||[a],s=function e(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||0===t.length)return null;var o=t.slice(0),n=o.pop();if(n.showFilters(r,a)){var c=Object(D.flattenFilters)(n.filters),i=r[n.param]||n.defaultValue||"all";return Object(j.find)(c,{value:i})}return e(o,r,a)}(o,i),u=Object(j.get)(s,["settings","param"]),d=t.mode||function(e,t){if(e&&t){var r=Object(j.get)(e,["settings","param"]);if(!r||Object.keys(t).includes(r))return Object(j.get)(e,["chartMode"])}return null}(s,i)||"time-comparison",p=e(S.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,b={mode:d,filterParam:u,defaultDateRange:p};if(n)return b;var f=m.some((function(e){return i[e]&&i[e].length}));if(i.search&&!f)return A(A({},b),{},{emptySearchResults:!0});var _=r&&r.map((function(e){return e.key})),O=Object(S.getReportChartData)({endpoint:a,dataType:"primary",query:i,select:e,limitBy:m,filters:o,advancedFilters:l,defaultDateRange:p,fields:_});if("item-comparison"===d)return A(A({},b),{},{primaryData:O});var v=Object(S.getReportChartData)({endpoint:a,dataType:"secondary",query:i,select:e,limitBy:m,filters:o,advancedFilters:l,defaultDateRange:p,fields:_});return A(A({},b),{},{primaryData:O,secondaryData:v})})))(q)},670:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return l})),r.d(t,"a",(function(){return m}));r(117),r(83);var a=r(2),o=r(101),n=r(42),c=r(629),i=Object(o.applyFilters)("woocommerce_admin_orders_report_charts",[{key:"orders_count",label:Object(a.__)("Orders",'woocommerce'),type:"number"},{key:"net_revenue",label:Object(a.__)("Net Sales",'woocommerce'),order:"desc",orderby:"net_total",type:"currency"},{key:"avg_order_value",label:Object(a.__)("Average Order Value",'woocommerce'),type:"currency"},{key:"avg_items_per_order",label:Object(a.__)("Average Items Per Order",'woocommerce'),order:"desc",orderby:"num_items_sold",type:"average"}]),l=Object(o.applyFilters)("woocommerce_admin_orders_report_filters",[{label:Object(a.__)("Show",'woocommerce'),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(a.__)("All Orders",'woocommerce'),value:"all"},{label:Object(a.__)("Advanced Filters",'woocommerce'),value:"advanced"}]}]),m=Object(o.applyFilters)("woocommerce_admin_orders_report_advanced_filters",{title:Object(a._x)("Orders Match {{select /}} Filters","A sentence describing filters for Orders. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ",'woocommerce'),filters:{status:{labels:{add:Object(a.__)("Order Status",'woocommerce'),remove:Object(a.__)("Remove order status filter",'woocommerce'),rule:Object(a.__)("Select an order status filter match",'woocommerce'),title:Object(a.__)("{{title}}Order Status{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select an order status",'woocommerce')},rules:[{value:"is",label:Object(a._x)("Is","order status",'woocommerce')},{value:"is_not",label:Object(a._x)("Is Not","order status",'woocommerce')}],input:{component:"SelectControl",options:Object.keys(n.d).map((function(e){return{value:e,label:n.d[e]}}))}},product:{labels:{add:Object(a.__)("Products",'woocommerce'),placeholder:Object(a.__)("Search products",'woocommerce'),remove:Object(a.__)("Remove products filter",'woocommerce'),rule:Object(a.__)("Select a product filter match",'woocommerce'),title:Object(a.__)("{{title}}Product{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select products",'woocommerce')},rules:[{value:"includes",label:Object(a._x)("Includes","products",'woocommerce')},{value:"excludes",label:Object(a._x)("Excludes","products",'woocommerce')}],input:{component:"Search",type:"products",getLabels:c.d}},variation:{labels:{add:Object(a.__)("Variations",'woocommerce'),placeholder:Object(a.__)("Search variations",'woocommerce'),remove:Object(a.__)("Remove variations filter",'woocommerce'),rule:Object(a.__)("Select a variation filter match",'woocommerce'),title:Object(a.__)("{{title}}Variation{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select variation",'woocommerce')},rules:[{value:"includes",label:Object(a._x)("Includes","variations",'woocommerce')},{value:"excludes",label:Object(a._x)("Excludes","variations",'woocommerce')}],input:{component:"Search",type:"variations",getLabels:c.g}},coupon:{labels:{add:Object(a.__)("Coupon Codes",'woocommerce'),placeholder:Object(a.__)("Search coupons",'woocommerce'),remove:Object(a.__)("Remove coupon filter",'woocommerce'),rule:Object(a.__)("Select a coupon filter match",'woocommerce'),title:Object(a.__)("{{title}}Coupon Code{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select coupon codes",'woocommerce')},rules:[{value:"includes",label:Object(a._x)("Includes","coupon code",'woocommerce')},{value:"excludes",label:Object(a._x)("Excludes","coupon code",'woocommerce')}],input:{component:"Search",type:"coupons",getLabels:c.b}},customer_type:{labels:{add:Object(a.__)("Customer Type",'woocommerce'),remove:Object(a.__)("Remove customer filter",'woocommerce'),rule:Object(a.__)("Select a customer filter match",'woocommerce'),title:Object(a.__)("{{title}}Customer is{{/title}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select a customer type",'woocommerce')},input:{component:"SelectControl",options:[{value:"new",label:Object(a.__)("New",'woocommerce')},{value:"returning",label:Object(a.__)("Returning",'woocommerce')}],defaultOption:"new"}},refunds:{labels:{add:Object(a.__)("Refunds",'woocommerce'),remove:Object(a.__)("Remove refunds filter",'woocommerce'),rule:Object(a.__)("Select a refund filter match",'woocommerce'),title:Object(a.__)("{{title}}Refunds{{/title}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select a refund type",'woocommerce')},input:{component:"SelectControl",options:[{value:"all",label:Object(a.__)("All",'woocommerce')},{value:"partial",label:Object(a.__)("Partially refunded",'woocommerce')},{value:"full",label:Object(a.__)("Fully refunded",'woocommerce')},{value:"none",label:Object(a.__)("None",'woocommerce')}],defaultOption:"all"}},tax_rate:{labels:{add:Object(a.__)("Tax Rates",'woocommerce'),placeholder:Object(a.__)("Search tax rates",'woocommerce'),remove:Object(a.__)("Remove tax rate filter",'woocommerce'),rule:Object(a.__)("Select a tax rate filter match",'woocommerce'),title:Object(a.__)("{{title}}Tax Rate{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select tax rates",'woocommerce')},rules:[{value:"includes",label:Object(a._x)("Includes","tax rate",'woocommerce')},{value:"excludes",label:Object(a._x)("Excludes","tax rate",'woocommerce')}],input:{component:"Search",type:"taxes",getLabels:c.f}},attribute:{allowMultiple:!0,labels:{add:Object(a.__)("Attribute",'woocommerce'),placeholder:Object(a.__)("Search attributes",'woocommerce'),remove:Object(a.__)("Remove attribute filter",'woocommerce'),rule:Object(a.__)("Select a product attribute filter match",'woocommerce'),title:Object(a.__)("{{title}}Attribute{{/title}} {{rule /}} {{filter /}}",'woocommerce'),filter:Object(a.__)("Select attributes",'woocommerce')},rules:[{value:"is",label:Object(a._x)("Is","product attribute",'woocommerce')},{value:"is_not",label:Object(a._x)("Is Not","product attribute",'woocommerce')}],input:{component:"ProductAttribute"}}}})}}]);
packages/woocommerce-admin/dist/chunks/55.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[55,8],{194:function(e,t,n){"use strict";function o(e){return function(){return e}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},235:function(e,t,n){"use strict";var o=n(11),r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(194),a=n(236),l=n(237),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,o={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return o[e]}))):t.toString(36);var n,o}function u(e,t,n,o){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===r)return n(o,e,""===t?"."+s(e,0):t),1;var f=0,p=""===t?".":t+":";if(Array.isArray(e))for(var h=0;h<e.length;h++)f+=u(i=e[h],p+s(i,h),n,o);else{var d=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(d){0;for(var v,m=d.call(e),b=0;!(v=m.next()).done;)f+=u(i=v.value,p+s(i,b++),n,o)}else if("object"===l){0;var y=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return f}var f=/\/+/g;function p(e){return(""+e).replace(f,"$&/")}var h,d,v=m,m=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},b=function(e){a(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function y(e,t,n,o){this.result=e,this.keyPrefix=t,this.func=n,this.context=o,this.count=0}function g(e,t,n){var r,a,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,f=s.call(u,t,e.count++);Array.isArray(f)?w(f,l,n,i.thatReturnsArgument):null!=f&&(o.isValidElement(f)&&(r=f,a=c+(!f.key||t&&t.key===f.key?"":p(f.key)+"/")+n,f=o.cloneElement(r,{key:a},void 0!==r.props?r.props.children:void 0)),l.push(f))}function w(e,t,n,o,r){var i="";null!=n&&(i=p(n)+"/");var a=y.getPooled(t,i,o,r);!function(e,t,n){null==e||u(e,"",t,n)}(e,g,a),y.release(a)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h=function(e,t,n,o){if(this.instancePool.length){var r=this.instancePool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)},(d=y).instancePool=[],d.getPooled=h||v,d.poolSize||(d.poolSize=10),d.release=b;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(o.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)w(e[n],t,n,i.thatReturnsArgument);return t}},236:function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,i,a,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,i,a,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},237:function(e,t,n){"use strict";var o=n(194);e.exports=o},238:function(e,t,n){"use strict";function o(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(o)}},331:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,r=void 0===n?24:n,i=e.onClick,l=(e.icon,e.className),c=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-notice-outline",l,(t=r,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:s,height:r,width:r,onClick:i},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,i=n(11),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},337:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,r=void 0===n?24:n,i=e.onClick,l=(e.icon,e.className),c=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-star",l,(t=r,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:s,height:r,width:r,onClick:i},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})))};var r,i=n(11),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},438:function(e,t,n){"use strict";var o=n(26),r=n(439);o({target:"String",proto:!0,forced:n(440)("link")},{link:function(e){return r(this,"a","href",e)}})},439:function(e,t,n){var o=n(40),r=/"/g;e.exports=function(e,t,n,i){var a=String(o(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+String(i).replace(r,"&quot;")+'"'),l+">"+a+"</"+t+">"}},440:function(e,t,n){var o=n(12);e.exports=function(e){return o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},51:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=l(n(11)),i=l(n(235)),a=l(n(238));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,a,l,u,f,p,h,d,v=[],m={};for(p=0;p<e.length;p++)if("string"!==(f=e[p]).type){if(!t.hasOwnProperty(f.value)||void 0===t[f.value])throw new Error("Invalid interpolation, missing component node: `"+f.value+"`");if("object"!==o(t[f.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+f.value+"`","\n> "+c);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],l=p;break}v.push(t[f.value])}else v.push(f.value);return n&&(u=function(e,t){var n,o,r=t[e],i=0;for(o=e+1;o<t.length;o++)if((n=t[o]).value===r.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return o;i--}}throw new Error("Missing closing component token `"+r.value+"`")}(l,e),h=s(e.slice(l+1,u),t),a=r.default.cloneElement(n,{},h),v.push(a),u<e.length-1&&(d=s(e.slice(u+1),t),v=v.concat(d))),1===v.length?v[0]:(v.forEach((function(e,t){e&&(m["interpolation-child-"+t]=e)})),(0,i.default)(m))}t.default=function(e){var t=e.mixedString,n=e.components,r=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":o(n))){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,a.default)(t);try{return s(i,n)}catch(e){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},676:function(e,t,n){var o;o=function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(5)()},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t,n){var o=e.direction,r=e.value;switch(o){case"top":return n.top+r<t.top&&n.bottom>t.bottom&&n.left<t.left&&n.right>t.right;case"left":return n.left+r<t.left&&n.bottom>t.bottom&&n.top<t.top&&n.right>t.right;case"bottom":return n.bottom-r>t.bottom&&n.left<t.left&&n.right>t.right&&n.top<t.top;case"right":return n.right-r>t.right&&n.left<t.left&&n.top<t.top&&n.bottom>t.bottom}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return b}));var o=n(1),r=n.n(o),i=n(2),a=n.n(i),l=n(0),c=n.n(l),s=n(3),u=n.n(s);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,r=h(t).call(this,e),n=!r||"object"!==f(r)&&"function"!=typeof r?d(o):r,m(d(n),"getContainer",(function(){return n.props.containment||window})),m(d(n),"addEventListener",(function(e,t,o,r){var i;n.debounceCheck||(n.debounceCheck={});var a=function(){i=null,n.check()},l={target:e,fn:r>-1?function(){i||(i=setTimeout(a,r||0))}:function(){clearTimeout(i),i=setTimeout(a,o||0)},getLastTimeout:function(){return i}};e.addEventListener(t,l.fn),n.debounceCheck[t]=l})),m(d(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),m(d(n),"stopWatching",(function(){if(n.debounceCheck)for(var e in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(e)){var t=n.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),n.debounceCheck[e]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),m(d(n),"check",(function(){var e,t,o=n.node;if(!o)return n.state;if(e=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(n.roundRectDown(o.getBoundingClientRect())),n.props.containment){var r=n.props.containment.getBoundingClientRect();t={top:r.top,left:r.left,bottom:r.bottom,right:r.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var i=n.props.offset||{};"object"===f(i)&&(t.top+=i.top||0,t.left+=i.left||0,t.bottom-=i.bottom||0,t.right-=i.right||0);var a={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},l=e.height>0&&e.width>0,c=l&&a.top&&a.left&&a.bottom&&a.right;if(l&&n.props.partialVisibility){var s=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(s=a[n.props.partialVisibility]),c=n.props.minTopValue?s&&e.top<=t.bottom-n.props.minTopValue:s}"string"==typeof i.direction&&"number"==typeof i.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",i.direction,i.value),c=u()(i,e,t));var p=n.state;return n.state.isVisible!==c&&(p={isVisible:c,visibilityRect:a},n.setState(p),n.props.onChange&&n.props.onChange(c)),p})),n.state={isVisible:null,visibilityRect:{}},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.node=a.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(e){this.node=a.a.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.a.Children.only(this.props.children)}}])&&p(n.prototype,o),i&&p(n,i),t}(r.a.Component);m(b,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:r.a.createElement("span",null)}),m(b,"propTypes",{onChange:c.a.func,active:c.a.bool,partialVisibility:c.a.oneOfType([c.a.bool,c.a.oneOf(["top","right","bottom","left"])]),delayedCall:c.a.bool,offset:c.a.oneOfType([c.a.shape({top:c.a.number,left:c.a.number,bottom:c.a.number,right:c.a.number}),c.a.shape({direction:c.a.oneOf(["top","right","bottom","left"]),value:c.a.number})]),scrollCheck:c.a.bool,scrollDelay:c.a.number,scrollThrottle:c.a.number,resizeCheck:c.a.bool,resizeDelay:c.a.number,resizeThrottle:c.a.number,intervalCheck:c.a.bool,intervalDelay:c.a.number,containment:"undefined"!=typeof window?c.a.instanceOf(window.Element):c.a.any,children:c.a.oneOfType([c.a.element,c.a.func]),minTopValue:c.a.number})},function(e,t,n){"use strict";var o=n(6);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},e.exports=o(n(11),n(123))},677:function(e,t,n){"use strict";var o,r=n(26),i=n(45).f,a=n(43),l=n(290),c=n(40),s=n(291),u=n(59),f="".startsWith,p=Math.min,h=s("startsWith");r({target:"String",proto:!0,forced:!!(u||h||(o=i(String.prototype,"startsWith"),!o||o.writable))&&!h},{startsWith:function(e){var t=String(c(this));l(e);var n=a(p(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return f?f.call(t,o,n):t.slice(n,n+o.length)===o}})},691:function(e,t,n){n(26)({target:"Number",stat:!0},{isFinite:n(692)})},692:function(e,t,n){var o=n(8).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},693:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,r=void 0===n?24:n,i=e.onClick,l=(e.icon,e.className),c=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-star-outline",l,(t=r,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:s,height:r,width:r,onClick:i},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})))};var r,i=n(11),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},745:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"}));t.a=i},746:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"}));t.a=i},747:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(r.Path,{d:"M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}));t.a=i},748:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}));t.a=i},749:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=i},750:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{fillRule:"evenodd",d:"M5.5 9.5v-2h13v2h-13zm0 3v4h13v-4h-13zM4 7a1 1 0 011-1h14a1 1 0 011 1v10a1 1 0 01-1 1H5a1 1 0 01-1-1V7z",clipRule:"evenodd"}));t.a=i},751:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{fillRule:"evenodd",d:"M6.5 8a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zM8 5a3 3 0 100 6 3 3 0 000-6zm6.5 11a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zm1.5-3a3 3 0 100 6 3 3 0 000-6zM5.47 17.41a.75.75 0 001.06 1.06L18.47 6.53a.75.75 0 10-1.06-1.06L5.47 17.41z",clipRule:"evenodd"}));t.a=i},752:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M3 6.75C3 5.784 3.784 5 4.75 5H15V7.313l.05.027 5.056 2.73.394.212v3.468a1.75 1.75 0 01-1.75 1.75h-.012a2.5 2.5 0 11-4.975 0H9.737a2.5 2.5 0 11-4.975 0H3V6.75zM13.5 14V6.5H4.75a.25.25 0 00-.25.25V14h.965a2.493 2.493 0 011.785-.75c.7 0 1.332.287 1.785.75H13.5zm4.535 0h.715a.25.25 0 00.25-.25v-2.573l-4-2.16v4.568a2.487 2.487 0 011.25-.335c.7 0 1.332.287 1.785.75zM6.282 15.5a1.002 1.002 0 00.968 1.25 1 1 0 10-.968-1.25zm9 0a1 1 0 101.937.498 1 1 0 00-1.938-.498z"}));t.a=i}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[55,8],{197:function(e,t,n){"use strict";function o(e){return function(){return e}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},234:function(e,t,n){"use strict";var o=n(11),r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(197),a=n(235),l=n(236),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,o={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return o[e]}))):t.toString(36);var n,o}function u(e,t,n,o){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===r)return n(o,e,""===t?"."+s(e,0):t),1;var f=0,p=""===t?".":t+":";if(Array.isArray(e))for(var h=0;h<e.length;h++)f+=u(i=e[h],p+s(i,h),n,o);else{var d=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(d){0;for(var v,m=d.call(e),b=0;!(v=m.next()).done;)f+=u(i=v.value,p+s(i,b++),n,o)}else if("object"===l){0;var y=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return f}var f=/\/+/g;function p(e){return(""+e).replace(f,"$&/")}var h,d,v=m,m=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},b=function(e){a(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function y(e,t,n,o){this.result=e,this.keyPrefix=t,this.func=n,this.context=o,this.count=0}function g(e,t,n){var r,a,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,f=s.call(u,t,e.count++);Array.isArray(f)?w(f,l,n,i.thatReturnsArgument):null!=f&&(o.isValidElement(f)&&(r=f,a=c+(!f.key||t&&t.key===f.key?"":p(f.key)+"/")+n,f=o.cloneElement(r,{key:a},void 0!==r.props?r.props.children:void 0)),l.push(f))}function w(e,t,n,o,r){var i="";null!=n&&(i=p(n)+"/");var a=y.getPooled(t,i,o,r);!function(e,t,n){null==e||u(e,"",t,n)}(e,g,a),y.release(a)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h=function(e,t,n,o){if(this.instancePool.length){var r=this.instancePool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)},(d=y).instancePool=[],d.getPooled=h||v,d.poolSize||(d.poolSize=10),d.release=b;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(o.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)w(e[n],t,n,i.thatReturnsArgument);return t}},235:function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,i,a,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,i,a,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},236:function(e,t,n){"use strict";var o=n(197);e.exports=o},237:function(e,t,n){"use strict";function o(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(o)}},325:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,r=void 0===n?24:n,i=e.onClick,l=(e.icon,e.className),c=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-notice-outline",l,(t=r,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:s,height:r,width:r,onClick:i},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,i=n(11),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},331:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,r=void 0===n?24:n,i=e.onClick,l=(e.icon,e.className),c=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-star",l,(t=r,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:s,height:r,width:r,onClick:i},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})))};var r,i=n(11),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},432:function(e,t,n){"use strict";var o=n(26),r=n(433);o({target:"String",proto:!0,forced:n(434)("link")},{link:function(e){return r(this,"a","href",e)}})},433:function(e,t,n){var o=n(40),r=/"/g;e.exports=function(e,t,n,i){var a=String(o(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+String(i).replace(r,"&quot;")+'"'),l+">"+a+"</"+t+">"}},434:function(e,t,n){var o=n(12);e.exports=function(e){return o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},51:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=l(n(11)),i=l(n(234)),a=l(n(237));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,a,l,u,f,p,h,d,v=[],m={};for(p=0;p<e.length;p++)if("string"!==(f=e[p]).type){if(!t.hasOwnProperty(f.value)||void 0===t[f.value])throw new Error("Invalid interpolation, missing component node: `"+f.value+"`");if("object"!==o(t[f.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+f.value+"`","\n> "+c);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],l=p;break}v.push(t[f.value])}else v.push(f.value);return n&&(u=function(e,t){var n,o,r=t[e],i=0;for(o=e+1;o<t.length;o++)if((n=t[o]).value===r.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return o;i--}}throw new Error("Missing closing component token `"+r.value+"`")}(l,e),h=s(e.slice(l+1,u),t),a=r.default.cloneElement(n,{},h),v.push(a),u<e.length-1&&(d=s(e.slice(u+1),t),v=v.concat(d))),1===v.length?v[0]:(v.forEach((function(e,t){e&&(m["interpolation-child-"+t]=e)})),(0,i.default)(m))}t.default=function(e){var t=e.mixedString,n=e.components,r=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":o(n))){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,a.default)(t);try{return s(i,n)}catch(e){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},666:function(e,t,n){var o;o=function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(5)()},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t,n){var o=e.direction,r=e.value;switch(o){case"top":return n.top+r<t.top&&n.bottom>t.bottom&&n.left<t.left&&n.right>t.right;case"left":return n.left+r<t.left&&n.bottom>t.bottom&&n.top<t.top&&n.right>t.right;case"bottom":return n.bottom-r>t.bottom&&n.left<t.left&&n.right>t.right&&n.top<t.top;case"right":return n.right-r>t.right&&n.left<t.left&&n.top<t.top&&n.bottom>t.bottom}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return b}));var o=n(1),r=n.n(o),i=n(2),a=n.n(i),l=n(0),c=n.n(l),s=n(3),u=n.n(s);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,r=h(t).call(this,e),n=!r||"object"!==f(r)&&"function"!=typeof r?d(o):r,m(d(n),"getContainer",(function(){return n.props.containment||window})),m(d(n),"addEventListener",(function(e,t,o,r){var i;n.debounceCheck||(n.debounceCheck={});var a=function(){i=null,n.check()},l={target:e,fn:r>-1?function(){i||(i=setTimeout(a,r||0))}:function(){clearTimeout(i),i=setTimeout(a,o||0)},getLastTimeout:function(){return i}};e.addEventListener(t,l.fn),n.debounceCheck[t]=l})),m(d(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),m(d(n),"stopWatching",(function(){if(n.debounceCheck)for(var e in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(e)){var t=n.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),n.debounceCheck[e]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),m(d(n),"check",(function(){var e,t,o=n.node;if(!o)return n.state;if(e=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(n.roundRectDown(o.getBoundingClientRect())),n.props.containment){var r=n.props.containment.getBoundingClientRect();t={top:r.top,left:r.left,bottom:r.bottom,right:r.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var i=n.props.offset||{};"object"===f(i)&&(t.top+=i.top||0,t.left+=i.left||0,t.bottom-=i.bottom||0,t.right-=i.right||0);var a={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},l=e.height>0&&e.width>0,c=l&&a.top&&a.left&&a.bottom&&a.right;if(l&&n.props.partialVisibility){var s=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(s=a[n.props.partialVisibility]),c=n.props.minTopValue?s&&e.top<=t.bottom-n.props.minTopValue:s}"string"==typeof i.direction&&"number"==typeof i.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",i.direction,i.value),c=u()(i,e,t));var p=n.state;return n.state.isVisible!==c&&(p={isVisible:c,visibilityRect:a},n.setState(p),n.props.onChange&&n.props.onChange(c)),p})),n.state={isVisible:null,visibilityRect:{}},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.node=a.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(e){this.node=a.a.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.a.Children.only(this.props.children)}}])&&p(n.prototype,o),i&&p(n,i),t}(r.a.Component);m(b,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:r.a.createElement("span",null)}),m(b,"propTypes",{onChange:c.a.func,active:c.a.bool,partialVisibility:c.a.oneOfType([c.a.bool,c.a.oneOf(["top","right","bottom","left"])]),delayedCall:c.a.bool,offset:c.a.oneOfType([c.a.shape({top:c.a.number,left:c.a.number,bottom:c.a.number,right:c.a.number}),c.a.shape({direction:c.a.oneOf(["top","right","bottom","left"]),value:c.a.number})]),scrollCheck:c.a.bool,scrollDelay:c.a.number,scrollThrottle:c.a.number,resizeCheck:c.a.bool,resizeDelay:c.a.number,resizeThrottle:c.a.number,intervalCheck:c.a.bool,intervalDelay:c.a.number,containment:"undefined"!=typeof window?c.a.instanceOf(window.Element):c.a.any,children:c.a.oneOfType([c.a.element,c.a.func]),minTopValue:c.a.number})},function(e,t,n){"use strict";var o=n(6);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},e.exports=o(n(11),n(124))},667:function(e,t,n){"use strict";var o,r=n(26),i=n(45).f,a=n(43),l=n(285),c=n(40),s=n(286),u=n(59),f="".startsWith,p=Math.min,h=s("startsWith");r({target:"String",proto:!0,forced:!!(u||h||(o=i(String.prototype,"startsWith"),!o||o.writable))&&!h},{startsWith:function(e){var t=String(c(this));l(e);var n=a(p(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return f?f.call(t,o,n):t.slice(n,n+o.length)===o}})},681:function(e,t,n){n(26)({target:"Number",stat:!0},{isFinite:n(682)})},682:function(e,t,n){var o=n(8).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},683:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,r=void 0===n?24:n,i=e.onClick,l=(e.icon,e.className),c=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-star-outline",l,(t=r,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:s,height:r,width:r,onClick:i},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})))};var r,i=n(11),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},736:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"}));t.a=i},737:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"}));t.a=i},738:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(r.Path,{d:"M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}));t.a=i},739:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}));t.a=i},740:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=i},741:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{fillRule:"evenodd",d:"M5.5 9.5v-2h13v2h-13zm0 3v4h13v-4h-13zM4 7a1 1 0 011-1h14a1 1 0 011 1v10a1 1 0 01-1 1H5a1 1 0 01-1-1V7z",clipRule:"evenodd"}));t.a=i},742:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{fillRule:"evenodd",d:"M6.5 8a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zM8 5a3 3 0 100 6 3 3 0 000-6zm6.5 11a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zm1.5-3a3 3 0 100 6 3 3 0 000-6zM5.47 17.41a.75.75 0 001.06 1.06L18.47 6.53a.75.75 0 10-1.06-1.06L5.47 17.41z",clipRule:"evenodd"}));t.a=i},743:function(e,t,n){"use strict";var o=n(0),r=n(20),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M3 6.75C3 5.784 3.784 5 4.75 5H15V7.313l.05.027 5.056 2.73.394.212v3.468a1.75 1.75 0 01-1.75 1.75h-.012a2.5 2.5 0 11-4.975 0H9.737a2.5 2.5 0 11-4.975 0H3V6.75zM13.5 14V6.5H4.75a.25.25 0 00-.25.25V14h.965a2.493 2.493 0 011.785-.75c.7 0 1.332.287 1.785.75H13.5zm4.535 0h.715a.25.25 0 00.25-.25v-2.573l-4-2.16v4.568a2.487 2.487 0 011.25-.335c.7 0 1.332.287 1.785.75zM6.282 15.5a1.002 1.002 0 00.968 1.25 1 1 0 10-.968-1.25zm9 0a1 1 0 101.937.498 1 1 0 00-1.938-.498z"}));t.a=i}}]);
packages/woocommerce-admin/dist/chunks/56.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[56],{194:function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},235:function(e,t,n){"use strict";var r=n(11),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(194),a=n(236),c=n(237),l="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function s(e,t,n,r){var i,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===o)return n(r,e,""===t?"."+u(e,0):t),1;var f=0,v=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)f+=s(i=e[p],v+u(i,p),n,r);else{var d=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(d){0;for(var h,m=d.call(e),g=0;!(h=m.next()).done;)f+=s(i=h.value,v+u(i,g++),n,r)}else if("object"===c){0;var y=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return f}var f=/\/+/g;function v(e){return(""+e).replace(f,"$&/")}var p,d,h=m,m=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},g=function(e){a(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function y(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function w(e,t,n){var o,a,c=e.result,l=e.keyPrefix,u=e.func,s=e.context,f=u.call(s,t,e.count++);Array.isArray(f)?b(f,c,n,i.thatReturnsArgument):null!=f&&(r.isValidElement(f)&&(o=f,a=l+(!f.key||t&&t.key===f.key?"":v(f.key)+"/")+n,f=r.cloneElement(o,{key:a},void 0!==o.props?o.props.children:void 0)),c.push(f))}function b(e,t,n,r,o){var i="";null!=n&&(i=v(n)+"/");var a=y.getPooled(t,i,r,o);!function(e,t,n){null==e||s(e,"",t,n)}(e,w,a),y.release(a)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)},(d=y).instancePool=[],d.getPooled=p||h,d.poolSize||(d.poolSize=10),d.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)b(e[n],t,n,i.thatReturnsArgument);return t}},236:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],s=0;(l=new Error(t.replace(/%s/g,(function(){return u[s++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},237:function(e,t,n){"use strict";var r=n(194);e.exports=r},238:function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},257:function(e,t,n){"use strict";var r=n(26),o=n(25),i=n(8),a=n(22),c=n(23),l=n(27).f,u=n(108),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var f={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof v?new s(e):void 0===e?s():s(e);return""===e&&(f[t]=!0),t};u(v,s);var p=v.prototype=s.prototype;p.constructor=v;var d=p.toString,h="Symbol(test)"==String(s("test")),m=/^Symbol\((.*)\)[^)]+$/;l(p,"description",{configurable:!0,get:function(){var e=c(this)?this.valueOf():this,t=d.call(e);if(a(f,e))return"";var n=h?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},51:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=c(n(11)),i=c(n(235)),a=c(n(238));function c(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function u(e,t){var n,a,c,s,f,v,p,d,h=[],m={};for(v=0;v<e.length;v++)if("string"!==(f=e[v]).type){if(!t.hasOwnProperty(f.value)||void 0===t[f.value])throw new Error("Invalid interpolation, missing component node: `"+f.value+"`");if("object"!==r(t[f.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+f.value+"`","\n> "+l);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],c=v;break}h.push(t[f.value])}else h.push(f.value);return n&&(s=function(e,t){var n,r,o=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+o.value+"`")}(c,e),p=u(e.slice(c+1,s),t),a=o.default.cloneElement(n,{},p),h.push(a),s<e.length-1&&(d=u(e.slice(s+1),t),h=h.concat(d))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(m["interpolation-child-"+t]=e)})),(0,i.default)(m))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(l=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,a.default)(t);try{return u(i,n)}catch(e){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},639:function(e,t,n){"use strict";var r=n(26),o=n(285).trim;r({target:"String",proto:!0,forced:n(640)("trim")},{trim:function(){return o(this)}})},640:function(e,t,n){var r=n(12),o=n(286);e.exports=function(e){return r((function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e}))}},651:function(e,t,n){"use strict";var r=n(26),o=n(114).findIndex,i=n(118),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},655:function(e,t,n){var r=n(26),o=n(443).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},662:function(e,t,n){"use strict";var r=n(26),o=n(52),i=n(663),a=n(664),c=n(12),l=1..toFixed,u=Math.floor,s=function(e,t,n){return 0===t?n:t%2==1?s(e,t-1,n*e):s(e*e,t/2,n)},f=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=u(o/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=u(r/t),r=r%t*1e7},p=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+a.call("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){l.call({})}))},{toFixed:function(e){var t,n,r,c,l=i(this),u=o(e),d=[0,0,0,0,0,0],h="",m="0";if(u<0||u>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*s(2,69,1))-69)<0?l*s(2,-t,1):l/s(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(d,0,n),r=u;r>=7;)f(d,1e7,0),r-=7;for(f(d,s(10,r,1),0),r=t-1;r>=23;)v(d,1<<23),r-=23;v(d,1<<r),f(d,1,1),v(d,2),m=p(d)}else f(d,0,n),f(d,1<<-t,0),m=p(d)+a.call("0",u);return m=u>0?h+((c=m.length)<=u?"0."+a.call("0",u-c)+m:m.slice(0,c-u)+"."+m.slice(c-u)):h+m}})},663:function(e,t,n){var r=n(41);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},664:function(e,t,n){"use strict";var r=n(52),o=n(40);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},717: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,n=e.size,o=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),l=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-info",c,(t=o,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:u,height:o,width:o,onClick:i},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})))};var o,i=n(11),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},719: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"]),l=["gridicon","gridicons-cloud-upload",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,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:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})))};var o,i=n(11),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},720: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"]),l=["gridicon","gridicons-phone",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,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:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})))};var o,i=n(11),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},721: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"]),l=["gridicon","gridicons-tablet",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,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:"M18 2H6c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h12c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-5 19h-2v-1h2v1zm5-2H6V5h12v14z"})))};var o,i=n(11),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},722: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"]),l=["gridicon","gridicons-computer",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,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:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})))};var o,i=n(11),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},724:function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")},e.exports.default=e.exports,e.exports.__esModule=!0},753:function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=i},754:function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=i},755:function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));t.a=i}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[56],{197:function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},234:function(e,t,n){"use strict";var r=n(11),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(197),a=n(235),c=n(236),l="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function s(e,t,n,r){var i,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===o)return n(r,e,""===t?"."+u(e,0):t),1;var f=0,v=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)f+=s(i=e[d],v+u(i,d),n,r);else{var p=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(p){0;for(var h,m=p.call(e),g=0;!(h=m.next()).done;)f+=s(i=h.value,v+u(i,g++),n,r)}else if("object"===c){0;var y=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return f}var f=/\/+/g;function v(e){return(""+e).replace(f,"$&/")}var d,p,h=m,m=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},g=function(e){a(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function y(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function w(e,t,n){var o,a,c=e.result,l=e.keyPrefix,u=e.func,s=e.context,f=u.call(s,t,e.count++);Array.isArray(f)?b(f,c,n,i.thatReturnsArgument):null!=f&&(r.isValidElement(f)&&(o=f,a=l+(!f.key||t&&t.key===f.key?"":v(f.key)+"/")+n,f=r.cloneElement(o,{key:a},void 0!==o.props?o.props.children:void 0)),c.push(f))}function b(e,t,n,r,o){var i="";null!=n&&(i=v(n)+"/");var a=y.getPooled(t,i,r,o);!function(e,t,n){null==e||s(e,"",t,n)}(e,w,a),y.release(a)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)},(p=y).instancePool=[],p.getPooled=d||h,p.poolSize||(p.poolSize=10),p.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)b(e[n],t,n,i.thatReturnsArgument);return t}},235:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],s=0;(l=new Error(t.replace(/%s/g,(function(){return u[s++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},236:function(e,t,n){"use strict";var r=n(197);e.exports=r},237:function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},254:function(e,t,n){"use strict";var r=n(26),o=n(25),i=n(8),a=n(22),c=n(23),l=n(27).f,u=n(109),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var f={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof v?new s(e):void 0===e?s():s(e);return""===e&&(f[t]=!0),t};u(v,s);var d=v.prototype=s.prototype;d.constructor=v;var p=d.toString,h="Symbol(test)"==String(s("test")),m=/^Symbol\((.*)\)[^)]+$/;l(d,"description",{configurable:!0,get:function(){var e=c(this)?this.valueOf():this,t=p.call(e);if(a(f,e))return"";var n=h?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},51:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=c(n(11)),i=c(n(234)),a=c(n(237));function c(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function u(e,t){var n,a,c,s,f,v,d,p,h=[],m={};for(v=0;v<e.length;v++)if("string"!==(f=e[v]).type){if(!t.hasOwnProperty(f.value)||void 0===t[f.value])throw new Error("Invalid interpolation, missing component node: `"+f.value+"`");if("object"!==r(t[f.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+f.value+"`","\n> "+l);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],c=v;break}h.push(t[f.value])}else h.push(f.value);return n&&(s=function(e,t){var n,r,o=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+o.value+"`")}(c,e),d=u(e.slice(c+1,s),t),a=o.default.cloneElement(n,{},d),h.push(a),s<e.length-1&&(p=u(e.slice(s+1),t),h=h.concat(p))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(m["interpolation-child-"+t]=e)})),(0,i.default)(m))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(l=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,a.default)(t);try{return u(i,n)}catch(e){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},607:function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=i},608:function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=i},630:function(e,t,n){"use strict";var r=n(26),o=n(280).trim;r({target:"String",proto:!0,forced:n(631)("trim")},{trim:function(){return o(this)}})},631:function(e,t,n){var r=n(12),o=n(281);e.exports=function(e){return r((function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e}))}},642:function(e,t,n){"use strict";var r=n(26),o=n(116).findIndex,i=n(120),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},646:function(e,t,n){var r=n(26),o=n(437).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},653:function(e,t,n){"use strict";var r=n(26),o=n(52),i=n(654),a=n(655),c=n(12),l=1..toFixed,u=Math.floor,s=function(e,t,n){return 0===t?n:t%2==1?s(e,t-1,n*e):s(e*e,t/2,n)},f=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=u(o/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=u(r/t),r=r%t*1e7},d=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+a.call("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){l.call({})}))},{toFixed:function(e){var t,n,r,c,l=i(this),u=o(e),p=[0,0,0,0,0,0],h="",m="0";if(u<0||u>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*s(2,69,1))-69)<0?l*s(2,-t,1):l/s(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(p,0,n),r=u;r>=7;)f(p,1e7,0),r-=7;for(f(p,s(10,r,1),0),r=t-1;r>=23;)v(p,1<<23),r-=23;v(p,1<<r),f(p,1,1),v(p,2),m=d(p)}else f(p,0,n),f(p,1<<-t,0),m=d(p)+a.call("0",u);return m=u>0?h+((c=m.length)<=u?"0."+a.call("0",u-c)+m:m.slice(0,c-u)+"."+m.slice(c-u)):h+m}})},654:function(e,t,n){var r=n(41);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},655:function(e,t,n){"use strict";var r=n(52),o=n(40);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},707: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,n=e.size,o=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),l=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-info",c,(t=o,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:u,height:o,width:o,onClick:i},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})))};var o,i=n(11),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},709: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"]),l=["gridicon","gridicons-cloud-upload",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,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:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})))};var o,i=n(11),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},710: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"]),l=["gridicon","gridicons-phone",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,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:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})))};var o,i=n(11),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},711: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"]),l=["gridicon","gridicons-tablet",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,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:"M18 2H6c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h12c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-5 19h-2v-1h2v1zm5-2H6V5h12v14z"})))};var o,i=n(11),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},712: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"]),l=["gridicon","gridicons-computer",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,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:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})))};var o,i=n(11),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},714:function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}},744:function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));t.a=i}}]);
packages/woocommerce-admin/dist/chunks/57.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[57],{194:function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},235:function(e,t,n){"use strict";var r=n(11),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(194),a=n(236),u=n(237),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function s(e,t,n,r){var i,u=typeof e;if("undefined"!==u&&"boolean"!==u||(e=null),null===e||"string"===u||"number"===u||"object"===u&&e.$$typeof===o)return n(r,e,""===t?"."+l(e,0):t),1;var f=0,p=""===t?".":t+":";if(Array.isArray(e))for(var v=0;v<e.length;v++)f+=s(i=e[v],p+l(i,v),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var d,y=h.call(e),m=0;!(d=y.next()).done;)f+=s(i=d.value,p+l(i,m++),n,r)}else if("object"===u){0;var b=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===b?"object with keys {"+Object.keys(e).join(", ")+"}":b,"")}}return f}var f=/\/+/g;function p(e){return(""+e).replace(f,"$&/")}var v,h,d=y,y=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},m=function(e){a(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function b(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function g(e,t,n){var o,a,u=e.result,c=e.keyPrefix,l=e.func,s=e.context,f=l.call(s,t,e.count++);Array.isArray(f)?w(f,u,n,i.thatReturnsArgument):null!=f&&(r.isValidElement(f)&&(o=f,a=c+(!f.key||t&&t.key===f.key?"":p(f.key)+"/")+n,f=r.cloneElement(o,{key:a},void 0!==o.props?o.props.children:void 0)),u.push(f))}function w(e,t,n,r,o){var i="";null!=n&&(i=p(n)+"/");var a=b.getPooled(t,i,r,o);!function(e,t,n){null==e||s(e,"",t,n)}(e,g,a),b.release(a)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},v=function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)},(h=b).instancePool=[],h.getPooled=v||d,h.poolSize||(h.poolSize=10),h.release=m;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return u(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return u(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)w(e[n],t,n,i.thatReturnsArgument);return t}},236:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,u],s=0;(c=new Error(t.replace(/%s/g,(function(){return l[s++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},237:function(e,t,n){"use strict";var r=n(194);e.exports=r},238:function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},438:function(e,t,n){"use strict";var r=n(26),o=n(439);r({target:"String",proto:!0,forced:n(440)("link")},{link:function(e){return o(this,"a","href",e)}})},439:function(e,t,n){var r=n(40),o=/"/g;e.exports=function(e,t,n,i){var a=String(r(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+String(i).replace(o,"&quot;")+'"'),u+">"+a+"</"+t+">"}},440:function(e,t,n){var r=n(12);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},51:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=u(n(11)),i=u(n(235)),a=u(n(238));function u(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function l(e,t){var n,a,u,s,f,p,v,h,d=[],y={};for(p=0;p<e.length;p++)if("string"!==(f=e[p]).type){if(!t.hasOwnProperty(f.value)||void 0===t[f.value])throw new Error("Invalid interpolation, missing component node: `"+f.value+"`");if("object"!==r(t[f.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+f.value+"`","\n> "+c);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],u=p;break}d.push(t[f.value])}else d.push(f.value);return n&&(s=function(e,t){var n,r,o=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+o.value+"`")}(u,e),v=l(e.slice(u+1,s),t),a=o.default.cloneElement(n,{},v),d.push(a),s<e.length-1&&(h=l(e.slice(s+1),t),d=d.concat(h))),1===d.length?d[0]:(d.forEach((function(e,t){e&&(y["interpolation-child-"+t]=e)})),(0,i.default)(y))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,a.default)(t);try{return l(i,n)}catch(e){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},675:function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=i},727:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(728);var r=function(){return Math.random().toString(36).substring(7).split("").join(".")};r(),r();function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}},728:function(e,t,n){"use strict";(function(e,r){var o,i=n(730);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(93),n(729)(e))},729:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},730:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},758:function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));t.a=i}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[57],{197:function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},234:function(e,t,n){"use strict";var r=n(11),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(197),a=n(235),u=n(236),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function s(e,t,n,r){var i,u=typeof e;if("undefined"!==u&&"boolean"!==u||(e=null),null===e||"string"===u||"number"===u||"object"===u&&e.$$typeof===o)return n(r,e,""===t?"."+l(e,0):t),1;var f=0,p=""===t?".":t+":";if(Array.isArray(e))for(var v=0;v<e.length;v++)f+=s(i=e[v],p+l(i,v),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var d,y=h.call(e),m=0;!(d=y.next()).done;)f+=s(i=d.value,p+l(i,m++),n,r)}else if("object"===u){0;var b=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===b?"object with keys {"+Object.keys(e).join(", ")+"}":b,"")}}return f}var f=/\/+/g;function p(e){return(""+e).replace(f,"$&/")}var v,h,d=y,y=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},m=function(e){a(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function b(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function g(e,t,n){var o,a,u=e.result,c=e.keyPrefix,l=e.func,s=e.context,f=l.call(s,t,e.count++);Array.isArray(f)?w(f,u,n,i.thatReturnsArgument):null!=f&&(r.isValidElement(f)&&(o=f,a=c+(!f.key||t&&t.key===f.key?"":p(f.key)+"/")+n,f=r.cloneElement(o,{key:a},void 0!==o.props?o.props.children:void 0)),u.push(f))}function w(e,t,n,r,o){var i="";null!=n&&(i=p(n)+"/");var a=b.getPooled(t,i,r,o);!function(e,t,n){null==e||s(e,"",t,n)}(e,g,a),b.release(a)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},v=function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)},(h=b).instancePool=[],h.getPooled=v||d,h.poolSize||(h.poolSize=10),h.release=m;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return u(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return u(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)w(e[n],t,n,i.thatReturnsArgument);return t}},235:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,u],s=0;(c=new Error(t.replace(/%s/g,(function(){return l[s++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},236:function(e,t,n){"use strict";var r=n(197);e.exports=r},237:function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},432:function(e,t,n){"use strict";var r=n(26),o=n(433);r({target:"String",proto:!0,forced:n(434)("link")},{link:function(e){return o(this,"a","href",e)}})},433:function(e,t,n){var r=n(40),o=/"/g;e.exports=function(e,t,n,i){var a=String(r(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+String(i).replace(o,"&quot;")+'"'),u+">"+a+"</"+t+">"}},434:function(e,t,n){var r=n(12);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},51:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=u(n(11)),i=u(n(234)),a=u(n(237));function u(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function l(e,t){var n,a,u,s,f,p,v,h,d=[],y={};for(p=0;p<e.length;p++)if("string"!==(f=e[p]).type){if(!t.hasOwnProperty(f.value)||void 0===t[f.value])throw new Error("Invalid interpolation, missing component node: `"+f.value+"`");if("object"!==r(t[f.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+f.value+"`","\n> "+c);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],u=p;break}d.push(t[f.value])}else d.push(f.value);return n&&(s=function(e,t){var n,r,o=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+o.value+"`")}(u,e),v=l(e.slice(u+1,s),t),a=o.default.cloneElement(n,{},v),d.push(a),s<e.length-1&&(h=l(e.slice(s+1),t),d=d.concat(h))),1===d.length?d[0]:(d.forEach((function(e,t){e&&(y["interpolation-child-"+t]=e)})),(0,i.default)(y))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,a.default)(t);try{return l(i,n)}catch(e){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},606:function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=i},717:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(718);var r=function(){return Math.random().toString(36).substring(7).split("").join(".")};r(),r();function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}},718:function(e,t,n){"use strict";(function(e,r){var o,i=n(720);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(88),n(719)(e))},719:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},720:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},747:function(e,t,n){"use strict";var r=n(0),o=n(20),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));t.a=i}}]);
packages/woocommerce-admin/dist/chunks/6.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[6],{643:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(83),n(126),n(282);var c=n(15);function r(e){var t=Object(c.dispatch)("core/notices").createNotice;e.error_data&&e.errors&&Object.keys(e.errors).length?Object.keys(e.errors).forEach((function(n){t("error",e.errors[n].join(" "))})):e.message&&t(e.code?"error":"success",e.message)}},648:function(e,t,n){"use strict";n.r(t);var c=n(30),r=n.n(c),o=n(0),a=n(2),i=n(28),s=n(51),l=n.n(s),m=n(111),u=n(650);t.default=function(){var e="1"===Object(i.getQuery)()["wcpay-connection-success"],t=Object(o.useState)(e),n=r()(t,2),c=n[0],s=n[1];if(!c)return null;var p=function(){s(!1),Object(i.updateQueryString)({"wcpay-connection-success":void 0})},d=Object(a.__)("Help us build a better WooCommerce Payments experience",'woocommerce'),b=l()({mixedString:Object(a.__)("By agreeing to share non-sensitive {{link}}usage data{{/link}}, you’ll help us improve features and optimize the WooCommerce Payments experience. You can opt out at any time.",'woocommerce'),components:{link:Object(o.createElement)(m.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}});return Object(o.createElement)(u.a,{isDismissible:!1,title:d,message:b,acceptActionText:Object(a.__)("I agree",'woocommerce'),dismissActionText:Object(a.__)("No thanks",'woocommerce'),onContinue:p,onClose:p})}},650:function(e,t,n){"use strict";n(174);var c=n(67),r=n.n(c),o=n(13),a=n.n(o),i=n(14),s=n.n(i),l=n(16),m=n.n(l),u=n(17),p=n.n(u),d=n(7),b=n.n(d),_=n(0),f=n(6),y=n.n(f),h=n(2),g=n(34),O=n(15),w=n(51),j=n.n(w),k=n(5),v=n(111),C=n(33),E=n(289);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=b()(e);if(t){var r=b()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return p()(this,n)}}var S=function(e){m()(c,e);var t,n=P(c);function c(e){var t;return a()(this,c),(t=n.call(this,e)).state={isLoadingScripts:!1,isRequestStarted:!1},t}return s()(c,[{key:"componentDidUpdate",value:(t=r()(y.a.mark((function e(t,n){var c,r,o,a,i,s,l,m,u,p;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=this.props,r=c.hasErrors,o=c.isRequesting,a=c.onClose,i=c.onContinue,s=c.createNotice,l=this.state,m=l.isLoadingScripts,l.isRequestStarted){e.next=4;break}return e.abrupt("return");case 4:u=!o&&!m&&(t.isRequesting||n.isLoadingScripts)&&!r,p=!o&&t.isRequesting&&r,u&&(a(),i()),p&&(s("error",Object(h.__)("There was a problem updating your preferences",'woocommerce')),a());case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"updateTracking",value:function(e){var t=this,n=e.allowTracking,c=this.props.updateOptions;n&&"function"==typeof window.wcTracks.enable?(this.setState({isLoadingScripts:!0}),window.wcTracks.enable((function(){t._isMounted&&(Object(E.initializeExPlat)(),t.setState({isLoadingScripts:!1}))}))):n||(window.wcTracks.isEnabled=!1);var r=n?"yes":"no";this.setState({isRequestStarted:!0}),c({woocommerce_allow_tracking:r})}},{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"render",value:function(){var e=this;if(this.props.allowTracking){var t=this.props,n=t.onClose,c=t.onContinue;return n(),c(),null}var r=this.props,o=r.isRequesting,a=r.title,i=void 0===a?Object(h.__)("Build a better WooCommerce",'woocommerce'):a,s=r.message,l=void 0===s?j()({mixedString:Object(h.__)("Get improved features and faster fixes by sharing non-sensitive data via {{link}}usage tracking{{/link}} that shows us how WooCommerce is used. No personal data is tracked or stored.",'woocommerce'),components:{link:Object(_.createElement)(v.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}}):s,m=r.dismissActionText,u=void 0===m?Object(h.__)("No thanks",'woocommerce'):m,p=r.acceptActionText,d=void 0===p?Object(h.__)("Yes, count me in!",'woocommerce'):p,b=this.state.isRequestStarted&&o;return Object(_.createElement)(k.Modal,{title:i,isDismissible:this.props.isDismissible,onRequestClose:function(){return e.props.onClose()},className:"woocommerce-usage-modal"},Object(_.createElement)("div",{className:"woocommerce-usage-modal__wrapper"},Object(_.createElement)("div",{className:"woocommerce-usage-modal__message"},l),Object(_.createElement)("div",{className:"woocommerce-usage-modal__actions"},Object(_.createElement)(k.Button,{isSecondary:!0,isBusy:b,onClick:function(){return e.updateTracking({allowTracking:!1})}},u),Object(_.createElement)(k.Button,{isPrimary:!0,isBusy:b,onClick:function(){return e.updateTracking({allowTracking:!0})}},d))))}}]),c}(_.Component);t.a=Object(g.compose)(Object(O.withSelect)((function(e){var t=e(C.OPTIONS_STORE_NAME),n=t.getOption,c=t.getOptionsUpdatingError,r=t.isOptionsUpdating;return{allowTracking:"yes"===n("woocommerce_allow_tracking"),isRequesting:Boolean(r()),hasErrors:Boolean(c())}})),Object(O.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(C.OPTIONS_STORE_NAME).updateOptions}})))(S)},652:function(e,t,n){"use strict";n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return P})),n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return c.default}));var c=n(648),r=(n(174),n(13)),o=n.n(r),a=n(14),i=n.n(a),s=n(16),l=n.n(s),m=n(17),u=n.n(m),p=n(7),d=n.n(p),b=n(2),_=n(0),f=n(15),y=n(28);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return u()(this,n)}}var g=function(e){l()(n,e);var t=h(n);function n(){return o()(this,n),t.apply(this,arguments)}return i()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;Object(y.getQuery)()["wcpay-connection-success"]&&(t("success",Object(b.__)("WooCommerce Payments connected successfully.",'woocommerce')),n("wcpay",{"wcpay-connection-success":"1"}))}},{key:"render",value:function(){return null}}]),n}(_.Component),O=Object(f.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}}))(g);n(107);function w(e){var t=["US","PR"];return window.wcAdminFeatures&&window.wcAdminFeatures["wcpay/support-international-countries"]&&t.push("AU","CA","GB","IE","NZ"),t.includes(e)}var j=n(48),k=n.n(j),v=n(33),C=n(44),E=n(643);function P(e,t,n){var c=Object(b.__)("There was an error connecting to WooCommerce Payments. Please try again or connect later in store settings.",'woocommerce');n(["woocommerce-payments"]).then((function(){Object(C.recordEvent)("woocommerce_payments_install",{context:"tasklist"}),k()({path:v.WC_ADMIN_NAMESPACE+"/plugins/connect-wcpay",method:"POST"}).then((function(e){window.location=e.connectUrl})).catch((function(){t("error",c),e()}))})).catch((function(t){Object(E.a)(t),e()}))}},681:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ie}));n(83),n(125),n(150),n(126),n(151);var c=n(4),r=n.n(c),o=n(0),a=(n(107),n(204),n(115),n(131),n(2)),i=n(42),s=(n(174),n(39)),l=n.n(s),m=n(67),u=n.n(m),p=n(13),d=n.n(p),b=n(14),_=n.n(b),f=n(10),y=n.n(f),h=n(16),g=n.n(h),O=n(17),w=n.n(O),j=n(7),k=n.n(j),v=n(6),C=n.n(v),E=(n(127),n(5)),P=n(34),S=n(15),x=n(111),L=n(33);function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var N=function(e){g()(n,e);var t=R(n);function n(){var e;d()(this,n);for(var c=arguments.length,o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),r()(y()(e),"getInitialConfigValues",(function(){return{account_name:"",account_number:"",bank_name:"",sort_code:"",iban:"",bic:""}})),r()(y()(e),"validate",(function(e){var t={};return e.account_number||e.iban||(t.account_number=t.iban=Object(a.__)("Please enter an account number or IBAN",'woocommerce')),t})),r()(y()(e),"updateSettings",function(){var t=u()(C.a.mark((function t(n){var c,r,o,i;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,r=c.updateOptions,o=c.createNotice,i=c.markConfigured,t.next=3,r({woocommerce_bacs_settings:{enabled:"yes"},woocommerce_bacs_accounts:[n]});case 3:t.sent.success?(i("bacs"),o("success",Object(a.__)("Direct bank transfer details added successfully",'woocommerce'))):o("error",Object(a.__)("There was a problem saving your payment settings",'woocommerce'));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return _()(n,[{key:"render",value:function(){var e=this.props.isOptionsRequesting;return Object(o.createElement)(x.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(t){var n=t.getInputProps,c=t.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.H,null,Object(a.__)("Add your bank details",'woocommerce')),Object(o.createElement)("p",null,Object(a.__)("These details are required to receive payments via bank transfer",'woocommerce')),Object(o.createElement)("div",{className:"woocommerce-task-payment-method__fields"},Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Account name",'woocommerce'),required:!0},n("account_name"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Account number",'woocommerce'),required:!0},n("account_number"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Bank name",'woocommerce'),required:!0},n("bank_name"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Sort code",'woocommerce'),required:!0},n("sort_code"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("IBAN",'woocommerce'),required:!0},n("iban"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("BIC / Swift",'woocommerce'),required:!0},n("bic")))),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:e,onClick:c},Object(a.__)("Save",'woocommerce')))}))}}]),n}(o.Component),A=Object(P.compose)(Object(S.withSelect)((function(e){return{isOptionsRequesting:(0,e(L.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(S.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(L.OPTIONS_STORE_NAME).updateOptions}})))(N),T=function(){return Object(o.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"bacs0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"8",y:"8",width:"16",height:"16"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.875 12.25L16 8.5L23.125 12.25V13.75H8.875V12.25ZM16 10.195L19.9075 12.25H12.0925L16 10.195ZM10.75 15.25H12.25V20.5H10.75V15.25ZM15.25 20.5V15.25H16.75V20.5H15.25ZM23.125 23.5V22H8.875V23.5H23.125ZM19.75 15.25H21.25V20.5H19.75V15.25Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs0)"},Object(o.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(o.createElement)("mask",{id:"bacs1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs1)"},Object(o.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(o.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"bacs2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"72",y:"8",width:"16",height:"16"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.875 12.25L80 8.5L87.125 12.25V13.75H72.875V12.25ZM80 10.195L83.9075 12.25H76.0925L80 10.195ZM74.75 15.25H76.25V20.5H74.75V15.25ZM79.25 20.5V15.25H80.75V20.5H79.25ZM87.125 23.5V22H72.875V23.5H87.125ZM83.75 15.25H85.25V20.5H83.75V15.25Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs2)"},Object(o.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},M=function(){return Object(o.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"cod-mask-0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"7",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 13H19.75V10H9.25C8.425 10 7.75 10.675 7.75 11.5V19.75H9.25C9.25 20.995 10.255 22 11.5 22C12.745 22 13.75 20.995 13.75 19.75H18.25C18.25 20.995 19.255 22 20.5 22C21.745 22 22.75 20.995 22.75 19.75H24.25V16L22 13ZM21.625 14.125L23.095 16H19.75V14.125H21.625ZM10.75 19.75C10.75 20.1625 11.0875 20.5 11.5 20.5C11.9125 20.5 12.25 20.1625 12.25 19.75C12.25 19.3375 11.9125 19 11.5 19C11.0875 19 10.75 19.3375 10.75 19.75ZM13.165 18.25C12.7525 17.7925 12.1675 17.5 11.5 17.5C10.8325 17.5 10.2475 17.7925 9.835 18.25H9.25V11.5H18.25V18.25H13.165ZM19.75 19.75C19.75 20.1625 20.0875 20.5 20.5 20.5C20.9125 20.5 21.25 20.1625 21.25 19.75C21.25 19.3375 20.9125 19 20.5 19C20.0875 19 19.75 19.3375 19.75 19.75Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-0)"},Object(o.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(o.createElement)("mask",{id:"cod-mask-1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-1)"},Object(o.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(o.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"cod-mask-2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"76",y:"9",width:"8",height:"14"},Object(o.createElement)("path",{d:"M80.2926 15.175C78.5901 14.7325 78.0426 14.275 78.0426 13.5625C78.0426 12.745 78.8001 12.175 80.0676 12.175C81.4026 12.175 81.8976 12.8125 81.9426 13.75H83.6001C83.5476 12.46 82.7601 11.275 81.1926 10.8925V9.25H78.9426V10.87C77.4876 11.185 76.3176 12.13 76.3176 13.5775C76.3176 15.31 77.7501 16.1725 79.8426 16.675C81.7176 17.125 82.0926 17.785 82.0926 18.4825C82.0926 19 81.7251 19.825 80.0676 19.825C78.5226 19.825 77.9151 19.135 77.8326 18.25H76.1826C76.2726 19.8925 77.5026 20.815 78.9426 21.1225V22.75H81.1926V21.1375C82.6551 20.86 83.8176 20.0125 83.8176 18.475C83.8176 16.345 81.9951 15.6175 80.2926 15.175Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-2)"},Object(o.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},U=function(){return Object(o.createElement)("svg",{width:"100",height:"64",viewBox:"-10 0 120 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.78073 0.5H91.1787C96.3299 0.5 100.5 4.77335 100.5 10.0522V41.8929C100.5 47.1717 96.3299 51.4451 91.1787 51.4451H61.9883L65.9948 61.5L48.3742 51.4451H9.82161C4.67036 51.4451 0.500298 47.1717 0.500298 41.8929V10.0522C0.459415 4.81524 4.62947 0.5 9.78073 0.5Z",fill:"#7F54B3"}),Object(o.createElement)("path",{d:"M5.48791 9.1725C6.06028 8.37648 6.91882 7.95752 8.06354 7.87373C10.1486 7.70615 11.3342 8.71165 11.6204 10.8902C12.8877 19.6464 14.2778 27.0619 15.7495 33.1368L24.7029 15.6663C25.5206 14.0743 26.5426 13.2364 27.7691 13.1526C29.568 13.0269 30.6718 14.2 31.1215 16.6718C32.1436 22.2439 33.4519 26.9781 35.0054 31.0001C36.0684 20.3586 37.8672 12.6917 40.402 7.95753C41.0152 6.78445 41.9146 6.19791 43.1002 6.11412C44.0405 6.03033 44.8991 6.3236 45.6759 6.95203C46.4526 7.58047 46.8615 8.37648 46.9432 9.34008C46.9841 10.0942 46.8615 10.7226 46.5344 11.3511C44.94 14.3676 43.6317 19.4369 42.5688 26.4754C41.5467 33.3044 41.1787 38.6251 41.424 42.4376C41.5058 43.485 41.3423 44.4067 40.9334 45.2027C40.4428 46.1244 39.707 46.6272 38.7666 46.711C37.7037 46.7948 36.5998 46.292 35.5369 45.1608C31.7348 41.1807 28.7094 35.2316 26.5018 27.3133C23.8444 32.6759 21.882 36.6979 20.6146 39.3792C18.2025 44.1134 16.1584 46.5434 14.4413 46.6691C13.3374 46.7529 12.3971 45.7893 11.5795 43.7783C9.49445 38.2899 7.24589 27.6904 4.83379 11.9795C4.71114 10.8902 4.91555 9.92662 5.48791 9.1725Z",fill:"white"}),Object(o.createElement)("path",{d:"M93.3864 15.7499C91.9146 13.1105 89.7478 11.5185 86.8451 10.89C86.0683 10.7225 85.3324 10.6387 84.6374 10.6387C80.7127 10.6387 77.5238 12.7335 75.0299 16.923C72.904 20.4841 71.8411 24.4223 71.8411 28.7376C71.8411 31.9635 72.4952 34.7286 73.8034 37.0329C75.2752 39.6723 77.442 41.2644 80.3447 41.8928C81.1215 42.0604 81.8574 42.1442 82.5524 42.1442C86.518 42.1442 89.7069 40.0494 92.1599 35.8598C94.2858 32.2568 95.3488 28.3186 95.3488 24.0034C95.3488 20.7355 94.6946 18.0123 93.3864 15.7499ZM88.2351 27.355C87.6628 30.1201 86.6407 32.173 85.128 33.5556C83.9424 34.6449 82.8386 35.1057 81.8165 34.8962C80.8353 34.6868 80.0177 33.8069 79.4044 32.173C78.9138 30.8742 78.6685 29.5755 78.6685 28.3605C78.6685 27.3131 78.7503 26.2657 78.9547 25.3021C79.3226 23.5844 80.0177 21.9086 81.1215 20.3166C82.4706 18.2637 83.9015 17.4258 85.3733 17.719C86.3545 17.9285 87.1722 18.8083 87.7854 20.4422C88.276 21.741 88.5213 23.0398 88.5213 24.2547C88.5213 25.344 88.3987 26.3914 88.2351 27.355Z",fill:"white"}),Object(o.createElement)("path",{d:"M67.7528 15.7499C66.281 13.1105 64.0734 11.5185 61.2116 10.89C60.4348 10.7225 59.6989 10.6387 59.0039 10.6387C55.0791 10.6387 51.8903 12.7335 49.3964 16.923C47.2705 20.4841 46.2075 24.4223 46.2075 28.7376C46.2075 31.9635 46.8616 34.7286 48.1699 37.0329C49.6417 39.6723 51.8085 41.2644 54.7112 41.8928C55.488 42.0604 56.2238 42.1442 56.9189 42.1442C60.8845 42.1442 64.0734 40.0494 66.5263 35.8598C68.6523 32.2568 69.7152 28.3186 69.7152 24.0034C69.7152 20.7355 69.0611 18.0123 67.7528 15.7499ZM62.6016 27.355C62.0292 30.1201 61.0071 32.173 59.4945 33.5556C58.3089 34.6449 57.205 35.1057 56.183 34.8962C55.2018 34.6868 54.3841 33.8069 53.7709 32.173C53.2803 30.8742 53.035 29.5755 53.035 28.3605C53.035 27.3131 53.1167 26.2657 53.3212 25.3021C53.6891 23.5844 54.3841 21.9086 55.4879 20.3166C56.8371 18.2637 58.268 17.4258 59.7398 17.719C60.721 17.9285 61.5386 18.8083 62.1519 20.4422C62.6425 21.741 62.8878 23.0398 62.8878 24.2547C62.8878 25.344 62.806 26.3914 62.6016 27.355Z",fill:"white"}))},I=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"24",fill:"#072654",viewBox:"0 0 1896 401"},Object(o.createElement)("path",{fill:"#3395FF",d:"M122.63 105.7l-15.75 57.97 90.15-58.3-58.96 219.98 59.88.05L285.05.48"}),Object(o.createElement)("path",{d:"M25.6 232.92L.8 325.4h122.73l50.22-188.13L25.6 232.92m426.32-81.42c-3 11.15-8.78 19.34-17.4 24.57-8.6 5.22-20.67 7.84-36.25 7.84h-49.5l17.38-64.8h49.5c15.56 0 26.25 2.6 32.05 7.9 5.8 5.3 7.2 13.4 4.22 24.6m51.25-1.4c6.3-23.4 3.7-41.4-7.82-54-11.5-12.5-31.68-18.8-60.48-18.8H324.4l-66.5 248.1h53.67l26.8-100h35.2c7.9 0 14.12 1.3 18.66 3.8 4.55 2.6 7.22 7.1 8.04 13.6l9.58 82.6h57.5l-9.32-77c-1.9-17.2-9.77-27.3-23.6-30.3 17.63-5.1 32.4-13.6 44.3-25.4a92.6 92.6 0 0 0 24.44-42.5m130.46 86.4c-4.5 16.8-11.4 29.5-20.73 38.4-9.34 8.9-20.5 13.3-33.52 13.3-13.26 0-22.25-4.3-27-13-4.76-8.7-4.92-21.3-.5-37.8 4.42-16.5 11.47-29.4 21.17-38.7 9.7-9.3 21.04-13.95 34.06-13.95 13 0 21.9 4.5 26.4 13.43 4.6 8.97 4.7 21.8.2 38.5zm23.52-87.8l-6.72 25.1c-2.9-9-8.53-16.2-16.85-21.6-8.34-5.3-18.66-8-30.97-8-15.1 0-29.6 3.9-43.5 11.7-13.9 7.8-26.1 18.8-36.5 33-10.4 14.2-18 30.3-22.9 48.4-4.8 18.2-5.8 34.1-2.9 47.9 3 13.9 9.3 24.5 19 31.9 9.8 7.5 22.3 11.2 37.6 11.2a82.4 82.4 0 0 0 35.2-7.7 82.11 82.11 0 0 0 28.4-21.2l-7 26.16h51.9L709.3 149h-52zm238.65 0H744.87l-10.55 39.4h87.82l-116.1 100.3-9.92 37h155.8l10.55-39.4h-94.1l117.88-101.8m142.4 52c-4.67 17.4-11.6 30.48-20.75 39-9.15 8.6-20.23 12.9-33.24 12.9-27.2 0-36.14-17.3-26.86-51.9 4.6-17.2 11.56-30.13 20.86-38.84 9.3-8.74 20.57-13.1 33.82-13.1 13 0 21.78 4.33 26.3 13.05 4.52 8.7 4.48 21.67-.13 38.87m30.38-80.83c-11.95-7.44-27.2-11.16-45.8-11.16-18.83 0-36.26 3.7-52.3 11.1a113.09 113.09 0 0 0-41 32.06c-11.3 13.9-19.43 30.2-24.42 48.8-4.9 18.53-5.5 34.8-1.7 48.73 3.8 13.9 11.8 24.6 23.8 32 12.1 7.46 27.5 11.17 46.4 11.17 18.6 0 35.9-3.74 51.8-11.18 15.9-7.48 29.5-18.1 40.8-32.1 11.3-13.94 19.4-30.2 24.4-48.8 5-18.6 5.6-34.84 1.8-48.8-3.8-13.9-11.7-24.6-23.6-32.05m185.1 40.8l13.3-48.1c-4.5-2.3-10.4-3.5-17.8-3.5-11.9 0-23.3 2.94-34.3 8.9-9.46 5.06-17.5 12.2-24.3 21.14l6.9-25.9-15.07.06h-37l-47.7 176.7h52.63l24.75-92.37c3.6-13.43 10.08-24 19.43-31.5 9.3-7.53 20.9-11.3 34.9-11.3 8.6 0 16.6 1.97 24.2 5.9m146.5 41.1c-4.5 16.5-11.3 29.1-20.6 37.8-9.3 8.74-20.5 13.1-33.5 13.1s-21.9-4.4-26.6-13.2c-4.8-8.85-4.9-21.6-.4-38.36 4.5-16.75 11.4-29.6 20.9-38.5 9.5-8.97 20.7-13.45 33.7-13.45 12.8 0 21.4 4.6 26 13.9 4.6 9.3 4.7 22.2.28 38.7m36.8-81.4c-9.75-7.8-22.2-11.7-37.3-11.7-13.23 0-25.84 3-37.8 9.06-11.95 6.05-21.65 14.3-29.1 24.74l.18-1.2 8.83-28.1h-51.4l-13.1 48.9-.4 1.7-54 201.44h52.7l27.2-101.4c2.7 9.02 8.2 16.1 16.6 21.22 8.4 5.1 18.77 7.63 31.1 7.63 15.3 0 29.9-3.7 43.75-11.1 13.9-7.42 25.9-18.1 36.1-31.9 10.2-13.8 17.77-29.8 22.6-47.9 4.9-18.13 5.9-34.3 3.1-48.45-2.85-14.17-9.16-25.14-18.9-32.9m174.65 80.65c-4.5 16.7-11.4 29.5-20.7 38.3-9.3 8.86-20.5 13.27-33.5 13.27-13.3 0-22.3-4.3-27-13-4.8-8.7-4.9-21.3-.5-37.8 4.4-16.5 11.42-29.4 21.12-38.7 9.7-9.3 21.05-13.94 34.07-13.94 13 0 21.8 4.5 26.4 13.4 4.6 8.93 4.63 21.76.15 38.5zm23.5-87.85l-6.73 25.1c-2.9-9.05-8.5-16.25-16.8-21.6-8.4-5.34-18.7-8-31-8-15.1 0-29.68 3.9-43.6 11.7-13.9 7.8-26.1 18.74-36.5 32.9-10.4 14.16-18 30.3-22.9 48.4-4.85 18.17-5.8 34.1-2.9 47.96 2.93 13.8 9.24 24.46 19 31.9 9.74 7.4 22.3 11.14 37.6 11.14 12.3 0 24.05-2.56 35.2-7.7a82.3 82.3 0 0 0 28.33-21.23l-7 26.18h51.9l47.38-176.7h-51.9zm269.87.06l.03-.05h-31.9c-1.02 0-1.92.05-2.85.07h-16.55l-8.5 11.8-2.1 2.8-.9 1.4-67.25 93.68-13.9-109.7h-55.08l27.9 166.7-61.6 85.3h54.9l14.9-21.13c.42-.62.8-1.14 1.3-1.8l17.4-24.7.5-.7 77.93-110.5 65.7-93 .1-.06h-.03z"}))},q=function(){return Object(o.createElement)("svg",{fill:"none",viewBox:"0 0 677 200",width:"100",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("g",{fill:"#000"},Object(o.createElement)("path",{clipRule:"evenodd",d:"m286.342 65.3132c-37.175 0-67.35 30.2415-67.35 67.3438 0 37.101 30.245 67.343 67.35 67.343 37.106 0 67.35-30.242 67.35-67.343 0-37.1023-30.174-67.3438-67.35-67.3438zm0 102.8348c-19.533 0-35.425-15.89-35.425-35.421s15.892-35.4222 35.425-35.4222 35.426 15.8912 35.426 35.4222-15.893 35.421-35.426 35.421z",fillRule:"evenodd"}),Object(o.createElement)("path",{d:"m510.375 42.0021c11.6 0 21.003-9.4025 21.003-21.0011 0-11.59851-9.403-21.001-21.003-21.001-11.599 0-21.003 9.40249-21.003 21.001 0 11.5986 9.404 21.0011 21.003 21.0011z"}),Object(o.createElement)("path",{clipRule:"evenodd",d:"m148.842 65.3833c-1.75-.14-3.431-.21-5.181-.21-16.242 0-31.644 6.6503-42.706 18.4109-11.0617-11.6906-26.394-18.4109-42.4964-18.4109-32.2047 0-58.4586 26.1813-58.4586 58.3827v73.714h31.5047v-72.804c0-13.37 10.9916-25.691 23.9435-27.0211.9101-.07 1.8203-.14 2.6604-.14 14.5621 0 26.4639 11.9001 26.5339 26.4611v73.504h32.2045v-72.944c0-13.3 10.922-25.621 23.944-26.9511.91-.07 1.82-.14 2.66-.14 14.562 0 26.534 11.8301 26.604 26.3211v73.714h32.205v-72.804c0-14.77-5.461-28.9812-15.332-39.9717-9.872-11.0606-23.384-17.8509-38.086-19.111z",fillRule:"evenodd"}),Object(o.createElement)("path",{d:"m403.26 3.15015h-32.205v194.25985h32.205z"}),Object(o.createElement)("path",{d:"m464.869 3.15015h-32.205v194.25985h32.205z"}),Object(o.createElement)("path",{d:"m526.478 68.5334h-32.205v128.8066h32.205z"}),Object(o.createElement)("path",{clipRule:"evenodd",d:"m677 129.646c0-17.08-6.651-33.1812-18.693-45.4318-12.112-12.2506-28.074-19.0409-45.086-19.0409-.28 0-.561 0-.841 0-17.642.21-34.305 7.2103-46.766 19.741-12.462 12.5306-19.463 29.1217-19.673 46.8327-.21 18.06 6.721 35.141 19.533 48.092 12.811 12.951 29.754 20.091 47.817 20.091h.07c23.663 0 45.856-12.671 57.968-33.042l1.54-2.59-26.604-13.09-1.33 2.17c-6.651 10.99-18.202 17.501-31.014 17.501-16.383 0-30.525-10.921-34.866-26.462h97.945zm-65.04-35.2113c14.703 0 27.864 9.6603 32.485 23.3813h-64.899c4.55-13.721 17.712-23.3813 32.414-23.3813z",fillRule:"evenodd"})))},B=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1333.333",version:"1",viewBox:"0 0 1000 1000"},Object(o.createElement)("path",{d:"M8987 7472c-15-16-17-45-17-194 0-157 2-177 18-191s44-17 189-17c152 0 172 2 186 18 15 16 17 45 17 194 0 157-2 177-18 191s-44 17-189 17c-152 0-172-2-186-18zM9413 7046l-28-24v-520l24-26 24-26h518l24 25 25 24v250c0 162-4 259-11 274-20 43-45 47-304 47-243 0-244 0-272-24zM8623 6435c-44-19-64-54-70-123l-6-59-106-6c-182-11-261-50-293-145-9-28-14-251-18-912l-5-875-29-62c-47-102-124-160-256-194-83-21-356-19-440 4-131 36-203 90-249 187l-26 55-5 875c-5 669-9 884-19 913-20 62-75 115-140 135-82 25-431 25-513-1-70-21-110-54-134-109-18-41-19-90-22-888-2-567 1-877 8-942 45-397 254-684 606-832 100-41 240-81 369-103 156-27 570-24 725 5 224 41 398 107 541 202 92 62 216 193 273 288 27 45 64 126 82 179 61 180 64 217 64 936v647h165c128 0 173 3 195 15 61 31 60 27 60 398 0 377-2 386-65 413-49 20-645 20-692-1zM322 6230c-114-24-221-100-268-192-55-108-54-73-54-1379V3453l23-34c29-44 72-58 172-58s143 14 172 58l23 34v935l473 5c379 4 489 8 557 21 374 72 570 244 656 573 36 135 45 410 20 562-64 379-252 580-626 667-65 15-141 18-590 20-283 1-534-2-558-6zm1107-388c75-27 103-44 154-91 88-82 127-217 127-438-1-343-95-479-370-529-56-10-188-13-513-14H389l3 503c3 457 5 505 21 534 35 64 26 63 512 60 429-2 442-3 504-25zM2665 5600c-114-13-234-38-274-58-62-31-76-61-76-167 0-79 3-98 21-121 32-43 65-49 163-30 175 33 251 40 441 40 272 0 384-28 473-121 62-63 78-123 84-309l6-162-369-5c-387-5-459-12-604-58-155-49-291-151-353-263-56-102-72-176-71-341 0-135 3-158 27-231 64-192 211-329 422-393 123-38 231-52 407-51 526 0 804 152 895 490 16 59 18 123 18 650v585l-23 75c-52 167-144 281-288 357-168 88-292 113-594 118-124 2-261 0-305-5zm832-1452c-7-243-17-288-83-358-49-52-106-81-211-106-89-22-373-25-453-5-198 49-277 155-268 355 3 80 8 99 34 146 50 87 142 139 289 160 27 4 196 8 374 9l324 1-6-202zM4073 5535c-46-20-67-57-59-105 9-57 420-1575 458-1690 42-130 91-221 152-283 64-64 123-94 228-115 68-13 95-14 171-4 50 6 93 10 95 8 7-7-80-211-113-266-37-61-97-122-155-157-48-29-155-60-232-68-130-14-162-36-160-115 2-84 30-166 69-200 32-28 38-30 121-30 98 0 228 26 318 63 229 93 393 294 499 613 53 161 565 2215 565 2269 0 50-21 80-64 91-14 3-70 4-125 2-116-4-142-16-179-89-14-27-95-348-212-837-104-437-198-812-209-835-37-83-92-117-188-117-113 0-163 31-204 126-9 23-106 367-214 765-245 906-247 910-285 943-17 14-47 30-68 36-52 14-171 12-209-5z",transform:"matrix(.1 0 0 -.1 0 1000)"}))},F=(n(116),n(259),n(284),n(48)),D=n.n(F),V=n(51),z=n.n(V),H=n(28);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var K=function(e){g()(s,e);var t,n,c=Y(s);function s(e){var t;return d()(this,s),(t=c.call(this,e)).state={oAuthConnectFailed:!1,connectURL:null,isPending:!1},t.updateSettings=t.updateSettings.bind(y()(t)),t}return _()(s,[{key:"componentDidMount",value:function(){var e=this.state.oAuthConnectFailed,t=this.props.stripeSettings,n=Object(H.getQuery)();if(n["stripe-connect"]&&"1"===n["stripe-connect"]&&(t.publishable_key&&t.secret_key))return void this.completeMethod();e||this.fetchOAuthConnectURL()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes("woocommerce-gateway-stripe")&&t.includes("woocommerce-gateway-stripe")&&this.fetchOAuthConnectURL()}},{key:"completeMethod",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;this.setState({isPending:!1}),t("success",Object(a.__)("Stripe connected successfully.",'woocommerce')),n("stripe")}},{key:"fetchOAuthConnectURL",value:(n=u()(C.a.mark((function e(){var t;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.props.activePlugins.includes("woocommerce-gateway-stripe")){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,this.setState({isPending:!0}),e.next=7,D()({path:L.WCS_NAMESPACE+"/connect/stripe/oauth/init",method:"POST",data:{returnUrl:Object(i.f)("admin.php?page=wc-admin&task=payments&method=stripe&stripe-connect=1")}});case 7:if((t=e.sent)&&t.oauthUrl){e.next=11;break}return this.setState({oAuthConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:this.setState({connectURL:t.oauthUrl,isPending:!1}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),this.setState({oAuthConnectFailed:!0,isPending:!1});case 17:case"end":return e.stop()}}),e,this,[[3,14]])}))),function(){return n.apply(this,arguments)})},{key:"renderConnectButton",value:function(){var e=this.state.connectURL;return Object(o.createElement)(E.Button,{isPrimary:!0,href:e},Object(a.__)("Connect",'woocommerce'))}},{key:"updateSettings",value:(t=u()(C.a.mark((function e(t){var n,c,o,i,s,l;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=this.props,o=c.updateOptions,i=c.stripeSettings,s=c.createNotice,l=t.publishable_key.match(/^pk_live_/)?"":"test_",e.next=4,o({woocommerce_stripe_settings:W(W({},i),{},(n={},r()(n,l+"publishable_key",t.publishable_key),r()(n,l+"secret_key",t.secret_key),r()(n,"testmode","test_"===l?"yes":"no"),r()(n,"enabled","yes"),n))});case 4:e.sent.success?this.completeMethod():s("error",Object(a.__)("There was a problem saving your payment settings",'woocommerce'));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){return{publishable_key:"",secret_key:""}}},{key:"validateManualConfig",value:function(e){var t={};return null===e.publishable_key.match(/^pk_(live|test)_[a-zA-Z0-9_]+/)&&(t.publishable_key=Object(a.__)('Please enter a valid publishable key (starting with "pk_").','woocommerce')),null===e.secret_key.match(/^[rs]k_(live|test)_[a-zA-Z0-9_]+/)?t.secret_key=Object(a.__)('Please enter a valid secret key (starting with "sk_" or "rk_").','woocommerce'):e.secret_key.slice(3,7)!==e.publishable_key.slice(3,7)&&(t.secret_key=Object(a.__)("Please enter a secret key in the same mode as the publishable key.",'woocommerce')),t}},{key:"renderManualConfig",value:function(){var e=this.props,t=e.isOptionsUpdating,n=e.recordConnectStartEvent,c=z()({mixedString:Object(a.__)("Your API details can be obtained from your {{docsLink}}Stripe account{{/docsLink}}. Don’t have a Stripe account? {{registerLink}}Create one.{{/registerLink}}",'woocommerce'),components:{docsLink:Object(o.createElement)(x.Link,{href:"https://stripe.com/docs/keys",target:"_blank",type:"external"}),registerLink:Object(o.createElement)(x.Link,{href:"https://dashboard.stripe.com/register",target:"_blank",type:"external"})}});return Object(o.createElement)(x.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validateManualConfig},(function(e){var r=e.getInputProps,i=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Publishable Key",'woocommerce'),required:!0},r("publishable_key"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Secret Key",'woocommerce'),required:!0},r("secret_key"))),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:t,onClick:function(e){n("stripe"),i(e)}},Object(a.__)("Proceed",'woocommerce')),Object(o.createElement)("p",null,c))}))}},{key:"renderOauthConfig",value:function(){var e=this,t=this.props.recordConnectStartEvent,n=z()({mixedString:Object(a.__)('By clicking "Connect," you agree to the {{tosLink}}Terms of Service{{/tosLink}}. Or {{manualConfigLink}}manually enter your Stripe API details{{/manualConfigLink}} instead.','woocommerce'),components:{tosLink:Object(o.createElement)(x.Link,{href:"https://wordpress.com/tos",target:"_blank",type:"external"}),manualConfigLink:Object(o.createElement)(E.Button,{isLink:!0,onClick:function(){e.setState({connectURL:null}),t("stripe")}})}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,this.renderConnectButton()),n)}},{key:"getConnectStep",value:function(){var e=this.state,t=e.connectURL,n=e.isPending,c=e.oAuthConnectFailed,r={key:"connect",label:Object(a.__)("Connect your Stripe account",'woocommerce')};return n?r:W(W({},r),{},!c&&t?{description:Object(a.__)("A Stripe account is required to process payments.",'woocommerce'),content:this.renderOauthConfig()}:{content:this.renderManualConfig()})}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsUpdating,c=this.state.isPending;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete||n||c,currentStep:t.isComplete?"connect":"install",steps:[t,this.getConnectStep()]})}}]),s}(o.Component),G=Object(P.compose)(Object(S.withSelect)((function(e){var t=e(L.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating;return{activePlugins:(0,e(L.PLUGINS_STORE_NAME).getActivePlugins)(),isOptionsUpdating:c(),stripeSettings:n("woocommerce_stripe_settings")||[]}})),Object(S.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(L.OPTIONS_STORE_NAME).updateOptions}})))(K);function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var $=function(e){g()(c,e);var t,n=X(c);function c(e){var t;return d()(this,c),(t=n.call(this,e)).state={isPending:!1},t.connect=t.connect.bind(y()(t)),t}return _()(c,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured,c=Object(H.getQuery)();c["square-connect"]&&"1"===c["square-connect"]&&(t("success",Object(a.__)("Square connected successfully.",'woocommerce')),n("square"))}},{key:"connect",value:(t=u()(C.a.mark((function e(){var t,n,c,r,o,i,s,l,m;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.createNotice,c=t.hasCbdIndustry,r=t.options,o=t.recordConnectStartEvent,i=t.updateOptions,this.setState({isPending:!0}),i({woocommerce_square_credit_card_settings:J(J({},r.woocommerce_square_credit_card_settings),{},{enabled:"yes"})}),s=Object(a.__)("There was an error connecting to Square. Please try again or skip to connect later in store settings.",'woocommerce'),o("square"),e.prev=5,l=null,c&&(l=window.open("/","_blank")),e.next=10,D()({path:L.WC_ADMIN_NAMESPACE+"/plugins/connect-square",method:"POST"});case 10:if((m=e.sent)&&m.connectUrl){e.next=16;break}return this.setState({isPending:!1}),n("error",s),c&&l.close(),e.abrupt("return");case 16:this.setState({isPending:!0}),this.redirect(m.connectUrl,l),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(5),this.setState({isPending:!1}),n("error",s);case 24:case"end":return e.stop()}}),e,this,[[5,20]])}))),function(){return t.apply(this,arguments)})},{key:"redirect",value:function(e,t){t?(t.location.href=e,window.location=Object(i.f)("admin.php?page=wc-admin")):window.location=e}},{key:"render",value:function(){var e=this.props.installStep,t=this.state.isPending;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!e.isComplete||t,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(a.__)("Connect your Square account",'woocommerce'),description:Object(a.__)("A Square account is required to process payments. You will be redirected to the Square website to create the connection.",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:t,onClick:this.connect},Object(a.__)("Connect",'woocommerce')))}]})}}]),c}(o.Component),ee=Object(P.compose)(Object(S.withSelect)((function(e){var t=e(L.OPTIONS_STORE_NAME),n=t.getOption,c=t.isResolving;return{options:n("woocommerce_square_credit_card_settings"),optionsIsRequesting:c("getOption",["woocommerce_square_credit_card_settings"])}})),Object(S.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(L.OPTIONS_STORE_NAME).updateOptions}})))($),te=n(652),ne=n(38);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function 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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var ae="woocommerce-paypal-payments";function ie(e,t,n){try{ppcp_onboarding&&n()}catch(r){var c=document.createElement("script");c.src=e,document.body.append(c),c.onload=function(){n()},window.PayPalCommerceGatewayOnboarding=t}}function se(e){var t=e.connectUrl,n=e.recordConnectStartEvent;return Object(o.useEffect)((function(){ppcp_onboarding&&ppcp_onboarding.reload()}),[]),Object(o.createElement)("a",{className:"button-primary",target:"_blank",rel:"noreferrer",href:t,"data-paypal-onboard-button":"true","data-paypal-button":"true","data-paypal-onboard-complete":"ppcp_onboarding_productionCallback",onClick:function(){return n("paypal")}},Object(a.__)("Connect",'woocommerce'))}var le=function(e){g()(m,e);var t,n,c,i,s=oe(m);function m(e){var t;return d()(this,m),(t=s.call(this,e)).state={autoConnectFailed:!1,connectURL:""},t.enablePaypalPlugin=t.enablePaypalPlugin.bind(y()(t)),t.setCredentials=t.setCredentials.bind(y()(t)),t.validate=t.validate.bind(y()(t)),t}return _()(m,[{key:"componentDidMount",value:function(){var e=this.props.createNotice,t=Object(H.getQuery)();if(t.onboarding)return"complete"!==t.onboarding||t["ppcp-onboarding-error"]?void(t["ppcp-onboarding-error"]&&(this.setState({autoConnectFailed:!0}),e("error",Object(a.__)("There was a problem saving your payment settings through the onboarding, please fill the fields in manually.",'woocommerce')))):void this.enablePaypalPlugin();this.fetchOAuthConnectURLAndOnboardingSetup()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes(ae)&&t.includes(ae)&&this.fetchOAuthConnectURLAndOnboardingSetup()}},{key:"fetchOAuthConnectURLAndOnboardingSetup",value:(i=u()(C.a.mark((function e(){var t,n,c,r,o=this;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props,n=t.activePlugins,c=t.createNotice,n.includes(ae)){e.next=3;break}return e.abrupt("return");case 3:return this.setState({isPending:!0}),e.prev=4,e.next=7,D()({path:"/wc-paypal/v1/onboarding/get-params",method:"POST",data:{environment:"production",returnUrlArgs:{ppcpobw:"1"}}});case 7:if((r=e.sent)&&r.signupLink){e.next=11;break}return this.setState({autoConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:ie(r.scriptURL,r.scriptData,(function(){o.setState({connectURL:r.signupLink,isPending:!1})})),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(4),e.t0&&e.t0.data&&500===e.t0.data.status&&c("error",Object(a.__)("There was a problem with the Paypal onboarding setup, please fill the fields in manually.",'woocommerce')),this.setState({autoConnectFailed:!0,isPending:!1});case 18:case"end":return e.stop()}}),e,this,[[4,14]])}))),function(){return i.apply(this,arguments)})},{key:"enablePaypalPlugin",value:(c=u()(C.a.mark((function e(t){var n,c,r,o,i,s;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,c=n.createNotice,r=n.updateOptions,o=n.markConfigured,i=n.options,s={"woocommerce_ppcp-gateway_settings":{enabled:"yes"}},t||(s["woocommerce-ppcp-settings"]=re(re({},i),{},{enabled:!0})),e.next=5,r(s);case 5:e.sent.success?(c("success",Object(a.__)("PayPal connected successfully.",'woocommerce')),o("paypal")):c("error",Object(a.__)("There was a problem saving your payment settings.",'woocommerce'));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"setCredentials",value:(n=u()(C.a.mark((function e(t){var n,c;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props.createNotice,e.prev=1,e.next=4,D()({path:"/wc-paypal/v1/onboarding/set-credentials",method:"POST",data:re({environment:"production"},t)});case 4:if(!(c=e.sent)||!c.data){e.next=9;break}n("error",Object(a.__)("There was a problem updating the credentials.",'woocommerce')),e.next=11;break;case 9:return e.next=11,this.enablePaypalPlugin(!0);case 11:e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(1),!e.t0||!e.t0.data||404!==e.t0.data.status){e.next=18;break}return e.next=18,this.updateManualSettings(t);case 18:case"end":return e.stop()}}),e,this,[[1,13]])}))),function(e){return n.apply(this,arguments)})},{key:"updateManualSettings",value:(t=u()(C.a.mark((function e(t){var n,c,o,i,s,l,m;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,c=n.createNotice,o=n.options,i=n.updateOptions,s=n.markConfigured,l=Object.keys(t).reduce((function(e,n){var c=n+"_production";return re(re({},e),{},r()({},c,t[n]))}),{}),m=re(re({},o),{},{enabled:!0,sandbox_on:!1,merchant_email:t.merchant_email,merchant_id:t.merchant_id},l),e.next=5,i({"woocommerce-ppcp-settings":m,"woocommerce_ppcp-gateway_settings":{enabled:"yes"}});case 5:e.sent.success?(c("success",Object(a.__)("PayPal connected successfully.",'woocommerce')),s("paypal")):c("error",Object(a.__)("There was a problem saving your payment settings.",'woocommerce'));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){var e=this.props.options;return["merchant_email","merchant_id","client_id","client_secret"].reduce((function(t,n){return re(re({},t),{},r()({},n,e&&e[n+"_production"]?e[n+"_production"]:""))}),{})}},{key:"validate",value:function(e){var t={};return e.merchant_email||(t.merchant_email=Object(a.__)("Please enter your Merchant email",'woocommerce')),Object(ne.isEmail)(e.merchant_email)||(t.merchant_email=Object(a.__)("Please enter a valid email address",'woocommerce')),e.merchant_id||(t.merchant_id=Object(a.__)("Please enter your Merchant Id",'woocommerce')),e.client_id||(t.client_id=Object(a.__)("Please enter your Client Id",'woocommerce')),e.client_secret||(t.client_secret=Object(a.__)("Please enter your Client Secret",'woocommerce')),t}},{key:"renderManualConfig",value:function(){var e=this.props.isOptionsUpdating,t=z()({mixedString:Object(a.__)("Your API details can be obtained from your {{docsLink}}Paypal developer account{{/docsLink}}, and your Merchant Id from your {{merchantLink}}Paypal Business account{{/merchantLink}}. Don’t have a Paypal account? {{registerLink}}Create one.{{/registerLink}}",'woocommerce'),components:{docsLink:Object(o.createElement)(x.Link,{href:"https://developer.paypal.com/docs/api-basics/manage-apps/#create-or-edit-sandbox-and-live-apps",target:"_blank",type:"external"}),merchantLink:Object(o.createElement)(x.Link,{href:"https://www.paypal.com/ca/smarthelp/article/FAQ3850",target:"_blank",type:"external"}),registerLink:Object(o.createElement)(x.Link,{href:"https://www.paypal.com/us/business",target:"_blank",type:"external"})}});return Object(o.createElement)(x.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.setCredentials,validate:this.validate},(function(n){var c=n.getInputProps,r=n.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Email address",'woocommerce'),required:!0},c("merchant_email"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Merchant Id",'woocommerce'),required:!0},c("merchant_id"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Client Id",'woocommerce'),required:!0},c("client_id"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Secret Key",'woocommerce'),required:!0},c("client_secret"))),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:e,onClick:r},Object(a.__)("Proceed",'woocommerce')),Object(o.createElement)("p",null,t))}))}},{key:"renderConnectFields",value:function(){var e=this.state,t=e.autoConnectFailed,n=e.connectURL,c=this.props.recordConnectStartEvent;return!t&&n?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(se,{connectUrl:n,recordConnectStartEvent:c}),Object(o.createElement)("p",null,Object(a.__)("You will be redirected to the PayPal website to create the connection.",'woocommerce'))):t?this.renderManualConfig():void 0}},{key:"getConnectStep",value:function(){var e=this.props.isRequestingOptions;return{key:"connect",label:Object(a.__)("Connect your PayPal account",'woocommerce'),description:Object(a.__)("A PayPal account is required to process payments. Connect your store to your PayPal account.",'woocommerce'),content:e?null:this.renderConnectFields()}}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isRequestingOptions,c=e.isOptionsUpdating,r=this.state.isPending;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete||r||n||c,currentStep:t.isComplete?"connect":"install",steps:[t,this.getConnectStep()]})}}]),m}(o.Component);le.defaultProps={manualConfig:!1};var me=Object(P.compose)(Object(S.withSelect)((function(e){var t=e(L.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating,r=t.hasFinishedResolution,o=e(L.PLUGINS_STORE_NAME).getActivePlugins,a=n("woocommerce-ppcp-settings"),i=!r("getOption",["woocommerce-ppcp-settings"]);return{activePlugins:o(),isOptionsUpdating:c(),options:a,isRequestingOptions:i}})),Object(S.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(L.OPTIONS_STORE_NAME).updateOptions}})))(le),ue=n(220),pe=function(e){var t=e.installStep,n=e.markConfigured,c=Object(S.useSelect)((function(e){var t=(0,e(L.SETTINGS_STORE_NAME).getSettings)("general").general,n=void 0===t?{}:t;return{countryCode:Object(ue.b)(n.woocommerce_default_country)}})).countryCode;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect to your Mercado Pago account",'woocommerce'),content:Object(o.createElement)(de,{countryCode:c,onFinish:function(){return n("mercadopago")}})}]})},de=function(e){var t=e.countryCode,n=e.onFinish,c=Object(o.createElement)(x.Link,{href:"".concat(i.a,"admin.php?page=wc-settings&tab=checkout"),target:"_blank",type:"external"}),r=Object(o.createElement)(x.Link,{href:["AR","BR","CL","CO","MX","PE","UY"].includes(t)?"".concat("https://www.mercadopago.com",".").concat(t.toLowerCase(),"/registration-company?confirmation_url=").concat("https://www.mercadopago.com",".").concat(t.toLowerCase(),"%2Fcomo-cobrar"):"https://www.mercadopago.com",target:"_blank",type:"external"}),s=z()({mixedString:Object(a.__)("Mercado Pago can be configured under your {{settingsLink}}store settings.{{/settingsLink}} Create your Mercado Pago account {{accountLink}}here.{{/accountLink}}",'woocommerce'),components:{accountLink:r,settingsLink:c}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,s),Object(o.createElement)(E.Button,{isPrimary:!0,onClick:n},Object(a.__)("Continue",'woocommerce')))};function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var _e=function(e){g()(n,e);var t=be(n);function n(e){var c;return d()(this,n),(c=t.call(this,e)).continue=c.continue.bind(y()(c)),c}return _()(n,[{key:"continue",value:function(){var e=this.props;(0,e.markConfigured)("checkout"===e.plugin?"klarna_checkout":"klarna_payments")}},{key:"renderConnectStep",value:function(){var e=this.props.plugin,t="checkout"===e?"klarna-checkout":"klarna-payments",n="checkout"===e?"kco":"klarna_payments",c=Object(o.createElement)(x.Link,{href:i.a+"admin.php?page=wc-settings&tab=checkout&section="+n,target:"_blank",type:"external"}),r=Object(o.createElement)(x.Link,{href:"https://docs.woocommerce.com/document/"+t+"/#section-3",target:"_blank",type:"external"}),s=z()({mixedString:Object(a.__)("Klarna can be configured under your {{link}}store settings{{/link}}. Figure out {{helpLink}}what you need{{/helpLink}}.",'woocommerce'),components:{link:c,helpLink:r}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,s),Object(o.createElement)(E.Button,{isPrimary:!0,onClick:this.continue},Object(a.__)("Continue",'woocommerce')))}},{key:"render",value:function(){var e=this.props.installStep;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!e.isComplete,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(a.__)("Connect your Klarna account",'woocommerce'),content:this.renderConnectStep()}]})}}]),n}(o.Component);function fe(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var ye=function(e){g()(n,e);var t=fe(n);function n(){var e;d()(this,n);for(var c=arguments.length,o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),r()(y()(e),"getInitialConfigValues",(function(){return{customer_api:"",customer_password:""}})),r()(y()(e),"validate",(function(e){var t={};return e.customer_api||(t.customer_api=Object(a.__)("Please enter your customer API key ",'woocommerce')),e.customer_password||(t.customer_password=Object(a.__)("Please enter your customer password",'woocommerce')),t})),r()(y()(e),"updateSettings",function(){var t=u()(C.a.mark((function t(n){var c,r,o,i;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,r=c.updateOptions,o=c.createNotice,i=c.markConfigured,t.next=3,r({woocommerce_eway_settings:{customer_api:n.customer_api,customer_password:n.customer_password,enabled:"yes"}});case 3:t.sent.success?(i("eway"),o("success",Object(a.__)("eWAY connected successfully",'woocommerce'))):o("error",Object(a.__)("There was a problem saving your payment settings",'woocommerce'));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return _()(n,[{key:"renderConnectStep",value:function(){var e=this.props,t=e.isOptionsRequesting,n=e.recordConnectStartEvent,c=z()({mixedString:Object(a.__)("Your API details can be obtained from your {{link}}eWAY account{{/link}}",'woocommerce'),components:{link:Object(o.createElement)(x.Link,{href:"https://www.eway.com.au/",target:"_blank",type:"external"})}});return Object(o.createElement)(x.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(e){var r=e.getInputProps,i=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Customer API Key",'woocommerce'),required:!0},r("customer_api"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Customer Password",'woocommerce'),required:!0},r("customer_password"))),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:t,onClick:function(e){n("eway"),i(e)}},Object(a.__)("Proceed",'woocommerce')),Object(o.createElement)("p",null,c))}))}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsRequesting;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete||n,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect your eWAY account",'woocommerce'),content:this.renderConnectStep()}]})}}]),n}(o.Component),he=Object(P.compose)(Object(S.withSelect)((function(e){return{isOptionsRequesting:(0,e(L.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(S.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(L.OPTIONS_STORE_NAME).updateOptions}})))(ye),ge={key_id:"",key_secret:""},Oe=function(e){var t={};return e.key_id||(t.key_id=Object(a.__)("Please enter your Key ID",'woocommerce')),e.key_secret||(t.key_secret=Object(a.__)("Please enter your Key Secret",'woocommerce')),t},we=function(){var e=u()(C.a.mark((function e(t,n,c,r){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({woocommerce_razorpay_settings:{key_id:t.key_id,key_secret:t.key_secret,enabled:"yes"}});case 2:e.sent.success?(c("razorpay"),n("success",Object(a.__)("Razorpay connected successfully",'woocommerce'))):n("error",Object(a.__)("There was a problem saving your payment settings",'woocommerce'));case 4:case"end":return e.stop()}}),e)})));return function(t,n,c,r){return e.apply(this,arguments)}}(),je=function(e){var t=e.createNotice,n=e.isOptionsRequesting,c=e.markConfigured,r=e.updateOptions,i=z()({mixedString:Object(a.__)("Your key details can be obtained from your {{link}}Razorpay account{{/link}}",'woocommerce'),components:{link:Object(o.createElement)(x.Link,{href:"https://dashboard.razorpay.com/#/access/signin",target:"_blank",type:"external"})}});return Object(o.createElement)(x.Form,{initialValues:ge,onSubmitCallback:function(e){return we(e,t,c,r)},validate:Oe},(function(e){var t=e.getInputProps,c=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Key ID",'woocommerce'),required:!0},t("key_id"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Key Secret",'woocommerce'),required:!0},t("key_secret"))),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:n,onClick:c},Object(a.__)("Proceed",'woocommerce')),Object(o.createElement)("p",null,i))}))},ke=function(e){var t=e.createNotice,n=e.installStep,c=e.isOptionsRequesting,r=e.markConfigured,i=e.updateOptions;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!n.isComplete||c,currentStep:n.isComplete?"connect":"install",steps:[n,{key:"connect",label:Object(a.__)("Connect your Razorpay account",'woocommerce'),content:je({createNotice:t,isOptionsRequesting:c,markConfigured:r,updateOptions:i})}]})},ve=function(e){var t=e.installStep,n=e.markConfigured,c=Object(S.useSelect)((function(e){return e(L.OPTIONS_STORE_NAME).isOptionsUpdating}))(),r=Object(S.useDispatch)("core/notices").createNotice,a=Object(S.useDispatch)(L.OPTIONS_STORE_NAME).updateOptions;return Object(o.createElement)(ke,{createNotice:r,installStep:t,isOptionsRequesting:c,markConfigured:n,updateOptions:a})},Ce=function(e){var t=e.installStep,n=e.markConfigured;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect your Mollie account",'woocommerce'),content:Object(o.createElement)(Ee,{onFinish:function(){n("mollie")}})}]})},Ee=function(e){var t=e.onFinish,n=Object(o.createElement)(x.Link,{href:"".concat(i.a,"admin.php?page=wc-settings&tab=mollie_settings#mollie-payments-for-woocommerce"),target:"_blank",type:"external"}),c=Object(o.createElement)(x.Link,{href:"https://www.mollie.com/dashboard/signup",target:"_blank",type:"external"}),r=z()({mixedString:Object(a.__)("Create a {{accountLink}}Mollie account{{/accountLink}} and finish the configuration in the {{settingsLink}}Mollie settings.{{/settingsLink}}",'woocommerce'),components:{accountLink:c,settingsLink:n}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,r),Object(o.createElement)(E.Button,{isPrimary:!0,onClick:t},Object(a.__)("Continue",'woocommerce')))},Pe=function(e){var t=e.installStep,n=e.markConfigured;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect to your PayU account",'woocommerce'),content:Object(o.createElement)(Se,{onFinish:function(){n("payubiz")}})}]})},Se=function(e){var t=e.onFinish,n=Object(o.createElement)(x.Link,{href:"".concat(i.a,"admin.php?page=wc-settings&tab=checkout&section=payubiz"),target:"_blank",type:"external"}),c=Object(o.createElement)(x.Link,{href:"https://onboarding.payu.in/app/account",target:"_blank",type:"external"}),r=z()({mixedString:Object(a.__)("PayU can be configured under your {{settingsLink}}store settings.{{/settingsLink}} Create your PayU account {{accountLink}}here.{{/accountLink}}",'woocommerce'),components:{accountLink:c,settingsLink:n}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,r),Object(o.createElement)(E.Button,{isPrimary:!0,onClick:t},Object(a.__)("Continue",'woocommerce')))};n(281),n(158);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e){var t,n=e.installStep,c=e.markConfigured,i=e.methodConfig,s=e.recordConnectStartEvent,m=Object(S.useDispatch)(L.OPTIONS_STORE_NAME).updateOptions,p=Object(S.useDispatch)("core/notices").createNotice,d=Object(S.useSelect)((function(e){return(0,e(L.OPTIONS_STORE_NAME).isOptionsUpdating)()})),b=function(){if(i&&i.fields)return i.fields.reduce((function(e,t){return Le(Le({},e),{},r()({},t.name,""))}),{})},_=function(e){return i&&i.fields?i.fields.reduce((function(t,n){if(!e[n.name]){var c=n.title.replace(/([A-Z][a-z]+)/,(function(e){return e.toLowerCase()}));return Le(Le({},t),{},r()({},n.name,Object(a.__)("Please enter your ")+c))}return t}),{}):{}},f=function(){var e=u()(C.a.mark((function e(t){var n;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.getOptions?i.getOptions(t):null){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,m(Le({},n));case 5:e.sent.success?(c(i.key),p("success",i.title+Object(a.__)(" connected successfully",'woocommerce'))):p("error",Object(a.__)("There was a problem saving your payment settings",'woocommerce'));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!n.isComplete||d,currentStep:n.isComplete?"connect":"install",steps:[n,{key:"connect",label:Object(a.sprintf)(Object(a.__)("Connect your %(title)s account",'woocommerce'),{title:i.title}),content:(t=z()({mixedString:Object(a.__)("Your API details can be obtained from your {{link/}}",'woocommerce'),components:{link:Object(o.createElement)(x.Link,{href:i.apiDetailsLink,target:"_blank",type:"external"},Object(a.sprintf)(Object(a.__)("%(title)s account",'woocommerce'),{title:i.title}))}}),Object(o.createElement)(x.Form,{initialValues:b(),onSubmitCallback:f,validate:_},(function(e){var n=e.getInputProps,c=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,(i.fields||[]).map((function(e){return Object(o.createElement)(x.TextControl,l()({key:e.name,label:e.title,required:!0},n(e.name)))})),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:d,onClick:function(e){s(i.key),c(e)}},Object(a.__)("Proceed",'woocommerce')),Object(o.createElement)("p",null,t))})))}]})}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te=Object(i.g)("wcAdminAssetUrl",""),Me=function(e){return Object(i.f)("admin.php?page=wc-settings&tab=checkout&section="+e)},Ue={isConfigured:!0};function Ie(e){var t=e.activePlugins,n=e.countryCode,c=e.createNotice,r=e.installAndActivatePlugins,s=e.onboardingStatus,l=e.options,m=e.profileItems,u=e.paypalOnboardingStatus,p=e.loadingPaypalStatus,d=s.stripeSupportedCountries,b=void 0===d?[]:d,_=s.wcPayIsConnected,f=void 0!==_&&_,y=s.enabledPaymentGateways,h=void 0===y?[]:y,g=(m.industry||[]).some((function(e){return"cbd-other-hemp-derived-products"===e.slug})),O=l.woocommerce_stripe_settings&&("no"===l.woocommerce_stripe_settings.testmode?l.woocommerce_stripe_settings.publishable_key&&l.woocommerce_stripe_settings.secret_key:l.woocommerce_stripe_settings.test_publishable_key&&l.woocommerce_stripe_settings.test_secret_key),w=[{key:"stripe",title:Object(a.__)("Credit cards - powered by Stripe",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Accept debit and credit cards in 135+ currencies, methods such as Alipay, and one-touch checkout with Apple Pay.",'woocommerce')),before:Object(o.createElement)("img",{src:i.e+"images/stripe.png",alt:""}),visible:b.includes(n)&&!g,plugins:["woocommerce-gateway-stripe"],container:Object(o.createElement)(G,null),isConfigured:O,isEnabled:l.woocommerce_stripe_settings&&"yes"===l.woocommerce_stripe_settings.enabled,optionName:"woocommerce_stripe_settings",manageUrl:Me("stripe")},{key:"paystack",title:Object(a.__)("Paystack",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Paystack helps African merchants accept one-time and recurring payments online with a modern, safe, and secure payment gateway.",'woocommerce')),before:Object(o.createElement)("img",{src:Te+"onboarding/paystack.png",alt:"Paystack logo"}),visible:["ZA","GH","NG"].includes(n)&&!g,plugins:["woo-paystack"],container:Object(o.createElement)(Re,null),isConfigured:l.woocommerce_paystack_settings&&l.woocommerce_paystack_settings.live_public_key&&l.woocommerce_paystack_settings.live_secret_key,isEnabled:h.includes("paystack"),optionName:"woocommerce_paystack_settings",apiDetailsLink:"https://dashboard.paystack.com/#/settings/developer",fields:[{name:"live_public_key",title:Object(a.__)("Live Public Key",'woocommerce')},{name:"live_secret_key",title:Object(a.__)("Live Secret Key",'woocommerce')}],getOptions:function(e){return{woocommerce_currency:"ZAR",woocommerce_paystack_settings:Ae(Ae({},e),{},{testmode:"no"})}},manageUrl:Me("paystack")},{key:"payfast",title:Object(a.__)("PayFast",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The PayFast extension for WooCommerce enables you to accept payments by Credit Card and EFT via one of South Africa’s most popular payment gateways. No setup fees or monthly subscription costs.",'woocommerce'),Object(o.createElement)("p",null,Object(a.__)("Selecting this extension will configure your store to use South African rands as the selected currency.",'woocommerce'))),before:Object(o.createElement)("img",{src:i.e+"images/payfast.png",alt:"PayFast logo"}),visible:["ZA"].includes(n)&&!g,plugins:["woocommerce-payfast-gateway"],container:Object(o.createElement)(Re,null),isConfigured:l.woocommerce_payfast_settings&&l.woocommerce_payfast_settings.merchant_id&&l.woocommerce_payfast_settings.merchant_key&&l.woocommerce_payfast_settings.pass_phrase,isEnabled:l.woocommerce_payfast_settings&&"yes"===l.woocommerce_payfast_settings.enabled,optionName:"woocommerce_payfast_settings",apiDetailsLink:"https://www.payfast.co.za/",fields:[{name:"merchant_id",title:Object(a.__)("Merchant ID",'woocommerce')},{name:"merchant_key",title:Object(a.__)("Merchant Key",'woocommerce')},{name:"pass_phrase",title:Object(a.__)("Passphrase",'woocommerce')}],getOptions:function(e){return{woocommerce_currency:"ZAR",woocommerce_payfast_settings:Ae(Ae({},e),{},{testmode:"no"})}},manageUrl:Me("stripe")},{key:"mercadopago",title:Object(a.__)("Mercado Pago Checkout Pro & Custom",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Accept credit and debit cards, offline (cash or bank transfer) and logged-in payments with money in Mercado Pago. Safe and secure payments with the leading payment processor in LATAM.",'woocommerce')),before:Object(o.createElement)("img",{src:Te+"onboarding/mercadopago.png",alt:""}),visible:["AR","BR","CL","CO","MX","PE","UY"].includes(n),plugins:["woocommerce-mercadopago"],container:Object(o.createElement)(pe,null),isConfigured:t.includes("woocommerce-mercadopago"),isEnabled:l["woocommerce_woo-mercado-pago-basic_settings"]&&"yes"===l["woocommerce_woo-mercado-pago-basic_settings"].enabled,optionName:"woocommerce_woo-mercado-pago-basic_settings",manageUrl:Me("woo-mercado-pago-basic")},{key:"paypal",title:Object(a.__)("PayPal Payments",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Safe and secure payments using credit cards or your customer's PayPal account.",'woocommerce')),before:Object(o.createElement)("img",{src:i.e+"images/paypal.png",alt:""}),visible:"IN"!==n&&!g,plugins:[ae],container:Object(o.createElement)(me,null),isConfigured:u&&u.production&&u.production.onboarded,isEnabled:h.includes("ppcp-gateway"),optionName:"woocommerce_ppcp-gateway_settings",loading:!!t.includes(ae)&&p,manageUrl:Me("ppcp-gateway")},{key:"klarna_checkout",title:Object(a.__)("Klarna Checkout",'woocommerce'),content:Object(a.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.",'woocommerce'),before:Object(o.createElement)("img",{src:i.e+"images/klarna-black.png",alt:""}),visible:["SE","FI","NO"].includes(n)&&!g,plugins:["klarna-checkout-for-woocommerce"],container:Object(o.createElement)(_e,{plugin:"checkout"}),isConfigured:t.includes("klarna-checkout-for-woocommerce"),isEnabled:l.woocommerce_kco_settings&&"yes"===l.woocommerce_kco_settings.enabled,optionName:"woocommerce_kco_settings",manageUrl:Me("kco")},{key:"klarna_payments",title:Object(a.__)("Klarna Payments",'woocommerce'),content:Object(a.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.",'woocommerce'),before:Object(o.createElement)("img",{src:i.e+"images/klarna-black.png",alt:""}),visible:["DK","DE","AT","NL","CH","BE","SP","PL","FR","IT","GB"].includes(n)&&!g,plugins:["klarna-payments-for-woocommerce"],container:Object(o.createElement)(_e,{plugin:"payments"}),isConfigured:t.includes("klarna-payments-for-woocommerce"),isEnabled:l.woocommerce_klarna_payments_settings&&"yes"===l.woocommerce_klarna_payments_settings.enabled,optionName:"woocommerce_klarna_payments_settings",manageUrl:Me("klarna_payments")},{key:"mollie",title:Object(a.__)("Mollie Payments for WooCommerce",'woocommerce'),before:Object(o.createElement)(q,null),plugins:["mollie-payments-for-woocommerce"],isConfigured:t.includes("mollie-payments-for-woocommerce"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Effortless payments by Mollie: Offer global and local payment methods, get onboarded in minutes, and supported in your language.",'woocommerce')),visible:["FR","DE","GB","AT","CH","ES","IT","PL","FI","NL","BE"].includes(n),container:Object(o.createElement)(Ce,null),isEnabled:l.woocommerce_mollie_payments_settings&&"yes"===l.woocommerce_mollie_payments_settings.enabled,optionName:"woocommerce_mollie_payments_settings",manageUrl:Me("mollie_wc_gateway_creditcard")},{key:"square",title:Object(a.__)("Square",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Securely accept credit and debit cards with one low rate, no surprise fees (custom rates available). Sell online and in store and track sales and inventory in one place.",'woocommerce'),g&&Object(o.createElement)("span",{className:"text-style-strong"},Object(a.__)(" Selling CBD products is only supported by Square.",'woocommerce'))),before:Object(o.createElement)("img",{src:"".concat(i.e,"images/square-black.png"),alt:""}),visible:g&&["US"].includes(n)||["brick-mortar","brick-mortar-other"].includes(m.selling_venues)&&["US","CA","JP","GB","AU","IE"].includes(n),plugins:["woocommerce-square"],container:Object(o.createElement)(ee,null),isConfigured:l.wc_square_refresh_tokens&&l.wc_square_refresh_tokens.length,isEnabled:l.woocommerce_square_credit_card_settings&&"yes"===l.woocommerce_square_credit_card_settings.enabled,optionName:"woocommerce_square_credit_card_settings",hasCbdIndustry:g,manageUrl:Me("square_credit_card")},{key:"eway",title:Object(a.__)("eWAY",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The eWAY extension for WooCommerce allows you to take credit card payments directly on your store without redirecting your customers to a third party site to make payment.",'woocommerce')),before:Object(o.createElement)("img",{src:i.e+"images/eway-logo.jpg",alt:"eWAY logo"}),visible:["AU","NZ"].includes(n)&&!g,plugins:["woocommerce-gateway-eway"],container:Object(o.createElement)(he,null),isConfigured:l.woocommerce_eway_settings&&l.woocommerce_eway_settings.customer_api&&l.woocommerce_eway_settings.customer_password,isEnabled:l.woocommerce_eway_settings&&"yes"===l.woocommerce_eway_settings.enabled,optionName:"woocommerce_eway_settings",manageUrl:Me("eway")},{key:"razorpay",title:Object(a.__)("Razorpay",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The official Razorpay extension for WooCommerce allows you to accept credit cards, debit cards, netbanking, wallet, and UPI payments.",'woocommerce')),before:Object(o.createElement)(I,null),visible:"IN"===n&&!g,plugins:["woo-razorpay"],container:Object(o.createElement)(ve,null),isConfigured:l.woocommerce_razorpay_settings&&l.woocommerce_razorpay_settings.key_id&&l.woocommerce_razorpay_settings.key_secret,isEnabled:l.woocommerce_razorpay_settings&&"yes"===l.woocommerce_razorpay_settings.enabled,optionName:"woocommerce_razorpay_settings",manageUrl:Me("razorpay")},{key:"payubiz",title:Object(a.__)("PayU for WooCommerce",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Enable PayU’s exclusive plugin for WooCommerce to start accepting payments in 100+ payment methods available in India including credit cards, debit cards, UPI, & more!",'woocommerce')),before:Object(o.createElement)(B,null),visible:"IN"===n&&!g,plugins:["payu-india"],container:Object(o.createElement)(Pe,null),isConfigured:t.includes("payu-india"),isEnabled:h.includes("payubiz"),optionName:"woocommerce_payubiz_settings",manageUrl:Me("payubiz")},{key:"cod",title:Object(a.__)("Cash on delivery",'woocommerce'),content:Object(a.__)("Take payments in cash upon delivery.",'woocommerce'),before:Object(o.createElement)(M,null),visible:!g,isEnabled:l.woocommerce_cod_settings&&"yes"===l.woocommerce_cod_settings.enabled,optionName:"woocommerce_cod_settings",manageUrl:Me("cod")},{key:"bacs",title:Object(a.__)("Direct bank transfer",'woocommerce'),content:Object(a.__)("Take payments via bank transfer.",'woocommerce'),before:Object(o.createElement)(T,null),visible:!g,container:Object(o.createElement)(A,null),isConfigured:l.woocommerce_bacs_accounts&&l.woocommerce_bacs_accounts.length,isEnabled:l.woocommerce_bacs_settings&&"yes"===l.woocommerce_bacs_settings.enabled,optionName:"woocommerce_bacs_settings",manageUrl:Me("bacs")}];return window.wcAdminFeatures.wcpay&&w.unshift({key:"wcpay",title:Object(a.__)("WooCommerce Payments",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Manage transactions without leaving your WordPress Dashboard. Only with WooCommerce Payments.",'woocommerce'),Object(o.createElement)(te.b,null)),before:Object(o.createElement)(U,null),onClick:function(e,t){return Object(te.c)(t,c,r)},visible:Object(te.d)(n)&&!g,plugins:["woocommerce-payments"],container:Object(o.createElement)(te.a,null),isConfigured:f,isEnabled:l.woocommerce_woocommerce_payments_settings&&"yes"===l.woocommerce_woocommerce_payments_settings.enabled,optionName:"woocommerce_woocommerce_payments_settings",manageUrl:Me("woocommerce_payments")}),w.filter((function(e){return e.visible})).map((function(e){return Ae(Ae({},Ue),e)}))}}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[6],{634:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(83),n(127),n(277);var c=n(15);function r(e){var t=Object(c.dispatch)("core/notices").createNotice;e.error_data&&e.errors&&Object.keys(e.errors).length?Object.keys(e.errors).forEach((function(n){t("error",e.errors[n].join(" "))})):e.message&&t(e.code?"error":"success",e.message)}},639:function(e,t,n){"use strict";n.r(t);var c=n(30),r=n.n(c),o=n(0),a=n(2),i=n(28),s=n(51),l=n.n(s),m=n(112),u=n(641);t.default=function(){var e="1"===Object(i.getQuery)()["wcpay-connection-success"],t=Object(o.useState)(e),n=r()(t,2),c=n[0],s=n[1];if(!c)return null;var p=function(){s(!1),Object(i.updateQueryString)({"wcpay-connection-success":void 0})},d=Object(a.__)("Help us build a better WooCommerce Payments experience",'woocommerce'),b=l()({mixedString:Object(a.__)("By agreeing to share non-sensitive {{link}}usage data{{/link}}, you’ll help us improve features and optimize the WooCommerce Payments experience. You can opt out at any time.",'woocommerce'),components:{link:Object(o.createElement)(m.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}});return Object(o.createElement)(u.a,{isDismissible:!1,title:d,message:b,acceptActionText:Object(a.__)("I agree",'woocommerce'),dismissActionText:Object(a.__)("No thanks",'woocommerce'),onContinue:p,onClose:p})}},641:function(e,t,n){"use strict";n(174);var c=n(67),r=n.n(c),o=n(13),a=n.n(o),i=n(14),s=n.n(i),l=n(16),m=n.n(l),u=n(17),p=n.n(u),d=n(7),b=n.n(d),_=n(0),f=n(6),y=n.n(f),h=n(2),g=n(34),O=n(15),w=n(51),j=n.n(w),k=n(5),v=n(112),C=n(33),E=n(284);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=b()(e);if(t){var r=b()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return p()(this,n)}}var S=function(e){m()(c,e);var t,n=P(c);function c(e){var t;return a()(this,c),(t=n.call(this,e)).state={isLoadingScripts:!1,isRequestStarted:!1},t}return s()(c,[{key:"componentDidUpdate",value:(t=r()(y.a.mark((function e(t,n){var c,r,o,a,i,s,l,m,u,p;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=this.props,r=c.hasErrors,o=c.isRequesting,a=c.onClose,i=c.onContinue,s=c.createNotice,l=this.state,m=l.isLoadingScripts,l.isRequestStarted){e.next=4;break}return e.abrupt("return");case 4:u=!o&&!m&&(t.isRequesting||n.isLoadingScripts)&&!r,p=!o&&t.isRequesting&&r,u&&(a(),i()),p&&(s("error",Object(h.__)("There was a problem updating your preferences",'woocommerce')),a());case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"updateTracking",value:function(e){var t=this,n=e.allowTracking,c=this.props.updateOptions;n&&"function"==typeof window.wcTracks.enable?(this.setState({isLoadingScripts:!0}),window.wcTracks.enable((function(){t._isMounted&&(Object(E.initializeExPlat)(),t.setState({isLoadingScripts:!1}))}))):n||(window.wcTracks.isEnabled=!1);var r=n?"yes":"no";this.setState({isRequestStarted:!0}),c({woocommerce_allow_tracking:r})}},{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"render",value:function(){var e=this;if(this.props.allowTracking){var t=this.props,n=t.onClose,c=t.onContinue;return n(),c(),null}var r=this.props,o=r.isRequesting,a=r.title,i=void 0===a?Object(h.__)("Build a better WooCommerce",'woocommerce'):a,s=r.message,l=void 0===s?j()({mixedString:Object(h.__)("Get improved features and faster fixes by sharing non-sensitive data via {{link}}usage tracking{{/link}} that shows us how WooCommerce is used. No personal data is tracked or stored.",'woocommerce'),components:{link:Object(_.createElement)(v.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}}):s,m=r.dismissActionText,u=void 0===m?Object(h.__)("No thanks",'woocommerce'):m,p=r.acceptActionText,d=void 0===p?Object(h.__)("Yes, count me in!",'woocommerce'):p,b=this.state.isRequestStarted&&o;return Object(_.createElement)(k.Modal,{title:i,isDismissible:this.props.isDismissible,onRequestClose:function(){return e.props.onClose()},className:"woocommerce-usage-modal"},Object(_.createElement)("div",{className:"woocommerce-usage-modal__wrapper"},Object(_.createElement)("div",{className:"woocommerce-usage-modal__message"},l),Object(_.createElement)("div",{className:"woocommerce-usage-modal__actions"},Object(_.createElement)(k.Button,{isSecondary:!0,isBusy:b,onClick:function(){return e.updateTracking({allowTracking:!1})}},u),Object(_.createElement)(k.Button,{isPrimary:!0,isBusy:b,onClick:function(){return e.updateTracking({allowTracking:!0})}},d))))}}]),c}(_.Component);t.a=Object(g.compose)(Object(O.withSelect)((function(e){var t=e(C.OPTIONS_STORE_NAME),n=t.getOption,c=t.getOptionsUpdatingError,r=t.isOptionsUpdating;return{allowTracking:"yes"===n("woocommerce_allow_tracking"),isRequesting:Boolean(r()),hasErrors:Boolean(c())}})),Object(O.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(C.OPTIONS_STORE_NAME).updateOptions}})))(S)},643:function(e,t,n){"use strict";n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return P})),n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return c.default}));var c=n(639),r=(n(174),n(13)),o=n.n(r),a=n(14),i=n.n(a),s=n(16),l=n.n(s),m=n(17),u=n.n(m),p=n(7),d=n.n(p),b=n(2),_=n(0),f=n(15),y=n(28);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return u()(this,n)}}var g=function(e){l()(n,e);var t=h(n);function n(){return o()(this,n),t.apply(this,arguments)}return i()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;Object(y.getQuery)()["wcpay-connection-success"]&&(t("success",Object(b.__)("WooCommerce Payments connected successfully.",'woocommerce')),n("wcpay",{"wcpay-connection-success":"1"}))}},{key:"render",value:function(){return null}}]),n}(_.Component),O=Object(f.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}}))(g);n(108);function w(e){var t=["US","PR"];return window.wcAdminFeatures&&window.wcAdminFeatures["wcpay/support-international-countries"]&&t.push("AU","CA","DE","ES","FR","GB","IE","IT","NZ"),t.includes(e)}var j=n(48),k=n.n(j),v=n(33),C=n(44),E=n(634);function P(e,t,n){var c=Object(b.__)("There was an error connecting to WooCommerce Payments. Please try again or connect later in store settings.",'woocommerce');n(["woocommerce-payments"]).then((function(){Object(C.recordEvent)("woocommerce_payments_install",{context:"tasklist"}),k()({path:v.WC_ADMIN_NAMESPACE+"/plugins/connect-wcpay",method:"POST"}).then((function(e){window.location=e.connectUrl})).catch((function(){t("error",c),e()}))})).catch((function(t){Object(E.a)(t),e()}))}},671:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ie}));n(83),n(126),n(151),n(127),n(152);var c=n(4),r=n.n(c),o=n(0),a=(n(108),n(205),n(117),n(132),n(2)),i=n(42),s=(n(174),n(39)),l=n.n(s),m=n(67),u=n.n(m),p=n(13),d=n.n(p),b=n(14),_=n.n(b),f=n(10),y=n.n(f),h=n(16),g=n.n(h),O=n(17),w=n.n(O),j=n(7),k=n.n(j),v=n(6),C=n.n(v),E=(n(128),n(5)),P=n(34),S=n(15),x=n(112),L=n(33);function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var N=function(e){g()(n,e);var t=R(n);function n(){var e;d()(this,n);for(var c=arguments.length,o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),r()(y()(e),"getInitialConfigValues",(function(){return{account_name:"",account_number:"",bank_name:"",sort_code:"",iban:"",bic:""}})),r()(y()(e),"validate",(function(e){var t={};return e.account_number||e.iban||(t.account_number=t.iban=Object(a.__)("Please enter an account number or IBAN",'woocommerce')),t})),r()(y()(e),"updateSettings",function(){var t=u()(C.a.mark((function t(n){var c,r,o,i;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,r=c.updateOptions,o=c.createNotice,i=c.markConfigured,t.next=3,r({woocommerce_bacs_settings:{enabled:"yes"},woocommerce_bacs_accounts:[n]});case 3:t.sent.success?(i("bacs"),o("success",Object(a.__)("Direct bank transfer details added successfully",'woocommerce'))):o("error",Object(a.__)("There was a problem saving your payment settings",'woocommerce'));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return _()(n,[{key:"render",value:function(){var e=this.props.isOptionsRequesting;return Object(o.createElement)(x.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(t){var n=t.getInputProps,c=t.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.H,null,Object(a.__)("Add your bank details",'woocommerce')),Object(o.createElement)("p",null,Object(a.__)("These details are required to receive payments via bank transfer",'woocommerce')),Object(o.createElement)("div",{className:"woocommerce-task-payment-method__fields"},Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Account name",'woocommerce'),required:!0},n("account_name"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Account number",'woocommerce'),required:!0},n("account_number"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Bank name",'woocommerce'),required:!0},n("bank_name"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Sort code",'woocommerce'),required:!0},n("sort_code"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("IBAN",'woocommerce'),required:!0},n("iban"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("BIC / Swift",'woocommerce'),required:!0},n("bic")))),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:e,onClick:c},Object(a.__)("Save",'woocommerce')))}))}}]),n}(o.Component),A=Object(P.compose)(Object(S.withSelect)((function(e){return{isOptionsRequesting:(0,e(L.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(S.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(L.OPTIONS_STORE_NAME).updateOptions}})))(N),T=function(){return Object(o.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"bacs0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"8",y:"8",width:"16",height:"16"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.875 12.25L16 8.5L23.125 12.25V13.75H8.875V12.25ZM16 10.195L19.9075 12.25H12.0925L16 10.195ZM10.75 15.25H12.25V20.5H10.75V15.25ZM15.25 20.5V15.25H16.75V20.5H15.25ZM23.125 23.5V22H8.875V23.5H23.125ZM19.75 15.25H21.25V20.5H19.75V15.25Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs0)"},Object(o.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(o.createElement)("mask",{id:"bacs1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs1)"},Object(o.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(o.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"bacs2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"72",y:"8",width:"16",height:"16"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.875 12.25L80 8.5L87.125 12.25V13.75H72.875V12.25ZM80 10.195L83.9075 12.25H76.0925L80 10.195ZM74.75 15.25H76.25V20.5H74.75V15.25ZM79.25 20.5V15.25H80.75V20.5H79.25ZM87.125 23.5V22H72.875V23.5H87.125ZM83.75 15.25H85.25V20.5H83.75V15.25Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs2)"},Object(o.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},M=function(){return Object(o.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"cod-mask-0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"7",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 13H19.75V10H9.25C8.425 10 7.75 10.675 7.75 11.5V19.75H9.25C9.25 20.995 10.255 22 11.5 22C12.745 22 13.75 20.995 13.75 19.75H18.25C18.25 20.995 19.255 22 20.5 22C21.745 22 22.75 20.995 22.75 19.75H24.25V16L22 13ZM21.625 14.125L23.095 16H19.75V14.125H21.625ZM10.75 19.75C10.75 20.1625 11.0875 20.5 11.5 20.5C11.9125 20.5 12.25 20.1625 12.25 19.75C12.25 19.3375 11.9125 19 11.5 19C11.0875 19 10.75 19.3375 10.75 19.75ZM13.165 18.25C12.7525 17.7925 12.1675 17.5 11.5 17.5C10.8325 17.5 10.2475 17.7925 9.835 18.25H9.25V11.5H18.25V18.25H13.165ZM19.75 19.75C19.75 20.1625 20.0875 20.5 20.5 20.5C20.9125 20.5 21.25 20.1625 21.25 19.75C21.25 19.3375 20.9125 19 20.5 19C20.0875 19 19.75 19.3375 19.75 19.75Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-0)"},Object(o.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(o.createElement)("mask",{id:"cod-mask-1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-1)"},Object(o.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(o.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"cod-mask-2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"76",y:"9",width:"8",height:"14"},Object(o.createElement)("path",{d:"M80.2926 15.175C78.5901 14.7325 78.0426 14.275 78.0426 13.5625C78.0426 12.745 78.8001 12.175 80.0676 12.175C81.4026 12.175 81.8976 12.8125 81.9426 13.75H83.6001C83.5476 12.46 82.7601 11.275 81.1926 10.8925V9.25H78.9426V10.87C77.4876 11.185 76.3176 12.13 76.3176 13.5775C76.3176 15.31 77.7501 16.1725 79.8426 16.675C81.7176 17.125 82.0926 17.785 82.0926 18.4825C82.0926 19 81.7251 19.825 80.0676 19.825C78.5226 19.825 77.9151 19.135 77.8326 18.25H76.1826C76.2726 19.8925 77.5026 20.815 78.9426 21.1225V22.75H81.1926V21.1375C82.6551 20.86 83.8176 20.0125 83.8176 18.475C83.8176 16.345 81.9951 15.6175 80.2926 15.175Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-2)"},Object(o.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},U=function(){return Object(o.createElement)("svg",{width:"100",height:"64",viewBox:"-10 0 120 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.78073 0.5H91.1787C96.3299 0.5 100.5 4.77335 100.5 10.0522V41.8929C100.5 47.1717 96.3299 51.4451 91.1787 51.4451H61.9883L65.9948 61.5L48.3742 51.4451H9.82161C4.67036 51.4451 0.500298 47.1717 0.500298 41.8929V10.0522C0.459415 4.81524 4.62947 0.5 9.78073 0.5Z",fill:"#7F54B3"}),Object(o.createElement)("path",{d:"M5.48791 9.1725C6.06028 8.37648 6.91882 7.95752 8.06354 7.87373C10.1486 7.70615 11.3342 8.71165 11.6204 10.8902C12.8877 19.6464 14.2778 27.0619 15.7495 33.1368L24.7029 15.6663C25.5206 14.0743 26.5426 13.2364 27.7691 13.1526C29.568 13.0269 30.6718 14.2 31.1215 16.6718C32.1436 22.2439 33.4519 26.9781 35.0054 31.0001C36.0684 20.3586 37.8672 12.6917 40.402 7.95753C41.0152 6.78445 41.9146 6.19791 43.1002 6.11412C44.0405 6.03033 44.8991 6.3236 45.6759 6.95203C46.4526 7.58047 46.8615 8.37648 46.9432 9.34008C46.9841 10.0942 46.8615 10.7226 46.5344 11.3511C44.94 14.3676 43.6317 19.4369 42.5688 26.4754C41.5467 33.3044 41.1787 38.6251 41.424 42.4376C41.5058 43.485 41.3423 44.4067 40.9334 45.2027C40.4428 46.1244 39.707 46.6272 38.7666 46.711C37.7037 46.7948 36.5998 46.292 35.5369 45.1608C31.7348 41.1807 28.7094 35.2316 26.5018 27.3133C23.8444 32.6759 21.882 36.6979 20.6146 39.3792C18.2025 44.1134 16.1584 46.5434 14.4413 46.6691C13.3374 46.7529 12.3971 45.7893 11.5795 43.7783C9.49445 38.2899 7.24589 27.6904 4.83379 11.9795C4.71114 10.8902 4.91555 9.92662 5.48791 9.1725Z",fill:"white"}),Object(o.createElement)("path",{d:"M93.3864 15.7499C91.9146 13.1105 89.7478 11.5185 86.8451 10.89C86.0683 10.7225 85.3324 10.6387 84.6374 10.6387C80.7127 10.6387 77.5238 12.7335 75.0299 16.923C72.904 20.4841 71.8411 24.4223 71.8411 28.7376C71.8411 31.9635 72.4952 34.7286 73.8034 37.0329C75.2752 39.6723 77.442 41.2644 80.3447 41.8928C81.1215 42.0604 81.8574 42.1442 82.5524 42.1442C86.518 42.1442 89.7069 40.0494 92.1599 35.8598C94.2858 32.2568 95.3488 28.3186 95.3488 24.0034C95.3488 20.7355 94.6946 18.0123 93.3864 15.7499ZM88.2351 27.355C87.6628 30.1201 86.6407 32.173 85.128 33.5556C83.9424 34.6449 82.8386 35.1057 81.8165 34.8962C80.8353 34.6868 80.0177 33.8069 79.4044 32.173C78.9138 30.8742 78.6685 29.5755 78.6685 28.3605C78.6685 27.3131 78.7503 26.2657 78.9547 25.3021C79.3226 23.5844 80.0177 21.9086 81.1215 20.3166C82.4706 18.2637 83.9015 17.4258 85.3733 17.719C86.3545 17.9285 87.1722 18.8083 87.7854 20.4422C88.276 21.741 88.5213 23.0398 88.5213 24.2547C88.5213 25.344 88.3987 26.3914 88.2351 27.355Z",fill:"white"}),Object(o.createElement)("path",{d:"M67.7528 15.7499C66.281 13.1105 64.0734 11.5185 61.2116 10.89C60.4348 10.7225 59.6989 10.6387 59.0039 10.6387C55.0791 10.6387 51.8903 12.7335 49.3964 16.923C47.2705 20.4841 46.2075 24.4223 46.2075 28.7376C46.2075 31.9635 46.8616 34.7286 48.1699 37.0329C49.6417 39.6723 51.8085 41.2644 54.7112 41.8928C55.488 42.0604 56.2238 42.1442 56.9189 42.1442C60.8845 42.1442 64.0734 40.0494 66.5263 35.8598C68.6523 32.2568 69.7152 28.3186 69.7152 24.0034C69.7152 20.7355 69.0611 18.0123 67.7528 15.7499ZM62.6016 27.355C62.0292 30.1201 61.0071 32.173 59.4945 33.5556C58.3089 34.6449 57.205 35.1057 56.183 34.8962C55.2018 34.6868 54.3841 33.8069 53.7709 32.173C53.2803 30.8742 53.035 29.5755 53.035 28.3605C53.035 27.3131 53.1167 26.2657 53.3212 25.3021C53.6891 23.5844 54.3841 21.9086 55.4879 20.3166C56.8371 18.2637 58.268 17.4258 59.7398 17.719C60.721 17.9285 61.5386 18.8083 62.1519 20.4422C62.6425 21.741 62.8878 23.0398 62.8878 24.2547C62.8878 25.344 62.806 26.3914 62.6016 27.355Z",fill:"white"}))},I=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"24",fill:"#072654",viewBox:"0 0 1896 401"},Object(o.createElement)("path",{fill:"#3395FF",d:"M122.63 105.7l-15.75 57.97 90.15-58.3-58.96 219.98 59.88.05L285.05.48"}),Object(o.createElement)("path",{d:"M25.6 232.92L.8 325.4h122.73l50.22-188.13L25.6 232.92m426.32-81.42c-3 11.15-8.78 19.34-17.4 24.57-8.6 5.22-20.67 7.84-36.25 7.84h-49.5l17.38-64.8h49.5c15.56 0 26.25 2.6 32.05 7.9 5.8 5.3 7.2 13.4 4.22 24.6m51.25-1.4c6.3-23.4 3.7-41.4-7.82-54-11.5-12.5-31.68-18.8-60.48-18.8H324.4l-66.5 248.1h53.67l26.8-100h35.2c7.9 0 14.12 1.3 18.66 3.8 4.55 2.6 7.22 7.1 8.04 13.6l9.58 82.6h57.5l-9.32-77c-1.9-17.2-9.77-27.3-23.6-30.3 17.63-5.1 32.4-13.6 44.3-25.4a92.6 92.6 0 0 0 24.44-42.5m130.46 86.4c-4.5 16.8-11.4 29.5-20.73 38.4-9.34 8.9-20.5 13.3-33.52 13.3-13.26 0-22.25-4.3-27-13-4.76-8.7-4.92-21.3-.5-37.8 4.42-16.5 11.47-29.4 21.17-38.7 9.7-9.3 21.04-13.95 34.06-13.95 13 0 21.9 4.5 26.4 13.43 4.6 8.97 4.7 21.8.2 38.5zm23.52-87.8l-6.72 25.1c-2.9-9-8.53-16.2-16.85-21.6-8.34-5.3-18.66-8-30.97-8-15.1 0-29.6 3.9-43.5 11.7-13.9 7.8-26.1 18.8-36.5 33-10.4 14.2-18 30.3-22.9 48.4-4.8 18.2-5.8 34.1-2.9 47.9 3 13.9 9.3 24.5 19 31.9 9.8 7.5 22.3 11.2 37.6 11.2a82.4 82.4 0 0 0 35.2-7.7 82.11 82.11 0 0 0 28.4-21.2l-7 26.16h51.9L709.3 149h-52zm238.65 0H744.87l-10.55 39.4h87.82l-116.1 100.3-9.92 37h155.8l10.55-39.4h-94.1l117.88-101.8m142.4 52c-4.67 17.4-11.6 30.48-20.75 39-9.15 8.6-20.23 12.9-33.24 12.9-27.2 0-36.14-17.3-26.86-51.9 4.6-17.2 11.56-30.13 20.86-38.84 9.3-8.74 20.57-13.1 33.82-13.1 13 0 21.78 4.33 26.3 13.05 4.52 8.7 4.48 21.67-.13 38.87m30.38-80.83c-11.95-7.44-27.2-11.16-45.8-11.16-18.83 0-36.26 3.7-52.3 11.1a113.09 113.09 0 0 0-41 32.06c-11.3 13.9-19.43 30.2-24.42 48.8-4.9 18.53-5.5 34.8-1.7 48.73 3.8 13.9 11.8 24.6 23.8 32 12.1 7.46 27.5 11.17 46.4 11.17 18.6 0 35.9-3.74 51.8-11.18 15.9-7.48 29.5-18.1 40.8-32.1 11.3-13.94 19.4-30.2 24.4-48.8 5-18.6 5.6-34.84 1.8-48.8-3.8-13.9-11.7-24.6-23.6-32.05m185.1 40.8l13.3-48.1c-4.5-2.3-10.4-3.5-17.8-3.5-11.9 0-23.3 2.94-34.3 8.9-9.46 5.06-17.5 12.2-24.3 21.14l6.9-25.9-15.07.06h-37l-47.7 176.7h52.63l24.75-92.37c3.6-13.43 10.08-24 19.43-31.5 9.3-7.53 20.9-11.3 34.9-11.3 8.6 0 16.6 1.97 24.2 5.9m146.5 41.1c-4.5 16.5-11.3 29.1-20.6 37.8-9.3 8.74-20.5 13.1-33.5 13.1s-21.9-4.4-26.6-13.2c-4.8-8.85-4.9-21.6-.4-38.36 4.5-16.75 11.4-29.6 20.9-38.5 9.5-8.97 20.7-13.45 33.7-13.45 12.8 0 21.4 4.6 26 13.9 4.6 9.3 4.7 22.2.28 38.7m36.8-81.4c-9.75-7.8-22.2-11.7-37.3-11.7-13.23 0-25.84 3-37.8 9.06-11.95 6.05-21.65 14.3-29.1 24.74l.18-1.2 8.83-28.1h-51.4l-13.1 48.9-.4 1.7-54 201.44h52.7l27.2-101.4c2.7 9.02 8.2 16.1 16.6 21.22 8.4 5.1 18.77 7.63 31.1 7.63 15.3 0 29.9-3.7 43.75-11.1 13.9-7.42 25.9-18.1 36.1-31.9 10.2-13.8 17.77-29.8 22.6-47.9 4.9-18.13 5.9-34.3 3.1-48.45-2.85-14.17-9.16-25.14-18.9-32.9m174.65 80.65c-4.5 16.7-11.4 29.5-20.7 38.3-9.3 8.86-20.5 13.27-33.5 13.27-13.3 0-22.3-4.3-27-13-4.8-8.7-4.9-21.3-.5-37.8 4.4-16.5 11.42-29.4 21.12-38.7 9.7-9.3 21.05-13.94 34.07-13.94 13 0 21.8 4.5 26.4 13.4 4.6 8.93 4.63 21.76.15 38.5zm23.5-87.85l-6.73 25.1c-2.9-9.05-8.5-16.25-16.8-21.6-8.4-5.34-18.7-8-31-8-15.1 0-29.68 3.9-43.6 11.7-13.9 7.8-26.1 18.74-36.5 32.9-10.4 14.16-18 30.3-22.9 48.4-4.85 18.17-5.8 34.1-2.9 47.96 2.93 13.8 9.24 24.46 19 31.9 9.74 7.4 22.3 11.14 37.6 11.14 12.3 0 24.05-2.56 35.2-7.7a82.3 82.3 0 0 0 28.33-21.23l-7 26.18h51.9l47.38-176.7h-51.9zm269.87.06l.03-.05h-31.9c-1.02 0-1.92.05-2.85.07h-16.55l-8.5 11.8-2.1 2.8-.9 1.4-67.25 93.68-13.9-109.7h-55.08l27.9 166.7-61.6 85.3h54.9l14.9-21.13c.42-.62.8-1.14 1.3-1.8l17.4-24.7.5-.7 77.93-110.5 65.7-93 .1-.06h-.03z"}))},q=function(){return Object(o.createElement)("svg",{fill:"none",viewBox:"0 0 677 200",width:"100",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("g",{fill:"#000"},Object(o.createElement)("path",{clipRule:"evenodd",d:"m286.342 65.3132c-37.175 0-67.35 30.2415-67.35 67.3438 0 37.101 30.245 67.343 67.35 67.343 37.106 0 67.35-30.242 67.35-67.343 0-37.1023-30.174-67.3438-67.35-67.3438zm0 102.8348c-19.533 0-35.425-15.89-35.425-35.421s15.892-35.4222 35.425-35.4222 35.426 15.8912 35.426 35.4222-15.893 35.421-35.426 35.421z",fillRule:"evenodd"}),Object(o.createElement)("path",{d:"m510.375 42.0021c11.6 0 21.003-9.4025 21.003-21.0011 0-11.59851-9.403-21.001-21.003-21.001-11.599 0-21.003 9.40249-21.003 21.001 0 11.5986 9.404 21.0011 21.003 21.0011z"}),Object(o.createElement)("path",{clipRule:"evenodd",d:"m148.842 65.3833c-1.75-.14-3.431-.21-5.181-.21-16.242 0-31.644 6.6503-42.706 18.4109-11.0617-11.6906-26.394-18.4109-42.4964-18.4109-32.2047 0-58.4586 26.1813-58.4586 58.3827v73.714h31.5047v-72.804c0-13.37 10.9916-25.691 23.9435-27.0211.9101-.07 1.8203-.14 2.6604-.14 14.5621 0 26.4639 11.9001 26.5339 26.4611v73.504h32.2045v-72.944c0-13.3 10.922-25.621 23.944-26.9511.91-.07 1.82-.14 2.66-.14 14.562 0 26.534 11.8301 26.604 26.3211v73.714h32.205v-72.804c0-14.77-5.461-28.9812-15.332-39.9717-9.872-11.0606-23.384-17.8509-38.086-19.111z",fillRule:"evenodd"}),Object(o.createElement)("path",{d:"m403.26 3.15015h-32.205v194.25985h32.205z"}),Object(o.createElement)("path",{d:"m464.869 3.15015h-32.205v194.25985h32.205z"}),Object(o.createElement)("path",{d:"m526.478 68.5334h-32.205v128.8066h32.205z"}),Object(o.createElement)("path",{clipRule:"evenodd",d:"m677 129.646c0-17.08-6.651-33.1812-18.693-45.4318-12.112-12.2506-28.074-19.0409-45.086-19.0409-.28 0-.561 0-.841 0-17.642.21-34.305 7.2103-46.766 19.741-12.462 12.5306-19.463 29.1217-19.673 46.8327-.21 18.06 6.721 35.141 19.533 48.092 12.811 12.951 29.754 20.091 47.817 20.091h.07c23.663 0 45.856-12.671 57.968-33.042l1.54-2.59-26.604-13.09-1.33 2.17c-6.651 10.99-18.202 17.501-31.014 17.501-16.383 0-30.525-10.921-34.866-26.462h97.945zm-65.04-35.2113c14.703 0 27.864 9.6603 32.485 23.3813h-64.899c4.55-13.721 17.712-23.3813 32.414-23.3813z",fillRule:"evenodd"})))},B=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1333.333",version:"1",viewBox:"0 0 1000 1000"},Object(o.createElement)("path",{d:"M8987 7472c-15-16-17-45-17-194 0-157 2-177 18-191s44-17 189-17c152 0 172 2 186 18 15 16 17 45 17 194 0 157-2 177-18 191s-44 17-189 17c-152 0-172-2-186-18zM9413 7046l-28-24v-520l24-26 24-26h518l24 25 25 24v250c0 162-4 259-11 274-20 43-45 47-304 47-243 0-244 0-272-24zM8623 6435c-44-19-64-54-70-123l-6-59-106-6c-182-11-261-50-293-145-9-28-14-251-18-912l-5-875-29-62c-47-102-124-160-256-194-83-21-356-19-440 4-131 36-203 90-249 187l-26 55-5 875c-5 669-9 884-19 913-20 62-75 115-140 135-82 25-431 25-513-1-70-21-110-54-134-109-18-41-19-90-22-888-2-567 1-877 8-942 45-397 254-684 606-832 100-41 240-81 369-103 156-27 570-24 725 5 224 41 398 107 541 202 92 62 216 193 273 288 27 45 64 126 82 179 61 180 64 217 64 936v647h165c128 0 173 3 195 15 61 31 60 27 60 398 0 377-2 386-65 413-49 20-645 20-692-1zM322 6230c-114-24-221-100-268-192-55-108-54-73-54-1379V3453l23-34c29-44 72-58 172-58s143 14 172 58l23 34v935l473 5c379 4 489 8 557 21 374 72 570 244 656 573 36 135 45 410 20 562-64 379-252 580-626 667-65 15-141 18-590 20-283 1-534-2-558-6zm1107-388c75-27 103-44 154-91 88-82 127-217 127-438-1-343-95-479-370-529-56-10-188-13-513-14H389l3 503c3 457 5 505 21 534 35 64 26 63 512 60 429-2 442-3 504-25zM2665 5600c-114-13-234-38-274-58-62-31-76-61-76-167 0-79 3-98 21-121 32-43 65-49 163-30 175 33 251 40 441 40 272 0 384-28 473-121 62-63 78-123 84-309l6-162-369-5c-387-5-459-12-604-58-155-49-291-151-353-263-56-102-72-176-71-341 0-135 3-158 27-231 64-192 211-329 422-393 123-38 231-52 407-51 526 0 804 152 895 490 16 59 18 123 18 650v585l-23 75c-52 167-144 281-288 357-168 88-292 113-594 118-124 2-261 0-305-5zm832-1452c-7-243-17-288-83-358-49-52-106-81-211-106-89-22-373-25-453-5-198 49-277 155-268 355 3 80 8 99 34 146 50 87 142 139 289 160 27 4 196 8 374 9l324 1-6-202zM4073 5535c-46-20-67-57-59-105 9-57 420-1575 458-1690 42-130 91-221 152-283 64-64 123-94 228-115 68-13 95-14 171-4 50 6 93 10 95 8 7-7-80-211-113-266-37-61-97-122-155-157-48-29-155-60-232-68-130-14-162-36-160-115 2-84 30-166 69-200 32-28 38-30 121-30 98 0 228 26 318 63 229 93 393 294 499 613 53 161 565 2215 565 2269 0 50-21 80-64 91-14 3-70 4-125 2-116-4-142-16-179-89-14-27-95-348-212-837-104-437-198-812-209-835-37-83-92-117-188-117-113 0-163 31-204 126-9 23-106 367-214 765-245 906-247 910-285 943-17 14-47 30-68 36-52 14-171 12-209-5z",transform:"matrix(.1 0 0 -.1 0 1000)"}))},F=(n(118),n(256),n(279),n(48)),D=n.n(F),V=n(51),z=n.n(V),H=n(28);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var K=function(e){g()(s,e);var t,n,c=Y(s);function s(e){var t;return d()(this,s),(t=c.call(this,e)).state={oAuthConnectFailed:!1,connectURL:null,isPending:!1},t.updateSettings=t.updateSettings.bind(y()(t)),t}return _()(s,[{key:"componentDidMount",value:function(){var e=this.state.oAuthConnectFailed,t=this.props.stripeSettings,n=Object(H.getQuery)();if(n["stripe-connect"]&&"1"===n["stripe-connect"]&&(t.publishable_key&&t.secret_key))return void this.completeMethod();e||this.fetchOAuthConnectURL()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes("woocommerce-gateway-stripe")&&t.includes("woocommerce-gateway-stripe")&&this.fetchOAuthConnectURL()}},{key:"completeMethod",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;this.setState({isPending:!1}),t("success",Object(a.__)("Stripe connected successfully.",'woocommerce')),n("stripe")}},{key:"fetchOAuthConnectURL",value:(n=u()(C.a.mark((function e(){var t;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.props.activePlugins.includes("woocommerce-gateway-stripe")){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,this.setState({isPending:!0}),e.next=7,D()({path:L.WCS_NAMESPACE+"/connect/stripe/oauth/init",method:"POST",data:{returnUrl:Object(i.f)("admin.php?page=wc-admin&task=payments&method=stripe&stripe-connect=1")}});case 7:if((t=e.sent)&&t.oauthUrl){e.next=11;break}return this.setState({oAuthConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:this.setState({connectURL:t.oauthUrl,isPending:!1}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),this.setState({oAuthConnectFailed:!0,isPending:!1});case 17:case"end":return e.stop()}}),e,this,[[3,14]])}))),function(){return n.apply(this,arguments)})},{key:"renderConnectButton",value:function(){var e=this.state.connectURL;return Object(o.createElement)(E.Button,{isPrimary:!0,href:e},Object(a.__)("Connect",'woocommerce'))}},{key:"updateSettings",value:(t=u()(C.a.mark((function e(t){var n,c,o,i,s,l;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=this.props,o=c.updateOptions,i=c.stripeSettings,s=c.createNotice,l=t.publishable_key.match(/^pk_live_/)?"":"test_",e.next=4,o({woocommerce_stripe_settings:W(W({},i),{},(n={},r()(n,l+"publishable_key",t.publishable_key),r()(n,l+"secret_key",t.secret_key),r()(n,"testmode","test_"===l?"yes":"no"),r()(n,"enabled","yes"),n))});case 4:e.sent.success?this.completeMethod():s("error",Object(a.__)("There was a problem saving your payment settings",'woocommerce'));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){return{publishable_key:"",secret_key:""}}},{key:"validateManualConfig",value:function(e){var t={};return null===e.publishable_key.match(/^pk_(live|test)_[a-zA-Z0-9_]+/)&&(t.publishable_key=Object(a.__)('Please enter a valid publishable key (starting with "pk_").','woocommerce')),null===e.secret_key.match(/^[rs]k_(live|test)_[a-zA-Z0-9_]+/)?t.secret_key=Object(a.__)('Please enter a valid secret key (starting with "sk_" or "rk_").','woocommerce'):e.secret_key.slice(3,7)!==e.publishable_key.slice(3,7)&&(t.secret_key=Object(a.__)("Please enter a secret key in the same mode as the publishable key.",'woocommerce')),t}},{key:"renderManualConfig",value:function(){var e=this.props,t=e.isOptionsUpdating,n=e.recordConnectStartEvent,c=z()({mixedString:Object(a.__)("Your API details can be obtained from your {{docsLink}}Stripe account{{/docsLink}}. Don’t have a Stripe account? {{registerLink}}Create one.{{/registerLink}}",'woocommerce'),components:{docsLink:Object(o.createElement)(x.Link,{href:"https://stripe.com/docs/keys",target:"_blank",type:"external"}),registerLink:Object(o.createElement)(x.Link,{href:"https://dashboard.stripe.com/register",target:"_blank",type:"external"})}});return Object(o.createElement)(x.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validateManualConfig},(function(e){var r=e.getInputProps,i=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Publishable Key",'woocommerce'),required:!0},r("publishable_key"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Secret Key",'woocommerce'),required:!0},r("secret_key"))),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:t,onClick:function(e){n("stripe"),i(e)}},Object(a.__)("Proceed",'woocommerce')),Object(o.createElement)("p",null,c))}))}},{key:"renderOauthConfig",value:function(){var e=this,t=this.props.recordConnectStartEvent,n=z()({mixedString:Object(a.__)('By clicking "Connect," you agree to the {{tosLink}}Terms of Service{{/tosLink}}. Or {{manualConfigLink}}manually enter your Stripe API details{{/manualConfigLink}} instead.','woocommerce'),components:{tosLink:Object(o.createElement)(x.Link,{href:"https://wordpress.com/tos",target:"_blank",type:"external"}),manualConfigLink:Object(o.createElement)(E.Button,{isLink:!0,onClick:function(){e.setState({connectURL:null}),t("stripe")}})}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,this.renderConnectButton()),n)}},{key:"getConnectStep",value:function(){var e=this.state,t=e.connectURL,n=e.isPending,c=e.oAuthConnectFailed,r={key:"connect",label:Object(a.__)("Connect your Stripe account",'woocommerce')};return n?r:W(W({},r),{},!c&&t?{description:Object(a.__)("A Stripe account is required to process payments.",'woocommerce'),content:this.renderOauthConfig()}:{content:this.renderManualConfig()})}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsUpdating,c=this.state.isPending;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete||n||c,currentStep:t.isComplete?"connect":"install",steps:[t,this.getConnectStep()]})}}]),s}(o.Component),G=Object(P.compose)(Object(S.withSelect)((function(e){var t=e(L.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating;return{activePlugins:(0,e(L.PLUGINS_STORE_NAME).getActivePlugins)(),isOptionsUpdating:c(),stripeSettings:n("woocommerce_stripe_settings")||[]}})),Object(S.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(L.OPTIONS_STORE_NAME).updateOptions}})))(K);function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var $=function(e){g()(c,e);var t,n=X(c);function c(e){var t;return d()(this,c),(t=n.call(this,e)).state={isPending:!1},t.connect=t.connect.bind(y()(t)),t}return _()(c,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured,c=Object(H.getQuery)();c["square-connect"]&&"1"===c["square-connect"]&&(t("success",Object(a.__)("Square connected successfully.",'woocommerce')),n("square"))}},{key:"connect",value:(t=u()(C.a.mark((function e(){var t,n,c,r,o,i,s,l,m;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.createNotice,c=t.hasCbdIndustry,r=t.options,o=t.recordConnectStartEvent,i=t.updateOptions,this.setState({isPending:!0}),i({woocommerce_square_credit_card_settings:J(J({},r.woocommerce_square_credit_card_settings),{},{enabled:"yes"})}),s=Object(a.__)("There was an error connecting to Square. Please try again or skip to connect later in store settings.",'woocommerce'),o("square"),e.prev=5,l=null,c&&(l=window.open("/","_blank")),e.next=10,D()({path:L.WC_ADMIN_NAMESPACE+"/plugins/connect-square",method:"POST"});case 10:if((m=e.sent)&&m.connectUrl){e.next=16;break}return this.setState({isPending:!1}),n("error",s),c&&l.close(),e.abrupt("return");case 16:this.setState({isPending:!0}),this.redirect(m.connectUrl,l),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(5),this.setState({isPending:!1}),n("error",s);case 24:case"end":return e.stop()}}),e,this,[[5,20]])}))),function(){return t.apply(this,arguments)})},{key:"redirect",value:function(e,t){t?(t.location.href=e,window.location=Object(i.f)("admin.php?page=wc-admin")):window.location=e}},{key:"render",value:function(){var e=this.props.installStep,t=this.state.isPending;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!e.isComplete||t,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(a.__)("Connect your Square account",'woocommerce'),description:Object(a.__)("A Square account is required to process payments. You will be redirected to the Square website to create the connection.",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:t,onClick:this.connect},Object(a.__)("Connect",'woocommerce')))}]})}}]),c}(o.Component),ee=Object(P.compose)(Object(S.withSelect)((function(e){var t=e(L.OPTIONS_STORE_NAME),n=t.getOption,c=t.isResolving;return{options:n("woocommerce_square_credit_card_settings"),optionsIsRequesting:c("getOption",["woocommerce_square_credit_card_settings"])}})),Object(S.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(L.OPTIONS_STORE_NAME).updateOptions}})))($),te=n(643),ne=n(38);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function 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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var ae="woocommerce-paypal-payments";function ie(e,t,n){try{ppcp_onboarding&&n()}catch(r){var c=document.createElement("script");c.src=e,document.body.append(c),c.onload=function(){n()},window.PayPalCommerceGatewayOnboarding=t}}function se(e){var t=e.connectUrl,n=e.recordConnectStartEvent;return Object(o.useEffect)((function(){ppcp_onboarding&&ppcp_onboarding.reload()}),[]),Object(o.createElement)("a",{className:"button-primary",target:"_blank",rel:"noreferrer",href:t,"data-paypal-onboard-button":"true","data-paypal-button":"true","data-paypal-onboard-complete":"ppcp_onboarding_productionCallback",onClick:function(){return n("paypal")}},Object(a.__)("Connect",'woocommerce'))}var le=function(e){g()(m,e);var t,n,c,i,s=oe(m);function m(e){var t;return d()(this,m),(t=s.call(this,e)).state={autoConnectFailed:!1,connectURL:""},t.enablePaypalPlugin=t.enablePaypalPlugin.bind(y()(t)),t.setCredentials=t.setCredentials.bind(y()(t)),t.validate=t.validate.bind(y()(t)),t}return _()(m,[{key:"componentDidMount",value:function(){var e=this.props.createNotice,t=Object(H.getQuery)();if(t.onboarding)return"complete"!==t.onboarding||t["ppcp-onboarding-error"]?void(t["ppcp-onboarding-error"]&&(this.setState({autoConnectFailed:!0}),e("error",Object(a.__)("There was a problem saving your payment settings through the onboarding, please fill the fields in manually.",'woocommerce')))):void this.enablePaypalPlugin();this.fetchOAuthConnectURLAndOnboardingSetup()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes(ae)&&t.includes(ae)&&this.fetchOAuthConnectURLAndOnboardingSetup()}},{key:"fetchOAuthConnectURLAndOnboardingSetup",value:(i=u()(C.a.mark((function e(){var t,n,c,r,o=this;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props,n=t.activePlugins,c=t.createNotice,n.includes(ae)){e.next=3;break}return e.abrupt("return");case 3:return this.setState({isPending:!0}),e.prev=4,e.next=7,D()({path:"/wc-paypal/v1/onboarding/get-params",method:"POST",data:{environment:"production",returnUrlArgs:{ppcpobw:"1"}}});case 7:if((r=e.sent)&&r.signupLink){e.next=11;break}return this.setState({autoConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:ie(r.scriptURL,r.scriptData,(function(){o.setState({connectURL:r.signupLink,isPending:!1})})),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(4),e.t0&&e.t0.data&&500===e.t0.data.status&&c("error",Object(a.__)("There was a problem with the Paypal onboarding setup, please fill the fields in manually.",'woocommerce')),this.setState({autoConnectFailed:!0,isPending:!1});case 18:case"end":return e.stop()}}),e,this,[[4,14]])}))),function(){return i.apply(this,arguments)})},{key:"enablePaypalPlugin",value:(c=u()(C.a.mark((function e(t){var n,c,r,o,i,s;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,c=n.createNotice,r=n.updateOptions,o=n.markConfigured,i=n.options,s={"woocommerce_ppcp-gateway_settings":{enabled:"yes"}},t||(s["woocommerce-ppcp-settings"]=re(re({},i),{},{enabled:!0})),e.next=5,r(s);case 5:e.sent.success?(c("success",Object(a.__)("PayPal connected successfully.",'woocommerce')),o("paypal")):c("error",Object(a.__)("There was a problem saving your payment settings.",'woocommerce'));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"setCredentials",value:(n=u()(C.a.mark((function e(t){var n,c;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props.createNotice,e.prev=1,e.next=4,D()({path:"/wc-paypal/v1/onboarding/set-credentials",method:"POST",data:re({environment:"production"},t)});case 4:if(!(c=e.sent)||!c.data){e.next=9;break}n("error",Object(a.__)("There was a problem updating the credentials.",'woocommerce')),e.next=11;break;case 9:return e.next=11,this.enablePaypalPlugin(!0);case 11:e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(1),!e.t0||!e.t0.data||404!==e.t0.data.status){e.next=18;break}return e.next=18,this.updateManualSettings(t);case 18:case"end":return e.stop()}}),e,this,[[1,13]])}))),function(e){return n.apply(this,arguments)})},{key:"updateManualSettings",value:(t=u()(C.a.mark((function e(t){var n,c,o,i,s,l,m;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,c=n.createNotice,o=n.options,i=n.updateOptions,s=n.markConfigured,l=Object.keys(t).reduce((function(e,n){var c=n+"_production";return re(re({},e),{},r()({},c,t[n]))}),{}),m=re(re({},o),{},{enabled:!0,sandbox_on:!1,merchant_email:t.merchant_email,merchant_id:t.merchant_id},l),e.next=5,i({"woocommerce-ppcp-settings":m,"woocommerce_ppcp-gateway_settings":{enabled:"yes"}});case 5:e.sent.success?(c("success",Object(a.__)("PayPal connected successfully.",'woocommerce')),s("paypal")):c("error",Object(a.__)("There was a problem saving your payment settings.",'woocommerce'));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){var e=this.props.options;return["merchant_email","merchant_id","client_id","client_secret"].reduce((function(t,n){return re(re({},t),{},r()({},n,e&&e[n+"_production"]?e[n+"_production"]:""))}),{})}},{key:"validate",value:function(e){var t={};return e.merchant_email||(t.merchant_email=Object(a.__)("Please enter your Merchant email",'woocommerce')),Object(ne.isEmail)(e.merchant_email)||(t.merchant_email=Object(a.__)("Please enter a valid email address",'woocommerce')),e.merchant_id||(t.merchant_id=Object(a.__)("Please enter your Merchant Id",'woocommerce')),e.client_id||(t.client_id=Object(a.__)("Please enter your Client Id",'woocommerce')),e.client_secret||(t.client_secret=Object(a.__)("Please enter your Client Secret",'woocommerce')),t}},{key:"renderManualConfig",value:function(){var e=this.props.isOptionsUpdating,t=z()({mixedString:Object(a.__)("Your API details can be obtained from your {{docsLink}}Paypal developer account{{/docsLink}}, and your Merchant Id from your {{merchantLink}}Paypal Business account{{/merchantLink}}. Don’t have a Paypal account? {{registerLink}}Create one.{{/registerLink}}",'woocommerce'),components:{docsLink:Object(o.createElement)(x.Link,{href:"https://developer.paypal.com/docs/api-basics/manage-apps/#create-or-edit-sandbox-and-live-apps",target:"_blank",type:"external"}),merchantLink:Object(o.createElement)(x.Link,{href:"https://www.paypal.com/ca/smarthelp/article/FAQ3850",target:"_blank",type:"external"}),registerLink:Object(o.createElement)(x.Link,{href:"https://www.paypal.com/us/business",target:"_blank",type:"external"})}});return Object(o.createElement)(x.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.setCredentials,validate:this.validate},(function(n){var c=n.getInputProps,r=n.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Email address",'woocommerce'),required:!0},c("merchant_email"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Merchant Id",'woocommerce'),required:!0},c("merchant_id"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Client Id",'woocommerce'),required:!0},c("client_id"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Secret Key",'woocommerce'),required:!0},c("client_secret"))),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:e,onClick:r},Object(a.__)("Proceed",'woocommerce')),Object(o.createElement)("p",null,t))}))}},{key:"renderConnectFields",value:function(){var e=this.state,t=e.autoConnectFailed,n=e.connectURL,c=this.props.recordConnectStartEvent;return!t&&n?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(se,{connectUrl:n,recordConnectStartEvent:c}),Object(o.createElement)("p",null,Object(a.__)("You will be redirected to the PayPal website to create the connection.",'woocommerce'))):t?this.renderManualConfig():void 0}},{key:"getConnectStep",value:function(){var e=this.props.isRequestingOptions;return{key:"connect",label:Object(a.__)("Connect your PayPal account",'woocommerce'),description:Object(a.__)("A PayPal account is required to process payments. Connect your store to your PayPal account.",'woocommerce'),content:e?null:this.renderConnectFields()}}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isRequestingOptions,c=e.isOptionsUpdating,r=this.state.isPending;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete||r||n||c,currentStep:t.isComplete?"connect":"install",steps:[t,this.getConnectStep()]})}}]),m}(o.Component);le.defaultProps={manualConfig:!1};var me=Object(P.compose)(Object(S.withSelect)((function(e){var t=e(L.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating,r=t.hasFinishedResolution,o=e(L.PLUGINS_STORE_NAME).getActivePlugins,a=n("woocommerce-ppcp-settings"),i=!r("getOption",["woocommerce-ppcp-settings"]);return{activePlugins:o(),isOptionsUpdating:c(),options:a,isRequestingOptions:i}})),Object(S.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(L.OPTIONS_STORE_NAME).updateOptions}})))(le),ue=n(219),pe=function(e){var t=e.installStep,n=e.markConfigured,c=Object(S.useSelect)((function(e){var t=(0,e(L.SETTINGS_STORE_NAME).getSettings)("general").general,n=void 0===t?{}:t;return{countryCode:Object(ue.b)(n.woocommerce_default_country)}})).countryCode;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect to your Mercado Pago account",'woocommerce'),content:Object(o.createElement)(de,{countryCode:c,onFinish:function(){return n("mercadopago")}})}]})},de=function(e){var t=e.countryCode,n=e.onFinish,c=Object(o.createElement)(x.Link,{href:"".concat(i.a,"admin.php?page=wc-settings&tab=checkout"),target:"_blank",type:"external"}),r=Object(o.createElement)(x.Link,{href:["AR","BR","CL","CO","MX","PE","UY"].includes(t)?"".concat("https://www.mercadopago.com",".").concat(t.toLowerCase(),"/registration-company?confirmation_url=").concat("https://www.mercadopago.com",".").concat(t.toLowerCase(),"%2Fcomo-cobrar"):"https://www.mercadopago.com",target:"_blank",type:"external"}),s=z()({mixedString:Object(a.__)("Mercado Pago can be configured under your {{settingsLink}}store settings.{{/settingsLink}} Create your Mercado Pago account {{accountLink}}here.{{/accountLink}}",'woocommerce'),components:{accountLink:r,settingsLink:c}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,s),Object(o.createElement)(E.Button,{isPrimary:!0,onClick:n},Object(a.__)("Continue",'woocommerce')))};function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var _e=function(e){g()(n,e);var t=be(n);function n(e){var c;return d()(this,n),(c=t.call(this,e)).continue=c.continue.bind(y()(c)),c}return _()(n,[{key:"continue",value:function(){var e=this.props;(0,e.markConfigured)("checkout"===e.plugin?"klarna_checkout":"klarna_payments")}},{key:"renderConnectStep",value:function(){var e=this.props.plugin,t="checkout"===e?"klarna-checkout":"klarna-payments",n="checkout"===e?"kco":"klarna_payments",c=Object(o.createElement)(x.Link,{href:i.a+"admin.php?page=wc-settings&tab=checkout&section="+n,target:"_blank",type:"external"}),r=Object(o.createElement)(x.Link,{href:"https://docs.woocommerce.com/document/"+t+"/#section-3",target:"_blank",type:"external"}),s=z()({mixedString:Object(a.__)("Klarna can be configured under your {{link}}store settings{{/link}}. Figure out {{helpLink}}what you need{{/helpLink}}.",'woocommerce'),components:{link:c,helpLink:r}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,s),Object(o.createElement)(E.Button,{isPrimary:!0,onClick:this.continue},Object(a.__)("Continue",'woocommerce')))}},{key:"render",value:function(){var e=this.props.installStep;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!e.isComplete,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(a.__)("Connect your Klarna account",'woocommerce'),content:this.renderConnectStep()}]})}}]),n}(o.Component);function fe(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return w()(this,n)}}var ye=function(e){g()(n,e);var t=fe(n);function n(){var e;d()(this,n);for(var c=arguments.length,o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),r()(y()(e),"getInitialConfigValues",(function(){return{customer_api:"",customer_password:""}})),r()(y()(e),"validate",(function(e){var t={};return e.customer_api||(t.customer_api=Object(a.__)("Please enter your customer API key ",'woocommerce')),e.customer_password||(t.customer_password=Object(a.__)("Please enter your customer password",'woocommerce')),t})),r()(y()(e),"updateSettings",function(){var t=u()(C.a.mark((function t(n){var c,r,o,i;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,r=c.updateOptions,o=c.createNotice,i=c.markConfigured,t.next=3,r({woocommerce_eway_settings:{customer_api:n.customer_api,customer_password:n.customer_password,enabled:"yes"}});case 3:t.sent.success?(i("eway"),o("success",Object(a.__)("eWAY connected successfully",'woocommerce'))):o("error",Object(a.__)("There was a problem saving your payment settings",'woocommerce'));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return _()(n,[{key:"renderConnectStep",value:function(){var e=this.props,t=e.isOptionsRequesting,n=e.recordConnectStartEvent,c=z()({mixedString:Object(a.__)("Your API details can be obtained from your {{link}}eWAY account{{/link}}",'woocommerce'),components:{link:Object(o.createElement)(x.Link,{href:"https://www.eway.com.au/",target:"_blank",type:"external"})}});return Object(o.createElement)(x.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(e){var r=e.getInputProps,i=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Customer API Key",'woocommerce'),required:!0},r("customer_api"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Customer Password",'woocommerce'),required:!0},r("customer_password"))),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:t,onClick:function(e){n("eway"),i(e)}},Object(a.__)("Proceed",'woocommerce')),Object(o.createElement)("p",null,c))}))}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsRequesting;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete||n,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect your eWAY account",'woocommerce'),content:this.renderConnectStep()}]})}}]),n}(o.Component),he=Object(P.compose)(Object(S.withSelect)((function(e){return{isOptionsRequesting:(0,e(L.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(S.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(L.OPTIONS_STORE_NAME).updateOptions}})))(ye),ge={key_id:"",key_secret:""},Oe=function(e){var t={};return e.key_id||(t.key_id=Object(a.__)("Please enter your Key ID",'woocommerce')),e.key_secret||(t.key_secret=Object(a.__)("Please enter your Key Secret",'woocommerce')),t},we=function(){var e=u()(C.a.mark((function e(t,n,c,r){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({woocommerce_razorpay_settings:{key_id:t.key_id,key_secret:t.key_secret,enabled:"yes"}});case 2:e.sent.success?(c("razorpay"),n("success",Object(a.__)("Razorpay connected successfully",'woocommerce'))):n("error",Object(a.__)("There was a problem saving your payment settings",'woocommerce'));case 4:case"end":return e.stop()}}),e)})));return function(t,n,c,r){return e.apply(this,arguments)}}(),je=function(e){var t=e.createNotice,n=e.isOptionsRequesting,c=e.markConfigured,r=e.updateOptions,i=z()({mixedString:Object(a.__)("Your key details can be obtained from your {{link}}Razorpay account{{/link}}",'woocommerce'),components:{link:Object(o.createElement)(x.Link,{href:"https://dashboard.razorpay.com/#/access/signin",target:"_blank",type:"external"})}});return Object(o.createElement)(x.Form,{initialValues:ge,onSubmitCallback:function(e){return we(e,t,c,r)},validate:Oe},(function(e){var t=e.getInputProps,c=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Key ID",'woocommerce'),required:!0},t("key_id"))),Object(o.createElement)(x.TextControl,l()({label:Object(a.__)("Key Secret",'woocommerce'),required:!0},t("key_secret"))),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:n,onClick:c},Object(a.__)("Proceed",'woocommerce')),Object(o.createElement)("p",null,i))}))},ke=function(e){var t=e.createNotice,n=e.installStep,c=e.isOptionsRequesting,r=e.markConfigured,i=e.updateOptions;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!n.isComplete||c,currentStep:n.isComplete?"connect":"install",steps:[n,{key:"connect",label:Object(a.__)("Connect your Razorpay account",'woocommerce'),content:je({createNotice:t,isOptionsRequesting:c,markConfigured:r,updateOptions:i})}]})},ve=function(e){var t=e.installStep,n=e.markConfigured,c=Object(S.useSelect)((function(e){return e(L.OPTIONS_STORE_NAME).isOptionsUpdating}))(),r=Object(S.useDispatch)("core/notices").createNotice,a=Object(S.useDispatch)(L.OPTIONS_STORE_NAME).updateOptions;return Object(o.createElement)(ke,{createNotice:r,installStep:t,isOptionsRequesting:c,markConfigured:n,updateOptions:a})},Ce=function(e){var t=e.installStep,n=e.markConfigured;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect your Mollie account",'woocommerce'),content:Object(o.createElement)(Ee,{onFinish:function(){n("mollie")}})}]})},Ee=function(e){var t=e.onFinish,n=Object(o.createElement)(x.Link,{href:"".concat(i.a,"admin.php?page=wc-settings&tab=mollie_settings#mollie-payments-for-woocommerce"),target:"_blank",type:"external"}),c=Object(o.createElement)(x.Link,{href:"https://www.mollie.com/dashboard/signup",target:"_blank",type:"external"}),r=z()({mixedString:Object(a.__)("Create a {{accountLink}}Mollie account{{/accountLink}} and finish the configuration in the {{settingsLink}}Mollie settings.{{/settingsLink}}",'woocommerce'),components:{accountLink:c,settingsLink:n}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,r),Object(o.createElement)(E.Button,{isPrimary:!0,onClick:t},Object(a.__)("Continue",'woocommerce')))},Pe=function(e){var t=e.installStep,n=e.markConfigured;return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect to your PayU account",'woocommerce'),content:Object(o.createElement)(Se,{onFinish:function(){n("payubiz")}})}]})},Se=function(e){var t=e.onFinish,n=Object(o.createElement)(x.Link,{href:"".concat(i.a,"admin.php?page=wc-settings&tab=checkout&section=payubiz"),target:"_blank",type:"external"}),c=Object(o.createElement)(x.Link,{href:"https://onboarding.payu.in/app/account",target:"_blank",type:"external"}),r=z()({mixedString:Object(a.__)("PayU can be configured under your {{settingsLink}}store settings.{{/settingsLink}} Create your PayU account {{accountLink}}here.{{/accountLink}}",'woocommerce'),components:{accountLink:c,settingsLink:n}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,r),Object(o.createElement)(E.Button,{isPrimary:!0,onClick:t},Object(a.__)("Continue",'woocommerce')))};n(276),n(159);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e){var t,n=e.installStep,c=e.markConfigured,i=e.methodConfig,s=e.recordConnectStartEvent,m=Object(S.useDispatch)(L.OPTIONS_STORE_NAME).updateOptions,p=Object(S.useDispatch)("core/notices").createNotice,d=Object(S.useSelect)((function(e){return(0,e(L.OPTIONS_STORE_NAME).isOptionsUpdating)()})),b=function(){if(i&&i.fields)return i.fields.reduce((function(e,t){return Le(Le({},e),{},r()({},t.name,""))}),{})},_=function(e){return i&&i.fields?i.fields.reduce((function(t,n){if(!e[n.name]){var c=n.title.replace(/([A-Z][a-z]+)/,(function(e){return e.toLowerCase()}));return Le(Le({},t),{},r()({},n.name,Object(a.__)("Please enter your ")+c))}return t}),{}):{}},f=function(){var e=u()(C.a.mark((function e(t){var n;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.getOptions?i.getOptions(t):null){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,m(Le({},n));case 5:e.sent.success?(c(i.key),p("success",i.title+Object(a.__)(" connected successfully",'woocommerce'))):p("error",Object(a.__)("There was a problem saving your payment settings",'woocommerce'));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(o.createElement)(x.Stepper,{isVertical:!0,isPending:!n.isComplete||d,currentStep:n.isComplete?"connect":"install",steps:[n,{key:"connect",label:Object(a.sprintf)(Object(a.__)("Connect your %(title)s account",'woocommerce'),{title:i.title}),content:(t=z()({mixedString:Object(a.__)("Your API details can be obtained from your {{link/}}",'woocommerce'),components:{link:Object(o.createElement)(x.Link,{href:i.apiDetailsLink,target:"_blank",type:"external"},Object(a.sprintf)(Object(a.__)("%(title)s account",'woocommerce'),{title:i.title}))}}),Object(o.createElement)(x.Form,{initialValues:b(),onSubmitCallback:f,validate:_},(function(e){var n=e.getInputProps,c=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,(i.fields||[]).map((function(e){return Object(o.createElement)(x.TextControl,l()({key:e.name,label:e.title,required:!0},n(e.name)))})),Object(o.createElement)(E.Button,{isPrimary:!0,isBusy:d,onClick:function(e){s(i.key),c(e)}},Object(a.__)("Proceed",'woocommerce')),Object(o.createElement)("p",null,t))})))}]})}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te=Object(i.g)("wcAdminAssetUrl",""),Me=function(e){return Object(i.f)("admin.php?page=wc-settings&tab=checkout&section="+e)},Ue={isConfigured:!0};function Ie(e){var t=e.activePlugins,n=e.countryCode,c=e.createNotice,r=e.installAndActivatePlugins,s=e.onboardingStatus,l=e.options,m=e.profileItems,u=e.paypalOnboardingStatus,p=e.loadingPaypalStatus,d=s.stripeSupportedCountries,b=void 0===d?[]:d,_=s.wcPayIsConnected,f=void 0!==_&&_,y=s.enabledPaymentGateways,h=void 0===y?[]:y,g=(m.industry||[]).some((function(e){return"cbd-other-hemp-derived-products"===e.slug})),O=l.woocommerce_stripe_settings&&("no"===l.woocommerce_stripe_settings.testmode?l.woocommerce_stripe_settings.publishable_key&&l.woocommerce_stripe_settings.secret_key:l.woocommerce_stripe_settings.test_publishable_key&&l.woocommerce_stripe_settings.test_secret_key),w=[{key:"stripe",title:Object(a.__)("Credit cards - powered by Stripe",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Accept debit and credit cards in 135+ currencies, methods such as Alipay, and one-touch checkout with Apple Pay.",'woocommerce')),before:Object(o.createElement)("img",{src:i.e+"images/stripe.png",alt:""}),visible:b.includes(n)&&!g,plugins:["woocommerce-gateway-stripe"],container:Object(o.createElement)(G,null),isConfigured:O,isEnabled:l.woocommerce_stripe_settings&&"yes"===l.woocommerce_stripe_settings.enabled,optionName:"woocommerce_stripe_settings",manageUrl:Me("stripe")},{key:"paystack",title:Object(a.__)("Paystack",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Paystack helps African merchants accept one-time and recurring payments online with a modern, safe, and secure payment gateway.",'woocommerce')),before:Object(o.createElement)("img",{src:Te+"onboarding/paystack.png",alt:"Paystack logo"}),visible:["ZA","GH","NG"].includes(n)&&!g,plugins:["woo-paystack"],container:Object(o.createElement)(Re,null),isConfigured:l.woocommerce_paystack_settings&&l.woocommerce_paystack_settings.live_public_key&&l.woocommerce_paystack_settings.live_secret_key,isEnabled:h.includes("paystack"),optionName:"woocommerce_paystack_settings",apiDetailsLink:"https://dashboard.paystack.com/#/settings/developer",fields:[{name:"live_public_key",title:Object(a.__)("Live Public Key",'woocommerce')},{name:"live_secret_key",title:Object(a.__)("Live Secret Key",'woocommerce')}],getOptions:function(e){return{woocommerce_currency:"ZAR",woocommerce_paystack_settings:Ae(Ae({},e),{},{testmode:"no"})}},manageUrl:Me("paystack")},{key:"payfast",title:Object(a.__)("PayFast",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The PayFast extension for WooCommerce enables you to accept payments by Credit Card and EFT via one of South Africa’s most popular payment gateways. No setup fees or monthly subscription costs.",'woocommerce'),Object(o.createElement)("p",null,Object(a.__)("Selecting this extension will configure your store to use South African rands as the selected currency.",'woocommerce'))),before:Object(o.createElement)("img",{src:i.e+"images/payfast.png",alt:"PayFast logo"}),visible:["ZA"].includes(n)&&!g,plugins:["woocommerce-payfast-gateway"],container:Object(o.createElement)(Re,null),isConfigured:l.woocommerce_payfast_settings&&l.woocommerce_payfast_settings.merchant_id&&l.woocommerce_payfast_settings.merchant_key&&l.woocommerce_payfast_settings.pass_phrase,isEnabled:l.woocommerce_payfast_settings&&"yes"===l.woocommerce_payfast_settings.enabled,optionName:"woocommerce_payfast_settings",apiDetailsLink:"https://www.payfast.co.za/",fields:[{name:"merchant_id",title:Object(a.__)("Merchant ID",'woocommerce')},{name:"merchant_key",title:Object(a.__)("Merchant Key",'woocommerce')},{name:"pass_phrase",title:Object(a.__)("Passphrase",'woocommerce')}],getOptions:function(e){return{woocommerce_currency:"ZAR",woocommerce_payfast_settings:Ae(Ae({},e),{},{testmode:"no"})}},manageUrl:Me("stripe")},{key:"mercadopago",title:Object(a.__)("Mercado Pago Checkout Pro & Custom",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Accept credit and debit cards, offline (cash or bank transfer) and logged-in payments with money in Mercado Pago. Safe and secure payments with the leading payment processor in LATAM.",'woocommerce')),before:Object(o.createElement)("img",{src:Te+"onboarding/mercadopago.png",alt:""}),visible:["AR","BR","CL","CO","MX","PE","UY"].includes(n),plugins:["woocommerce-mercadopago"],container:Object(o.createElement)(pe,null),isConfigured:t.includes("woocommerce-mercadopago"),isEnabled:l["woocommerce_woo-mercado-pago-basic_settings"]&&"yes"===l["woocommerce_woo-mercado-pago-basic_settings"].enabled,optionName:"woocommerce_woo-mercado-pago-basic_settings",manageUrl:Me("woo-mercado-pago-basic")},{key:"paypal",title:Object(a.__)("PayPal Payments",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Safe and secure payments using credit cards or your customer's PayPal account.",'woocommerce')),before:Object(o.createElement)("img",{src:i.e+"images/paypal.png",alt:""}),visible:"IN"!==n&&!g,plugins:[ae],container:Object(o.createElement)(me,null),isConfigured:u&&u.production&&u.production.onboarded,isEnabled:h.includes("ppcp-gateway"),optionName:"woocommerce_ppcp-gateway_settings",loading:!!t.includes(ae)&&p,manageUrl:Me("ppcp-gateway")},{key:"klarna_checkout",title:Object(a.__)("Klarna Checkout",'woocommerce'),content:Object(a.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.",'woocommerce'),before:Object(o.createElement)("img",{src:i.e+"images/klarna-black.png",alt:""}),visible:["SE","FI","NO"].includes(n)&&!g,plugins:["klarna-checkout-for-woocommerce"],container:Object(o.createElement)(_e,{plugin:"checkout"}),isConfigured:t.includes("klarna-checkout-for-woocommerce"),isEnabled:l.woocommerce_kco_settings&&"yes"===l.woocommerce_kco_settings.enabled,optionName:"woocommerce_kco_settings",manageUrl:Me("kco")},{key:"klarna_payments",title:Object(a.__)("Klarna Payments",'woocommerce'),content:Object(a.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.",'woocommerce'),before:Object(o.createElement)("img",{src:i.e+"images/klarna-black.png",alt:""}),visible:["DK","DE","AT","NL","CH","BE","SP","PL","FR","IT","GB"].includes(n)&&!g,plugins:["klarna-payments-for-woocommerce"],container:Object(o.createElement)(_e,{plugin:"payments"}),isConfigured:t.includes("klarna-payments-for-woocommerce"),isEnabled:l.woocommerce_klarna_payments_settings&&"yes"===l.woocommerce_klarna_payments_settings.enabled,optionName:"woocommerce_klarna_payments_settings",manageUrl:Me("klarna_payments")},{key:"mollie",title:Object(a.__)("Mollie Payments for WooCommerce",'woocommerce'),before:Object(o.createElement)(q,null),plugins:["mollie-payments-for-woocommerce"],isConfigured:t.includes("mollie-payments-for-woocommerce"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Effortless payments by Mollie: Offer global and local payment methods, get onboarded in minutes, and supported in your language.",'woocommerce')),visible:["FR","DE","GB","AT","CH","ES","IT","PL","FI","NL","BE"].includes(n),container:Object(o.createElement)(Ce,null),isEnabled:l.woocommerce_mollie_payments_settings&&"yes"===l.woocommerce_mollie_payments_settings.enabled,optionName:"woocommerce_mollie_payments_settings",manageUrl:Me("mollie_wc_gateway_creditcard")},{key:"square",title:Object(a.__)("Square",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Securely accept credit and debit cards with one low rate, no surprise fees (custom rates available). Sell online and in store and track sales and inventory in one place.",'woocommerce'),g&&Object(o.createElement)("span",{className:"text-style-strong"},Object(a.__)(" Selling CBD products is only supported by Square.",'woocommerce'))),before:Object(o.createElement)("img",{src:"".concat(i.e,"images/square-black.png"),alt:""}),visible:g&&["US"].includes(n)||["brick-mortar","brick-mortar-other"].includes(m.selling_venues)&&["US","CA","JP","GB","AU","IE"].includes(n),plugins:["woocommerce-square"],container:Object(o.createElement)(ee,null),isConfigured:l.wc_square_refresh_tokens&&l.wc_square_refresh_tokens.length,isEnabled:l.woocommerce_square_credit_card_settings&&"yes"===l.woocommerce_square_credit_card_settings.enabled,optionName:"woocommerce_square_credit_card_settings",hasCbdIndustry:g,manageUrl:Me("square_credit_card")},{key:"eway",title:Object(a.__)("eWAY",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The eWAY extension for WooCommerce allows you to take credit card payments directly on your store without redirecting your customers to a third party site to make payment.",'woocommerce')),before:Object(o.createElement)("img",{src:i.e+"images/eway-logo.jpg",alt:"eWAY logo"}),visible:["AU","NZ"].includes(n)&&!g,plugins:["woocommerce-gateway-eway"],container:Object(o.createElement)(he,null),isConfigured:l.woocommerce_eway_settings&&l.woocommerce_eway_settings.customer_api&&l.woocommerce_eway_settings.customer_password,isEnabled:l.woocommerce_eway_settings&&"yes"===l.woocommerce_eway_settings.enabled,optionName:"woocommerce_eway_settings",manageUrl:Me("eway")},{key:"razorpay",title:Object(a.__)("Razorpay",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The official Razorpay extension for WooCommerce allows you to accept credit cards, debit cards, netbanking, wallet, and UPI payments.",'woocommerce')),before:Object(o.createElement)(I,null),visible:"IN"===n&&!g,plugins:["woo-razorpay"],container:Object(o.createElement)(ve,null),isConfigured:l.woocommerce_razorpay_settings&&l.woocommerce_razorpay_settings.key_id&&l.woocommerce_razorpay_settings.key_secret,isEnabled:l.woocommerce_razorpay_settings&&"yes"===l.woocommerce_razorpay_settings.enabled,optionName:"woocommerce_razorpay_settings",manageUrl:Me("razorpay")},{key:"payubiz",title:Object(a.__)("PayU for WooCommerce",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Enable PayU’s exclusive plugin for WooCommerce to start accepting payments in 100+ payment methods available in India including credit cards, debit cards, UPI, & more!",'woocommerce')),before:Object(o.createElement)(B,null),visible:"IN"===n&&!g,plugins:["payu-india"],container:Object(o.createElement)(Pe,null),isConfigured:t.includes("payu-india"),isEnabled:h.includes("payubiz"),optionName:"woocommerce_payubiz_settings",manageUrl:Me("payubiz")},{key:"cod",title:Object(a.__)("Cash on delivery",'woocommerce'),content:Object(a.__)("Take payments in cash upon delivery.",'woocommerce'),before:Object(o.createElement)(M,null),visible:!g,isEnabled:l.woocommerce_cod_settings&&"yes"===l.woocommerce_cod_settings.enabled,optionName:"woocommerce_cod_settings",manageUrl:Me("cod")},{key:"bacs",title:Object(a.__)("Direct bank transfer",'woocommerce'),content:Object(a.__)("Take payments via bank transfer.",'woocommerce'),before:Object(o.createElement)(T,null),visible:!g,container:Object(o.createElement)(A,null),isConfigured:l.woocommerce_bacs_accounts&&l.woocommerce_bacs_accounts.length,isEnabled:l.woocommerce_bacs_settings&&"yes"===l.woocommerce_bacs_settings.enabled,optionName:"woocommerce_bacs_settings",manageUrl:Me("bacs")}];return window.wcAdminFeatures.wcpay&&w.unshift({key:"wcpay",title:Object(a.__)("WooCommerce Payments",'woocommerce'),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Manage transactions without leaving your WordPress Dashboard. Only with WooCommerce Payments.",'woocommerce'),Object(o.createElement)(te.b,null)),before:Object(o.createElement)(U,null),onClick:function(e,t){return Object(te.c)(t,c,r)},visible:Object(te.d)(n)&&!g,plugins:["woocommerce-payments"],container:Object(o.createElement)(te.a,null),isConfigured:f,isEnabled:l.woocommerce_woocommerce_payments_settings&&"yes"===l.woocommerce_woocommerce_payments_settings.enabled,optionName:"woocommerce_woocommerce_payments_settings",manageUrl:Me("woocommerce_payments")}),w.filter((function(e){return e.visible})).map((function(e){return Ae(Ae({},Ue),e)}))}}}]);
packages/woocommerce-admin/dist/chunks/activity-panels-help.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[7],{658:function(e,t,o){"use strict";o(174);var c=o(13),n=o.n(c),m=o(14),r=o.n(m),a=o(16),i=o.n(a),s=o(17),l=o.n(s),u=o(7),p=o.n(u),d=o(0),_=o(9),h=o.n(_),w=o(1),g=o.n(w),b=o(58),f=o(111);o(659);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,c=p()(e);if(t){var n=p()(this).constructor;o=Reflect.construct(c,arguments,n)}else o=c.apply(this,arguments);return l()(this,o)}}var O=function(e){i()(o,e);var t=k(o);function o(){return n()(this,o),t.apply(this,arguments)}return r()(o,[{key:"render",value:function(){var e=this.props,t=e.className,o=e.menu,c=e.subtitle,n=e.title,m=e.unreadMessages,r=h()({"woocommerce-layout__inbox-panel-header":c,"woocommerce-layout__activity-panel-header":!c},t),a=m||0;return Object(d.createElement)("div",{className:r},Object(d.createElement)("div",{className:"woocommerce-layout__inbox-title"},Object(d.createElement)(b.Text,{variant:"title.small"},n),Object(d.createElement)(b.Text,{variant:"button"},a>0&&Object(d.createElement)("span",{className:"woocommerce-layout__inbox-badge"},m))),Object(d.createElement)("div",{className:"woocommerce-layout__inbox-subtitle"},c&&Object(d.createElement)(b.Text,{variant:"body.small"},c)),o&&Object(d.createElement)("div",{className:"woocommerce-layout__activity-panel-header-menu"},o))}}]),o}(d.Component);O.propTypes={className:g.a.string,unreadMessages:g.a.number,title:g.a.string.isRequired,subtitle:g.a.string,menu:g.a.shape({type:g.a.oneOf([f.EllipsisMenu])})},t.a=O},659:function(e,t,o){},757:function(e,t,o){"use strict";o.r(t),o.d(t,"SETUP_TASK_HELP_ITEMS_FILTER",(function(){return k})),o.d(t,"HelpPanel",(function(){return j}));var c=o(0),n=(o(328),o(131),o(107),o(204),o(438),o(115),o(2)),m=o(58),r=o(15),a=o(101),i=o(461),s=o(758),l=o(675),u=o(3),p=o(42),d=o(111),_=o(33),h=o(727),w=o(44),g=o(658),b=o(220),f=o(681),k="woocommerce_admin_setup_task_help_items";function O(e){var t,o,c;switch(e.taskName){case"products":return[{title:Object(n.__)("Adding and Managing Products",'woocommerce'),link:"https://docs.woocommerce.com/document/managing-products/?utm_source=help_panel"},{title:Object(n.__)("Import products using the CSV Importer and Exporter",'woocommerce'),link:"https://docs.woocommerce.com/document/product-csv-importer-exporter/?utm_source=help_panel"},{title:Object(n.__)("Migrate products using Cart2Cart",'woocommerce'),link:"https://woocommerce.com/products/cart2cart/?utm_source=help_panel"},{title:Object(n.__)("Learn more about setting up products",'woocommerce'),link:"https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/setup-products/?utm_source=help_panel"}];case"appearance":return[{title:Object(n.__)("Showcase your products and tailor your shopping experience using Blocks",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-blocks/?utm_source=help_panel"},{title:Object(n.__)("Manage Store Notice, Catalog View and Product Images",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-customizer/?utm_source=help_panel"},{title:Object(n.__)("How to choose and change a theme",'woocommerce'),link:"https://docs.woocommerce.com/document/choose-change-theme/?utm_source=help_panel"}];case"shipping":return o=(t=e).activePlugins,c="US"===t.countryCode&&!o.includes("woocommerce-services"),[{title:Object(n.__)("Setting up Shipping Zones",'woocommerce'),link:"https://docs.woocommerce.com/document/setting-up-shipping-zones/?utm_source=help_panel"},{title:Object(n.__)("Core Shipping Options",'woocommerce'),link:"https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/shipping/core-shipping-options/?utm_source=help_panel"},{title:Object(n.__)("Product Shipping Classes",'woocommerce'),link:"https://docs.woocommerce.com/document/product-shipping-classes/?utm_source=help_panel"},c&&{title:Object(n.__)("WooCommerce Shipping setup and configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-services/#section-3/?utm_source=help_panel"},{title:Object(n.__)("Learn more about configuring your shipping settings",'woocommerce'),link:"https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/shipping/?utm_source=help_panel"}].filter(Boolean);case"tax":return function(e){var t=e.countryCode,o=e.getSetting("onboarding",{}),c=o.automatedTaxSupportedCountries,m=void 0===c?[]:c,r=!o.taxJarActivated&&m.includes(t);return[{title:Object(n.__)("Setting up Taxes in WooCommerce",'woocommerce'),link:"https://docs.woocommerce.com/document/setting-up-taxes-in-woocommerce/?utm_source=help_panel"},r&&{title:Object(n.__)("Automated Tax calculation using WooCommerce Tax",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-services/?utm_source=help_panel#section-10"}].filter(Boolean)}(e);case"payments":return function(e){var t=e.countryCode,o=e.onboardingStatus,c=e.profileItems,m=e.getPaymentMethods({activePlugins:[],countryCode:t,onboardingStatus:o,options:{},profileItems:c}),r=function(e){return Boolean(m.find((function(t){return t.key===e})))},a=r("wcpay"),i=r("stripe"),s=r("klarna_checkout"),l=r("klarna_payments"),u=r("paypal"),p=r("square"),d=r("payfast"),_=r("eway");return[{title:Object(n.__)("Which Payment Option is Right for Me?",'woocommerce'),link:"https://docs.woocommerce.com/document/premium-payment-gateway-extensions/?utm_source=help_panel"},a&&{title:Object(n.__)("WooCommerce Payments Start Up Guide",'woocommerce'),link:"https://docs.woocommerce.com/document/payments//?utm_source=help_panel"},a&&{title:Object(n.__)("WooCommerce Payments FAQs",'woocommerce'),link:"https://docs.woocommerce.com/documentation/woocommerce-payments/woocommerce-payments-faqs/?utm_source=help_panel"},i&&{title:Object(n.__)("Stripe Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/stripe/?utm_source=help_panel"},u&&{title:Object(n.__)("PayPal Checkout Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/2-0/woocommerce-paypal-payments/#section-3"},p&&{title:Object(n.__)("Square - Get started",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-square/?utm_source=help_panel"},s&&{title:Object(n.__)("Klarna - Introduction",'woocommerce'),link:"https://docs.woocommerce.com/document/klarna-checkout/?utm_source=help_panel"},l&&{title:Object(n.__)("Klarna - Introduction",'woocommerce'),link:"https://docs.woocommerce.com/document/klarna-payments/?utm_source=help_panel"},d&&{title:Object(n.__)("PayFast Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/payfast-payment-gateway/?utm_source=help_panel"},_&&{title:Object(n.__)("eWAY Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/eway/?utm_source=help_panel"},{title:Object(n.__)("Direct Bank Transfer (BACS)",'woocommerce'),link:"https://docs.woocommerce.com/document/bacs/?utm_source=help_panel"},{title:Object(n.__)("Cash on Delivery",'woocommerce'),link:"https://docs.woocommerce.com/document/cash-on-delivery/?utm_source=help_panel"}].filter(Boolean)}(e);default:return[{title:Object(n.__)("Get Support",'woocommerce'),link:"https://woocommerce.com/my-account/create-a-ticket/"},{title:Object(n.__)("Home Screen",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen"},{title:Object(n.__)("Inbox",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen/#section-2"},{title:Object(n.__)("Stats Overview",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen/#section-4"},{title:Object(n.__)("Store Management",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen/#section-5"},{title:Object(n.__)("Store Setup Checklist",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-setup-wizard/#store-setup-checklist"}]}}function y(e,t){var o=e.taskName;t&&e.recordEvent("help_panel_click",{task_name:o||"homescreen",link:t.currentTarget.href})}var j=function(e){var t=e.taskName;Object(c.useEffect)((function(){e.recordEvent("help_panel_open",{task_name:t||"homescreen"})}),[t]);var o=function(e){var t=O(e),o={title:Object(n.__)("WooCommerce Docs",'woocommerce'),link:"https://docs.woocommerce.com/?utm_source=help_panel"};t.push(o);var r=Object(a.applyFilters)(k,t,e.taskName,e),p=Array.isArray(r)?r.filter((function(e){return e instanceof Object&&e.title&&e.link})):[];p.length||(p=[o]);var d=Object(u.partial)(y,e);return p.map((function(e){return{title:Object(c.createElement)(m.Text,{as:"div",variant:"button"},e.title),before:Object(c.createElement)(i.a,{icon:s.a}),after:Object(c.createElement)(i.a,{icon:l.a}),linkType:"external",target:"_blank",href:e.link,onClick:d}}))}(e);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(g.a,{title:Object(n.__)("Documentation",'woocommerce')}),Object(c.createElement)(d.Section,null,Object(c.createElement)(d.List,{items:o,className:"woocommerce-quick-links__list"})))};j.defaultProps={getPaymentMethods:f.a,getSetting:p.g,recordEvent:w.recordEvent},t.default=Object(h.a)(Object(r.withSelect)((function(e){var t=e(_.ONBOARDING_STORE_NAME),o=t.getProfileItems,c=t.getTasksStatus,n=e(_.SETTINGS_STORE_NAME).getSettings,m=e(_.PLUGINS_STORE_NAME).getActivePlugins,r=n("general").general,a=void 0===r?{}:r,i=m(),s=c(),l=o();return{activePlugins:i,countryCode:Object(b.b)(a.woocommerce_default_country),onboardingStatus:s,profileItems:l}})))(j)}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[7],{649:function(e,t,o){"use strict";o(174);var c=o(13),n=o.n(c),m=o(14),r=o.n(m),a=o(16),i=o.n(a),s=o(17),l=o.n(s),u=o(7),p=o.n(u),d=o(0),_=o(9),h=o.n(_),w=o(1),g=o.n(w),b=o(58),f=o(112);o(650);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,c=p()(e);if(t){var n=p()(this).constructor;o=Reflect.construct(c,arguments,n)}else o=c.apply(this,arguments);return l()(this,o)}}var O=function(e){i()(o,e);var t=k(o);function o(){return n()(this,o),t.apply(this,arguments)}return r()(o,[{key:"render",value:function(){var e=this.props,t=e.className,o=e.menu,c=e.subtitle,n=e.title,m=e.unreadMessages,r=h()({"woocommerce-layout__inbox-panel-header":c,"woocommerce-layout__activity-panel-header":!c},t),a=m||0;return Object(d.createElement)("div",{className:r},Object(d.createElement)("div",{className:"woocommerce-layout__inbox-title"},Object(d.createElement)(b.Text,{variant:"title.small"},n),Object(d.createElement)(b.Text,{variant:"button"},a>0&&Object(d.createElement)("span",{className:"woocommerce-layout__inbox-badge"},m))),Object(d.createElement)("div",{className:"woocommerce-layout__inbox-subtitle"},c&&Object(d.createElement)(b.Text,{variant:"body.small"},c)),o&&Object(d.createElement)("div",{className:"woocommerce-layout__activity-panel-header-menu"},o))}}]),o}(d.Component);O.propTypes={className:g.a.string,unreadMessages:g.a.number,title:g.a.string.isRequired,subtitle:g.a.string,menu:g.a.shape({type:g.a.oneOf([f.EllipsisMenu])})},t.a=O},650:function(e,t,o){},746:function(e,t,o){"use strict";o.r(t),o.d(t,"SETUP_TASK_HELP_ITEMS_FILTER",(function(){return k})),o.d(t,"HelpPanel",(function(){return j}));var c=o(0),n=(o(322),o(132),o(108),o(205),o(432),o(117),o(2)),m=o(58),r=o(15),a=o(101),i=o(417),s=o(747),l=o(606),u=o(3),p=o(42),d=o(112),_=o(33),h=o(717),w=o(44),g=o(649),b=o(219),f=o(671),k="woocommerce_admin_setup_task_help_items";function O(e){var t,o,c;switch(e.taskName){case"products":return[{title:Object(n.__)("Adding and Managing Products",'woocommerce'),link:"https://docs.woocommerce.com/document/managing-products/?utm_source=help_panel"},{title:Object(n.__)("Import products using the CSV Importer and Exporter",'woocommerce'),link:"https://docs.woocommerce.com/document/product-csv-importer-exporter/?utm_source=help_panel"},{title:Object(n.__)("Migrate products using Cart2Cart",'woocommerce'),link:"https://woocommerce.com/products/cart2cart/?utm_source=help_panel"},{title:Object(n.__)("Learn more about setting up products",'woocommerce'),link:"https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/setup-products/?utm_source=help_panel"}];case"appearance":return[{title:Object(n.__)("Showcase your products and tailor your shopping experience using Blocks",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-blocks/?utm_source=help_panel"},{title:Object(n.__)("Manage Store Notice, Catalog View and Product Images",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-customizer/?utm_source=help_panel"},{title:Object(n.__)("How to choose and change a theme",'woocommerce'),link:"https://docs.woocommerce.com/document/choose-change-theme/?utm_source=help_panel"}];case"shipping":return o=(t=e).activePlugins,c="US"===t.countryCode&&!o.includes("woocommerce-services"),[{title:Object(n.__)("Setting up Shipping Zones",'woocommerce'),link:"https://docs.woocommerce.com/document/setting-up-shipping-zones/?utm_source=help_panel"},{title:Object(n.__)("Core Shipping Options",'woocommerce'),link:"https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/shipping/core-shipping-options/?utm_source=help_panel"},{title:Object(n.__)("Product Shipping Classes",'woocommerce'),link:"https://docs.woocommerce.com/document/product-shipping-classes/?utm_source=help_panel"},c&&{title:Object(n.__)("WooCommerce Shipping setup and configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-services/#section-3/?utm_source=help_panel"},{title:Object(n.__)("Learn more about configuring your shipping settings",'woocommerce'),link:"https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/shipping/?utm_source=help_panel"}].filter(Boolean);case"tax":return function(e){var t=e.countryCode,o=e.getSetting("onboarding",{}),c=o.automatedTaxSupportedCountries,m=void 0===c?[]:c,r=!o.taxJarActivated&&m.includes(t);return[{title:Object(n.__)("Setting up Taxes in WooCommerce",'woocommerce'),link:"https://docs.woocommerce.com/document/setting-up-taxes-in-woocommerce/?utm_source=help_panel"},r&&{title:Object(n.__)("Automated Tax calculation using WooCommerce Tax",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-services/?utm_source=help_panel#section-10"}].filter(Boolean)}(e);case"payments":return function(e){var t=e.countryCode,o=e.onboardingStatus,c=e.profileItems,m=e.getPaymentMethods({activePlugins:[],countryCode:t,onboardingStatus:o,options:{},profileItems:c}),r=function(e){return Boolean(m.find((function(t){return t.key===e})))},a=r("wcpay"),i=r("stripe"),s=r("klarna_checkout"),l=r("klarna_payments"),u=r("paypal"),p=r("square"),d=r("payfast"),_=r("eway");return[{title:Object(n.__)("Which Payment Option is Right for Me?",'woocommerce'),link:"https://docs.woocommerce.com/document/premium-payment-gateway-extensions/?utm_source=help_panel"},a&&{title:Object(n.__)("WooCommerce Payments Start Up Guide",'woocommerce'),link:"https://docs.woocommerce.com/document/payments//?utm_source=help_panel"},a&&{title:Object(n.__)("WooCommerce Payments FAQs",'woocommerce'),link:"https://docs.woocommerce.com/documentation/woocommerce-payments/woocommerce-payments-faqs/?utm_source=help_panel"},i&&{title:Object(n.__)("Stripe Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/stripe/?utm_source=help_panel"},u&&{title:Object(n.__)("PayPal Checkout Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/2-0/woocommerce-paypal-payments/#section-3"},p&&{title:Object(n.__)("Square - Get started",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-square/?utm_source=help_panel"},s&&{title:Object(n.__)("Klarna - Introduction",'woocommerce'),link:"https://docs.woocommerce.com/document/klarna-checkout/?utm_source=help_panel"},l&&{title:Object(n.__)("Klarna - Introduction",'woocommerce'),link:"https://docs.woocommerce.com/document/klarna-payments/?utm_source=help_panel"},d&&{title:Object(n.__)("PayFast Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/payfast-payment-gateway/?utm_source=help_panel"},_&&{title:Object(n.__)("eWAY Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/eway/?utm_source=help_panel"},{title:Object(n.__)("Direct Bank Transfer (BACS)",'woocommerce'),link:"https://docs.woocommerce.com/document/bacs/?utm_source=help_panel"},{title:Object(n.__)("Cash on Delivery",'woocommerce'),link:"https://docs.woocommerce.com/document/cash-on-delivery/?utm_source=help_panel"}].filter(Boolean)}(e);default:return[{title:Object(n.__)("Get Support",'woocommerce'),link:"https://woocommerce.com/my-account/create-a-ticket/"},{title:Object(n.__)("Home Screen",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen"},{title:Object(n.__)("Inbox",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen/#section-2"},{title:Object(n.__)("Stats Overview",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen/#section-4"},{title:Object(n.__)("Store Management",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen/#section-5"},{title:Object(n.__)("Store Setup Checklist",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-setup-wizard/#store-setup-checklist"}]}}function y(e,t){var o=e.taskName;t&&e.recordEvent("help_panel_click",{task_name:o||"homescreen",link:t.currentTarget.href})}var j=function(e){var t=e.taskName;Object(c.useEffect)((function(){e.recordEvent("help_panel_open",{task_name:t||"homescreen"})}),[t]);var o=function(e){var t=O(e),o={title:Object(n.__)("WooCommerce Docs",'woocommerce'),link:"https://docs.woocommerce.com/?utm_source=help_panel"};t.push(o);var r=Object(a.applyFilters)(k,t,e.taskName,e),p=Array.isArray(r)?r.filter((function(e){return e instanceof Object&&e.title&&e.link})):[];p.length||(p=[o]);var d=Object(u.partial)(y,e);return p.map((function(e){return{title:Object(c.createElement)(m.Text,{as:"div",variant:"button"},e.title),before:Object(c.createElement)(i.a,{icon:s.a}),after:Object(c.createElement)(i.a,{icon:l.a}),linkType:"external",target:"_blank",href:e.link,onClick:d}}))}(e);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(g.a,{title:Object(n.__)("Documentation",'woocommerce')}),Object(c.createElement)(d.Section,null,Object(c.createElement)(d.List,{items:o,className:"woocommerce-quick-links__list"})))};j.defaultProps={getPaymentMethods:f.a,getSetting:p.g,recordEvent:w.recordEvent},t.default=Object(h.a)(Object(r.withSelect)((function(e){var t=e(_.ONBOARDING_STORE_NAME),o=t.getProfileItems,c=t.getTasksStatus,n=e(_.SETTINGS_STORE_NAME).getSettings,m=e(_.PLUGINS_STORE_NAME).getActivePlugins,r=n("general").general,a=void 0===r?{}:r,i=m(),s=c(),l=o();return{activePlugins:i,countryCode:Object(b.b)(a.woocommerce_default_country),onboardingStatus:s,profileItems:l}})))(j)}}]);
packages/woocommerce-admin/dist/chunks/activity-panels-inbox.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[8],{331:function(t,e,o){"use strict";var n=Object.assign||function(t){for(var e,o=1;o<arguments.length;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,o=t.size,r=void 0===o?24:o,i=t.onClick,l=(t.icon,t.className),c=function(t,e){var o={};for(var n in t)0<=e.indexOf(n)||Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}(t,["size","onClick","icon","className"]),s=["gridicon","gridicons-notice-outline",l,(e=r,!(0!=e%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",n({className:s,height:r,width:r,onClick:i},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,i=o(11),a=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},676:function(t,e,o){var n;n=function(t,e){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=4)}([function(t,e,o){t.exports=o(5)()},function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e){t.exports=function(t,e,o){var n=t.direction,r=t.value;switch(n){case"top":return o.top+r<e.top&&o.bottom>e.bottom&&o.left<e.left&&o.right>e.right;case"left":return o.left+r<e.left&&o.bottom>e.bottom&&o.top<e.top&&o.right>e.right;case"bottom":return o.bottom-r>e.bottom&&o.left<e.left&&o.right>e.right&&o.top<e.top;case"right":return o.right-r>e.right&&o.left<e.left&&o.top<e.top&&o.bottom>e.bottom}}},function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return y}));var n=o(1),r=o.n(n),i=o(2),a=o.n(i),l=o(0),c=o.n(l),s=o(3),u=o.n(s);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var y=function(t){function e(t){var o,n,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,r=h(e).call(this,t),o=!r||"object"!==p(r)&&"function"!=typeof r?b(n):r,m(b(o),"getContainer",(function(){return o.props.containment||window})),m(b(o),"addEventListener",(function(t,e,n,r){var i;o.debounceCheck||(o.debounceCheck={});var a=function(){i=null,o.check()},l={target:t,fn:r>-1?function(){i||(i=setTimeout(a,r||0))}:function(){clearTimeout(i),i=setTimeout(a,n||0)},getLastTimeout:function(){return i}};t.addEventListener(e,l.fn),o.debounceCheck[e]=l})),m(b(o),"startWatching",(function(){o.debounceCheck||o.interval||(o.props.intervalCheck&&(o.interval=setInterval(o.check,o.props.intervalDelay)),o.props.scrollCheck&&o.addEventListener(o.getContainer(),"scroll",o.props.scrollDelay,o.props.scrollThrottle),o.props.resizeCheck&&o.addEventListener(window,"resize",o.props.resizeDelay,o.props.resizeThrottle),!o.props.delayedCall&&o.check())})),m(b(o),"stopWatching",(function(){if(o.debounceCheck)for(var t in o.debounceCheck)if(o.debounceCheck.hasOwnProperty(t)){var e=o.debounceCheck[t];clearTimeout(e.getLastTimeout()),e.target.removeEventListener(t,e.fn),o.debounceCheck[t]=null}o.debounceCheck=null,o.interval&&(o.interval=clearInterval(o.interval))})),m(b(o),"check",(function(){var t,e,n=o.node;if(!n)return o.state;if(t=function(t){return void 0===t.width&&(t.width=t.right-t.left),void 0===t.height&&(t.height=t.bottom-t.top),t}(o.roundRectDown(n.getBoundingClientRect())),o.props.containment){var r=o.props.containment.getBoundingClientRect();e={top:r.top,left:r.left,bottom:r.bottom,right:r.right}}else e={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var i=o.props.offset||{};"object"===p(i)&&(e.top+=i.top||0,e.left+=i.left||0,e.bottom-=i.bottom||0,e.right-=i.right||0);var a={top:t.top>=e.top,left:t.left>=e.left,bottom:t.bottom<=e.bottom,right:t.right<=e.right},l=t.height>0&&t.width>0,c=l&&a.top&&a.left&&a.bottom&&a.right;if(l&&o.props.partialVisibility){var s=t.top<=e.bottom&&t.bottom>=e.top&&t.left<=e.right&&t.right>=e.left;"string"==typeof o.props.partialVisibility&&(s=a[o.props.partialVisibility]),c=o.props.minTopValue?s&&t.top<=e.bottom-o.props.minTopValue:s}"string"==typeof i.direction&&"number"==typeof i.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",i.direction,i.value),c=u()(i,t,e));var f=o.state;return o.state.isVisible!==c&&(f={isVisible:c,visibilityRect:a},o.setState(f),o.props.onChange&&o.props.onChange(c)),f})),o.state={isVisible:null,visibilityRect:{}},o}var o,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,t),o=e,(n=[{key:"componentDidMount",value:function(){this.node=a.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(t){this.node=a.a.findDOMNode(this),this.props.active&&!t.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(t){return{top:Math.floor(t.top),left:Math.floor(t.left),bottom:Math.floor(t.bottom),right:Math.floor(t.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.a.Children.only(this.props.children)}}])&&f(o.prototype,n),i&&f(o,i),e}(r.a.Component);m(y,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:r.a.createElement("span",null)}),m(y,"propTypes",{onChange:c.a.func,active:c.a.bool,partialVisibility:c.a.oneOfType([c.a.bool,c.a.oneOf(["top","right","bottom","left"])]),delayedCall:c.a.bool,offset:c.a.oneOfType([c.a.shape({top:c.a.number,left:c.a.number,bottom:c.a.number,right:c.a.number}),c.a.shape({direction:c.a.oneOf(["top","right","bottom","left"]),value:c.a.number})]),scrollCheck:c.a.bool,scrollDelay:c.a.number,scrollThrottle:c.a.number,resizeCheck:c.a.bool,resizeDelay:c.a.number,resizeThrottle:c.a.number,intervalCheck:c.a.bool,intervalDelay:c.a.number,containment:"undefined"!=typeof window?c.a.instanceOf(window.Element):c.a.any,children:c.a.oneOfType([c.a.element,c.a.func]),minTopValue:c.a.number})},function(t,e,o){"use strict";var n=o(6);function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function t(t,e,o,r,i,a){if(a!==n){var l=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 l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var o={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:r};return o.PropTypes=o,o}},function(t,e,o){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},t.exports=n(o(11),o(123))},677:function(t,e,o){"use strict";var n,r=o(26),i=o(45).f,a=o(43),l=o(290),c=o(40),s=o(291),u=o(59),p="".startsWith,f=Math.min,h=s("startsWith");r({target:"String",proto:!0,forced:!!(u||h||(n=i(String.prototype,"startsWith"),!n||n.writable))&&!h},{startsWith:function(t){var e=String(c(this));l(t);var o=a(f(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return p?p.call(e,n,o):e.slice(o,o+n.length)===n}})}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[8],{325:function(t,e,o){"use strict";var n=Object.assign||function(t){for(var e,o=1;o<arguments.length;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,o=t.size,r=void 0===o?24:o,i=t.onClick,l=(t.icon,t.className),c=function(t,e){var o={};for(var n in t)0<=e.indexOf(n)||Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}(t,["size","onClick","icon","className"]),s=["gridicon","gridicons-notice-outline",l,(e=r,!(0!=e%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",n({className:s,height:r,width:r,onClick:i},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,i=o(11),a=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},666:function(t,e,o){var n;n=function(t,e){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=4)}([function(t,e,o){t.exports=o(5)()},function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e){t.exports=function(t,e,o){var n=t.direction,r=t.value;switch(n){case"top":return o.top+r<e.top&&o.bottom>e.bottom&&o.left<e.left&&o.right>e.right;case"left":return o.left+r<e.left&&o.bottom>e.bottom&&o.top<e.top&&o.right>e.right;case"bottom":return o.bottom-r>e.bottom&&o.left<e.left&&o.right>e.right&&o.top<e.top;case"right":return o.right-r>e.right&&o.left<e.left&&o.top<e.top&&o.bottom>e.bottom}}},function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return y}));var n=o(1),r=o.n(n),i=o(2),a=o.n(i),l=o(0),c=o.n(l),s=o(3),u=o.n(s);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var y=function(t){function e(t){var o,n,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,r=h(e).call(this,t),o=!r||"object"!==p(r)&&"function"!=typeof r?b(n):r,m(b(o),"getContainer",(function(){return o.props.containment||window})),m(b(o),"addEventListener",(function(t,e,n,r){var i;o.debounceCheck||(o.debounceCheck={});var a=function(){i=null,o.check()},l={target:t,fn:r>-1?function(){i||(i=setTimeout(a,r||0))}:function(){clearTimeout(i),i=setTimeout(a,n||0)},getLastTimeout:function(){return i}};t.addEventListener(e,l.fn),o.debounceCheck[e]=l})),m(b(o),"startWatching",(function(){o.debounceCheck||o.interval||(o.props.intervalCheck&&(o.interval=setInterval(o.check,o.props.intervalDelay)),o.props.scrollCheck&&o.addEventListener(o.getContainer(),"scroll",o.props.scrollDelay,o.props.scrollThrottle),o.props.resizeCheck&&o.addEventListener(window,"resize",o.props.resizeDelay,o.props.resizeThrottle),!o.props.delayedCall&&o.check())})),m(b(o),"stopWatching",(function(){if(o.debounceCheck)for(var t in o.debounceCheck)if(o.debounceCheck.hasOwnProperty(t)){var e=o.debounceCheck[t];clearTimeout(e.getLastTimeout()),e.target.removeEventListener(t,e.fn),o.debounceCheck[t]=null}o.debounceCheck=null,o.interval&&(o.interval=clearInterval(o.interval))})),m(b(o),"check",(function(){var t,e,n=o.node;if(!n)return o.state;if(t=function(t){return void 0===t.width&&(t.width=t.right-t.left),void 0===t.height&&(t.height=t.bottom-t.top),t}(o.roundRectDown(n.getBoundingClientRect())),o.props.containment){var r=o.props.containment.getBoundingClientRect();e={top:r.top,left:r.left,bottom:r.bottom,right:r.right}}else e={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var i=o.props.offset||{};"object"===p(i)&&(e.top+=i.top||0,e.left+=i.left||0,e.bottom-=i.bottom||0,e.right-=i.right||0);var a={top:t.top>=e.top,left:t.left>=e.left,bottom:t.bottom<=e.bottom,right:t.right<=e.right},l=t.height>0&&t.width>0,c=l&&a.top&&a.left&&a.bottom&&a.right;if(l&&o.props.partialVisibility){var s=t.top<=e.bottom&&t.bottom>=e.top&&t.left<=e.right&&t.right>=e.left;"string"==typeof o.props.partialVisibility&&(s=a[o.props.partialVisibility]),c=o.props.minTopValue?s&&t.top<=e.bottom-o.props.minTopValue:s}"string"==typeof i.direction&&"number"==typeof i.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",i.direction,i.value),c=u()(i,t,e));var f=o.state;return o.state.isVisible!==c&&(f={isVisible:c,visibilityRect:a},o.setState(f),o.props.onChange&&o.props.onChange(c)),f})),o.state={isVisible:null,visibilityRect:{}},o}var o,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,t),o=e,(n=[{key:"componentDidMount",value:function(){this.node=a.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(t){this.node=a.a.findDOMNode(this),this.props.active&&!t.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(t){return{top:Math.floor(t.top),left:Math.floor(t.left),bottom:Math.floor(t.bottom),right:Math.floor(t.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.a.Children.only(this.props.children)}}])&&f(o.prototype,n),i&&f(o,i),e}(r.a.Component);m(y,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:r.a.createElement("span",null)}),m(y,"propTypes",{onChange:c.a.func,active:c.a.bool,partialVisibility:c.a.oneOfType([c.a.bool,c.a.oneOf(["top","right","bottom","left"])]),delayedCall:c.a.bool,offset:c.a.oneOfType([c.a.shape({top:c.a.number,left:c.a.number,bottom:c.a.number,right:c.a.number}),c.a.shape({direction:c.a.oneOf(["top","right","bottom","left"]),value:c.a.number})]),scrollCheck:c.a.bool,scrollDelay:c.a.number,scrollThrottle:c.a.number,resizeCheck:c.a.bool,resizeDelay:c.a.number,resizeThrottle:c.a.number,intervalCheck:c.a.bool,intervalDelay:c.a.number,containment:"undefined"!=typeof window?c.a.instanceOf(window.Element):c.a.any,children:c.a.oneOfType([c.a.element,c.a.func]),minTopValue:c.a.number})},function(t,e,o){"use strict";var n=o(6);function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function t(t,e,o,r,i,a){if(a!==n){var l=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 l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var o={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:r};return o.PropTypes=o,o}},function(t,e,o){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},t.exports=n(o(11),o(124))},667:function(t,e,o){"use strict";var n,r=o(26),i=o(45).f,a=o(43),l=o(285),c=o(40),s=o(286),u=o(59),p="".startsWith,f=Math.min,h=s("startsWith");r({target:"String",proto:!0,forced:!!(u||h||(n=i(String.prototype,"startsWith"),!n||n.writable))&&!h},{startsWith:function(t){var e=String(c(this));l(t);var o=a(f(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return p?p.call(e,n,o):e.slice(o,o+n.length)===n}})}}]);
packages/woocommerce-admin/dist/chunks/analytics-report-categories.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[10],{620:function(e,t,r){"use strict";r.r(t);r(174),r(83),r(125),r(150),r(126),r(151);var o=r(4),c=r.n(o),n=r(13),a=r.n(n),i=r(14),s=r.n(i),l=r(16),u=r.n(l),m=r(17),d=r.n(m),b=r(7),p=r.n(b),g=r(0),y=(r(131),r(116),r(239),r(328),r(1)),f=r.n(y),_=r(2),O=r(15),v=r(101),h=r(638),j=Object(v.applyFilters)("woocommerce_admin_categories_report_charts",[{key:"items_sold",label:Object(_.__)("Items Sold",'woocommerce'),order:"desc",orderby:"items_sold",type:"number"},{key:"net_revenue",label:Object(_.__)("Net Sales",'woocommerce'),order:"desc",orderby:"net_revenue",type:"currency"},{key:"orders_count",label:Object(_.__)("Orders",'woocommerce'),order:"desc",orderby:"orders_count",type:"number"}]),w=Object(v.applyFilters)("woocommerce_admin_categories_report_filters",[{label:Object(_.__)("Show",'woocommerce'),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(_.__)("All Categories",'woocommerce'),value:"all"},{label:Object(_.__)("Single Category",'woocommerce'),value:"select_category",chartMode:"item-comparison",subFilters:[{component:"Search",value:"single_category",chartMode:"item-comparison",path:["select_category"],settings:{type:"categories",param:"categories",getLabels:h.a,labels:{placeholder:Object(_.__)("Type to search for a category",'woocommerce'),button:Object(_.__)("Single Category",'woocommerce')}}}]},{label:Object(_.__)("Comparison",'woocommerce'),value:"compare-categories",chartMode:"item-comparison",settings:{type:"categories",param:"categories",getLabels:h.a,labels:{helpText:Object(_.__)("Check at least two categories below to compare",'woocommerce'),placeholder:Object(_.__)("Search for categories to compare",'woocommerce'),title:Object(_.__)("Compare Categories",'woocommerce'),update:Object(_.__)("Compare",'woocommerce')}}}]}]),C=Object(v.applyFilters)("woocommerce_admin_category_report_advanced_filters",{}),S=r(10),k=r.n(S),R=(r(281),r(255),r(34)),q=r(3),E=r(28),P=r(111),F=r(283),N=r(33),x=r(656),A=r(647),B=r(636);function I(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=p()(e);if(t){var c=p()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return d()(this,r)}}var V=function(e){u()(r,e);var t=I(r);function r(e){var o;return a()(this,r),(o=t.call(this,e)).getRowsContent=o.getRowsContent.bind(k()(o)),o.getSummary=o.getSummary.bind(k()(o)),o}return s()(r,[{key:"getHeadersContent",value:function(){return[{label:Object(_.__)("Category",'woocommerce'),key:"category",required:!0,isSortable:!0,isLeftAligned:!0},{label:Object(_.__)("Items Sold",'woocommerce'),key:"items_sold",required:!0,defaultSort:!0,isSortable:!0,isNumeric:!0},{label:Object(_.__)("Net Sales",'woocommerce'),key:"net_revenue",isSortable:!0,isNumeric:!0},{label:Object(_.__)("Products",'woocommerce'),key:"products_count",isSortable:!0,isNumeric:!0},{label:Object(_.__)("Orders",'woocommerce'),key:"orders_count",isSortable:!0,isNumeric:!0}]}},{key:"getRowsContent",value:function(e){var t=this,r=this.context,o=r.render,c=r.formatDecimal,n=(0,r.getCurrencyConfig)();return Object(q.map)(e,(function(e){var r=e.category_id,a=e.items_sold,i=e.net_revenue,s=e.products_count,l=e.orders_count,u=t.props,m=u.categories,d=u.query,b=m.get(r),p=Object(E.getPersistedQuery)(d);return[{display:Object(g.createElement)(x.a,{query:d,category:b,categories:m}),value:b&&b.name},{display:Object(F.formatValue)(n,"number",a),value:a},{display:o(i),value:c(i)},{display:b&&Object(g.createElement)(P.Link,{href:Object(E.getNewPath)(p,"/analytics/categories",{filter:"single_category",categories:b.id}),type:"wc-admin"},Object(F.formatValue)(n,"number",s)),value:s},{display:Object(F.formatValue)(n,"number",l),value:l}]}))}},{key:"getSummary",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e.items_sold,o=void 0===r?0:r,c=e.net_revenue,n=void 0===c?0:c,a=e.orders_count,i=void 0===a?0:a,s=this.context,l=s.formatAmount,u=s.getCurrencyConfig,m=u();return[{label:Object(_._n)("category","categories",t,'woocommerce'),value:Object(F.formatValue)(m,"number",t)},{label:Object(_._n)("item sold","items sold",o,'woocommerce'),value:Object(F.formatValue)(m,"number",o)},{label:Object(_.__)("net sales",'woocommerce'),value:l(n)},{label:Object(_._n)("order","orders",i,'woocommerce'),value:Object(F.formatValue)(m,"number",i)}]}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,r=e.filters,o=e.isRequesting,c=e.query,n={helpText:Object(_.__)("Check at least two categories below to compare",'woocommerce'),placeholder:Object(_.__)("Search by category name",'woocommerce')};return Object(g.createElement)(A.a,{compareBy:"categories",endpoint:"categories",getHeadersContent:this.getHeadersContent,getRowsContent:this.getRowsContent,getSummary:this.getSummary,summaryFields:["items_sold","net_revenue","orders_count"],isRequesting:o,itemIdField:"category_id",query:c,searchBy:"categories",labels:n,tableQuery:{orderby:c.orderby||"items_sold",order:c.order||"desc",extended_info:!0},title:Object(_.__)("Categories",'woocommerce'),columnPrefsKey:"categories_report_columns",filters:r,advancedFilters:t})}}]),r}(g.Component);V.contextType=B.a;var L=Object(R.compose)(Object(O.withSelect)((function(e,t){var r=t.isRequesting,o=t.query;if(r||o.search&&(!o.categories||!o.categories.length))return{};var c=e(N.ITEMS_STORE_NAME),n=c.getItems,a=c.getItemsError,i=c.isResolving,s={per_page:-1};return{categories:n("categories",s),isError:Boolean(a("categories",s)),isRequesting:i("getItems",["categories",s])}})))(V),T=r(644),M=r(642),D=r(645),H=r(668),Q=r(646),K=r(183);function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function U(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=p()(e);if(t){var c=p()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return d()(this,r)}}var z=function(e){u()(r,e);var t=U(r);function r(){return a()(this,r),t.apply(this,arguments)}return s()(r,[{key:"getChartMeta",value:function(){var e=this.props.query,t="compare-categories"===e.filter&&e.categories&&e.categories.split(",").length>1,r="single_category"===e.filter&&!!e.categories,o=t||r?"item-comparison":"time-comparison";return{isSingleCategoryView:r,itemsLabel:r?Object(_.__)("%d products",'woocommerce'):Object(_.__)("%d categories",'woocommerce'),mode:o}}},{key:"render",value:function(){var e=this.props,t=e.isRequesting,r=e.query,o=e.path,n=e.addCesSurveyForAnalytics,a=this.getChartMeta(),i=a.mode,s=a.itemsLabel,l=a.isSingleCategoryView,u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r);return"item-comparison"===i&&(u.segmentby=l?"product":"category"),w[0].filters.find((function(e){return"compare-categories"===e.value})).settings.onClick=n,Object(g.createElement)(g.Fragment,null,Object(g.createElement)(Q.a,{query:r,path:o,filters:w,advancedFilters:C,report:"categories"}),Object(g.createElement)(D.a,{charts:j,endpoint:"products",isRequesting:t,limitProperties:l?["products","categories"]:["categories"],query:u,selectedChart:Object(T.a)(r.chart,j),filters:w,advancedFilters:C,report:"categories"}),Object(g.createElement)(M.a,{charts:j,filters:w,advancedFilters:C,mode:i,endpoint:"products",limitProperties:l?["products","categories"]:["categories"],path:o,query:u,isRequesting:t,itemsLabel:s,selectedChart:Object(T.a)(r.chart,j)}),l?Object(g.createElement)(H.a,{isRequesting:t,query:u,baseSearchQuery:{filter:"single_category"},hideCompare:l,filters:w,advancedFilters:C}):Object(g.createElement)(L,{isRequesting:t,query:r,filters:w,advancedFilters:C}))}}]),r}(g.Component);z.propTypes={query:f.a.object.isRequired,path:f.a.string.isRequired};t.default=Object(O.withDispatch)((function(e){return{addCesSurveyForAnalytics:e(K.c).addCesSurveyForAnalytics}}))(z)},656:function(e,t,r){"use strict";r.d(t,"a",(function(){return O}));r(174);var o=r(13),c=r.n(o),n=r(14),a=r.n(n),i=r(16),s=r.n(i),l=r(17),u=r.n(l),m=r(7),d=r.n(m),b=r(0),p=(r(281),r(3)),g=r(5),y=r(111),f=r(28);function _(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=d()(e);if(t){var c=d()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return u()(this,r)}}var O=function(e){s()(r,e);var t=_(r);function r(){return c()(this,r),t.apply(this,arguments)}return a()(r,[{key:"getCategoryAncestorIds",value:function(e,t){for(var r=[],o=e.parent;o;)r.unshift(o),o=t.get(o).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,o=e.query,c=Object(f.getPersistedQuery)(o);return r?Object(b.createElement)("div",{className:"woocommerce-table__breadcrumbs"},this.getCategoryAncestors(r,t),Object(b.createElement)(y.Link,{href:Object(f.getNewPath)(c,"/analytics/categories",{filter:"single_category",categories:r.id}),type:"wc-admin"},r.name)):Object(b.createElement)(g.Spinner,null)}}]),r}(b.Component)},668:function(e,t,r){"use strict";r(174);var o=r(13),c=r.n(o),n=r(14),a=r.n(n),i=r(10),s=r.n(i),l=r(16),u=r.n(l),m=r(17),d=r.n(m),b=r(7),p=r.n(b),g=r(0),y=(r(131),r(281),r(115),r(282),r(116),r(255),r(2)),f=r(34),_=r(99),O=r(15),v=r(3),h=r(28),j=r(111),w=r(283),C=r(42),S=r(33),k=r(656),R=r(657),q=r(647),E=r(636);r(669);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=p()(e);if(t){var c=p()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return d()(this,r)}}var F=Object(C.g)("manageStock","no"),N=Object(C.g)("stockStatuses",{}),x=function(e){u()(r,e);var t=P(r);function r(){var e;return c()(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 a()(r,[{key:"getHeadersContent",value:function(){return[{label:Object(y.__)("Product Title",'woocommerce'),key:"product_name",required:!0,isLeftAligned:!0,isSortable:!0},{label:Object(y.__)("SKU",'woocommerce'),key:"sku",hiddenByDefault:!0,isSortable:!0},{label:Object(y.__)("Items Sold",'woocommerce'),key:"items_sold",required:!0,defaultSort:!0,isSortable:!0,isNumeric:!0},{label:Object(y.__)("Net Sales",'woocommerce'),screenReaderLabel:Object(y.__)("Net Sales",'woocommerce'),key:"net_revenue",required:!0,isSortable:!0,isNumeric:!0},{label:Object(y.__)("Orders",'woocommerce'),key:"orders_count",isSortable:!0,isNumeric:!0},{label:Object(y.__)("Category",'woocommerce'),key:"product_cat"},{label:Object(y.__)("Variations",'woocommerce'),key:"variations",isSortable:!0},"yes"===F?{label:Object(y.__)("Status",'woocommerce'),key:"stock_status"}:null,"yes"===F?{label:Object(y.__)("Stock",'woocommerce'),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,o=Object(h.getPersistedQuery)(r),c=this.context,n=c.render,a=c.formatDecimal,i=c.getCurrencyConfig,s=i();return Object(v.map)(t,(function(t){var c=t.product_id,i=t.items_sold,l=t.net_revenue,u=t.orders_count,m=t.extended_info||{},d=m.category_ids,b=m.low_stock_amount,p=m.manage_stock,f=m.sku,O=m.stock_status,v=m.stock_quantity,S=m.variations,q=void 0===S?[]:S,E=Object(_.decodeEntities)(m.name),P=Object(h.getNewPath)(o,"/analytics/orders",{filter:"advanced",product_includes:c}),x=Object(h.getNewPath)(o,"/analytics/products",{filter:"single_product",products:c}),A=e.props.categories,B=d&&d.map((function(e){return A.get(e)})).filter(Boolean)||[],I=Object(R.a)(O,v,b)?Object(g.createElement)(j.Link,{href:Object(C.f)("post.php?action=edit&post="+c),type:"wp-admin"},Object(y._x)("Low","Indication of a low quantity",'woocommerce')):N[O];return[{display:Object(g.createElement)(j.Link,{href:x,type:"wc-admin"},E),value:E},{display:f,value:f},{display:Object(w.formatValue)(s,"number",i),value:i},{display:n(l),value:a(l)},{display:Object(g.createElement)(j.Link,{href:P,type:"wc-admin"},u),value:u},{display:Object(g.createElement)("div",{className:"woocommerce-table__product-categories"},B[0]&&Object(g.createElement)(k.a,{category:B[0],categories:A}),B.length>1&&Object(g.createElement)(j.Tag,{label:Object(y.sprintf)(Object(y._x)("+%d more","categories",'woocommerce'),B.length-1),popoverContents:B.map((function(e){return Object(g.createElement)(k.a,{category:e,categories:A,key:e.id,query:r})}))})),value:B.map((function(e){return e.name})).join(", ")},{display:Object(w.formatValue)(s,"number",q.length),value:q.length},"yes"===F?{display:p?I:Object(y.__)("N/A",'woocommerce'),value:p?N[O]:null}:null,"yes"===F?{display:p?Object(w.formatValue)(s,"number",v):Object(y.__)("N/A",'woocommerce'),value:v}:null].filter(Boolean)}))}},{key:"getSummary",value:function(e){var t=e.products_count,r=void 0===t?0:t,o=e.items_sold,c=void 0===o?0:o,n=e.net_revenue,a=void 0===n?0:n,i=e.orders_count,s=void 0===i?0:i,l=this.context,u=l.formatAmount,m=(0,l.getCurrencyConfig)();return[{label:Object(y._n)("product","products",r,'woocommerce'),value:Object(w.formatValue)(m,"number",r)},{label:Object(y._n)("item sold","items sold",c,'woocommerce'),value:Object(w.formatValue)(m,"number",c)},{label:Object(y.__)("net sales",'woocommerce'),value:u(a)},{label:Object(y._n)("orders","orders",s,'woocommerce'),value:Object(w.formatValue)(m,"number",s)}]}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,r=e.baseSearchQuery,o=e.filters,c=e.hideCompare,n=e.isRequesting,a=e.query,i={helpText:Object(y.__)("Check at least two products below to compare",'woocommerce'),placeholder:Object(y.__)("Search by product name or SKU",'woocommerce')};return Object(g.createElement)(q.a,{compareBy:c?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:n,labels:i,query:a,searchBy:"products",baseSearchQuery:r,tableQuery:{orderby:a.orderby||"items_sold",order:a.order||"desc",extended_info:!0,segmentby:a.segmentby},title:Object(y.__)("Products",'woocommerce'),columnPrefsKey:"products_report_columns",filters:o,advancedFilters:t})}}]),r}(g.Component);x.contextType=E.a,t.a=Object(f.compose)(Object(O.withSelect)((function(e,t){var r=t.query;if(t.isRequesting||r.search&&(!r.products||!r.products.length))return{};var o=e(S.ITEMS_STORE_NAME),c=o.getItems,n=o.getItemsError,a=o.isResolving,i={per_page:-1};return{categories:c("categories",i),isError:Boolean(n("categories",i)),isRequesting:a("getItems",["categories",i])}})))(x)},669:function(e,t,r){}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[10],{612:function(e,t,r){"use strict";r.r(t);r(174),r(83),r(126),r(151),r(127),r(152);var o=r(4),c=r.n(o),n=r(13),a=r.n(n),i=r(14),s=r.n(i),l=r(16),u=r.n(l),m=r(17),d=r.n(m),b=r(7),p=r.n(b),g=r(0),y=(r(132),r(118),r(238),r(322),r(1)),f=r.n(y),_=r(2),O=r(15),v=r(101),h=r(629),j=Object(v.applyFilters)("woocommerce_admin_categories_report_charts",[{key:"items_sold",label:Object(_.__)("Items Sold",'woocommerce'),order:"desc",orderby:"items_sold",type:"number"},{key:"net_revenue",label:Object(_.__)("Net Sales",'woocommerce'),order:"desc",orderby:"net_revenue",type:"currency"},{key:"orders_count",label:Object(_.__)("Orders",'woocommerce'),order:"desc",orderby:"orders_count",type:"number"}]),w=Object(v.applyFilters)("woocommerce_admin_categories_report_filters",[{label:Object(_.__)("Show",'woocommerce'),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(_.__)("All Categories",'woocommerce'),value:"all"},{label:Object(_.__)("Single Category",'woocommerce'),value:"select_category",chartMode:"item-comparison",subFilters:[{component:"Search",value:"single_category",chartMode:"item-comparison",path:["select_category"],settings:{type:"categories",param:"categories",getLabels:h.a,labels:{placeholder:Object(_.__)("Type to search for a category",'woocommerce'),button:Object(_.__)("Single Category",'woocommerce')}}}]},{label:Object(_.__)("Comparison",'woocommerce'),value:"compare-categories",chartMode:"item-comparison",settings:{type:"categories",param:"categories",getLabels:h.a,labels:{helpText:Object(_.__)("Check at least two categories below to compare",'woocommerce'),placeholder:Object(_.__)("Search for categories to compare",'woocommerce'),title:Object(_.__)("Compare Categories",'woocommerce'),update:Object(_.__)("Compare",'woocommerce')}}}]}]),C=Object(v.applyFilters)("woocommerce_admin_category_report_advanced_filters",{}),S=r(10),k=r.n(S),R=(r(276),r(253),r(34)),q=r(3),E=r(28),P=r(112),F=r(278),N=r(33),x=r(647),A=r(638),B=r(627);function I(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=p()(e);if(t){var c=p()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return d()(this,r)}}var V=function(e){u()(r,e);var t=I(r);function r(e){var o;return a()(this,r),(o=t.call(this,e)).getRowsContent=o.getRowsContent.bind(k()(o)),o.getSummary=o.getSummary.bind(k()(o)),o}return s()(r,[{key:"getHeadersContent",value:function(){return[{label:Object(_.__)("Category",'woocommerce'),key:"category",required:!0,isSortable:!0,isLeftAligned:!0},{label:Object(_.__)("Items Sold",'woocommerce'),key:"items_sold",required:!0,defaultSort:!0,isSortable:!0,isNumeric:!0},{label:Object(_.__)("Net Sales",'woocommerce'),key:"net_revenue",isSortable:!0,isNumeric:!0},{label:Object(_.__)("Products",'woocommerce'),key:"products_count",isSortable:!0,isNumeric:!0},{label:Object(_.__)("Orders",'woocommerce'),key:"orders_count",isSortable:!0,isNumeric:!0}]}},{key:"getRowsContent",value:function(e){var t=this,r=this.context,o=r.render,c=r.formatDecimal,n=(0,r.getCurrencyConfig)();return Object(q.map)(e,(function(e){var r=e.category_id,a=e.items_sold,i=e.net_revenue,s=e.products_count,l=e.orders_count,u=t.props,m=u.categories,d=u.query,b=m.get(r),p=Object(E.getPersistedQuery)(d);return[{display:Object(g.createElement)(x.a,{query:d,category:b,categories:m}),value:b&&b.name},{display:Object(F.formatValue)(n,"number",a),value:a},{display:o(i),value:c(i)},{display:b&&Object(g.createElement)(P.Link,{href:Object(E.getNewPath)(p,"/analytics/categories",{filter:"single_category",categories:b.id}),type:"wc-admin"},Object(F.formatValue)(n,"number",s)),value:s},{display:Object(F.formatValue)(n,"number",l),value:l}]}))}},{key:"getSummary",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e.items_sold,o=void 0===r?0:r,c=e.net_revenue,n=void 0===c?0:c,a=e.orders_count,i=void 0===a?0:a,s=this.context,l=s.formatAmount,u=s.getCurrencyConfig,m=u();return[{label:Object(_._n)("category","categories",t,'woocommerce'),value:Object(F.formatValue)(m,"number",t)},{label:Object(_._n)("item sold","items sold",o,'woocommerce'),value:Object(F.formatValue)(m,"number",o)},{label:Object(_.__)("net sales",'woocommerce'),value:l(n)},{label:Object(_._n)("order","orders",i,'woocommerce'),value:Object(F.formatValue)(m,"number",i)}]}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,r=e.filters,o=e.isRequesting,c=e.query,n={helpText:Object(_.__)("Check at least two categories below to compare",'woocommerce'),placeholder:Object(_.__)("Search by category name",'woocommerce')};return Object(g.createElement)(A.a,{compareBy:"categories",endpoint:"categories",getHeadersContent:this.getHeadersContent,getRowsContent:this.getRowsContent,getSummary:this.getSummary,summaryFields:["items_sold","net_revenue","orders_count"],isRequesting:o,itemIdField:"category_id",query:c,searchBy:"categories",labels:n,tableQuery:{orderby:c.orderby||"items_sold",order:c.order||"desc",extended_info:!0},title:Object(_.__)("Categories",'woocommerce'),columnPrefsKey:"categories_report_columns",filters:r,advancedFilters:t})}}]),r}(g.Component);V.contextType=B.a;var L=Object(R.compose)(Object(O.withSelect)((function(e,t){var r=t.isRequesting,o=t.query;if(r||o.search&&(!o.categories||!o.categories.length))return{};var c=e(N.ITEMS_STORE_NAME),n=c.getItems,a=c.getItemsError,i=c.isResolving,s={per_page:-1};return{categories:n("categories",s),isError:Boolean(a("categories",s)),isRequesting:i("getItems",["categories",s])}})))(V),T=r(635),M=r(633),D=r(636),H=r(659),Q=r(637),K=r(184);function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function U(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=p()(e);if(t){var c=p()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return d()(this,r)}}var z=function(e){u()(r,e);var t=U(r);function r(){return a()(this,r),t.apply(this,arguments)}return s()(r,[{key:"getChartMeta",value:function(){var e=this.props.query,t="compare-categories"===e.filter&&e.categories&&e.categories.split(",").length>1,r="single_category"===e.filter&&!!e.categories,o=t||r?"item-comparison":"time-comparison";return{isSingleCategoryView:r,itemsLabel:r?Object(_.__)("%d products",'woocommerce'):Object(_.__)("%d categories",'woocommerce'),mode:o}}},{key:"render",value:function(){var e=this.props,t=e.isRequesting,r=e.query,o=e.path,n=e.addCesSurveyForAnalytics,a=this.getChartMeta(),i=a.mode,s=a.itemsLabel,l=a.isSingleCategoryView,u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r);return"item-comparison"===i&&(u.segmentby=l?"product":"category"),w[0].filters.find((function(e){return"compare-categories"===e.value})).settings.onClick=n,Object(g.createElement)(g.Fragment,null,Object(g.createElement)(Q.a,{query:r,path:o,filters:w,advancedFilters:C,report:"categories"}),Object(g.createElement)(D.a,{charts:j,endpoint:"products",isRequesting:t,limitProperties:l?["products","categories"]:["categories"],query:u,selectedChart:Object(T.a)(r.chart,j),filters:w,advancedFilters:C,report:"categories"}),Object(g.createElement)(M.a,{charts:j,filters:w,advancedFilters:C,mode:i,endpoint:"products",limitProperties:l?["products","categories"]:["categories"],path:o,query:u,isRequesting:t,itemsLabel:s,selectedChart:Object(T.a)(r.chart,j)}),l?Object(g.createElement)(H.a,{isRequesting:t,query:u,baseSearchQuery:{filter:"single_category"},hideCompare:l,filters:w,advancedFilters:C}):Object(g.createElement)(L,{isRequesting:t,query:r,filters:w,advancedFilters:C}))}}]),r}(g.Component);z.propTypes={query:f.a.object.isRequired,path:f.a.string.isRequired};t.default=Object(O.withDispatch)((function(e){return{addCesSurveyForAnalytics:e(K.c).addCesSurveyForAnalytics}}))(z)},647:function(e,t,r){"use strict";r.d(t,"a",(function(){return O}));r(174);var o=r(13),c=r.n(o),n=r(14),a=r.n(n),i=r(16),s=r.n(i),l=r(17),u=r.n(l),m=r(7),d=r.n(m),b=r(0),p=(r(276),r(3)),g=r(5),y=r(112),f=r(28);function _(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=d()(e);if(t){var c=d()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return u()(this,r)}}var O=function(e){s()(r,e);var t=_(r);function r(){return c()(this,r),t.apply(this,arguments)}return a()(r,[{key:"getCategoryAncestorIds",value:function(e,t){for(var r=[],o=e.parent;o;)r.unshift(o),o=t.get(o).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,o=e.query,c=Object(f.getPersistedQuery)(o);return r?Object(b.createElement)("div",{className:"woocommerce-table__breadcrumbs"},this.getCategoryAncestors(r,t),Object(b.createElement)(y.Link,{href:Object(f.getNewPath)(c,"/analytics/categories",{filter:"single_category",categories:r.id}),type:"wc-admin"},r.name)):Object(b.createElement)(g.Spinner,null)}}]),r}(b.Component)},659:function(e,t,r){"use strict";r(174);var o=r(13),c=r.n(o),n=r(14),a=r.n(n),i=r(10),s=r.n(i),l=r(16),u=r.n(l),m=r(17),d=r.n(m),b=r(7),p=r.n(b),g=r(0),y=(r(132),r(276),r(117),r(277),r(118),r(253),r(2)),f=r(34),_=r(99),O=r(15),v=r(3),h=r(28),j=r(112),w=r(278),C=r(42),S=r(33),k=r(647),R=r(648),q=r(638),E=r(627);r(660);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=p()(e);if(t){var c=p()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return d()(this,r)}}var F=Object(C.g)("manageStock","no"),N=Object(C.g)("stockStatuses",{}),x=function(e){u()(r,e);var t=P(r);function r(){var e;return c()(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 a()(r,[{key:"getHeadersContent",value:function(){return[{label:Object(y.__)("Product Title",'woocommerce'),key:"product_name",required:!0,isLeftAligned:!0,isSortable:!0},{label:Object(y.__)("SKU",'woocommerce'),key:"sku",hiddenByDefault:!0,isSortable:!0},{label:Object(y.__)("Items Sold",'woocommerce'),key:"items_sold",required:!0,defaultSort:!0,isSortable:!0,isNumeric:!0},{label:Object(y.__)("Net Sales",'woocommerce'),screenReaderLabel:Object(y.__)("Net Sales",'woocommerce'),key:"net_revenue",required:!0,isSortable:!0,isNumeric:!0},{label:Object(y.__)("Orders",'woocommerce'),key:"orders_count",isSortable:!0,isNumeric:!0},{label:Object(y.__)("Category",'woocommerce'),key:"product_cat"},{label:Object(y.__)("Variations",'woocommerce'),key:"variations",isSortable:!0},"yes"===F?{label:Object(y.__)("Status",'woocommerce'),key:"stock_status"}:null,"yes"===F?{label:Object(y.__)("Stock",'woocommerce'),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,o=Object(h.getPersistedQuery)(r),c=this.context,n=c.render,a=c.formatDecimal,i=c.getCurrencyConfig,s=i();return Object(v.map)(t,(function(t){var c=t.product_id,i=t.items_sold,l=t.net_revenue,u=t.orders_count,m=t.extended_info||{},d=m.category_ids,b=m.low_stock_amount,p=m.manage_stock,f=m.sku,O=m.stock_status,v=m.stock_quantity,S=m.variations,q=void 0===S?[]:S,E=Object(_.decodeEntities)(m.name),P=Object(h.getNewPath)(o,"/analytics/orders",{filter:"advanced",product_includes:c}),x=Object(h.getNewPath)(o,"/analytics/products",{filter:"single_product",products:c}),A=e.props.categories,B=d&&d.map((function(e){return A.get(e)})).filter(Boolean)||[],I=Object(R.a)(O,v,b)?Object(g.createElement)(j.Link,{href:Object(C.f)("post.php?action=edit&post="+c),type:"wp-admin"},Object(y._x)("Low","Indication of a low quantity",'woocommerce')):N[O];return[{display:Object(g.createElement)(j.Link,{href:x,type:"wc-admin"},E),value:E},{display:f,value:f},{display:Object(w.formatValue)(s,"number",i),value:i},{display:n(l),value:a(l)},{display:Object(g.createElement)(j.Link,{href:P,type:"wc-admin"},u),value:u},{display:Object(g.createElement)("div",{className:"woocommerce-table__product-categories"},B[0]&&Object(g.createElement)(k.a,{category:B[0],categories:A}),B.length>1&&Object(g.createElement)(j.Tag,{label:Object(y.sprintf)(Object(y._x)("+%d more","categories",'woocommerce'),B.length-1),popoverContents:B.map((function(e){return Object(g.createElement)(k.a,{category:e,categories:A,key:e.id,query:r})}))})),value:B.map((function(e){return e.name})).join(", ")},{display:Object(w.formatValue)(s,"number",q.length),value:q.length},"yes"===F?{display:p?I:Object(y.__)("N/A",'woocommerce'),value:p?N[O]:null}:null,"yes"===F?{display:p?Object(w.formatValue)(s,"number",v):Object(y.__)("N/A",'woocommerce'),value:v}:null].filter(Boolean)}))}},{key:"getSummary",value:function(e){var t=e.products_count,r=void 0===t?0:t,o=e.items_sold,c=void 0===o?0:o,n=e.net_revenue,a=void 0===n?0:n,i=e.orders_count,s=void 0===i?0:i,l=this.context,u=l.formatAmount,m=(0,l.getCurrencyConfig)();return[{label:Object(y._n)("product","products",r,'woocommerce'),value:Object(w.formatValue)(m,"number",r)},{label:Object(y._n)("item sold","items sold",c,'woocommerce'),value:Object(w.formatValue)(m,"number",c)},{label:Object(y.__)("net sales",'woocommerce'),value:u(a)},{label:Object(y._n)("orders","orders",s,'woocommerce'),value:Object(w.formatValue)(m,"number",s)}]}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,r=e.baseSearchQuery,o=e.filters,c=e.hideCompare,n=e.isRequesting,a=e.query,i={helpText:Object(y.__)("Check at least two products below to compare",'woocommerce'),placeholder:Object(y.__)("Search by product name or SKU",'woocommerce')};return Object(g.createElement)(q.a,{compareBy:c?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:n,labels:i,query:a,searchBy:"products",baseSearchQuery:r,tableQuery:{orderby:a.orderby||"items_sold",order:a.order||"desc",extended_info:!0,segmentby:a.segmentby},title:Object(y.__)("Products",'woocommerce'),columnPrefsKey:"products_report_columns",filters:o,advancedFilters:t})}}]),r}(g.Component);x.contextType=E.a,t.a=Object(f.compose)(Object(O.withSelect)((function(e,t){var r=t.query;if(t.isRequesting||r.search&&(!r.products||!r.products.length))return{};var o=e(S.ITEMS_STORE_NAME),c=o.getItems,n=o.getItemsError,a=o.isResolving,i={per_page:-1};return{categories:c("categories",i),isError:Boolean(n("categories",i)),isRequesting:a("getItems",["categories",i])}})))(x)},660:function(e,t,r){}}]);
packages/woocommerce-admin/dist/chunks/analytics-report-coupons.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[11],{625:function(e,t,r){"use strict";r.r(t);r(174),r(83),r(125),r(150),r(126),r(151);var n=r(4),a=r.n(n),o=r(13),c=r.n(o),i=r(14),u=r.n(i),s=r(16),l=r.n(s),m=r(17),d=r.n(m),p=r(7),f=r.n(p),y=r(0),b=(r(131),r(116),r(239),r(328),r(1)),v=r.n(b),g=r(2),h=r(15),O=r(671),_=r(10),j=r.n(_),w=r(3),C=r(111),R=r(28),q=r(283),D=r(42),k=r(57),E=r(647),P=r(636);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f()(e);if(t){var a=f()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return d()(this,r)}}var F=function(e){l()(r,e);var t=S(r);function r(){var e;return c()(this,r),(e=t.call(this)).getHeadersContent=e.getHeadersContent.bind(j()(e)),e.getRowsContent=e.getRowsContent.bind(j()(e)),e.getSummary=e.getSummary.bind(j()(e)),e}return u()(r,[{key:"getHeadersContent",value:function(){return[{label:Object(g.__)("Coupon Code",'woocommerce'),key:"code",required:!0,isLeftAligned:!0,isSortable:!0},{label:Object(g.__)("Orders",'woocommerce'),key:"orders_count",required:!0,defaultSort:!0,isSortable:!0,isNumeric:!0},{label:Object(g.__)("Amount Discounted",'woocommerce'),key:"amount",isSortable:!0,isNumeric:!0},{label:Object(g.__)("Created",'woocommerce'),key:"created"},{label:Object(g.__)("Expires",'woocommerce'),key:"expires"},{label:Object(g.__)("Type",'woocommerce'),key:"type"}]}},{key:"getRowsContent",value:function(e){var t=this,r=this.props.query,n=Object(R.getPersistedQuery)(r),a=Object(D.g)("dateFormat",k.defaultTableDateFormat),o=this.context,c=o.formatAmount,i=o.formatDecimal,u=o.getCurrencyConfig;return Object(w.map)(e,(function(e){var r=e.amount,o=e.coupon_id,s=e.orders_count,l=e.extended_info||{},m=l.code,d=l.date_created,p=l.date_expires,f=l.discount_type,b=o>0?Object(R.getNewPath)(n,"/analytics/coupons",{filter:"single_coupon",coupons:o}):null,v=null===b?m:Object(y.createElement)(C.Link,{href:b,type:"wc-admin"},m),h=o>0?Object(R.getNewPath)(n,"/analytics/orders",{filter:"advanced",coupon_includes:o}):null;return[{display:v,value:m},{display:null===h?s:Object(y.createElement)(C.Link,{href:h,type:"wc-admin"},Object(q.formatValue)(u(),"number",s)),value:s},{display:c(r),value:i(r)},{display:d?Object(y.createElement)(C.Date,{date:d,visibleFormat:a}):Object(g.__)("N/A",'woocommerce'),value:d},{display:p?Object(y.createElement)(C.Date,{date:p,visibleFormat:a}):Object(g.__)("N/A",'woocommerce'),value:p},{display:t.getCouponType(f),value:f}]}))}},{key:"getSummary",value:function(e){var t=e.coupons_count,r=void 0===t?0:t,n=e.orders_count,a=void 0===n?0:n,o=e.amount,c=void 0===o?0:o,i=this.context,u=i.formatAmount,s=(0,i.getCurrencyConfig)();return[{label:Object(g._n)("coupon","coupons",r,'woocommerce'),value:Object(q.formatValue)(s,"number",r)},{label:Object(g._n)("order","orders",a,'woocommerce'),value:Object(q.formatValue)(s,"number",a)},{label:Object(g.__)("amount discounted",'woocommerce'),value:u(c)}]}},{key:"getCouponType",value:function(e){return{percent:Object(g.__)("Percentage",'woocommerce'),fixed_cart:Object(g.__)("Fixed cart",'woocommerce'),fixed_product:Object(g.__)("Fixed product",'woocommerce')}[e]||Object(g.__)("N/A",'woocommerce')}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,r=e.filters,n=e.isRequesting,a=e.query;return Object(y.createElement)(E.a,{compareBy:"coupons",endpoint:"coupons",getHeadersContent:this.getHeadersContent,getRowsContent:this.getRowsContent,getSummary:this.getSummary,summaryFields:["coupons_count","orders_count","amount"],isRequesting:n,itemIdField:"coupon_id",query:a,searchBy:"coupons",tableQuery:{orderby:a.orderby||"orders_count",order:a.order||"desc",extended_info:!0},title:Object(g.__)("Coupons",'woocommerce'),columnPrefsKey:"coupons_report_columns",filters:r,advancedFilters:t})}}]),r}(y.Component);F.contextType=P.a;var T=F,A=r(644),x=r(642),N=r(645),L=r(646),M=r(183);function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f()(e);if(t){var a=f()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return d()(this,r)}}var I=function(e){l()(r,e);var t=B(r);function r(){return c()(this,r),t.apply(this,arguments)}return u()(r,[{key:"getChartMeta",value:function(){var e=this.props.query,t="compare-coupons"===e.filter&&e.coupons&&e.coupons.split(",").length>1?"item-comparison":"time-comparison";return{itemsLabel:Object(g.__)("%d coupons",'woocommerce'),mode:t}}},{key:"render",value:function(){var e=this.props,t=e.isRequesting,r=e.query,n=e.path,o=e.addCesSurveyForAnalytics,c=this.getChartMeta(),i=c.mode,u=c.itemsLabel;O.c[0].filters.find((function(e){return"compare-coupons"===e.value})).settings.onClick=o;var s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r);return"item-comparison"===i&&(s.segmentby="coupon"),Object(y.createElement)(y.Fragment,null,Object(y.createElement)(L.a,{query:r,path:n,filters:O.c,advancedFilters:O.a,report:"coupons"}),Object(y.createElement)(N.a,{charts:O.b,endpoint:"coupons",isRequesting:t,query:s,selectedChart:Object(A.a)(r.chart,O.b),filters:O.c,advancedFilters:O.a}),Object(y.createElement)(x.a,{charts:O.b,filters:O.c,advancedFilters:O.a,mode:i,endpoint:"coupons",path:n,query:s,isRequesting:t,itemsLabel:u,selectedChart:Object(A.a)(r.chart,O.b)}),Object(y.createElement)(T,{isRequesting:t,query:r,filters:O.c,advancedFilters:O.a}))}}]),r}(y.Component);I.propTypes={query:v.a.object.isRequired};t.default=Object(h.withDispatch)((function(e){return{addCesSurveyForAnalytics:e(M.c).addCesSurveyForAnalytics}}))(I)},638: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 p})),r.d(t,"c",(function(){return f})),r.d(t,"d",(function(){return y})),r.d(t,"f",(function(){return b})),r.d(t,"h",(function(){return v})),r.d(t,"g",(function(){return g}));r(113),r(157),r(282),r(115),r(281);var n=r(38),a=r(48),o=r.n(a),c=r(3),i=r(28),u=r(33),s=r(42),l=r(641);function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.identity;return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,c="function"==typeof e?e(a):e,u=Object(i.getIdsFromQuery)(r);if(u.length<1)return Promise.resolve([]);var s={include:u.join(","),per_page:u.length};return o()({path:Object(n.addQueryArgs)(c,s)}).then((function(e){return e.map(t)}))}}m(u.NAMESPACE+"/products/attributes",(function(e){return{key:e.id,label:e.name}}));var d=m(u.NAMESPACE+"/products/categories",(function(e){return{key:e.id,label:e.name}})),p=m(u.NAMESPACE+"/coupons",(function(e){return{key:e.id,label:e.code}})),f=m(u.NAMESPACE+"/customers",(function(e){return{key:e.id,label:e.name}})),y=m(u.NAMESPACE+"/products",(function(e){return{key:e.id,label:e.name}})),b=m(u.NAMESPACE+"/taxes",(function(e){return{key:e.id,label:Object(l.a)(e)}}));function v(e){var t=e.attributes,r=e.name,n=Object(s.g)("variationTitleAttributesSeparator"," - ");if(r.indexOf(n)>-1)return r;var a=t.map((function(e){return e.option})).join(", ");return a?r+n+a:r}var g=m((function(e){var t=e.products;return t?u.NAMESPACE+"/products/".concat(t,"/variations"):u.NAMESPACE+"/variations"}),(function(e){return{key:e.id,label:v(e)}}))},639:function(e,t,r){"use strict";var n=r(26),a=r(285).trim;n({target:"String",proto:!0,forced:r(640)("trim")},{trim:function(){return a(this)}})},640:function(e,t,r){var n=r(12),a=r(286);e.exports=function(e){return n((function(){return!!a[e]()||"​…᠎"!="​…᠎"[e]()||a[e].name!==e}))}},641:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r(282),r(131),r(115),r(281),r(639),r(113),r(258);var n=r(2);function a(e){return[e.country,e.state,e.name||Object(n.__)("TAX",'woocommerce'),e.priority].map((function(e){return e.toString().toUpperCase().trim()})).filter(Boolean).join("-")}},642:function(e,t,r){"use strict";r(174),r(83),r(125),r(131),r(150),r(151);var n=r(4),a=r.n(n),o=r(13),c=r.n(o),i=r(14),u=r.n(i),s=r(16),l=r.n(s),m=r(17),d=r.n(m),p=r(7),f=r.n(p),y=r(0),b=(r(115),r(126),r(127),r(116),r(255),r(2)),v=r(34),g=r(184),h=r(15),O=r(3),_=r(1),j=r.n(_),w=r(111),C=r(33),R=r(57),q=r(636),D=r(637),k=(r(284),r(107),r(204),r(28));function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(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){a()(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 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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f()(e);if(t){var a=f()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return d()(this,r)}}var F=function(e){l()(r,e);var t=S(r);function r(){return c()(this,r),t.apply(this,arguments)}return u()(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 n=t[e.segment_label]?e.segment_label+" (#"+e.segment_id+")":e.segment_label;t[e.segment_id]={label:n,value:e.subtotals[r.key]||0}}})),P({date:Object(g.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,n=e.secondaryData,a=e.selectedChart,o=e.defaultDateRange,c=Object(R.getIntervalForQuery)(t),i=Object(R.getCurrentDates)(t,o),u=i.primary,s=i.secondary;return r.data.intervals.map((function(e,r){var o=Object(R.getPreviousDate)(e.date_start,u.after,s.after,t.compare,c),i=n.data.intervals[r];return{date:Object(g.format)("Y-m-d\\TH:i:s",e.date_start),primary:{label:"".concat(u.label," (").concat(u.range,")"),labelDate:e.date_start,value:e.subtotals[a.key]||0},secondary:{label:"".concat(s.label," (").concat(s.range,")"),labelDate:o.format("YYYY-MM-DD HH:mm:ss"),value:i&&i.subtotals[a.key]||0}}}))}},{key:"getTimeChartTotals",value:function(){var e=this.props,t=e.primaryData,r=e.secondaryData,n=e.selectedChart;return{primary:Object(O.get)(t,["data","totals",n.key],null),secondary:Object(O.get)(r,["data","totals",n.key],null)}}},{key:"renderChart",value:function(e,t,r,n){var a=this.props,o=a.emptySearchResults,c=a.filterParam,i=a.interactiveLegend,u=a.itemsLabel,s=a.legendPosition,l=a.path,m=a.query,d=a.selectedChart,p=a.showHeaderControls,f=a.primaryData,v=Object(R.getIntervalForQuery)(m),g=Object(R.getAllowedIntervalsForQuery)(m),h=Object(R.getDateFormatsForInterval)(v,f.data.intervals.length),O=o?Object(b.__)("No data for the current search",'woocommerce'):Object(b.__)("No data for the selected date range",'woocommerce'),_=this.context,j=_.formatAmount,q=_.getCurrencyConfig;return Object(y.createElement)(w.Chart,{allowedIntervals:g,data:r,dateParser:"%Y-%m-%dT%H:%M:%S",emptyMessage:O,filterParam:c,interactiveLegend:i,interval:v,isRequesting:t,itemsLabel:u,legendPosition:s,legendTotals:n,mode:e,path:l,query:m,screenReaderFormat:h.screenReaderFormat,showHeaderControls:p,title:d.label,tooltipLabelFormat:h.tooltipLabelFormat,tooltipTitle:"time-comparison"===e&&d.label||null,tooltipValueFormat:Object(C.getTooltipValueFormat)(d.type,j),chartType:Object(R.getChartTypeForQuery)(m),valueType:d.type,xFormat:h.xFormat,x2Format:h.x2Format,currency:q()})}},{key:"renderItemComparison",value:function(){var e=this.props,t=e.isRequesting,r=e.primaryData;if(r.isError)return Object(y.createElement)(D.a,{isError:!0});var n=t||r.isRequesting,a=this.getItemChartData();return this.renderChart("item-comparison",n,a)}},{key:"renderTimeComparison",value:function(){var e=this.props,t=e.isRequesting,r=e.primaryData,n=e.secondaryData;if(!r||r.isError||n.isError)return Object(y.createElement)(D.a,{isError:!0});var a=t||r.isRequesting||n.isRequesting,o=this.getTimeChartData(),c=this.getTimeChartTotals();return this.renderChart("time-comparison",a,o,c)}},{key:"render",value:function(){return"item-comparison"===this.props.mode?this.renderItemComparison():this.renderTimeComparison()}}]),r}(y.Component);F.contextType=q.a,F.propTypes={filters:j.a.array,isRequesting:j.a.bool,itemsLabel:j.a.string,limitProperties:j.a.array,mode:j.a.string,path:j.a.string.isRequired,primaryData:j.a.object,query:j.a.object.isRequired,secondaryData:j.a.object,selectedChart:j.a.shape({key:j.a.string.isRequired,label:j.a.string.isRequired,order:j.a.oneOf(["asc","desc"]),orderby:j.a.string,type:j.a.oneOf(["average","number","currency"]).isRequired}).isRequired},F.defaultProps={isRequesting:!1,primaryData:{data:{intervals:[]},isError:!1,isRequesting:!1},secondaryData:{data:{intervals:[]},isError:!1,isRequesting:!1}};t.a=Object(v.compose)(Object(h.withSelect)((function(e,t){var r=t.charts,n=t.endpoint,a=t.filters,o=t.isRequesting,c=t.limitProperties,i=t.query,u=t.advancedFilters,s=c||[n],l=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||0===t.length)return null;var a=t.slice(0),o=a.pop();if(o.showFilters(r,n)){var c=Object(k.flattenFilters)(o.filters),i=r[o.param]||o.defaultValue||"all";return Object(O.find)(c,{value:i})}return e(a,r,n)}(a,i),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,i)||"time-comparison",p=e(C.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,f={mode:d,filterParam:m,defaultDateRange:p};if(o)return f;var y=s.some((function(e){return i[e]&&i[e].length}));if(i.search&&!y)return P(P({},f),{},{emptySearchResults:!0});var b=r&&r.map((function(e){return e.key})),v=Object(C.getReportChartData)({endpoint:n,dataType:"primary",query:i,select:e,limitBy:s,filters:a,advancedFilters:u,defaultDateRange:p,fields:b});if("item-comparison"===d)return P(P({},f),{},{primaryData:v});var g=Object(C.getReportChartData)({endpoint:n,dataType:"secondary",query:i,select:e,limitBy:s,filters:a,advancedFilters:u,defaultDateRange:p,fields:b});return P(P({},f),{},{primaryData:v,secondaryData:g})})))(F)},644:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(3);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object(n.find)(t,{key:e});return r||t[0]}},645:function(e,t,r){"use strict";r(174);var n=r(13),a=r.n(n),o=r(14),c=r.n(o),i=r(16),u=r.n(i),s=r(17),l=r.n(s),m=r(7),d=r.n(m),p=r(0),f=(r(115),r(116),r(255),r(2)),y=r(34),b=r(15),v=r(1),g=r.n(v),h=r(28),O=r(111),_=r(283),j=r(33),w=r(57),C=r(44),R=r(637),q=r(636);function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d()(e);if(t){var a=d()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l()(this,r)}}var k=function(e){u()(r,e);var t=D(r);function r(){return a()(this,r),t.apply(this,arguments)}return c()(r,[{key:"formatVal",value:function(e,t){var r=this.context,n=r.formatAmount,a=r.getCurrencyConfig;return"currency"===t?n(e):Object(_.formatValue)(a(),t,e)}},{key:"getValues",value:function(e,t){var r=this.props,n=r.emptySearchResults,a=r.summaryData.totals,o=a.primary?a.primary[e]:0,c=a.secondary?a.secondary[e]:0,i=n?0:o,u=n?0:c;return{delta:Object(_.calculateDelta)(i,u),prevValue:this.formatVal(u,t),value:this.formatVal(i,t)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.charts,n=t.query,a=t.selectedChart,o=t.summaryData,c=t.endpoint,i=t.report,u=t.defaultDateRange,s=o.isError,l=o.isRequesting;if(s)return Object(p.createElement)(R.a,{isError:!0});if(l)return Object(p.createElement)(O.SummaryListPlaceholder,{numberOfItems:r.length});var m=Object(w.getDateParamsFromQuery)(n,u).compare;return Object(p.createElement)(O.SummaryList,null,(function(t){var n=t.onToggle;return r.map((function(t){var r=t.key,o=t.order,u=t.orderby,s=t.label,l=t.type,d={chart:r};u&&(d.orderby=u),o&&(d.order=o);var y=Object(h.getNewPath)(d),b=a.key===r,v=e.getValues(r,l),g=v.delta,_=v.prevValue,j=v.value;return Object(p.createElement)(O.SummaryNumber,{key:r,delta:g,href:y,label:s,prevLabel:"previous_period"===m?Object(f.__)("Previous Period:",'woocommerce'):Object(f.__)("Previous Year:",'woocommerce'),prevValue:_,selected:b,value:j,onLinkClickCallback:function(){n&&n(),Object(C.recordEvent)("analytics_chart_tab_click",{report:i||c,key:r})}})}))}))}}]),r}(p.Component);k.propTypes={charts:g.a.array.isRequired,endpoint:g.a.string.isRequired,limitProperties:g.a.array,query:g.a.object.isRequired,selectedChart:g.a.shape({key:g.a.string.isRequired,label:g.a.string.isRequired,order:g.a.oneOf(["asc","desc"]),orderby:g.a.string,type:g.a.oneOf(["average","number","currency"]).isRequired}).isRequired,summaryData:g.a.object,report:g.a.string},k.defaultProps={summaryData:{totals:{primary:{},secondary:{}},isError:!1}},k.contextType=q.a,t.a=Object(y.compose)(Object(b.withSelect)((function(e,t){var r=t.charts,n=t.endpoint,a=t.limitProperties,o=t.query,c=t.filters,i=t.advancedFilters,u=a||[n],s=u.some((function(e){return o[e]&&o[e].length}));if(o.search&&!s)return{emptySearchResults:!0};var l=r&&r.map((function(e){return e.key})),m=e(j.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range;return{summaryData:Object(j.getSummaryNumbers)({endpoint:n,query:o,select:e,limitBy:u,filters:c,advancedFilters:i,defaultDateRange:m,fields:l}),defaultDateRange:m}})))(k)},671:function(e,t,r){"use strict";r.d(t,"b",(f