Version Description
- 2020-12-08 =
- Tweak - Remove Stripe connect functionality.
- Tweak - Remove unused method in shipping settings view.
- Fix - Breaking behavior on account registration page.
- Add - Allows registration of additional accounts.
- Tweak - Carrier description on dynamic carrier registration form.
- Fix - Adjust documentation links.
Download this release
Release Info
Developer | bborman22 |
Plugin | WooCommerce Services |
Version | 1.25.4 |
Comparing to | |
See all releases |
Code changes from version 1.25.3 to 1.25.4
- classes/class-wc-connect-api-client.php +3 -41
- classes/class-wc-connect-nux.php +2 -41
- classes/class-wc-connect-options.php +0 -4
- classes/class-wc-connect-settings-pages.php +10 -12
- classes/class-wc-connect-stripe.php +0 -367
- classes/class-wc-rest-connect-shipping-carrier-controller.php +2 -1
- classes/class-wc-rest-connect-stripe-deauthorize-controller.php +0 -40
- classes/class-wc-rest-connect-stripe-oauth-connect-controller.php +0 -42
- classes/class-wc-rest-connect-stripe-oauth-init-controller.php +0 -41
- dist/chunks/{95d9b4a639eff8232c8f.css → 1869a3780c502197dd0f.css} +0 -0
- dist/chunks/1869a3780c502197dd0f.min.js +1 -0
- dist/chunks/{15459192ffb85bb17e1f.min.js → 279e3e5e46ff6d7bc8b4.min.js} +1 -1
- dist/chunks/2e77eac33ceac334714c.min.js +0 -1
- dist/chunks/{ed92c4e90d7497b17194.css → 39d5dfddc1ddf32f1a81.css} +0 -0
- dist/chunks/39d5dfddc1ddf32f1a81.min.js +1 -0
- dist/chunks/{567f79f890201df88608.min.js → 4135317669c63461e19b.min.js} +1 -1
- dist/chunks/41b209a14009d245d090.min.js +1 -0
- dist/chunks/46fbde408db6dccfb3e8.min.js +0 -1
- dist/chunks/{0a0baee87f9c944b1a4e.css → 4d617f7576a645addec8.css} +0 -0
- dist/chunks/{0a0baee87f9c944b1a4e.min.js → 4d617f7576a645addec8.min.js} +1 -1
- dist/chunks/{e4877a342c19b83fbeca.min.js → 4ea3465c8c3adacaf63d.min.js} +1 -1
- dist/chunks/{2e77eac33ceac334714c.css → 52784f6495bf581c7d0f.css} +0 -0
- dist/chunks/52784f6495bf581c7d0f.min.js +1 -0
- dist/chunks/{438aea1df434d9920a53.min.js → 5a0f6593dcb238369cda.min.js} +1 -1
- dist/chunks/{849c6c58eb07fc01b80d.min.js → 660db9b28c7fc73a7115.min.js} +1 -1
classes/class-wc-connect-api-client.php
CHANGED
@@ -59,8 +59,8 @@ if ( ! class_exists( 'WC_Connect_API_Client' ) ) {
|
|
59 |
* @return bool|WP_Error
|
60 |
*/
|
61 |
public function validate_service_settings( $service_slug, $service_settings ) {
|
62 |
-
// Make sure the service slug only contains underscores or letters
|
63 |
-
if ( 1 === preg_match( '/[^a-z_]/i', $service_slug ) ) {
|
64 |
return new WP_Error( 'invalid_service_slug', __( 'Invalid WooCommerce Shipping & Tax service slug provided', 'woocommerce-services' ) );
|
65 |
}
|
66 |
|
@@ -319,7 +319,7 @@ if ( ! class_exists( 'WC_Connect_API_Client' ) ) {
|
|
319 |
public function get_wccom_subscriptions( $body ) {
|
320 |
return $this->request( 'POST', '/subscriptions', $body );
|
321 |
}
|
322 |
-
|
323 |
/**
|
324 |
* Get all carriers we support for registration. This end point
|
325 |
* returns a list of "fields" that we use to register the carrier
|
@@ -366,44 +366,6 @@ if ( ! class_exists( 'WC_Connect_API_Client' ) ) {
|
|
366 |
return $new_is_alive;
|
367 |
}
|
368 |
|
369 |
-
public function get_stripe_account_details() {
|
370 |
-
return $this->request( 'GET', '/stripe/account' );
|
371 |
-
}
|
372 |
-
|
373 |
-
public function get_stripe_oauth_init( $return_url ) {
|
374 |
-
$address = $this->wc_connect_loader->get_service_settings_store()->get_origin_address();
|
375 |
-
$current_user = wp_get_current_user();
|
376 |
-
|
377 |
-
$request = array(
|
378 |
-
'returnUrl' => $return_url,
|
379 |
-
'businessData' => array(
|
380 |
-
'url' => get_site_url(),
|
381 |
-
'country' => $address['country'],
|
382 |
-
'phone' => $address['phone'],
|
383 |
-
'business_name' => $address['company'],
|
384 |
-
'first_name' => $current_user->user_firstname,
|
385 |
-
'last_name' => $current_user->user_lastname,
|
386 |
-
'street_address' => $address['address'],
|
387 |
-
'city' => $address['city'],
|
388 |
-
'state' => $address['state'],
|
389 |
-
'zip' => $address['postcode'],
|
390 |
-
'currency' => get_woocommerce_currency(),
|
391 |
-
),
|
392 |
-
);
|
393 |
-
return $this->request( 'POST', '/stripe/oauth-init', $request );
|
394 |
-
}
|
395 |
-
|
396 |
-
public function get_stripe_oauth_keys( $code ) {
|
397 |
-
$request = array(
|
398 |
-
'code' => $code,
|
399 |
-
);
|
400 |
-
return $this->request( 'POST', '/stripe/oauth-keys', $request );
|
401 |
-
}
|
402 |
-
|
403 |
-
public function deauthorize_stripe_account() {
|
404 |
-
return $this->request( 'POST', '/stripe/account/deauthorize' );
|
405 |
-
}
|
406 |
-
|
407 |
/**
|
408 |
* Sends a request to the WooCommerce Shipping & Tax Server
|
409 |
*
|
59 |
* @return bool|WP_Error
|
60 |
*/
|
61 |
public function validate_service_settings( $service_slug, $service_settings ) {
|
62 |
+
// Make sure the service slug only contains dashes, underscores or letters
|
63 |
+
if ( 1 === preg_match( '/[^a-z_\-]/i', $service_slug ) ) {
|
64 |
return new WP_Error( 'invalid_service_slug', __( 'Invalid WooCommerce Shipping & Tax service slug provided', 'woocommerce-services' ) );
|
65 |
}
|
66 |
|
319 |
public function get_wccom_subscriptions( $body ) {
|
320 |
return $this->request( 'POST', '/subscriptions', $body );
|
321 |
}
|
322 |
+
|
323 |
/**
|
324 |
* Get all carriers we support for registration. This end point
|
325 |
* returns a list of "fields" that we use to register the carrier
|
366 |
return $new_is_alive;
|
367 |
}
|
368 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
/**
|
370 |
* Sends a request to the WooCommerce Shipping & Tax Server
|
371 |
*
|
classes/class-wc-connect-nux.php
CHANGED
@@ -342,37 +342,6 @@ if ( ! class_exists( 'WC_Connect_Nux' ) ) {
|
|
342 |
return false;
|
343 |
}
|
344 |
|
345 |
-
/**
|
346 |
-
* https://stripe.com/global
|
347 |
-
*/
|
348 |
-
public function is_stripe_supported_country( $country_code ) {
|
349 |
-
$stripe_supported_countries = array(
|
350 |
-
'AU',
|
351 |
-
'AT',
|
352 |
-
'BE',
|
353 |
-
'CA',
|
354 |
-
'DK',
|
355 |
-
'FI',
|
356 |
-
'FR',
|
357 |
-
'DE',
|
358 |
-
'HK',
|
359 |
-
'IE',
|
360 |
-
'JP',
|
361 |
-
'LU',
|
362 |
-
'NL',
|
363 |
-
'NZ',
|
364 |
-
'NO',
|
365 |
-
'SG',
|
366 |
-
'ES',
|
367 |
-
'SE',
|
368 |
-
'CH',
|
369 |
-
'GB',
|
370 |
-
'US',
|
371 |
-
);
|
372 |
-
|
373 |
-
return in_array( $country_code, $stripe_supported_countries );
|
374 |
-
}
|
375 |
-
|
376 |
/**
|
377 |
* https://developers.taxjar.com/api/reference/#countries
|
378 |
*/
|
@@ -392,28 +361,20 @@ if ( ! class_exists( 'WC_Connect_Nux' ) ) {
|
|
392 |
public function should_display_nux_notice_for_current_store_locale() {
|
393 |
$store_country = WC()->countries->get_base_country();
|
394 |
|
395 |
-
$supports_stripe = $this->is_stripe_supported_country( $store_country );
|
396 |
$supports_taxes = $this->is_taxjar_supported_country( $store_country );
|
397 |
$supports_shipping = in_array( $store_country, array( 'US', 'CA' ) );
|
398 |
|
399 |
-
return $supports_shipping || $
|
400 |
}
|
401 |
|
402 |
public function get_feature_list_for_country( $country ) {
|
403 |
$feature_list = false;
|
404 |
-
$supports_stripe = $this->is_stripe_supported_country( $country );
|
405 |
$supports_taxes = $this->is_taxjar_supported_country( $country );
|
406 |
$supports_labels = ( 'US' === $country );
|
407 |
|
408 |
-
$is_stripe_active = is_plugin_active( 'woocommerce-gateway-stripe/woocommerce-gateway-stripe.php' );
|
409 |
-
$stripe_settings = get_option( 'woocommerce_stripe_settings', array() );
|
410 |
-
$is_stripe_ready = $is_stripe_active && isset( $stripe_settings['enabled'] ) && 'yes' === $stripe_settings['enabled'];
|
411 |
-
|
412 |
$is_ppec_active = is_plugin_active( 'woocommerce-gateway-paypal-express-checkout/woocommerce-gateway-paypal-express-checkout.php' );
|
413 |
$ppec_settings = get_option( 'woocommerce_ppec_paypal_settings', array() );
|
414 |
-
$
|
415 |
-
|
416 |
-
$supports_payments = ( $supports_stripe && $is_stripe_ready ) || $is_ppec_ready;
|
417 |
|
418 |
if ( $supports_payments && $supports_taxes && $supports_labels ) {
|
419 |
$feature_list = __( 'automated tax calculation, shipping label printing, and smoother payment setup', 'woocommerce-services' );
|
342 |
return false;
|
343 |
}
|
344 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
/**
|
346 |
* https://developers.taxjar.com/api/reference/#countries
|
347 |
*/
|
361 |
public function should_display_nux_notice_for_current_store_locale() {
|
362 |
$store_country = WC()->countries->get_base_country();
|
363 |
|
|
|
364 |
$supports_taxes = $this->is_taxjar_supported_country( $store_country );
|
365 |
$supports_shipping = in_array( $store_country, array( 'US', 'CA' ) );
|
366 |
|
367 |
+
return $supports_shipping || $supports_taxes;
|
368 |
}
|
369 |
|
370 |
public function get_feature_list_for_country( $country ) {
|
371 |
$feature_list = false;
|
|
|
372 |
$supports_taxes = $this->is_taxjar_supported_country( $country );
|
373 |
$supports_labels = ( 'US' === $country );
|
374 |
|
|
|
|
|
|
|
|
|
375 |
$is_ppec_active = is_plugin_active( 'woocommerce-gateway-paypal-express-checkout/woocommerce-gateway-paypal-express-checkout.php' );
|
376 |
$ppec_settings = get_option( 'woocommerce_ppec_paypal_settings', array() );
|
377 |
+
$supports_payments = $is_ppec_active && ( ! isset( $ppec_settings['enabled'] ) || 'yes' === $ppec_settings['enabled'] );
|
|
|
|
|
378 |
|
379 |
if ( $supports_payments && $supports_taxes && $supports_labels ) {
|
380 |
$feature_list = __( 'automated tax calculation, shipping label printing, and smoother payment setup', 'woocommerce-services' );
|
classes/class-wc-connect-options.php
CHANGED
@@ -48,11 +48,7 @@ if ( ! class_exists( 'WC_Connect_Options' ) ) {
|
|
48 |
'shipping_methods_migrated',
|
49 |
'should_display_nux_after_jp_cxn_banner',
|
50 |
'needs_tax_environment_setup',
|
51 |
-
'stripe_state',
|
52 |
-
'banner_stripe',
|
53 |
'banner_ppec',
|
54 |
-
'stripe_keys',
|
55 |
-
'stripe_status_migrated',
|
56 |
);
|
57 |
}
|
58 |
|
48 |
'shipping_methods_migrated',
|
49 |
'should_display_nux_after_jp_cxn_banner',
|
50 |
'needs_tax_environment_setup',
|
|
|
|
|
51 |
'banner_ppec',
|
|
|
|
|
52 |
);
|
53 |
}
|
54 |
|
classes/class-wc-connect-settings-pages.php
CHANGED
@@ -90,24 +90,22 @@ if ( ! class_exists( 'WC_Connect_Settings_Pages' ) ) {
|
|
90 |
$extra_args['order_id'] = $_GET['from_order'];
|
91 |
$extra_args['order_href'] = get_edit_post_link( $_GET['from_order'] );
|
92 |
}
|
93 |
-
|
|
|
94 |
$extra_args['carrier'] = $_GET['carrier'];
|
95 |
$extra_args['continents'] = $this->continents->get();
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
$translated_carrier_name = __( 'DHL Express', 'woocommerce-services' );
|
103 |
-
default:
|
104 |
-
break;
|
105 |
}
|
106 |
-
if ( $
|
107 |
?>
|
108 |
<h2>
|
109 |
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-settings&tab=shipping§ion=woocommerce-services-settings' ) ); ?>"><?php esc_html_e( 'WooCommerce Shipping & Tax', 'woocommerce-services' ); ?></a> >
|
110 |
-
<span><?php echo esc_html( $
|
111 |
</h2>
|
112 |
<?php
|
113 |
}
|
90 |
$extra_args['order_id'] = $_GET['from_order'];
|
91 |
$extra_args['order_href'] = get_edit_post_link( $_GET['from_order'] );
|
92 |
}
|
93 |
+
|
94 |
+
if ( !empty( $_GET['carrier'] ) ) {
|
95 |
$extra_args['carrier'] = $_GET['carrier'];
|
96 |
$extra_args['continents'] = $this->continents->get();
|
97 |
+
|
98 |
+
$carrier_information = [];
|
99 |
+
if( $extra_args[ 'carriers' ] ) {
|
100 |
+
$carrier_information = array_values( array_filter( $extra_args[ 'carriers' ], function( $carrier ) {
|
101 |
+
return $carrier->type === $_GET['carrier'];
|
102 |
+
} ) );
|
|
|
|
|
|
|
103 |
}
|
104 |
+
if ( !empty( $carrier_information ) ) {
|
105 |
?>
|
106 |
<h2>
|
107 |
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-settings&tab=shipping§ion=woocommerce-services-settings' ) ); ?>"><?php esc_html_e( 'WooCommerce Shipping & Tax', 'woocommerce-services' ); ?></a> >
|
108 |
+
<span><?php echo esc_html( $carrier_information[0]->carrier ); ?></span>
|
109 |
</h2>
|
110 |
<?php
|
111 |
}
|
classes/class-wc-connect-stripe.php
DELETED
@@ -1,367 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
exit;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( ! class_exists( 'WC_Connect_Stripe' ) ) {
|
8 |
-
|
9 |
-
class WC_Connect_Stripe {
|
10 |
-
|
11 |
-
/**
|
12 |
-
* @var WC_Connect_API_Client
|
13 |
-
*/
|
14 |
-
private $api;
|
15 |
-
|
16 |
-
/**
|
17 |
-
* @var WC_Connect_Options
|
18 |
-
*/
|
19 |
-
private $options;
|
20 |
-
|
21 |
-
/**
|
22 |
-
* @var WC_Connect_Logger
|
23 |
-
*/
|
24 |
-
private $logger;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @var WC_Connect_Nux
|
28 |
-
*/
|
29 |
-
private $nux;
|
30 |
-
|
31 |
-
const STATE_VAR_NAME = 'stripe_state';
|
32 |
-
const SETTINGS_OPTION = 'woocommerce_stripe_settings';
|
33 |
-
const CONNECTED_KEYS_OPTION = 'stripe_keys';
|
34 |
-
|
35 |
-
public function __construct( WC_Connect_API_Client $client, WC_Connect_Options $options, WC_Connect_Logger $logger, WC_Connect_Nux $nux ) {
|
36 |
-
$this->api = $client;
|
37 |
-
$this->options = $options;
|
38 |
-
$this->logger = $logger;
|
39 |
-
$this->nux = $nux;
|
40 |
-
}
|
41 |
-
|
42 |
-
public function is_stripe_plugin_enabled() {
|
43 |
-
return class_exists( 'WC_Stripe' );
|
44 |
-
}
|
45 |
-
|
46 |
-
public function get_oauth_url( $return_url = '' ) {
|
47 |
-
if ( empty( $return_url ) ) {
|
48 |
-
$return_url = admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=stripe' );
|
49 |
-
}
|
50 |
-
|
51 |
-
if ( substr( $return_url, 0, 8 ) !== 'https://' ) {
|
52 |
-
return new WP_Error( 'invalid_url_protocol', __( 'Your site must be served over HTTPS in order to connect your Stripe account via WooCommerce Shipping & Tax', 'woocommerce-services' ) );
|
53 |
-
}
|
54 |
-
|
55 |
-
$result = $this->api->get_stripe_oauth_init( $return_url );
|
56 |
-
|
57 |
-
if ( is_wp_error( $result ) ) {
|
58 |
-
return $result;
|
59 |
-
}
|
60 |
-
|
61 |
-
$this->options->update_option( self::STATE_VAR_NAME, $result->state );
|
62 |
-
|
63 |
-
return $result->oauthUrl;
|
64 |
-
}
|
65 |
-
|
66 |
-
public function deauthorize_account() {
|
67 |
-
$response = $this->api->deauthorize_stripe_account();
|
68 |
-
if ( is_wp_error( $response ) ) {
|
69 |
-
return $response;
|
70 |
-
}
|
71 |
-
|
72 |
-
$this->clear_stripe_keys();
|
73 |
-
return $response;
|
74 |
-
}
|
75 |
-
|
76 |
-
public function connect_oauth( $state, $code ) {
|
77 |
-
if ( $state !== $this->options->get_option( self::STATE_VAR_NAME, false ) ) {
|
78 |
-
return new WP_Error( 'Invalid stripe state' );
|
79 |
-
}
|
80 |
-
|
81 |
-
$response = $this->api->get_stripe_oauth_keys( $code );
|
82 |
-
|
83 |
-
if ( is_wp_error( $response ) ) {
|
84 |
-
return $response;
|
85 |
-
}
|
86 |
-
|
87 |
-
return $this->save_stripe_keys( $response );
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Checks if the Stripe keys currently being used are the same as the keys from the connected stripe account
|
92 |
-
*
|
93 |
-
* @return bool true if the keys match
|
94 |
-
*/
|
95 |
-
public function is_connected() {
|
96 |
-
$options = get_option( self::SETTINGS_OPTION, array() );
|
97 |
-
if ( empty( $options ) ) {
|
98 |
-
return false;
|
99 |
-
}
|
100 |
-
$is_test = isset( $options['testmode'] ) && 'yes' === $options['testmode'];
|
101 |
-
$prefix = $is_test ? 'test_' : '';
|
102 |
-
$publishable_key_name = $prefix . 'publishable_key';
|
103 |
-
$secret_key_name = $prefix . 'secret_key';
|
104 |
-
|
105 |
-
$connected_keys = WC_Connect_Options::get_option( self::CONNECTED_KEYS_OPTION, array() );
|
106 |
-
if ( empty( $connected_keys ) || ! isset( $connected_keys[ $publishable_key_name ] ) || ! isset( $connected_keys[ $secret_key_name ] ) ) {
|
107 |
-
return false;
|
108 |
-
}
|
109 |
-
|
110 |
-
return wp_hash( $options[ $publishable_key_name ] ) === $connected_keys[ $publishable_key_name ]
|
111 |
-
&& wp_hash( $options[ $secret_key_name ] ) === $connected_keys[ $secret_key_name ];
|
112 |
-
}
|
113 |
-
|
114 |
-
/**
|
115 |
-
* Stores the connected account's API keys in order to determine the account connection status in the future
|
116 |
-
*
|
117 |
-
* @param string $publishable_key Publishable key
|
118 |
-
* @param string $secret_key Secret key
|
119 |
-
* @param bool $is_test True if the keys are for test environment, false otherwise
|
120 |
-
*/
|
121 |
-
private function set_connected_keys( $publishable_key, $secret_key, $is_test ) {
|
122 |
-
if ( empty( $publishable_key ) || empty( $secret_key ) ) {
|
123 |
-
return;
|
124 |
-
}
|
125 |
-
|
126 |
-
$prefix = $is_test ? 'test_' : '';
|
127 |
-
$publishable_key_name = $prefix . 'publishable_key';
|
128 |
-
$secret_key_name = $prefix . 'secret_key';
|
129 |
-
|
130 |
-
$connected_keys = WC_Connect_Options::get_option( self::CONNECTED_KEYS_OPTION, array() );
|
131 |
-
$connected_keys[ $publishable_key_name ] = wp_hash( $publishable_key );
|
132 |
-
$connected_keys[ $secret_key_name ] = wp_hash( $secret_key );
|
133 |
-
WC_Connect_Options::update_option( self::CONNECTED_KEYS_OPTION, $connected_keys );
|
134 |
-
}
|
135 |
-
|
136 |
-
/**
|
137 |
-
* Migrates the connection status if the site is already connected
|
138 |
-
*/
|
139 |
-
private function maybe_migrate_connection_status() {
|
140 |
-
if ( $this->is_connected() ) {
|
141 |
-
return;
|
142 |
-
}
|
143 |
-
$migrated = WC_Connect_Options::get_option( 'stripe_status_migrated', false );
|
144 |
-
if ( $migrated ) {
|
145 |
-
return;
|
146 |
-
}
|
147 |
-
|
148 |
-
$account_info = $this->api->get_stripe_account_details();
|
149 |
-
if ( is_wp_error( $account_info ) ) {
|
150 |
-
//no account connected, mark the status as migrated and return
|
151 |
-
WC_Connect_Options::update_option( 'stripe_status_migrated', true );
|
152 |
-
return;
|
153 |
-
}
|
154 |
-
|
155 |
-
$options = get_option( self::SETTINGS_OPTION, array() );
|
156 |
-
if ( empty( $options ) ) {
|
157 |
-
//no stripe settings found, mark the status as migrated and return
|
158 |
-
WC_Connect_Options::update_option( 'stripe_status_migrated', true );
|
159 |
-
return;
|
160 |
-
}
|
161 |
-
|
162 |
-
//assume the currently set keys are the keys from the connected account
|
163 |
-
$this->set_connected_keys( $options['test_publishable_key'], $options['test_secret_key'], true );
|
164 |
-
$this->set_connected_keys( $options['publishable_key'], $options['secret_key'], false );
|
165 |
-
WC_Connect_Options::update_option( 'stripe_status_migrated', true );
|
166 |
-
}
|
167 |
-
|
168 |
-
private function save_stripe_keys( $result ) {
|
169 |
-
if ( ! isset( $result->publishableKey, $result->secretKey ) ) {
|
170 |
-
return new WP_Error( 'Invalid credentials received from server' );
|
171 |
-
}
|
172 |
-
|
173 |
-
$is_test = false !== strpos( $result->publishableKey, '_test_' );
|
174 |
-
$prefix = $is_test ? 'test_' : '';
|
175 |
-
|
176 |
-
$default_options = $this->get_default_stripe_config();
|
177 |
-
|
178 |
-
$options = array_merge( $default_options, get_option( self::SETTINGS_OPTION, array() ) );
|
179 |
-
$options['enabled'] = 'yes';
|
180 |
-
$options['testmode'] = $is_test ? 'yes' : 'no';
|
181 |
-
$options[ $prefix . 'publishable_key' ] = $result->publishableKey;
|
182 |
-
$options[ $prefix . 'secret_key' ] = $result->secretKey;
|
183 |
-
|
184 |
-
$this->set_connected_keys( $result->publishableKey, $result->secretKey, $is_test );
|
185 |
-
|
186 |
-
// While we are at it, let's also clear the account_id and
|
187 |
-
// test_account_id if present
|
188 |
-
|
189 |
-
// Those used to be stored by save_stripe_keys but should not have
|
190 |
-
// been since they were not used by anyone
|
191 |
-
|
192 |
-
unset( $options[ 'account_id' ] );
|
193 |
-
unset( $options[ 'test_account_id' ] );
|
194 |
-
|
195 |
-
update_option( self::SETTINGS_OPTION, $options );
|
196 |
-
return $result;
|
197 |
-
}
|
198 |
-
|
199 |
-
/**
|
200 |
-
* Clears keys for test or production (whichever is presently enabled).
|
201 |
-
* Especially useful after Stripe Connect account deauthorization.
|
202 |
-
*/
|
203 |
-
private function clear_stripe_keys() {
|
204 |
-
$default_options = $this->get_default_stripe_config();
|
205 |
-
$options = array_merge( $default_options, get_option( self::SETTINGS_OPTION, array() ) );
|
206 |
-
|
207 |
-
if ( 'yes' === $options['testmode'] ) {
|
208 |
-
$options[ 'test_publishable_key' ] = '';
|
209 |
-
$options[ 'test_secret_key' ] = '';
|
210 |
-
} else {
|
211 |
-
$options[ 'publishable_key' ] = '';
|
212 |
-
$options[ 'secret_key' ] = '';
|
213 |
-
}
|
214 |
-
|
215 |
-
// While we are at it, let's also clear the account_id and
|
216 |
-
// test_account_id if present
|
217 |
-
|
218 |
-
// Those used to be stored by save_stripe_keys but should not have
|
219 |
-
// been since they were not used by anyone
|
220 |
-
|
221 |
-
unset( $options[ 'account_id' ] );
|
222 |
-
unset( $options[ 'test_account_id' ] );
|
223 |
-
|
224 |
-
update_option( self::SETTINGS_OPTION, $options );
|
225 |
-
|
226 |
-
WC_Connect_Options::delete_option( self::CONNECTED_KEYS_OPTION );
|
227 |
-
}
|
228 |
-
|
229 |
-
private function get_default_stripe_config() {
|
230 |
-
if ( ! class_exists( 'WC_Gateway_Stripe' ) ) {
|
231 |
-
return array();
|
232 |
-
}
|
233 |
-
|
234 |
-
$result = array();
|
235 |
-
$gateway = new WC_Gateway_Stripe();
|
236 |
-
foreach ( $gateway->form_fields as $key => $value ) {
|
237 |
-
if ( isset( $value['default'] ) ) {
|
238 |
-
$result[ $key ] = $value['default'];
|
239 |
-
}
|
240 |
-
}
|
241 |
-
|
242 |
-
return $result;
|
243 |
-
}
|
244 |
-
|
245 |
-
/**
|
246 |
-
* Handle connection and just-in-time messaging around OAuth flow.
|
247 |
-
*/
|
248 |
-
public function maybe_show_notice() {
|
249 |
-
// Handle redirect back from OAuth flow.
|
250 |
-
if ( isset( $_GET[ 'wcs_stripe_code' ] ) && isset( $_GET[ 'wcs_stripe_state' ] ) ) {
|
251 |
-
$response = $this->connect_oauth( $_GET[ 'wcs_stripe_state' ], $_GET[ 'wcs_stripe_code' ] );
|
252 |
-
if ( ! is_wp_error( $response ) ) {
|
253 |
-
WC_Connect_Options::update_option( 'banner_stripe', 'success' );
|
254 |
-
}
|
255 |
-
|
256 |
-
wp_safe_redirect( remove_query_arg( array( 'wcs_stripe_state', 'wcs_stripe_code' ) ) );
|
257 |
-
exit;
|
258 |
-
}
|
259 |
-
|
260 |
-
// Trigger connection-related admin notice if triggered and if on relevant screen.
|
261 |
-
$setting = WC_Connect_Options::get_option( 'banner_stripe', null );
|
262 |
-
if ( is_null( $setting ) ) {
|
263 |
-
return;
|
264 |
-
}
|
265 |
-
|
266 |
-
if ( 'success' === $setting ) {
|
267 |
-
add_action( 'admin_notices', array( $this, 'connection_success_notice' ) );
|
268 |
-
WC_Connect_Options::delete_option( 'banner_stripe' );
|
269 |
-
return;
|
270 |
-
}
|
271 |
-
|
272 |
-
$screen = get_current_screen();
|
273 |
-
|
274 |
-
if ( // Display if on any of these admin pages.
|
275 |
-
'dashboard' === $screen->id // Dashboard.
|
276 |
-
|| 'plugins' === $screen->id // Plugins.
|
277 |
-
|| ( // WooCommerce » Settings » Payments.
|
278 |
-
'woocommerce_page_wc-settings' === $screen->base
|
279 |
-
&& isset( $_GET['tab'] ) && 'checkout' === $_GET['tab']
|
280 |
-
)
|
281 |
-
|| ( // WooCommerce » Extensions » Payments.
|
282 |
-
'woocommerce_page_wc-addons' === $screen->base
|
283 |
-
&& isset( $_GET['section'] ) && 'payment-gateways' === $_GET['section']
|
284 |
-
)
|
285 |
-
) {
|
286 |
-
wp_enqueue_style( 'wc_connect_banner' );
|
287 |
-
add_action( 'admin_notices', array( $this, 'connection_banner' ) );
|
288 |
-
}
|
289 |
-
}
|
290 |
-
|
291 |
-
/**
|
292 |
-
* Render dismissible connection banner with OAuth link as primary action.
|
293 |
-
*/
|
294 |
-
public function connection_banner() {
|
295 |
-
$result = $this->get_oauth_url();
|
296 |
-
|
297 |
-
if ( is_wp_error( $result ) ) {
|
298 |
-
//do not log the invalid url protocol error when attempting to render the banner
|
299 |
-
if ( 'invalid_url_protocol' !== $result->get_error_code() ) {
|
300 |
-
$this->logger->log( $result, __CLASS__ );
|
301 |
-
}
|
302 |
-
return;
|
303 |
-
}
|
304 |
-
|
305 |
-
$options = get_option( self::SETTINGS_OPTION, array() );
|
306 |
-
if ( ! isset( $options['email'] ) ) {
|
307 |
-
return;
|
308 |
-
}
|
309 |
-
|
310 |
-
$this->nux->show_nux_banner( array(
|
311 |
-
'title' => __( 'Connect your account', 'woocommerce-services' ),
|
312 |
-
'description' => wp_kses(
|
313 |
-
sprintf( __( 'It looks like there is an existing Stripe account at <strong>%s</strong>. To start accepting payments with Stripe, you\'ll need to connect it to your store.', 'woocommerce-services' ), $options['email'] ),
|
314 |
-
array( 'strong' => array() )
|
315 |
-
),
|
316 |
-
'button_text' => __( 'Connect', 'woocommerce-services' ),
|
317 |
-
'button_link' => $result,
|
318 |
-
'image_url' => plugins_url( 'images/stripe.png', dirname( __FILE__ ) ),
|
319 |
-
'should_show_jp' => false,
|
320 |
-
'dismissible_id' => 'stripe_connect',
|
321 |
-
'compact_logo' => true,
|
322 |
-
) );
|
323 |
-
}
|
324 |
-
|
325 |
-
/**
|
326 |
-
* Render admin notice acknowledging successful OAuth connection.
|
327 |
-
*/
|
328 |
-
public function connection_success_notice() {
|
329 |
-
?>
|
330 |
-
<div class="notice notice-success">
|
331 |
-
<p>
|
332 |
-
<?php echo wp_kses(
|
333 |
-
__( '<strong>Ready to accept Stripe payments!</strong> Your Stripe account has been successfully connected. Additional settings can be configured on this screen.', 'woocommerce-services' ),
|
334 |
-
array( 'strong' => array() )
|
335 |
-
); ?>
|
336 |
-
</p>
|
337 |
-
</div>
|
338 |
-
<?php
|
339 |
-
}
|
340 |
-
|
341 |
-
/**
|
342 |
-
* Add to settings page container for dynamically rendered connected account view.
|
343 |
-
*/
|
344 |
-
public function show_connected_account( $settings ) {
|
345 |
-
ob_start();
|
346 |
-
do_action( 'enqueue_wc_connect_script', 'wc-connect-stripe-connect-account' );
|
347 |
-
|
348 |
-
$this->maybe_migrate_connection_status();
|
349 |
-
|
350 |
-
// Display a different title based on the connection status.
|
351 |
-
if ( $this->is_connected() ) {
|
352 |
-
$title = __( 'Stripe Account (connected to WooCommerce Shipping & Tax)', 'woocommerce-services' );
|
353 |
-
} else {
|
354 |
-
$title = __( 'Connect via WooCommerce Shipping & Tax', 'woocommerce-services' );
|
355 |
-
}
|
356 |
-
|
357 |
-
$new_settings = array(
|
358 |
-
'connection_status' => array(
|
359 |
-
'type' => 'title',
|
360 |
-
'title' => $title,
|
361 |
-
'description' => ob_get_clean(),
|
362 |
-
),
|
363 |
-
);
|
364 |
-
return array_merge( $new_settings, $settings );
|
365 |
-
}
|
366 |
-
}
|
367 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classes/class-wc-rest-connect-shipping-carrier-controller.php
CHANGED
@@ -22,10 +22,11 @@ class WC_REST_Connect_Shipping_Carrier_Controller extends WC_REST_Connect_Base_C
|
|
22 |
array( 'message' => $response->get_error_message() )
|
23 |
);
|
24 |
$this->logger->log( $error, __CLASS__ );
|
|
|
25 |
return $error;
|
26 |
}
|
27 |
|
28 |
-
return
|
29 |
}
|
30 |
|
31 |
}
|
22 |
array( 'message' => $response->get_error_message() )
|
23 |
);
|
24 |
$this->logger->log( $error, __CLASS__ );
|
25 |
+
|
26 |
return $error;
|
27 |
}
|
28 |
|
29 |
+
return $response;
|
30 |
}
|
31 |
|
32 |
}
|
classes/class-wc-rest-connect-stripe-deauthorize-controller.php
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
exit;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( class_exists( 'WC_REST_Connect_Stripe_Deauthorize_Controller' ) ) {
|
8 |
-
return;
|
9 |
-
}
|
10 |
-
|
11 |
-
class WC_REST_Connect_Stripe_Deauthorize_Controller extends WC_REST_Connect_Base_Controller {
|
12 |
-
protected $rest_base = 'connect/stripe/account/deauthorize';
|
13 |
-
private $stripe;
|
14 |
-
|
15 |
-
public function __construct( WC_Connect_Stripe $stripe, WC_Connect_API_Client $api_client, WC_Connect_Service_Settings_Store $settings_store, WC_Connect_Logger $logger ) {
|
16 |
-
parent::__construct( $api_client, $settings_store, $logger );
|
17 |
-
$this->stripe = $stripe;
|
18 |
-
}
|
19 |
-
|
20 |
-
public function post( $request ) {
|
21 |
-
$response = $this->stripe->deauthorize_account();
|
22 |
-
|
23 |
-
if ( is_wp_error( $response ) ) {
|
24 |
-
$this->logger->log( $response, __CLASS__ );
|
25 |
-
|
26 |
-
return new WP_Error(
|
27 |
-
$response->get_error_code(),
|
28 |
-
$response->get_error_message(),
|
29 |
-
array(
|
30 |
-
'status' => 400
|
31 |
-
)
|
32 |
-
);
|
33 |
-
}
|
34 |
-
|
35 |
-
return array(
|
36 |
-
'success' => true,
|
37 |
-
'account_id' => $response->accountId,
|
38 |
-
);
|
39 |
-
}
|
40 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classes/class-wc-rest-connect-stripe-oauth-connect-controller.php
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
exit;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( class_exists( 'WC_REST_Connect_Stripe_Oauth_Connect_Controller' ) ) {
|
8 |
-
return;
|
9 |
-
}
|
10 |
-
|
11 |
-
class WC_REST_Connect_Stripe_Oauth_Connect_Controller extends WC_REST_Connect_Base_Controller {
|
12 |
-
protected $rest_base = 'connect/stripe/oauth/connect';
|
13 |
-
private $stripe;
|
14 |
-
|
15 |
-
public function __construct( WC_Connect_Stripe $stripe, WC_Connect_API_Client $api_client, WC_Connect_Service_Settings_Store $settings_store, WC_Connect_Logger $logger ) {
|
16 |
-
parent::__construct( $api_client, $settings_store, $logger );
|
17 |
-
$this->stripe = $stripe;
|
18 |
-
}
|
19 |
-
|
20 |
-
public function post( $request ) {
|
21 |
-
$data = $request->get_json_params();
|
22 |
-
|
23 |
-
$response = $this->stripe->connect_oauth( $data['state'], $data['code'] );
|
24 |
-
|
25 |
-
if ( is_wp_error( $response ) ) {
|
26 |
-
$this->logger->log( $response, __CLASS__ );
|
27 |
-
|
28 |
-
return new WP_Error(
|
29 |
-
$response->get_error_code(),
|
30 |
-
$response->get_error_message(),
|
31 |
-
array(
|
32 |
-
'status' => 400
|
33 |
-
)
|
34 |
-
);
|
35 |
-
}
|
36 |
-
|
37 |
-
return array(
|
38 |
-
'success' => true,
|
39 |
-
'account_id' => $response->accountId,
|
40 |
-
);
|
41 |
-
}
|
42 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classes/class-wc-rest-connect-stripe-oauth-init-controller.php
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
exit;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( class_exists( 'WC_REST_Connect_Stripe_Oauth_Init_Controller' ) ) {
|
8 |
-
return;
|
9 |
-
}
|
10 |
-
|
11 |
-
class WC_REST_Connect_Stripe_Oauth_Init_Controller extends WC_REST_Connect_Base_Controller {
|
12 |
-
protected $rest_base = 'connect/stripe/oauth/init';
|
13 |
-
private $stripe;
|
14 |
-
|
15 |
-
public function __construct( WC_Connect_Stripe $stripe, WC_Connect_API_Client $api_client, WC_Connect_Service_Settings_Store $settings_store, WC_Connect_Logger $logger ) {
|
16 |
-
parent::__construct( $api_client, $settings_store, $logger );
|
17 |
-
$this->stripe = $stripe;
|
18 |
-
}
|
19 |
-
|
20 |
-
public function post( $request ) {
|
21 |
-
$data = $request->get_json_params();
|
22 |
-
$response = $this->stripe->get_oauth_url( isset( $data['returnUrl'] ) ? $data['returnUrl'] : '' );
|
23 |
-
|
24 |
-
if ( is_wp_error( $response ) ) {
|
25 |
-
$this->logger->log( $response, __CLASS__ );
|
26 |
-
|
27 |
-
return new WP_Error(
|
28 |
-
$response->get_error_code(),
|
29 |
-
$response->get_error_message(),
|
30 |
-
array(
|
31 |
-
'status' => 400
|
32 |
-
)
|
33 |
-
);
|
34 |
-
}
|
35 |
-
|
36 |
-
return array(
|
37 |
-
'success' => true,
|
38 |
-
'oauthUrl' => $response,
|
39 |
-
);
|
40 |
-
}
|
41 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dist/chunks/{95d9b4a639eff8232c8f.css → 1869a3780c502197dd0f.css}
RENAMED
File without changes
|
dist/chunks/1869a3780c502197dd0f.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[144],{532:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n(1),n(560);function r(e){return e.ui.selectedSiteId}},535:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return i}),n.d(t,"e",function(){return c}),n.d(t,"c",function(){return o}),n.d(t,"f",function(){return s}),n.d(t,"h",function(){return u}),n.d(t,"g",function(){return l}),n.d(t,"j",function(){return d}),n.d(t,"i",function(){return E}),n.d(t,"k",function(){return f}),n.d(t,"l",function(){return m}),n.d(t,"p",function(){return p}),n.d(t,"q",function(){return O}),n.d(t,"r",function(){return _}),n.d(t,"s",function(){return b}),n.d(t,"t",function(){return g}),n.d(t,"u",function(){return h}),n.d(t,"y",function(){return v}),n.d(t,"z",function(){return S}),n.d(t,"A",function(){return C}),n.d(t,"v",function(){return j}),n.d(t,"w",function(){return I}),n.d(t,"x",function(){return R}),n.d(t,"C",function(){return N}),n.d(t,"E",function(){return y}),n.d(t,"D",function(){return P}),n.d(t,"B",function(){return M}),n.d(t,"F",function(){return k}),n.d(t,"G",function(){return T}),n.d(t,"H",function(){return A}),n.d(t,"I",function(){return L}),n.d(t,"J",function(){return w}),n.d(t,"K",function(){return D}),n.d(t,"m",function(){return W}),n.d(t,"n",function(){return x}),n.d(t,"o",function(){return U}),n.d(t,"L",function(){return G}),n.d(t,"M",function(){return V}),n.d(t,"N",function(){return H}),n.d(t,"O",function(){return F}),n.d(t,"P",function(){return z}),n.d(t,"Q",function(){return B}),n.d(t,"R",function(){return q}),n.d(t,"W",function(){return Z}),n.d(t,"X",function(){return K}),n.d(t,"Y",function(){return Q}),n.d(t,"Z",function(){return Y}),n.d(t,"ab",function(){return $}),n.d(t,"bb",function(){return X}),n.d(t,"cb",function(){return J}),n.d(t,"db",function(){return ee}),n.d(t,"eb",function(){return te}),n.d(t,"fb",function(){return ne}),n.d(t,"gb",function(){return re}),n.d(t,"hb",function(){return ae}),n.d(t,"ib",function(){return ie}),n.d(t,"jb",function(){return ce}),n.d(t,"kb",function(){return oe}),n.d(t,"lb",function(){return se}),n.d(t,"mb",function(){return ue}),n.d(t,"nb",function(){return le}),n.d(t,"ob",function(){return de}),n.d(t,"pb",function(){return Ee}),n.d(t,"rb",function(){return fe}),n.d(t,"qb",function(){return me}),n.d(t,"sb",function(){return pe}),n.d(t,"tb",function(){return Oe}),n.d(t,"ub",function(){return _e}),n.d(t,"vb",function(){return be}),n.d(t,"wb",function(){return ge}),n.d(t,"xb",function(){return he}),n.d(t,"yb",function(){return ve}),n.d(t,"zb",function(){return Se}),n.d(t,"Ab",function(){return Ce}),n.d(t,"Bb",function(){return je}),n.d(t,"Cb",function(){return Ie}),n.d(t,"Db",function(){return Re}),n.d(t,"Eb",function(){return Ne}),n.d(t,"Fb",function(){return ye}),n.d(t,"Gb",function(){return Pe}),n.d(t,"Hb",function(){return Me}),n.d(t,"Ib",function(){return ke}),n.d(t,"U",function(){return Te}),n.d(t,"V",function(){return Ae}),n.d(t,"S",function(){return Le}),n.d(t,"T",function(){return we});var r="WOOCOMMERCE_ACTION_LIST_ANNOTATE",a="WOOCOMMERCE_ACTION_LIST_CLEAR",i="WOOCOMMERCE_ACTION_LIST_STEP_NEXT",c="WOOCOMMERCE_ACTION_LIST_STEP_SUCCESS",o="WOOCOMMERCE_ACTION_LIST_STEP_FAILURE",s="WOOCOMMERCE_COUNT_REQUEST",u="WOOCOMMERCE_COUNT_REQUEST_SUCCESS",l="WOOCOMMERCE_COUNT_REQUEST_FAILURE",d="WOOCOMMERCE_ERROR_SET",E="WOOCOMMERCE_ERROR_CLEAR",f="WOOCOMMERCE_LOCATIONS_REQUEST",m="WOOCOMMERCE_LOCATIONS_REQUEST_SUCCESS",p="WOOCOMMERCE_ORDER_DELETE",O="WOOCOMMERCE_ORDER_DELETE_FAILURE",_="WOOCOMMERCE_ORDER_DELETE_SUCCESS",b="WOOCOMMERCE_ORDER_INVOICE_SEND",g="WOOCOMMERCE_ORDER_INVOICE_SEND_FAILURE",h="WOOCOMMERCE_ORDER_INVOICE_SEND_SUCCESS",v="WOOCOMMERCE_ORDER_NOTE_CREATE",S="WOOCOMMERCE_ORDER_NOTE_CREATE_FAILURE",C="WOOCOMMERCE_ORDER_NOTE_CREATE_SUCCESS",j="WOOCOMMERCE_ORDER_NOTES_REQUEST",I="WOOCOMMERCE_ORDER_NOTES_REQUEST_FAILURE",R="WOOCOMMERCE_ORDER_NOTES_REQUEST_SUCCESS",N="WOOCOMMERCE_ORDER_REFUND_CREATE",y="WOOCOMMERCE_ORDER_REFUND_CREATE_SUCCESS",P="WOOCOMMERCE_ORDER_REFUND_CREATE_FAILURE",M="WOOCOMMERCE_ORDER_REFUNDS_REQUEST_SUCCESS",k="WOOCOMMERCE_ORDER_REQUEST",T="WOOCOMMERCE_ORDER_REQUEST_FAILURE",A="WOOCOMMERCE_ORDER_REQUEST_SUCCESS",L="WOOCOMMERCE_ORDER_UPDATE",w="WOOCOMMERCE_ORDER_UPDATE_FAILURE",D="WOOCOMMERCE_ORDER_UPDATE_SUCCESS",W="WOOCOMMERCE_ORDERS_REQUEST",x="WOOCOMMERCE_ORDERS_REQUEST_FAILURE",U="WOOCOMMERCE_ORDERS_REQUEST_SUCCESS",G="WOOCOMMERCE_SERVICES_SHIPPING_ACTION_LIST_CREATE",V="WOOCOMMERCE_SETTINGS_PRODUCTS_CHANGE_SETTING",H="WOOCOMMERCE_SETTINGS_PRODUCTS_REQUEST",F="WOOCOMMERCE_SETTINGS_PRODUCTS_REQUEST_SUCCESS",z="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST",B="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST_FAILURE",q="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST_SUCCESS",Z="WOOCOMMERCE_SHIPPING_ZONE_ADD",K="WOOCOMMERCE_SHIPPING_ZONE_CANCEL",Q="WOOCOMMERCE_SHIPPING_ZONE_CLOSE",Y="WOOCOMMERCE_SHIPPING_ZONE_DELETED",$="WOOCOMMERCE_SHIPPING_ZONE_EDIT_NAME",X="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_CANCEL",J="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_CLOSE",ee="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_EDIT",te="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_EDIT_POSTCODE",ne="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_POSTCODE",re="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_STATE",ae="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_WHOLE_COUNTRY",ie="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_CONTINENT",ce="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_COUNTRY",oe="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_STATE",se="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_UPDATED",ue="WOOCOMMERCE_SHIPPING_ZONE_METHODS_REQUEST",le="WOOCOMMERCE_SHIPPING_ZONE_METHODS_REQUEST_SUCCESS",de="WOOCOMMERCE_SHIPPING_ZONE_METHOD_ADD",Ee="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CANCEL",fe="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CLOSE",me="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CHANGE_TYPE",pe="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CREATE",Oe="WOOCOMMERCE_SHIPPING_ZONE_METHOD_DELETE",_e="WOOCOMMERCE_SHIPPING_ZONE_METHOD_DELETED",be="WOOCOMMERCE_SHIPPING_ZONE_METHOD_EDIT_TITLE",ge="WOOCOMMERCE_SHIPPING_ZONE_METHOD_OPEN",he="WOOCOMMERCE_SHIPPING_ZONE_METHOD_REMOVE",ve="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_CONDITION",Se="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_COST",Ce="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_MIN_COST",je="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_TAXABLE",Ie="WOOCOMMERCE_SHIPPING_ZONE_METHOD_TOGGLE_ENABLED",Re="WOOCOMMERCE_SHIPPING_ZONE_METHOD_TOGGLE_OPENED_ENABLED",Ne="WOOCOMMERCE_SHIPPING_ZONE_METHOD_UPDATE",ye="WOOCOMMERCE_SHIPPING_ZONE_METHOD_UPDATED",Pe="WOOCOMMERCE_SHIPPING_ZONE_OPEN",Me="WOOCOMMERCE_SHIPPING_ZONE_REMOVE",ke="WOOCOMMERCE_SHIPPING_ZONE_UPDATED",Te="WOOCOMMERCE_SHIPPING_ZONES_REQUEST",Ae="WOOCOMMERCE_SHIPPING_ZONES_REQUEST_SUCCESS",Le="WOOCOMMERCE_SHIPPING_CLASSES_REQUEST",we="WOOCOMMERCE_SHIPPING_CLASSES_REQUEST_SUCCESS"},537:function(e,t,n){"use strict";n.d(t,"j",function(){return m}),n.d(t,"t",function(){return p}),n.d(t,"s",function(){return O}),n.d(t,"r",function(){return _}),n.d(t,"h",function(){return b}),n.d(t,"g",function(){return g}),n.d(t,"v",function(){return h}),n.d(t,"u",function(){return v}),n.d(t,"m",function(){return S}),n.d(t,"e",function(){return C}),n.d(t,"l",function(){return j}),n.d(t,"p",function(){return I}),n.d(t,"n",function(){return P}),n.d(t,"f",function(){return T}),n.d(t,"o",function(){return A}),n.d(t,"q",function(){return L}),n.d(t,"d",function(){return w}),n.d(t,"b",function(){return D}),n.d(t,"i",function(){return W}),n.d(t,"c",function(){return x}),n.d(t,"k",function(){return U}),n.d(t,"a",function(){return G});var r=n(1),a=n(35),i=n(545),c=n(532),o=n(552),s=n(544),u=n(541),l=n(563),d=n(574),E=n(564),f=n(565),m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",n,"shippingLabel",t],null)},p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),r=m(e,t,n);return r&&r.loaded},O=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),r=m(e,t,n);return r&&r.isFetching},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),r=m(e,t,n);return r&&r.error},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),r=m(e,t,n);return r&&r.loaded?r.labels:[]},g=function(e,t,n,r){return b(e,t,n).find(function(e){return e.label_id===r})},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),r=m(e,t,n);return r&&r.fulfillOrder},v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),r=m(e,t,n);return r&&r.emailDetails},S=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),r=m(e,t,n);return r&&r.refreshedLabelStatus},C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),r=m(e,t,n);return r&&r.form},j=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),i=C(e,t,n);if(!i)return null;var o=i.rates,s=o.values,u=o.available,l=[],d=0,E=0,f=function(e){if(!(e in u))return"continue";var t=s[e],n=t.serviceId,i=t.signatureRequired,c=u[e].default.rates,o=null,f=null;i in u[e]&&(o=u[e][i].rates,f=Object(r.find)(o,function(e){return n===e.service_id})||null);var m=Object(r.find)(c,function(e){return n===e.service_id});if(m){var p=m.retail_rate-m.rate,O=m.rate,_={title:m.title,retailRate:m.retail_rate,rateWithDiscount:O,addons:[],carrierId:m.carrier_id,carrierTitle:m.title.split("-")[0].trim()};null!==f&&(_.addons=[{title:Object(a.translate)("Signature Required"),rate:f.rate-m.rate}],O=f.rate),l.push(_),d+=Object(r.round)(p,2),E+=O}};for(var m in s)f(m);return l.length?{prices:l,discount:d,total:E}:null},I=Object(i.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),a=C(e,t,n);if(Object(r.isEmpty)(a))return!1;var i=Object(l.a)(a.origin),o=Object(l.a)(a.destination);return!("US"!==i.country||!Object(r.includes)(d.d,i.state))||(!("US"!==o.country||!Object(r.includes)(d.d,o.state))||i.country!==o.country&&(!Object(r.includes)(d.b,i.country)||!Object(r.includes)(d.b,o.country)))},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e);return[C(e,t,n)]}),R=function(e,t,n,i){var c=t.values,o=Object(l.a)(t),s=o.phone,u=o.postcode,f=o.state,m=o.country,p={};return["name","address","city","postcode","country"].forEach(function(e){c[e]||(p[e]=Object(a.translate)("This field is required"))}),Object(r.includes)(d.a,m)&&!/^\d{5}(?:-\d{4})?$/.test(u)&&(p.postcode=Object(a.translate)("Invalid ZIP/Postal code format")),!f&&Object(E.j)(e,m,n)&&(p.state=Object(a.translate)("This field is required")),i&&(s?10!==s.split(/\D+/g).join("").replace(/^1/,"").length&&(p.phone=Object(a.translate)("Customs forms require a 10-digit phone number. Please edit your phone number so it has at most 10 digits.")):p.phone=Object(a.translate)("Please enter a phone number for your origin address. It's required because this shipment requires a customs form.")),p},N=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.isNormalized,c=e.isUnverifiable,o=e.normalized,s=e.ignoreValidation,u=e.fieldErrors;if((i||c)&&!o&&u)return u;if(i&&!o)return{address:Object(a.translate)("This address is not recognized. Please try another.")};var l=R(t,e,n,r);return s&&Object.keys(l).forEach(function(e){s[e]&&delete l[e]}),l},y=function(e,t,n,i){var c=Object(r.uniq)(Object(r.flatten)(Object(r.map)(e,function(e){return Object(r.map)(e.items,"product_id")}))),o=Object(r.zipObject)(c,Object(r.fill)(Array(c.length),0));Object(r.forEach)(e,function(e){Object(r.forEach)(e.items,function(e){var n=e.quantity,r=e.product_id;return o[r]+=n*t.items[r].value})});var s={};return Object(r.forEach)(Object(r.pick)(t.items,c),function(e,t){e.tariffNumber&&6===e.tariffNumber.length&&(s[e.tariffNumber]||(s[e.tariffNumber]=0),s[e.tariffNumber]+=o[t])}),{packages:Object(r.mapValues)(e,function(e){var c={};"other"!==e.contentsType||e.contentsExplanation||(c.contentsExplanation=Object(a.translate)("Please describe what kind of goods this package contains")),"other"!==e.restrictionType||e.restrictionComments||(c.restrictionComments=Object(a.translate)("Please describe what kind of restrictions this package must have"));var o=new Set;return Object(r.forEach)(e.items,function(e){var n=e.product_id,r=t.items[n].tariffNumber;2500<s[r]&&o.add(r)}),e.itn?/^(?:(?:AES X\d{14})|(?:NOEEI 30\.\d{1,2}(?:\([a-z]\)(?:\(\d\))?)?))$/.test(e.itn)||(c.itn=Object(a.translate)("Invalid format")):"CA"!==n&&(Object(r.isEmpty)(o)?Object(r.includes)(d.c,n)&&(c.itn=Object(a.translate)("International Transaction Number is required for shipments to %(country)s",{args:{country:i}})):c.itn=Object(a.translate)("International Transaction Number is required for shipping items valued over $2,500 per tariff number. Products with tariff number %(code)s add up to more than $2,500.",{args:{code:o.values().next().value}})),c}),items:Object(r.mapValues)(Object(r.pick)(t.items,c),function(e,n){var i={};return e.description||(i.description=Object(a.translate)("This field is required")),t.ignoreWeightValidation[n]||(Object(r.isNil)(e.weight)||""===e.weight?i.weight=Object(a.translate)("This field is required"):parseFloat(e.weight)>0||(i.weight=Object(a.translate)("Weight must be greater than zero"))),t.ignoreValueValidation[n]||(Object(r.isNil)(e.value)||""===e.value?i.value=Object(a.translate)("This field is required"):parseFloat(e.value)>0||(i.value=Object(a.translate)("Declared value must be greater than zero"))),e.tariffNumber&&6!==e.tariffNumber.length&&(i.tariffNumber=Object(a.translate)("The tariff number must be 6 digits long")),i})}},P=function(e){var t=e.values,n=e.available,a=Object(r.map)(n,function(e,n){return t[n]});return!Object(r.isEmpty)(a)&&Object(r.every)(a)},M=function(e){var t=e.values,n=e.available;return Object(r.mapValues)(n,function(e,n){if(!Object(r.isEmpty)(e.default.errors)){var i=e.default.errors.map(function(e){return e.userMessage||e.message}).filter(Boolean);return i.length?i:["We couldn't get a rate for this package, please try again."]}return t[n]&&t[n].serviceId?[]:Object(r.isEmpty)(e.default.rates)?[Object(a.translate)("No rates available, please double check dimensions and weight or try using different packaging.")]:[Object(a.translate)("Please choose a rate")]})},k=function(e){var t={};return e||(t.paperSize=Object(a.translate)("This field is required")),t},T=Object(i.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e);if(!p(e,t,n))return{};var i=m(e,t,n),o=i.form,s=i.paperSize;if(Object(r.isEmpty)(o))return{};var u,l=o.destination.values.country,d=Object(E.g)(e,l,n),f=I(e,t,n);return{origin:N(o.origin,e,n,f),destination:N(o.destination,e,n),packages:(u=o.packages.selected,Object(r.mapValues)(u,function(e){var t={};"not_selected"===e.box_id&&(t.box_id=Object(a.translate)("Please select a package"));var n=function(e){return!Object(r.isFinite)(e)||0>=e};return n(e.weight)&&(t.weight=Object(a.translate)("Invalid weight")),Object(r.some)([e.length,e.width,e.height],n)&&(t.dimensions=Object(a.translate)("Package dimensions must be greater than zero")),t})),customs:y(o.packages.selected,o.customs,l,d),rates:M(o.rates),sidebar:k(s)}},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e);return[m(e,t,n)]}),A=Object(i.a)(function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(c.a)(e),a=m(e,t,r).form,i="origin"===n&&I(e,t,r),o=R(e,a[n],r,i);return 0===Object.keys(o).length},function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(c.a)(e);return[m(e,t,r).form[n]]}),L=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),a=C(e,t,n);if(!a)return!1;var i=Object(r.uniq)(Object(r.flatten)(Object(r.map)(a.packages.selected,function(e){return Object(r.map)(e.items,"product_id")})));return!Object(r.some)(i.map(function(e){return Object(r.isNil)(a.customs.items[e].tariffNumber)||a.customs.ignoreWeightValidation[e]||a.customs.ignoreValueValidation[e]}))},w=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),a=C(e,t,n);if(!a)return null;var i=T(e,t,n);return a.origin.isNormalized&&Object(r.isEqual)(a.origin.values,a.origin.normalized)&&!Object(o.a)(i.origin)?a.destination.isNormalized&&Object(r.isEqual)(a.destination.values,a.destination.normalized)&&!Object(o.a)(i.destination)?Object(o.a)(i.packages)?"packages":!I(e,t,n)||!Object(o.a)(i.customs)&&L(e,t,n)?Object(o.a)(i.rates)?"rates":null:"customs":"destination":"origin"},D=Object(i.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e),a=C(e,t,n);return!Object(r.isEmpty)(a)&&!w(e,t,n)&&!a.origin.normalizationInProgress&&!a.destination.normalizationInProgress&&!a.rates.retrievalInProgress&&!Object(r.isEmpty)(a.rates.available)},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e);return[C(e,t,n),w(e,t,n)]}),W=Object(i.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(c.a)(e),n=Object(E.d)(e,t);return Object(f.b)(e,t)?Object(r.pick)(n,d.a):Object(r.pick)(n,d.b)},[E.d,f.b]),x=Object(i.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(c.a)(e),n=Object(E.d)(e,t);return Object(f.b)(e,t)?n:Object(r.pick)(n,d.b)},[E.d,f.b]),U=Object(i.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e);if(!Object(E.j)(e,t,n))return null;var a=Object(E.i)(e,t,n),i={};return a.forEach(function(e){var t=e.code,n=e.name;return i[t]=n}),"US"!==t||Object(f.b)(e,n)?i:Object(r.omit)(i,d.d)},[E.i,f.b]),G=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(c.a)(e);return p(e,t,n)&&Object(s.d)(e,n)&&Object(u.i)(e,n)&&Object(E.b)(e,n)}},538:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return i}),n.d(t,"f",function(){return c}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"g",function(){return u}),n.d(t,"h",function(){return l}),n.d(t,"i",function(){return d}),n.d(t,"j",function(){return E}),n.d(t,"k",function(){return f}),n.d(t,"l",function(){return m}),n.d(t,"m",function(){return p}),n.d(t,"n",function(){return O}),n.d(t,"o",function(){return _}),n.d(t,"q",function(){return b}),n.d(t,"p",function(){return g}),n.d(t,"r",function(){return h}),n.d(t,"s",function(){return v}),n.d(t,"t",function(){return S}),n.d(t,"u",function(){return C}),n.d(t,"v",function(){return j}),n.d(t,"w",function(){return I}),n.d(t,"B",function(){return R}),n.d(t,"x",function(){return N}),n.d(t,"C",function(){return y}),n.d(t,"z",function(){return P}),n.d(t,"A",function(){return M}),n.d(t,"D",function(){return k}),n.d(t,"E",function(){return T}),n.d(t,"F",function(){return A}),n.d(t,"G",function(){return L}),n.d(t,"H",function(){return w}),n.d(t,"I",function(){return D}),n.d(t,"J",function(){return W}),n.d(t,"K",function(){return x}),n.d(t,"L",function(){return U}),n.d(t,"M",function(){return G}),n.d(t,"N",function(){return V}),n.d(t,"y",function(){return H}),n.d(t,"O",function(){return F}),n.d(t,"P",function(){return z}),n.d(t,"Q",function(){return B}),n.d(t,"R",function(){return q}),n.d(t,"S",function(){return Z}),n.d(t,"T",function(){return K}),n.d(t,"U",function(){return Q}),n.d(t,"Ob",function(){return Y}),n.d(t,"V",function(){return $}),n.d(t,"W",function(){return X}),n.d(t,"X",function(){return J}),n.d(t,"Y",function(){return ee}),n.d(t,"Z",function(){return te}),n.d(t,"ab",function(){return ne}),n.d(t,"bb",function(){return re}),n.d(t,"cb",function(){return ae}),n.d(t,"db",function(){return ie}),n.d(t,"eb",function(){return ce}),n.d(t,"fb",function(){return oe}),n.d(t,"gb",function(){return se}),n.d(t,"hb",function(){return ue}),n.d(t,"ib",function(){return le}),n.d(t,"jb",function(){return de}),n.d(t,"kb",function(){return Ee}),n.d(t,"lb",function(){return fe}),n.d(t,"nb",function(){return me}),n.d(t,"mb",function(){return pe}),n.d(t,"ob",function(){return Oe}),n.d(t,"pb",function(){return _e}),n.d(t,"qb",function(){return be}),n.d(t,"rb",function(){return ge}),n.d(t,"sb",function(){return he}),n.d(t,"tb",function(){return ve}),n.d(t,"ub",function(){return Se}),n.d(t,"vb",function(){return Ce}),n.d(t,"wb",function(){return je}),n.d(t,"xb",function(){return Ie}),n.d(t,"zb",function(){return Re}),n.d(t,"Ab",function(){return Ne}),n.d(t,"Bb",function(){return ye}),n.d(t,"Cb",function(){return Pe}),n.d(t,"Db",function(){return Me}),n.d(t,"Eb",function(){return ke}),n.d(t,"Fb",function(){return Te}),n.d(t,"Gb",function(){return Ae}),n.d(t,"Hb",function(){return Le}),n.d(t,"Ib",function(){return we}),n.d(t,"Jb",function(){return De}),n.d(t,"yb",function(){return We}),n.d(t,"Lb",function(){return xe}),n.d(t,"Kb",function(){return Ue}),n.d(t,"Mb",function(){return Ge}),n.d(t,"Nb",function(){return Ve}),n.d(t,"Pb",function(){return He}),n.d(t,"Qb",function(){return Fe}),n.d(t,"Rb",function(){return ze});var r="WOOCOMMERCE_SERVICES_LABELS_INIT_FORM",a="WOOCOMMERCE_SERVICES_LABELS_RESTORE_PRISTINE",i="WOOCOMMERCE_SERVICES_LABELS_SET_FORM_DATA_VALUE",c="WOOCOMMERCE_SERVICES_LABELS_SET_FORM_META_PROPERTY",o="WOOCOMMERCE_SERVICES_LABELS_OPEN_ADD_CARD_DIALOG",s="WOOCOMMERCE_SERVICES_LABELS_CLOSE_ADD_CARD_DIALOG",u="WOOCOMMERCE_SERVICES_PACKAGES_ADD_PACKAGE",l="WOOCOMMERCE_SERVICES_PACKAGES_DISMISS_MODAL",d="WOOCOMMERCE_SERVICES_PACKAGES_EDIT_PACKAGE",E="WOOCOMMERCE_SERVICES_PACKAGES_INIT_PACKAGES_FORM",f="WOOCOMMERCE_SERVICES_PACKAGES_REMOVE_PACKAGE",m="WOOCOMMERCE_SERVICES_PACKAGES_REMOVE_PREDEFINED",p="WOOCOMMERCE_SERVICES_PACKAGES_SAVE_PACKAGE",O="WOOCOMMERCE_SERVICES_PACKAGES_SAVE_PREDEFINED",_="WOOCOMMERCE_SERVICES_PACKAGES_SET_ADD_MODE",b="WOOCOMMERCE_SERVICES_PACKAGES_SET_IS_FETCH_ERROR",g="WOOCOMMERCE_SERVICES_PACKAGES_SET_IS_FETCHING",h="WOOCOMMERCE_SERVICES_PACKAGES_SET_IS_SAVING",v="WOOCOMMERCE_SERVICES_PACKAGES_SET_MODAL_ERROR",S="WOOCOMMERCE_SERVICES_PACKAGES_TOGGLE_ALL_PREDEFINED",C="WOOCOMMERCE_SERVICES_PACKAGES_TOGGLE_OUTER_DIMENSIONS",j="WOOCOMMERCE_SERVICES_PACKAGES_TOGGLE_PREDEFINED",I="WOOCOMMERCE_SERVICES_PACKAGES_UPDATE_PACKAGES_FIELD",R="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADD_ITEMS",N="WOOCOMMERCE_SERVICES_SERVICE_SETTINGS_UPDATE_FIELD",y="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADD_PACKAGE",P="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADDRESS_NORMALIZATION_COMPLETED",M="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADDRESS_NORMALIZATION_IN_PROGRESS",k="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLEAR_AVAILABLE_RATES",T="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_ADD_ITEM",A="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_DETAILS_DIALOG",L="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_ITEM_MOVE",w="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_REFUND_DIALOG",D="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_REPRINT_DIALOG",W="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CONFIRM_ADDRESS_SUGGESTION",x="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CONFIRM_REPRINT",U="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_EDIT_ADDRESS",G="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_EDIT_UNVERIFIABLE_ADDRESS",V="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_EXIT_PRINTING_FLOW",H="WOOCOMMERCE_SERVICES_SHIPPING_EXIT_TRACKING_FLOW",F="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_INIT",z="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_MOVE_ITEM",B="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_ADD_ITEM",q="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_DETAILS_DIALOG",Z="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_ITEM_MOVE",K="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_PACKAGE",Q="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_PRINTING_FLOW",Y="WOOCOMMERCE_SERVICES_SHIPPING_OPEN_TRACKING_FLOW",$="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_REFUND_DIALOG",X="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_REPRINT_DIALOG",J="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_PURCHASE_REQUEST",ee="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_PURCHASE_RESPONSE",te="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_RATES_RETRIEVAL_COMPLETED",ne="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_RATES_RETRIEVAL_IN_PROGRESS",re="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REFUND_REQUEST",ae="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REFUND_RESPONSE",ie="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REMOVE_IGNORE_VALIDATION",ce="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REMOVE_PACKAGE",oe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REPRINT_DIALOG_ERROR",se="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REPRINT_DIALOG_READY",ue="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SAVE_CUSTOMS",le="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SAVE_PACKAGES",de="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SELECT_NORMALIZED_ADDRESS",Ee="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_ABANDON_ON_NON_DELIVERY",fe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_ADDED_ITEM",me="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CONTENTS_TYPE",pe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CONTENTS_EXPLANATION",Oe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_DESCRIPTION",_e="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_ORIGIN_COUNTRY",be="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_TARIFF_NUMBER",ge="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_VALUE",he="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_WEIGHT",ve="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_EMAIL_DETAILS",Se="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_FETCH_ERROR",Ce="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_FULFILL_ORDER",je="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_IS_FETCHING",Ie="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_ITN",Re="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_PACKAGE_TYPE",Ne="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_RATES",ye="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_RESTRICTION_COMMENTS",Pe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_RESTRICTION_TYPE",Me="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_TARGET_PACKAGE",ke="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SHOW_PRINT_CONFIRMATION",Te="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_STATUS_RESPONSE",Ae="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_STATUS_RETRIEVAL_IN_PROGRESS",Le="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_TOGGLE_STEP",we="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_ADDRESS_VALUE",De="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_PACKAGE_WEIGHT",We="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_PACKAGE_SIGNATURE",xe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_RATE",Ue="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_PAPER_SIZE",Ge="WOOCOMMERCE_SERVICES_SHIPPING_METHOD_SCHEMA_REQUEST",Ve="WOOCOMMERCE_SERVICES_SHIPPING_METHOD_SCHEMA_REQUEST_SUCCESS",He="WOOCOMMERCE_SERVICES_SHIPPING_ZONE_METHOD_SETTINGS_REQUEST",Fe="WOOCOMMERCE_SERVICES_SHIPPING_ZONE_METHOD_SETTINGS_REQUEST_SUCCESS",ze="WOOCOMMERCE_SERVICES_SHIPPING_ZONE_METHOD_UPDATE"},539:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return a});var r="LOADING",a="ERROR"},541:function(e,t,n){"use strict";n.d(t,"e",function(){return m}),n.d(t,"b",function(){return O}),n.d(t,"d",function(){return _}),n.d(t,"a",function(){return b}),n.d(t,"c",function(){return g}),n.d(t,"f",function(){return h}),n.d(t,"i",function(){return v}),n.d(t,"h",function(){return S}),n.d(t,"g",function(){return C});var r=n(110),a=n.n(r),i=n(36),c=n.n(i),o=n(1),s=n(35),u=n(545),l=n(532),d=n(574),E=n(563),f=n(537),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e);return Object(o.get)(e,["extensions","woocommerce","woocommerceServices",t,"packages"],null)},p=function(e){return e&&e.predefinedSchema?Object.keys(e.predefinedSchema):[]},O=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=m(e,t);if(!n||!n.predefinedSchema||!n.packages)return null;var r=[];Object(o.forEach)(n.predefinedSchema,function(e,t){var a=(n.packages.predefined||{})[t]||[];Object(o.forEach)(e,function(e){var n=e.definitions;Object(o.forEach)(n,function(e){Object(o.includes)(a,e.id)&&r.push(c()({},e,{serviceId:t}))})})});var a=(n.packages.custom||[]).map(function(e,t){return c()({},e,{index:t})});return Object(o.orderBy)(r.concat(a),"name")},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=m(e,t);if(!n||!n.packages)return[];var r=p(n);return[].concat(a()(n.packages.custom||[]),a()(r.map(function(e){return(n.packages.predefined||{})[e]})))}),_=Object(u.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(l.a)(e),r=m(e,n);if(!r||!r.predefinedSchema||!r.packages)return null;var a=Object(f.e)(e,t,n),i=Object(E.a)(a.origin).country,c=Object(E.a)(a.destination).country,u=d.a.includes(i)&&!d.a.includes(c),p={custom:{title:Object(s.translate)("Custom Packages"),definitions:r.packages.custom}};return Object(o.forEach)(r.predefinedSchema,function(e,t){var n=(r.packages.predefined||{})[t]||[];Object(o.forEach)(e,function(e,t){var r=e.definitions,a={title:e.title,definitions:[]};Object(o.forEach)(r,function(e){u&&!1===e.can_ship_international||Object(o.includes)(n,e.id)&&a.definitions.push(e)}),a.definitions.length&&(p[t]=a)})}),p},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(l.a)(e),r=m(e,n);if(!r||!r.packages)return[];var i=p(r),c=Object(f.e)(e,t,n),o=Object(E.a)(c.origin).country,s=Object(E.a)(c.destination).country;return[].concat(a()(r.packages.custom||[]),a()(i.map(function(e){return(r.packages.predefined||{})[e]})),[o,s])}),b=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=m(e,t);if(!n||!n.predefinedSchema||!n.packages)return null;var r={};return Object(o.forEach)(n.packages.custom,function(e){r[e.name]=e}),Object(o.forEach)(n.predefinedSchema,function(e){Object(o.forEach)(e,function(e){var t=e.definitions;Object(o.forEach)(t,function(e){r[e.id]=e})})}),r},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=m(e,t);if(!n||!n.packages)return[];var r=p(n);return[].concat(a()(n.packages.custom||[]),a()(r.map(function(e){return(n.packages.predefined||{})[e]})))}),g=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=m(e,t);if(!n||!n.currentlyEditingPredefinedPackages)return null;var r={},a=n.predefinedSchema,i=n.currentlyEditingPredefinedPackages;return Object(o.forEach)(a,function(e,t){var n=i[t]||[];Object(o.forEach)(e,function(e,a){var i={groupId:a,serviceId:t,title:e.title,packages:[],total:e.definitions.length,selected:0};Object(o.forEach)(e.definitions,function(e){var r=Object(o.includes)(n,e.id);r&&i.selected++,i.packages.push(c()({},e,{selected:r,serviceId:t}))}),r["".concat(t,"-").concat(a)]=i})}),r},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=m(e,t);if(!n||!n.currentlyEditingPredefinedPackages)return[];var r=p(n);return a()(r.map(function(e){return n.currentlyEditingPredefinedPackages[e]}))}),h=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=0,r=0,a=m(e,t);if(!a||!a.currentlyEditingPredefinedPackages)return{added:n,removed:r};var i=a.packages&&a.packages.predefined?a.packages.predefined:{},c=a.currentlyEditingPredefinedPackages;return Object.keys(c).forEach(function(e){var t=i[e],r=c[e];t?r.forEach(function(e){Object(o.includes)(t,e)||n++}):n+=r.length}),Object.keys(i).forEach(function(e){var t=i[e],n=c[e];n?t.forEach(function(e){Object(o.includes)(n,e)||r++}):r+=t.length}),{added:n,removed:r}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=m(e,t);if(!n||!n.currentlyEditingPredefinedPackages)return[];var r=p(n);return[].concat(a()(r.map(function(e){return n.packages&&n.packages.predefined&&n.packages.predefined[e]})),a()(r.map(function(e){return n.currentlyEditingPredefinedPackages[e]})))}),v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=m(e,t);return n&&n.isLoaded},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=m(e,t);return n&&n.isFetching},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=m(e,t);return n&&n.isFetchError}},542:function(e,t,n){"use strict";n.d(t,"a",function(){return I});var r=n(530),a=n.n(r),i=n(533),c=n.n(i),o=n(107),s=n.n(o),u=n(108),l=n.n(u),d=n(528),E=n.n(d),f=n(527),m=n.n(f),p=n(529),O=n.n(p),_=n(34),b=n.n(_),g=n(10),h=n.n(g),v=n(12),S=n.n(v),C=n(526),j=n.n(C),I=function(e){function t(){return s()(this,t),E()(this,m()(t).apply(this,arguments))}return O()(t,e),l()(t,[{key:"render",value:function(){var e=j()("button",this.props.className,{"is-compact":this.props.compact,"is-primary":this.props.primary,"is-scary":this.props.scary,"is-busy":this.props.busy,"is-borderless":this.props.borderless});if(this.props.href){var t=this.props,n=(t.compact,t.primary,t.scary,t.busy,t.borderless,t.type,c()(t,["compact","primary","scary","busy","borderless","type"])),r=n.target?(n.rel||"").replace(/noopener|noreferrer/g,"")+" noopener noreferrer":n.rel;return h.a.createElement("a",a()({},n,{rel:r,className:e}))}var i=this.props,o=(i.compact,i.primary,i.scary,i.busy,i.borderless,i.target,i.rel,c()(i,["compact","primary","scary","busy","borderless","target","rel"]));return h.a.createElement("button",a()({},o,{className:e}))}}]),t}(g.PureComponent);b()(I,"propTypes",{compact:S.a.bool,primary:S.a.bool,scary:S.a.bool,busy:S.a.bool,type:S.a.string,href:S.a.string,borderless:S.a.bool,target:S.a.string,rel:S.a.string}),b()(I,"defaultProps",{type:"button"})},543:function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"c",function(){return h}),n.d(t,"b",function(){return v}),n.d(t,"a",function(){return S});var r={};n.r(r),n.d(r,"accountSettings",function(){return i}),n.d(r,"packages",function(){return c}),n.d(r,"orderLabels",function(){return o}),n.d(r,"getLabelRates",function(){return s}),n.d(r,"labelStatus",function(){return u}),n.d(r,"labelRefund",function(){return l}),n.d(r,"labelsPrint",function(){return d}),n.d(r,"labelTestPrint",function(){return E}),n.d(r,"addressNormalization",function(){return f}),n.d(r,"serviceSettings",function(){return m}),n.d(r,"shippingCarrier",function(){return p}),n.d(r,"shippingCarriers",function(){return O}),n.d(r,"shippingCarrierDelete",function(){return _}),n.d(r,"shippingCarrierTypes",function(){return b});var a=n(562),i="connect/account/settings",c="connect/packages",o=function(e){return"connect/label/".concat(e)},s=function(e){return"connect/label/".concat(e,"/rates")},u=function(e,t){return"connect/label/".concat(e,"/").concat(t)},l=function(e,t){return"connect/label/".concat(e,"/").concat(t,"/refund")},d=function(){return"connect/label/print"},E=function(){return"connect/label/preview"},f=function(){return"connect/normalize-address"},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"connect/services/".concat(e,"/").concat(t)},p=function(){return"connect/shipping/carrier"},O=function(){return"connect/shipping/carriers"},_=function(e){return"connect/shipping/carrier/".concat(e)},b=function(){return"connect/shipping/carrier-types"},g=function(e){if(e&&e.message)throw e.message;if(e&&e.data&&e.data.message)throw e.data.message;throw e},h=function(e,t,n){return Object(a.a)(e).post(t,n,"wc/v1").catch(g)},v=function(e,t){return Object(a.a)(e).get(t,"wc/v1").catch(g)},S=function(e,t){return Object(a.a)(e).del(t,"wc/v1").catch(g)}},544:function(e,t,n){"use strict";n.d(t,"f",function(){return c}),n.d(t,"g",function(){return o}),n.d(t,"h",function(){return s}),n.d(t,"i",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return E}),n.d(t,"a",function(){return f}),n.d(t,"n",function(){return m}),n.d(t,"o",function(){return p}),n.d(t,"e",function(){return O}),n.d(t,"q",function(){return _}),n.d(t,"p",function(){return b}),n.d(t,"k",function(){return g}),n.d(t,"l",function(){return h}),n.d(t,"m",function(){return v}),n.d(t,"j",function(){return S});var r=n(1),a=n(532),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",t,"labelSettings"],null)},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=i(e,t);return n&&n.data},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=i(e,t);return n&&n.meta},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=i(e,t);return n&&n.storeOptions},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=o(e,t);return n&&n.user},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=o(e,t);return n&&n.isLoaded},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=o(e,t);return n&&n.isFetching},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=o(e,t);return n&&n.isFetchError},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=c(e,t);return n&&n.enabled},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=c(e,t);return n&&n.selected_payment_method_id},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=o(e,t);return n&&n.pristine},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=c(e,t);return n&&n.email_receipts},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=o(e,t);return n&&n.can_manage_payments},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=o(e,t);return n&&n.can_edit_settings},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=c(e,t);return n&&n.paper_size},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=o(e,t);return n&&n.payment_methods},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=o(e,t);return n&&n.warnings&&n.warnings.payment_methods},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=o(e,t);return{masterUserName:n&&n.master_user_name,masterUserLogin:n&&n.master_user_login,masterUserEmail:n&&n.master_user_email,masterUserWpcomLogin:n&&n.master_user_wpcom_login}}},545:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(1),a=n(607),i=n.n(a),c=(n(113),function(e){return e}),o=function(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 n.join()},s=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return e.map(function(e){return e.apply(void 0,[t].concat(r))})}};function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,u=Object(r.memoize)(e,a);return Array.isArray(n)&&(n=s(n)),Object.assign(function(e){for(var r=arguments.length,a=new Array(r>1?r-1:0),c=1;c<r;c++)a[c-1]=arguments[c];var o=n.apply(void 0,[e].concat(a));return Array.isArray(o)||(o=[o]),t&&!i()(o,t)&&u.cache.clear(),t=o,u.apply(void 0,[e].concat(a))},{memoizedSelector:u})}},547:function(e,t,n){"use strict";var r=n(530),a=n.n(r),i=n(533),c=n.n(i),o=n(36),s=n.n(o),u=n(10),l=n.n(u),d=n(12),E=n.n(d),f=n(526),m=n.n(f),p=n(35),O=n(1),_=function(e){var t=e.children,n=e.required,r=e.optional,i=e.translate,o=e.className,u=c()(e,["children","required","optional","translate","className"]);return t=l.a.Children.toArray(t)||[],n&&t.push(function(e){return l.a.createElement("small",{className:"form-label__required"},e("Required"))}(i)),r&&t.push(function(e){return l.a.createElement("small",{className:"form-label__optional"},e("Optional"))}(i)),l.a.createElement("label",a()({},Object(O.omit)(u,"moment","numberFormat"),{className:m()(o,"form-label")}),t.length?t.map(function(e,t){return Object(O.isObject)(e)?s()({},e,{key:t}):e}):null)};_.propTypes={required:E.a.bool},t.a=Object(p.localize)(_)},548:function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return d}),n.d(t,"b",function(){return E});var r=n(533),a=n.n(r),i=n(1),c={debounce:i.debounce,isPlainObject:i.isPlainObject,uniqueId:i.uniqueId},o=(n(46),c.uniqueId);function s(e){return{noticeId:e,type:"NOTICE_REMOVE"}}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.id,i=a()(n,["id"]);return{type:"NOTICE_CREATE",notice:Object.assign({showDismiss:!0},i,{noticeId:r||o(),status:e,text:t})}}var l=u.bind(null,"is-success"),d=u.bind(null,"is-error"),E=u.bind(null,"is-info");u.bind(null,"is-warning"),u.bind(null,"is-plain")},552:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(1),a=function e(t){return!!t&&(Object(r.isArray)(t)?Object(r.some)(t,e):!Object(r.isPlainObject)(t)||Object(r.some)(Object(r.values)(t),e))}},555:function(e,t,n){"use strict";n.r(t),n.d(t,"addPackage",function(){return c}),n.d(t,"removePackage",function(){return o}),n.d(t,"editPackage",function(){return s}),n.d(t,"dismissModal",function(){return u}),n.d(t,"savePackage",function(){return l}),n.d(t,"updatePackagesField",function(){return d}),n.d(t,"toggleOuterDimensions",function(){return E}),n.d(t,"toggleAll",function(){return f}),n.d(t,"togglePackage",function(){return m}),n.d(t,"savePredefinedPackages",function(){return p}),n.d(t,"removePredefinedPackage",function(){return O}),n.d(t,"setModalErrors",function(){return _}),n.d(t,"setIsSaving",function(){return b}),n.d(t,"setIsFetching",function(){return g}),n.d(t,"setIsFetchError",function(){return h}),n.d(t,"setAddMode",function(){return v}),n.d(t,"fetchSettings",function(){return S}),n.d(t,"submit",function(){return C});var r=n(543),a=n(538),i=n(541),c=function(e){return{type:a.g,siteId:e}},o=function(e,t){return{type:a.k,index:t,siteId:e}},s=function(e,t){return{type:a.i,package:t,siteId:e}},u=function(e){return{type:a.h,siteId:e}},l=function(e,t){return{type:a.m,packageData:t,siteId:e}},d=function(e,t){return{type:a.w,values:t,siteId:e}},E=function(e){return{type:a.u,siteId:e}},f=function(e,t,n,r){return{type:a.t,serviceId:t,groupId:n,checked:r,siteId:e}},m=function(e,t,n){return{type:a.v,serviceId:t,packageId:n,siteId:e}},p=function(e){return{type:a.n,siteId:e}},O=function(e,t,n){return{type:a.l,serviceId:t,packageId:n,siteId:e}},_=function(e,t){return{type:a.s,value:t,siteId:e}},b=function(e,t){return{type:a.r,isSaving:t,siteId:e}},g=function(e,t){return{type:a.p,isFetching:t,siteId:e}},h=function(e,t){return{type:a.q,isFetchError:t,siteId:e}},v=function(e,t){return{type:a.o,siteId:e,mode:t}},S=function(e){return function(t,n){var c=Object(i.e)(n(),e);c&&(c.packages||c.isFetching)||(t(g(e,!0)),r.b(e,r.d.packages).then(function(n){var r=n.formData,i=n.formSchema,c=n.storeOptions;t({type:a.j,packages:r,dimensionUnit:c.dimension_unit,weightUnit:c.weight_unit,packageSchema:i.custom.items,predefinedSchema:i.predefined,siteId:e})}).catch(function(n){console.error(n),t(h(e,!0))}).then(function(){return t(g(e,!1))}))}},C=function(e,t,n){return function(a,c){var o=Object(i.e)(c(),e);a(b(e,!0)),r.c(e,r.d.packages,o.packages).then(t).catch(n).then(function(){return a(b(e,!1))})}}},556:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(535);function a(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:r.j,siteId:e,originalAction:t,data:n,time:a}}},557:function(e,t,n){"use strict";n.d(t,"a",function(){return R});var r=n(530),a=n.n(r),i=n(107),c=n.n(i),o=n(108),s=n.n(o),u=n(528),l=n.n(u),d=n(527),E=n.n(d),f=n(531),m=n.n(f),p=n(529),O=n.n(p),_=n(34),b=n.n(_),g=n(10),h=n.n(g),v=n(12),S=n.n(v),C=n(526),j=n.n(C),I=n(1),R=function(e){function t(){var e;return c()(this,t),(e=l()(this,E()(t).apply(this,arguments))).selectOnFocus=e.selectOnFocus.bind(m()(e)),e}return O()(t,e),s()(t,[{key:"focus",value:function(){this.refs.textField.focus()}},{key:"selectOnFocus",value:function(e){this.props.selectOnFocus&&e.target.select()}},{key:"render",value:function(){var e=this.props.inputRef,t=Object(I.omit)(this.props,"isError","isValid","selectOnFocus","inputRef"),n=j()("form-text-input",this.props.className,{"is-error":this.props.isError,"is-valid":this.props.isValid});return h.a.createElement("input",a()({type:"text"},t,{ref:e||"textField",className:n,onClick:this.selectOnFocus}))}}]),t}(g.PureComponent);b()(R,"propTypes",{isError:S.a.bool,isValid:S.a.bool,selectOnFocus:S.a.bool,className:S.a.string})},560:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return i});var r=function(){return{}},a=function(){return""},i=function(){return!0}},562:function(e,t,n){"use strict";var r=n(75);t.a=r.a},563:function(e,t,n){"use strict";var r=n(1);t.a=function(e){return Object(r.isPlainObject)(e)&&(e.isNormalized&&e.selectNormalized&&e.normalized?e.normalized:e.values)||{}}},564:function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"c",function(){return u}),n.d(t,"a",function(){return l}),n.d(t,"e",function(){return E}),n.d(t,"f",function(){return m}),n.d(t,"g",function(){return p}),n.d(t,"i",function(){return O}),n.d(t,"h",function(){return _}),n.d(t,"j",function(){return b}),n.d(t,"d",function(){return g});var r=n(1),a=n(545),i=n(532),c=n(539),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"data","locations"])},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.isArray)(o(e,t))},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return c.b===o(e,t)},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return c.a===o(e,t)},d=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];var i=r[e],c=s(t,i);return[c,c&&o(t,i)]}},E=Object(a.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);if(!s(e,t))return[];var n=o(e,t).map(function(e){return Object(r.omit)(e,"countries")});return Object(r.sortBy)(n,"name")},d(0)),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);if(!s(e,t))return[];var n=Object(r.flatMap)(o(e,t),"countries");return Object(r.sortBy)(n,"name")},m=Object(a.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);if(!s(e,n))return[];var a=Object(r.find)(o(e,n),{code:t});if(!a)return[];var c=a.countries.map(function(e){return Object(r.omit)(e,"states")});return Object(r.sortBy)(c,"name")},d(1)),p=Object(a.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);if(!s(e,n))return t;var a=Object(r.find)(Object(r.flatMap)(o(e,n),"countries"),{code:t});return a?a.name:t},d(1)),O=Object(a.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);if(!s(e,n))return[];var a=Object(r.find)(Object(r.flatMap)(o(e,n),"countries"),{code:t});return a?Object(r.sortBy)(a.states,"name"):[]},d(1)),_=Object(a.a)(function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(i.a)(e);if(!s(e,a))return n;var c=Object(r.find)(Object(r.flatMap)(o(e,a),"countries"),{code:t});if(!c)return n;var u=Object(r.find)(c.states,{code:n});return u?u.name:n},d(2)),b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return!Object(r.isEmpty)(O(e,t,n))},g=Object(a.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=f(e,t),r={};return n.forEach(function(e){var t=e.code,n=e.name;return r[t]=n}),r},d(0))},565:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a});var r=function(){return!0},a=function(){return!0}},566:function(e,t,n){"use strict";n.d(t,"d",function(){return c}),n.d(t,"a",function(){return s}),n.d(t,"e",function(){return u}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return d});var r=n(543),a=n(538),i=n(544),c=function(e,t,n){return{type:a.e,siteId:e,key:t,value:n}},o=function(e,t,n){return{type:a.f,siteId:e,key:t,value:n}},s=function(e){return function(t){t(o(e,"isFetching",!0)),r.b(e,r.d.accountSettings).then(function(n){var r=n.storeOptions,i=n.formMeta,c=n.formData,o=n.userMeta;t(function(e,t,n,r,i){return{type:a.b,siteId:e,storeOptions:t,formData:n,formMeta:r,userMeta:i}}(e,r,c,i,o))}).catch(function(n){t(o(e,"isFetchError",!0)),console.error(n)}).then(function(){return t(o(e,"isFetching",!1))})}},u=function(e,t,n){return function(a,c){a(o(e,"isSaving",!0)),a(o(e,"pristine",!0)),r.c(e,r.d.accountSettings,Object(i.f)(c())).then(t).catch(function(t){return a(o(e,"pristine",!1)),n(t)}).then(function(){a(o(e,"isSaving",!1))})}},l=function(e){return{type:a.d,siteId:e}},d=function(e){return{type:a.c,siteId:e}}},567:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return u});var r=n(1),a=n(532),i=n(539),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",t,"shippingMethodSchemas"],{})},o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return Object(r.isObject)(c(e,n)[t])},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return o(e,t,n)?c(e,n)[t]:null},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return i.b===c(e,n)[t]}},574:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return i}),n.d(t,"c",function(){return c});var r=["US","PR","VI","GU","AS","UM","MH","FM","MP"],a=["US","PR","VI"],i=["AA","AE","AP"],c=["IR","SY","KP","CU","SD"]},575:function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return d});var r=n(1),a=n(532),i=n(584),c=n(539),o=n(565),s=n(585),u=function(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"shippingZoneMethods"])}(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e));return Object(r.isObject)(n)?n[t]:null},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),c=Object(i.b)(e,n);if(!Object(r.isArray)(c))return!1;var l=Object(r.find)(c,{id:t});if(!l||!Object(r.isArray)(l.methodIds))return!1;if(!Object(o.a)(e,n))return!0;var d=l.methodIds.map(function(t){var a=u(e,t,n);return a&&Object(r.startsWith)(a.methodType,"wc_services")?a:null}).filter(Boolean);return Object(r.every)(d,function(t){var r=t.id;return Object(s.a)(e,r,n)})},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),l=Object(i.b)(e,n);if(!Object(r.isArray)(l))return!1;var d=Object(r.find)(l,{id:t});if(!d)return!1;if(c.b===d.methodIds)return!0;if(!Object(o.a)(e,n)||!Object(r.isArray)(d.methodIds))return!1;var E=d.methodIds.map(function(t){var a=u(e,t,n);return a&&Object(r.startsWith)(a.methodType,"wc_services")?a:null}).filter(Boolean);return Object(r.some)(E,function(t){var r=t.id;return Object(s.b)(e,r,n)})}},577:function(e,t,n){"use strict";var r=n(10),a=n.n(r),i=n(12),c=n.n(i),o=n(546),s=n(547),u=n(557),l=n(550),d=n(558),E=function(e){var t=e.id,n=e.title,i=e.description,c=e.value,E=e.placeholder,f=e.updateValue,m=e.error,p=e.className,O=e.defaultValue,_=Object(r.useCallback)(function(e){return f(e.target.value,e)},[f]);return a.a.createElement(o.a,{className:p},a.a.createElement(s.a,{htmlFor:t},n),a.a.createElement(u.a,{id:t,name:t,placeholder:E,value:c,onChange:_,isError:Boolean(m),defaultValue:O}),m&&"string"===typeof m&&a.a.createElement(l.a,{text:m}),!m&&i&&a.a.createElement(d.a,null,i))};E.propTypes={id:c.a.string.isRequired,title:c.a.node,description:c.a.string,value:c.a.string,defaultValue:c.a.string,updateValue:c.a.func,error:c.a.oneOfType([c.a.string,c.a.bool]),className:c.a.string},t.a=E},580:function(e,t,n){"use strict";var r=n(530),a=n.n(r),i=n(533),c=n.n(i),o=n(107),s=n.n(o),u=n(108),l=n.n(u),d=n(528),E=n.n(d),f=n(527),m=n.n(f),p=n(531),O=n.n(p),_=n(529),b=n.n(_),g=n(34),h=n.n(g),v=n(526),S=n.n(v),C=n(35),j=n(1),I=n(10),R=n.n(I),N=n(542),y=function(e){function t(){var e,n;s()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=E()(this,(e=m()(t)).call.apply(e,[this].concat(a))),h()(O()(n),"getDefaultButtonAction",function(){return n.props.isSubmitting?n.props.translate("Saving\u2026"):n.props.translate("Save Settings")}),n}return b()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.isPrimary,i=c()(e,["children","className","isPrimary"]),o=S()(n,"form-button");return R.a.createElement(N.a,a()({},Object(j.omit)(i,["isSubmitting","moment","numberFormat","translate"]),{primary:r,className:o}),I.Children.count(t)?t:this.getDefaultButtonAction())}}]),t}(R.a.Component);h()(y,"defaultProps",{isSubmitting:!1,isPrimary:!0,type:"submit"}),t.a=Object(C.localize)(y)},584:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var r=n(1),a=n(532),i=(n(539),n(575)),c=n(611),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"shippingZones"])},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=o(e,t);return Object(r.isArray)(n)&&Object(r.every)(n,function(n){return Object(i.a)(e,n.id,t)})&&Object(r.every)(n,function(n){return Object(c.a)(e,n.id,t)})}},585:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s});var r=n(1),a=n(532),i=n(539),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",t,"shippingZoneMethodSettings"],{})},o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return!0===c(e,n)[t]},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return i.b===c(e,n)[t]}},588:function(e,t,n){"use strict";n.d(t,"a",function(){return j});var r=n(533),a=n.n(r),i=n(107),c=n.n(i),o=n(108),s=n.n(o),u=n(528),l=n.n(u),d=n(527),E=n.n(d),f=n(529),m=n.n(f),p=n(34),O=n.n(p),_=n(10),b=n.n(_),g=n(12),h=n.n(g),v=n(526),S=n.n(v),C=n(557),j=function(e){function t(){return c()(this,t),l()(this,E()(t).apply(this,arguments))}return m()(t,e),s()(t,[{key:"render",value:function(){var e=this.props,t=e.noWrap,n=e.prefix,r=e.suffix,i=a()(e,["noWrap","prefix","suffix"]);return b.a.createElement("div",{className:S()("form-text-input-with-affixes",{"no-wrap":t})},n&&b.a.createElement("span",{className:"form-text-input-with-affixes__prefix"},n),b.a.createElement(C.a,i),r&&b.a.createElement("span",{className:"form-text-input-with-affixes__suffix"},r))}}]),t}(b.a.Component);O()(j,"displayName","FormTextInputWithAffixes"),O()(j,"propTypes",{noWrap:h.a.bool,prefix:h.a.node,suffix:h.a.node})},591:function(e,t,n){"use strict";var r,a=n(34),i=n.n(a),c=n(36),o=n.n(c),s=n(1),u=n(46),l=Object(u.b)({},(r={},i()(r,"NOTICE_CREATE",function(e,t){var n=t.notice;return o()({},e,i()({},n.noticeId,n))}),i()(r,"NOTICE_REMOVE",function(e,t){var n=t.noticeId;return e.hasOwnProperty(n)?Object(s.omit)(e,n):e}),i()(r,"ROUTE_SET",function(e){return Object(s.reduce)(e,function(e,t,n){if(!t.isPersistent&&!t.displayOnNextPage)return e;var r=t;return r.displayOnNextPage&&(r=o()({},r,{displayOnNextPage:!1})),e[n]=r,e},{})}),r)),d=Object(u.b)({},i()({},"NOTICE_CREATE",function(e,t){var n=t.notice;return o()({},e,i()({},n.noticeId,Date.now()))}));t.a=Object(u.a)({items:l,lastTimeShown:d})},592:function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"a",function(){return c}),n.d(t,"e",function(){return o}),n.d(t,"c",function(){return s});var r=n(535);function a(e){return{type:r.d,actionList:e}}function i(){return{type:r.b}}function c(e){return{type:r.a,actionList:e}}function o(e){return{type:r.e,actionList:e}}function s(e,t){return{type:r.c,actionList:e,error:t}}},599:function(e,t,n){"use strict";var r=n(530),a=n.n(r),i=n(10),c=n.n(i),o=n(12),s=n.n(o),u=n(526),l=n.n(u),d=n(534),E=n.n(d),f=n(1),m=function(e){var t=e.className,n=e.disabled,r=e.checked,i=e.partialChecked,o=Object(f.omit)(e,["className","partialChecked"]);return c.a.createElement("span",{className:l()(t,"form-checkbox",{"is-disabled":n})},c.a.createElement("input",a()({},o,{type:"checkbox"})),r&&c.a.createElement(E.a,{icon:"checkmark",size:14}),!r&&i&&c.a.createElement(E.a,{icon:"minus-small",size:16}))};m.propTypes={checked:s.a.bool.isRequired,partialChecked:s.a.bool,onChange:s.a.func.isRequired,className:s.a.string},t.a=m},603:function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return o});n(1);var r=n(657),a=n.n(r),i=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea");function c(e){return"string"!==typeof e||-1===e.indexOf("&")?e:function(e){i.innerHTML=e;var t=i.textContent;return i.innerHTML="",t}(e)}function o(e){return a()(e)}String.fromCharCode(160)},605:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l});var r=n(35),a=n(606),i=n(1),c=n(543),o={a4:{name:Object(r.translate)("A4"),exclude:function(e){return Object(i.includes)(["US","CA","MX","DO"],e)}},label:{name:Object(r.translate)('Label (4"x6")')},legal:{name:Object(r.translate)("Legal")},letter:{name:Object(r.translate)("Letter")}},s=function(e){return Object(i.reduce)(o,function(t,n,r){var a=n.name,i=n.exclude;return i&&i(e)||(t[r]=a),t},{})},u=function(e,t,n){if(!o[e])throw new Error("Invalid paper size: ".concat(e));var r={paper_size:e,label_id_csv:Object(i.filter)(Object(i.map)(t,"labelId")).join(","),caption_csv:Object(i.filter)(Object(i.map)(t,function(e){return e.caption?encodeURIComponent(e.caption):null})).join(","),json:!0};return n+"?"+Object(a.stringify)(r)},l=function(e,t){return u(e,t,c.d.labelsPrint())}},610:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(1),a=function(e,t){return Object(r.isArray)(e)?e.concat(t):void 0},i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>1?r.mergeWith.apply(void 0,[Object.create(null)].concat(t,[a])):t[0]}},611:function(e,t,n){"use strict";n.d(t,"c",function(){return c}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s});var r=n(1),a=n(532),i=n(539),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"shippingZoneLocations"])},o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),i=c(e,n);return i&&Object(r.isObject)(i[t])},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return c(e,n)&&i.b===c(e,n)[t]}},612:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(543),a=n(556),i=n(538),c=n(585),o=function(e,t,n){return function(o,s){if(!Object(c.a)(s(),n,e)&&!Object(c.b)(s(),n,e)){var u={type:i.Pb,instanceId:n,siteId:e};return o(u),r.b(e,r.d.serviceSettings(t,n)).then(function(t){return o(function(e,t,n){return{type:i.Qb,siteId:e,instanceId:t,data:n}}(e,n,t))}).catch(function(t){return o(Object(a.a)(e,u,t))})}}}},613:function(e,t,n){"use strict";t.a=function(e,t){return function e(t,n,r){if(void 0===n||null===n||!t)return n;switch((t=function(e,t){if(e.$ref){var n=e.$ref.match(/^#\/definitions\/(.+)/);n&&t[n[1]]&&(e=t[n[1]])}return e}(t,r)).type){case"number":if(""===n)return;return isNaN(n)?n:parseFloat(n);case"boolean":return-1!==["true","True","TRUE","1",1,!0].indexOf(n)||-1===["false","False","FALSE","0",0,!1].indexOf(n)&&void 0;case"string":return n?n.toString():"";case"object":var a={};return Object.keys(n).forEach(function(i){var c=(t.properties||{})[i];a[i]=e(c,n[i],r)}),a;case"array":return n.map(function(n){return e(t.items,n,r)});default:return n}}({type:"object",properties:e.properties},t,e.definitions)}},615:function(e,t,n){"use strict";var r=n(530),a=n.n(r),i=n(533),c=n.n(i),o=n(10),s=n.n(o),u=n(526),l=n.n(u);t.a=function(e){var t=e.className,n=c()(e,["className"]);return s.a.createElement("input",a()({},n,{type:"checkbox",className:l()(t,"form-checkbox")}))}},619:function(e,t,n){var r={"./af":[392,3],"./af.js":[392,3],"./ar":[399,4],"./ar-dz":[393,5],"./ar-dz.js":[393,5],"./ar-kw":[394,6],"./ar-kw.js":[394,6],"./ar-ly":[395,7],"./ar-ly.js":[395,7],"./ar-ma":[396,8],"./ar-ma.js":[396,8],"./ar-sa":[397,9],"./ar-sa.js":[397,9],"./ar-tn":[398,10],"./ar-tn.js":[398,10],"./ar.js":[399,4],"./az":[400,11],"./az.js":[400,11],"./be":[401,12],"./be.js":[401,12],"./bg":[402,13],"./bg.js":[402,13],"./bm":[403,14],"./bm.js":[403,14],"./bn":[404,15],"./bn.js":[404,15],"./bo":[405,16],"./bo.js":[405,16],"./br":[406,17],"./br.js":[406,17],"./bs":[407,18],"./bs.js":[407,18],"./ca":[408,19],"./ca.js":[408,19],"./cs":[409,20],"./cs.js":[409,20],"./cv":[410,21],"./cv.js":[410,21],"./cy":[411,22],"./cy.js":[411,22],"./da":[412,23],"./da.js":[412,23],"./de":[415,24],"./de-at":[413,25],"./de-at.js":[413,25],"./de-ch":[414,26],"./de-ch.js":[414,26],"./de.js":[415,24],"./dv":[416,27],"./dv.js":[416,27],"./el":[417,28],"./el.js":[417,28],"./en-au":[418,29],"./en-au.js":[418,29],"./en-ca":[419,30],"./en-ca.js":[419,30],"./en-gb":[420,31],"./en-gb.js":[420,31],"./en-ie":[421,32],"./en-ie.js":[421,32],"./en-il":[422,33],"./en-il.js":[422,33],"./en-in":[423,34],"./en-in.js":[423,34],"./en-nz":[424,35],"./en-nz.js":[424,35],"./en-sg":[425,36],"./en-sg.js":[425,36],"./eo":[426,37],"./eo.js":[426,37],"./es":[429,38],"./es-do":[427,39],"./es-do.js":[427,39],"./es-us":[428,40],"./es-us.js":[428,40],"./es.js":[429,38],"./et":[430,41],"./et.js":[430,41],"./eu":[431,42],"./eu.js":[431,42],"./fa":[432,43],"./fa.js":[432,43],"./fi":[433,44],"./fi.js":[433,44],"./fil":[434,45],"./fil.js":[434,45],"./fo":[435,46],"./fo.js":[435,46],"./fr":[438,47],"./fr-ca":[436,48],"./fr-ca.js":[436,48],"./fr-ch":[437,49],"./fr-ch.js":[437,49],"./fr.js":[438,47],"./fy":[439,50],"./fy.js":[439,50],"./ga":[440,51],"./ga.js":[440,51],"./gd":[441,52],"./gd.js":[441,52],"./gl":[442,53],"./gl.js":[442,53],"./gom-deva":[443,54],"./gom-deva.js":[443,54],"./gom-latn":[444,55],"./gom-latn.js":[444,55],"./gu":[445,56],"./gu.js":[445,56],"./he":[446,57],"./he.js":[446,57],"./hi":[447,58],"./hi.js":[447,58],"./hr":[448,59],"./hr.js":[448,59],"./hu":[449,60],"./hu.js":[449,60],"./hy-am":[450,61],"./hy-am.js":[450,61],"./id":[451,62],"./id.js":[451,62],"./is":[452,63],"./is.js":[452,63],"./it":[454,64],"./it-ch":[453,65],"./it-ch.js":[453,65],"./it.js":[454,64],"./ja":[455,66],"./ja.js":[455,66],"./jv":[456,67],"./jv.js":[456,67],"./ka":[457,68],"./ka.js":[457,68],"./kk":[458,69],"./kk.js":[458,69],"./km":[459,70],"./km.js":[459,70],"./kn":[460,71],"./kn.js":[460,71],"./ko":[461,72],"./ko.js":[461,72],"./ku":[462,73],"./ku.js":[462,73],"./ky":[463,74],"./ky.js":[463,74],"./lb":[464,75],"./lb.js":[464,75],"./lo":[465,76],"./lo.js":[465,76],"./lt":[466,77],"./lt.js":[466,77],"./lv":[467,78],"./lv.js":[467,78],"./me":[468,79],"./me.js":[468,79],"./mi":[469,80],"./mi.js":[469,80],"./mk":[470,81],"./mk.js":[470,81],"./ml":[471,82],"./ml.js":[471,82],"./mn":[472,83],"./mn.js":[472,83],"./mr":[473,84],"./mr.js":[473,84],"./ms":[475,85],"./ms-my":[474,86],"./ms-my.js":[474,86],"./ms.js":[475,85],"./mt":[476,87],"./mt.js":[476,87],"./my":[477,88],"./my.js":[477,88],"./nb":[478,89],"./nb.js":[478,89],"./ne":[479,90],"./ne.js":[479,90],"./nl":[481,91],"./nl-be":[480,92],"./nl-be.js":[480,92],"./nl.js":[481,91],"./nn":[482,93],"./nn.js":[482,93],"./oc-lnc":[483,94],"./oc-lnc.js":[483,94],"./pa-in":[484,95],"./pa-in.js":[484,95],"./pl":[485,96],"./pl.js":[485,96],"./pt":[487,97],"./pt-br":[486,98],"./pt-br.js":[486,98],"./pt.js":[487,97],"./ro":[488,99],"./ro.js":[488,99],"./ru":[489,100],"./ru.js":[489,100],"./sd":[490,101],"./sd.js":[490,101],"./se":[491,102],"./se.js":[491,102],"./si":[492,103],"./si.js":[492,103],"./sk":[493,104],"./sk.js":[493,104],"./sl":[494,105],"./sl.js":[494,105],"./sq":[495,106],"./sq.js":[495,106],"./sr":[497,107],"./sr-cyrl":[496,108],"./sr-cyrl.js":[496,108],"./sr.js":[497,107],"./ss":[498,109],"./ss.js":[498,109],"./sv":[499,110],"./sv.js":[499,110],"./sw":[500,111],"./sw.js":[500,111],"./ta":[501,112],"./ta.js":[501,112],"./te":[502,113],"./te.js":[502,113],"./tet":[503,114],"./tet.js":[503,114],"./tg":[504,115],"./tg.js":[504,115],"./th":[505,116],"./th.js":[505,116],"./tk":[506,117],"./tk.js":[506,117],"./tl-ph":[507,118],"./tl-ph.js":[507,118],"./tlh":[508,119],"./tlh.js":[508,119],"./tr":[509,120],"./tr.js":[509,120],"./tzl":[510,121],"./tzl.js":[510,121],"./tzm":[512,122],"./tzm-latn":[511,123],"./tzm-latn.js":[511,123],"./tzm.js":[512,122],"./ug-cn":[513,124],"./ug-cn.js":[513,124],"./uk":[514,125],"./uk.js":[514,125],"./ur":[515,126],"./ur.js":[515,126],"./uz":[517,127],"./uz-latn":[516,128],"./uz-latn.js":[516,128],"./uz.js":[517,127],"./vi":[518,129],"./vi.js":[518,129],"./x-pseudo":[519,130],"./x-pseudo.js":[519,130],"./yo":[520,131],"./yo.js":[520,131],"./zh-cn":[521,132],"./zh-cn.js":[521,132],"./zh-hk":[522,133],"./zh-hk.js":[522,133],"./zh-mo":[523,134],"./zh-mo.js":[523,134],"./zh-tw":[524,135],"./zh-tw.js":[524,135]};function a(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],a=t[0];return n.e(t[1]).then(function(){return n.t(a,7)})}a.keys=function(){return Object.keys(r)},a.id=619,e.exports=a},620:function(e,t,n){"use strict";(function(e){var n={env:e?"production":"development",wpcom_concierge_schedule_id:1,languages:[],google_adwords_conversion_id:"",google_adwords_conversion_id_jetpack:""},r=function(e){if(e in n)return n[e];throw new Error("config key `"+e+"` does not exist")};r.isEnabled=function(){return!0},t.a=r}).call(this,n(112))},633:function(e,t,n){"use strict";var r=n(34),a=n.n(r),i=n(110),c=n.n(i),o=n(1),s=n(35),u=n(535),l=n(592),d=n(544),E=n(541),f=n(566),m=n(555),p=n(532),O=n(538);n(562),n(556),n(575),n(612),n(620);var _=n(543),b=n(36),g=n.n(b);function h(e,t,n,r){Object(o.isFunction)(n)?h(e,t,n(e,t,r),r):Object(o.isObject)(n)&&e(g()({},n,r))}var v,S=n(567),C=n(613),j=function(e,t){var n=Object(E.e)(e,t);return!n||n.pristine?[]:[{description:Object(s.translate)("Saving label settings"),onStep:function(e,n){e(Object(m.submit)(t,function(){return e(Object(l.e)(n))},function(){return e(Object(l.c)(n))}))}}]},I=function(e,t){var n=Object(p.a)(e);return t?c()(j(e,n)):[].concat(c()(function(e,t){var n=Object(d.g)(e,t);return!n||n.pristine||!n.can_edit_settings&&n.can_manage_payments?[]:[{description:Object(s.translate)("Saving label settings"),onStep:function(e,n){e(Object(f.e)(t,function(){return e(Object(l.e)(n))},function(){return e(Object(l.c)(n))}))}}]}(e,n)),c()(j(e,n)))};t.a=(v={},a()(v,u.L,[function(e,t){var n=t.successAction,r=t.failureAction,a=t.onlyPackages,i=function(e){e(n),e(Object(l.b)())},c=I(e.getState(),a);e.dispatch(Object(o.isEmpty)(c)?i:Object(l.d)({nextSteps:c,onSuccess:i,onFailure:function(e){e(r),e(Object(l.b)())}}))}]),a()(v,O.Rb,[function(e,t){var n=e.dispatch,r=e.getState,a=t.siteId,i=t.methodId,c=t.methodType,o=t.method,s=t.successAction,l=t.failureAction,d=Object(S.a)(r(),c,a).formSchema,E=Object(C.a)(d,o);_.c(a,_.d.serviceSettings(c,i),E).then(function(e){n(function(e,t,n){return{type:u.Fb,siteId:e,data:t,originatingAction:n}}(a,e,t)),h(n,r,s,{sentData:E,receivedData:e})}).catch(function(e){return h(n,r,l,{error:e})})}]),v)},634:function(e,t,n){"use strict";n.d(t,"b",function(){return T}),n.d(t,"a",function(){return M});var r=n(111),a=n.n(r),i=n(107),c=n.n(i),o=n(108),s=n.n(o),u=n(528),l=n.n(u),d=n(527),E=n.n(d),f=n(531),m=n.n(f),p=n(529),O=n.n(p),_=n(34),b=n.n(_),g=n(10),h=n.n(g),v=n(109),S=n(163),C=n.n(S),j=n(47),I=n.n(j),R=n(1),N=n(545),y=Object(N.a)(function(e){return Object(R.get)(e,"ui.language.localeSlug",null)},function(e){return e.ui.language}),P=I()("calypso:localized-moment"),M=h.a.createContext(C.a),k=function(e){function t(){var e,n;c()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=l()(this,(e=E()(t)).call.apply(e,[this].concat(a))),b()(m()(n),"state",{moment:C.a,momentLocale:C.a.locale()}),n}return O()(t,e),s()(t,[{key:"checkAndLoad",value:function(){var e=a()(regeneratorRuntime.mark(function e(t){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=this.props.currentLocale)!==t){e.next=3;break}return e.abrupt("return");case 3:if("en"!==r){e.next=7;break}this.loadingLocalePromise=Promise.resolve(),e.next=19;break;case 7:return P("Loading moment locale for %s",r),e.prev=8,this.loadingLocalePromise=n(619)("./".concat(r)),e.next=12,this.loadingLocalePromise;case 12:e.next=18;break;case 14:return e.prev=14,e.t0=e.catch(8),P("Failed to load moment locale for %s",r,e.t0),e.abrupt("return");case 18:P("Loaded moment locale for %s",r);case 19:r===this.props.currentLocale&&(C.a.locale()!==r&&C.a.locale(r),this.setState({momentLocale:r}));case 20:case"end":return e.stop()}},e,this,[[8,14]])}));return function(t){return e.apply(this,arguments)}}()},{key:"componentDidMount",value:function(){this.checkAndLoad(C.a.locale())}},{key:"componentDidUpdate",value:function(e){this.checkAndLoad(e.currentLocale)}},{key:"render",value:function(){return h.a.createElement(M.Provider,{value:this.state},this.props.children)}}]),t}(h.a.Component),T=Object(v.b)(function(e){return{currentLocale:y(e)}})(k)},646:function(e,t,n){"use strict";var r=n(10),a=n.n(r),i=n(12),c=n.n(i),o=n(35),s=n(1),u=n(534),l=n.n(u),d=n(526),E=n.n(d),f=function(e){var t=e.isPlaceholder,n=e.data,r=e.dimensionUnit,i=e.prefixActions,c=(e.hasError,e.children),o=e.translate;if(t)return a.a.createElement("div",{className:"packages__packages-row placeholder"},a.a.createElement("div",{className:"packages__packages-row-icon"},a.a.createElement(l.a,{icon:"product",size:18})),a.a.createElement("div",{className:"packages__packages-row-details"},a.a.createElement("div",{className:"packages__packages-row-details-name"},a.a.createElement("span",null))),a.a.createElement("div",{className:"packages__packages-row-dimensions"},a.a.createElement("span",null)),a.a.createElement("div",{className:"packages__packages-row-actions"},c));var u,d=function(){return a.a.createElement("div",{className:"packages__packages-row-actions"},c)};return a.a.createElement("div",{className:E()("packages__packages-row",{prefixed:i})},i?d():null,a.a.createElement("div",{className:"packages__packages-row-icon"},function(e){var t=e?"mail":"product";return a.a.createElement(l.a,{icon:t,size:18})}(n.is_letter)),a.a.createElement("div",{className:"packages__packages-row-details"},a.a.createElement("div",{className:"packages__packages-row-details-name"},(u=n.name)&&""!==Object(s.trim)(u)?u:o("Untitled"))),a.a.createElement("div",{className:"packages__packages-row-dimensions"},n.inner_dimensions," ",r),i?null:d())};f.propTypes={siteId:c.a.number.isRequired,isPlaceholder:c.a.bool,data:c.a.shape({name:c.a.string,is_letter:c.a.bool,inner_dimensions:c.a.string}).isRequired,prefixActions:c.a.bool,dimensionUnit:c.a.string},t.a=Object(o.localize)(f)},647:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(535);function a(e,t,n){return{type:r.L,successAction:e,failureAction:t,onlyPackages:n||!1}}},649:function(e,t,n){"use strict";var r=n(110),a=n.n(r),i=n(36),c=n.n(i),o=n(1),s=n(538),u={modalErrors:{},pristine:!0},l=function(e){return null===e||""===Object(o.trim)(e)},d={};d[s.g]=function(e){var t=e.packages&&e.packages.predefined?e.packages.predefined:{},n=c()({},e,{showModal:!0,mode:"add-custom",currentlyEditingPredefinedPackages:Object(o.cloneDeep)(t)});return"edit"!==e.mode&&n.packageData||(n.packageData={is_user_defined:!0}),n},d[s.i]=function(e,t){return Object.assign({},e,{showModal:!0,modalReadOnly:!1,mode:"edit",packageData:t.package,showOuterDimensions:!1})},d[s.h]=function(e){return Object.assign({},e,{modalErrors:{},showModal:!1,showOuterDimensions:!1})},d[s.s]=function(e,t){return Object.assign({},e,{modalErrors:t.value})},d[s.w]=function(e,t){var n=Object.assign({},e.packageData,t.values),r=Object(o.omitBy)(n,l);return Object.assign({},e,{packageData:r,pristine:!1})},d[s.m]=function(e,t){var n=t.packageData,r=e.packages.custom||[];(n.box_weight&&(n.box_weight=Number.parseFloat(n.box_weight)),n.max_weight&&(n.max_weight=Number.parseFloat(n.max_weight)),"index"in n)?r[n.index]=Object(o.omit)(n,"index"):r.push(n);return e=d[s.h](e),c()({},e,{mode:"add-custom",packageData:{is_user_defined:!0},packages:c()({},e.packages,{custom:r}),pristine:!1})},d[s.u]=function(e){return c()({},e,{showOuterDimensions:!0})},d[s.k]=function(e,t){var n=a()(e.packages.custom);return n.splice(t.index,1),c()({},e,{packages:c()({},e.packages,{custom:n}),pristine:!1,showModal:!1})},d[s.t]=function(e,t){var n=t.serviceId,r=t.groupId,a=t.checked,i=e.predefinedSchema[n][r].definitions.map(function(e){return e.id}),s=e.currentlyEditingPredefinedPackages[n],u=a?Object(o.uniq)(Object(o.concat)(s,i)):Object(o.difference)(s,i),l=c()({},e.currentlyEditingPredefinedPackages);return l[n]=u,c()({},e,{currentlyEditingPredefinedPackages:l,pristine:!1})},d[s.v]=function(e,t){var n=t.serviceId,r=t.packageId,i=c()({},e.currentlyEditingPredefinedPackages),o=a()(i[n]||[]),s=o.indexOf(r);return-1===s?o.push(r):o.splice(s,1),i[n]=o,c()({},e,{currentlyEditingPredefinedPackages:i,pristine:!1})},d[s.l]=function(e,t){var n=t.serviceId,r=t.packageId,i=c()({},e.packages.predefined),o=a()(i[n]||[]),s=o.indexOf(r);return-1!==s&&o.splice(s,1),i[n]=o,c()({},e,{packages:c()({},e.packages,{predefined:i}),pristine:!1})},d[s.n]=function(e){var t=e.currentlyEditingPredefinedPackages;return e=d[s.h](e),c()({},e,{packages:c()({},e.packages,{predefined:t}),pristine:!1})},d[s.o]=function(e,t){var n=t.mode;return c()({},e,{mode:n})},d[s.r]=function(e,t){return Object.assign({},e,{isSaving:t.isSaving,pristine:!t.isSaving})},d[s.p]=function(e,t){var n=t.isFetching;return c()({},e,{isFetching:n})},d[s.q]=function(e,t){var n=t.isFetchError;return c()({},e,{isFetchError:n})},d[s.j]=function(e,t){var n=t.packages,r=t.dimensionUnit,a=t.weightUnit,i=t.packageSchema,o=t.predefinedSchema;return c()({},e,{packages:n,dimensionUnit:r,weightUnit:a,packageSchema:i,predefinedSchema:o,packageData:e.packageData||{is_user_defined:!0},isLoaded:!0})};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;return"function"===typeof d[t.type]?d[t.type](e,t):e}},650:function(e,t,n){"use strict";var r=n(34),a=n.n(r),i=n(36),c=n.n(i),o=n(538),s={meta:{error:!1,fieldsStatus:!1,isSaving:!1,isFetching:!1,isLoaded:!1,isFetchError:!1,pristine:!0},data:null,pristineData:null},u={};u[o.b]=function(e,t){var n=t.storeOptions,r=t.formData,a=t.formMeta,i=t.userMeta;return c()({},e,{storeOptions:n,meta:c()({},e.meta,a,{pristine:!0,isLoaded:!0,user:i}),data:c()({},e.data,r)})},u[o.e]=function(e,t){var n=t.key,r=t.value,i=e.meta.pristine?e.data:e.pristineData;return c()({},e,{meta:c()({},e.meta,{pristine:!1}),data:c()({},e.data,a()({},n,r)),pristineData:i})},u[o.f]=function(e,t){var n=t.key,r=t.value;return c()({},e,{meta:c()({},e.meta,a()({},n,r))})},u[o.d]=function(e){return e.meta.pristine?e:c()({},e,{meta:c()({},e.meta,{pristine:!0}),data:e.pristineData,pristineData:null})},u[o.c]=function(e){return c()({},e,{addCardDialog:!0})},u[o.a]=function(e){return c()({},e,{addCardDialog:null})};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;return u[t.type]?u[t.type](e,t):e}},655:function(e,t,n){"use strict";var r,a=n(110),i=n.n(a),c=n(36),o=n.n(c),s=n(118),u=n.n(s),l=n(34),d=n.n(l),E=n(47),f=n.n(E),m=n(592),p=n(535),O=f()("woocommerce:action-list");t.a=(r={},d()(r,p.d,[function(e,t){var n=e.dispatch,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),a=t.actionList,i=a.prevSteps,c=a.currentStep,s=a.nextSteps||[],l=u()(s),d=l[0],E=l.slice(1);if(c)return void O("[handleStepNext] Warning: Attempting before current step finishes. Ignoring.");if(!d)return void O("[handleStepNext] Warning: Attempting with no nextSteps left. Ignoring.");var f=o()({},a,{prevSteps:i,currentStep:o()({},d,{startTime:r}),nextSteps:E});n(Object(m.a)(f)),d.onStep(n,f)}]),d()(r,p.e,[function(e,t){var n=e.dispatch,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),a=t.actionList,c=a.prevSteps,s=a.currentStep,u=a.nextSteps;if(!s)return void O("[handleStepSuccess] Warning: Attempting with no current step. Ignoring.");var l=o()({},a,{prevSteps:[].concat(i()(c||[]),[o()({},s,{endTime:r})]),currentStep:null,nextSteps:u});n(Object(m.a)(l)),u&&u.length>0?n(Object(m.d)(l)):a.onSuccess&&a.onSuccess(n,l)}]),d()(r,p.c,[function(e,t){var n=e.dispatch,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),a=t.actionList,c=t.error,s=a.prevSteps,u=a.currentStep,l=a.nextSteps;if(!u)return void O("[handleStepFailure] Warning: Attempting with no current step. Ignoring.");var d=o()({},a,{prevSteps:[].concat(i()(s||[]),[o()({},u,{endTime:r,error:c})]),currentStep:null,nextSteps:l});n(Object(m.a)(d)),a.onFailure&&a.onFailure(n,d)}]),r)},656:function(e,t,n){"use strict";var r,a=n(34),i=n.n(a),c=n(46),o=n(535),s=n(539),u=n(603);t.a=Object(c.b)(null,(r={},i()(r,o.k,function(){return s.b}),i()(r,o.l,function(e,t){return t.data.map(function(e){return{code:e.code,name:Object(u.a)(e.name),countries:e.countries.map(function(e){return{code:e.code,name:Object(u.a)(e.name),states:e.states.map(function(e){return{code:e.code,name:Object(u.a)(e.name)}})}})}})}),i()(r,o.j,function(e,t){var n=t.originalAction.type;return o.k===n?s.a:e}),r))},671:function(e,t,n){"use strict";n.d(t,"a",function(){return k});n(530);var r=n(107),a=n.n(r),i=n(108),c=n.n(i),o=n(528),s=n.n(o),u=n(527),l=n.n(u),d=(n(531),n(529)),E=n.n(d),f=n(34),m=n.n(f),p=n(12),O=n.n(p),_=n(10),b=n(47),g=n.n(b),h=(n(672),n(35)),v=n.n(h),S=n(1),C=g()("calypso:protect-form"),j=[],I=0;function R(e){if(j.length){C("unsaved form changes detected");var t=v.a.translate("You have unsaved changes.");return(e||window.event).returnValue=t,t}}function N(){0===I&&window.addEventListener("beforeunload",R),I++}function y(){0===--I&&window.removeEventListener("beforeunload",R)}function P(e){Object(S.includes)(j,e)||j.push(e)}function M(e){j=Object(S.without)(j,e)}var k=function(e){function t(){return a()(this,t),s()(this,l()(t).apply(this,arguments))}return E()(t,e),c()(t,[{key:"componentDidMount",value:function(){N(),this.props.isChanged&&P(this)}},{key:"componentWillUnmount",value:function(){y(),M(this)}},{key:"componentWillReceiveProps",value:function(e){e.isChanged!==this.props.isChanged&&(e.isChanged?P(this):M(this))}},{key:"render",value:function(){return null}}]),t}(_.Component);m()(k,"propTypes",{isChanged:O.a.bool.isRequired})},673:function(e,t,n){"use strict";n.d(t,"a",function(){return j});var r=n(107),a=n.n(r),i=n(108),c=n.n(i),o=n(528),s=n.n(o),u=n(527),l=n.n(u),d=n(531),E=n.n(d),f=n(529),m=n.n(f),p=n(34),O=n.n(p),_=n(10),b=n.n(_),g=n(12),h=n.n(g),v=n(526),S=n.n(v),C=n(1),j=function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return n=s()(this,(e=l()(t)).call.apply(e,[this].concat(i))),O()(E()(n),"onKeyDown",function(e){n.props.disabled||("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n.props.onChange(!n.props.checked)),n.props.onKeyDown(e))}),O()(E()(n),"onClick",function(e){e&&e.stopPropagation&&e.stopPropagation(),n.props.disabled||n.props.onChange(!n.props.checked)}),O()(E()(n),"onLabelClick",function(e){if(!n.props.disabled){var t=e.target.nodeName.toLowerCase();"a"!==t&&"input"!==t&&"select"!==t&&(e.preventDefault(),n.props.onChange(!n.props.checked))}}),n}return m()(t,e),c()(t,[{key:"componentWillMount",value:function(){this.id=this.constructor.idNum++}},{key:"render",value:function(){var e=this.props.id||"toggle-"+this.id,t=S()("form-toggle__wrapper",this.props.wrapperClassName,{"is-disabled":this.props.disabled}),n=S()("form-toggle",this.props.className,{"is-toggling":this.props.toggling});return b.a.createElement("span",{className:t},b.a.createElement("input",{id:e,className:n,type:"checkbox",checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),b.a.createElement("label",{className:"form-toggle__label",htmlFor:e},b.a.createElement("span",{className:"form-toggle__switch",onClick:this.onClick,onKeyDown:this.onKeyDown,role:"checkbox","aria-checked":this.props.checked,"aria-label":this.props["aria-label"],tabIndex:this.props.disabled?-1:0}),this.props.children&&b.a.createElement("span",{className:"form-toggle__label-content",onClick:this.onLabelClick},this.props.children)))}}]),t}(_.PureComponent);O()(j,"propTypes",{onChange:h.a.func,onKeyDown:h.a.func,checked:h.a.bool,disabled:h.a.bool,id:h.a.string,className:h.a.string,wrapperClassName:h.a.string,toggling:h.a.bool,"aria-label":h.a.string}),O()(j,"defaultProps",{checked:!1,disabled:!1,onKeyDown:C.noop,onChange:C.noop}),O()(j,"idNum",0)},674:function(e,t,n){"use strict";var r=n(107),a=n.n(r),i=n(108),c=n.n(i),o=n(528),s=n.n(o),u=n(527),l=n.n(u),d=n(529),E=n.n(d),f=n(10),m=n(12),p=n.n(m),O=n(109),_=n(30),b=n(566),g=n(544),h=function(e){function t(){return a()(this,t),s()(this,l()(t).apply(this,arguments))}return E()(t,e),c()(t,[{key:"fetch",value:function(e){var t=e.siteId,n=e.loaded,r=e.fetching,a=e.error;n||r||a||this.props.fetchSettings(t)}},{key:"UNSAFE_componentWillMount",value:function(){this.fetch(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.fetch(e)}},{key:"render",value:function(){return null}}]),t}(f.Component);h.propTypes={siteId:p.a.number.isRequired},t.a=Object(O.b)(function(e){return{loaded:Object(g.d)(e),fetching:Object(g.c)(e),error:Object(g.b)(e)}},function(e){return Object(_.b)({fetchSettings:b.a},e)})(h)},675:function(e,t,n){"use strict";var r=n(107),a=n.n(r),i=n(108),c=n.n(i),o=n(528),s=n.n(o),u=n(527),l=n.n(u),d=n(529),E=n.n(d),f=n(10),m=n(12),p=n.n(m),O=n(109),_=n(30),b=n(555),g=n(541),h=function(e){function t(){return a()(this,t),s()(this,l()(t).apply(this,arguments))}return E()(t,e),c()(t,[{key:"fetch",value:function(e){var t=e.siteId,n=e.loaded,r=e.fetching,a=e.error;n||r||a||this.props.fetchSettings(t)}},{key:"UNSAFE_componentWillMount",value:function(){this.fetch(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.fetch(e)}},{key:"render",value:function(){return null}}]),t}(f.Component);h.propTypes={siteId:p.a.number.isRequired},t.a=Object(O.b)(function(e){return{loaded:Object(g.i)(e),fetching:Object(g.h)(e),error:Object(g.g)(e)}},function(e){return Object(_.b)({fetchSettings:b.fetchSettings},e)})(h)},676:function(e,t,n){"use strict";var r=n(10),a=n.n(r),i=n(12),c=n.n(i),o=n(677),s=n.n(o),u=n(678),l=n.n(u),d=n(679),E=n.n(d),f={ups:s.a,usps:l.a,dhlexpress:E.a},m=function(e){var t=e.carrier,n=e.size;if(!t||!f[t.toLowerCase()])return a.a.createElement("span",null);var r="".concat(function(e){switch(e){case"small":return 24;case"big":return 40;case"medium":default:return 30}}(n),"px");return a.a.createElement("div",{style:{width:r},className:"carrier-icon"},a.a.createElement("img",{src:f[t.toLowerCase()],alt:t,className:"carrier-icon__logo"}))};m.propTypes={carrier:c.a.string.isRequired,size:c.a.number},t.a=m},677:function(e,t,n){e.exports=n.p+"images/881843a7135b8abd4794bd2d33dc8b3c.png"},678:function(e,t,n){e.exports=n.p+"images/41c6838923ebde874f7fc71db18dcae5.png"},679:function(e,t,n){e.exports=n.p+"images/224d57e46d3ace2d89e5c790bd828d32.png"},682:function(e,t,n){"use strict";var r=n(36),a=n.n(r),i=n(10),c=n.n(i),o=n(12),s=n.n(o),u=n(109),l=n(35),d=n(1),E=n(534),f=n.n(E),m=n(34),p=n.n(m),O=n(107),_=n.n(O),b=n(108),g=n.n(b),h=n(528),v=n.n(h),S=n(527),C=n.n(S),j=n(529),I=n.n(j),R=n(30),N=n(526),y=n.n(N),P=n(557),M=n(588);function k(e){return Object(d.get)(e,["currentUser","id"])}function T(e){var t=k(e);return t?function(e,t){return e.users.items[t]}(e,t):null}var A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n){var r=T(n);return Object(d.get)(r,e,t)}};A("localeSlug"),A("localeVariant"),A("user_ip_country_code");A("date"),A("username"),A("email");A("email_verified",!1);var L=n(532),w=n(560);function D(e){var t=Object(L.a)(e);return t||1!==function(e){var t=T(e);return t?t.site_count||0:null}(e)||(t=function(e){var t=T(e);return Object(d.get)(t,"primary_blog",null)}(e)),Object(w.a)(e,t)}var W=n(539),x=function(e,t){return Object(d.get)(e,["extensions","woocommerce","sites",t,"settings","products"])},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(L.a)(e);return Object(d.isArray)(x(e,t))},G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(L.a)(e);return W.b===x(e,t)};function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(L.a)(e),n=x(e,t);return Object(d.find)(n,function(e){return"woocommerce_dimension_unit"===e.id})||{}}var H=n(562),F=n(556),z=n(535),B=function(e){return function(t,n){if(!U(n(),e)&&!G(n(),e)){var r={type:z.N,siteId:e};return t(r),Object(H.a)(e).get("settings/products").then(function(n){t({type:z.O,siteId:e,data:n})}).catch(function(n){t(Object(F.a)(e,r,n))})}}},q=function(e){function t(){return _()(this,t),v()(this,C()(t).apply(this,arguments))}return I()(t,e),g()(t,[{key:"componentDidMount",value:function(){var e=this.props.siteId;e&&this.props.fetchSettingsProducts(e)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.siteId!==this.props.siteId&&this.props.fetchSettingsProducts(e.siteId)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noWrap,r=e.dimensions,a=e.onChange,i=e.translate,o=e.dimensionsUnit,s=y()("form-dimensions-input",t,{"no-wrap":n});return c.a.createElement("div",{className:s},c.a.createElement(P.a,{name:"length",placeholder:i("L",{comment:"Length placeholder for dimensions input"}),type:"number",value:r&&r.length||"",onChange:a,className:"form-dimensions-input__length"}),c.a.createElement(P.a,{name:"width",placeholder:i("W",{comment:"Width placeholder for dimensions input"}),type:"number",value:r&&r.width||"",onChange:a,className:"form-dimensions-input__width"}),c.a.createElement(M.a,{name:"height",placeholder:i("H",{comment:"Height placeholder for dimensions input"}),suffix:o,type:"number",noWrap:n,value:r&&r.height||"",onChange:a,className:"form-dimensions-input__height"}))}}]),t}(i.Component);p()(q,"propTypes",{className:s.a.string,dimensions:s.a.shape({width:s.a.string,height:s.a.string,length:s.a.string}),dimensionsUnit:s.a.string,onChange:s.a.func.isRequired,noWrap:s.a.bool}),p()(q,"defaultProps",{value:"",className:"",onChange:d.noop,noWrap:!1});var Z=Object(u.b)(function(e,t){var n=t.dimensionsUnit,r=D(e);if(!n){var a=r&&V(e,r.ID);n=a&&a.value||"in"}return{siteId:r&&r.ID,dimensionsUnit:n}},function(e){return Object(R.b)({fetchSettingsProducts:B},e)})(Object(l.localize)(q)),K=n(546),Q=n(547),Y=n(579),$=n(550),X=/^\.\d+$/,J=/^\d+\.$/,ee=function(e){return e=Object(d.trim)(e),X.test(e)?e="0"+e:J.test(e)&&(e=e.slice(0,e.length-1)),e},te=/^\s*(\S+)\s*x\s*(\S+)\s*x\s*(\S+)\s*$/,ne=/^\s*(\S+)?\s*x\s*(\S+)?\s*x\s*(\S+)?\s*$/,re=function(e){return isNaN(e)?"":0>e?"":e},ae=function(e){var t="",n="",r="",a=ne.exec(e);return a&&4===a.length&&(t=re(a[1]),n=re(a[2]),r=re(a[3])),{length:t,width:n,height:r}},ie=function(e){return Object(d.trim)(e)},ce=ee,oe=function(e){var t=te.exec(e);return t?[t[1],t[2],t[3]].map(ee).join(" x "):e},se=ae,ue=function(e){var t=ae(e),n=t.length,r=t.width,a=t.height;return 0<n&&0<r&&0<a},le=function(e){var t=e.siteId,n=e.form,r=e.setModalErrors,a=e.updatePackagesField,i=e.translate,o=n.mode,s=n.modalErrors,u=n.dimensionUnit,l=n.weightUnit,E=n.packageData,f=E.name,m=E.inner_dimensions,O=E.box_weight,_=E.is_letter,b=function(e,n){r(t,Object(d.omit)(s,e)),a(t,p()({},e,n))},g=function(e){var t=e.target.name,n=e.target.value;b(t,n)},h=function(e,t){var n=t||i("Invalid value."),r=""===Object(d.trim)(E[e])?i("This field is required."):n;return s[e]?c.a.createElement($.a,{text:r}):null},v=function(e){a(t,{is_letter:"envelope"===e.target.value})};return c.a.createElement("div",{className:"packages__properties-group"},"add-custom"===o?c.a.createElement(K.a,null,c.a.createElement(Q.a,{htmlFor:"package_type"},i("Type of package")),c.a.createElement(Y.a,{id:"package_type",onChange:v,value:_?"envelope":"box"},c.a.createElement("option",{value:"box"},i("Box")),c.a.createElement("option",{value:"envelope"},i("Envelope")))):null,c.a.createElement(K.a,null,c.a.createElement(Q.a,{htmlFor:"name"},i("Package name")),c.a.createElement(P.a,{id:"name",name:"name",placeholder:i("Unique package name"),value:f||"",onChange:g,isError:s.name}),h("name",i("This field must be unique"))),c.a.createElement(K.a,{className:"packages__add-package-weight-group"},c.a.createElement("div",{className:"packages__add-package-weight"},c.a.createElement(Q.a,null,i("Dimensions (L x W x H)")),function(e,t,n,r){var a=se(t),i=a.length,o=a.width,s=a.height;return c.a.createElement(Z,{dimensionsUnit:n,dimensions:{width:o,height:s,length:i},onChange:function(t){var n=t.target.name,a=t.target.value;r(e,["length"===n?a:i,"width"===n?a:o,"height"===n?a:s].join(" x "))}})}("inner_dimensions",m,u,b),h("inner_dimensions")),c.a.createElement("div",{className:"packages__add-package-weight"},c.a.createElement(Q.a,{htmlFor:"box_weight"},i("Weight of empty package")),c.a.createElement(M.a,{id:"box_weight",name:"box_weight",placeholder:i("0.0"),value:O||"",onChange:g,isError:s.box_weight,type:"number",noWrap:!0,suffix:l}),h("box_weight"))))};le.propTypes={siteId:s.a.number.isRequired,form:s.a.object.isRequired,updatePackagesField:s.a.func.isRequired,packageData:s.a.shape({name:s.a.string.isRequired,inner_dimensions:s.a.string.isRequired,box_weight:s.a.number.isRequired,is_user_defined:s.a.bool.isRequired,is_letter:s.a.bool.isRequired}),setModalErrors:s.a.func.isRequired};var de=Object(l.localize)(le),Ee=n(114),fe=n.n(Ee),me=Object(d.memoize)(function(e){return fe()(e,{greedy:!0})}),pe=function(e){return e&&""!==Object(d.trim)(e)?e:null},Oe=function(e,t){return e=pe(e),Object(d.some)(t,function(t){return t===e})?null:e},_e=/^\d+(\.\d+)?$/,be=function(e){return _e.test(e)?Number.parseFloat(e):null},ge=function(e,t,n){var r,a=me(n);return a(function(e,t){var n=be(e.box_weight),r=be(e.max_weight);n&&r&&r<=n&&(r=null);var a={name:Oe(e.name,t),inner_dimensions:e.inner_dimensions,outer_dimensions:pe(e.outer_dimensions),box_weight:n,max_weight:r};return Object(d.omitBy)(a,function(e){return null===e})}(e,t)),r=a.errors,Object(d.reduce)(r,function(e,t){if(t.field){var n,r=t.field.replace("data.","");Object.assign(e,(n={},p()(n,r,!0),p()(n,"any",!0),n))}return e},{})},he=n(551),ve=n(549),Se=n(580),Ce=function(e){var t=e.className,n=e.disabled,r=e.id,a=e.onToggle,i=e.readOnly,o=e.selectedElements,s=e.totalElements,u=o&&o===s,l=o&&o<s,d=y()("bulk-select__box",{"is-checked":u}),E=y()("bulk-select__some-checked-icon",{"is-disabled":n}),m=y()("bulk-select",t);return c.a.createElement("span",{className:m},c.a.createElement("span",{className:"bulk-select__container"},c.a.createElement("input",{id:r,type:"checkbox",className:d,onChange:function(e){i||a(!(l||u),e)},checked:u,disabled:n}),l?c.a.createElement(f.a,{className:E,icon:"minus-small",size:18}):null))};Ce.propTypes={totalElements:s.a.number.isRequired,selectedElements:s.a.number.isRequired,onToggle:s.a.func,readOnly:s.a.bool,className:s.a.string,disabled:s.a.bool};var je=Ce,Ie=n(600),Re=n(615),Ne=n(646),ye=n(541),Pe=function(e){var t=e.siteId,n=e.form,r=e.toggleAll,a=e.togglePackage,i=e.currentlyEditingPredefinedPackages,o=e.translate,s=n.dimensionUnit,u=function(e){var n="group-".concat(e.serviceId,"-").concat(e.groupId);return c.a.createElement("div",{className:"packages__group-header"},c.a.createElement("label",{htmlFor:n,onClick:function(e){return e.stopPropagation()}},c.a.createElement(je,{id:n,totalElements:e.total,selectedElements:e.selected,onToggle:function(n,a){a.stopPropagation(),r(t,e.serviceId,e.groupId,a.target.checked)},className:"packages__group-header-checkbox"}),e.title))};return c.a.createElement("div",null,function(){var e=[];return Object(d.forEach)(i,function(n,r){var i,l,d=(i=n.selected,l=n.total,i===l?o("All packages selected"):o("%(selectedCount)d package selected","%(selectedCount)d packages selected",{count:i,args:{selectedCount:i}}));e.push(c.a.createElement(Ie.a,{className:"packages__predefined-packages",key:r,header:u(n),summary:d,expandedSummary:d,clickableHeader:!0,expanded:!1,screenReaderText:o("Expand Services"),icon:"chevron-down"},function(e){return e.packages.map(function(e,n){return c.a.createElement(Ne.a,{key:n,siteId:t,data:e,dimensionUnit:s,prefixActions:!0},c.a.createElement(Re.a,{checked:e.selected,onChange:function(){return a(t,e.serviceId,e.id)}}))})}(n)))}),e}())};Pe.propTypes={siteId:s.a.number.isRequired,toggleAll:s.a.func.isRequired,togglePackage:s.a.func.isRequired,form:s.a.shape({dimensionUnit:s.a.string}).isRequired};var Me=Object(u.b)(function(e){return{currentlyEditingPredefinedPackages:Object(ye.c)(e)}})(Object(l.localize)(Pe)),ke=n(531),Te=n.n(ke),Ae=function(e){function t(){var e,n;_()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=v()(this,(e=C()(t)).call.apply(e,[this].concat(a))),p()(Te()(n),"handleKeyEvent",function(e){switch(e.keyCode){case 13:case 32:e.preventDefault(),document.activeElement.click()}}),n}return I()(t,e),g()(t,[{key:"render",value:function(){var e=y()({"segmented-control__item":!0,"is-selected":this.props.selected}),t=y()("segmented-control__link",p()({},"item-index-".concat(this.props.index),null!=this.props.index));return c.a.createElement("li",{className:e},c.a.createElement("a",{href:this.props.path,className:t,onClick:this.props.onClick,title:this.props.title,"data-e2e-value":this.props.value,role:"radio",tabIndex:0,"aria-checked":this.props.selected,onKeyDown:this.handleKeyEvent},c.a.createElement("span",{className:"segmented-control__text"},this.props.children)))}}]),t}(c.a.Component);p()(Ae,"propTypes",{children:s.a.node.isRequired,path:s.a.string,selected:s.a.bool,title:s.a.string,value:s.a.string,onClick:s.a.func,index:s.a.number}),p()(Ae,"defaultProps",{selected:!1});var Le=Ae,we=function(e){function t(){var e,n;_()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=v()(this,(e=C()(t)).call.apply(e,[this].concat(a))),p()(Te()(n),"state",{selected:n.props.initialSelected||n.props.options[0].value}),n}return I()(t,e),g()(t,[{key:"renderOptions",value:function(){var e=this;return this.props.options.map(function(t,n){return c.a.createElement(Le,{index:n,key:n,onClick:function(){e.setState({selected:t.value}),e.props.onSelect&&e.props.onSelect(t)},path:t.path,selected:e.state.selected===t.value,value:t.value},t.label)})}},{key:"render",value:function(){var e={"is-compact":this.props.compact,"is-primary":this.props.primary};return c.a.createElement("ul",{className:y()("segmented-control",e,this.props.className),style:this.props.style,role:"radiogroup"},this.renderOptions())}}]),t}(c.a.Component);p()(we,"propTypes",{className:s.a.string,compact:s.a.bool,initialSelected:s.a.string,onSelect:s.a.func,options:s.a.arrayOf(s.a.shape({value:s.a.string.isRequired,label:s.a.string.isRequired,path:s.a.string})).isRequired,style:s.a.object});var De=n(647),We=n(548),xe=n(555),Ue=function(e){var t,n=e.siteId,r=e.form,a=e.predefinedPackagesSummary,i=e.setModalErrors,o=e.savePackage,s=e.savePredefinedPackages,u=e.dismissModal,l=e.removePackage,E=e.setAddMode,m=e.updatePackagesField,p=e.translate,O=r.showModal,_=r.mode,b=r.packages,g=r.packageSchema,h=r.predefinedSchema,v=r.packageData,S=v.index,C=b.custom,j="edit"===_,I="add-custom"===_,R="add-predefined"===_,N=function(){var t={duration:5e3};e.createWcsShippingSaveActionList(function(){return"function"===typeof e.onSaveSuccess&&"name"in v&&e.onSaveSuccess(v.name),e.successNotice(p("Your shipping packages have been saved."),t)},function(){return e.errorNotice(p("Unable to save your shipping packages. Please try again."),t)},!0)},y=function(){u(n)},P=p(j?"Edit package":"Add a package"),M=I||R,k=I||j,T=R;t=I||R&&0===a.removed?p("Add package","Add packages",{count:I?1:a.added}):p("Done");var A=[c.a.createElement(Se.a,{onClick:function(){if(R)return s(n),void(e.persistOnSave&&N());var t="number"===typeof v.index?C[v.index].name:null,r=Object(d.concat)(Object(d.difference)(C.map(function(e){return e.name}),[t]),Object(d.flatten)(Object(d.map)(h,function(e){return Object(d.map)(e,function(e){return e.definitions})})),["individual"]),a=Object.assign({},v,{name:ie(v.name),inner_dimensions:oe(v.inner_dimensions),outer_dimensions:oe(v.outer_dimensions),box_weight:ce(v.box_weight),max_weight:0}),c=ge(a,r,g);if(ue(a.inner_dimensions)||(c.any=!0,c.inner_dimensions=!0),c.any)return m(n,a),void i(n,c);o(n,a),e.persistOnSave&&N()}},t),c.a.createElement(Se.a,{onClick:y,isPrimary:!1},p("Cancel"))];return j&&A.unshift({action:"delete",label:c.a.createElement("span",null,p("{{icon/}} Delete this package",{components:{icon:c.a.createElement(f.a,{icon:"trash"})}})),onClick:function(){return l(n,S)},additionalClassNames:"packages__delete is-scary is-borderless"}),c.a.createElement(he.a,{isVisible:O,additionalClassNames:"packages__add-edit-dialog woocommerce wcc-root",onClose:y,buttons:A},c.a.createElement(ve.a,{className:"packages__add-edit-title"},P),M&&c.a.createElement(we,{primary:!0,className:"packages__mode-select",initialSelected:_,onSelect:function(e){E(n,e.value)},options:[{value:"add-custom",label:"Custom package"},{value:"add-predefined",label:"Service package"}]}),k&&c.a.createElement(de,e),T&&c.a.createElement(Me,e))};Ue.propTypes={siteId:s.a.number.isRequired,dismissModal:s.a.func.isRequired,form:s.a.object.isRequired,updatePackagesField:s.a.func.isRequired,savePackage:s.a.func.isRequired,packageData:s.a.shape({index:s.a.number.isRequired}),setModalErrors:s.a.func.isRequired,removePackage:s.a.func.isRequired,setAddMode:s.a.func.isRequired};t.a=Object(u.b)(function(e){return{predefinedPackagesSummary:Object(ye.f)(e)}},function(e){return Object(R.b)(a()({createWcsShippingSaveActionList:De.a,errorNotice:We.a,successNotice:We.d},xe),e)})(Object(l.localize)(Ue))},770:function(e,t,n){},771:function(e,t,n){},791:function(e,t,n){"use strict";n.r(t);var r=n(10),a=n.n(r),i=n(107),c=n.n(i),o=n(108),s=n.n(o),u=n(528),l=n.n(u),d=n(527),E=n.n(d),f=n(531),m=n.n(f),p=n(529),O=n.n(p),_=n(34),b=n.n(_),g=n(109),h=n(30),v=n(35),S=n.n(v),C=n(542),j=n(630),I=n(12),R=n.n(I),N=n(526),y=n.n(N),P=n(1),M=n(559),k=n(530),T=n.n(k),A=n(554),L=n(533),w=n.n(L),D={en:{symbol:"K",grouping:",",decimal:"."},es:{symbol:" mil",grouping:".",decimal:","},"pt-br":{symbol:" mil",grouping:".",decimal:","},de:{symbol:" Tsd.",grouping:".",decimal:","},fr:{symbol:" k",grouping:" ",decimal:","},he:{symbol:"K",grouping:",",decimal:"."},ja:{symbol:"\u4e07",unitValue:1e4,grouping:",",decimal:"."},nl:{symbol:"K",grouping:".",decimal:","},tr:{symbol:" B",grouping:".",decimal:","},id:{symbol:" rb",grouping:".",decimal:","},"zh-cn":{symbol:"\u4e07",unitValue:1e4,grouping:",",decimal:"."},"zh-tw":{symbol:"\u842c",unitValue:1e4,grouping:",",decimal:"."},ko:{symbol:"\ucc9c",grouping:",",decimal:"."},ar:{symbol:" \u0623\u0644\u0641",grouping:"\u066c",decimal:"\u066b"},sv:{symbol:" tn",grouping:" ",decimal:","}};n(770);var W=function(e){var t=e.count,n=e.compact,r=e.numberFormat,i=e.primary,c=w()(e,["count","compact","numberFormat","primary"]);return a.a.createElement("span",T()({className:y()("count",{"is-primary":i})},Object(P.omit)(c,["translate","moment"])),n&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.a.getLocaleSlug();if(isNaN(e)||!D[t])return null;var n=D[t],r=n.decimal,a=n.grouping,i=n.symbol,c=n.unitValue,o=void 0===c?1e3:c,s=e<0?"-":"",u=Math.abs(e);if(u<o)return"".concat(s).concat(u);var l=u<10*o?1:0,d=Object(v.numberFormat)(u/o,{decimals:l,thousandsSep:a,decPoint:r});return"".concat(s).concat(d).concat(i)}(t)||r(t))};W.propTypes={count:R.a.number.isRequired,numberFormat:R.a.func,primary:R.a.bool,compact:R.a.bool},W.defaultProps={primary:!1,compact:!1};var x=Object(v.localize)(W),U=(n(771),function(e){function t(){return c()(this,t),l()(this,E()(t).apply(this,arguments))}return O()(t,e),s()(t,[{key:"render",value:function(){var e="number"===typeof this.props.count,t=!(this.props.label||e||this.props.children),n=y()(this.props.className,"section-header",{"is-empty":t}),r={id:this.props.id};return a.a.createElement(A.a,T()({className:n,href:this.props.href},r),a.a.createElement("div",{className:"section-header__label"},a.a.createElement("span",{className:"section-header__label-text"},this.props.label),e&&a.a.createElement(x,{count:this.props.count})),a.a.createElement("div",{className:"section-header__actions"},this.props.children))}}]),t}(r.PureComponent));b()(U,"defaultProps",{label:"",href:null});var G=function(e){function t(){return c()(this,t),l()(this,E()(t).apply(this,arguments))}return O()(t,e),s()(t,[{key:"render",value:function(){var e=this.props,t=e.label,n=e.description,r=e.children,i=a.a.createElement("div",null,a.a.createElement("div",{className:"extended-header__header"},t),a.a.createElement("div",{className:"extended-header__header-description"},n));return a.a.createElement(U,{className:"extended-header",label:i},r)}}]),t}(r.Component),V=n(673),H=n(36),F=n.n(H),z=n(534),B=n.n(z),q=n(605),Z=n(615),K=n(546),Q=n(547),Y=n(579),$=n(561),X=n(640),J={alipay:"Alipay",amex:"American Express",bancontact:"Bancontact","brazil-tef":"Transfer\xeancia banc\xe1ria",diners:"Diners Club",discover:"Discover",eps:"eps",giropay:"Giropay",ideal:"iDEAL",jcb:"JCB",mastercard:"Mastercard",p24:"Przelewy24",paypal:"PayPal",placeholder:"",unionpay:"UnionPay",visa:"Visa",wechat:S.a.translate("WeChat Pay",{comment:"Name for WeChat Pay - https://pay.weixin.qq.com/"}),sofort:"Sofort"},ee=Object(P.keys)(J),te=function(e){function t(){return c()(this,t),l()(this,E()(t).apply(this,arguments))}return O()(t,e),s()(t,[{key:"render",value:function(){var e=this.props,t=e.altText,n=e.className,r=e.isCompact,i=e.type,c=y()("payment-logo","is-".concat(i),{"is-compact":r},n);return a.a.createElement("div",{className:c,"aria-label":t||J[i]||""})}}]),t}(a.a.Component);b()(te,"propTypes",{className:R.a.string,type:R.a.oneOf(ee),altText:R.a.string,isCompact:R.a.bool});var ne=te,re=function(e,t,n){var r={amex:e("American Express"),discover:e("Discover"),mastercard:e("MasterCard"),visa:e("VISA"),paypal:e("PayPal")};return r[t]?n?e("%(card)s ****%(digits)s",{args:{card:r[t],digits:n}}):r[t]:null},ae=function(e){var t=e.translate,n=e.selected,r=e.isLoading,i=e.type,c=e.digits,o=e.name,s=e.expiry,u=e.onSelect;if(r)return a.a.createElement(A.a,{className:"label-settings__card"},a.a.createElement(Z.a,{className:"label-settings__card-checkbox"}),a.a.createElement(ne,{className:"label-settings__card-logo",type:"placeholder",altText:""}),a.a.createElement("div",{className:"label-settings__card-details"},a.a.createElement("p",{className:"label-settings__card-number"}),a.a.createElement("p",{className:"label-settings__card-name"})),a.a.createElement("div",{className:"label-settings__card-date"},a.a.createElement("p",null)));var l=re(t,i,c),d=l?i:"placeholder",E=l||i;return a.a.createElement(A.a,{className:"label-settings__card",onClick:u},a.a.createElement(Z.a,{className:"label-settings__card-checkbox",checked:n,onChange:u}),a.a.createElement(ne,{className:"label-settings__card-logo",type:d,altText:l}),a.a.createElement("div",{className:"label-settings__card-details"},a.a.createElement("p",{className:"label-settings__card-number"},E),a.a.createElement("p",{className:"label-settings__card-name"},o)),a.a.createElement("div",{className:"label-settings__card-date"},t("Expires %(date)s",{args:{date:s},context:"date is of the form MM/YY"})))};ae.propTypes={selected:R.a.bool.isRequired,isLoading:R.a.bool,type:R.a.string,digits:R.a.string,name:R.a.string,expiry:R.a.string,onSelect:R.a.func};var ie=Object(v.localize)(ae),ce=n(645),oe=n(566),se=n(544),ue=function(){return null},le=function(){return null},de=function(e){function t(){var e,n;c()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=l()(this,(e=E()(t)).call.apply(e,[this].concat(i))),b()(m()(n),"renderPaymentPermissionNotice",function(){var e=n.props,t=e.canEditPayments,r=e.canEditSettings,i=e.masterUserName,c=e.masterUserLogin,o=e.translate;return!r||t?null:a.a.createElement($.a,{showDismiss:!1},o("Only the site owner can manage shipping label payment methods. Please contact %(ownerName)s (%(ownerLogin)s) to manage payment methods.",{args:{ownerName:i,ownerLogin:c}}))}),b()(m()(n),"refetchSettings",function(){n.props.fetchSettings(n.props.siteId)}),b()(m()(n),"renderPaymentWarningNotice",function(){var e=n.props,t=e.paymentMethodsWarning,r=e.translate;if(t)return a.a.createElement($.a,{status:"is-warning",showDismiss:!1,text:t},a.a.createElement(X.a,{onClick:n.refetchSettings},r("Retry")))}),b()(m()(n),"renderSettingsPermissionNotice",function(){var e=n.props,t=e.canEditSettings,r=e.masterUserName,i=e.masterUserLogin,c=e.translate;return t?null:a.a.createElement($.a,{showDismiss:!1},c("Only the site owner can change these settings. Please contact %(ownerName)s (%(ownerLogin)s) to change the shipping label settings.",{args:{ownerName:r,ownerLogin:i}}))}),b()(m()(n),"renderAddCardExternalInfo",function(){var e=n.props,t=e.masterUserWpcomLogin,r=e.masterUserEmail,i=e.translate;return t?a.a.createElement("p",null,i("Credit cards are retrieved from the following WordPress.com account: %(wpcomLogin)s <%(wpcomEmail)s>",{args:{wpcomLogin:t,wpcomEmail:r}})):null}),b()(m()(n),"onVisibilityChange",function(){document.hidden||n.refetchSettings(),n.addCreditCardWindow&&n.addCreditCardWindow.closed&&document.removeEventListener("visibilitychange",n.onVisibilityChange)}),b()(m()(n),"renderPaymentsSection",function(){var e=n.props,t=e.siteId,r=e.canEditPayments,i=e.paymentMethods,c=e.selectedPaymentMethod,o=e.isReloading,s=e.translate;if(!n.state.expanded){var u;if(c){var l=Object(P.find)(i,{payment_method_id:c}),d=l.card_type,E=l.card_digits;u=s("We'll charge the credit card on your account (%(card)s) to pay for the labels you print",{args:{card:re(s,d,E)}})}else u=s("To purchase shipping labels, add a credit card.");return a.a.createElement("div",null,n.renderPaymentPermissionNotice(),a.a.createElement("p",{className:"label-settings__credit-card-description"},u),r&&a.a.createElement("p",{className:"label-settings__credit-card-description"},a.a.createElement(C.a,{onClick:function(e){e.preventDefault(),n.setState({expanded:!0})},borderless:!0},s("Choose a different card"))))}var f,m;i.length?(f=s("To purchase shipping labels, choose a credit card you have on file or add a new card."),m=s("Add another credit card")):(f=s("To purchase shipping labels, add a credit card."),m=s("Add a credit card"));return a.a.createElement("div",null,n.renderPaymentPermissionNotice(),a.a.createElement("p",{className:"label-settings__credit-card-description"},f),!o&&n.renderPaymentWarningNotice(),a.a.createElement(ue,null),o?a.a.createElement("div",{className:"label-settings__placeholder"},a.a.createElement(ie,{selected:!1,isLoading:!0}),a.a.createElement(ie,{selected:!1,isLoading:!0})):i.map(function(e,t){return a.a.createElement(ie,{key:t,selected:c===e.payment_method_id,type:e.card_type,name:e.name,digits:e.card_digits,expiry:e.expiry,onSelect:function(){return t=e.payment_method_id,n.props.setValue("selected_payment_method_id",t);var t}})}),a.a.createElement(le,{siteId:t}),a.a.createElement(C.a,{className:"label-settings__internal",onClick:function(){n.props.openAddCardDialog(t)},compact:!0},m),a.a.createElement("div",{className:"label-settings__credit-card-description label-settings__external"},n.renderAddCardExternalInfo(),a.a.createElement(C.a,{onClick:function(){n.addCreditCardWindow=window.open(Object(ce.a)()+"/me/purchases/add-credit-card"),document.addEventListener("visibilitychange",n.onVisibilityChange)},compact:!0},m," ",a.a.createElement(B.a,{icon:"external"}))))}),b()(m()(n),"renderEmailReceiptsSection",function(){var e=n.props,t=e.emailReceipts,r=e.translate,i=e.masterUserName,c=e.masterUserLogin,o=e.masterUserEmail,s=e.canEditSettings,u=e.canEditPayments;if(!Object(P.isBoolean)(t))return null;return a.a.createElement(K.a,null,a.a.createElement(Q.a,{className:"label-settings__cards-label"},r("Email Receipts")),a.a.createElement(Q.a,null,a.a.createElement(Z.a,{checked:t,onChange:function(){return n.props.setValue("email_receipts",!t)},disabled:!u&&!s}),a.a.createElement("span",{className:"label-settings__credit-card-description"},r("Email the label purchase receipts to %(ownerName)s (%(ownerLogin)s) at %(ownerEmail)s",{args:{ownerName:i,ownerLogin:c,ownerEmail:o}}))))}),b()(m()(n),"renderContent",function(){var e=n.props,t=e.canEditSettings,r=e.isLoading,i=e.paperSize,c=e.storeOptions,o=e.translate;if(r)return n.renderPlaceholder();var s=Object(q.a)(c.origin_country);return a.a.createElement("div",null,a.a.createElement(K.a,null,n.renderSettingsPermissionNotice(),a.a.createElement(Q.a,{className:"label-settings__cards-label"},o("Paper size")),a.a.createElement(Y.a,{onChange:function(e){return n.props.setValue("paper_size",e.target.value)},value:i,disabled:!t},Object.keys(s).map(function(e){return a.a.createElement("option",{value:e,key:e},s[e])}))),a.a.createElement(K.a,null,a.a.createElement(Q.a,{className:"label-settings__cards-label"},o("Payment")),n.renderPaymentsSection()),n.renderEmailReceiptsSection())}),n}return O()(t,e),s()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.setState({expanded:this.isExpanded(this.props)})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.selectedPaymentMethod!==this.props.selectedPaymentMethod&&this.setState({expanded:this.isExpanded(e)})}},{key:"isExpanded",value:function(e){var t=e.canEditPayments,n=e.pristine,r=e.selectedPaymentMethod;return t&&(!r||!n)}},{key:"renderPlaceholder",value:function(){return a.a.createElement("div",{className:"label-settings__placeholder"},a.a.createElement(K.a,null,a.a.createElement(Q.a,{className:"label-settings__cards-label"},a.a.createElement("span",null)),a.a.createElement(Y.a,null)),a.a.createElement(K.a,null,a.a.createElement(Q.a,{className:"label-settings__cards-label"},a.a.createElement("span",null)),a.a.createElement("p",{className:"label-settings__credit-card-description"}),a.a.createElement(ie,{selected:!1,isLoading:!0}),a.a.createElement(ie,{selected:!1,isLoading:!0}),a.a.createElement(C.a,{compact:!0})))}},{key:"render",value:function(){return a.a.createElement("div",{className:"label-settings__labels-container"},this.renderContent())}}]),t}(r.Component);de.propTypes={siteId:R.a.number.isRequired,setValue:R.a.func.isRequired};var Ee=Object(g.b)(function(e,t){var n=t.siteId;return F()({isLoading:Object(se.c)(e,n)&&!Object(se.d)(e,n),isReloading:Object(se.c)(e,n)&&Object(se.d)(e,n),pristine:Object(se.o)(e,n),paymentMethods:Object(se.l)(e,n),paymentMethodsWarning:Object(se.m)(e,n),selectedPaymentMethod:Object(se.n)(e,n),paperSize:Object(se.k)(e,n),storeOptions:Object(se.h)(e,n),canEditPayments:Object(se.q)(e,n),canEditSettings:Object(se.q)(e,n)||Object(se.p)(e,n),emailReceipts:Object(se.e)(e,n)},Object(se.j)(e,n))},function(e){return Object(h.b)({openAddCardDialog:oe.b,fetchSettings:oe.a},e)})(Object(v.localize)(de)),fe=n(674),me=n(532),pe=function(e){function t(){var e,n;c()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=l()(this,(e=E()(t)).call.apply(e,[this].concat(i))),b()(m()(n),"setValue",function(e,t){n.props.onChange(),n.props.setFormDataValue(n.props.siteId,e,t)}),b()(m()(n),"onEnabledToggle",function(){n.props.onChange(),n.props.setFormDataValue(n.props.siteId,"enabled",!n.props.labelsEnabled)}),b()(m()(n),"renderContent",function(){var e=n.props,t=e.isFetchError,r=e.siteId,i=e.translate;return t?a.a.createElement("p",null,i("Unable to get your settings. Please refresh the page to try again.")):a.a.createElement(Ee,{siteId:r,setValue:n.setValue})}),n}return O()(t,e),s()(t,[{key:"componentWillUnmount",value:function(){this.props.restorePristineSettings(this.props.siteId)}},{key:"render",value:function(){var e=this.props,t=e.formMeta,n=e.canManagePayments,r=e.canEditSettings,i=e.labelsEnabled,c=e.siteId,o=e.translate;if(!t)return a.a.createElement(fe.a,{siteId:c});var s=Object(P.isBoolean)(i),u=Object(P.isBoolean)(i)&&!i;return a.a.createElement("div",null,a.a.createElement(fe.a,{siteId:c}),a.a.createElement(G,{label:o("Shipping Labels"),description:o("Print shipping labels yourself and save a trip to the post office")},s&&a.a.createElement(V.a,{checked:i,onChange:this.onEnabledToggle,disabled:Boolean(!n&&!r)})),a.a.createElement(M.a,{className:y()("label-settings__labels-container",{hidden:u})},this.renderContent()))}}]),t}(r.Component);pe.propTypes={onChange:R.a.func.isRequired,submit:R.a.func};var Oe=Object(g.b)(function(e){return{siteId:Object(me.a)(e),formMeta:Object(se.g)(e),labelsEnabled:Object(se.a)(e),isFetchError:Object(se.b)(e),canManagePayments:Object(se.q)(e),canEditSettings:Object(se.p)(e)}},function(e){return Object(h.b)({setFormDataValue:oe.d,restorePristineSettings:oe.c},e)})(Object(v.localize)(pe)),_e=n(589),be=n(682),ge=n(646),he=n(675),ve=n(555),Se=n(541),Ce=function(e){function t(){var e,n;c()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=l()(this,(e=E()(t)).call.apply(e,[this].concat(i))),b()(m()(n),"renderListHeader",function(e){var t=n.props.translate;return e&&e.length?a.a.createElement("div",{className:"packages__packages-row packages__packages-header"},a.a.createElement("div",{className:"packages__packages-row-icon"}),a.a.createElement("div",{className:"packages__packages-row-details"},t("Name")),a.a.createElement("div",{className:"packages__packages-row-dimensions"},t("Dimensions")),a.a.createElement("div",{className:"packages__packages-row-actions"})):null}),b()(m()(n),"renderListItem",function(e,t){var r=n.props,i=r.siteId,c=r.isFetching,o=r.form,s=r.translate,u=o.dimensionUnit,l=null;if(e.is_user_defined){l=a.a.createElement(C.a,{compact:!0,onClick:function(){n.props.onChange(),n.props.editPackage(i,e)}},s("Edit"))}else{l=a.a.createElement(C.a,{compact:!0,onClick:function(){n.props.onChange(),n.props.removePredefinedPackage(i,e.serviceId,e.id)}},s("Remove"))}return a.a.createElement(ge.a,{key:t,siteId:i,isPlaceholder:c,data:e,dimensionUnit:u},l)}),n}return O()(t,e),s()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.isFetching,r=t.fetchError,i=t.siteId,c=t.allSelectedPackages,o=t.translate;if(r)return null;var s=n?[{},{},{}]:c;return a.a.createElement("div",null,a.a.createElement(he.a,{siteId:i}),a.a.createElement(G,{label:o("Packaging"),description:o("Add boxes, envelopes, and other packages you use most frequently")},a.a.createElement(C.a,{onClick:function(){e.props.onChange(),e.props.addPackage(i)},disabled:n},o("Add package"))),a.a.createElement(M.a,{className:"packages__packages"},this.renderListHeader(s),s.map(this.renderListItem),!n&&a.a.createElement(be.a,this.props)))}}]),t}(r.Component);Ce.propTypes={addPackage:R.a.func.isRequired,removePackage:R.a.func.isRequired,editPackage:R.a.func.isRequired,dismissModal:R.a.func.isRequired,onChange:R.a.func.isRequired,savePackage:R.a.func.isRequired,updatePackagesField:R.a.func.isRequired,toggleOuterDimensions:R.a.func.isRequired,setModalErrors:R.a.func.isRequired,showModal:R.a.bool,form:R.a.shape({packages:R.a.object,dimensionUnit:R.a.string,weightUnit:R.a.string,packageSchema:R.a.object,predefinedSchema:R.a.oneOfType([R.a.object,R.a.array])}).isRequired};var je=Object(g.b)(function(e){var t=Object(me.a)(e),n=Object(Se.e)(e,t)||{};return{siteId:t,isFetching:!n.packages||n.isFetching,fetchError:Object(Se.g)(e,t),form:n,allSelectedPackages:Object(Se.b)(e,t)||[]}},function(e){return F()({},Object(h.b)(ve,e))})(Object(v.localize)(Ce)),Ie=n(111),Re=n.n(Ie),Ne=n(76),ye=n.n(Ne),Pe=n(676),Me=n(551),ke=n(543),Te=n(548),Ae=function(e){var t=e.data,n=e.translate,r=e.errorNotice,i=e.successNotice,c=e.siteId,o=a.a.useState(!1),s=ye()(o,2),u=s[0],l=s[1],d=a.a.useState(!1),E=ye()(d,2),f=E[0],m=E[1],p=a.a.useState(t.id),O=ye()(p,2),_=O[0],b=O[1],g=a.a.useCallback(function(){l(!0)},[l]),h=a.a.useCallback(function(){l(!1)},[l]),v=a.a.useCallback(function(){(function(){var e=Re()(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.next=4,ke.a(c,ke.d.shippingCarrierDelete(_));case 4:l(!1),i(n("Your carrier account was disconnected succesfully.")),b(null),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),r(n("There was an error trying to disconnect your carrier account"));case 12:m(!1);case 13:case"end":return e.stop()}},e,null,[[1,9]])}));return function(){return e.apply(this,arguments)}})()()},[l,r,i,m,c,b,_]),S=a.a.useMemo(function(){return[a.a.createElement(C.a,{compact:!0,primary:!0,disabled:f,onClick:h},n("Cancel")),a.a.createElement(C.a,{compact:!0,primary:!0,scary:!0,disabled:f,busy:f,onClick:v},n("Disconnect"))]},[h,v,f]);return a.a.createElement("div",{className:"carrier-accounts__list-item"},a.a.createElement("div",{className:"carrier-accounts__list-item-carrier-icon"},a.a.createElement(Pe.a,{carrier:{DhlExpressAccount:"dhlexpress",UpsAccount:"ups"}[t.type],size:18})),a.a.createElement("div",{className:"carrier-accounts__list-item-name"},a.a.createElement("span",null,t.carrier)),a.a.createElement("div",{className:"carrier-accounts__list-item-credentials"},a.a.createElement("span",null,_?t.account:null)),a.a.createElement("div",{className:"carrier-accounts__list-item-actions"},_?a.a.createElement(C.a,{onClick:g,compact:!0,scary:!0,borderless:!0},n("Disconnect")):a.a.createElement("a",{href:"/wp-admin/admin.php?page=wc-settings&tab=shipping§ion=woocommerce-services-settings&carrier=".concat(t.type),className:"button is-compact"},n("Connect"))),a.a.createElement(Me.a,{isVisible:u,additionalClassNames:"carrier-accounts__settings-cancel-dialog",onClose:h,buttons:S},a.a.createElement("div",{className:"carrier-accounts__settings-cancel-dialog-header"},a.a.createElement("h2",{className:"carrier-accounts__settings-cancel-dialog-title"},n("Disconnect your %(carrier_name)s account",{args:{carrier_name:t.carrier}})),a.a.createElement("button",{className:"carrier-accounts__settings-cancel-dialog-close-button",onClick:h},a.a.createElement(B.a,{icon:"cross"}))),a.a.createElement("p",{className:"carrier-accounts__settings-cancel-dialog-description"},n("This will remove the connection with %(carrier_name)s. All of your %(carrier_name)s account information will be deleted and you won\u2019t see %(carrier_name)s rates.",{args:{carrier_name:t.carrier}}))))};Ae.propTypes={errorNotice:R.a.func.isRequired,successNotice:R.a.func.isRequired,siteId:R.a.number.isRequired,data:R.a.shape({id:R.a.string,carrier:R.a.string.isRequired,account:R.a.string,type:R.a.string}).isRequired};var Le={errorNotice:Te.a,successNotice:Te.d},we=Object(h.d)(Object(g.b)(function(e){return{siteId:Object(me.a)(e)}},Le),v.localize)(Ae),De=function(e){var t=e.translate,n=e.carriers,r=void 0===n?[]:n;return 0===r.length?null:a.a.createElement("div",null,a.a.createElement(G,{label:t("Carrier account"),description:t("Set up your own carrier account by adding your credentials here")}),a.a.createElement(M.a,{className:"carrier-accounts__list"},a.a.createElement("div",{className:"carrier-accounts__header"},a.a.createElement("div",{className:"carrier-accounts__header-icon"}),a.a.createElement("div",{className:"carrier-accounts__header-name"},t("Name")),Object(P.some)(r,"account")&&a.a.createElement("div",{className:"carrier-accounts__header-credentials"},t("Credentials")),a.a.createElement("div",{className:"carrier-accounts__header-actions"})),r.map(function(e,t){return a.a.createElement(we,{key:t,data:e})})))};De.propTypes={carriers:R.a.arrayOf(R.a.shape({id:R.a.string,carrier:R.a.string.isRequired,account:R.a.string,type:R.a.string}))};var We=Object(v.localize)(De),xe=n(601),Ue=n(599),Ge=n(577),Ve=n(537),He=n(603),Fe=/(?:[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/,ze=/^\d{5}$/,Be=/^[a-zA-Z0-9]{6}$/,qe=/^(\d{9}|\d{13})$/,Ze=/^\d{10}$/,Ke=/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/,Qe=/^(?:(?:(?:https?|ftp):)?\/\/)*(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[\/?#]\S*)?$/i,Ye=Object(v.localize)(function(e){var t=e.isVisible,n=e.onCancel,i=e.onConfirm,c=e.translate,o=Object(r.useMemo)(function(){return[a.a.createElement(C.a,{compact:!0,onClick:n,key:"cancel"},c("Cancel")),a.a.createElement(C.a,{compact:!0,primary:!0,scary:!0,onClick:i,key:"ok"},c("Ok"))]},[n,i,c]);return a.a.createElement(Me.a,{isVisible:t,additionalClassNames:"carrier-accounts__settings-cancel-dialog",onClose:n,buttons:o},a.a.createElement("div",{className:"carrier-accounts__settings-cancel-dialog-header"},a.a.createElement("h2",{className:"carrier-accounts__settings-cancel-dialog-title"},c("Cancel connection")),a.a.createElement("button",{className:"carrier-accounts__settings-cancel-dialog-close-button",onClick:n},a.a.createElement(B.a,{icon:"cross"}))),a.a.createElement("p",{className:"carrier-accounts__settings-cancel-dialog-description"},c("This action will delete any information entered on the form.")))}),$e=Object(h.d)(Object(g.b)(function(e,t){return{stateNames:Object(Ve.k)(e,t.countryValue)}}),v.localize)(function(e){var t=e.onUpdate,n=e.error,i=e.stateNames,c=e.translate,o=e.value,s=Object(r.useMemo)(function(){return i?F()({"":c("Select one\u2026")},i):i},[i,c]);return s?a.a.createElement(xe.a,{id:"state",title:c("State"),value:o,valuesMap:s,updateValue:t,error:n}):a.a.createElement(Ge.a,{id:"state",title:c("State"),updateValue:t,error:n})}),Xe=function(e){var t=e.translate,n=e.errorNotice,i=e.successNotice,c=e.countryNames,o=e.siteId,s=Object(r.useState)(!1),u=ye()(s,2),l=u[0],d=u[1],E=Object(r.useState)(!1),f=ye()(E,2),m=f[0],p=f[1],O=Object(r.useState)(!1),_=ye()(O,2),g=_[0],h=_[1],v=Object(r.useState)({country:"US"}),S=ye()(v,2),j=S[0],I=S[1],R=function(e,t,n){var r={},a=["account_number","name","street1","city","state","country","postal_code","phone","email","title","website",t&&"invoice_number",t&&"invoice_date"].filter(Boolean),i=!0,c=!1,o=void 0;try{for(var s,u=a[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var l=s.value,d=e[l];(!d||"string"===typeof d&&""===d.trim())&&(r[l]=n("This field is required"))}}catch(E){c=!0,o=E}finally{try{i||null==u.return||u.return()}finally{if(c)throw o}}return e.account_number&&!e.account_number.match(Be)&&(r.account_number=n("The UPS account number needs to be 6 letters and digits in length")),e.phone&&!e.phone.match(Ze)&&(r.phone=n("The phone number needs to be 10 digits in length")),"US"===e.country&&e.postal_code&&!e.postal_code.match(ze)&&(r.postal_code=n("The ZIP/Postal code needs to be 5 digits in length")),e.email&&!e.email.match(Fe)&&(r.email=n("The email format is not valid")),e.website&&!e.website.match(Qe)&&(r.website=n("The company website format is not valid")),t&&e.invoice_number&&!e.invoice_number.match(qe)&&(r.invoice_number=n("The invoice number needs to be 9 or 13 digits in length")),t&&e.invoice_date&&!e.invoice_date.match(Ke)&&(r.invoice_date=n("The date must be a valid date in the format YYYY-MM-DD")),r}(j,m,t),N=function(e){return j[e]?Object(He.a)(j[e]):""},y=Object(r.useCallback)(function(e,t){var n=t.currentTarget.id;I(function(t){return F()({},t,b()({},n,e))})},[I]),P=Object(r.useCallback)(function(){(function(){var e=Re()(regeneratorRuntime.mark(function e(){var r,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),e.prev=1,r=F()({},j,{type:"UpsAccount"}),m&&(delete j.invoice_number,delete j.invoice_date,delete j.invoice_amount,delete j.invoice_currency,delete j.invoice_control_id),e.next=6,ke.c(o,ke.d.shippingCarrier(),r);case 6:if(e.sent.success){e.next=9;break}throw new Error;case 9:i(t("Your carrier account was connected successfully.")),(a=new URL(window.location.href)).searchParams.delete("carrier"),window.onbeforeunload=null,window.location.href=a.href,e.next=20;break;case 16:e.prev=16,e.t0=e.catch(1),d(!1),n(t("There was an error connecting to your %(carrierName)s account. Please check that all of the information entered matches your %(carrierName)s account and try to connect again.",{args:{carrierName:"UPS"}}));case 20:case"end":return e.stop()}},e,null,[[1,16]])}));return function(){return e.apply(this,arguments)}})()()},[d,n,i,t,j,m]),M=Object(r.useCallback)(function(){p(function(e){return!e})},[p]),k=Object(r.useCallback)(function(){h(!1)},[h]),T=Object(r.useCallback)(function(){var e=new URL(window.location.href);e.searchParams.delete("carrier"),window.onbeforeunload=null,window.location.href=e.href},[]),L=Object(r.useCallback)(function(){h(!0)},[h]);return a.a.createElement("div",{className:"carrier-accounts__settings-container"},a.a.createElement("div",{className:"carrier-accounts__settings"},a.a.createElement("div",{className:"carrier-accounts__settings-info"},a.a.createElement("h4",{className:"carrier-accounts__settings-subheader-above-description"},t("Connect your UPS account")),a.a.createElement("p",{className:"carrier-accounts__settings-subheader-description"},t("Set up your own UPS carrier account to compare rates and print labels from multiple carriers in WooCommerce Shipping. Learn more about adding {{a}}carrier accounts{{/a}}.",{components:{a:a.a.createElement("a",{href:"https://docs.woocommerce.com/document/productid-type-permalinks/using-your-own-ups-account-in-woocommerce-shipping/"})}})),a.a.createElement("p",{className:"carrier-accounts__settings-subheader-description"},t("If you need a UPS account number, go to {{a}}UPS.com{{/a}} to create a new account.",{components:{a:a.a.createElement("a",{href:"https://ups.com/"})}}))),a.a.createElement("div",{className:"carrier-accounts__settings-form"},a.a.createElement(A.a,null,a.a.createElement("h4",{className:"carrier-accounts__settings-subheader"},t("General information")),a.a.createElement("p",{className:"carrier-accounts__settings-subheader-description"},t("This is the account number and address from your UPS profile"))),a.a.createElement(A.a,{className:"carrier-accounts__settings-account-number"},a.a.createElement(Ge.a,{id:"account_number",title:t("Account number"),updateValue:y,error:"string"===typeof j.account_number?R.account_number:void 0})),a.a.createElement(A.a,{className:"carrier-accounts__settings-address"},a.a.createElement(Ge.a,{id:"name",title:t("Name"),updateValue:y,error:"string"===typeof j.name?R.name:void 0}),a.a.createElement(Ge.a,{id:"street1",title:t("Address"),updateValue:y,error:"string"===typeof j.street1?R.street1:void 0}),a.a.createElement("div",{className:"carrier-accounts__settings-two-columns"},a.a.createElement(Ge.a,{id:"street2",title:t("Address 2 (optional)"),updateValue:y,error:"string"===typeof j.street2?R.street2:void 0}),a.a.createElement(Ge.a,{id:"city",title:t("City"),updateValue:y,error:"string"===typeof j.city?R.city:void 0})),a.a.createElement("div",{className:"carrier-accounts__settings-two-columns"},a.a.createElement($e,{countryValue:j.country,value:N("state"),onUpdate:y,error:"string"===typeof j.state?R.state:void 0}),a.a.createElement(xe.a,{id:"country",title:t("Country"),value:N("country"),valuesMap:c,updateValue:y,error:"string"===typeof j.country?R.country:void 0})),a.a.createElement("div",{className:"carrier-accounts__settings-two-columns"},a.a.createElement(Ge.a,{id:"postal_code",title:t("ZIP/Postal code"),updateValue:y,error:"string"===typeof j.postal_code?R.postal_code:void 0}),a.a.createElement(Ge.a,{id:"phone",title:t("Phone"),updateValue:y,error:"string"===typeof j.phone?R.phone:void 0})),a.a.createElement(Ge.a,{id:"email",title:t("Email"),updateValue:y,error:"string"===typeof j.email?R.email:void 0})),a.a.createElement(A.a,{className:"carrier-accounts__settings-company-info"},a.a.createElement("div",{className:"carrier-accounts__settings-header"},a.a.createElement("h4",{className:"carrier-accounts__settings-subheader"},t("Company information")),a.a.createElement("p",{className:"carrier-accounts__settings-subheader-description"},t("This is the company info you used to create your UPS account"))),a.a.createElement(Ge.a,{id:"company",title:t("Company name"),updateValue:y,error:"string"===typeof j.company?R.company:void 0}),a.a.createElement("div",{className:"carrier-accounts__settings-two-columns"},a.a.createElement(Ge.a,{id:"title",title:t("Job title"),updateValue:y,error:"string"===typeof j.title?R.title:void 0}),a.a.createElement(Ge.a,{id:"website",title:t("Company website"),updateValue:y,error:"string"===typeof j.website?R.website:void 0}))),a.a.createElement(A.a,{className:"carrier-accounts__settings-ups-info"},a.a.createElement("div",{className:"carrier-accounts__settings-header"},a.a.createElement("h4",{className:"carrier-accounts__settings-subheader"},t("UPS account information")),a.a.createElement(Ue.a,{id:"enable_ups_invoice_fields",checked:m,onChange:M}),a.a.createElement("span",null,t("I have been issued an invoice from UPS within the past 90 days"))),m&&a.a.createElement("div",{className:"carrier-accounts__settings-ups-invoice"},a.a.createElement("div",{className:"carrier-accounts__settings-two-columns"},a.a.createElement(Ge.a,{id:"invoice_number",title:t("UPS invoice number"),updateValue:y,error:"string"===typeof j.invoice_number?R.invoice_number:void 0}),a.a.createElement(Ge.a,{id:"invoice_date",title:t("UPS invoice date"),updateValue:y,error:"string"===typeof j.invoice_date?R.invoice_date:void 0,placeholder:"YYYY-MM-DD"})),a.a.createElement("div",{className:"carrier-accounts__settings-two-columns"},a.a.createElement(Ge.a,{id:"invoice_amount",title:t("UPS invoice amount"),updateValue:y,error:"string"===typeof j.invoice_amount?R.invoice_amount:void 0}),a.a.createElement(Ge.a,{id:"invoice_currency",title:t("UPS invoice currency"),updateValue:y,error:"string"===typeof j.invoice_currency?R.invoice_currency:void 0})),a.a.createElement(Ge.a,{id:"invoice_control_id",title:t("UPS invoice control id"),updateValue:y,error:"string"===typeof j.invoice_control_id?R.invoice_control_id:void 0}))),a.a.createElement(A.a,{className:"carrier-accounts__settings-actions"},a.a.createElement(C.a,{compact:!0,primary:!0,onClick:P,disabled:Object.keys(R).length>0||l,busy:l},t("Connect")),a.a.createElement(C.a,{compact:!0,onClick:L},t("Cancel")))),a.a.createElement(Ye,{isVisible:g,onConfirm:T,onCancel:k})))};Xe.propTypes={siteId:R.a.number,countryNames:R.a.object,translate:R.a.func,errorNotice:R.a.func,successNotice:R.a.func};var Je={errorNotice:Te.a,successNotice:Te.d},et=Object(h.d)(Object(g.b)(function(e){return{countryNames:Object(Ve.c)(e),siteId:Object(me.a)(e)}},Je),v.localize)(Xe),tt=function(e){var t=e.visibility,n=e.label,i=e.id,c=e.value,o=e.onChange,s=Object(r.useCallback)(function(){o(i,!c)},[i,c,o]),u=Object(r.useCallback)(function(e){o(i,e)},[i,c,o]);switch(t){case"select":case"checkbox":return a.a.createElement(a.a.Fragment,null,a.a.createElement(Ue.a,{id:i,onChange:s,checked:c||!1}),a.a.createElement("label",{htmlFor:i},a.a.createElement("span",null,n)));case"invisible":case"masked":case"readonly":case"password":case"visible":default:return a.a.createElement(Ge.a,{id:i,title:n,updateValue:u})}},nt=function(e){var t=e.translate,n=e.siteId,i=e.carrierType,c=e.errorNotice,o=e.successNotice,s=e.carrierName,u=e.carrierDescription,l=e.registrationFields,d=Object(r.useState)({}),E=ye()(d,2),f=E[0],m=E[1],p=Object(r.useState)(!1),O=ye()(p,2),_=O[0],g=O[1],h=Object(r.useCallback)(function(e,t){m(function(n){return F()({},n,b()({},e,t))})},[m]),v=Object(r.useCallback)(function(){(function(){var e=Re()(regeneratorRuntime.mark(function e(){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return g(!0),e.prev=1,e.next=4,ke.c(n,ke.d.shippingCarrier(),F()({},f,{type:i}));case 4:if(e.sent.success){e.next=7;break}throw new Error;case 7:o(t("Your carrier account was connected successfully.")),(r=new URL(window.location.href)).searchParams.delete("carrier"),window.onbeforeunload=null,window.location.href=r.href,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),c(t("There was an error connecting to your %(carrierName)s account. Please check that all of the information entered matches your %(carrierName)s account and try to connect again.",{args:{carrierName:s}}));case 17:g(!1);case 18:case"end":return e.stop()}},e,null,[[1,14]])}));return function(){return e.apply(this,arguments)}})()()},[_,g,n,i,s,f,c,t]),S=Object(r.useCallback)(function(){history.back()},[]);return a.a.createElement("div",{className:"carrier-accounts__settings-container"},a.a.createElement("div",{className:"carrier-accounts__settings"},a.a.createElement("div",{className:"carrier-accounts__settings-info"},a.a.createElement("h4",{className:"carrier-accounts__settings-subheader-above-description"},t("Connect your %(carrierName)s account",{args:{carrierName:s}})),a.a.createElement("p",{className:"carrier-accounts__settings-subheader-description"},u||t("Set up your own carrier account to compare rates and print labels from multiple carriers in WooCommerce Shipping. Learn more about adding {{a}}carrier accounts{{/a}}.",{components:{a:a.a.createElement("a",{href:"https://docs.woocommerce.com/document/using-your-own-carrier-account-in-woocommerce-shipping"})}}))),a.a.createElement("div",{className:"carrier-accounts__settings-form"},a.a.createElement(A.a,null,a.a.createElement("h4",{className:"carrier-accounts__settings-subheader"},t("General Information"))),a.a.createElement(A.a,null,l&&Object.entries(l).map(function(e){var t=ye()(e,2),n=t[0],r=t[1];return a.a.createElement(tt,{key:n,id:n,visibility:r.visibility,label:r.label,value:f[n],onChange:h})})),a.a.createElement(A.a,{className:"carrier-accounts__settings-actions"},a.a.createElement(C.a,{compact:!0,primary:!0,onClick:v,disabled:_},t("Connect")),a.a.createElement(C.a,{compact:!0,onClick:S},t("Cancel"))))))},rt={errorNotice:Te.a,successNotice:Te.d};nt.propTypes={errorNotice:R.a.func,successNotice:R.a.func,carrierType:R.a.string,carrierName:R.a.string,carrierDescription:R.a.string,registrationFields:R.a.object,siteId:R.a.number,translate:R.a.func};var at=Object(h.d)(Object(g.b)(function(e){return{siteId:Object(me.a)(e)}},rt),v.localize)(nt),it=function(e){var t=e.translate,n=Object(r.useState)([]),i=ye()(n,2),c=i[0],o=i[1];if(Object(r.useEffect)(function(){(function(){var t=Re()(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ke.b(e.siteId,ke.d.shippingCarrierTypes());case 2:n=t.sent,o(n.carriers);case 4:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}})()()},[e.siteId,o]),!c||0===c.length)return a.a.createElement("div",null,t("Loading"),"...");var s=c.filter(function(t){return t.type===e.carrier}),u=ye()(s,1)[0];return u?a.a.createElement("div",null,a.a.createElement(at,{carrierType:u.type,carrierName:u.name,carrierDescription:u.description,registrationFields:u.fields})):a.a.createElement("div",null,t("%(carrierName)s not supported.",{args:{carrierName:e.carrier}}))};it.propTypes={carrier:R.a.string.isRequired,siteId:R.a.number};var ct=Object(g.b)(function(e){return{siteId:Object(me.a)(e)}})(Object(v.localize)(it)),ot=n(671),st=n(647),ut=function(e){function t(e){var n;return c()(this,t),n=l()(this,E()(t).call(this,e)),b()(m()(n),"onChange",function(){n.setState({pristine:!1})}),b()(m()(n),"onSaveSuccess",function(){var e=n.props,t=e.translate,r=e.orderId,a=e.orderHref,i=e.paymentMethodSelected,c=a&&i?{button:t("Return to Order #%(orderId)s",{args:{orderId:r}}),href:a}:{duration:5e3};return n.setState({pristine:!0}),n.props.successNotice(t("Your shipping settings have been saved."),c)}),b()(m()(n),"onSaveFailure",function(){var e=n.props.translate;return n.props.errorNotice(e("Unable to save your shipping settings. Please try again."))}),b()(m()(n),"onSaveChanges",function(){n.props.createWcsShippingSaveActionList(n.onSaveSuccess,n.onSaveFailure)}),n.state={pristine:!0},n}return O()(t,e),s()(t,[{key:"render",value:function(){var e=this.props,t=e.carrier,n=e.carriers,r=e.isSaving,i=e.translate;return t?"UpsAccount"===t?a.a.createElement("div",null,a.a.createElement(j.a,{id:"notices",notices:_e.a.list}),a.a.createElement(et,null)):a.a.createElement("div",null,a.a.createElement(j.a,{id:"notices",notices:_e.a.list}),a.a.createElement(ct,{carrier:t})):a.a.createElement("div",null,a.a.createElement(j.a,{id:"notices",notices:_e.a.list}),a.a.createElement(Oe,{onChange:this.onChange}),a.a.createElement(je,{onChange:this.onChange}),a.a.createElement(We,{carriers:n}),a.a.createElement(C.a,{primary:!0,onClick:this.onSaveChanges,busy:r,disabled:r},i("Save changes")),a.a.createElement(ot.a,{isChanged:!this.state.pristine}))}}]),t}(r.Component),lt=Object(g.b)(function(e){var t=Object(se.g)(e),n=Object(Se.e)(e);return{isSaving:t.isSaving||n.isSaving,paymentMethodSelected:Boolean(Object(se.n)(e))}},function(e){return Object(h.b)({createWcsShippingSaveActionList:st.a,errorNotice:Te.a,successNotice:Te.d},e)})(Object(v.localize)(ut)),dt=n(650),Et=n(649),ft=n(591),mt=n(655),pt=n(633),Ot=n(656),_t=n(610),bt=n(116),gt=n(46);t.default=function(e){var t=e.order_id,n=e.order_href,r=e.carrier,i=e.continents,c=e.carriers;return{getReducer:function(){return Object(gt.a)({extensions:Object(gt.a)({woocommerce:Object(gt.a)({woocommerceServices:Object(gt.a)({1:Object(gt.a)({packages:Et.a,labelSettings:dt.a})}),sites:Object(gt.a)({1:Object(gt.a)({data:Object(gt.a)({locations:Ot.a})})})})}),notices:ft.a,ui:function(){return{selectedSiteId:1}}})},getInitialState:function(){return{extensions:{woocommerce:{sites:{1:{data:{locations:i}}}}}}},getStateForPersisting:function(e){return delete e.notices,e},getStateKey:function(){return"wcs-account-settings"},getMiddlewares:function(){return[Object(bt.b)(Object(_t.a)(pt.a,mt.a))]},View:function(){return a.a.createElement(lt,{orderId:t,orderHref:n,carrier:r,carriers:c})}}}}}]);
|
dist/chunks/{15459192ffb85bb17e1f.min.js → 279e3e5e46ff6d7bc8b4.min.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[155],{582:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}();e.arrayToObject=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)"undefined"!==typeof t[n]&&(r[n]=t[n]);return r},e.merge=function(t,r,i){if(!r)return t;if("object"!==typeof r){if(Array.isArray(t))t.push(r);else{if("object"!==typeof t)return[t,r];(i.plainObjects||i.allowPrototypes||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!==typeof t)return[t].concat(r);var o=t;return Array.isArray(t)&&!Array.isArray(r)&&(o=e.arrayToObject(t,i)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,o){n.call(t,o)?t[o]&&"object"===typeof t[o]?t[o]=e.merge(t[o],r,i):t.push(r):t[o]=r}),t):Object.keys(r).reduce(function(t,o){var a=r[o];return n.call(t,o)?t[o]=e.merge(t[o],a,i):t[o]=a,t},o)},e.assign=function(t,e){return Object.keys(e).reduce(function(t,r){return t[r]=e[r],t},t)},e.decode=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},e.encode=function(t){if(0===t.length)return t;for(var e="string"===typeof t?t:String(t),r="",n=0;n<e.length;++n){var o=e.charCodeAt(n);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=e.charAt(n):o<128?r+=i[o]:o<2048?r+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?r+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(n+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(n)),r+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return r},e.compact=function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var c=a[s],p=o[c];"object"===typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:o,prop:c}),r.push(p))}return function(t){for(var e;t.length;){var r=t.pop();if(e=r.obj[r.prop],Array.isArray(e)){for(var n=[],i=0;i<e.length;++i)"undefined"!==typeof e[i]&&n.push(e[i]);r.obj[r.prop]=n}}return e}(e)},e.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},e.isBuffer=function(t){return null!==t&&"undefined"!==typeof t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}},583:function(t,e,r){"use strict";var n=String.prototype.replace,i=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return n.call(t,i,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},606:function(t,e,r){"use strict";var n=r(617),i=r(618),o=r(583);t.exports={formats:o,parse:i,stringify:n}},607:function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(t===e)return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(e),o=0;o<r.length;o++)if(!i(r[o])||t[r[o]]!==e[r[o]])return!1;return!0},t.exports=e.default},617:function(t,e,r){"use strict";var n=r(582),i=r(583),o={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},c=function t(e,r,i,o,a,c,p,l,h,f,u,d){var y=e;if("function"===typeof p)y=p(r,y);else if(y instanceof Date)y=f(y);else if(null===y){if(o)return c&&!d?c(r,s.encoder):r;y=""}if("string"===typeof y||"number"===typeof y||"boolean"===typeof y||n.isBuffer(y))return c?[u(d?r:c(r,s.encoder))+"="+u(c(y,s.encoder))]:[u(r)+"="+u(String(y))];var g,b=[];if("undefined"===typeof y)return b;if(Array.isArray(p))g=p;else{var v=Object.keys(y);g=l?v.sort(l):v}for(var m=0;m<g.length;++m){var w=g[m];a&&null===y[w]||(b=Array.isArray(y)?b.concat(t(y[w],i(r,w),i,o,a,c,p,l,h,f,u,d)):b.concat(t(y[w],r+(h?"."+w:"["+w+"]"),i,o,a,c,p,l,h,f,u,d)))}return b};t.exports=function(t,e){var r=t,a=e?n.assign({},e):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!==typeof a.encoder)throw new TypeError("Encoder has to be a function.");var p="undefined"===typeof a.delimiter?s.delimiter:a.delimiter,l="boolean"===typeof a.strictNullHandling?a.strictNullHandling:s.strictNullHandling,h="boolean"===typeof a.skipNulls?a.skipNulls:s.skipNulls,f="boolean"===typeof a.encode?a.encode:s.encode,u="function"===typeof a.encoder?a.encoder:s.encoder,d="function"===typeof a.sort?a.sort:null,y="undefined"!==typeof a.allowDots&&a.allowDots,g="function"===typeof a.serializeDate?a.serializeDate:s.serializeDate,b="boolean"===typeof a.encodeValuesOnly?a.encodeValuesOnly:s.encodeValuesOnly;if("undefined"===typeof a.format)a.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,a.format))throw new TypeError("Unknown format option provided.");var v,m,w=i.formatters[a.format];"function"===typeof a.filter?r=(m=a.filter)("",r):Array.isArray(a.filter)&&(v=m=a.filter);var _,x=[];if("object"!==typeof r||null===r)return"";_=a.arrayFormat in o?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var k=o[_];v||(v=Object.keys(r)),d&&v.sort(d);for(var O=0;O<v.length;++O){var j=v[O];h&&null===r[j]||(x=x.concat(c(r[j],j,k,l,h,f?u:null,m,d,y,g,w,b)))}var E=x.join(p),A=!0===a.addQueryPrefix?"?":"";return E.length>0?A+E:""}},618:function(t,e,r){"use strict";var n=r(582),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),s=a?n.slice(0,a.index):n,c=[];if(s){if(!r.plainObjects&&i.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(var p=0;null!==(a=o.exec(n))&&p<r.depth;){if(p+=1,!r.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+n.slice(a.index)+"]"),function(t,e,r){for(var n=e,i=t.length-1;i>=0;--i){var o,a=t[i];if("[]"===a)o=(o=[]).concat(n);else{o=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(s,10);!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(o=[])[c]=n:o[s]=n}n=o}return n}(c,e,r)}};t.exports=function(t,e){var r=e?n.assign({},e):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!==typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"===typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:o.delimiter,r.depth="number"===typeof r.depth?r.depth:o.depth,r.arrayLimit="number"===typeof r.arrayLimit?r.arrayLimit:o.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"===typeof r.decoder?r.decoder:o.decoder,r.allowDots="boolean"===typeof r.allowDots?r.allowDots:o.allowDots,r.plainObjects="boolean"===typeof r.plainObjects?r.plainObjects:o.plainObjects,r.allowPrototypes="boolean"===typeof r.allowPrototypes?r.allowPrototypes:o.allowPrototypes,r.parameterLimit="number"===typeof r.parameterLimit?r.parameterLimit:o.parameterLimit,r.strictNullHandling="boolean"===typeof r.strictNullHandling?r.strictNullHandling:o.strictNullHandling,""===t||null===t||"undefined"===typeof t)return r.plainObjects?Object.create(null):{};for(var s="string"===typeof t?function(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,s=n.split(e.delimiter,a),c=0;c<s.length;++c){var p,l,h=s[c],f=h.indexOf("]="),u=-1===f?h.indexOf("="):f+1;-1===u?(p=e.decoder(h,o.decoder),l=e.strictNullHandling?null:""):(p=e.decoder(h.slice(0,u),o.decoder),l=e.decoder(h.slice(u+1),o.decoder)),i.call(r,p)?r[p]=[].concat(r[p]).concat(l):r[p]=l}return r}(t,r):t,c=r.plainObjects?Object.create(null):{},p=Object.keys(s),l=0;l<p.length;++l){var h=p[l],f=a(h,s[h],r);c=n.merge(c,f,r)}return n.compact(c)}},659:function(t,e,r){"use strict";var n,i;n=this,i=function(){var t=0,e=1,r=2,n=3,i=/\s/,o=/<(\w*)>/g;return function(a,s,c){a=a||"";var p,l,h,f=t,u=0,d="",y="",g=!1;for("string"===typeof s?s=function(t){for(var e,r=[];null!==(e=o.exec(t));)r.push(e[1]);return 0!==r.length?r:null}(s):Array.isArray(s)||(s=null),p=0,l=a.length;p<l;p++)switch(h=a[p]){case"<":if(g)break;if(" "==a[p+1]){b(h);break}if(f==t){f=e,b(h);break}if(f==e){u++;break}b(h);break;case">":if(u){u--;break}if(g)break;if(f==e){g=f=0,s&&(y+=">",v());break}if(f==r){g=f=0,y="";break}if(f==n&&"-"==a[p-1]&&"-"==a[p-2]){g=f=0,y="";break}b(h);break;case'"':case"'":f==e&&(g==h?g=!1:g||(g=h)),b(h);break;case"!":if(f==e&&"<"==a[p-1]){f=r;break}b(h);break;case"-":if(f==r&&"-"==a[p-1]&&"!"==a[p-2]){f=n;break}b(h);break;case"E":case"e":if(f==r&&"doctype"==a.substr(p-6,7).toLowerCase()){f=e;break}b(h);break;default:b(h)}function b(r){f==t?d+=r:s&&f==e&&(y+=r)}function v(){var t,e,r,n="",o=!1;t:for(t=0,e=y.length;t<e;t++)switch(r=y[t].toLowerCase()){case"<":break;case">":break t;case"/":o=!0;break;default:if(r.match(i)){if(o)break t}else o=!0,n+=r}-1!==s.indexOf(n)?d+=y:c&&(d+=c),y=""}return d}},"function"===typeof define&&define.amd?define([],i):t.exports?t.exports=i():n.striptags=i()},674:function(t,e,r){(function(e){t.exports=function(){"use strict";var t=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},r=y,n=c,i=function(t){return p(c(t))},o=p,a=d,s=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function c(t){for(var e,r=[],n=0,i=0,o="";null!=(e=s.exec(t));){var a=e[0],c=e[1],p=e.index;if(o+=t.slice(i,p),i=p+a.length,c)o+=c[1];else{o&&(r.push(o),o="");var l=e[2],f=e[3],u=e[4],d=e[5],y=e[6],g=e[7],b="+"===y||"*"===y,v="?"===y||"*"===y,m=l||"/",w=u||d||(g?".*":"[^"+m+"]+?");r.push({name:f||n++,prefix:l||"",delimiter:m,optional:v,repeat:b,pattern:h(w)})}}return i<t.length&&(o+=t.substr(i)),o&&r.push(o),r}function p(e){for(var r=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(r[n]=new RegExp("^"+e[n].pattern+"$"));return function(n){for(var i="",o=n||{},a=0;a<e.length;a++){var s=e[a];if("string"!==typeof s){var c,p=o[s.name];if(null==p){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to be defined')}if(t(p)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received "'+p+'"');if(0===p.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var l=0;l<p.length;l++){if(c=encodeURIComponent(p[l]),!r[a].test(c))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');i+=(0===l?s.prefix:s.delimiter)+c}}else{if(c=encodeURIComponent(p),!r[a].test(c))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');i+=s.prefix+c}}else i+=s}return i}}function l(t){return t.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function h(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,e){return t.keys=e,t}function u(t){return t.sensitive?"":"i"}function d(t,e){for(var r=(e=e||{}).strict,n=!1!==e.end,i="",o=t[t.length-1],a="string"===typeof o&&/\/$/.test(o),s=0;s<t.length;s++){var c=t[s];if("string"===typeof c)i+=l(c);else{var p=l(c.prefix),h=c.pattern;c.repeat&&(h+="(?:"+p+h+")*"),h=c.optional?p?"(?:"+p+"("+h+"))?":"("+h+")?":p+"("+h+")",i+=h}}return r||(i=(a?i.slice(0,-2):i)+"(?:\\/(?=$))?"),i+=n?"$":r&&a?"":"(?=\\/|$)",new RegExp("^"+i,u(e))}function y(e,r,n){return t(r=r||[])?n||(n={}):(n=r,r=[]),e instanceof RegExp?function(t,e){var r=t.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return f(t,e)}(e,r):t(e)?function(t,e,r){for(var n=[],i=0;i<t.length;i++)n.push(y(t[i],e,r).source);return f(new RegExp("(?:"+n.join("|")+")",u(r)),e)}(e,r,n):function(t,e,r){for(var n=c(t),i=d(n,r),o=0;o<n.length;o++)"string"!==typeof n[o]&&e.push(n[o]);return f(i,e)}(e,r,n)}r.parse=n,r.compile=i,r.tokensToFunction=o,r.tokensToRegExp=a;var g="undefined"!==typeof document,b="undefined"!==typeof history,v="undefined"!==typeof e,m=g&&document.ontouchstart?"touchstart":"click",w=!(!window.history.location&&!window.location);function _(){this.callbacks=[],this.exits=[],this.current="",this.len=0,this._decodeURLComponents=!0,this._base="",this._strict=!1,this._running=!1,this._hashbang=!1,this.clickHandler=this.clickHandler.bind(this),this._onpopstate=this._onpopstate.bind(this)}function x(t,e){if("function"===typeof t)return x.call(this,"*",t);if("function"===typeof e)for(var r=new O(t,null,this),n=1;n<arguments.length;++n)this.callbacks.push(r.middleware(arguments[n]));else"string"===typeof t?this["string"===typeof e?"redirect":"show"](t,e):this.start(t)}function k(t,e,r){var n=this.page=r||x,i=n._window,o=n._hashbang,a=n._getBase();"/"===t[0]&&0!==t.indexOf(a)&&(t=a+(o?"#!":"")+t);var s=t.indexOf("?");this.canonicalPath=t;var c=new RegExp("^"+a.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1"));if(this.path=t.replace(c,"")||"/",o&&(this.path=this.path.replace("#!","")||"/"),this.title=g&&i.document.title,this.state=e||{},this.state.path=t,this.querystring=~s?n._decodeURLEncodedURIComponent(t.slice(s+1)):"",this.pathname=n._decodeURLEncodedURIComponent(~s?t.slice(0,s):t),this.params={},this.hash="",!o){if(!~this.path.indexOf("#"))return;var p=this.path.split("#");this.path=this.pathname=p[0],this.hash=n._decodeURLEncodedURIComponent(p[1])||"",this.querystring=this.querystring.split("#")[0]}}function O(t,e,n){this.page=n||j;var i=e||{};i.strict=i.strict||n._strict,this.path="*"===t?"(.*)":t,this.method="GET",this.regexp=r(this.path,this.keys=[],i)}_.prototype.configure=function(t){var e=t||{};this._window=e.window||window,this._decodeURLComponents=!1!==e.decodeURLComponents,this._popstate=!1!==e.popstate&&!0,this._click=!1!==e.click&&g,this._hashbang=!!e.hashbang;var r=this._window;this._popstate?r.addEventListener("popstate",this._onpopstate,!1):r.removeEventListener("popstate",this._onpopstate,!1),this._click?r.document.addEventListener(m,this.clickHandler,!1):g&&r.document.removeEventListener(m,this.clickHandler,!1),this._hashbang&&!b?r.addEventListener("hashchange",this._onpopstate,!1):r.removeEventListener("hashchange",this._onpopstate,!1)},_.prototype.base=function(t){if(0===arguments.length)return this._base;this._base=t},_.prototype._getBase=function(){var t=this._base;if(t)return t;var e=this._window&&this._window.location;return this._hashbang&&e&&"file:"===e.protocol&&(t=e.pathname),t},_.prototype.strict=function(t){if(0===arguments.length)return this._strict;this._strict=t},_.prototype.start=function(t){var e=t||{};if(this.configure(e),!1!==e.dispatch){var r;if(this._running=!0,w){var n=this._window,i=n.location;r=this._hashbang&&~i.hash.indexOf("#!")?i.hash.substr(2)+i.search:this._hashbang?i.search+i.hash:i.pathname+i.search+i.hash}this.replace(r,null,!0,e.dispatch)}},_.prototype.stop=function(){if(this._running){this.current="",this.len=0,this._running=!1;var t=this._window;this._click&&t.document.removeEventListener(m,this.clickHandler,!1),t.removeEventListener("popstate",this._onpopstate,!1),t.removeEventListener("hashchange",this._onpopstate,!1)}},_.prototype.show=function(t,e,r,n){var i=new k(t,e,this),o=this.prevContext;return this.prevContext=i,this.current=i.path,!1!==r&&this.dispatch(i,o),!1!==i.handled&&!1!==n&&i.pushState(),i},_.prototype.back=function(t,e){var r=this;if(this.len>0){var n=this._window;b&&n.history.back(),this.len--}else t?setTimeout(function(){r.show(t,e)}):setTimeout(function(){r.show(r._getBase(),e)})},_.prototype.redirect=function(t,e){var r=this;"string"===typeof t&&"string"===typeof e&&x.call(this,t,function(t){setTimeout(function(){r.replace(e)},0)}),"string"===typeof t&&"undefined"===typeof e&&setTimeout(function(){r.replace(t)},0)},_.prototype.replace=function(t,e,r,n){var i=new k(t,e,this),o=this.prevContext;return this.prevContext=i,this.current=i.path,i.init=r,i.save(),!1!==n&&this.dispatch(i,o),i},_.prototype.dispatch=function(t,e){var r=0,n=0,i=this;function o(){var e=i.callbacks[r++];if(t.path===i.current)return e?void e(t,o):function(t){if(!t.handled){var e=this._window;(this._hashbang?w&&this._getBase()+e.location.hash.replace("#!",""):w&&e.location.pathname+e.location.search)!==t.canonicalPath&&(this.stop(),t.handled=!1,w&&(e.location.href=t.canonicalPath))}}.call(i,t);t.handled=!1}e?function t(){var r=i.exits[n++];if(!r)return o();r(e,t)}():o()},_.prototype.exit=function(t,e){if("function"===typeof t)return this.exit("*",t);for(var r=new O(t,null,this),n=1;n<arguments.length;++n)this.exits.push(r.middleware(arguments[n]))},_.prototype.clickHandler=function(t){if(1===this._which(t)&&!(t.metaKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented){var e=t.target,r=t.path||(t.composedPath?t.composedPath():null);if(r)for(var n=0;n<r.length;n++)if(r[n].nodeName&&"A"===r[n].nodeName.toUpperCase()&&r[n].href){e=r[n];break}for(;e&&"A"!==e.nodeName.toUpperCase();)e=e.parentNode;if(e&&"A"===e.nodeName.toUpperCase()){var i="object"===typeof e.href&&"SVGAnimatedString"===e.href.constructor.name;if(!e.hasAttribute("download")&&"external"!==e.getAttribute("rel")){var o=e.getAttribute("href");if((this._hashbang||!this._samePath(e)||!e.hash&&"#"!==o)&&!(o&&o.indexOf("mailto:")>-1)&&(i?!e.target.baseVal:!e.target)&&(i||this.sameOrigin(e.href))){var a=i?e.href.baseVal:e.pathname+e.search+(e.hash||"");a="/"!==a[0]?"/"+a:a,v&&a.match(/^\/[a-zA-Z]:\//)&&(a=a.replace(/^\/[a-zA-Z]:\//,"/"));var s=a,c=this._getBase();0===a.indexOf(c)&&(a=a.substr(c.length)),this._hashbang&&(a=a.replace("#!","")),(!c||s!==a||w&&"file:"===this._window.location.protocol)&&(t.preventDefault(),this.show(s))}}}}},_.prototype._onpopstate=function(){var t=!1;return g&&"complete"===document.readyState?t=!0:window.addEventListener("load",function(){setTimeout(function(){t=!0},0)}),function(e){if(t)if(e.state){var r=e.state.path;this.replace(r,e.state)}else if(w){var n=this._window.location;this.show(n.pathname+n.search+n.hash,void 0,void 0,!1)}}}(),_.prototype._which=function(t){return null==(t=t||this._window.event).which?t.button:t.which},_.prototype._toURL=function(t){var e=this._window;if("function"===typeof URL&&w)return new URL(t,e.location.toString());if(g){var r=e.document.createElement("a");return r.href=t,r}},_.prototype.sameOrigin=function(t){if(!t||!w)return!1;var e=this._toURL(t),r=this._window,n=r.location;return n.protocol===e.protocol&&n.hostname===e.hostname&&n.port===e.port},_.prototype._samePath=function(t){if(!w)return!1;var e=this._window,r=e.location;return t.pathname===r.pathname&&t.search===r.search},_.prototype._decodeURLEncodedURIComponent=function(t){return"string"!==typeof t?t:this._decodeURLComponents?decodeURIComponent(t.replace(/\+/g," ")):t},k.prototype.pushState=function(){var t=this.page,e=t._window,r=t._hashbang;t.len++,b&&e.history.pushState(this.state,this.title,r&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},k.prototype.save=function(){var t=this.page;b&&t._window.history.replaceState(this.state,this.title,t._hashbang&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},O.prototype.middleware=function(t){var e=this;return function(r,n){if(e.match(r.path,r.params))return t(r,n);n()}},O.prototype.match=function(t,e){var r=this.keys,n=t.indexOf("?"),i=~n?t.slice(0,n):t,o=this.regexp.exec(decodeURIComponent(i));if(!o)return!1;for(var a=1,s=o.length;a<s;++a){var c=r[a-1],p=this.page._decodeURLEncodedURIComponent(o[a]);void 0===p&&hasOwnProperty.call(e,c.name)||(e[c.name]=p)}return!0};var j=function t(){var e=new _;function r(){return x.apply(e,arguments)}return r.callbacks=e.callbacks,r.exits=e.exits,r.base=e.base.bind(e),r.strict=e.strict.bind(e),r.start=e.start.bind(e),r.stop=e.stop.bind(e),r.show=e.show.bind(e),r.back=e.back.bind(e),r.redirect=e.redirect.bind(e),r.replace=e.replace.bind(e),r.dispatch=e.dispatch.bind(e),r.exit=e.exit.bind(e),r.configure=e.configure.bind(e),r.sameOrigin=e.sameOrigin.bind(e),r.clickHandler=e.clickHandler.bind(e),r.create=t,Object.defineProperty(r,"len",{get:function(){return e.len},set:function(t){e.len=t}}),Object.defineProperty(r,"current",{get:function(){return e.current},set:function(t){e.current=t}}),r.Context=k,r.Route=O,r}(),E=j,A=j;return E.default=A,E}()}).call(this,r(111))}}]);
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[153],{581:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}();e.arrayToObject=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)"undefined"!==typeof t[n]&&(r[n]=t[n]);return r},e.merge=function(t,r,i){if(!r)return t;if("object"!==typeof r){if(Array.isArray(t))t.push(r);else{if("object"!==typeof t)return[t,r];(i.plainObjects||i.allowPrototypes||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!==typeof t)return[t].concat(r);var o=t;return Array.isArray(t)&&!Array.isArray(r)&&(o=e.arrayToObject(t,i)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,o){n.call(t,o)?t[o]&&"object"===typeof t[o]?t[o]=e.merge(t[o],r,i):t.push(r):t[o]=r}),t):Object.keys(r).reduce(function(t,o){var a=r[o];return n.call(t,o)?t[o]=e.merge(t[o],a,i):t[o]=a,t},o)},e.assign=function(t,e){return Object.keys(e).reduce(function(t,r){return t[r]=e[r],t},t)},e.decode=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},e.encode=function(t){if(0===t.length)return t;for(var e="string"===typeof t?t:String(t),r="",n=0;n<e.length;++n){var o=e.charCodeAt(n);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=e.charAt(n):o<128?r+=i[o]:o<2048?r+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?r+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(n+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(n)),r+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return r},e.compact=function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var c=a[s],p=o[c];"object"===typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:o,prop:c}),r.push(p))}return function(t){for(var e;t.length;){var r=t.pop();if(e=r.obj[r.prop],Array.isArray(e)){for(var n=[],i=0;i<e.length;++i)"undefined"!==typeof e[i]&&n.push(e[i]);r.obj[r.prop]=n}}return e}(e)},e.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},e.isBuffer=function(t){return null!==t&&"undefined"!==typeof t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}},582:function(t,e,r){"use strict";var n=String.prototype.replace,i=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return n.call(t,i,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},606:function(t,e,r){"use strict";var n=r(617),i=r(618),o=r(582);t.exports={formats:o,parse:i,stringify:n}},607:function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(t===e)return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(e),o=0;o<r.length;o++)if(!i(r[o])||t[r[o]]!==e[r[o]])return!1;return!0},t.exports=e.default},617:function(t,e,r){"use strict";var n=r(581),i=r(582),o={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},c=function t(e,r,i,o,a,c,p,l,h,f,u,d){var y=e;if("function"===typeof p)y=p(r,y);else if(y instanceof Date)y=f(y);else if(null===y){if(o)return c&&!d?c(r,s.encoder):r;y=""}if("string"===typeof y||"number"===typeof y||"boolean"===typeof y||n.isBuffer(y))return c?[u(d?r:c(r,s.encoder))+"="+u(c(y,s.encoder))]:[u(r)+"="+u(String(y))];var g,b=[];if("undefined"===typeof y)return b;if(Array.isArray(p))g=p;else{var v=Object.keys(y);g=l?v.sort(l):v}for(var m=0;m<g.length;++m){var w=g[m];a&&null===y[w]||(b=Array.isArray(y)?b.concat(t(y[w],i(r,w),i,o,a,c,p,l,h,f,u,d)):b.concat(t(y[w],r+(h?"."+w:"["+w+"]"),i,o,a,c,p,l,h,f,u,d)))}return b};t.exports=function(t,e){var r=t,a=e?n.assign({},e):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!==typeof a.encoder)throw new TypeError("Encoder has to be a function.");var p="undefined"===typeof a.delimiter?s.delimiter:a.delimiter,l="boolean"===typeof a.strictNullHandling?a.strictNullHandling:s.strictNullHandling,h="boolean"===typeof a.skipNulls?a.skipNulls:s.skipNulls,f="boolean"===typeof a.encode?a.encode:s.encode,u="function"===typeof a.encoder?a.encoder:s.encoder,d="function"===typeof a.sort?a.sort:null,y="undefined"!==typeof a.allowDots&&a.allowDots,g="function"===typeof a.serializeDate?a.serializeDate:s.serializeDate,b="boolean"===typeof a.encodeValuesOnly?a.encodeValuesOnly:s.encodeValuesOnly;if("undefined"===typeof a.format)a.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,a.format))throw new TypeError("Unknown format option provided.");var v,m,w=i.formatters[a.format];"function"===typeof a.filter?r=(m=a.filter)("",r):Array.isArray(a.filter)&&(v=m=a.filter);var _,x=[];if("object"!==typeof r||null===r)return"";_=a.arrayFormat in o?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var k=o[_];v||(v=Object.keys(r)),d&&v.sort(d);for(var O=0;O<v.length;++O){var j=v[O];h&&null===r[j]||(x=x.concat(c(r[j],j,k,l,h,f?u:null,m,d,y,g,w,b)))}var E=x.join(p),A=!0===a.addQueryPrefix?"?":"";return E.length>0?A+E:""}},618:function(t,e,r){"use strict";var n=r(581),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),s=a?n.slice(0,a.index):n,c=[];if(s){if(!r.plainObjects&&i.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(var p=0;null!==(a=o.exec(n))&&p<r.depth;){if(p+=1,!r.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+n.slice(a.index)+"]"),function(t,e,r){for(var n=e,i=t.length-1;i>=0;--i){var o,a=t[i];if("[]"===a)o=(o=[]).concat(n);else{o=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(s,10);!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(o=[])[c]=n:o[s]=n}n=o}return n}(c,e,r)}};t.exports=function(t,e){var r=e?n.assign({},e):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!==typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"===typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:o.delimiter,r.depth="number"===typeof r.depth?r.depth:o.depth,r.arrayLimit="number"===typeof r.arrayLimit?r.arrayLimit:o.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"===typeof r.decoder?r.decoder:o.decoder,r.allowDots="boolean"===typeof r.allowDots?r.allowDots:o.allowDots,r.plainObjects="boolean"===typeof r.plainObjects?r.plainObjects:o.plainObjects,r.allowPrototypes="boolean"===typeof r.allowPrototypes?r.allowPrototypes:o.allowPrototypes,r.parameterLimit="number"===typeof r.parameterLimit?r.parameterLimit:o.parameterLimit,r.strictNullHandling="boolean"===typeof r.strictNullHandling?r.strictNullHandling:o.strictNullHandling,""===t||null===t||"undefined"===typeof t)return r.plainObjects?Object.create(null):{};for(var s="string"===typeof t?function(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,s=n.split(e.delimiter,a),c=0;c<s.length;++c){var p,l,h=s[c],f=h.indexOf("]="),u=-1===f?h.indexOf("="):f+1;-1===u?(p=e.decoder(h,o.decoder),l=e.strictNullHandling?null:""):(p=e.decoder(h.slice(0,u),o.decoder),l=e.decoder(h.slice(u+1),o.decoder)),i.call(r,p)?r[p]=[].concat(r[p]).concat(l):r[p]=l}return r}(t,r):t,c=r.plainObjects?Object.create(null):{},p=Object.keys(s),l=0;l<p.length;++l){var h=p[l],f=a(h,s[h],r);c=n.merge(c,f,r)}return n.compact(c)}},657:function(t,e,r){"use strict";var n,i;n=this,i=function(){var t=0,e=1,r=2,n=3,i=/\s/,o=/<(\w*)>/g;return function(a,s,c){a=a||"";var p,l,h,f=t,u=0,d="",y="",g=!1;for("string"===typeof s?s=function(t){for(var e,r=[];null!==(e=o.exec(t));)r.push(e[1]);return 0!==r.length?r:null}(s):Array.isArray(s)||(s=null),p=0,l=a.length;p<l;p++)switch(h=a[p]){case"<":if(g)break;if(" "==a[p+1]){b(h);break}if(f==t){f=e,b(h);break}if(f==e){u++;break}b(h);break;case">":if(u){u--;break}if(g)break;if(f==e){g=f=0,s&&(y+=">",v());break}if(f==r){g=f=0,y="";break}if(f==n&&"-"==a[p-1]&&"-"==a[p-2]){g=f=0,y="";break}b(h);break;case'"':case"'":f==e&&(g==h?g=!1:g||(g=h)),b(h);break;case"!":if(f==e&&"<"==a[p-1]){f=r;break}b(h);break;case"-":if(f==r&&"-"==a[p-1]&&"!"==a[p-2]){f=n;break}b(h);break;case"E":case"e":if(f==r&&"doctype"==a.substr(p-6,7).toLowerCase()){f=e;break}b(h);break;default:b(h)}function b(r){f==t?d+=r:s&&f==e&&(y+=r)}function v(){var t,e,r,n="",o=!1;t:for(t=0,e=y.length;t<e;t++)switch(r=y[t].toLowerCase()){case"<":break;case">":break t;case"/":o=!0;break;default:if(r.match(i)){if(o)break t}else o=!0,n+=r}-1!==s.indexOf(n)?d+=y:c&&(d+=c),y=""}return d}},"function"===typeof define&&define.amd?define([],i):t.exports?t.exports=i():n.striptags=i()},672:function(t,e,r){(function(e){t.exports=function(){"use strict";var t=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},r=y,n=c,i=function(t){return p(c(t))},o=p,a=d,s=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function c(t){for(var e,r=[],n=0,i=0,o="";null!=(e=s.exec(t));){var a=e[0],c=e[1],p=e.index;if(o+=t.slice(i,p),i=p+a.length,c)o+=c[1];else{o&&(r.push(o),o="");var l=e[2],f=e[3],u=e[4],d=e[5],y=e[6],g=e[7],b="+"===y||"*"===y,v="?"===y||"*"===y,m=l||"/",w=u||d||(g?".*":"[^"+m+"]+?");r.push({name:f||n++,prefix:l||"",delimiter:m,optional:v,repeat:b,pattern:h(w)})}}return i<t.length&&(o+=t.substr(i)),o&&r.push(o),r}function p(e){for(var r=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(r[n]=new RegExp("^"+e[n].pattern+"$"));return function(n){for(var i="",o=n||{},a=0;a<e.length;a++){var s=e[a];if("string"!==typeof s){var c,p=o[s.name];if(null==p){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to be defined')}if(t(p)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received "'+p+'"');if(0===p.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var l=0;l<p.length;l++){if(c=encodeURIComponent(p[l]),!r[a].test(c))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');i+=(0===l?s.prefix:s.delimiter)+c}}else{if(c=encodeURIComponent(p),!r[a].test(c))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');i+=s.prefix+c}}else i+=s}return i}}function l(t){return t.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function h(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,e){return t.keys=e,t}function u(t){return t.sensitive?"":"i"}function d(t,e){for(var r=(e=e||{}).strict,n=!1!==e.end,i="",o=t[t.length-1],a="string"===typeof o&&/\/$/.test(o),s=0;s<t.length;s++){var c=t[s];if("string"===typeof c)i+=l(c);else{var p=l(c.prefix),h=c.pattern;c.repeat&&(h+="(?:"+p+h+")*"),h=c.optional?p?"(?:"+p+"("+h+"))?":"("+h+")?":p+"("+h+")",i+=h}}return r||(i=(a?i.slice(0,-2):i)+"(?:\\/(?=$))?"),i+=n?"$":r&&a?"":"(?=\\/|$)",new RegExp("^"+i,u(e))}function y(e,r,n){return t(r=r||[])?n||(n={}):(n=r,r=[]),e instanceof RegExp?function(t,e){var r=t.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return f(t,e)}(e,r):t(e)?function(t,e,r){for(var n=[],i=0;i<t.length;i++)n.push(y(t[i],e,r).source);return f(new RegExp("(?:"+n.join("|")+")",u(r)),e)}(e,r,n):function(t,e,r){for(var n=c(t),i=d(n,r),o=0;o<n.length;o++)"string"!==typeof n[o]&&e.push(n[o]);return f(i,e)}(e,r,n)}r.parse=n,r.compile=i,r.tokensToFunction=o,r.tokensToRegExp=a;var g="undefined"!==typeof document,b="undefined"!==typeof history,v="undefined"!==typeof e,m=g&&document.ontouchstart?"touchstart":"click",w=!(!window.history.location&&!window.location);function _(){this.callbacks=[],this.exits=[],this.current="",this.len=0,this._decodeURLComponents=!0,this._base="",this._strict=!1,this._running=!1,this._hashbang=!1,this.clickHandler=this.clickHandler.bind(this),this._onpopstate=this._onpopstate.bind(this)}function x(t,e){if("function"===typeof t)return x.call(this,"*",t);if("function"===typeof e)for(var r=new O(t,null,this),n=1;n<arguments.length;++n)this.callbacks.push(r.middleware(arguments[n]));else"string"===typeof t?this["string"===typeof e?"redirect":"show"](t,e):this.start(t)}function k(t,e,r){var n=this.page=r||x,i=n._window,o=n._hashbang,a=n._getBase();"/"===t[0]&&0!==t.indexOf(a)&&(t=a+(o?"#!":"")+t);var s=t.indexOf("?");this.canonicalPath=t;var c=new RegExp("^"+a.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1"));if(this.path=t.replace(c,"")||"/",o&&(this.path=this.path.replace("#!","")||"/"),this.title=g&&i.document.title,this.state=e||{},this.state.path=t,this.querystring=~s?n._decodeURLEncodedURIComponent(t.slice(s+1)):"",this.pathname=n._decodeURLEncodedURIComponent(~s?t.slice(0,s):t),this.params={},this.hash="",!o){if(!~this.path.indexOf("#"))return;var p=this.path.split("#");this.path=this.pathname=p[0],this.hash=n._decodeURLEncodedURIComponent(p[1])||"",this.querystring=this.querystring.split("#")[0]}}function O(t,e,n){this.page=n||j;var i=e||{};i.strict=i.strict||n._strict,this.path="*"===t?"(.*)":t,this.method="GET",this.regexp=r(this.path,this.keys=[],i)}_.prototype.configure=function(t){var e=t||{};this._window=e.window||window,this._decodeURLComponents=!1!==e.decodeURLComponents,this._popstate=!1!==e.popstate&&!0,this._click=!1!==e.click&&g,this._hashbang=!!e.hashbang;var r=this._window;this._popstate?r.addEventListener("popstate",this._onpopstate,!1):r.removeEventListener("popstate",this._onpopstate,!1),this._click?r.document.addEventListener(m,this.clickHandler,!1):g&&r.document.removeEventListener(m,this.clickHandler,!1),this._hashbang&&!b?r.addEventListener("hashchange",this._onpopstate,!1):r.removeEventListener("hashchange",this._onpopstate,!1)},_.prototype.base=function(t){if(0===arguments.length)return this._base;this._base=t},_.prototype._getBase=function(){var t=this._base;if(t)return t;var e=this._window&&this._window.location;return this._hashbang&&e&&"file:"===e.protocol&&(t=e.pathname),t},_.prototype.strict=function(t){if(0===arguments.length)return this._strict;this._strict=t},_.prototype.start=function(t){var e=t||{};if(this.configure(e),!1!==e.dispatch){var r;if(this._running=!0,w){var n=this._window,i=n.location;r=this._hashbang&&~i.hash.indexOf("#!")?i.hash.substr(2)+i.search:this._hashbang?i.search+i.hash:i.pathname+i.search+i.hash}this.replace(r,null,!0,e.dispatch)}},_.prototype.stop=function(){if(this._running){this.current="",this.len=0,this._running=!1;var t=this._window;this._click&&t.document.removeEventListener(m,this.clickHandler,!1),t.removeEventListener("popstate",this._onpopstate,!1),t.removeEventListener("hashchange",this._onpopstate,!1)}},_.prototype.show=function(t,e,r,n){var i=new k(t,e,this),o=this.prevContext;return this.prevContext=i,this.current=i.path,!1!==r&&this.dispatch(i,o),!1!==i.handled&&!1!==n&&i.pushState(),i},_.prototype.back=function(t,e){var r=this;if(this.len>0){var n=this._window;b&&n.history.back(),this.len--}else t?setTimeout(function(){r.show(t,e)}):setTimeout(function(){r.show(r._getBase(),e)})},_.prototype.redirect=function(t,e){var r=this;"string"===typeof t&&"string"===typeof e&&x.call(this,t,function(t){setTimeout(function(){r.replace(e)},0)}),"string"===typeof t&&"undefined"===typeof e&&setTimeout(function(){r.replace(t)},0)},_.prototype.replace=function(t,e,r,n){var i=new k(t,e,this),o=this.prevContext;return this.prevContext=i,this.current=i.path,i.init=r,i.save(),!1!==n&&this.dispatch(i,o),i},_.prototype.dispatch=function(t,e){var r=0,n=0,i=this;function o(){var e=i.callbacks[r++];if(t.path===i.current)return e?void e(t,o):function(t){if(!t.handled){var e=this._window;(this._hashbang?w&&this._getBase()+e.location.hash.replace("#!",""):w&&e.location.pathname+e.location.search)!==t.canonicalPath&&(this.stop(),t.handled=!1,w&&(e.location.href=t.canonicalPath))}}.call(i,t);t.handled=!1}e?function t(){var r=i.exits[n++];if(!r)return o();r(e,t)}():o()},_.prototype.exit=function(t,e){if("function"===typeof t)return this.exit("*",t);for(var r=new O(t,null,this),n=1;n<arguments.length;++n)this.exits.push(r.middleware(arguments[n]))},_.prototype.clickHandler=function(t){if(1===this._which(t)&&!(t.metaKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented){var e=t.target,r=t.path||(t.composedPath?t.composedPath():null);if(r)for(var n=0;n<r.length;n++)if(r[n].nodeName&&"A"===r[n].nodeName.toUpperCase()&&r[n].href){e=r[n];break}for(;e&&"A"!==e.nodeName.toUpperCase();)e=e.parentNode;if(e&&"A"===e.nodeName.toUpperCase()){var i="object"===typeof e.href&&"SVGAnimatedString"===e.href.constructor.name;if(!e.hasAttribute("download")&&"external"!==e.getAttribute("rel")){var o=e.getAttribute("href");if((this._hashbang||!this._samePath(e)||!e.hash&&"#"!==o)&&!(o&&o.indexOf("mailto:")>-1)&&(i?!e.target.baseVal:!e.target)&&(i||this.sameOrigin(e.href))){var a=i?e.href.baseVal:e.pathname+e.search+(e.hash||"");a="/"!==a[0]?"/"+a:a,v&&a.match(/^\/[a-zA-Z]:\//)&&(a=a.replace(/^\/[a-zA-Z]:\//,"/"));var s=a,c=this._getBase();0===a.indexOf(c)&&(a=a.substr(c.length)),this._hashbang&&(a=a.replace("#!","")),(!c||s!==a||w&&"file:"===this._window.location.protocol)&&(t.preventDefault(),this.show(s))}}}}},_.prototype._onpopstate=function(){var t=!1;return g&&"complete"===document.readyState?t=!0:window.addEventListener("load",function(){setTimeout(function(){t=!0},0)}),function(e){if(t)if(e.state){var r=e.state.path;this.replace(r,e.state)}else if(w){var n=this._window.location;this.show(n.pathname+n.search+n.hash,void 0,void 0,!1)}}}(),_.prototype._which=function(t){return null==(t=t||this._window.event).which?t.button:t.which},_.prototype._toURL=function(t){var e=this._window;if("function"===typeof URL&&w)return new URL(t,e.location.toString());if(g){var r=e.document.createElement("a");return r.href=t,r}},_.prototype.sameOrigin=function(t){if(!t||!w)return!1;var e=this._toURL(t),r=this._window,n=r.location;return n.protocol===e.protocol&&n.hostname===e.hostname&&n.port===e.port},_.prototype._samePath=function(t){if(!w)return!1;var e=this._window,r=e.location;return t.pathname===r.pathname&&t.search===r.search},_.prototype._decodeURLEncodedURIComponent=function(t){return"string"!==typeof t?t:this._decodeURLComponents?decodeURIComponent(t.replace(/\+/g," ")):t},k.prototype.pushState=function(){var t=this.page,e=t._window,r=t._hashbang;t.len++,b&&e.history.pushState(this.state,this.title,r&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},k.prototype.save=function(){var t=this.page;b&&t._window.history.replaceState(this.state,this.title,t._hashbang&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},O.prototype.middleware=function(t){var e=this;return function(r,n){if(e.match(r.path,r.params))return t(r,n);n()}},O.prototype.match=function(t,e){var r=this.keys,n=t.indexOf("?"),i=~n?t.slice(0,n):t,o=this.regexp.exec(decodeURIComponent(i));if(!o)return!1;for(var a=1,s=o.length;a<s;++a){var c=r[a-1],p=this.page._decodeURLEncodedURIComponent(o[a]);void 0===p&&hasOwnProperty.call(e,c.name)||(e[c.name]=p)}return!0};var j=function t(){var e=new _;function r(){return x.apply(e,arguments)}return r.callbacks=e.callbacks,r.exits=e.exits,r.base=e.base.bind(e),r.strict=e.strict.bind(e),r.start=e.start.bind(e),r.stop=e.stop.bind(e),r.show=e.show.bind(e),r.back=e.back.bind(e),r.redirect=e.redirect.bind(e),r.replace=e.replace.bind(e),r.dispatch=e.dispatch.bind(e),r.exit=e.exit.bind(e),r.configure=e.configure.bind(e),r.sameOrigin=e.sameOrigin.bind(e),r.clickHandler=e.clickHandler.bind(e),r.create=t,Object.defineProperty(r,"len",{get:function(){return e.len},set:function(t){e.len=t}}),Object.defineProperty(r,"current",{get:function(){return e.current},set:function(t){e.current=t}}),r.Context=k,r.Route=O,r}(),E=j,A=j;return E.default=A,E}()}).call(this,r(112))}}]);
|
dist/chunks/2e77eac33ceac334714c.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[145,137,139],{532:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n(1),n(562);function r(e){return e.ui.selectedSiteId}},535:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return s}),n.d(t,"h",function(){return u}),n.d(t,"g",function(){return d}),n.d(t,"j",function(){return l}),n.d(t,"i",function(){return f}),n.d(t,"k",function(){return p}),n.d(t,"l",function(){return h}),n.d(t,"p",function(){return E}),n.d(t,"q",function(){return O}),n.d(t,"r",function(){return b}),n.d(t,"s",function(){return m}),n.d(t,"t",function(){return v}),n.d(t,"u",function(){return g}),n.d(t,"y",function(){return _}),n.d(t,"z",function(){return C}),n.d(t,"A",function(){return y}),n.d(t,"v",function(){return S}),n.d(t,"w",function(){return j}),n.d(t,"x",function(){return I}),n.d(t,"C",function(){return R}),n.d(t,"E",function(){return T}),n.d(t,"D",function(){return N}),n.d(t,"B",function(){return M}),n.d(t,"F",function(){return P}),n.d(t,"G",function(){return A}),n.d(t,"H",function(){return w}),n.d(t,"I",function(){return k}),n.d(t,"J",function(){return L}),n.d(t,"K",function(){return x}),n.d(t,"m",function(){return D}),n.d(t,"n",function(){return W}),n.d(t,"o",function(){return V}),n.d(t,"L",function(){return H}),n.d(t,"M",function(){return G}),n.d(t,"N",function(){return U}),n.d(t,"O",function(){return B}),n.d(t,"P",function(){return F}),n.d(t,"Q",function(){return z}),n.d(t,"R",function(){return q}),n.d(t,"S",function(){return K}),n.d(t,"T",function(){return Z}),n.d(t,"W",function(){return Q}),n.d(t,"X",function(){return Y}),n.d(t,"U",function(){return $}),n.d(t,"V",function(){return J}),n.d(t,"ab",function(){return X}),n.d(t,"bb",function(){return ee}),n.d(t,"Y",function(){return te}),n.d(t,"Z",function(){return ne}),n.d(t,"gb",function(){return re}),n.d(t,"hb",function(){return ie}),n.d(t,"ib",function(){return oe}),n.d(t,"jb",function(){return ae}),n.d(t,"kb",function(){return ce}),n.d(t,"lb",function(){return se}),n.d(t,"mb",function(){return ue}),n.d(t,"nb",function(){return de}),n.d(t,"ob",function(){return le}),n.d(t,"pb",function(){return fe}),n.d(t,"qb",function(){return pe}),n.d(t,"rb",function(){return he}),n.d(t,"sb",function(){return Ee}),n.d(t,"tb",function(){return Oe}),n.d(t,"ub",function(){return be}),n.d(t,"vb",function(){return me}),n.d(t,"wb",function(){return ve}),n.d(t,"xb",function(){return ge}),n.d(t,"yb",function(){return _e}),n.d(t,"zb",function(){return Ce}),n.d(t,"Bb",function(){return ye}),n.d(t,"Ab",function(){return Se}),n.d(t,"Cb",function(){return je}),n.d(t,"Db",function(){return Ie}),n.d(t,"Eb",function(){return Re}),n.d(t,"Fb",function(){return Te}),n.d(t,"Gb",function(){return Ne}),n.d(t,"Hb",function(){return Me}),n.d(t,"Ib",function(){return Pe}),n.d(t,"Jb",function(){return Ae}),n.d(t,"Kb",function(){return we}),n.d(t,"Lb",function(){return ke}),n.d(t,"Mb",function(){return Le}),n.d(t,"Nb",function(){return xe}),n.d(t,"Ob",function(){return De}),n.d(t,"Pb",function(){return We}),n.d(t,"Qb",function(){return Ve}),n.d(t,"Rb",function(){return He}),n.d(t,"Sb",function(){return Ge}),n.d(t,"eb",function(){return Ue}),n.d(t,"fb",function(){return Be}),n.d(t,"cb",function(){return Fe}),n.d(t,"db",function(){return ze});var r="WOOCOMMERCE_ACTION_LIST_ANNOTATE",i="WOOCOMMERCE_ACTION_LIST_CLEAR",o="WOOCOMMERCE_ACTION_LIST_STEP_NEXT",a="WOOCOMMERCE_ACTION_LIST_STEP_SUCCESS",c="WOOCOMMERCE_ACTION_LIST_STEP_FAILURE",s="WOOCOMMERCE_COUNT_REQUEST",u="WOOCOMMERCE_COUNT_REQUEST_SUCCESS",d="WOOCOMMERCE_COUNT_REQUEST_FAILURE",l="WOOCOMMERCE_ERROR_SET",f="WOOCOMMERCE_ERROR_CLEAR",p="WOOCOMMERCE_LOCATIONS_REQUEST",h="WOOCOMMERCE_LOCATIONS_REQUEST_SUCCESS",E="WOOCOMMERCE_ORDER_DELETE",O="WOOCOMMERCE_ORDER_DELETE_FAILURE",b="WOOCOMMERCE_ORDER_DELETE_SUCCESS",m="WOOCOMMERCE_ORDER_INVOICE_SEND",v="WOOCOMMERCE_ORDER_INVOICE_SEND_FAILURE",g="WOOCOMMERCE_ORDER_INVOICE_SEND_SUCCESS",_="WOOCOMMERCE_ORDER_NOTE_CREATE",C="WOOCOMMERCE_ORDER_NOTE_CREATE_FAILURE",y="WOOCOMMERCE_ORDER_NOTE_CREATE_SUCCESS",S="WOOCOMMERCE_ORDER_NOTES_REQUEST",j="WOOCOMMERCE_ORDER_NOTES_REQUEST_FAILURE",I="WOOCOMMERCE_ORDER_NOTES_REQUEST_SUCCESS",R="WOOCOMMERCE_ORDER_REFUND_CREATE",T="WOOCOMMERCE_ORDER_REFUND_CREATE_SUCCESS",N="WOOCOMMERCE_ORDER_REFUND_CREATE_FAILURE",M="WOOCOMMERCE_ORDER_REFUNDS_REQUEST_SUCCESS",P="WOOCOMMERCE_ORDER_REQUEST",A="WOOCOMMERCE_ORDER_REQUEST_FAILURE",w="WOOCOMMERCE_ORDER_REQUEST_SUCCESS",k="WOOCOMMERCE_ORDER_UPDATE",L="WOOCOMMERCE_ORDER_UPDATE_FAILURE",x="WOOCOMMERCE_ORDER_UPDATE_SUCCESS",D="WOOCOMMERCE_ORDERS_REQUEST",W="WOOCOMMERCE_ORDERS_REQUEST_FAILURE",V="WOOCOMMERCE_ORDERS_REQUEST_SUCCESS",H="WOOCOMMERCE_SERVICES_SHIPPING_ACTION_LIST_CREATE",G="WOOCOMMERCE_SETTINGS_PRODUCTS_CHANGE_SETTING",U="WOOCOMMERCE_SETTINGS_PRODUCTS_REQUEST",B="WOOCOMMERCE_SETTINGS_PRODUCTS_REQUEST_SUCCESS",F="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST",z="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST_FAILURE",q="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST_SUCCESS",K="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_CLEAR_COMPLETED_NOTIFICATION",Z="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_CLEAR_ERROR",Q="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_DETAILS_REQUEST",Y="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_DETAILS_UPDATE",$="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_DEAUTHORIZE",J="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_DEAUTHORIZE_COMPLETE",X="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_DEAUTHORIZE_OAUTH_INIT",ee="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_OAUTH_INIT_COMPLETE",te="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_OAUTH_CONNECT",ne="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_OAUTH_CONNECT_COMPLETE",re="WOOCOMMERCE_SHIPPING_ZONE_ADD",ie="WOOCOMMERCE_SHIPPING_ZONE_CANCEL",oe="WOOCOMMERCE_SHIPPING_ZONE_CLOSE",ae="WOOCOMMERCE_SHIPPING_ZONE_DELETED",ce="WOOCOMMERCE_SHIPPING_ZONE_EDIT_NAME",se="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_CANCEL",ue="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_CLOSE",de="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_EDIT",le="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_EDIT_POSTCODE",fe="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_POSTCODE",pe="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_STATE",he="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_WHOLE_COUNTRY",Ee="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_CONTINENT",Oe="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_COUNTRY",be="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_STATE",me="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_UPDATED",ve="WOOCOMMERCE_SHIPPING_ZONE_METHODS_REQUEST",ge="WOOCOMMERCE_SHIPPING_ZONE_METHODS_REQUEST_SUCCESS",_e="WOOCOMMERCE_SHIPPING_ZONE_METHOD_ADD",Ce="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CANCEL",ye="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CLOSE",Se="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CHANGE_TYPE",je="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CREATE",Ie="WOOCOMMERCE_SHIPPING_ZONE_METHOD_DELETE",Re="WOOCOMMERCE_SHIPPING_ZONE_METHOD_DELETED",Te="WOOCOMMERCE_SHIPPING_ZONE_METHOD_EDIT_TITLE",Ne="WOOCOMMERCE_SHIPPING_ZONE_METHOD_OPEN",Me="WOOCOMMERCE_SHIPPING_ZONE_METHOD_REMOVE",Pe="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_CONDITION",Ae="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_COST",we="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_MIN_COST",ke="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_TAXABLE",Le="WOOCOMMERCE_SHIPPING_ZONE_METHOD_TOGGLE_ENABLED",xe="WOOCOMMERCE_SHIPPING_ZONE_METHOD_TOGGLE_OPENED_ENABLED",De="WOOCOMMERCE_SHIPPING_ZONE_METHOD_UPDATE",We="WOOCOMMERCE_SHIPPING_ZONE_METHOD_UPDATED",Ve="WOOCOMMERCE_SHIPPING_ZONE_OPEN",He="WOOCOMMERCE_SHIPPING_ZONE_REMOVE",Ge="WOOCOMMERCE_SHIPPING_ZONE_UPDATED",Ue="WOOCOMMERCE_SHIPPING_ZONES_REQUEST",Be="WOOCOMMERCE_SHIPPING_ZONES_REQUEST_SUCCESS",Fe="WOOCOMMERCE_SHIPPING_CLASSES_REQUEST",ze="WOOCOMMERCE_SHIPPING_CLASSES_REQUEST_SUCCESS"},537:function(e,t,n){"use strict";n.d(t,"j",function(){return h}),n.d(t,"t",function(){return E}),n.d(t,"s",function(){return O}),n.d(t,"r",function(){return b}),n.d(t,"h",function(){return m}),n.d(t,"g",function(){return v}),n.d(t,"v",function(){return g}),n.d(t,"u",function(){return _}),n.d(t,"m",function(){return C}),n.d(t,"e",function(){return y}),n.d(t,"l",function(){return S}),n.d(t,"p",function(){return j}),n.d(t,"n",function(){return N}),n.d(t,"f",function(){return A}),n.d(t,"o",function(){return w}),n.d(t,"q",function(){return k}),n.d(t,"d",function(){return L}),n.d(t,"b",function(){return x}),n.d(t,"i",function(){return D}),n.d(t,"c",function(){return W}),n.d(t,"k",function(){return V}),n.d(t,"a",function(){return H});var r=n(1),i=n(35),o=n(545),a=n(532),c=n(552),s=n(544),u=n(541),d=n(565),l=n(575),f=n(563),p=n(566),h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",n,"shippingLabel",t],null)},E=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.loaded},O=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.isFetching},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.error},m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.loaded?r.labels:[]},v=function(e,t,n,r){return m(e,t,n).find(function(e){return e.label_id===r})},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.fulfillOrder},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.emailDetails},C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.refreshedLabelStatus},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.form},S=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),o=y(e,t,n);if(!o)return null;var c=o.rates,s=c.values,u=c.available,d=[],l=0,f=0,p=function(e){if(!(e in u))return"continue";var t=s[e],n=t.serviceId,o=t.signatureRequired,a=u[e].default.rates,c=null,p=null;o in u[e]&&(c=u[e][o].rates,p=Object(r.find)(c,function(e){return n===e.service_id})||null);var h=Object(r.find)(a,function(e){return n===e.service_id});if(h){var E=h.retail_rate-h.rate,O=h.rate,b={title:h.title,retailRate:h.retail_rate,rateWithDiscount:O,addons:[],carrierId:h.carrier_id,carrierTitle:h.title.split("-")[0].trim()};null!==p&&(b.addons=[{title:Object(i.translate)("Signature Required"),rate:p.rate-h.rate}],O=p.rate),d.push(b),l+=Object(r.round)(E,2),f+=O}};for(var h in s)p(h);return d.length?{prices:d,discount:l,total:f}:null},j=Object(o.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),i=y(e,t,n);if(Object(r.isEmpty)(i))return!1;var o=Object(d.a)(i.origin),c=Object(d.a)(i.destination);return!("US"!==o.country||!Object(r.includes)(l.d,o.state))||(!("US"!==c.country||!Object(r.includes)(l.d,c.state))||o.country!==c.country&&(!Object(r.includes)(l.b,o.country)||!Object(r.includes)(l.b,c.country)))},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return[y(e,t,n)]}),I=function(e,t,n,o){var a=t.values,c=Object(d.a)(t),s=c.phone,u=c.postcode,p=c.state,h=c.country,E={};return["name","address","city","postcode","country"].forEach(function(e){a[e]||(E[e]=Object(i.translate)("This field is required"))}),Object(r.includes)(l.a,h)&&!/^\d{5}(?:-\d{4})?$/.test(u)&&(E.postcode=Object(i.translate)("Invalid ZIP/Postal code format")),!p&&Object(f.j)(e,h,n)&&(E.state=Object(i.translate)("This field is required")),o&&(s?10!==s.split(/\D+/g).join("").replace(/^1/,"").length&&(E.phone=Object(i.translate)("Customs forms require a 10-digit phone number. Please edit your phone number so it has at most 10 digits.")):E.phone=Object(i.translate)("Please enter a phone number for your origin address. It's required because this shipment requires a customs form.")),E},R=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.isNormalized,a=e.isUnverifiable,c=e.normalized,s=e.ignoreValidation,u=e.fieldErrors;if((o||a)&&!c&&u)return u;if(o&&!c)return{address:Object(i.translate)("This address is not recognized. Please try another.")};var d=I(t,e,n,r);return s&&Object.keys(d).forEach(function(e){s[e]&&delete d[e]}),d},T=function(e,t,n,o){var a=Object(r.uniq)(Object(r.flatten)(Object(r.map)(e,function(e){return Object(r.map)(e.items,"product_id")}))),c=Object(r.zipObject)(a,Object(r.fill)(Array(a.length),0));Object(r.forEach)(e,function(e){Object(r.forEach)(e.items,function(e){var n=e.quantity,r=e.product_id;return c[r]+=n*t.items[r].value})});var s={};return Object(r.forEach)(Object(r.pick)(t.items,a),function(e,t){e.tariffNumber&&6===e.tariffNumber.length&&(s[e.tariffNumber]||(s[e.tariffNumber]=0),s[e.tariffNumber]+=c[t])}),{packages:Object(r.mapValues)(e,function(e){var a={};"other"!==e.contentsType||e.contentsExplanation||(a.contentsExplanation=Object(i.translate)("Please describe what kind of goods this package contains")),"other"!==e.restrictionType||e.restrictionComments||(a.restrictionComments=Object(i.translate)("Please describe what kind of restrictions this package must have"));var c=new Set;return Object(r.forEach)(e.items,function(e){var n=e.product_id,r=t.items[n].tariffNumber;2500<s[r]&&c.add(r)}),e.itn?/^(?:(?:AES X\d{14})|(?:NOEEI 30\.\d{1,2}(?:\([a-z]\)(?:\(\d\))?)?))$/.test(e.itn)||(a.itn=Object(i.translate)("Invalid format")):"CA"!==n&&(Object(r.isEmpty)(c)?Object(r.includes)(l.c,n)&&(a.itn=Object(i.translate)("International Transaction Number is required for shipments to %(country)s",{args:{country:o}})):a.itn=Object(i.translate)("International Transaction Number is required for shipping items valued over $2,500 per tariff number. Products with tariff number %(code)s add up to more than $2,500.",{args:{code:c.values().next().value}})),a}),items:Object(r.mapValues)(Object(r.pick)(t.items,a),function(e,n){var o={};return e.description||(o.description=Object(i.translate)("This field is required")),t.ignoreWeightValidation[n]||(Object(r.isNil)(e.weight)||""===e.weight?o.weight=Object(i.translate)("This field is required"):parseFloat(e.weight)>0||(o.weight=Object(i.translate)("Weight must be greater than zero"))),t.ignoreValueValidation[n]||(Object(r.isNil)(e.value)||""===e.value?o.value=Object(i.translate)("This field is required"):parseFloat(e.value)>0||(o.value=Object(i.translate)("Declared value must be greater than zero"))),e.tariffNumber&&6!==e.tariffNumber.length&&(o.tariffNumber=Object(i.translate)("The tariff number must be 6 digits long")),o})}},N=function(e){var t=e.values,n=e.available,i=Object(r.map)(n,function(e,n){return t[n]});return!Object(r.isEmpty)(i)&&Object(r.every)(i)},M=function(e){var t=e.values,n=e.available;return Object(r.mapValues)(n,function(e,n){if(!Object(r.isEmpty)(e.default.errors)){var o=e.default.errors.map(function(e){return e.userMessage||e.message}).filter(Boolean);return o.length?o:["We couldn't get a rate for this package, please try again."]}return t[n]&&t[n].serviceId?[]:Object(r.isEmpty)(e.default.rates)?[Object(i.translate)("No rates available, please double check dimensions and weight or try using different packaging.")]:[Object(i.translate)("Please choose a rate")]})},P=function(e){var t={};return e||(t.paperSize=Object(i.translate)("This field is required")),t},A=Object(o.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);if(!E(e,t,n))return{};var o=h(e,t,n),c=o.form,s=o.paperSize;if(Object(r.isEmpty)(c))return{};var u,d=c.destination.values.country,l=Object(f.g)(e,d,n),p=j(e,t,n);return{origin:R(c.origin,e,n,p),destination:R(c.destination,e,n),packages:(u=c.packages.selected,Object(r.mapValues)(u,function(e){var t={};"not_selected"===e.box_id&&(t.box_id=Object(i.translate)("Please select a package"));var n=function(e){return!Object(r.isFinite)(e)||0>=e};return n(e.weight)&&(t.weight=Object(i.translate)("Invalid weight")),Object(r.some)([e.length,e.width,e.height],n)&&(t.dimensions=Object(i.translate)("Package dimensions must be greater than zero")),t})),customs:T(c.packages.selected,c.customs,d,l),rates:M(c.rates),sidebar:P(s)}},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return[h(e,t,n)]}),w=Object(o.a)(function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(a.a)(e),i=h(e,t,r).form,o="origin"===n&&j(e,t,r),c=I(e,i[n],r,o);return 0===Object.keys(c).length},function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(a.a)(e);return[h(e,t,r).form[n]]}),k=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),i=y(e,t,n);if(!i)return!1;var o=Object(r.uniq)(Object(r.flatten)(Object(r.map)(i.packages.selected,function(e){return Object(r.map)(e.items,"product_id")})));return!Object(r.some)(o.map(function(e){return Object(r.isNil)(i.customs.items[e].tariffNumber)||i.customs.ignoreWeightValidation[e]||i.customs.ignoreValueValidation[e]}))},L=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),i=y(e,t,n);if(!i)return null;var o=A(e,t,n);return i.origin.isNormalized&&Object(r.isEqual)(i.origin.values,i.origin.normalized)&&!Object(c.a)(o.origin)?i.destination.isNormalized&&Object(r.isEqual)(i.destination.values,i.destination.normalized)&&!Object(c.a)(o.destination)?Object(c.a)(o.packages)?"packages":!j(e,t,n)||!Object(c.a)(o.customs)&&k(e,t,n)?Object(c.a)(o.rates)?"rates":null:"customs":"destination":"origin"},x=Object(o.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),i=y(e,t,n);return!Object(r.isEmpty)(i)&&!L(e,t,n)&&!i.origin.normalizationInProgress&&!i.destination.normalizationInProgress&&!i.rates.retrievalInProgress&&!Object(r.isEmpty)(i.rates.available)},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return[y(e,t,n),L(e,t,n)]}),D=Object(o.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=Object(f.d)(e,t);return Object(p.b)(e,t)?Object(r.pick)(n,l.a):Object(r.pick)(n,l.b)},[f.d,p.b]),W=Object(o.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=Object(f.d)(e,t);return Object(p.b)(e,t)?n:Object(r.pick)(n,l.b)},[f.d,p.b]),V=Object(o.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);if(!Object(f.j)(e,t,n))return null;var i=Object(f.i)(e,t,n),o={};return i.forEach(function(e){var t=e.code,n=e.name;return o[t]=n}),"US"!==t||Object(p.b)(e,n)?o:Object(r.omit)(o,l.d)},[f.i,p.b]),H=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return E(e,t,n)&&Object(s.d)(e,n)&&Object(u.i)(e,n)&&Object(f.b)(e,n)}},538:function(e,t,n){"use strict";n.d(t,"i",function(){return r}),n.d(t,"k",function(){return i}),n.d(t,"l",function(){return o}),n.d(t,"m",function(){return a}),n.d(t,"j",function(){return c}),n.d(t,"h",function(){return s}),n.d(t,"n",function(){return u}),n.d(t,"o",function(){return d}),n.d(t,"p",function(){return l}),n.d(t,"q",function(){return f}),n.d(t,"r",function(){return p}),n.d(t,"s",function(){return h}),n.d(t,"t",function(){return E}),n.d(t,"u",function(){return O}),n.d(t,"v",function(){return b}),n.d(t,"x",function(){return m}),n.d(t,"w",function(){return v}),n.d(t,"y",function(){return g}),n.d(t,"z",function(){return _}),n.d(t,"A",function(){return C}),n.d(t,"B",function(){return y}),n.d(t,"C",function(){return S}),n.d(t,"D",function(){return j}),n.d(t,"I",function(){return I}),n.d(t,"E",function(){return R}),n.d(t,"J",function(){return T}),n.d(t,"G",function(){return N}),n.d(t,"H",function(){return M}),n.d(t,"K",function(){return P}),n.d(t,"L",function(){return A}),n.d(t,"M",function(){return w}),n.d(t,"N",function(){return k}),n.d(t,"O",function(){return L}),n.d(t,"P",function(){return x}),n.d(t,"Q",function(){return D}),n.d(t,"R",function(){return W}),n.d(t,"S",function(){return V}),n.d(t,"T",function(){return H}),n.d(t,"U",function(){return G}),n.d(t,"F",function(){return U}),n.d(t,"V",function(){return B}),n.d(t,"W",function(){return F}),n.d(t,"X",function(){return z}),n.d(t,"Y",function(){return q}),n.d(t,"Z",function(){return K}),n.d(t,"ab",function(){return Z}),n.d(t,"bb",function(){return Q}),n.d(t,"Vb",function(){return Y}),n.d(t,"cb",function(){return $}),n.d(t,"db",function(){return J}),n.d(t,"eb",function(){return X}),n.d(t,"fb",function(){return ee}),n.d(t,"gb",function(){return te}),n.d(t,"hb",function(){return ne}),n.d(t,"ib",function(){return re}),n.d(t,"jb",function(){return ie}),n.d(t,"kb",function(){return oe}),n.d(t,"lb",function(){return ae}),n.d(t,"mb",function(){return ce}),n.d(t,"nb",function(){return se}),n.d(t,"ob",function(){return ue}),n.d(t,"pb",function(){return de}),n.d(t,"qb",function(){return le}),n.d(t,"rb",function(){return fe}),n.d(t,"sb",function(){return pe}),n.d(t,"ub",function(){return he}),n.d(t,"tb",function(){return Ee}),n.d(t,"vb",function(){return Oe}),n.d(t,"wb",function(){return be}),n.d(t,"xb",function(){return me}),n.d(t,"yb",function(){return ve}),n.d(t,"zb",function(){return ge}),n.d(t,"Ab",function(){return _e}),n.d(t,"Bb",function(){return Ce}),n.d(t,"Cb",function(){return ye}),n.d(t,"Db",function(){return Se}),n.d(t,"Eb",function(){return je}),n.d(t,"Gb",function(){return Ie}),n.d(t,"Hb",function(){return Re}),n.d(t,"Ib",function(){return Te}),n.d(t,"Jb",function(){return Ne}),n.d(t,"Kb",function(){return Me}),n.d(t,"Lb",function(){return Pe}),n.d(t,"Mb",function(){return Ae}),n.d(t,"Nb",function(){return we}),n.d(t,"Ob",function(){return ke}),n.d(t,"Pb",function(){return Le}),n.d(t,"Qb",function(){return xe}),n.d(t,"Fb",function(){return De}),n.d(t,"Sb",function(){return We}),n.d(t,"Rb",function(){return Ve}),n.d(t,"Tb",function(){return He}),n.d(t,"Ub",function(){return Ge}),n.d(t,"Wb",function(){return Ue}),n.d(t,"Xb",function(){return Be}),n.d(t,"Yb",function(){return Fe}),n.d(t,"a",function(){return ze}),n.d(t,"g",function(){return qe}),n.d(t,"e",function(){return Ke}),n.d(t,"f",function(){return Ze}),n.d(t,"c",function(){return Qe}),n.d(t,"d",function(){return Ye}),n.d(t,"b",function(){return $e});var r="WOOCOMMERCE_SERVICES_LABELS_INIT_FORM",i="WOOCOMMERCE_SERVICES_LABELS_RESTORE_PRISTINE",o="WOOCOMMERCE_SERVICES_LABELS_SET_FORM_DATA_VALUE",a="WOOCOMMERCE_SERVICES_LABELS_SET_FORM_META_PROPERTY",c="WOOCOMMERCE_SERVICES_LABELS_OPEN_ADD_CARD_DIALOG",s="WOOCOMMERCE_SERVICES_LABELS_CLOSE_ADD_CARD_DIALOG",u="WOOCOMMERCE_SERVICES_PACKAGES_ADD_PACKAGE",d="WOOCOMMERCE_SERVICES_PACKAGES_DISMISS_MODAL",l="WOOCOMMERCE_SERVICES_PACKAGES_EDIT_PACKAGE",f="WOOCOMMERCE_SERVICES_PACKAGES_INIT_PACKAGES_FORM",p="WOOCOMMERCE_SERVICES_PACKAGES_REMOVE_PACKAGE",h="WOOCOMMERCE_SERVICES_PACKAGES_REMOVE_PREDEFINED",E="WOOCOMMERCE_SERVICES_PACKAGES_SAVE_PACKAGE",O="WOOCOMMERCE_SERVICES_PACKAGES_SAVE_PREDEFINED",b="WOOCOMMERCE_SERVICES_PACKAGES_SET_ADD_MODE",m="WOOCOMMERCE_SERVICES_PACKAGES_SET_IS_FETCH_ERROR",v="WOOCOMMERCE_SERVICES_PACKAGES_SET_IS_FETCHING",g="WOOCOMMERCE_SERVICES_PACKAGES_SET_IS_SAVING",_="WOOCOMMERCE_SERVICES_PACKAGES_SET_MODAL_ERROR",C="WOOCOMMERCE_SERVICES_PACKAGES_TOGGLE_ALL_PREDEFINED",y="WOOCOMMERCE_SERVICES_PACKAGES_TOGGLE_OUTER_DIMENSIONS",S="WOOCOMMERCE_SERVICES_PACKAGES_TOGGLE_PREDEFINED",j="WOOCOMMERCE_SERVICES_PACKAGES_UPDATE_PACKAGES_FIELD",I="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADD_ITEMS",R="WOOCOMMERCE_SERVICES_SERVICE_SETTINGS_UPDATE_FIELD",T="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADD_PACKAGE",N="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADDRESS_NORMALIZATION_COMPLETED",M="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADDRESS_NORMALIZATION_IN_PROGRESS",P="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLEAR_AVAILABLE_RATES",A="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_ADD_ITEM",w="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_DETAILS_DIALOG",k="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_ITEM_MOVE",L="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_REFUND_DIALOG",x="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_REPRINT_DIALOG",D="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CONFIRM_ADDRESS_SUGGESTION",W="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CONFIRM_REPRINT",V="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_EDIT_ADDRESS",H="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_EDIT_UNVERIFIABLE_ADDRESS",G="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_EXIT_PRINTING_FLOW",U="WOOCOMMERCE_SERVICES_SHIPPING_EXIT_TRACKING_FLOW",B="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_INIT",F="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_MOVE_ITEM",z="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_ADD_ITEM",q="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_DETAILS_DIALOG",K="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_ITEM_MOVE",Z="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_PACKAGE",Q="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_PRINTING_FLOW",Y="WOOCOMMERCE_SERVICES_SHIPPING_OPEN_TRACKING_FLOW",$="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_REFUND_DIALOG",J="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_REPRINT_DIALOG",X="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_PURCHASE_REQUEST",ee="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_PURCHASE_RESPONSE",te="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_RATES_RETRIEVAL_COMPLETED",ne="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_RATES_RETRIEVAL_IN_PROGRESS",re="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REFUND_REQUEST",ie="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REFUND_RESPONSE",oe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REMOVE_IGNORE_VALIDATION",ae="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REMOVE_PACKAGE",ce="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REPRINT_DIALOG_ERROR",se="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REPRINT_DIALOG_READY",ue="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SAVE_CUSTOMS",de="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SAVE_PACKAGES",le="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SELECT_NORMALIZED_ADDRESS",fe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_ABANDON_ON_NON_DELIVERY",pe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_ADDED_ITEM",he="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CONTENTS_TYPE",Ee="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CONTENTS_EXPLANATION",Oe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_DESCRIPTION",be="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_ORIGIN_COUNTRY",me="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_TARIFF_NUMBER",ve="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_VALUE",ge="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_WEIGHT",_e="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_EMAIL_DETAILS",Ce="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_FETCH_ERROR",ye="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_FULFILL_ORDER",Se="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_IS_FETCHING",je="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_ITN",Ie="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_PACKAGE_TYPE",Re="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_RATES",Te="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_RESTRICTION_COMMENTS",Ne="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_RESTRICTION_TYPE",Me="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_TARGET_PACKAGE",Pe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SHOW_PRINT_CONFIRMATION",Ae="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_STATUS_RESPONSE",we="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_STATUS_RETRIEVAL_IN_PROGRESS",ke="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_TOGGLE_STEP",Le="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_ADDRESS_VALUE",xe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_PACKAGE_WEIGHT",De="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_PACKAGE_SIGNATURE",We="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_RATE",Ve="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_PAPER_SIZE",He="WOOCOMMERCE_SERVICES_SHIPPING_METHOD_SCHEMA_REQUEST",Ge="WOOCOMMERCE_SERVICES_SHIPPING_METHOD_SCHEMA_REQUEST_SUCCESS",Ue="WOOCOMMERCE_SERVICES_SHIPPING_ZONE_METHOD_SETTINGS_REQUEST",Be="WOOCOMMERCE_SERVICES_SHIPPING_ZONE_METHOD_SETTINGS_REQUEST_SUCCESS",Fe="WOOCOMMERCE_SERVICES_SHIPPING_ZONE_METHOD_UPDATE",ze="WOOCOMMERCE_SERVICES_CARRIER_ACCOUNTS_CONNECTION_SUCCESS",qe="WOOCOMMERCE_SERVICES_CARRIER_ACCOUNTS_UPDATE_SETTINGS",Ke="WOOCOMMERCE_SERVICES_CARRIER_ACCOUNTS_TOGGLE_IS_SAVING",Ze="WOOCOMMERCE_SERVICES_CARRIER_ACCOUNTS_TOGGLE_SHOW_UPS_INVOICE_FIELDS",Qe="WOOCOMMERCE_SERVICES_CARRIER_ACCOUNTS_ENABLE_CANCEL_CONNECTION_DIALOG",Ye="WOOCOMMERCE_SERVICES_CARRIER_ACCOUNTS_ENABLE_DISCONNECT_DIALOG",$e="WOOCOMMERCE_SERVICES_CARRIER_ACCOUNTS_DISCONNECT_CARRIER"},539:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var r="LOADING",i="ERROR"},541:function(e,t,n){"use strict";n.d(t,"e",function(){return h}),n.d(t,"b",function(){return O}),n.d(t,"d",function(){return b}),n.d(t,"a",function(){return m}),n.d(t,"c",function(){return v}),n.d(t,"f",function(){return g}),n.d(t,"i",function(){return _}),n.d(t,"h",function(){return C}),n.d(t,"g",function(){return y});var r=n(110),i=n.n(r),o=n(36),a=n.n(o),c=n(1),s=n(35),u=n(545),d=n(532),l=n(575),f=n(565),p=n(537),h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e);return Object(c.get)(e,["extensions","woocommerce","woocommerceServices",t,"packages"],null)},E=function(e){return e&&e.predefinedSchema?Object.keys(e.predefinedSchema):[]},O=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e),n=h(e,t);if(!n||!n.predefinedSchema||!n.packages)return null;var r=[];Object(c.forEach)(n.predefinedSchema,function(e,t){var i=(n.packages.predefined||{})[t]||[];Object(c.forEach)(e,function(e){var n=e.definitions;Object(c.forEach)(n,function(e){Object(c.includes)(i,e.id)&&r.push(a()({},e,{serviceId:t}))})})});var i=(n.packages.custom||[]).map(function(e,t){return a()({},e,{index:t})});return Object(c.orderBy)(r.concat(i),"name")},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e),n=h(e,t);if(!n||!n.packages)return[];var r=E(n);return[].concat(i()(n.packages.custom||[]),i()(r.map(function(e){return(n.packages.predefined||{})[e]})))}),b=Object(u.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(d.a)(e),r=h(e,n);if(!r||!r.predefinedSchema||!r.packages)return null;var i=Object(p.e)(e,t,n),o=Object(f.a)(i.origin).country,a=Object(f.a)(i.destination).country,u=l.a.includes(o)&&!l.a.includes(a),E={custom:{title:Object(s.translate)("Custom Packages"),definitions:r.packages.custom}};return Object(c.forEach)(r.predefinedSchema,function(e,t){var n=(r.packages.predefined||{})[t]||[];Object(c.forEach)(e,function(e,t){var r=e.definitions,i={title:e.title,definitions:[]};Object(c.forEach)(r,function(e){u&&!1===e.can_ship_international||Object(c.includes)(n,e.id)&&i.definitions.push(e)}),i.definitions.length&&(E[t]=i)})}),E},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(d.a)(e),r=h(e,n);if(!r||!r.packages)return[];var o=E(r),a=Object(p.e)(e,t,n),c=Object(f.a)(a.origin).country,s=Object(f.a)(a.destination).country;return[].concat(i()(r.packages.custom||[]),i()(o.map(function(e){return(r.packages.predefined||{})[e]})),[c,s])}),m=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e),n=h(e,t);if(!n||!n.predefinedSchema||!n.packages)return null;var r={};return Object(c.forEach)(n.packages.custom,function(e){r[e.name]=e}),Object(c.forEach)(n.predefinedSchema,function(e){Object(c.forEach)(e,function(e){var t=e.definitions;Object(c.forEach)(t,function(e){r[e.id]=e})})}),r},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e),n=h(e,t);if(!n||!n.packages)return[];var r=E(n);return[].concat(i()(n.packages.custom||[]),i()(r.map(function(e){return(n.packages.predefined||{})[e]})))}),v=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e),n=h(e,t);if(!n||!n.currentlyEditingPredefinedPackages)return null;var r={},i=n.predefinedSchema,o=n.currentlyEditingPredefinedPackages;return Object(c.forEach)(i,function(e,t){var n=o[t]||[];Object(c.forEach)(e,function(e,i){var o={groupId:i,serviceId:t,title:e.title,packages:[],total:e.definitions.length,selected:0};Object(c.forEach)(e.definitions,function(e){var r=Object(c.includes)(n,e.id);r&&o.selected++,o.packages.push(a()({},e,{selected:r,serviceId:t}))}),r["".concat(t,"-").concat(i)]=o})}),r},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e),n=h(e,t);if(!n||!n.currentlyEditingPredefinedPackages)return[];var r=E(n);return i()(r.map(function(e){return n.currentlyEditingPredefinedPackages[e]}))}),g=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e),n=0,r=0,i=h(e,t);if(!i||!i.currentlyEditingPredefinedPackages)return{added:n,removed:r};var o=i.packages&&i.packages.predefined?i.packages.predefined:{},a=i.currentlyEditingPredefinedPackages;return Object.keys(a).forEach(function(e){var t=o[e],r=a[e];t?r.forEach(function(e){Object(c.includes)(t,e)||n++}):n+=r.length}),Object.keys(o).forEach(function(e){var t=o[e],n=a[e];n?t.forEach(function(e){Object(c.includes)(n,e)||r++}):r+=t.length}),{added:n,removed:r}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e),n=h(e,t);if(!n||!n.currentlyEditingPredefinedPackages)return[];var r=E(n);return[].concat(i()(r.map(function(e){return n.packages&&n.packages.predefined&&n.packages.predefined[e]})),i()(r.map(function(e){return n.currentlyEditingPredefinedPackages[e]})))}),_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e),n=h(e,t);return n&&n.isLoaded},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e),n=h(e,t);return n&&n.isFetching},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(d.a)(e),n=h(e,t);return n&&n.isFetchError}},542:function(e,t,n){"use strict";n.d(t,"a",function(){return j});var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(107),s=n.n(c),u=n(108),d=n.n(u),l=n(528),f=n.n(l),p=n(527),h=n.n(p),E=n(529),O=n.n(E),b=n(34),m=n.n(b),v=n(10),g=n.n(v),_=n(12),C=n.n(_),y=n(526),S=n.n(y),j=function(e){function t(){return s()(this,t),f()(this,h()(t).apply(this,arguments))}return O()(t,e),d()(t,[{key:"render",value:function(){var e=S()("button",this.props.className,{"is-compact":this.props.compact,"is-primary":this.props.primary,"is-scary":this.props.scary,"is-busy":this.props.busy,"is-borderless":this.props.borderless});if(this.props.href){var t=this.props,n=(t.compact,t.primary,t.scary,t.busy,t.borderless,t.type,a()(t,["compact","primary","scary","busy","borderless","type"])),r=n.target?(n.rel||"").replace(/noopener|noreferrer/g,"")+" noopener noreferrer":n.rel;return g.a.createElement("a",i()({},n,{rel:r,className:e}))}var o=this.props,c=(o.compact,o.primary,o.scary,o.busy,o.borderless,o.target,o.rel,a()(o,["compact","primary","scary","busy","borderless","target","rel"]));return g.a.createElement("button",i()({},c,{className:e}))}}]),t}(v.PureComponent);m()(j,"propTypes",{compact:C.a.bool,primary:C.a.bool,scary:C.a.bool,busy:C.a.bool,type:C.a.string,href:C.a.string,borderless:C.a.bool,target:C.a.string,rel:C.a.string}),m()(j,"defaultProps",{type:"button"})},543:function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"c",function(){return g}),n.d(t,"b",function(){return _}),n.d(t,"a",function(){return C});var r={};n.r(r),n.d(r,"accountSettings",function(){return o}),n.d(r,"packages",function(){return a}),n.d(r,"orderLabels",function(){return c}),n.d(r,"getLabelRates",function(){return s}),n.d(r,"labelStatus",function(){return u}),n.d(r,"labelRefund",function(){return d}),n.d(r,"labelsPrint",function(){return l}),n.d(r,"labelTestPrint",function(){return f}),n.d(r,"addressNormalization",function(){return p}),n.d(r,"serviceSettings",function(){return h}),n.d(r,"shippingCarrier",function(){return E}),n.d(r,"shippingCarriers",function(){return O}),n.d(r,"shippingCarrierDelete",function(){return b}),n.d(r,"shippingCarrierTypes",function(){return m});var i=n(561),o="connect/account/settings",a="connect/packages",c=function(e){return"connect/label/".concat(e)},s=function(e){return"connect/label/".concat(e,"/rates")},u=function(e,t){return"connect/label/".concat(e,"/").concat(t)},d=function(e,t){return"connect/label/".concat(e,"/").concat(t,"/refund")},l=function(){return"connect/label/print"},f=function(){return"connect/label/preview"},p=function(){return"connect/normalize-address"},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"connect/services/".concat(e,"/").concat(t)},E=function(){return"connect/shipping/carrier"},O=function(){return"connect/shipping/carriers"},b=function(e){return"connect/shipping/carrier/".concat(e)},m=function(){return"connect/shipping/carrier-types"},v=function(e){if(e&&e.message)throw e.message;if(e&&e.data&&e.data.message)throw e.data.message;throw e},g=function(e,t,n){return Object(i.a)(e).post(t,n,"wc/v1").catch(v)},_=function(e,t){return Object(i.a)(e).get(t,"wc/v1").catch(v)},C=function(e,t){return Object(i.a)(e).del(t,"wc/v1").catch(v)}},544:function(e,t,n){"use strict";n.d(t,"f",function(){return a}),n.d(t,"g",function(){return c}),n.d(t,"h",function(){return s}),n.d(t,"i",function(){return u}),n.d(t,"d",function(){return d}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return f}),n.d(t,"a",function(){return p}),n.d(t,"n",function(){return h}),n.d(t,"o",function(){return E}),n.d(t,"e",function(){return O}),n.d(t,"q",function(){return b}),n.d(t,"p",function(){return m}),n.d(t,"k",function(){return v}),n.d(t,"l",function(){return g}),n.d(t,"m",function(){return _}),n.d(t,"j",function(){return C});var r=n(1),i=n(532),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",t,"labelSettings"],null)},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=o(e,t);return n&&n.data},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=o(e,t);return n&&n.meta},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=o(e,t);return n&&n.storeOptions},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.user},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.isLoaded},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.isFetching},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.isFetchError},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=a(e,t);return n&&n.enabled},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=a(e,t);return n&&n.selected_payment_method_id},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.pristine},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=a(e,t);return n&&n.email_receipts},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.can_manage_payments},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.can_edit_settings},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=a(e,t);return n&&n.paper_size},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.payment_methods},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.warnings&&n.warnings.payment_methods},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return{masterUserName:n&&n.master_user_name,masterUserLogin:n&&n.master_user_login,masterUserEmail:n&&n.master_user_email,masterUserWpcomLogin:n&&n.master_user_wpcom_login}}},545:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(1),i=n(607),o=n.n(i),a=(n(112),function(e){return e}),c=function(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 n.join()},s=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.map(function(e){return e.apply(void 0,[t].concat(r))})}};function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,u=Object(r.memoize)(e,i);return Array.isArray(n)&&(n=s(n)),Object.assign(function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var c=n.apply(void 0,[e].concat(i));return Array.isArray(c)||(c=[c]),t&&!o()(c,t)&&u.cache.clear(),t=c,u.apply(void 0,[e].concat(i))},{memoizedSelector:u})}},546:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(10),s=n.n(c),u=n(526),d=n.n(u);t.a=function(e){var t=e.className,n=e.children,r=a()(e,["className","children"]);return s.a.createElement("fieldset",i()({},r,{className:d()(t,"form-fieldset")}),n)}},547:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(36),s=n.n(c),u=n(10),d=n.n(u),l=n(12),f=n.n(l),p=n(526),h=n.n(p),E=n(35),O=n(1),b=function(e){var t=e.children,n=e.required,r=e.optional,o=e.translate,c=e.className,u=a()(e,["children","required","optional","translate","className"]);return t=d.a.Children.toArray(t)||[],n&&t.push(function(e){return d.a.createElement("small",{className:"form-label__required"},e("Required"))}(o)),r&&t.push(function(e){return d.a.createElement("small",{className:"form-label__optional"},e("Optional"))}(o)),d.a.createElement("label",i()({},Object(O.omit)(u,"moment","numberFormat"),{className:h()(c,"form-label")}),t.length?t.map(function(e,t){return Object(O.isObject)(e)?s()({},e,{key:t}):e}):null)};b.propTypes={required:f.a.bool},t.a=Object(E.localize)(b)},548:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(10),s=n.n(c),u=n(526),d=n.n(u);t.a=function(e){var t=e.className,n=e.children,r=a()(e,["className","children"]);return s.a.createElement("h3",i()({},r,{className:d()(t,"form-section-heading")}),n)}},549:function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"d",function(){return d}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return f});var r=n(533),i=n.n(r),o=n(1),a={debounce:o.debounce,isPlainObject:o.isPlainObject,uniqueId:o.uniqueId},c=(n(46),a.uniqueId);function s(e){return{noticeId:e,type:"NOTICE_REMOVE"}}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.id,o=i()(n,["id"]);return{type:"NOTICE_CREATE",notice:Object.assign({showDismiss:!0},o,{noticeId:r||c(),status:e,text:t})}}var d=u.bind(null,"is-success"),l=u.bind(null,"is-error"),f=u.bind(null,"is-info");u.bind(null,"is-warning"),u.bind(null,"is-plain")},550:function(e,t,n){"use strict";var r=n(10),i=n.n(r),o=n(12),a=n.n(o),c=n(526),s=n.n(c),u=n(534),d=n.n(u),l=function(e){var t=e.text,n=e.type,r=void 0===n?"input-validation":n;return i.a.createElement("div",{className:s()("field-error","field-error__".concat(r))},i.a.createElement(d.a,{size:24,icon:"notice-outline"})," ",i.a.createElement("span",null,t))};l.propTypes={text:a.a.string.isRequired,type:a.a.string},t.a=l},552:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(1),i=function e(t){return!!t&&(Object(r.isArray)(t)?Object(r.some)(t,e):!Object(r.isPlainObject)(t)||Object(r.some)(Object(r.values)(t),e))}},553:function(e,t,n){"use strict";var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),d=n.n(u),l=n(531),f=n.n(l),p=n(529),h=n.n(p),E=n(34),O=n.n(E),b=n(12),m=n.n(b),v=n(10),g=n.n(v),_=n(526),C=n.n(_),y=n(1),S=n(35),j=n(534),I=n.n(j),R=n(564),T=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=s()(this,(e=d()(t)).call.apply(e,[this].concat(o))),O()(f()(n),"dismissTimeout",null),n}return h()(t,e),a()(t,[{key:"componentDidMount",value:function(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}},{key:"componentWillUnmount",value:function(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)}},{key:"componentDidUpdate",value:function(){clearTimeout(this.dismissTimeout),this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}},{key:"getIcon",value:function(){var e;switch(this.props.status){case"is-info":e="info";break;case"is-success":e="checkmark";break;case"is-error":case"is-warning":e="notice";break;default:e="info"}return e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.icon,i=e.isCompact,o=e.isLoading,a=e.onDismissClick,c=e.showDismiss,s=void 0===c?!i:c,u=e.status,d=e.text,l=e.translate,f=C()("notice",u,n,{"is-compact":i,"is-loading":o,"is-dismissable":s});return g.a.createElement("div",{className:f},g.a.createElement("span",{className:"notice__icon-wrapper"},g.a.createElement(I.a,{className:"notice__icon",icon:r||this.getIcon(),size:24})),g.a.createElement("span",{className:"notice__content"},g.a.createElement("span",{className:"notice__text"},d||t)),d?t:null,s&&g.a.createElement("span",{tabIndex:"0",className:"notice__dismiss",onClick:a},g.a.createElement(I.a,{icon:"cross",size:24}),g.a.createElement(R.a,null,l("Dismiss"))))}}]),t}(v.Component);O()(T,"defaultProps",{className:"",duration:0,icon:null,isCompact:!1,isLoading:!1,onDismissClick:y.noop,status:null,text:null}),O()(T,"propTypes",{className:m.a.string,duration:m.a.number,icon:m.a.string,isCompact:m.a.bool,isLoading:m.a.bool,onDismissClick:m.a.func,showDismiss:m.a.bool,status:m.a.oneOf(["is-error","is-info","is-success","is-warning","is-plain"]),text:m.a.oneOfType([m.a.arrayOf(m.a.oneOfType([m.a.string,m.a.node])),m.a.oneOfType([m.a.string,m.a.node])]),translate:m.a.func.isRequired}),t.a=Object(S.localize)(T)},554:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(10),s=n.n(c),u=n(526),d=n.n(u);t.a=function(e){var t=e.className,n=e.children,r=a()(e,["className","children"]);return s.a.createElement("legend",i()({},r,{className:d()(t,"form-legend")}),n)}},555:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(530),i=n.n(r),o=n(10),a=n.n(o),c=n(526),s=n.n(c),u=n(560);function d(e){return a.a.createElement(u.a,i()({},e,{className:s()(e.className,"is-compact")}),e.children)}},556:function(e,t,n){"use strict";n.r(t),n.d(t,"addPackage",function(){return a}),n.d(t,"removePackage",function(){return c}),n.d(t,"editPackage",function(){return s}),n.d(t,"dismissModal",function(){return u}),n.d(t,"savePackage",function(){return d}),n.d(t,"updatePackagesField",function(){return l}),n.d(t,"toggleOuterDimensions",function(){return f}),n.d(t,"toggleAll",function(){return p}),n.d(t,"togglePackage",function(){return h}),n.d(t,"savePredefinedPackages",function(){return E}),n.d(t,"removePredefinedPackage",function(){return O}),n.d(t,"setModalErrors",function(){return b}),n.d(t,"setIsSaving",function(){return m}),n.d(t,"setIsFetching",function(){return v}),n.d(t,"setIsFetchError",function(){return g}),n.d(t,"setAddMode",function(){return _}),n.d(t,"fetchSettings",function(){return C}),n.d(t,"submit",function(){return y});var r=n(543),i=n(538),o=n(541),a=function(e){return{type:i.n,siteId:e}},c=function(e,t){return{type:i.r,index:t,siteId:e}},s=function(e,t){return{type:i.p,package:t,siteId:e}},u=function(e){return{type:i.o,siteId:e}},d=function(e,t){return{type:i.t,packageData:t,siteId:e}},l=function(e,t){return{type:i.D,values:t,siteId:e}},f=function(e){return{type:i.B,siteId:e}},p=function(e,t,n,r){return{type:i.A,serviceId:t,groupId:n,checked:r,siteId:e}},h=function(e,t,n){return{type:i.C,serviceId:t,packageId:n,siteId:e}},E=function(e){return{type:i.u,siteId:e}},O=function(e,t,n){return{type:i.s,serviceId:t,packageId:n,siteId:e}},b=function(e,t){return{type:i.z,value:t,siteId:e}},m=function(e,t){return{type:i.y,isSaving:t,siteId:e}},v=function(e,t){return{type:i.w,isFetching:t,siteId:e}},g=function(e,t){return{type:i.x,isFetchError:t,siteId:e}},_=function(e,t){return{type:i.v,siteId:e,mode:t}},C=function(e){return function(t,n){var a=Object(o.e)(n(),e);a&&(a.packages||a.isFetching)||(t(v(e,!0)),r.b(e,r.d.packages).then(function(n){var r=n.formData,o=n.formSchema,a=n.storeOptions;t({type:i.q,packages:r,dimensionUnit:a.dimension_unit,weightUnit:a.weight_unit,packageSchema:o.custom.items,predefinedSchema:o.predefined,siteId:e})}).catch(function(n){console.error(n),t(g(e,!0))}).then(function(){return t(v(e,!1))}))}},y=function(e,t,n){return function(i,a){var c=Object(o.e)(a(),e);i(m(e,!0)),r.c(e,r.d.packages,c.packages).then(t).catch(n).then(function(){return i(m(e,!1))})}}},557:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(535);function i(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:r.j,siteId:e,originalAction:t,data:n,time:i}}},558:function(e,t,n){"use strict";n.d(t,"a",function(){return I});var r=n(530),i=n.n(r),o=n(107),a=n.n(o),c=n(108),s=n.n(c),u=n(528),d=n.n(u),l=n(527),f=n.n(l),p=n(531),h=n.n(p),E=n(529),O=n.n(E),b=n(34),m=n.n(b),v=n(10),g=n.n(v),_=n(12),C=n.n(_),y=n(526),S=n.n(y),j=n(1),I=function(e){function t(){var e;return a()(this,t),(e=d()(this,f()(t).apply(this,arguments))).selectOnFocus=e.selectOnFocus.bind(h()(e)),e}return O()(t,e),s()(t,[{key:"focus",value:function(){this.refs.textField.focus()}},{key:"selectOnFocus",value:function(e){this.props.selectOnFocus&&e.target.select()}},{key:"render",value:function(){var e=this.props.inputRef,t=Object(j.omit)(this.props,"isError","isValid","selectOnFocus","inputRef"),n=S()("form-text-input",this.props.className,{"is-error":this.props.isError,"is-valid":this.props.isValid});return g.a.createElement("input",i()({type:"text"},t,{ref:e||"textField",className:n,onClick:this.selectOnFocus}))}}]),t}(v.PureComponent);m()(I,"propTypes",{isError:C.a.bool,isValid:C.a.bool,selectOnFocus:C.a.bool,className:C.a.string})},559:function(e,t,n){"use strict";n.d(t,"a",function(){return S});var r=n(530),i=n.n(r),o=n(107),a=n.n(o),c=n(108),s=n.n(c),u=n(528),d=n.n(u),l=n(527),f=n.n(l),p=n(529),h=n.n(p),E=n(34),O=n.n(E),b=n(10),m=n.n(b),v=n(12),g=n.n(v),_=n(526),C=n.n(_),y=n(1),S=function(e){function t(){return a()(this,t),d()(this,f()(t).apply(this,arguments))}return h()(t,e),s()(t,[{key:"render",value:function(){var e=C()(this.props.className,"form-setting-explanation",{"no-validate":this.props.noValidate,"is-indented":this.props.isIndented});return m.a.createElement("p",i()({},Object(y.omit)(this.props,"className","noValidate","isIndented"),{className:e}),this.props.children)}}]),t}(m.a.Component);O()(S,"displayName","FormSettingExplanation"),O()(S,"propTypes",{noValidate:g.a.bool,isIndented:g.a.bool,className:g.a.string}),O()(S,"defaultProps",{noValidate:!1,isIndented:!1})},560:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(107),s=n.n(c),u=n(108),d=n.n(u),l=n(528),f=n.n(l),p=n(527),h=n.n(p),E=n(529),O=n.n(E),b=n(34),m=n.n(b),v=n(10),g=n.n(v),_=n(526),C=n.n(_),y=n(534),S=n.n(y),j=n(12),I=n.n(j),R=function(e){var t=e.className,n=e.compact,r=e.displayAsLink,i=e.highlight,o=e.href,a=e.onClick;return C()("card",t,{"is-card-link":r||!!o,"is-clickable":!!a,"is-compact":n,"is-highlight":i},!!i&&"is-"+i)},T=function(e){function t(){return s()(this,t),f()(this,h()(t).apply(this,arguments))}return O()(t,e),d()(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=(e.compact,e.displayAsLink),r=(e.highlight,e.tagName),o=e.href,c=e.target,s=a()(e,["children","compact","displayAsLink","highlight","tagName","href","target"]);return o?g.a.createElement("a",i()({},s,{href:o,target:c,className:R(this.props)}),g.a.createElement(S.a,{className:"card__link-indicator",icon:c?"external":"chevron-right"}),t):g.a.createElement(r,i()({},s,{className:R(this.props)}),n&&g.a.createElement(S.a,{className:"card__link-indicator",icon:c?"external":"chevron-right"}),t)}}]),t}(v.PureComponent);m()(T,"propTypes",{className:I.a.string,displayAsLink:I.a.bool,href:I.a.string,tagName:I.a.oneOfType([I.a.func,I.a.string]).isRequired,target:I.a.string,compact:I.a.bool,highlight:I.a.oneOf([!1,"error","info","success","warning"])}),m()(T,"defaultProps",{tagName:"div",highlight:!1}),t.a=T},561:function(e,t,n){"use strict";var r=n(75);t.a=r.a},562:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o});var r=function(){return{}},i=function(){return""},o=function(){return!0}},563:function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"c",function(){return u}),n.d(t,"a",function(){return d}),n.d(t,"e",function(){return f}),n.d(t,"f",function(){return h}),n.d(t,"g",function(){return E}),n.d(t,"i",function(){return O}),n.d(t,"h",function(){return b}),n.d(t,"j",function(){return m}),n.d(t,"d",function(){return v});var r=n(1),i=n(545),o=n(532),a=n(539),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"data","locations"])},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);return Object(r.isArray)(c(e,t))},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);return a.b===c(e,t)},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);return a.a===c(e,t)},l=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=r[e],a=s(t,o);return[a,a&&c(t,o)]}},f=Object(i.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);if(!s(e,t))return[];var n=c(e,t).map(function(e){return Object(r.omit)(e,"countries")});return Object(r.sortBy)(n,"name")},l(0)),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);if(!s(e,t))return[];var n=Object(r.flatMap)(c(e,t),"countries");return Object(r.sortBy)(n,"name")},h=Object(i.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(o.a)(e);if(!s(e,n))return[];var i=Object(r.find)(c(e,n),{code:t});if(!i)return[];var a=i.countries.map(function(e){return Object(r.omit)(e,"states")});return Object(r.sortBy)(a,"name")},l(1)),E=Object(i.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(o.a)(e);if(!s(e,n))return t;var i=Object(r.find)(Object(r.flatMap)(c(e,n),"countries"),{code:t});return i?i.name:t},l(1)),O=Object(i.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(o.a)(e);if(!s(e,n))return[];var i=Object(r.find)(Object(r.flatMap)(c(e,n),"countries"),{code:t});return i?Object(r.sortBy)(i.states,"name"):[]},l(1)),b=Object(i.a)(function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(o.a)(e);if(!s(e,i))return n;var a=Object(r.find)(Object(r.flatMap)(c(e,i),"countries"),{code:t});if(!a)return n;var u=Object(r.find)(a.states,{code:n});return u?u.name:n},l(2)),m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(o.a)(e);return!Object(r.isEmpty)(O(e,t,n))},v=Object(i.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e),n=p(e,t),r={};return n.forEach(function(e){var t=e.code,n=e.name;return r[t]=n}),r},l(0))},564:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(10),i=n.n(r);n(577);function o(e){var t=e.children;return i.a.createElement("span",{className:"screen-reader-text"},t)}},565:function(e,t,n){"use strict";var r=n(1);t.a=function(e){return Object(r.isPlainObject)(e)&&(e.isNormalized&&e.selectNormalized&&e.normalized?e.normalized:e.values)||{}}},566:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i});var r=function(){return!0},i=function(){return!0}},567:function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"e",function(){return u}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return l});var r=n(543),i=n(538),o=n(544),a=function(e,t,n){return{type:i.l,siteId:e,key:t,value:n}},c=function(e,t,n){return{type:i.m,siteId:e,key:t,value:n}},s=function(e){return function(t){t(c(e,"isFetching",!0)),r.b(e,r.d.accountSettings).then(function(n){var r=n.storeOptions,o=n.formMeta,a=n.formData,c=n.userMeta;t(function(e,t,n,r,o){return{type:i.i,siteId:e,storeOptions:t,formData:n,formMeta:r,userMeta:o}}(e,r,a,o,c))}).catch(function(n){t(c(e,"isFetchError",!0)),console.error(n)}).then(function(){return t(c(e,"isFetching",!1))})}},u=function(e,t,n){return function(i,a){i(c(e,"isSaving",!0)),i(c(e,"pristine",!0)),r.c(e,r.d.accountSettings,Object(o.f)(a())).then(t).catch(function(t){return i(c(e,"pristine",!1)),n(t)}).then(function(){i(c(e,"isSaving",!1))})}},d=function(e){return{type:i.k,siteId:e}},l=function(e){return{type:i.j,siteId:e}}},568:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return u});var r=n(1),i=n(532),o=n(539),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",t,"shippingMethodSchemas"],{})},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return Object(r.isObject)(a(e,n)[t])},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return c(e,t,n)?a(e,n)[t]:null},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return o.b===a(e,n)[t]}},575:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"c",function(){return a});var r=["US","PR","VI","GU","AS","UM","MH","FM","MP"],i=["US","PR","VI"],o=["AA","AE","AP"],a=["IR","SY","KP","CU","SD"]},576:function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"a",function(){return d}),n.d(t,"b",function(){return l});var r=n(1),i=n(532),o=n(585),a=n(539),c=n(566),s=n(586),u=function(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"shippingZoneMethods"])}(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e));return Object(r.isObject)(n)?n[t]:null},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e),a=Object(o.b)(e,n);if(!Object(r.isArray)(a))return!1;var d=Object(r.find)(a,{id:t});if(!d||!Object(r.isArray)(d.methodIds))return!1;if(!Object(c.a)(e,n))return!0;var l=d.methodIds.map(function(t){var i=u(e,t,n);return i&&Object(r.startsWith)(i.methodType,"wc_services")?i:null}).filter(Boolean);return Object(r.every)(l,function(t){var r=t.id;return Object(s.a)(e,r,n)})},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e),d=Object(o.b)(e,n);if(!Object(r.isArray)(d))return!1;var l=Object(r.find)(d,{id:t});if(!l)return!1;if(a.b===l.methodIds)return!0;if(!Object(c.a)(e,n)||!Object(r.isArray)(l.methodIds))return!1;var f=l.methodIds.map(function(t){var i=u(e,t,n);return i&&Object(r.startsWith)(i.methodType,"wc_services")?i:null}).filter(Boolean);return Object(r.some)(f,function(t){var r=t.id;return Object(s.b)(e,r,n)})}},577:function(e,t,n){},578:function(e,t,n){"use strict";var r=n(10),i=n.n(r),o=n(12),a=n.n(o),c=n(546),s=n(547),u=n(558),d=n(550),l=n(559),f=function(e){var t=e.id,n=e.title,r=e.description,o=e.value,a=e.placeholder,f=e.updateValue,p=e.error,h=e.className;return i.a.createElement(c.a,{className:h},i.a.createElement(s.a,{htmlFor:t},n),i.a.createElement(u.a,{id:t,name:t,placeholder:a,value:o,onChange:function(e){return f(e.target.value)},isError:Boolean(p)}),p&&"string"===typeof p&&i.a.createElement(d.a,{text:p}),!p&&r&&i.a.createElement(l.a,null,r))};f.propTypes={id:a.a.string.isRequired,title:a.a.node,description:a.a.string,value:a.a.string.isRequired,updateValue:a.a.func,error:a.a.oneOfType([a.a.string,a.a.bool]),className:a.a.string},t.a=f},580:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(107),s=n.n(c),u=n(108),d=n.n(u),l=n(528),f=n.n(l),p=n(527),h=n.n(p),E=n(529),O=n.n(E),b=n(34),m=n.n(b),v=n(10),g=n.n(v),_=n(526),C=n.n(_),y=function(e){function t(){return s()(this,t),f()(this,h()(t).apply(this,arguments))}return O()(t,e),d()(t,[{key:"render",value:function(){var e=this.props,t=e.inputRef,n=e.className,r=e.isError,o=a()(e,["inputRef","className","isError"]),c=C()(n,"form-select",{"is-error":r});return g.a.createElement("select",i()({},o,{ref:t,className:c}),this.props.children)}}]),t}(g.a.Component);m()(y,"defaultProps",{isError:!1}),t.a=y},585:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return s});var r=n(1),i=n(532),o=(n(539),n(576)),a=n(611),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"shippingZones"])},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return Object(r.isArray)(n)&&Object(r.every)(n,function(n){return Object(o.a)(e,n.id,t)})&&Object(r.every)(n,function(n){return Object(a.a)(e,n.id,t)})}},586:function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return s});var r=n(1),i=n(532),o=n(539),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",t,"shippingZoneMethodSettings"],{})},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return!0===a(e,n)[t]},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return o.b===a(e,n)[t]}},588:function(e,t,n){"use strict";var r=n(10),i=n.n(r),o=n(12),a=n.n(o),c=n(526),s=n.n(c),u=n(555),d=n(548),l=function(e){var t=e.heading,n=e.children;return i.a.createElement(u.a,{className:"settings-group-card"},t&&i.a.createElement(d.a,{className:"settings-group-card__heading"},t),i.a.createElement("div",{className:s()("settings-group-card__content",{"is-full-width":!t})},n))};l.propTypes={heading:a.a.node},t.a=l},590:function(e,t,n){"use strict";var r=n(47),i=n.n(r),o=n(1),a=n(115),c=i()("calypso:notices");c("initializing notices");var s,u={containerNames:{}};s=u,Object(o.assign)(s,a.EventEmitter.prototype),s.emitChange=function(){this.emit("change")},s.off=s.removeListener;var d=[],l={new:function(e,t,n){var r=t.overlay?"overlay-notices":"notices";u.containerNames[r]=r,c("creating notice",e,t,n),u[r]=[];var i={type:t.type||"message",status:n,text:e,duration:t.duration,container:r,button:t.button,href:t.href,onClick:function(e){if("function"===typeof t.onClick){var n=l.removeNotice.bind(l,i);return t.onClick(e,n)}},onRemoveCallback:t.onRemoveCallback||function(){},arrow:t.arrow,isCompact:t.isCompact,showDismiss:t.showDismiss,persistent:t.persistent};return t.displayOnNextPage?d.push(i):u[r].push(i),u.emit("change"),i},success:function(e,t){return t=t||{},this.new(e,t,"is-success")},error:function(e,t){return t=t||{},this.new(e,t,"is-error")},info:function(e,t){return t=t||{},this.new(e,t,"is-info")},warning:function(e,t){return t=t||{},this.new(e,t,"is-warning")},list:u,removeNotice:function(e){if(e.container){var t=u[e.container],n=t.indexOf(e);-1!==n&&(t.splice(n,1),u.emit("change"))}},clearNoticesOnNavigation:function(e,t){c("clearNoticesOnNavigation");var n=!1,r=function(e){return e.persistent};for(var i in u.containerNames){var o=u[i].length;u[i]=u[i].filter(r),o!==u[i].length&&(n=!0)}d.length&&(d.forEach(function(e){u[e.container]=[],u[e.container].push(e)}),d=[]),n&&u.emit("change"),t()},clearNotices:function(e){u[e]=[],u.emit("change")},getStatusHelper:function(e){return e.error?"is-error":e.warning?"is-warning":e.info?"is-info":e.success?"is-success":void 0}};t.a=l},592:function(e,t,n){"use strict";var r,i=n(34),o=n.n(i),a=n(36),c=n.n(a),s=n(1),u=n(46),d=Object(u.b)({},(r={},o()(r,"NOTICE_CREATE",function(e,t){var n=t.notice;return c()({},e,o()({},n.noticeId,n))}),o()(r,"NOTICE_REMOVE",function(e,t){var n=t.noticeId;return e.hasOwnProperty(n)?Object(s.omit)(e,n):e}),o()(r,"ROUTE_SET",function(e){return Object(s.reduce)(e,function(e,t,n){if(!t.isPersistent&&!t.displayOnNextPage)return e;var r=t;return r.displayOnNextPage&&(r=c()({},r,{displayOnNextPage:!1})),e[n]=r,e},{})}),r)),l=Object(u.b)({},o()({},"NOTICE_CREATE",function(e,t){var n=t.notice;return c()({},e,o()({},n.noticeId,Date.now()))}));t.a=Object(u.a)({items:d,lastTimeShown:l})},593:function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return c}),n.d(t,"c",function(){return s});var r=n(535);function i(e){return{type:r.d,actionList:e}}function o(){return{type:r.b}}function a(e){return{type:r.a,actionList:e}}function c(e){return{type:r.e,actionList:e}}function s(e,t){return{type:r.c,actionList:e,error:t}}},594:function(e,t,n){"use strict";var r=n(661),i=["a","strong","em","u","tt","s"],o=["target","href"];t.a=function(e){return{__html:Object(r.sanitize)(e,{ALLOWED_TAGS:i,ALLOWED_ATTR:o})}}},599:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(10),a=n.n(o),c=n(12),s=n.n(c),u=n(526),d=n.n(u),l=n(534),f=n.n(l),p=n(1),h=function(e){var t=e.className,n=e.disabled,r=e.checked,o=e.partialChecked,c=Object(p.omit)(e,["className","partialChecked"]);return a.a.createElement("span",{className:d()(t,"form-checkbox",{"is-disabled":n})},a.a.createElement("input",i()({},c,{type:"checkbox"})),r&&a.a.createElement(f.a,{icon:"checkmark",size:14}),!r&&o&&a.a.createElement(f.a,{icon:"minus-small",size:16}))};h.propTypes={checked:s.a.bool.isRequired,partialChecked:s.a.bool,onChange:s.a.func.isRequired,className:s.a.string},t.a=h},600:function(e,t,n){"use strict";var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),d=n.n(u),l=n(531),f=n.n(l),p=n(529),h=n.n(p),E=n(34),O=n.n(E),b=n(12),m=n.n(b),v=n(10),g=n.n(v),_=n(526),C=n.n(_),y=n(35),S=n(1),j=n(560),I=n(555),R=n(534),T=n.n(R),N=n(564),M=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=s()(this,(e=d()(t)).call.apply(e,[this].concat(o))),O()(f()(n),"state",{expanded:n.props.expanded}),O()(f()(n),"onClick",function(){n.props.children&&n.setState({expanded:!n.state.expanded}),n.props.onClick&&n.props.onClick(),n.state.expanded?n.props.onClose(n.props.cardKey):n.props.onOpen(n.props.cardKey)}),n}return h()(t,e),a()(t,[{key:"componentWillReceiveProps",value:function(e){e.expanded!==this.props.expanded&&this.setState({expanded:e.expanded})}},{key:"getClickAction",value:function(){if(!this.props.disabled)return this.onClick}},{key:"getActionButton",value:function(){return this.state.expanded&&this.props.actionButtonExpanded||this.props.actionButton}},{key:"renderActionButton",value:function(){var e=this.props.clickableHeader?null:this.getClickAction();if(this.props.actionButton)return g.a.createElement("div",{className:"foldable-card__action",onClick:e},this.getActionButton());if(this.props.children){var t=this.props.screenReaderText||this.props.translate("More");return g.a.createElement("button",{disabled:this.props.disabled,type:"button",className:"foldable-card__action foldable-card__expand",onClick:e},g.a.createElement(N.a,null,t),g.a.createElement(T.a,{icon:this.props.icon,size:24}))}}},{key:"renderContent",value:function(){return g.a.createElement("div",{className:"foldable-card__content"},this.props.children)}},{key:"renderHeader",value:function(){var e=this.props.summary?g.a.createElement("span",{className:"foldable-card__summary"},this.props.summary," "):null,t=this.props.expandedSummary?g.a.createElement("span",{className:"foldable-card__summary-expanded"},this.props.expandedSummary," "):null,n=this.props.clickableHeader?this.getClickAction():null,r=C()("foldable-card__header",{"is-clickable":!!this.props.clickableHeader,"has-border":!!this.props.summary});return g.a.createElement("div",{className:r,onClick:n},g.a.createElement("span",{className:"foldable-card__main"},this.props.header," "),g.a.createElement("span",{className:"foldable-card__secondary"},e,t,this.renderActionButton()))}},{key:"render",value:function(){var e=this.props.compact?I.a:j.a,t=C()("foldable-card",this.props.className,{"is-disabled":!!this.props.disabled,"is-expanded":!!this.state.expanded,"has-expanded-summary":!!this.props.expandedSummary});return g.a.createElement(e,{className:t},this.renderHeader(),this.state.expanded&&this.renderContent())}}]),t}(v.Component);O()(M,"displayName","FoldableCard"),O()(M,"propTypes",{actionButton:m.a.element,actionButtonExpanded:m.a.element,cardKey:m.a.string,compact:m.a.bool,disabled:m.a.bool,expandedSummary:m.a.oneOfType([m.a.string,m.a.element]),expanded:m.a.bool,icon:m.a.string,onClick:m.a.func,onClose:m.a.func,onOpen:m.a.func,screenReaderText:m.a.oneOfType([m.a.string,m.a.bool]),summary:m.a.oneOfType([m.a.string,m.a.element])}),O()(M,"defaultProps",{onOpen:S.noop,onClose:S.noop,cardKey:"",icon:"chevron-down",expanded:!1,screenReaderText:!1}),t.a=Object(y.localize)(M)},609:function(e,t,n){"use strict";n.d(t,"a",function(){return O});var r,i=n(36),o=n.n(i),a=n(533),c=n.n(a),s=n(653),u=n.n(s),d=n(1),l=n(46),f=n(112),p=function(e){return Object(d.get)(e,"meta.dataLayer.data",void 0)},h=function(e){return Object(d.get)(e,"meta.dataLayer.error",void 0)},E=function(e){return Object(d.get)(e,"meta.dataLayer.progress",void 0)},O=(Object(l.d)("meta.dataLayer.requestKey",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(arguments.length>1?arguments[1]:void 0).meta,n=(t=void 0===t?{}:t).dataLayer,r=(n=void 0===n?{}:n).lastUpdated,i=n.pendingSince,a=n.status;return Object.assign(o()({},e),{status:a},r&&{lastUpdated:r},i&&{pendingSince:i})}),r=function(e){return function(t,n){if(!0!==Object(d.get)(n,"meta.dataLayer.trackRequest")||E(n))return e(t,n);var r=function(e){var t=e.meta,n=c()(e,["meta"]),r=Object(d.get)(t,"dataLayer.requestKey");return r||u()(n)}(n),i=function(e){return void 0!==h(e)?"failure":void 0!==p(e)?"success":"pending"}(n),a=Object.assign({requestKey:r,status:i},"pending"===i?{pendingSince:Date.now()}:{lastUpdated:Date.now()});e(o()({},t,{dispatch:function(e){return t.dispatch(Object(d.merge)(e,{meta:{dataLayer:a}}))}}),n)}},function(e){return e.fetch||Object(f.a)("fetch handler is not defined: no request will ever be issued"),e.onSuccess||Object(f.a)("onSuccess handler is not defined: response to the request is being ignored"),e.onError||Object(f.a)("onError handler is not defined: error during the request is being ignored"),r(function(t,n){var r=function(e,t){var n=e.fetch,r=void 0===n?d.noop:n,i=e.onSuccess,o=void 0===i?d.noop:i,a=e.onError,c=void 0===a?d.noop:a,s=e.onProgress,u=void 0===s?d.noop:s,l=e.fromApi,f=void 0===l?d.identity:l,O=h(t);if(O)return c(t,O);var b=p(t);if(b)try{return o(t,f(b))}catch(v){return c(t,v)}var m=E(t);return m?u(t,m):r(t)}(e,n);if(r)return Array.isArray(r)?r.map(t.dispatch):t.dispatch(r)})})},610:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(1),i=function(e,t){return Object(r.isArray)(e)?e.concat(t):void 0},o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>1?r.mergeWith.apply(void 0,[Object.create(null)].concat(t,[i])):t[0]}},611:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return s});var r=n(1),i=n(532),o=n(539),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"shippingZoneLocations"])},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e),o=a(e,n);return o&&Object(r.isObject)(o[t])},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return a(e,n)&&o.b===a(e,n)[t]}},612:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(543),i=n(557),o=n(538),a=n(586),c=function(e,t,n){return function(c,s){if(!Object(a.a)(s(),n,e)&&!Object(a.b)(s(),n,e)){var u={type:o.Wb,instanceId:n,siteId:e};return c(u),r.b(e,r.d.serviceSettings(t,n)).then(function(t){return c(function(e,t,n){return{type:o.Xb,siteId:e,instanceId:t,data:n}}(e,n,t))}).catch(function(t){return c(Object(i.a)(e,u,t))})}}}},613:function(e,t,n){"use strict";t.a=function(e,t){return function e(t,n,r){if(void 0===n||null===n||!t)return n;switch((t=function(e,t){if(e.$ref){var n=e.$ref.match(/^#\/definitions\/(.+)/);n&&t[n[1]]&&(e=t[n[1]])}return e}(t,r)).type){case"number":if(""===n)return;return isNaN(n)?n:parseFloat(n);case"boolean":return-1!==["true","True","TRUE","1",1,!0].indexOf(n)||-1===["false","False","FALSE","0",0,!1].indexOf(n)&&void 0;case"string":return n?n.toString():"";case"object":var i={};return Object.keys(n).forEach(function(o){var a=(t.properties||{})[o];i[o]=e(a,n[o],r)}),i;case"array":return n.map(function(n){return e(t.items,n,r)});default:return n}}({type:"object",properties:e.properties},t,e.definitions)}},619:function(e,t,n){var r={"./af":[392,3],"./af.js":[392,3],"./ar":[399,4],"./ar-dz":[393,5],"./ar-dz.js":[393,5],"./ar-kw":[394,6],"./ar-kw.js":[394,6],"./ar-ly":[395,7],"./ar-ly.js":[395,7],"./ar-ma":[396,8],"./ar-ma.js":[396,8],"./ar-sa":[397,9],"./ar-sa.js":[397,9],"./ar-tn":[398,10],"./ar-tn.js":[398,10],"./ar.js":[399,4],"./az":[400,11],"./az.js":[400,11],"./be":[401,12],"./be.js":[401,12],"./bg":[402,13],"./bg.js":[402,13],"./bm":[403,14],"./bm.js":[403,14],"./bn":[404,15],"./bn.js":[404,15],"./bo":[405,16],"./bo.js":[405,16],"./br":[406,17],"./br.js":[406,17],"./bs":[407,18],"./bs.js":[407,18],"./ca":[408,19],"./ca.js":[408,19],"./cs":[409,20],"./cs.js":[409,20],"./cv":[410,21],"./cv.js":[410,21],"./cy":[411,22],"./cy.js":[411,22],"./da":[412,23],"./da.js":[412,23],"./de":[415,24],"./de-at":[413,25],"./de-at.js":[413,25],"./de-ch":[414,26],"./de-ch.js":[414,26],"./de.js":[415,24],"./dv":[416,27],"./dv.js":[416,27],"./el":[417,28],"./el.js":[417,28],"./en-au":[418,29],"./en-au.js":[418,29],"./en-ca":[419,30],"./en-ca.js":[419,30],"./en-gb":[420,31],"./en-gb.js":[420,31],"./en-ie":[421,32],"./en-ie.js":[421,32],"./en-il":[422,33],"./en-il.js":[422,33],"./en-in":[423,34],"./en-in.js":[423,34],"./en-nz":[424,35],"./en-nz.js":[424,35],"./en-sg":[425,36],"./en-sg.js":[425,36],"./eo":[426,37],"./eo.js":[426,37],"./es":[429,38],"./es-do":[427,39],"./es-do.js":[427,39],"./es-us":[428,40],"./es-us.js":[428,40],"./es.js":[429,38],"./et":[430,41],"./et.js":[430,41],"./eu":[431,42],"./eu.js":[431,42],"./fa":[432,43],"./fa.js":[432,43],"./fi":[433,44],"./fi.js":[433,44],"./fil":[434,45],"./fil.js":[434,45],"./fo":[435,46],"./fo.js":[435,46],"./fr":[438,47],"./fr-ca":[436,48],"./fr-ca.js":[436,48],"./fr-ch":[437,49],"./fr-ch.js":[437,49],"./fr.js":[438,47],"./fy":[439,50],"./fy.js":[439,50],"./ga":[440,51],"./ga.js":[440,51],"./gd":[441,52],"./gd.js":[441,52],"./gl":[442,53],"./gl.js":[442,53],"./gom-deva":[443,54],"./gom-deva.js":[443,54],"./gom-latn":[444,55],"./gom-latn.js":[444,55],"./gu":[445,56],"./gu.js":[445,56],"./he":[446,57],"./he.js":[446,57],"./hi":[447,58],"./hi.js":[447,58],"./hr":[448,59],"./hr.js":[448,59],"./hu":[449,60],"./hu.js":[449,60],"./hy-am":[450,61],"./hy-am.js":[450,61],"./id":[451,62],"./id.js":[451,62],"./is":[452,63],"./is.js":[452,63],"./it":[454,64],"./it-ch":[453,65],"./it-ch.js":[453,65],"./it.js":[454,64],"./ja":[455,66],"./ja.js":[455,66],"./jv":[456,67],"./jv.js":[456,67],"./ka":[457,68],"./ka.js":[457,68],"./kk":[458,69],"./kk.js":[458,69],"./km":[459,70],"./km.js":[459,70],"./kn":[460,71],"./kn.js":[460,71],"./ko":[461,72],"./ko.js":[461,72],"./ku":[462,73],"./ku.js":[462,73],"./ky":[463,74],"./ky.js":[463,74],"./lb":[464,75],"./lb.js":[464,75],"./lo":[465,76],"./lo.js":[465,76],"./lt":[466,77],"./lt.js":[466,77],"./lv":[467,78],"./lv.js":[467,78],"./me":[468,79],"./me.js":[468,79],"./mi":[469,80],"./mi.js":[469,80],"./mk":[470,81],"./mk.js":[470,81],"./ml":[471,82],"./ml.js":[471,82],"./mn":[472,83],"./mn.js":[472,83],"./mr":[473,84],"./mr.js":[473,84],"./ms":[475,85],"./ms-my":[474,86],"./ms-my.js":[474,86],"./ms.js":[475,85],"./mt":[476,87],"./mt.js":[476,87],"./my":[477,88],"./my.js":[477,88],"./nb":[478,89],"./nb.js":[478,89],"./ne":[479,90],"./ne.js":[479,90],"./nl":[481,91],"./nl-be":[480,92],"./nl-be.js":[480,92],"./nl.js":[481,91],"./nn":[482,93],"./nn.js":[482,93],"./oc-lnc":[483,94],"./oc-lnc.js":[483,94],"./pa-in":[484,95],"./pa-in.js":[484,95],"./pl":[485,96],"./pl.js":[485,96],"./pt":[487,97],"./pt-br":[486,98],"./pt-br.js":[486,98],"./pt.js":[487,97],"./ro":[488,99],"./ro.js":[488,99],"./ru":[489,100],"./ru.js":[489,100],"./sd":[490,101],"./sd.js":[490,101],"./se":[491,102],"./se.js":[491,102],"./si":[492,103],"./si.js":[492,103],"./sk":[493,104],"./sk.js":[493,104],"./sl":[494,105],"./sl.js":[494,105],"./sq":[495,106],"./sq.js":[495,106],"./sr":[497,107],"./sr-cyrl":[496,108],"./sr-cyrl.js":[496,108],"./sr.js":[497,107],"./ss":[498,109],"./ss.js":[498,109],"./sv":[499,110],"./sv.js":[499,110],"./sw":[500,111],"./sw.js":[500,111],"./ta":[501,112],"./ta.js":[501,112],"./te":[502,113],"./te.js":[502,113],"./tet":[503,114],"./tet.js":[503,114],"./tg":[504,115],"./tg.js":[504,115],"./th":[505,116],"./th.js":[505,116],"./tk":[506,117],"./tk.js":[506,117],"./tl-ph":[507,118],"./tl-ph.js":[507,118],"./tlh":[508,119],"./tlh.js":[508,119],"./tr":[509,120],"./tr.js":[509,120],"./tzl":[510,121],"./tzl.js":[510,121],"./tzm":[512,122],"./tzm-latn":[511,123],"./tzm-latn.js":[511,123],"./tzm.js":[512,122],"./ug-cn":[513,124],"./ug-cn.js":[513,124],"./uk":[514,125],"./uk.js":[514,125],"./ur":[515,126],"./ur.js":[515,126],"./uz":[517,127],"./uz-latn":[516,128],"./uz-latn.js":[516,128],"./uz.js":[517,127],"./vi":[518,129],"./vi.js":[518,129],"./x-pseudo":[519,130],"./x-pseudo.js":[519,130],"./yo":[520,131],"./yo.js":[520,131],"./zh-cn":[521,132],"./zh-cn.js":[521,132],"./zh-hk":[522,133],"./zh-hk.js":[522,133],"./zh-mo":[523,134],"./zh-mo.js":[523,134],"./zh-tw":[524,135],"./zh-tw.js":[524,135]};function i(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],i=t[0];return n.e(t[1]).then(function(){return n.t(i,7)})}i.keys=function(){return Object.keys(r)},i.id=619,e.exports=i},620:function(e,t,n){"use strict";(function(e){var n={env:e?"production":"development",wpcom_concierge_schedule_id:1,languages:[],google_adwords_conversion_id:"",google_adwords_conversion_id_jetpack:""},r=function(e){if(e in n)return n[e];throw new Error("config key `"+e+"` does not exist")};r.isEnabled=function(){return!0},t.a=r}).call(this,n(111))},621:function(e,t,n){"use strict";var r=n(10),i=n.n(r),o=n(12),a=n.n(o),c=n(559),s=n(594),u=function(e){var t=e.text;return t?i.a.createElement(c.a,{dangerouslySetInnerHTML:Object(s.a)(t)}):null};u.propTypes={text:a.a.string},t.a=u},628:function(e,t,n){"use strict";n.d(t,"a",function(){return j});var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),d=n.n(u),l=n(531),f=n.n(l),p=n(529),h=n.n(p),E=n(34),O=n.n(E),b=n(77),m=n.n(b),v=n(12),g=n.n(v),_=n(10),C=n.n(_),y=n(109),S=n(634),j=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=s()(this,(e=d()(t)).call.apply(e,[this].concat(o))),O()(f()(n),"renderChildren",function(){var e;e=n.props&&(Object.keys(n.props).length>1||!n.props.children)?C.a.createElement("div",n.props,n.props.children):n.props.children,n.context.store&&(e=C.a.createElement(y.a,{store:n.context.store},C.a.createElement(S.b,null,e))),m.a.render(e,n.container)}),n}return h()(t,e),a()(t,[{key:"componentDidMount",value:function(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()}},{key:"componentDidUpdate",value:function(){this.renderChildren()}},{key:"componentWillUnmount",value:function(){this.container&&(m.a.unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)}},{key:"render",value:function(){return null}}]),t}(C.a.Component);O()(j,"contextTypes",{store:g.a.object})},631:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(164),s=n.n(c),u=n(12),d=n.n(u),l=n(10),f=n.n(l),p=n(553),h=n(640),E=n(526),O=n.n(E);n(660);function b(e){var t=e.id,n=e.className,r=e.children;return f.a.createElement("div",{id:t,className:O()("global-notices",n)},r)}var m=n(590),v=n(47),g=n.n(v)()("calypso:data-observe"),_=n(109),C=n(1),y=n(545),S=Object(y.a)(function(e){return Object(C.values)(e.notices.items)},function(e){return e.notices.items}),j=(Object(y.a)(function(e,t){return e.notices.lastTimeShown[t]||0},function(e){return e.notices.lastTimeShown}),n(549)),I=s()({displayName:"GlobalNotices",mixins:[function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{componentDidMount:function(){t.forEach(function(e){this.props[e]?this.props[e].on("change",this.update):g(e+" is not set.")},this)},componentWillUnmount:function(){t.forEach(function(e){this.props[e]&&this.props[e].off("change",this.update)},this)},componentWillReceiveProps:function(e){t.forEach(function(t){this.props[t]!==e[t]&&(this.props[t]&&this.props[t].off("change",this.update),e[t]&&e[t].on("change",this.update))},this)},update:function(){g("Re-rendering "+this.constructor.displayName+" component."),this.forceUpdate()}}}("notices")],propTypes:{id:d.a.string,notices:d.a.oneOfType([d.a.object,d.a.array]),removeNotice:d.a.func.isRequired,storeNotices:d.a.array.isRequired},getDefaultProps:function(){return{id:"overlay-notices",notices:Object.freeze([])}},removeNoticeStoreNotice:function(e){return function(){e&&m.a.removeNotice(e)}},removeReduxNotice:function(e,t){var n=this;return function(r){t&&t(r),n.props.removeNotice(e)}},render:function(){var e=(this.props.notices[this.props.id]||[]).map(function(e,t){return f.a.createElement(p.a,{key:"notice-old-"+t,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.removeNoticeStoreNotice(e),showDismiss:e.showDismiss},e.button&&f.a.createElement(h.a,{href:e.href,onClick:e.onClick},e.button))},this);return(e=e.concat(this.props.storeNotices.map(function(e){var t=e.button,n=e.href,r=e.noticeId,o=e.onClick,c=e.onDismissClick,s=a()(e,["button","href","noticeId","onClick","onDismissClick"]);return f.a.createElement(p.a,i()({},s,{key:"notice-".concat(r),onDismissClick:this.removeReduxNotice(r,c)}),t&&f.a.createElement(h.a,{href:n,onClick:o},t))},this))).length?f.a.createElement(b,{id:this.props.id},e):null}});t.a=Object(_.b)(function(e){return{storeNotices:S(e)}},{removeNotice:j.c})(I)},632:function(e,t,n){"use strict";var r=n(34),i=n.n(r),o=n(110),a=n.n(o),c=n(1),s=n(35),u=n(535),d=n(593),l=n(544),f=n(541),p=n(567),h=n(556),E=n(532),O=n(538);n(561),n(557),n(576),n(612),n(620);var b=n(543),m=n(36),v=n.n(m);function g(e,t,n,r){Object(c.isFunction)(n)?g(e,t,n(e,t,r),r):Object(c.isObject)(n)&&e(v()({},n,r))}var _,C=n(568),y=n(613),S=function(e,t){var n=Object(f.e)(e,t);return!n||n.pristine?[]:[{description:Object(s.translate)("Saving label settings"),onStep:function(e,n){e(Object(h.submit)(t,function(){return e(Object(d.e)(n))},function(){return e(Object(d.c)(n))}))}}]},j=function(e,t){var n=Object(E.a)(e);return t?a()(S(e,n)):[].concat(a()(function(e,t){var n=Object(l.g)(e,t);return!n||n.pristine||!n.can_edit_settings&&n.can_manage_payments?[]:[{description:Object(s.translate)("Saving label settings"),onStep:function(e,n){e(Object(p.e)(t,function(){return e(Object(d.e)(n))},function(){return e(Object(d.c)(n))}))}}]}(e,n)),a()(S(e,n)))};t.a=(_={},i()(_,u.L,[function(e,t){var n=t.successAction,r=t.failureAction,i=t.onlyPackages,o=function(e){e(n),e(Object(d.b)())},a=j(e.getState(),i);e.dispatch(Object(c.isEmpty)(a)?o:Object(d.d)({nextSteps:a,onSuccess:o,onFailure:function(e){e(r),e(Object(d.b)())}}))}]),i()(_,O.Yb,[function(e,t){var n=e.dispatch,r=e.getState,i=t.siteId,o=t.methodId,a=t.methodType,c=t.method,s=t.successAction,d=t.failureAction,l=Object(C.a)(r(),a,i).formSchema,f=Object(y.a)(l,c);b.c(i,b.d.serviceSettings(a,o),f).then(function(e){n(function(e,t,n){return{type:u.Pb,siteId:e,data:t,originatingAction:n}}(i,e,t)),g(n,r,s,{sentData:f,receivedData:e})}).catch(function(e){return g(n,r,d,{error:e})})}]),_)},633:function(e,t,n){"use strict";var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),d=n.n(u),l=n(531),f=n.n(l),p=n(529),h=n.n(p),E=n(34),O=n.n(E),b=n(12),m=n.n(b),v=n(10),g=n.n(v),_=n(77),C=n.n(_),y=n(109),S=n(47),j=n.n(S),I=n(526),R=n.n(I),T=n(662),N=n.n(T),M=n(1),P=n(628),A=n(76),w=n.n(A),k=n(672),L=n.n(k),x=j()("calypso:popover:util");function D(){var e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,x("viewport: %o",e),e}var W={top:"bottom",bottom:"top",left:"right",right:"left"},V={top:"right",left:"top",bottom:"left",right:"bottom"},H=D();function G(){H=D()}var U=!1,B=function(){if(U)return x("window events already bound");U=!0,x("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",G,!0),window.addEventListener("scroll",G,!0)},F=function(){if(!U)return x("window events are not bound");U=!1,x("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",G,!0),window.removeEventListener("scroll",G,!0)},z=function(e,t,n){var r=L()(n),i=t.clientHeight,o=t.clientWidth,a={top:r.top-i,bottom:H.height-r.bottom-i,left:r.left-o,right:H.width-r.right-o},c=e.split(/\s+/),s=w()(c,1)[0],u=w()(c,2)[1],d=function(e,t){for(var n,r=[e,W[e],V[e],W[V[e]]],i=-1/0,o=0,a=r.length;o<a;o++){var c=r[o],s=t[c];if(s>0)return c;s>i&&(i=s,n=e)}return n}(s,a);return u!==d&&u!==W[d]||(u=null),function(e,t,n,r,i,o){for(var a,c="top"===e||"bottom"===e,s=t?[c?"".concat(e," ").concat(t):"".concat(t," ").concat(e),e,c?"".concat(e," ").concat(W[t]):"".concat(W[t]," ").concat(e)]:[e,c?"".concat(e," ").concat(V[e]):"".concat(V[e]," ").concat(e),c?"".concat(e," ").concat(W[V[e]]):"".concat(W[V[e]]," ").concat(e)],u=0,d=i*o,l=0,f=s.length;l<f;l++){var p=s[l],h=q(p,n,r),E=h.left+i,O=h.top+o,b=Math.min(h.top<H.top?O-H.top:H.bottom-h.top,o),m=Math.min(h.left<H.left?E-H.left:H.right-h.left,i),v=m*b;if(v===d)return p;v>u&&(u=v,a=p)}return a}(d,u,t,n,o,i)||e};function q(e,t,n,r){var i=L()(t);if(!i)throw new Error("could not get bounding client rect of Tip element");var o=i.width,a=i.height,c=L()(n);if(!c)throw new Error("could not get bounding client rect of `target`");var s=c.width,u=c.height,d=function(e,t){var n=t.body||t.getElementsByTagName("body")[0],r=t.documentElement||n.parentNode,i=r.clientTop||n.clientTop||0,o=r.clientLeft||n.clientLeft||0,a=window.pageYOffset||r.scrollTop,c=window.pageXOffset||r.scrollLeft;return{top:e.top+a-i,left:e.left+c-o}}(c,document);if(!d)throw new Error("could not determine page offset of `target`");var l={};switch(e){case"top":l={top:d.top-a,left:r&&r.left?d.left+r.left:d.left+s/2-o/2};break;case"bottom":l={top:d.top+u,left:r&&r.left?d.left+r.left:d.left+s/2-o/2};break;case"right":l={top:d.top+u/2-a/2,left:d.left+s};break;case"left":l={top:d.top+u/2-a/2,left:d.left-o};break;case"top left":l={top:d.top-a,left:d.left+s/2-o+15};break;case"top right":l={top:d.top-a,left:d.left+s/2-15};break;case"bottom left":l={top:d.top+u,left:d.left+s/2-o+15};break;case"bottom right":l={top:d.top+u,left:d.left+s/2-15};break;case"left top":l={top:d.top+u/2-a,left:d.left-o};break;case"left bottom":l={top:d.top+u/2,left:d.left-o};break;case"right top":l={top:d.top+u/2-a,left:d.left+s};break;case"right bottom":l={top:d.top+u/2,left:d.left+s};break;default:throw new Error('invalid position "'.concat(e,'"'))}return l}var K=function(){},Z=j()("calypso:popover"),Q=new Set,Y=function(e){function t(e){var n;return i()(this,t),n=s()(this,d()(t).call(this,e)),O()(f()(n),"isUpdatingPosition",!1),n.setPopoverId(e.id),n.setDOMBehavior=n.setDOMBehavior.bind(f()(n)),n.setPosition=n.setPosition.bind(f()(n)),n.onClickout=n.onClickout.bind(f()(n)),n.onKeydown=n.onKeydown.bind(f()(n)),n.onWindowChange=n.onWindowChange.bind(f()(n)),n.state={show:e.isVisible,left:-99999,top:-99999,positionClass:n.getPositionClass(e.position)},n}return h()(t,e),a()(t,[{key:"componentDidMount",value:function(){this.state.show&&(this.bindEscKeyListener(),this.bindDebouncedReposition(),B())}},{key:"componentWillReceiveProps",value:function(e){if(this.domContext=C.a.findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props.isVisible;return!t.show&&this.state.show&&(this.bindEscKeyListener(),this.bindDebouncedReposition(),B()),r!==e.isVisible&&(r?this.show():this.hide()),this.domContainer&&this.domContext&&r?void(this.isUpdatingPosition||(this.debug("requesting to update position after render completes"),requestAnimationFrame(function(){Q.has(n.id)&&n.domContainer&&n.domContext&&r?(n.setPosition(),n.isUpdatingPosition=!1):n.isUpdatingPosition=!1}),this.isUpdatingPosition=!0)):null}},{key:"componentWillUnmount",value:function(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),F(),Q.delete(this.id),Z("current popover instances: ",Q.size)}},{key:"bindEscKeyListener",value:function(){if(!this.props.closeOnEsc)return null;this.debug("adding escKey listener ..."),document.addEventListener("keydown",this.onKeydown,!0)}},{key:"unbindEscKeyListener",value:function(){if(!this.props.closeOnEsc)return null;this.debug("unbinding `escKey` listener ..."),document.removeEventListener("keydown",this.onKeydown,!0)}},{key:"onKeydown",value:function(e){if(27!==e.keyCode)return null;this.close(!0)}},{key:"bindClickoutHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),void(this._clickoutHandlerReference=N()(e,this.onClickout))):(this.debug("no element to bind clickout "),null)}},{key:"unbindClickoutHandler",value:function(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),this._clickoutHandlerReference(),this._clickoutHandlerReference=null)}},{key:"onClickout",value:function(e){var t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){var n=C.a.findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}},{key:"bindDebouncedReposition",value:function(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}},{key:"unbindDebouncedReposition",value:function(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}},{key:"onWindowChange",value:function(){this.willReposition=window.requestAnimationFrame(this.setPosition)}},{key:"setDOMBehavior",value:function(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,this.domContext=C.a.findDOMNode(this.props.context),this.setPosition()}},{key:"getPositionClass",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position;return"is-".concat(e.replace(/\s+/g,"-"))}},{key:"adjustRtlPosition",value:function(e){if(this.props.isRtl)switch(e){case"top right":case"right top":return"top left";case"right":return"left";case"bottom right":case"right bottom":return"bottom left";case"bottom left":case"left bottom":return"bottom right";case"left":return"right";case"top left":case"left top":return"top right"}return e}},{key:"computePosition",value:function(){if(!this.props.isVisible)return null;var e=this.domContainer,t=this.domContext,n=this.props,r=n.position,i=n.relativePosition;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;var o=r;this.debug("position: %o",o),this.props.autoRtl&&(o=this.adjustRtlPosition(o),this.debug("RTL adjusted position: %o",o)),this.props.autoPosition&&(o=z(o,e,t),this.debug("suggested position: %o",o));var a=Object.assign({},function(e,t){var n=L()(t).width;return e.left=Math.max(0,Math.min(e.left,H.width-n)),e}(q(o,e,t,i),e),{positionClass:this.getPositionClass(o)});return this.debug("updating reposition: ",a),a}},{key:"debug",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Z.apply(void 0,["[%s] ".concat(e),this.id].concat(n))}},{key:"setPopoverId",value:function(e){this.id=e||"pop__".concat(Object(M.uniqueId)()),Q.add(this.id),this.debug("creating ..."),Z("current popover instances: ",Q.size)}},{key:"setPosition",value:function(){var e;if(this.debug("updating position"),!(e=this.props.customPosition?Object.assign({positionClass:this.getPositionClass(this.constructor.defaultProps.position)},this.props.customPosition):this.computePosition()))return null;this.willReposition=null,this.setState(e)}},{key:"getStylePosition",value:function(){var e=this.state;return{left:e.left,top:e.top}}},{key:"show",value:function(){var e=this;if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o","".concat(this.props.showDelay,"ms")),this.clearShowTimer(),this._openDelayTimer=setTimeout(function(){e.setState({show:!0})},this.props.showDelay)}},{key:"hide",value:function(){this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),F(),this.setState({show:!1}),this.clearShowTimer()}},{key:"clearShowTimer",value:function(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.props.onClose(e)}},{key:"render",value:function(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;var e=R()("popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),g.a.createElement(P.a,{className:this.props.rootClassName},g.a.createElement("div",{style:this.getStylePosition(),className:e},g.a.createElement("div",{className:"popover__arrow"}),g.a.createElement("div",{ref:this.setDOMBehavior,className:"popover__inner"},this.props.children)))}}]),t}(v.Component);O()(Y,"propTypes",{autoPosition:m.a.bool,autoRtl:m.a.bool,className:m.a.string,closeOnEsc:m.a.bool,id:m.a.string,ignoreContext:m.a.shape({getDOMNode:m.a.function}),isRtl:m.a.bool,isVisible:m.a.bool,position:m.a.oneOf(["top","top right","right","bottom right","bottom","bottom left","left","top left"]),rootClassName:m.a.string,showDelay:m.a.number,onClose:m.a.func,onShow:m.a.func,relativePosition:m.a.shape({left:m.a.number}),customPosition:m.a.shape({top:m.a.number,left:m.a.number,positionClass:m.a.oneOf(["top","right","bottom","left"])})}),O()(Y,"defaultProps",{autoPosition:!0,autoRtl:!0,className:"",closeOnEsc:!0,isRtl:!1,isVisible:!1,position:"top",showDelay:0,onClose:K,onShow:K});t.a=Object(y.b)(function(e){return{isRtl:document.body.classList.contains("rtl")}})(Y)},634:function(e,t,n){"use strict";n.d(t,"b",function(){return A}),n.d(t,"a",function(){return M});var r=n(113),i=n.n(r),o=n(107),a=n.n(o),c=n(108),s=n.n(c),u=n(528),d=n.n(u),l=n(527),f=n.n(l),p=n(531),h=n.n(p),E=n(529),O=n.n(E),b=n(34),m=n.n(b),v=n(10),g=n.n(v),_=n(109),C=n(163),y=n.n(C),S=n(47),j=n.n(S),I=n(1),R=n(545),T=Object(R.a)(function(e){return Object(I.get)(e,"ui.language.localeSlug",null)},function(e){return e.ui.language}),N=j()("calypso:localized-moment"),M=g.a.createContext(y.a),P=function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=d()(this,(e=f()(t)).call.apply(e,[this].concat(i))),m()(h()(n),"state",{moment:y.a,momentLocale:y.a.locale()}),n}return O()(t,e),s()(t,[{key:"checkAndLoad",value:function(){var e=i()(regeneratorRuntime.mark(function e(t){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=this.props.currentLocale)!==t){e.next=3;break}return e.abrupt("return");case 3:if("en"!==r){e.next=7;break}this.loadingLocalePromise=Promise.resolve(),e.next=19;break;case 7:return N("Loading moment locale for %s",r),e.prev=8,this.loadingLocalePromise=n(619)("./".concat(r)),e.next=12,this.loadingLocalePromise;case 12:e.next=18;break;case 14:return e.prev=14,e.t0=e.catch(8),N("Failed to load moment locale for %s",r,e.t0),e.abrupt("return");case 18:N("Loaded moment locale for %s",r);case 19:r===this.props.currentLocale&&(y.a.locale()!==r&&y.a.locale(r),this.setState({momentLocale:r}));case 20:case"end":return e.stop()}},e,this,[[8,14]])}));return function(t){return e.apply(this,arguments)}}()},{key:"componentDidMount",value:function(){this.checkAndLoad(y.a.locale())}},{key:"componentDidUpdate",value:function(e){this.checkAndLoad(e.currentLocale)}},{key:"render",value:function(){return g.a.createElement(M.Provider,{value:this.state},this.props.children)}}]),t}(g.a.Component),A=Object(_.b)(function(e){return{currentLocale:T(e)}})(P)},635:function(e,t,n){"use strict";var r=n(533),i=n.n(r),o=n(75),a=n(46),c=function(e,t,n,r,c,s){var u=Object(o.b)();return s&&!s.endsWith("/")&&(s+="/"),s&&s.startsWith("/")&&(s=s.substr(1)),-1!==u.indexOf("?")&&(t=t.replace("?","&")),Object(a.c)(function(e){var t=e.url,n=e.method,r=e.headers,o=e.queryParams,a=e.body,c=e.withCredentials,s=e.onSuccess,u=e.onFailure,d=i()(e,["url","method","headers","queryParams","body","withCredentials","onSuccess","onFailure"]),l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:"HTTP_REQUEST",url:t,method:n,headers:r,queryParams:o,body:a,withCredentials:c,onSuccess:s||l,onFailure:u||l,options:d}}({url:u+s+t,method:e,headers:[["X-WP-Nonce",Object(o.c)()],["Content-Type","application/json"]],body:r&&JSON.stringify(r),withCredentials:!0},c),{meta:{localApiRequest:!0}})};t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"wc/v1";return{get:function(e){return c("GET",e,0,null,t,n)},getWithHeaders:function(e){return function(e,t,n,r,i,o){return c(e,t+"&_envelope",0,r,i,o)}("GET",e,0,null,t,n)},post:function(e,r){return c("POST",e,0,r||{},t,n)},put:function(e,r){return c("PUT",e,0,r||{},t,n)},del:function(e){return c("DELETE",e,0,null,t,n)}}}},639:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n(36),n(1);function r(e){if(!e.data)throw new Error("Failure at remote site.",e);return e}},640:function(e,t,n){"use strict";n.d(t,"a",function(){return _});var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),d=n.n(u),l=n(529),f=n.n(l),p=n(34),h=n.n(p),E=n(12),O=n.n(E),b=n(10),m=n.n(b),v=n(534),g=n.n(v),_=function(e){function t(){return i()(this,t),s()(this,d()(t).apply(this,arguments))}return f()(t,e),a()(t,[{key:"render",value:function(){var e={className:"notice__action",href:this.props.href,onClick:this.props.onClick};return this.props.external&&(e.target="_blank",e.rel="noopener noreferrer"),m.a.createElement("a",e,m.a.createElement("span",null,this.props.children),this.props.icon&&m.a.createElement(g.a,{icon:this.props.icon,size:24}),this.props.external&&m.a.createElement(g.a,{icon:"external",size:24}))}}]),t}(m.a.Component);h()(_,"displayName","NoticeAction"),h()(_,"propTypes",{href:O.a.string,onClick:O.a.func,external:O.a.bool,icon:O.a.string}),h()(_,"defaultProps",{external:!1})},641:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(10),s=n.n(c),u=n(526),d=n.n(u);t.a=function(e){var t=e.className,n=a()(e,["className"]);return s.a.createElement("input",i()({},n,{type:"radio",className:d()(t,"form-radio")}))}},653:function(e,t,n){var r="undefined"!==typeof JSON?JSON:n(654);e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var n=t.space||"";"number"===typeof n&&(n=Array(n+1).join(" "));var a,c="boolean"===typeof t.cycles&&t.cycles,s=t.replacer||function(e,t){return t},u=t.cmp&&(a=t.cmp,function(e){return function(t,n){var r={key:t,value:e[t]},i={key:n,value:e[n]};return a(r,i)}}),d=[];return function e(t,a,l,f){var p=n?"\n"+new Array(f+1).join(n):"",h=n?": ":":";if(l&&l.toJSON&&"function"===typeof l.toJSON&&(l=l.toJSON()),void 0!==(l=s.call(t,a,l))){if("object"!==typeof l||null===l)return r.stringify(l);if(i(l)){for(var E=[],O=0;O<l.length;O++){var b=e(l,O,l[O],f+1)||r.stringify(null);E.push(p+n+b)}return"["+E.join(",")+p+"]"}if(-1!==d.indexOf(l)){if(c)return r.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}d.push(l);var m=o(l).sort(u&&u(l));for(E=[],O=0;O<m.length;O++){var v=e(l,a=m[O],l[a],f+1);if(v){var g=r.stringify(a)+h+v;E.push(p+n+g)}}return d.splice(d.indexOf(l),1),"{"+E.join(",")+p+"}"}}({"":e},"",e,0)};var i=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n}},654:function(e,t,n){t.parse=n(655),t.stringify=n(656)},655:function(e,t){var n,r,i,o,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},c=function(e){throw{name:"SyntaxError",message:e,at:n,text:i}},s=function(e){return e&&e!==r&&c("Expected '"+e+"' instead of '"+r+"'"),r=i.charAt(n),n+=1,r},u=function(){var e,t="";for("-"===r&&(t="-",s("-"));r>="0"&&r<="9";)t+=r,s();if("."===r)for(t+=".";s()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,s(),"-"!==r&&"+"!==r||(t+=r,s());r>="0"&&r<="9";)t+=r,s();if(e=+t,isFinite(e))return e;c("Bad number")},d=function(){var e,t,n,i="";if('"'===r)for(;s();){if('"'===r)return s(),i;if("\\"===r)if(s(),"u"===r){for(n=0,t=0;t<4&&(e=parseInt(s(),16),isFinite(e));t+=1)n=16*n+e;i+=String.fromCharCode(n)}else{if("string"!==typeof a[r])break;i+=a[r]}else i+=r}c("Bad string")},l=function(){for(;r&&r<=" ";)s()};o=function(){switch(l(),r){case"{":return function(){var e,t={};if("{"===r){if(s("{"),l(),"}"===r)return s("}"),t;for(;r;){if(e=d(),l(),s(":"),Object.hasOwnProperty.call(t,e)&&c('Duplicate key "'+e+'"'),t[e]=o(),l(),"}"===r)return s("}"),t;s(","),l()}}c("Bad object")}();case"[":return function(){var e=[];if("["===r){if(s("["),l(),"]"===r)return s("]"),e;for(;r;){if(e.push(o()),l(),"]"===r)return s("]"),e;s(","),l()}}c("Bad array")}();case'"':return d();case"-":return u();default:return r>="0"&&r<="9"?u():function(){switch(r){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}c("Unexpected '"+r+"'")}()}},e.exports=function(e,t){var a;return i=e,n=0,r=" ",a=o(),l(),r&&c("Syntax error"),"function"===typeof t?function e(n,r){var i,o,a=n[r];if(a&&"object"===typeof a)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(void 0!==(o=e(a,i))?a[i]=o:delete a[i]);return t.call(n,r,a)}({"":a},""):a}},656:function(e,t){var n,r,i,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function c(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,function(e){var t=a[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}e.exports=function(e,t,o){var a;if(n="",r="","number"===typeof o)for(a=0;a<o;a+=1)r+=" ";else"string"===typeof o&&(r=o);if(i=t,t&&"function"!==typeof t&&("object"!==typeof t||"number"!==typeof t.length))throw new Error("JSON.stringify");return function e(t,o){var a,s,u,d,l,f=n,p=o[t];switch(p&&"object"===typeof p&&"function"===typeof p.toJSON&&(p=p.toJSON(t)),"function"===typeof i&&(p=i.call(o,t,p)),typeof p){case"string":return c(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(n+=r,l=[],"[object Array]"===Object.prototype.toString.apply(p)){for(d=p.length,a=0;a<d;a+=1)l[a]=e(a,p)||"null";return u=0===l.length?"[]":n?"[\n"+n+l.join(",\n"+n)+"\n"+f+"]":"["+l.join(",")+"]",n=f,u}if(i&&"object"===typeof i)for(d=i.length,a=0;a<d;a+=1)"string"===typeof(s=i[a])&&(u=e(s,p))&&l.push(c(s)+(n?": ":":")+u);else for(s in p)Object.prototype.hasOwnProperty.call(p,s)&&(u=e(s,p))&&l.push(c(s)+(n?": ":":")+u);return u=0===l.length?"{}":n?"{\n"+n+l.join(",\n"+n)+"\n"+f+"}":"{"+l.join(",")+"}",n=f,u}}("",{"":e})}},660:function(e,t,n){},673:function(e,t,n){"use strict";n.d(t,"a",function(){return P});n(530);var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),d=n.n(u),l=(n(531),n(529)),f=n.n(l),p=n(34),h=n.n(p),E=n(12),O=n.n(E),b=n(10),m=n(47),v=n.n(m),g=(n(674),n(35)),_=n.n(g),C=n(1),y=v()("calypso:protect-form"),S=[],j=0;function I(e){if(S.length){y("unsaved form changes detected");var t=_.a.translate("You have unsaved changes.");return(e||window.event).returnValue=t,t}}function R(){0===j&&window.addEventListener("beforeunload",I),j++}function T(){0===--j&&window.removeEventListener("beforeunload",I)}function N(e){Object(C.includes)(S,e)||S.push(e)}function M(e){S=Object(C.without)(S,e)}var P=function(e){function t(){return i()(this,t),s()(this,d()(t).apply(this,arguments))}return f()(t,e),a()(t,[{key:"componentDidMount",value:function(){R(),this.props.isChanged&&N(this)}},{key:"componentWillUnmount",value:function(){T(),M(this)}},{key:"componentWillReceiveProps",value:function(e){e.isChanged!==this.props.isChanged&&(e.isChanged?N(this):M(this))}},{key:"render",value:function(){return null}}]),t}(b.Component);h()(P,"propTypes",{isChanged:O.a.bool.isRequired})},674:function(e,t,n){(function(t){e.exports=function(){"use strict";var e=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},n=E,r=s,i=function(e){return u(s(e))},o=u,a=h,c=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function s(e){for(var t,n=[],r=0,i=0,o="";null!=(t=c.exec(e));){var a=t[0],s=t[1],u=t.index;if(o+=e.slice(i,u),i=u+a.length,s)o+=s[1];else{o&&(n.push(o),o="");var d=t[2],f=t[3],p=t[4],h=t[5],E=t[6],O=t[7],b="+"===E||"*"===E,m="?"===E||"*"===E,v=d||"/",g=p||h||(O?".*":"[^"+v+"]+?");n.push({name:f||r++,prefix:d||"",delimiter:v,optional:m,repeat:b,pattern:l(g)})}}return i<e.length&&(o+=e.substr(i)),o&&n.push(o),n}function u(t){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"===typeof t[r]&&(n[r]=new RegExp("^"+t[r].pattern+"$"));return function(r){for(var i="",o=r||{},a=0;a<t.length;a++){var c=t[a];if("string"!==typeof c){var s,u=o[c.name];if(null==u){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to be defined')}if(e(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received "'+u+'"');if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(s=encodeURIComponent(u[d]),!n[a].test(s))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received "'+s+'"');i+=(0===d?c.prefix:c.delimiter)+s}}else{if(s=encodeURIComponent(u),!n[a].test(s))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+s+'"');i+=c.prefix+s}}else i+=c}return i}}function d(e){return e.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function f(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function h(e,t){for(var n=(t=t||{}).strict,r=!1!==t.end,i="",o=e[e.length-1],a="string"===typeof o&&/\/$/.test(o),c=0;c<e.length;c++){var s=e[c];if("string"===typeof s)i+=d(s);else{var u=d(s.prefix),l=s.pattern;s.repeat&&(l+="(?:"+u+l+")*"),l=s.optional?u?"(?:"+u+"("+l+"))?":"("+l+")?":u+"("+l+")",i+=l}}return n||(i=(a?i.slice(0,-2):i)+"(?:\\/(?=$))?"),i+=r?"$":n&&a?"":"(?=\\/|$)",new RegExp("^"+i,p(t))}function E(t,n,r){return e(n=n||[])?r||(r={}):(r=n,n=[]),t 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,pattern:null});return f(e,t)}(t,n):e(t)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(E(e[i],t,n).source);return f(new RegExp("(?:"+r.join("|")+")",p(n)),t)}(t,n,r):function(e,t,n){for(var r=s(e),i=h(r,n),o=0;o<r.length;o++)"string"!==typeof r[o]&&t.push(r[o]);return f(i,t)}(t,n,r)}n.parse=r,n.compile=i,n.tokensToFunction=o,n.tokensToRegExp=a;var O="undefined"!==typeof document,b="undefined"!==typeof history,m="undefined"!==typeof t,v=O&&document.ontouchstart?"touchstart":"click",g=!(!window.history.location&&!window.location);function _(){this.callbacks=[],this.exits=[],this.current="",this.len=0,this._decodeURLComponents=!0,this._base="",this._strict=!1,this._running=!1,this._hashbang=!1,this.clickHandler=this.clickHandler.bind(this),this._onpopstate=this._onpopstate.bind(this)}function C(e,t){if("function"===typeof e)return C.call(this,"*",e);if("function"===typeof t)for(var n=new S(e,null,this),r=1;r<arguments.length;++r)this.callbacks.push(n.middleware(arguments[r]));else"string"===typeof e?this["string"===typeof t?"redirect":"show"](e,t):this.start(e)}function y(e,t,n){var r=this.page=n||C,i=r._window,o=r._hashbang,a=r._getBase();"/"===e[0]&&0!==e.indexOf(a)&&(e=a+(o?"#!":"")+e);var c=e.indexOf("?");this.canonicalPath=e;var s=new RegExp("^"+a.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1"));if(this.path=e.replace(s,"")||"/",o&&(this.path=this.path.replace("#!","")||"/"),this.title=O&&i.document.title,this.state=t||{},this.state.path=e,this.querystring=~c?r._decodeURLEncodedURIComponent(e.slice(c+1)):"",this.pathname=r._decodeURLEncodedURIComponent(~c?e.slice(0,c):e),this.params={},this.hash="",!o){if(!~this.path.indexOf("#"))return;var u=this.path.split("#");this.path=this.pathname=u[0],this.hash=r._decodeURLEncodedURIComponent(u[1])||"",this.querystring=this.querystring.split("#")[0]}}function S(e,t,r){this.page=r||j;var i=t||{};i.strict=i.strict||r._strict,this.path="*"===e?"(.*)":e,this.method="GET",this.regexp=n(this.path,this.keys=[],i)}_.prototype.configure=function(e){var t=e||{};this._window=t.window||window,this._decodeURLComponents=!1!==t.decodeURLComponents,this._popstate=!1!==t.popstate&&!0,this._click=!1!==t.click&&O,this._hashbang=!!t.hashbang;var n=this._window;this._popstate?n.addEventListener("popstate",this._onpopstate,!1):n.removeEventListener("popstate",this._onpopstate,!1),this._click?n.document.addEventListener(v,this.clickHandler,!1):O&&n.document.removeEventListener(v,this.clickHandler,!1),this._hashbang&&!b?n.addEventListener("hashchange",this._onpopstate,!1):n.removeEventListener("hashchange",this._onpopstate,!1)},_.prototype.base=function(e){if(0===arguments.length)return this._base;this._base=e},_.prototype._getBase=function(){var e=this._base;if(e)return e;var t=this._window&&this._window.location;return this._hashbang&&t&&"file:"===t.protocol&&(e=t.pathname),e},_.prototype.strict=function(e){if(0===arguments.length)return this._strict;this._strict=e},_.prototype.start=function(e){var t=e||{};if(this.configure(t),!1!==t.dispatch){var n;if(this._running=!0,g){var r=this._window,i=r.location;n=this._hashbang&&~i.hash.indexOf("#!")?i.hash.substr(2)+i.search:this._hashbang?i.search+i.hash:i.pathname+i.search+i.hash}this.replace(n,null,!0,t.dispatch)}},_.prototype.stop=function(){if(this._running){this.current="",this.len=0,this._running=!1;var e=this._window;this._click&&e.document.removeEventListener(v,this.clickHandler,!1),e.removeEventListener("popstate",this._onpopstate,!1),e.removeEventListener("hashchange",this._onpopstate,!1)}},_.prototype.show=function(e,t,n,r){var i=new y(e,t,this),o=this.prevContext;return this.prevContext=i,this.current=i.path,!1!==n&&this.dispatch(i,o),!1!==i.handled&&!1!==r&&i.pushState(),i},_.prototype.back=function(e,t){var n=this;if(this.len>0){var r=this._window;b&&r.history.back(),this.len--}else e?setTimeout(function(){n.show(e,t)}):setTimeout(function(){n.show(n._getBase(),t)})},_.prototype.redirect=function(e,t){var n=this;"string"===typeof e&&"string"===typeof t&&C.call(this,e,function(e){setTimeout(function(){n.replace(t)},0)}),"string"===typeof e&&"undefined"===typeof t&&setTimeout(function(){n.replace(e)},0)},_.prototype.replace=function(e,t,n,r){var i=new y(e,t,this),o=this.prevContext;return this.prevContext=i,this.current=i.path,i.init=n,i.save(),!1!==r&&this.dispatch(i,o),i},_.prototype.dispatch=function(e,t){var n=0,r=0,i=this;function o(){var t=i.callbacks[n++];if(e.path===i.current)return t?void t(e,o):function(e){if(!e.handled){var t=this._window;(this._hashbang?g&&this._getBase()+t.location.hash.replace("#!",""):g&&t.location.pathname+t.location.search)!==e.canonicalPath&&(this.stop(),e.handled=!1,g&&(t.location.href=e.canonicalPath))}}.call(i,e);e.handled=!1}t?function e(){var n=i.exits[r++];if(!n)return o();n(t,e)}():o()},_.prototype.exit=function(e,t){if("function"===typeof e)return this.exit("*",e);for(var n=new S(e,null,this),r=1;r<arguments.length;++r)this.exits.push(n.middleware(arguments[r]))},_.prototype.clickHandler=function(e){if(1===this._which(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented){var t=e.target,n=e.path||(e.composedPath?e.composedPath():null);if(n)for(var r=0;r<n.length;r++)if(n[r].nodeName&&"A"===n[r].nodeName.toUpperCase()&&n[r].href){t=n[r];break}for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;if(t&&"A"===t.nodeName.toUpperCase()){var i="object"===typeof t.href&&"SVGAnimatedString"===t.href.constructor.name;if(!t.hasAttribute("download")&&"external"!==t.getAttribute("rel")){var o=t.getAttribute("href");if((this._hashbang||!this._samePath(t)||!t.hash&&"#"!==o)&&!(o&&o.indexOf("mailto:")>-1)&&(i?!t.target.baseVal:!t.target)&&(i||this.sameOrigin(t.href))){var a=i?t.href.baseVal:t.pathname+t.search+(t.hash||"");a="/"!==a[0]?"/"+a:a,m&&a.match(/^\/[a-zA-Z]:\//)&&(a=a.replace(/^\/[a-zA-Z]:\//,"/"));var c=a,s=this._getBase();0===a.indexOf(s)&&(a=a.substr(s.length)),this._hashbang&&(a=a.replace("#!","")),(!s||c!==a||g&&"file:"===this._window.location.protocol)&&(e.preventDefault(),this.show(c))}}}}},_.prototype._onpopstate=function(){var e=!1;return O&&"complete"===document.readyState?e=!0:window.addEventListener("load",function(){setTimeout(function(){e=!0},0)}),function(t){if(e)if(t.state){var n=t.state.path;this.replace(n,t.state)}else if(g){var r=this._window.location;this.show(r.pathname+r.search+r.hash,void 0,void 0,!1)}}}(),_.prototype._which=function(e){return null==(e=e||this._window.event).which?e.button:e.which},_.prototype._toURL=function(e){var t=this._window;if("function"===typeof URL&&g)return new URL(e,t.location.toString());if(O){var n=t.document.createElement("a");return n.href=e,n}},_.prototype.sameOrigin=function(e){if(!e||!g)return!1;var t=this._toURL(e),n=this._window,r=n.location;return r.protocol===t.protocol&&r.hostname===t.hostname&&r.port===t.port},_.prototype._samePath=function(e){if(!g)return!1;var t=this._window,n=t.location;return e.pathname===n.pathname&&e.search===n.search},_.prototype._decodeURLEncodedURIComponent=function(e){return"string"!==typeof e?e:this._decodeURLComponents?decodeURIComponent(e.replace(/\+/g," ")):e},y.prototype.pushState=function(){var e=this.page,t=e._window,n=e._hashbang;e.len++,b&&t.history.pushState(this.state,this.title,n&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},y.prototype.save=function(){var e=this.page;b&&e._window.history.replaceState(this.state,this.title,e._hashbang&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},S.prototype.middleware=function(e){var t=this;return function(n,r){if(t.match(n.path,n.params))return e(n,r);r()}},S.prototype.match=function(e,t){var n=this.keys,r=e.indexOf("?"),i=~r?e.slice(0,r):e,o=this.regexp.exec(decodeURIComponent(i));if(!o)return!1;for(var a=1,c=o.length;a<c;++a){var s=n[a-1],u=this.page._decodeURLEncodedURIComponent(o[a]);void 0===u&&hasOwnProperty.call(t,s.name)||(t[s.name]=u)}return!0};var j=function e(){var t=new _;function n(){return C.apply(t,arguments)}return n.callbacks=t.callbacks,n.exits=t.exits,n.base=t.base.bind(t),n.strict=t.strict.bind(t),n.start=t.start.bind(t),n.stop=t.stop.bind(t),n.show=t.show.bind(t),n.back=t.back.bind(t),n.redirect=t.redirect.bind(t),n.replace=t.replace.bind(t),n.dispatch=t.dispatch.bind(t),n.exit=t.exit.bind(t),n.configure=t.configure.bind(t),n.sameOrigin=t.sameOrigin.bind(t),n.clickHandler=t.clickHandler.bind(t),n.create=e,Object.defineProperty(n,"len",{get:function(){return t.len},set:function(e){t.len=e}}),Object.defineProperty(n,"current",{get:function(){return t.current},set:function(e){t.current=e}}),n.Context=y,n.Route=S,n}(),I=j,R=j;return I.default=R,I}()}).call(this,n(111))},689:function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){return function(n){var i=e(n),o=n.displayName,a=void 0===o?n.name||"Component":o;return i.displayName="".concat(Object(r.upperFirst)(Object(r.camelCase)(t)),"(").concat(a,")"),i}}},717:function(e,t,n){},718:function(e,t,n){"use strict";e.exports=n(719)},719:function(e,t,n){"use strict";var r=n(720);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var i=n.allowHorizontalScroll,o=n.onlyScrollIfNeeded,a=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,u=n.offsetLeft||0,d=n.offsetBottom||0,l=n.offsetRight||0;i=void 0===i||i;var f=r.isWindow(t),p=r.offset(e),h=r.outerHeight(e),E=r.outerWidth(e),O=void 0,b=void 0,m=void 0,v=void 0,g=void 0,_=void 0,C=void 0,y=void 0,S=void 0,j=void 0;f?(C=t,j=r.height(C),S=r.width(C),y={left:r.scrollLeft(C),top:r.scrollTop(C)},g={left:p.left-y.left-u,top:p.top-y.top-s},_={left:p.left+E-(y.left+S)+l,top:p.top+h-(y.top+j)+d},v=y):(O=r.offset(t),b=t.clientHeight,m=t.clientWidth,v={left:t.scrollLeft,top:t.scrollTop},g={left:p.left-(O.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-u,top:p.top-(O.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},_={left:p.left+E-(O.left+m+(parseFloat(r.css(t,"borderRightWidth"))||0))+l,top:p.top+h-(O.top+b+(parseFloat(r.css(t,"borderBottomWidth"))||0))+d}),g.top<0||_.top>0?!0===a?r.scrollTop(t,v.top+g.top):!1===a?r.scrollTop(t,v.top+_.top):g.top<0?r.scrollTop(t,v.top+g.top):r.scrollTop(t,v.top+_.top):o||((a=void 0===a||!!a)?r.scrollTop(t,v.top+g.top):r.scrollTop(t,v.top+_.top)),i&&(g.left<0||_.left>0?!0===c?r.scrollLeft(t,v.left+g.left):!1===c?r.scrollLeft(t,v.left+_.left):g.left<0?r.scrollLeft(t,v.left+g.left):r.scrollLeft(t,v.left+_.left):o||((c=void 0===c||!!c)?r.scrollLeft(t,v.left+g.left):r.scrollLeft(t,v.left+_.left)))}},720:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function o(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!==typeof n){var i=e.document;"number"!==typeof(n=i.documentElement[r])&&(n=i.body[r])}return n}function a(e){return o(e)}function c(e){return o(e,!0)}function s(e){var t=function(e){var t,n=void 0,r=void 0,i=e.ownerDocument,o=i.body,a=i&&i.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||o.clientLeft||0,top:r-=a.clientTop||o.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=a(r),t.top+=c(r),t}var u=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),d=/^(top|right|bottom|left)$/,l="currentStyle",f="runtimeStyle",p="left",h="px";var E=void 0;function O(e,t){for(var n=0;n<e.length;n++)t(e[n])}function b(e){return"border-box"===E(e,"boxSizing")}E=window.getComputedStyle?function(e,t,n){var r="",i=e.ownerDocument,o=n||i.defaultView.getComputedStyle(e,null);return o&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e[l]&&e[l][t];if(u.test(n)&&!d.test(t)){var r=e.style,i=r[p],o=e[f][p];e[f][p]=e[l][p],r[p]="fontSize"===t?"1em":n||0,n=r.pixelLeft+h,r[p]=i,e[f][p]=o}return""===n?"auto":n};var m=["margin","border","padding"],v=-1,g=2,_=1;function C(e,t,n){var r=0,i=void 0,o=void 0,a=void 0;for(o=0;o<t.length;o++)if(i=t[o])for(a=0;a<n.length;a++){var c=void 0;c="border"===i?i+n[a]+"Width":i+n[a],r+=parseFloat(E(e,c))||0}return r}function y(e){return null!=e&&e==e.window}var S={};function j(e,t,n){if(y(e))return"width"===t?S.viewportWidth(e):S.viewportHeight(e);if(9===e.nodeType)return"width"===t?S.docWidth(e):S.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?e.offsetWidth:e.offsetHeight,o=(E(e),b(e)),a=0;(null==i||i<=0)&&(i=void 0,(null==(a=E(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=o?_:v);var c=void 0!==i||o,s=i||a;if(n===v)return c?s-C(e,["border","padding"],r):a;if(c){var u=n===g?-C(e,["border"],r):C(e,["margin"],r);return s+(n===_?0:u)}return a+C(e,m.slice(n),r)}O(["Width","Height"],function(e){S["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],S["viewport"+e](n))},S["viewport"+e]=function(t){var n="client"+e,r=t.document,i=r.body,o=r.documentElement[n];return"CSS1Compat"===r.compatMode&&o||i&&i[n]||o}});var I={position:"absolute",visibility:"hidden",display:"block"};function R(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):function(e,t,n){var r={},i=e.style,o=void 0;for(o in t)t.hasOwnProperty(o)&&(r[o]=i[o],i[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(i[o]=r[o])}(e,I,function(){t=j.apply(void 0,n)}),t}function T(e,t,n){var r=n;if("object"!==("undefined"===typeof t?"undefined":i(t)))return"undefined"!==typeof r?("number"===typeof r&&(r+="px"),void(e.style[t]=r)):E(e,t);for(var o in t)t.hasOwnProperty(o)&&T(e,o,t[o])}O(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);S["outer"+t]=function(t,n){return t&&R(t,e,n?0:_)};var n="width"===e?["Left","Right"]:["Top","Bottom"];S[e]=function(t,r){if(void 0===r)return t&&R(t,e,v);if(t){E(t);return b(t)&&(r+=C(t,["padding","border"],n)),T(t,e,r)}}}),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if("undefined"===typeof t)return s(e);!function(e,t){"static"===T(e,"position")&&(e.style.position="relative");var n=s(e),r={},i=void 0,o=void 0;for(o in t)t.hasOwnProperty(o)&&(i=parseFloat(T(e,o))||0,r[o]=i+t[o]-n[o]);T(e,r)}(e,t)},isWindow:y,each:O,css:T,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(y(e)){if(void 0===t)return a(e);window.scrollTo(t,c(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(y(e)){if(void 0===t)return c(e);window.scrollTo(a(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},S)},761:function(e,t,n){},765:function(e,t,n){e.exports=n(766).ObjectPath},766:function(e,t,n){"use strict";!function(e){var n={"'":/\\\'/g,'"':/\\\"/g},r={parse:function(e){if("string"!==typeof e)throw new TypeError("ObjectPath.parse must be passed a string");for(var t,r,i,o,a=0,c=[];a<e.length;)if(t=e.indexOf(".",a),r=e.indexOf("[",a),-1===t&&-1===r)c.push(e.slice(a,e.length)),a=e.length;else if(-1===r||-1!==t&&t<r)c.push(e.slice(a,t)),a=t+1;else if(r>a&&(c.push(e.slice(a,r)),a=r),'"'!==(i=e.slice(r+1,r+2))&&"'"!==i)-1===(o=e.indexOf("]",r))&&(o=e.length),c.push(e.slice(a+1,o)),a="."===e.slice(o+1,o+2)?o+2:o+1;else{for(-1===(o=e.indexOf(i+"]",r))&&(o=e.length);"\\"===e.slice(o-1,o)&&r<e.length;)r++,o=e.indexOf(i+"]",r);c.push(e.slice(a+2,o).replace(n[i],i)),a="."===e.slice(o+2,o+3)?o+3:o+2}return c},stringify:function(e,t){return Array.isArray(e)||(e=[e.toString()]),t='"'===t?'"':"'",e.map(function(e){return"["+t+e.toString().replace(new RegExp(t,"g"),"\\"+t)+t+"]"}).join("")},normalize:function(e,t){return r.stringify(Array.isArray(e)?e:r.parse(e),t)},registerModule:function(e){e.module("ObjectPath",[]).provider("ObjectPath",function(){this.parse=r.parse,this.stringify=r.stringify,this.normalize=r.normalize,this.$get=function(){return r}})}};"function"===typeof define&&define.amd?define(function(){return{ObjectPath:r,parse:r.parse,stringify:r.stringify,normalize:r.normalize}}):t.ObjectPath=r}()},788:function(e,t,n){"use strict";n.r(t);var r=n(36),i=n.n(r),o=n(34),a=n.n(o),c=n(10),s=n.n(c),u=(n(717),n(107)),d=n.n(u),l=n(108),f=n.n(l),p=n(528),h=n.n(p),E=n(527),O=n.n(E),b=n(531),m=n.n(b),v=n(529),g=n.n(v),_=n(109),C=n(35),y=n(1),S=n(110),j=n.n(S),I=n(545),R=n(532),T=n(585),N=n(566),M=n(539),P=n(568),A={wc_services_usps:Object(C.translate)("USPS",{comment:"United States Postal Services"}),wc_services_canada_post:Object(C.translate)("Canada Post"),wc_services_fedex:Object(C.translate)("FedEx"),wc_services_ups:Object(C.translate)("UPS"),wc_services_dhlexpress:Object(C.translate)("DHL Express")},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=Object(y.get)(e,["extensions","woocommerce","sites",t,"shippingMethods"]);return Object(y.isArray)(n)?(Object(N.a)(e,t)?n:Object(y.filter)(n,function(e){var t=e.id;return!Object(y.startsWith)(t,"wc_services")})).map(function(e){return i()({},e,{title:A[e.id]||e.title})}):n},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!Object(y.isArray)(w(e,t)))return!1;var n=Object(y.filter)(w(e,t),function(e){var t=e.id;return Object(y.startsWith)(t,"wc_services")});return Object(y.every)(n,function(n){var r=n.id;return Object(P.b)(e,r,t)})},L=(Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!k(e,t))return function(e){return e};var n=w(e,t).reduce(function(e,t){var n=t.id,r=t.title;return e[n]=r,e},{});return function(e){return n[e]||e}},[k,w]),n(576)),x=n(533),D=n.n(x),W=n(76),V=n.n(W),H=n(611),G=n(563),U=n(46),B=n(535),F=function(e,t){if(!t||t.pristine)return e;var n=e.journal,r=e.states,i=t.journal,o=t.states,a=t.postcode,c=null;return null!==o&&(null===r?c=o:(c={add:o.removeAll?[]:j()(r.add),remove:o.removeAll?[]:j()(r.remove),removeAll:r.removeAll||o.removeAll},Object(y.pullAll)(c.add,o.remove),Object(y.pullAll)(c.remove,o.add),c.add=Object(y.union)(c.add,o.add),c.remove=Object(y.union)(c.remove,o.remove))),{journal:[].concat(j()(n),j()(i)),states:c,postcode:a,pristine:t.pristine&&e.pristine}},z="ADD_CONTINENT",q="REMOVE_CONTINENT",K="ADD_COUNTRY",Z="REMOVE_COUNTRY",Q={journal:[],states:null,postcode:null,pristine:!0},Y={};Y[B.nb]=function(e){return i()({},e,{temporaryChanges:i()({},Q)})},Y[B.mb]=function(e){var t=e.temporaryChanges,n=D()(e,["temporaryChanges"]);return F(n,t)},Y[B.lb]=function(e){return i()({},e,{temporaryChanges:null})},Y[B.sb]=function(e,t){var n=t.continentCode,r=t.selected;return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{states:null,postcode:null,journal:[].concat(j()(e.temporaryChanges.journal),[{action:r?z:q,code:n}])})})},Y[B.tb]=function(e,t){var n=t.countryCode,r=t.selected;return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{states:null,postcode:null,journal:[].concat(j()(e.temporaryChanges.journal),[{action:r?K:Z,code:n}])})})},Y[B.ub]=function(e,t){var n=t.stateCode,r=t.selected,o=e.temporaryChanges.states||{add:[],remove:[],removeAll:!1},a=j()(o.add),c=j()(o.remove),s=o.removeAll;return r?(Object(y.find)(a,n)||a.push(n),Object(y.pull)(c,n)):(Object(y.find)(c,n)||c.push(n),Object(y.pull)(a,n)),i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{states:{add:a,remove:c,removeAll:s}})})},Y[B.ob]=function(e,t){var n=t.postcode;return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{postcode:n})})},Y[B.rb]=function(e){return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{postcode:null,states:null})})},Y[B.qb]=function(e){return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{postcode:null,states:{add:[],remove:[],removeAll:!0}})})},Y[B.pb]=function(e){return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{postcode:"",states:null})})};var $=Object(U.b)(Q,Y),J=Object(I.a)(function(e,t){var n={},r=fe(e,t);return Object(y.forIn)(Object(H.c)(e,t),function(e,t){var i=e.continent;if(r.id!==Number(t)){var o=!0,a=!1,c=void 0;try{for(var s,u=i[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var d=s.value;n[d]=Number(t)}}catch(l){a=!0,c=l}finally{try{o||null==u.return||u.return()}finally{if(a)throw c}}}}),n},function(e,t){return[fe(e,t),Object(H.c)(e,t)]}),X=Object(I.a)(function(e,t){var n={},r=fe(e,t);return Object(y.forIn)(Object(H.c)(e,t),function(e,t){var i=e.country,o=e.postcode;if(r.id!==Number(t)&&Object(y.isEmpty)(o)){var a=!0,c=!1,s=void 0;try{for(var u,d=i[Symbol.iterator]();!(a=(u=d.next()).done);a=!0){var l=u.value;n[l]=Number(t)}}catch(f){c=!0,s=f}finally{try{a||null==d.return||d.return()}finally{if(c)throw s}}}}),n},function(e,t){return[fe(e,t),Object(H.c)(e,t)]}),ee=Object(I.a)(function(e,t,n){var r={},i=fe(e,t);return Object(y.forIn)(Object(H.c)(e,t),function(e,t){if(i.id!==Number(t)){var o=!0,a=!1,c=void 0;try{for(var s,u=e.state[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var d=s.value.split(":"),l=V()(d,2),f=l[0],p=l[1];f===n&&(r[p]=Number(t))}}catch(h){a=!0,c=h}finally{try{o||null==u.return||u.return()}finally{if(a)throw c}}}}),r},function(e,t){return[fe(e,t),Object(H.c)(e,t)]},function(e,t,n){return[t,n].join()}),te=Object(I.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e);if(!Object(T.a)(e,n))return null;var r=Object(H.c)(e,n)[t]||{continent:[],country:[],state:[],postcode:[]},o=new Set(r.country),a=new Set;return r.state.forEach(function(e){var t=e.split(":"),n=V()(t,2),r=n[0],i=n[1];o.add(r),a.add(i)}),i()({},r,{country:Array.from(o),state:Array.from(a)})},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e),r=Object(T.a)(e,n);return[r,r&&Object(H.c)(e,n)]},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e),r=Object(y.isObject)(t)?"i".concat(t.index):t;return"".concat(r).concat(n)}),ne=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!Object(T.a)(e,t))return null;var r=fe(e,t);if(!r)return null;var i=te(e,r.id,t),o=new Set(i.continent),a=new Set(i.country),c=new Set(i.state),s=ue(e,t).currentlyEditingChanges.locations,u=s.temporaryChanges,d=D()(s,["temporaryChanges"]),l=n?F(d,u):d;if(l.pristine)return{continent:Array.from(o),country:Array.from(a),state:Array.from(c),postcode:i.postcode};var f=new Set(Object.keys(X(e,t)));return l.journal.forEach(function(n){var r=n.action,i=n.code;switch(r){case z:Object(G.f)(e,i,t).forEach(function(e){return a.delete(e.code)}),a.size?Object(G.f)(e,i,t).forEach(function(e){f.has(e.code)||a.add(e.code)}):o.add(i);break;case q:o.delete(i),Object(G.f)(e,i,t).forEach(function(e){return a.delete(e.code)});break;case K:f.forEach(function(e){a.delete(e)}),a.add(i),o.forEach(function(n){Object(G.f)(e,n,t).forEach(function(e){f.has(e.code)||a.add(e.code)})}),o.clear();break;case Z:var c=!1,s=!0,u=!1,d=void 0;try{for(var l,p=o[Symbol.iterator]();!(s=(l=p.next()).done);s=!0){var h=l.value;if(c)break;var E=!0,O=!1,b=void 0;try{for(var m,v=Object(G.f)(e,h,t)[Symbol.iterator]();!(E=(m=v.next()).done);E=!0){if(m.value.code===i){c=!0;break}}}catch(g){O=!0,b=g}finally{try{E||null==v.return||v.return()}finally{if(O)throw b}}}}catch(g){u=!0,d=g}finally{try{s||null==p.return||p.return()}finally{if(u)throw d}}c&&(o.forEach(function(n){Object(G.f)(e,n,t).forEach(function(e){f.has(e.code)||a.add(e.code)})}),o.clear()),a.delete(i)}}),l.states&&!l.states.removeAll&&Object(y.isEmpty)(l.journal)||c.clear(),l.states&&(l.states.add.forEach(function(e){return c.add(e)}),l.states.remove.forEach(function(e){return c.delete(e)})),{continent:Array.from(o),country:Array.from(a),state:Array.from(c),postcode:null===l.postcode?[]:[l.postcode]}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=Object(T.a)(e,t),r=n&&fe(e,t);return[n,r,r&&te(e,r.id,t),r&&ue(e,t),r&&X(e,t)]},function(e){return[arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),!(arguments.length>2&&void 0!==arguments[2])||arguments[2]].join()}),re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return!(!Object(T.a)(e,t)||!fe(e,t))&&Boolean(ue(e,t).currentlyEditingChanges.locations.temporaryChanges)}(e,t))return!1;var n=ne(e,t);return n&&Object(y.isEmpty)(n.continent)&&1===n.country.length},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!re(e,t))return null;var n=ne(e,t);return X(e,t)[n.country[0]]},oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!re(e,t))return!1;var n=ne(e,t);return n&&Object(G.j)(e,n.country[0],t)},ae=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!re(e,t))return!1;var n=fe(e,t),r=Object(H.c)(e,t)[n.id],i=ue(e,t).currentlyEditingChanges.locations,o=i.temporaryChanges,a=D()(i,["temporaryChanges"]),c=F(a,o);return c.pristine?!Object(y.isEmpty)(r.postcode):null!==c.postcode||!oe(e,t)&&Boolean(ie(e,t))},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=re(e,t);return[n,n&&fe(e,t),n&&Object(H.c)(e,t),n&&ue(e,t),n&&oe(e,t),n&&ie(e,t)]}),ce=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!re(e,t)||!oe(e,t))return!1;var n=fe(e,t),r=Object(H.c)(e,t)[n.id],i=ue(e,t).currentlyEditingChanges.locations,o=i.temporaryChanges,a=D()(i,["temporaryChanges"]),c=F(a,o);return c.pristine?!Object(y.isEmpty)(r.state):null!==c.states||!ae(e,t)&&Boolean(ie(e,t))},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=re(e,t);return[n,n&&oe(e,t),n&&fe(e,t),n&&Object(H.c)(e,t),n&&ue(e,t),n&&ae(e,t),n&&ie(e,t)]}),se=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(R.a)(e);if(!t)return[];var i=new Set(t.continent);if(i.size)return Object(G.e)(e,r).filter(function(e){var t=e.code;return i.has(t)}).map(function(e){return{type:"continent",code:e.code,name:e.name}});var o=new Set(t.state);if(o.size){var a=t.country[0],c=Object(G.g)(e,a,r);return Object(G.i)(e,a,r).filter(function(e){var t=e.code;return o.has(t)}).map(function(e){return{type:"state",code:e.code,name:e.name,countryName:c,countryCode:a}})}if(t.postcode[0])return t.country.map(function(n){return{type:"country",code:n,name:Object(G.g)(e,n,r),postcodeFilter:t.postcode[0]}});var s=new Set(t.country);if(!s.size)return[];var u=[];return Object(G.e)(e,r).forEach(function(t){var i=t.code,o=t.name,a=Object(G.f)(e,i,r),c=a.filter(function(e){var t=e.code;return s.has(t)}).map(function(e){return{type:"country",code:e.code,name:e.name,postcodeFilter:void 0}});c.length<n?u=u.concat(c):u.push({type:"continent",code:i,name:o,countryCount:a.length,selectedCountryCount:c.length})}),u},ue=(Object(I.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(R.a)(e),i=te(e,t,r);return se(e,i,n,r)},function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(R.a)(e);return[te(e,t,r)]},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(R.a)(e),i=Object(y.isObject)(t)?"i".concat(t.index):t;return"".concat(i).concat(n).concat(r)}),Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:999,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e),r=ne(e,n,!1);return se(e,r,t,n)},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e);return[ne(e,n,!1)]},function(e){return[arguments.length>1&&void 0!==arguments[1]?arguments[1]:999,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e)].join()}),Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=ne(e,t);if(!n)return[];var r=new Set(n.continent),i=new Set(n.country),o=J(e,t),a=X(e,t),c=[],s=0===r.size&&0===i.size;return Object(G.e)(e,t).forEach(function(n){var u=n.code,d=n.name,l=r.has(u),f=Object(G.f)(e,u,t),p=0,h=c.push({code:u,name:d,selected:l,disabled:Boolean(o[u]),ownerZoneId:o[u],type:"continent",countryCount:f.length});f.forEach(function(e){var t=e.code,n=e.name,r=l||i.has(t);r&&p++,c.push({code:t,name:n,selected:r,disabled:!s&&Boolean(a[t]),ownerZoneId:a[t],type:"country"})}),c[h-1].selectedCountryCount=p}),c},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return[ne(e,t),J(e,t),X(e,t)]}),Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!ce(e,t))return[];var n=ne(e,t);if(!n)return[];var r=n.country[0],i=new Set(n.state),o=ee(e,t,r);return Object(G.i)(e,r,t).map(function(e){var t=e.code;return{code:t,name:e.name,selected:i.has(t),disabled:Boolean(o[t]),ownerZoneId:o[t]}})},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return[ce(e,t),ne(e,t),ee(e,t)]}),function(e,t){return Object(y.get)(e,["extensions","woocommerce","ui","shipping",t,"zones"])}),de=function(e){return j()(e).sort(function(e,t){return Object(y.isNumber)(e.id)||Object(y.isNumber)(t.id)?Object(y.isNumber)(e.id)?Object(y.isNumber)(t.id)?0===e.id?1:0===t.id?-1:e.order===t.order?e.id-t.id:e.order-t.order:1:-1:e.id.index-t.id.index})},le=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!Object(T.a)(e,t))return[];var n=j()(Object(T.b)(e,t)),r=ue(e,t);if(!r)return de(n);var o=r.creates,a=r.updates;return r.deletes.forEach(function(e){var t=e.id;return Object(y.remove)(n,{id:t})}),a.forEach(function(e){var t=Object(y.findIndex)(n,{id:e.id});-1!==t&&(n[t]=i()({},n[t],e))}),de([].concat(j()(n),j()(o)))},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=Object(T.a)(e,t);return[t,n,n&&Object(T.b)(e,t),n&&ue(e,t)]}),fe=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=ue(e,t);if(!n)return null;if(null===n.currentlyEditingId)return null;var r=Object(y.find)(le(e,t),{id:n.currentlyEditingId});return r?i()({},r,n.currentlyEditingChanges):i()({id:n.currentlyEditingId},n.currentlyEditingChanges)},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=ue(e,t);return[t,n,n&&null!==n.currentlyEditingId&&le(e,t)]});function pe(e){return e&&!Object(y.isObject)(e.id)?"updates":"creates"}var he={};he[B.Lb]=function(e,t){var n=t.isTaxable;return i()({},e,{tax_status:n?"taxable":"none"})},he[B.Jb]=function(e,t){var n=t.cost;return i()({},e,{cost:n})};var Ee=Object(U.b)({tax_status:"none",cost:5},he),Oe={};Oe[B.Ib]=function(e,t){var n=t.condition;return i()({},e,{requires:n})},Oe[B.Kb]=function(e,t){var n=t.cost;return i()({},e,{min_amount:n})};var be=Object(U.b)({requires:"",min_amount:0},Oe),me={};me[B.Lb]=function(e,t){var n=t.isTaxable;return i()({},e,{tax_status:n?"taxable":"none"})},me[B.Jb]=function(e,t){var n=t.cost;return i()({},e,{cost:n})};var ve=Object(U.b)({tax_status:"none",cost:0},me),ge=n(538),_e={};_e[ge.E]=function(e,t){return Object(y.setWith)(Object(y.clone)(e),t.path,t.value,y.clone)};var Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"function"===typeof _e[t.type]?_e[t.type](e,t):e},ye={flat_rate:Ee,free_shipping:be,local_pickup:ve,wc_services_usps:Ce,wc_services_canada_post:Ce,wc_services_fedex:Ce,wc_services_ups:Ce,wc_services_dhlexpress:Ce},Se={creates:[],updates:[],deletes:[],currentlyEditingId:null,currentlyEditingNew:!1,currentlyEditingChangedType:!1},je={},Ie=function(e){return{index:Object(y.isEmpty)(e.creates)?0:e.creates[e.creates.length-1].id.index+1}};je[B.yb]=function(e,t){var n=t.methodType,r=t.title,o=Ie(e),a={id:o,methodType:n};return ye[n]&&(a=i()({},a,{title:r},ye[n](void 0,t))),i()({},e,{currentlyEditingId:o,currentlyEditingNew:!0,currentlyEditingChangedType:!1,currentlyEditingChanges:a})},je[B.Gb]=function(e,t){return i()({},e,{currentlyEditingId:t.methodId,currentlyEditingChanges:{},currentlyEditingChangedType:!1,currentlyEditingNew:!1})},je[B.zb]=function(e){return i()({},e,{currentlyEditingId:null,currentlyEditingChangedType:!1,currentlyEditingNew:!1})},je[B.Bb]=function(e){var t=e,n=t.currentlyEditingId,r=t.currentlyEditingChanges,o=t.currentlyEditingNew,c=t.currentlyEditingChangedType;if(null===n)return e;if(Object(y.isEmpty)(r))return i()({},e,{currentlyEditingChangedType:!1,currentlyEditingNew:!1,currentlyEditingId:null});var s=pe({id:n});if(o)return i()({},e,{creates:[].concat(j()(e.creates),[r]),currentlyEditingId:null,currentlyEditingNew:!1,currentlyEditingChangedType:!1,currentlyEditingChanges:{}});if(c){var u=Object(y.find)(e[s],{id:n}),d=n;return u&&!Object(y.isNil)(u._originalId)&&(d=u._originalId),e=je[B.Hb](e,{methodId:n}),i()({},e,{currentlyEditingId:null,currentlyEditingChangedType:!1,currentlyEditingNew:!1,creates:[].concat(j()(e.creates),[i()({},r,{enabled:Object(y.isNil)(r.enabled)?u&&u.enabled:r.enabled,id:Ie(e),_originalId:d})])})}var l=!1,f=e[s].map(function(e){return Object(y.isEqual)(n,e.id)?(l=!0,i()({},e,r)):e});return l||f.push(i()({id:n},r)),i()({},e,a()({currentlyEditingId:null,currentlyEditingChangedType:!1,currentlyEditingNew:!1},s,f))},je[B.Hb]=function(e,t){var n=t.methodId,r=i()({},e,{currentlyEditingId:null}),o=pe({id:n});return"updates"===o&&(r.deletes=[].concat(j()(e.deletes),[{id:n}])),r[o]=Object(y.reject)(e[o],{id:n}),r},je[B.Ab]=function(e,t){var n=t.methodType,r=t.title;if(!ye[n])return e;var o=i()({},ye[n](void 0,t),{id:e.currentlyEditingId,title:r,methodType:n,enabled:e.currentlyEditingChanges&&e.currentlyEditingChanges.enabled});return i()({},e,{currentlyEditingChangedType:!0,currentlyEditingChanges:o})},je[B.Fb]=function(e,t){var n=t.title;return i()({},e,{currentlyEditingChanges:i()({},e.currentlyEditingChanges,{title:n})})},je[B.Nb]=function(e,t){var n=t.enabled;return i()({},e,{currentlyEditingChanges:i()({},e.currentlyEditingChanges,{enabled:n})})},je[B.Mb]=function(e,t){var n=t.methodId,r=t.enabled,o=pe({id:n}),c=Object(y.findIndex)(e[o],{id:n});if(-1===c)return i()({},e,a()({},o,[].concat(j()(e[o]),[{id:n,enabled:r}])));var s=i()({},e[o][c],{enabled:r});return i()({},e,a()({},o,[].concat(j()(e[o].slice(0,c)),[s],j()(e[o].slice(c+1)))))},je[B.Pb]=function(e,t){var n=t.data,r=t.originatingAction,o=r.methodId,a=r.method,c=pe({id:o}),s=i()({},e,{currentlyEditingId:null});if("creates"===c){var u=Object(y.find)(e.creates,{id:o});u&&(s.updates=[].concat(j()(e.updates),[i()({},u,{id:n.id})])),s.creates=Object(y.reject)(e[c],{id:o})}else{var d=Object(y.find)(e.updates,{id:o}),l=Object(y.omit)(d,Object.keys(a));if(Object(y.isEmpty)(Object(y.omit)(l,["id","methodType"])))s.updates=Object(y.reject)(e.updates,{id:o});else{var f=Object(y.findIndex)(e.updates,{id:o});s.updates=[].concat(j()(e[c].slice(0,f)),[l],j()(e[c].slice(f+1)))}}return s},je[B.Eb]=function(e,t){var n=t.originatingAction.methodId;return i()({},e,{creates:Object(y.reject)(e.creates,{id:n}),updates:Object(y.reject)(e.updates,{id:n}),deletes:Object(y.reject)(e.deletes,{id:n}),currentlyEditingId:null})};var Re=Object(U.b)(Se,je),Te=function(e,t){if(!t)return e;var n=e.creates,r=e.updates,i=e.deletes,o=t.creates,a=t.updates,c=t.deletes,s=t.currentlyEditingId,u=t.currentlyEditingNew,d=t.currentlyEditingChangedType,l={creates:j()(n),updates:j()(r),deletes:j()(i),currentlyEditingId:s,currentlyEditingNew:u,currentlyEditingChangedType:d};return c.forEach(function(e){var t=e.id,n=pe({id:t});"updates"===n&&l.deletes.push({id:t}),Object(y.remove)(l[n],{id:t})}),o.forEach(function(e){var t=Object(y.findIndex)(n,{id:e.id});-1===t?l.creates.push(e):l.creates[t]=Object(y.merge)({},l.creates[t],e)}),a.forEach(function(e){var t=Object(y.findIndex)(r,{id:e.id});-1===t?l.updates.push(e):l.updates[t]=Object(y.merge)({},l.updates[t],e)}),l};function Ne(e){switch(e.type){case"boolean":return e.default||!1;case"number":return e.default||0;case"string":case"textarea":return e.default||"";case"array":return e.default||[];case"object":return Object(y.mapValues)(Object(y.get)(e,"properties",{}),Ne);default:return null}}var Me=function(e){return Object(y.mapValues)(e.properties,Ne)},Pe=Object(I.a)(function(e,t,n){return Object(T.a)(e,n)?null===t?fe(e,n):Object(y.find)(Object(T.b)(e,n),{id:t}):null},function(e,t,n){var r=Object(T.a)(e,n);return[r,r&&fe(e,n),r&&Object(T.b)(e,n)]},function(e,t,n){return Object(y.isNumber)(t)?"".concat(t).concat(n):"i".concat(t.index).concat(n)}),Ae=function(e,t,n,r){var o=j()(t.methodIds||[]),a=function(e,t,n){var r=ue(e,n);if(r){var i=Object(y.find)(r[pe({id:t})],{id:t});if(i&&!Object(y.isEmpty)(i.methods))return i.methods}return{creates:[],updates:[],deletes:[],currentlyEditingId:null}}(e,t.id,n),c=Te(a,r),s=c.creates,u=c.updates,d=c.deletes;Object(y.pullAll)(o,Object(y.map)(d,"id"));var l=o.map(function(t){return Object(L.c)(e,t,n)});u.forEach(function(e){var t=o.indexOf(e.id);-1!==t&&(l[t]=i()({},l[t],e))});var f=[].concat(j()(l),j()(s)).map(function(t){var r=t.enabled;Object(y.isNil)(r)&&"number"===typeof t._originalId&&(r=Object(L.c)(e,t._originalId,n).enabled);var i=Object(y.startsWith)(t.methodType,"wc_services")?Me(Object(P.a)(e,t.methodType,n).formSchema):{};return Object(y.merge)({},i,t,{enabled:!1!==r})});return function(e,t,n){return n.sort(function(n,r){var i=Object(y.isNil)(n._originalId)?n.id:n._originalId,o=Object(y.isNil)(r._originalId)?r.id:r._originalId;return Object(y.isNumber)(i)?Object(y.isNumber)(o)?Object(L.c)(e,i,t).order-Object(L.c)(e,o,t).order:-1:Object(y.isNumber)(o)?1:i.index-o.index})}(e,n,f)},we=(Object(I.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e);if(!Object(T.a)(e,n))return[];var r=Pe(e,t,n)||{id:t,methodIds:[]};return Ae(e,r,n)},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e),r=Object(T.a)(e,n);return[r,r&&Pe(e,n),r&&ue(e,n)]},function(e,t,n){return Object(y.isNumber)(t)?"".concat(t).concat(n):"i".concat(t.index).concat(n)}),Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!Object(T.a)(e,t))return[];var n=fe(e,t);if(!n)return[];var r=ue(e,t).currentlyEditingChanges.methods;return Ae(e,n,t,r)},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=Object(T.a)(e,t),r=n&&fe(e,t);return[n,r,r&&ue(e,t)]})),ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!Object(T.a)(e,t))return null;var n=fe(e,t);if(!n||!n.methods||!n.methods.currentlyEditingId)return null;var r=n.methods.currentlyEditingChanges.methodType,i=Object(y.startsWith)(r,"wc_services")?Me(Object(P.a)(e,r,t).formSchema):{};if(n.methods.currentlyEditingNew)return Object(y.merge)({},i,n.methods.currentlyEditingChanges,{enabled:!1!==n.methods.currentlyEditingChanges.enabled});var o=we(e),a=Object(y.find)(o,{id:n.methods.currentlyEditingId});if(!a)return null;var c=Object(y.isNil)(n.methods.currentlyEditingChanges.enabled)?!1!==a.enabled:!1!==n.methods.currentlyEditingChanges.enabled;return Object(y.mergeWith)({},i,a,n.methods.currentlyEditingChanges,{enabled:c},function(e,t){if(Object(y.isArray)(e))return t})},Le=n(631),xe=n(590),De=n(530),We=n.n(De),Ve=n(12),He=n.n(Ve),Ge=n(30),Ue=n(546),Be=n(547),Fe=n(558),ze=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(i))),a()(m()(n),"state",{focused:!1,text:n.props.value}),a()(m()(n),"handleChange",function(e){n.setState({text:e.target.value}),n.props.onChange(e)}),a()(m()(n),"handleBlur",function(e){n.setState({focused:!1,text:n.props.value}),n.props.onChange(e)}),a()(m()(n),"handleFocus",function(){n.setState({focused:!0})}),n}return g()(t,e),f()(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.state.focused||e.value===this.props.value||this.setState({text:e.value})}},{key:"render",value:function(){return s.a.createElement(Fe.a,We()({},this.props,{value:this.state.text,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus}))}}]),t}(c.Component);a()(ze,"propTypes",{onChange:He.a.func}),a()(ze,"defaultProps",{onChange:function(){}});var qe=n(550),Ke=n(621),Ze=n(594),Qe=function(e){var t=e.id,n=e.title,r=e.description,i=e.value,o=e.placeholder,a=e.updateValue,c=e.error,u=e.className;return s.a.createElement(Ue.a,{className:u},s.a.createElement(Be.a,{htmlFor:t,dangerouslySetInnerHTML:Object(Ze.a)(n)}),s.a.createElement(ze,{id:t,name:t,placeholder:o,value:i,onChange:function(e){return a(function(e){if(""===e)return 0;var t=Number.parseFloat(e);return isNaN(t)?e:t}(e.target.value))},isError:Boolean(c)}),c?s.a.createElement(qe.a,{text:c}):s.a.createElement(Ke.a,{text:r}))};Qe.propTypes={id:He.a.string.isRequired,title:He.a.string,description:He.a.string,value:He.a.oneOfType([He.a.string,He.a.number]).isRequired,updateValue:He.a.func,error:He.a.oneOfType([He.a.string,He.a.bool]),className:He.a.string};var Ye=Qe,$e=n(554),Je=function(e){var t,n=e.id,r=e.title,i=e.className,o=e.value;return s.a.createElement(Ue.a,null,function(e){return e?s.a.createElement($e.a,{dangerouslySetInnerHTML:Object(Ze.a)(e)}):null}(r),s.a.createElement("p",{id:n,className:i},(t=o,s.a.createElement("span",{dangerouslySetInnerHTML:Object(Ze.a)(t)}))))};Je.propTypes={id:He.a.string.isRequired,title:He.a.string,className:He.a.string,value:He.a.string.isRequired};var Xe=Je,et=n(578),tt=n(641),nt=function(e){var t=e.value,n=e.currentValue,r=e.setValue,i=e.description;return s.a.createElement(Be.a,null,s.a.createElement(tt.a,{value:t,checked:t===n,onChange:function(){return r(t)}}),s.a.createElement("span",{dangerouslySetInnerHTML:Object(Ze.a)(i)}))},rt=function(e){var t=e.valuesMap,n=e.title,r=e.description,i=e.value,o=e.setValue,a=e.className;return s.a.createElement(Ue.a,{className:a},s.a.createElement($e.a,{dangerouslySetInnerHTML:Object(Ze.a)(n)}),s.a.createElement(Ke.a,{text:r}),Object.keys(t).map(function(e){return s.a.createElement(nt,{key:e,value:e,currentValue:i,setValue:o,description:t[e]})}))};rt.propTypes={valuesMap:He.a.object.isRequired,title:He.a.string,description:He.a.string,value:He.a.string.isRequired,setValue:He.a.func.isRequired,className:He.a.string};var it=rt,ot=n(526),at=n.n(ot),ct=n(47),st=n.n(ct),ut=n(718),dt=n.n(ut),lt=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(i))),a()(m()(n),"_computeSuggestionMatch",function(e){var t,r=n.props.displayTransform(n.props.match||"").toLocaleLowerCase();return 0===r.length?null:(t=(e=n.props.displayTransform(e)).toLocaleLowerCase().indexOf(r),{suggestionBeforeMatch:e.substring(0,t),suggestionMatch:e.substring(t,t+r.length),suggestionAfterMatch:e.substring(t+r.length)})}),a()(m()(n),"_renderSuggestions",function(){return Object(y.map)(n.props.suggestions,function(e,t){var n=this._computeSuggestionMatch(e),r=at()("token-field__suggestion",{"is-selected":t===this.props.selectedIndex});return s.a.createElement("li",{className:r,key:e,onMouseDown:this._handleMouseDown,onClick:this._handleClick(e),onMouseEnter:this._handleHover(e)},n?s.a.createElement("span",null,n.suggestionBeforeMatch,s.a.createElement("strong",{className:"token-field__suggestion-match"},n.suggestionMatch),n.suggestionAfterMatch):this.props.displayTransform(e))}.bind(m()(n)))}),a()(m()(n),"_handleHover",function(e){return function(){this._scrollingIntoView||this.props.onHover(e)}.bind(m()(n))}),a()(m()(n),"_handleClick",function(e){return function(){this.props.onSelect(e)}.bind(m()(n))}),a()(m()(n),"_handleMouseDown",function(e){e.preventDefault()}),n}return g()(t,e),f()(t,[{key:"componentDidUpdate",value:function(e){var t;e.isExpanded&&this.props.isExpanded&&this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this._scrollingIntoView=!0,t=this.refs.list,dt()(t.children[this.props.selectedIndex],t,{onlyScrollIfNeeded:!0}),setTimeout(function(){this._scrollingIntoView=!1}.bind(this),100))}},{key:"render",value:function(){var e=at()("token-field__suggestions-list",{"is-expanded":this.props.isExpanded&&this.props.suggestions.length>0});return s.a.createElement("ul",{ref:"list",className:e,tabIndex:"-1"},this._renderSuggestions())}}]),t}(s.a.PureComponent);a()(lt,"propTypes",{isExpanded:He.a.bool,match:He.a.string,displayTransform:He.a.func.isRequired,onSelect:He.a.func,suggestions:He.a.array,selectedIndex:He.a.number}),a()(lt,"defaultProps",{isExpanded:!1,match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])});var ft=lt,pt=n(534),ht=n.n(pt),Et=n(633),Ot=n(689),bt=769,mt="<480px",vt=">960px",gt=!window.matchMedia,_t=function(){return null};function Ct(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,n=e.max;return void 0!==t&&void 0!==n?gt?{matches:bt>t&&bt<=n}:window.matchMedia("(min-width: ".concat(t+1,"px) and (max-width: ").concat(n,"px)")):void 0!==t?gt?{matches:bt>t}:window.matchMedia("(min-width: ".concat(t+1,"px)")):void 0!==n&&(gt?{matches:bt<=n}:window.matchMedia("(max-width: ".concat(n,"px)")))}var yt={"<480px":Ct({max:480}),"<660px":Ct({max:660}),"<800px":Ct({max:800}),"<960px":Ct({max:960}),"<1040px":Ct({max:1040}),"<1280px":Ct({max:1280}),"<1400px":Ct({max:1400}),">480px":Ct({min:480}),">660px":Ct({min:660}),">800px":Ct({min:800}),">960px":Ct({min:960}),">1040px":Ct({min:1040}),">1280px":Ct({min:1280}),">1400px":Ct({min:1400}),"480px-660px":Ct({min:480,max:660}),"660px-960px":Ct({min:660,max:960}),"480px-960px":Ct({min:480,max:960})};function St(e){if(yt.hasOwnProperty(e))return yt[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function jt(e){var t=St(e);return t?t.matches:void 0}function It(e,t){if(!t)return _t;var n=St(e);if(n&&!gt){var r=function(e){return t(e.matches)};return n.addListener(r),function(){return n.removeListener(r)}}return _t}function Rt(e){var t=Object(c.useState)(function(){return{isActive:jt(e),breakpoint:e}}),n=V()(t,2),r=n[0],i=n[1];return Object(c.useEffect)(function(){return It(e,function(t){i(function(n){return n.isActive===t&&n.breakpoint===e?n:{isActive:t,breakpoint:e}})})},[e]),e===r.breakpoint?r.isActive:jt(e)}Object(Ot.a)(function(e){return function(t){var n=Rt(mt);return s.a.createElement(e,We()({},t,{isBreakpointActive:n}))}},"WithMobileBreakpoint"),Object(Ot.a)(function(e){return function(t){var n=Rt(vt);return s.a.createElement(e,We()({},t,{isBreakpointActive:n}))}},"WithDesktopBreakpoint");function Tt(e){var t=Rt(mt);if(!e.showOnMobile&&t)return null;var n=at()("popover","tooltip","is-".concat(e.status),"is-".concat(e.position),e.className);return s.a.createElement(Et.a,{autoPosition:e.autoPosition,className:n,rootClassName:e.rootClassName,context:e.context,id:e.id,isVisible:e.isVisible,position:e.position,showDelay:e.showDelay},e.children)}Tt.propTypes={autoPosition:He.a.bool,className:He.a.string,id:He.a.string,isVisible:He.a.bool,position:He.a.string,rootClassName:He.a.string,status:He.a.string,showDelay:He.a.number,showOnMobile:He.a.bool},Tt.defaultProps={showDelay:100,position:"top",showOnMobile:!1};var Nt=Tt,Mt=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(i))),a()(m()(n),"_onClickRemove",function(){n.props.onClickRemove({value:n.props.value})}),n}return g()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.value,n=e.status,r=e.isBorderless,i=e.tooltip,o=e.displayTransform,a=at()("token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":r,"is-disabled":this.props.disabled});return s.a.createElement("span",{className:a,tabIndex:"-1",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},s.a.createElement("span",{className:"token-field__token-text"},o(t)),s.a.createElement(ht.a,{icon:"cross-small",size:24,className:"token-field__remove-token",onClick:this.props.disabled?null:this._onClickRemove}),i&&s.a.createElement(Nt,{showOnMobile:!0,context:this,status:n,isVisible:!0,position:"bottom"},i))}}]),t}(s.a.PureComponent);a()(Mt,"displayName","Token"),a()(Mt,"propTypes",{value:He.a.string.isRequired,displayTransform:He.a.func.isRequired,onClickRemove:He.a.func,status:He.a.oneOf(["error","success","validating"]),isBorderless:He.a.bool,tooltip:He.a.string,disabled:He.a.bool}),a()(Mt,"defaultProps",{onClickRemove:function(){},isBorderless:!1,disabled:!1});var Pt=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(i))),a()(m()(n),"setTextInput",function(e){n.textInput=e}),a()(m()(n),"onChange",function(e){n.props.onChange({value:e.target.value})}),n}return g()(t,e),f()(t,[{key:"componentDidUpdate",value:function(){this.props.hasFocus&&this.textInput.focus()}},{key:"render",value:function(){var e=this.props,t=e.placeholder,n=e.value,r=(0===n.length&&t&&t.length||n.length)+1;return s.a.createElement("input",We()({className:"token-field__input",onChange:this.onChange,ref:this.setTextInput,size:r,type:"text"},Object(y.omit)(this.props,["hasFocus","onChange"])))}}]),t}(s.a.PureComponent);a()(Pt,"propTypes",{disabled:He.a.bool,hasFocus:He.a.bool,onChange:He.a.func,onBlur:He.a.func,placeholder:He.a.string,value:He.a.string}),a()(Pt,"defaultProps",{disabled:!1,hasFocus:!1,onChange:y.noop,onBlur:y.noop,placeholder:"",value:""});var At=Pt,wt=(n(761),st()("calypso:token-field")),kt=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(o))),a()(m()(n),"state",n.constructor.initialState),a()(m()(n),"_renderTokensAndInput",function(){var e=Object(y.map)(n.props.value,n._renderToken);return e.splice(n._getIndexOfInput(),0,n._renderInput()),e}),a()(m()(n),"_renderToken",function(e){var t=n._getTokenValue(e),r=e.status?e.status:void 0;return s.a.createElement(Mt,{key:"token-"+t,value:t,status:r,tooltip:e.tooltip,displayTransform:n.props.displayTransform,onClickRemove:n._onTokenClickRemove,isBorderless:e.isBorderless||n.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==r&&n.props.disabled})}),a()(m()(n),"_renderInput",function(){var e=n.props,t=e.autoCapitalize,r=e.autoComplete,o=e.autoCorrect,a=e.id,c=e.maxLength,u=e.placeholder,d=e.spellCheck,l=e.value,f={autoCapitalize:t,autoComplete:r,autoCorrect:o,disabled:n.props.disabled,hasFocus:n.state.tokenInputHasFocus,id:a,key:"input",onBlur:n._onBlur,spellCheck:d,value:n.state.incompleteTokenValue};return 0===l.length&&u&&(f.placeholder=u),c&&l.length>=c||(f=i()({},f,{onChange:n._onInputChange})),s.a.createElement(At,f)}),a()(m()(n),"setTokensAndInput",function(e){n.tokensAndInput=e}),a()(m()(n),"_onFocus",function(e){n.setState({isActive:!0,tokenInputHasFocus:!0}),"function"===typeof n.props.onFocus&&n.props.onFocus(e)}),a()(m()(n),"_onBlur",function(){n._inputHasValidValue()?(wt("_onBlur adding current token"),n.setState({isActive:!1},n._addCurrentToken)):(wt("_onBlur not adding current token"),n.setState(n.constructor.initialState))}),a()(m()(n),"_onTokenClickRemove",function(e){n._deleteToken(e.value)}),a()(m()(n),"_onSuggestionHovered",function(e){var t=n._getMatchingSuggestions().indexOf(e);t>=0&&n.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}),a()(m()(n),"_onSuggestionSelected",function(e){wt("_onSuggestionSelected",e),n._addNewToken(e)}),a()(m()(n),"_onInputChange",function(e){var t=e.value,r=n.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,i=t.split(r);i.length>1&&n._addNewTokens(i.slice(0,-1)),n.setState({incompleteTokenValue:Object(y.last)(i)||"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1})}),a()(m()(n),"_onContainerTouched",function(e){e.target===n.tokensAndInput&&n.state.isActive&&e.preventDefault()}),a()(m()(n),"_onKeyDown",function(e){var t=!1;switch(e.keyCode){case 8:t=n._handleDeleteKey(n._deleteTokenBeforeInput);break;case 9:case 13:t=n._addCurrentToken();break;case 37:t=n._handleLeftArrowKey();break;case 38:t=n._handleUpArrowKey();break;case 39:t=n._handleRightArrowKey();break;case 40:t=n._handleDownArrowKey();break;case 46:t=n._handleDeleteKey(n._deleteTokenAfterInput);break;case 32:n.props.tokenizeOnSpace&&(t=n._addCurrentToken())}t&&e.preventDefault()}),a()(m()(n),"_onKeyPress",function(e){var t=!1;switch(e.charCode){case 44:t=n._handleCommaKey()}t&&e.preventDefault()}),a()(m()(n),"_handleDeleteKey",function(e){var t=!1;return n.state.tokenInputHasFocus&&n._isInputEmpty()&&(e(),t=!0),t}),a()(m()(n),"_getMatchingSuggestions",function(){var e=n.props.suggestions,t=n.props.saveTransform(n.state.incompleteTokenValue),r=[],i=[];return 0===t.length?e=Object(y.difference)(e,n.props.value):(t=t.toLocaleLowerCase(),Object(y.each)(e,function(e){var n=e.toLocaleLowerCase().indexOf(t);-1===this.props.value.indexOf(e)&&(0===n?r.push(e):n>0&&i.push(e))}.bind(m()(n))),e=r.concat(i)),Object(y.take)(e,n.props.maxSuggestions)}),a()(m()(n),"_getSelectedSuggestion",function(){if(-1!==n.state.selectedSuggestionIndex)return n._getMatchingSuggestions()[n.state.selectedSuggestionIndex]}),a()(m()(n),"_addCurrentToken",function(){var e=!1,t=n._getSelectedSuggestion();return t?(n._addNewToken(t),e=!0):n._inputHasValidValue()&&(n._addNewToken(n.state.incompleteTokenValue),e=!0),e}),a()(m()(n),"_handleLeftArrowKey",function(){var e=!1;return n._isInputEmpty()&&(n._moveInputBeforePreviousToken(),e=!0),e}),a()(m()(n),"_handleRightArrowKey",function(){var e=!1;return n._isInputEmpty()&&(n._moveInputAfterNextToken(),e=!0),e}),a()(m()(n),"_handleUpArrowKey",function(){return n.setState({selectedSuggestionIndex:Math.max((n.state.selectedSuggestionIndex||0)-1,0),selectedSuggestionScroll:!0}),!0}),a()(m()(n),"_handleDownArrowKey",function(){return n.setState({selectedSuggestionIndex:Math.min(n.state.selectedSuggestionIndex+1||0,n._getMatchingSuggestions().length-1),selectedSuggestionScroll:!0}),!0}),a()(m()(n),"_handleCommaKey",function(){return n._inputHasValidValue()&&n._addNewToken(n.state.incompleteTokenValue),!0}),a()(m()(n),"_isInputEmpty",function(){return 0===n.state.incompleteTokenValue.length}),a()(m()(n),"_inputHasValidValue",function(){return n.props.saveTransform(n.state.incompleteTokenValue).length>0}),a()(m()(n),"_deleteTokenBeforeInput",function(){var e=n._getIndexOfInput()-1;e>-1&&n._deleteToken(n.props.value[e])}),a()(m()(n),"_deleteTokenAfterInput",function(){var e=n._getIndexOfInput();e<n.props.value.length&&(n._deleteToken(n.props.value[e]),n._moveInputToIndex(e))}),a()(m()(n),"_deleteToken",function(e){var t=n.props.value.filter(function(t){return n._getTokenValue(t)!==n._getTokenValue(e)});n.props.onChange(t)}),a()(m()(n),"_moveInputToIndex",function(e){n.setState({inputOffsetFromEnd:n.props.value.length-Math.max(e,-1)-1})}),a()(m()(n),"_moveInputBeforePreviousToken",function(){n.setState({inputOffsetFromEnd:Math.min(n.state.inputOffsetFromEnd+1,n.props.value.length)})}),a()(m()(n),"_moveInputAfterNextToken",function(){n.setState({inputOffsetFromEnd:Math.max(n.state.inputOffsetFromEnd-1,0)})}),a()(m()(n),"_addNewTokens",function(e){var t=Object(y.uniq)(e.map(n.props.saveTransform).filter(Boolean).filter(function(e){return!n._valueContainsToken(e)}));if(wt("_addNewTokens: tokensToAdd",t),t.length>0){var r=Object(y.clone)(n.props.value);r.splice.apply(r,[n._getIndexOfInput(),0].concat(t)),wt("_addNewTokens: onChange",r),n.props.onChange(r)}}),a()(m()(n),"_addNewToken",function(e){n._addNewTokens([e]),n.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),n.state.isActive&&(wt("_addNewToken focusing input"),n.setState({tokenInputHasFocus:!0}))}),a()(m()(n),"_valueContainsToken",function(e){return Object(y.some)(n.props.value,function(t){return n._getTokenValue(e)===n._getTokenValue(t)})}),a()(m()(n),"_getTokenValue",function(e){return"object"===typeof e?e.value:e}),a()(m()(n),"_getIndexOfInput",function(){return n.props.value.length-n.state.inputOffsetFromEnd}),n}return g()(t,e),f()(t,[{key:"componentWillReceiveProps",value:function(e){e.disabled&&this.state.isActive&&this.setState({isActive:!1,incompleteTokenValue:""})}},{key:"render",value:function(){var e={ref:"main",className:at()("token-field",{"is-active":this.state.isActive,"is-disabled":this.props.disabled}),tabIndex:"-1"};return this.props.disabled||(e=Object.assign({},e,{onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onFocus:this._onFocus})),s.a.createElement("div",e,s.a.createElement("div",{ref:this.setTokensAndInput,className:"token-field__input-container",tabIndex:"-1",onMouseDown:this._onContainerTouched,onTouchStart:this._onContainerTouched},this._renderTokensAndInput()),s.a.createElement(ft,{match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:this._getMatchingSuggestions(),selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,isExpanded:this.props.isExpanded||this.state.isActive,onHover:this._onSuggestionHovered,onSelect:this._onSuggestionSelected}))}}]),t}(c.PureComponent);a()(kt,"propTypes",{suggestions:He.a.array,maxSuggestions:He.a.number,displayTransform:He.a.func,saveTransform:He.a.func,onChange:He.a.func,isBorderless:He.a.bool,maxLength:He.a.number,onFocus:He.a.func,disabled:He.a.bool,tokenizeOnSpace:He.a.bool,placeholder:He.a.string,id:He.a.string,isExpanded:He.a.bool,value:function(e){var t=e.value;if(!Array.isArray(t))return new Error("Value prop is expected to be an array.");Object(y.forEach)(t,function(e){if("object"===typeof e&&!("value"in e))return new Error("When using object for value prop, each object is expected to have a 'value' property.")})}}),a()(kt,"defaultProps",{suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),placeholder:"",displayTransform:y.identity,saveTransform:function(e){return e.trim()},onChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,isExpanded:!1}),a()(kt,"initialState",{incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,tokenInputHasFocus:!1});var Lt=kt,xt=n(559),Dt=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(i))),a()(m()(n),"prepareValueForTokenField",function(e){return Object(y.filter)(Object(y.map)(e,n.getNameFromId))}),a()(m()(n),"getNameFromId",function(e){var t=Object(y.find)(n.props.options,{id:e});return t?t.name:null}),a()(m()(n),"getIdFromName",function(e){var t=e.toLowerCase(),r=Object(y.find)(n.props.options,function(e){return e.name.toLowerCase()===t});return r?r.id:null}),a()(m()(n),"transformForDisplay",function(e){var t=Object(y.find)(n.props.options,{slug:e});return t?t.name:e}),a()(m()(n),"onChange",function(e){(0,n.props.updateValue)(Object(y.uniq)(Object(y.filter)(Object(y.map)(e,n.getIdFromName))))}),n}return g()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.id,n=e.title,r=e.description,i=e.value,o=e.placeholder,a=e.options;return!1===a||0===a.length?null:s.a.createElement(Ue.a,null,s.a.createElement(Be.a,{htmlFor:t},n),s.a.createElement(Lt,{id:t,name:t,placeholder:o,value:this.prepareValueForTokenField(i),suggestions:Object(y.uniq)(Object(y.map)(a,"name")),onChange:this.onChange,displayTransform:this.transformForDisplay}),r&&s.a.createElement(xt.a,null,r))}}]),t}(s.a.Component);a()(Dt,"propTypes",{id:He.a.string.isRequired,title:He.a.string,description:He.a.string,value:He.a.array.isRequired,updateValue:He.a.func,options:He.a.array});var Wt=n(790),Vt=n(599),Ht=n(580),Gt=function(e){var t=e.currencySymbol,n=e.updateValue,r=e.errors,i=e.service,o=i.enabled,a=i.name,c=i.adjustment,u=i.adjustment_type,d=Boolean(r[i.id]),l="service_"+Object(y.snakeCase)(i.name);return s.a.createElement("div",{className:at()("shipping-services__entry",{"wcc-error":d})},s.a.createElement("label",{className:"shipping-services__entry-title",htmlFor:l},s.a.createElement(Vt.a,{id:l,checked:o,onChange:function(e){return n("enabled",e.target.checked)}}),s.a.createElement("span",null,a)),d?s.a.createElement(ht.a,{icon:"notice"}):null,s.a.createElement(ze,{disabled:!o,value:c,onChange:function(e){return n("adjustment",e.target.value)},isError:d}),s.a.createElement(Ht.a,{disabled:!o,value:u,onChange:function(e){return n("adjustment_type",e.target.value)}},s.a.createElement("option",{value:"flat"},t),s.a.createElement("option",{value:"percentage"},"%")))};Gt.propTypes={service:He.a.shape({id:He.a.string.isRequired,name:He.a.string.isRequired,enabled:He.a.bool,adjustment:He.a.oneOfType([He.a.string,He.a.number]),adjustment_type:He.a.string}),currencySymbol:He.a.string.isRequired,updateValue:He.a.func.isRequired,settingsKey:He.a.string.isRequired},Gt.defaultProps={enabled:!1,adjustment:0,adjustment_type:"flat"};var Ut=Gt,Bt=n(600),Ft=function(e){var t=e.title,n=e.deliveryEstimate,r=e.services,i=e.updateValue,o=e.errors,a=e.translate,c=r.reduce(function(e,t){return e+(t.enabled?1:0)},0),u=function(e){return e.stopPropagation()},d=function(e){return function(e,t,n){n.forEach(function(n){t([n.id,"enabled"],e.target.checked)})}(e,i,r)},l=function(e,t,n){return t===e.length?n("All services selected"):n("%(numSelected)d service selected","%(numSelected)d services selected",{count:t,args:{numSelected:t}})}(r,c,a);return s.a.createElement("div",{className:at()({"is-error":!Object(y.isEmpty)(o)})},s.a.createElement(Bt.a,{header:s.a.createElement("div",null,s.a.createElement(Vt.a,{checked:r.length===c,partialChecked:Boolean(c),onChange:d,onClick:u}),t,n&&s.a.createElement("small",{className:"shipping-services__delivery-estimate"},"(",n,")")),summary:l,expandedSummary:l,clickableHeader:!0,compact:!0,screenReaderText:a("Expand Services")},s.a.createElement("div",{className:"shipping-services__entry shipping-services__entry-header-container"},s.a.createElement("span",{className:"shipping-services__entry-header"},a("Service")),s.a.createElement("span",{className:"shipping-services__entry-header shipping-services__entry-price-adjustment"},a("Price adjustment"),s.a.createElement(Wt.a,{position:"top left",text:a("Increase the rates calculated by the carrier to account for packaging and handling costs. You can also add a negative amount to save your customers money.")},s.a.createElement("span",null,s.a.createElement(ht.a,{icon:"info-outline",size:18}))))),r.map(function(t,n){return s.a.createElement(Ut,We()({},e,{service:t},{updateValue:function(e,n){return i([t.id].concat(e),n)},key:n}))})))};Ft.propTypes={title:He.a.string.isRequired,deliveryEstimate:He.a.string,services:He.a.arrayOf(He.a.shape({id:He.a.string.isRequired,name:He.a.string.isRequired,enabled:He.a.bool,adjustment:He.a.oneOfType([He.a.string,He.a.number]),adjustment_type:He.a.string})).isRequired,updateValue:He.a.func.isRequired};var zt=Object(C.localize)(Ft),qt=function(e){var t=e.title,n=e.description,r=e.services,i=e.settings,o=e.currencySymbol,a=e.updateValue,c=e.settingsKey,u=e.errors,d=e.generalError,l=r.map(function(e){return Object.assign({},e,i[e.id])}),f=Object(y.groupBy)(l,function(e){return e.group});return s.a.createElement("div",{className:"shipping-services"},s.a.createElement($e.a,{dangerouslySetInnerHTML:Object(Ze.a)(t)}),s.a.createElement(Ke.a,{text:n}),s.a.createElement("div",{className:at()("shipping-services__inner",{"is-error":d})},Object.keys(f).sort().map(function(e){var t=Object(y.map)(f[e],"id"),n={};return t.forEach(function(e){u[e]&&(n[e]=u[e])}),s.a.createElement(zt,{key:e,title:f[e][0].group_name,deliveryEstimate:f[e][0].group_estimate||"",services:f[e],currencySymbol:o,updateValue:a,settingsKey:c,errors:n})})),d?s.a.createElement(qe.a,{text:d}):null)};qt.propTypes={title:He.a.string,description:He.a.string,services:He.a.array.isRequired,settings:He.a.object.isRequired,currencySymbol:He.a.string,updateValue:He.a.func.isRequired,settingsKey:He.a.string.isRequired},qt.defaultProps={currencySymbol:"$",settings:{}};var Kt=qt,Zt=function(e){var t=e.formData,n=e.layout,r=e.schema,i=e.formValueActions,o=e.storeOptions,a=e.errors,c=e.translate,u=(e.site,e.shippingClasses),d=n.key?n.key:n,l=function(e){return i.updateField(d,e)},f=t[d],p=r.properties[d],h=n.type||p.type||"",E=!!a[""]&&(a[""].value||n.validation_hint||"");switch(h){case"radios":return s.a.createElement(it,{valuesMap:n.titleMap,title:p.title,description:p.description,value:f,setValue:l,error:E});case"shipping_services":return s.a.createElement(Kt,{services:r.definitions.services,title:p.title,description:p.description,settings:f,currencySymbol:o.currency_symbol,updateValue:function(e,t){return i.updateField([d].concat(e),t)},settingsKey:d,errors:a,generalError:E});case"packages":return s.a.createElement("div",null,s.a.createElement($e.a,null,c("Saved Packages")),c("Add and edit saved packages using the {{a}}Packaging Manager{{/a}}.",{components:{a:s.a.createElement("a",{href:"admin.php?page=wc-settings&tab=shipping§ion=woocommerce-services-settings"})}}));case"text":return s.a.createElement(Xe,{id:d,title:n.title,className:n.class,value:f||n.description});case"number":return s.a.createElement(Ye,{id:d,title:p.title,description:p.description,value:f,placeholder:n.placeholder,updateValue:l,error:E});case"shipping_classes":return s.a.createElement(Dt,{id:d,title:p.title,description:p.description,value:f,options:u,updateValue:l});default:return s.a.createElement(et.a,{id:d,title:p.title,description:p.description,value:f,placeholder:n.placeholder,updateValue:l,error:E})}};Zt.propTypes={layout:He.a.oneOfType([He.a.string.isRequired,He.a.object.isRequired]).isRequired,schema:He.a.object.isRequired,storeOptions:He.a.object.isRequired,formValueActions:He.a.object.isRequired,errors:He.a.object};var Qt=Object(C.localize)(Zt),Yt=n(588),$t=function(e){var t=e.group,n=e.errors,r=function(){return t.items.map(function(t,r){return s.a.createElement("div",{className:"settings-form__row",key:r},function(t){var r=t.key?t.key:t;return s.a.createElement(Qt,We()({},e,{key:r,layout:t,errors:n[r]||{}}))}(t))})};switch(t.type){case"fieldset":return s.a.createElement(Yt.a,{heading:t.title},r());case"actions":return null;default:return s.a.createElement("div",null,r())}};$t.propTypes={group:He.a.shape({title:He.a.string,items:He.a.array}),schema:He.a.object.isRequired,storeOptions:He.a.object.isRequired,errors:He.a.object,site:He.a.object.isRequired};var Jt=$t,Xt=n(549),en=function(e,t,n,r){return{type:ge.E,siteId:e,methodId:t,methodType:"wc_services_usps",path:n,value:r}},tn=n(114),nn=n.n(tn),rn=n(765),on=n.n(rn),an=n(613),cn={level:"error"};Object.freeze(cn);var sn=function(e,t,n){var r=nn()(e,{greedy:!0}),i=r(Object(an.a)(e,t)),o={};return!i&&r.errors&&r.errors.length&&r.errors.forEach(function(e){var t=function(e){var t=on.a.parse(e);return"data"===t[0]?t[1]||null:t[0]}(e.field);t&&!n[t]||(o[e.field]=cn)}),n.services&&!Object(y.some)(t.services,"enabled")&&(o.services=Object(C.translate)("Select at least one service.")),o},un=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=fe(e,t);if(!n||!n.methods||!n.methods.currentlyEditingId)return{};var r=ke(e,t),i=Object(P.a)(e,r.methodType,t).formSchema,o=Object(y.omit)(n.methods.currentlyEditingChanges,["id","methodType","enabled"]),a=Object(y.mapValues)(o,function(){return!0});return function(e){if(!Object(y.isObject)(e))return{};var t={};return Object.keys(e).forEach(function(n){var r=on.a.parse(n),i=r;"data"===r[0]&&(i=r.slice(1));var o=t;i.forEach(function(e){o[e]||(o[e]={}),o=o[e]}),o[""]=e[n]}),t}(sn(i,r,a))},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return[t,fe(e,t)]}),dn=n(562),ln=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return Object(y.get)(e,["extensions","woocommerce","sites",t,"shippingClasses"],!1)},fn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return Object(y.isArray)(ln(e,t))},pn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=ln(e,t);return Object(y.isArray)(n)?n:[]},hn=function(e){return s.a.createElement("div",null,e.layout.map(function(t,n){return r=n,s.a.createElement(Jt,We()({},e,{group:e.layout[r],key:r}));var r}))};hn.propTypes={siteId:He.a.number.isRequired,method:He.a.object.isRequired};var En,On=Object(_.b)(function(e,t){var n=Object(P.a)(e,t.method.methodType,t.siteId),r=n.storeOptions,i=n.formSchema,o=n.formLayout;return{formData:ke(e,t.siteId),shippingClasses:pn(e,t.siteId),errors:un(e,t.siteId),storeOptions:r,schema:i,layout:o,site:Object(dn.a)(e,t.siteId)}},function(e,t){return{noticeActions:Object(Ge.b)({successNotice:Xt.d,errorNotice:Xt.a},e),formValueActions:{updateField:function(n,r){return e(en(t.siteId,t.method.id,n,r))}}}})(hn),bn=n(542),mn=n(673),vn=function(e,t){return{type:B.Gb,siteId:e,methodId:t}},gn=n(552),_n=n(555),Cn=function(e){function t(e){var n;return d()(this,t),n=h()(this,O()(t).call(this,e)),a()(m()(n),"onSave",function(){var e=n.props.translate;n.setState({isSaving:!0}),n.props.saveChanges(function(t){n.setState({isSaving:!1}),t(Object(Xt.d)(e("Your changes have been saved."),{duration:4e3}))},function(t,r,i){var o=i.error;n.setState({isSaving:!1}),o&&t(Object(Xt.a)(Object(y.isString)(o)?o:e("There was a problem with one or more entries. Please fix the errors below and try saving again.")))})}),a()(m()(n),"renderPlaceholder",function(){return s.a.createElement("div",{className:"settings__placeholder"},s.a.createElement(Yt.a,{heading:" "},s.a.createElement(et.a,{id:"placeholder1",title:"Lorem",value:""}),s.a.createElement(et.a,{id:"placeholder1",title:"Ipsum",value:""})))}),n.state={isSaving:!1},n}return g()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.siteId,n=e.method,r=e.translate,i=e.hasEdits,o=e.anyErrors,a=e.isLoaded;return s.a.createElement("div",null,s.a.createElement(Le.a,{id:"notices",notices:xe.a.list}),n?s.a.createElement(On,{method:n,siteId:t}):this.renderPlaceholder(),s.a.createElement(_n.a,{className:"settings__button-row"},s.a.createElement(bn.a,{primary:!0,onClick:this.onSave,busy:this.state.isSaving,disabled:this.state.isSaving||!a||o},r("Save changes"))),s.a.createElement(mn.a,{isChanged:i}))}}]),t}(c.Component),yn=function(e){var t=fe(e).methods;return!Object(y.isEmpty)(t.currentlyEditingChanges)||!(Object(y.isEmpty)(t.updates)||Object(y.isEmpty)(t.updates[0]))},Sn=function(e,t){return function(n,r){if(yn(r())){var i=Object(R.a)(r()),o=ke(r());n(function(e){return function(t,n){var r=ke(n(),e);if(Object(y.startsWith)(r.methodType,"wc_services")){var i=Object(y.omit)(r,["id","enabled","methodType"]);if(Object(y.forEach)(i,function(n,i){return t(en(e,r.id,i,n))}),!Object(y.isEmpty)(un(n(),e)))return t(Object(Xt.a)(Object(C.translate)("There was a problem with one or more entries. Please fix the errors below and try saving again."),{duration:5e3}))}t({type:B.Bb,siteId:e})}}(i)),ke(r())?n(t):(n(vn(i,o.id)),n(function(e,t,n,r,i,o){return{type:ge.Yb,siteId:e,methodId:t,methodType:n,method:r,successAction:i,failureAction:o}}(i,o.id,o.methodType,Object(y.omit)(o,["id","methodType","enabled"]),e,t)))}else n(e)}},jn=Object(_.b)(function(e){var t=Object(R.a)(e),n=k(e,t)&&fn(e,t);return{siteId:t,isLoaded:n,method:n&&ke(e),hasEdits:n&&yn(e),anyErrors:n&&Object(gn.a)(un(e))}},function(e){return{saveChanges:function(){return e(Sn.apply(void 0,arguments))}}})(Object(C.localize)(Cn)),In=(n(543),n(557),function(e,t,n){return{type:ge.Ub,siteId:e,methodId:t,data:n}}),Rn=(En={},a()(En,ge.Xb,function(e,t){var n=e.siteId,r=e.data;t(In(n,r.methodId,r))}),a()(En,B.Pb,function(e,t){var n=e.siteId,r=e.originatingAction.methodId;t(vn(n,r))}),En),Tn=function(e){var t=e.dispatch;return function(e){return function(n){e(n);var r=Rn[n.type];r&&r(n,t)}}},Nn={};Nn[B.xb]=function(e,t){var n=t.data,r=i()({},e);return n.forEach(function(e){r[e.id]=i()({id:e.id,order:e.order,enabled:e.enabled,methodType:e.method_id},Object(y.mapValues)(e.settings,"value"))}),r},Nn[B.Pb]=function(e,t){var n=t.data,r=t.originatingAction;return n.id?Nn[B.xb](e,{data:[n]}):i()({},e,a()({},r.methodId,i()({},e[r.methodId],{id:r.methodId,methodType:r.methodType},r.method)))},Nn[ge.Xb]=function(e,t){var n=t.instanceId,r=t.data;return i()({},e,a()({},n,i()({},e[n],r.formData)))};var Mn,Pn=Object(U.b)({},Nn),An=function(e){return 0!==e.id?e:i()({},e,{name:Object(C.translate)("Locations not covered by your other zones")})},wn=Object(U.b)(null,(Mn={},a()(Mn,B.wb,function(e,t){var n=t.zoneId;if(!Object(y.isArray)(e))return e;var r=Object(y.findIndex)(e,{id:n});if(-1===r)return e;var o=i()({},e[r],{methodIds:M.b});return[].concat(j()(e.slice(0,r)),[o],j()(e.slice(r+1)))}),a()(Mn,B.xb,function(e,t){var n=t.zoneId,r=t.data;if(!Object(y.isArray)(e))return e;var o=Object(y.findIndex)(e,{id:n});if(-1===o)return e;var a=i()({},e[o],{methodIds:r.map(function(e){return e.id})});return[].concat(j()(e.slice(0,o)),[a],j()(e.slice(o+1)))}),a()(Mn,B.Sb,function(e,t){var n=t.data,r=t.originatingAction.zone;if(n=An(n),!Object(y.isArray)(e))return e;if("number"!==typeof r.id)return[].concat(j()(e),[i()({},n,{methodIds:[]})]);var o=Object(y.findIndex)(e,{id:r.id});return-1===o?e:[].concat(j()(e.slice(0,o)),[i()({},n,{methodIds:e[o].methodIds})],j()(e.slice(o+1)))}),a()(Mn,B.jb,function(e,t){var n=t.originatingAction.zone;if(!Object(y.isArray)(e))return e;var r=Object(y.findIndex)(e,{id:n.id});return-1===r?e:[].concat(j()(e.slice(0,r)),j()(e.slice(r+1)))}),a()(Mn,B.Pb,function(e,t){var n=t.data,r=t.originatingAction.zoneId;if(!Object(y.isArray)(e))return e;var o=Object(y.findIndex)(e,{id:r});return-1===o?e:-1!==e[o].methodIds.indexOf(n.id)?e:[].concat(j()(e.slice(0,o)),[i()({},e[o],{methodIds:[].concat(j()(e[o].methodIds),[n.id])})],j()(e.slice(o+1)))}),a()(Mn,B.Eb,function(e,t){var n=t.originatingAction,r=n.zoneId,o=n.methodId;if(!Object(y.isArray)(e))return e;var a=Object(y.findIndex)(e,{id:r});if(-1===a)return e;var c=e[a].methodIds.indexOf(o);return-1===c?e:[].concat(j()(e.slice(0,a)),[i()({},e[a],{methodIds:[].concat(j()(e[a].methodIds.slice(0,c)),j()(e[a].methodIds.slice(c+1)))})],j()(e.slice(a+1)))}),a()(Mn,B.eb,function(){return M.b}),a()(Mn,B.fb,function(e,t){return t.data.map(An)}),Mn)),kn={};kn[ge.Wb]=function(e,t){var n=t.instanceId;return i()({},e,a()({},n,M.b))},kn[ge.Xb]=function(e,t){var n=t.instanceId;return i()({},e,a()({},n,!0))},kn[B.Pb]=function(e,t){var n=t.data;return kn[ge.Xb](e,{instanceId:n.id})};var Ln=Object(U.b)({},kn),xn={creates:[],updates:[],deletes:[],currentlyEditingId:null},Dn={};Dn[B.gb]=function(e){var t={index:(e.creates||[]).length};return Dn[B.Qb](e,{id:t})},Dn[B.hb]=function(e){return Dn[B.ib](i()({},e,{currentlyEditingChanges:{}}))},Dn[B.ib]=function(e){var t=e.currentlyEditingChanges,n=e.currentlyEditingId;if(null===n)return e;if(Object(y.isEmpty)(Object(y.omit)(t,"methods","locations"))&&Object(y.every)(t.methods,y.isEmpty)&&(!t.locations||t.locations.pristine))return i()({},e,{currentlyEditingId:null});var r=pe({id:n}),o=!1,c=e[r].map(function(e){return Object(y.isEqual)(n,e.id)?(o=!0,i()({},e,t,{methods:Te(e.methods,t.methods)})):e});return o||c.push(i()({id:n},t)),i()({},e,a()({currentlyEditingId:null},r,c))},Dn[B.kb]=function(e,t){var n=t.name;return null===e.currentlyEditingId?e:i()({},e,{currentlyEditingChanges:i()({},e.currentlyEditingChanges,{name:n})})},Dn[B.Qb]=function(e,t){var n=t.id;return i()({},e,{currentlyEditingId:n,currentlyEditingChanges:{methods:Se,locations:Q}})},Dn[B.Rb]=function(e,t){var n=t.id,r=i()({},e,{currentlyEditingId:null}),o=pe({id:n});return"updates"===o&&(r.deletes=[].concat(j()(e.deletes),[{id:n}])),r[o]=Object(y.reject)(e[o],{id:n}),r},Dn[B.Sb]=function(e,t){var n=t.data;return t.originatingAction.zone.id!==e.currentlyEditingId?e:i()({},e,{currentlyEditingId:n.id,currentlyEditingChanges:Object(y.pick)(e.currentlyEditingChanges,"locations","methods")})},Dn[B.jb]=function(e,t){return t.originatingAction.zone.id!==e.currentlyEditingId?e:i()({},e,{currentlyEditingId:null})},Dn[B.vb]=function(e,t){return t.originatingAction.zoneId!==e.currentlyEditingId?e:i()({},e,{currentlyEditingChanges:i()({},e.currentlyEditingChanges,{locations:Q})})};var Wn,Vn=Object(U.b)(xn,Dn),Hn=function(e,t){var n=Vn(e,t);if(null!==n.currentlyEditingId){var r=function(e,t){if(je[t.type])return Re(e,t);var n=t.methodId,r=t.methodType;if(n&&r&&ye[r]){var o=e.currentlyEditingChanges,a=ye[r](o,t);if(a!==o)return i()({},e,{currentlyEditingChanges:a})}return e}(n.currentlyEditingChanges.methods,t),o=function(e,t){var n=$(e,t);return e.temporaryChanges&&n.temporaryChanges&&e.temporaryChanges!==n.temporaryChanges&&(n.temporaryChanges.pristine=!1),n}(n.currentlyEditingChanges.locations,t);return i()({},n,{currentlyEditingChanges:i()({},n.currentlyEditingChanges,{methods:r,locations:o})})}return n},Gn=n(592),Un=n(612),Bn=function(e){return function(t,n){if(!fn(n(),e)&&!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return M.b===ln(e,t)}(n(),e))return t({type:B.cb,siteId:e})}},Fn=Object(U.b)(null,(Wn={},a()(Wn,ge.Tb,function(){return M.b}),a()(Wn,ge.Ub,function(e,t){return t.data}),Wn)),zn=Object(U.d)("methodId",Fn),qn=n(632),Kn=n(116),Zn={};Zn[B.cb]=function(){return M.b},Zn[B.db]=function(e,t){return t.data};var Qn=Object(U.b)({},Zn),Yn=n(609),$n=n(635),Jn=n(639),Xn=a()({},B.cb,[Object(Yn.a)({fetch:function(e){var t=e.siteId;return Object($n.a)(t,e).get("products/shipping_classes")},onSuccess:function(e,t){var n=e.siteId,r=t.data;return function(e){e(function(e,t){return{type:B.db,siteId:e,data:t}}(n,r))}},onError:function(e,t){return function(t){t(function(e,t,n){var r=e.siteId,i="query-shipping-classes-retry";return Object(Xt.a)(Object(C.translate)("Could not retrieve the shipping classes."),{id:i,button:Object(C.translate)("Try again"),onClick:function(e){e.preventDefault(),n({type:B.cb,siteId:r}),n(Object(Xt.c)(i))}})}(e,0,t))}},fromApi:Jn.a})]),er=n(610);t.default=function(e){var t=e.methodId,n=e.instanceId;return{getReducer:function(){return Object(U.a)({extensions:Object(U.a)({woocommerce:Object(U.a)({sites:Object(U.a)({1:Object(U.a)({shippingZoneMethods:Pn,shippingZones:wn,shippingZoneLocations:function(e){return e||null},shippingMethods:function(e){return e||null},shippingClasses:Qn})}),ui:Object(U.a)({shipping:Object(U.a)({1:Object(U.a)({zones:Hn})})}),woocommerceServices:Object(U.a)({1:Object(U.a)({shippingZoneMethodSettings:Ln,shippingMethodSchemas:zn})})})}),ui:function(e){return e||null},notices:Gn.a})},getInitialState:function(){return{extensions:{woocommerce:{sites:{1:{shippingMethods:[{id:t}],shippingZones:[{id:0,order:0,methodIds:[n]}],shippingZoneLocations:{0:{continent:[],country:[],state:[],postcode:[]}},shippingZoneMethods:a()({},n,{id:n,methodType:t})}},ui:{shipping:{1:{zones:i()({},xn,{currentlyEditingId:0,currentlyEditingChanges:{methods:i()({},Se,{currentlyEditingId:n,currentlyEditingChanges:{}}),locations:Q}})}}}}},ui:{selectedSiteId:1}}},getStateForPersisting:function(e){return delete e.notices,e},getInitialActions:function(){return[Object(Un.a)(0,t,n),Bn(0)]},getMiddlewares:function(){return[Tn,Object(Kn.b)(Object(er.a)(qn.a,Xn))]},getStateKey:function(){return"wcs-settings-".concat(t,"-").concat(n)},View:function(){return s.a.createElement(jn,null)}}}}}]);
|
|
dist/chunks/{ed92c4e90d7497b17194.css → 39d5dfddc1ddf32f1a81.css}
RENAMED
File without changes
|
dist/chunks/39d5dfddc1ddf32f1a81.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[147],{547:function(e,t,a){"use strict";var r=a(530),n=a.n(r),s=a(533),i=a.n(s),c=a(36),o=a.n(c),l=a(10),u=a.n(l),d=a(12),m=a.n(d),p=a(526),g=a.n(p),f=a(35),b=a(1),h=function(e){var t=e.children,a=e.required,r=e.optional,s=e.translate,c=e.className,l=i()(e,["children","required","optional","translate","className"]);return t=u.a.Children.toArray(t)||[],a&&t.push(function(e){return u.a.createElement("small",{className:"form-label__required"},e("Required"))}(s)),r&&t.push(function(e){return u.a.createElement("small",{className:"form-label__optional"},e("Optional"))}(s)),u.a.createElement("label",n()({},Object(b.omit)(l,"moment","numberFormat"),{className:g()(c,"form-label")}),t.length?t.map(function(e,t){return Object(b.isObject)(e)?o()({},e,{key:t}):e}):null)};h.propTypes={required:m.a.bool},t.a=Object(f.localize)(h)},557:function(e,t,a){"use strict";a.d(t,"a",function(){return N});var r=a(530),n=a.n(r),s=a(107),i=a.n(s),c=a(108),o=a.n(c),l=a(528),u=a.n(l),d=a(527),m=a.n(d),p=a(531),g=a.n(p),f=a(529),b=a.n(f),h=a(34),v=a.n(h),_=a(10),y=a.n(_),E=a(12),k=a.n(E),O=a(526),j=a.n(O),I=a(1),N=function(e){function t(){var e;return i()(this,t),(e=u()(this,m()(t).apply(this,arguments))).selectOnFocus=e.selectOnFocus.bind(g()(e)),e}return b()(t,e),o()(t,[{key:"focus",value:function(){this.refs.textField.focus()}},{key:"selectOnFocus",value:function(e){this.props.selectOnFocus&&e.target.select()}},{key:"render",value:function(){var e=this.props.inputRef,t=Object(I.omit)(this.props,"isError","isValid","selectOnFocus","inputRef"),a=j()("form-text-input",this.props.className,{"is-error":this.props.isError,"is-valid":this.props.isValid});return y.a.createElement("input",n()({type:"text"},t,{ref:e||"textField",className:a,onClick:this.selectOnFocus}))}}]),t}(_.PureComponent);v()(N,"propTypes",{isError:k.a.bool,isValid:k.a.bool,selectOnFocus:k.a.bool,className:k.a.string})},561:function(e,t,a){"use strict";var r=a(107),n=a.n(r),s=a(108),i=a.n(s),c=a(528),o=a.n(c),l=a(527),u=a.n(l),d=a(531),m=a.n(d),p=a(529),g=a.n(p),f=a(34),b=a.n(f),h=a(12),v=a.n(h),_=a(10),y=a.n(_),E=a(526),k=a.n(E),O=a(1),j=a(35),I=a(534),N=a.n(I),R=a(576),C=function(e){function t(){var e,a;n()(this,t);for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return a=o()(this,(e=u()(t)).call.apply(e,[this].concat(s))),b()(m()(a),"dismissTimeout",null),a}return g()(t,e),i()(t,[{key:"componentDidMount",value:function(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}},{key:"componentWillUnmount",value:function(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)}},{key:"componentDidUpdate",value:function(){clearTimeout(this.dismissTimeout),this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}},{key:"getIcon",value:function(){var e;switch(this.props.status){case"is-info":e="info";break;case"is-success":e="checkmark";break;case"is-error":case"is-warning":e="notice";break;default:e="info"}return e}},{key:"render",value:function(){var e=this.props,t=e.children,a=e.className,r=e.icon,n=e.isCompact,s=e.isLoading,i=e.onDismissClick,c=e.showDismiss,o=void 0===c?!n:c,l=e.status,u=e.text,d=e.translate,m=k()("notice",l,a,{"is-compact":n,"is-loading":s,"is-dismissable":o});return y.a.createElement("div",{className:m},y.a.createElement("span",{className:"notice__icon-wrapper"},y.a.createElement(N.a,{className:"notice__icon",icon:r||this.getIcon(),size:24})),y.a.createElement("span",{className:"notice__content"},y.a.createElement("span",{className:"notice__text"},u||t)),u?t:null,o&&y.a.createElement("span",{tabIndex:"0",className:"notice__dismiss",onClick:i},y.a.createElement(N.a,{icon:"cross",size:24}),y.a.createElement(R.a,null,d("Dismiss"))))}}]),t}(_.Component);b()(C,"defaultProps",{className:"",duration:0,icon:null,isCompact:!1,isLoading:!1,onDismissClick:O.noop,status:null,text:null}),b()(C,"propTypes",{className:v.a.string,duration:v.a.number,icon:v.a.string,isCompact:v.a.bool,isLoading:v.a.bool,onDismissClick:v.a.func,showDismiss:v.a.bool,status:v.a.oneOf(["is-error","is-info","is-success","is-warning","is-plain"]),text:v.a.oneOfType([v.a.arrayOf(v.a.oneOfType([v.a.string,v.a.node])),v.a.oneOfType([v.a.string,v.a.node])]),translate:v.a.func.isRequired}),t.a=Object(j.localize)(C)},577:function(e,t,a){"use strict";var r=a(10),n=a.n(r),s=a(12),i=a.n(s),c=a(546),o=a(547),l=a(557),u=a(550),d=a(558),m=function(e){var t=e.id,a=e.title,s=e.description,i=e.value,m=e.placeholder,p=e.updateValue,g=e.error,f=e.className,b=e.defaultValue,h=Object(r.useCallback)(function(e){return p(e.target.value,e)},[p]);return n.a.createElement(c.a,{className:f},n.a.createElement(o.a,{htmlFor:t},a),n.a.createElement(l.a,{id:t,name:t,placeholder:m,value:i,onChange:h,isError:Boolean(g),defaultValue:b}),g&&"string"===typeof g&&n.a.createElement(u.a,{text:g}),!g&&s&&n.a.createElement(d.a,null,s))};m.propTypes={id:i.a.string.isRequired,title:i.a.node,description:i.a.string,value:i.a.string,defaultValue:i.a.string,updateValue:i.a.func,error:i.a.oneOfType([i.a.string,i.a.bool]),className:i.a.string},t.a=m},580:function(e,t,a){"use strict";var r=a(530),n=a.n(r),s=a(533),i=a.n(s),c=a(107),o=a.n(c),l=a(108),u=a.n(l),d=a(528),m=a.n(d),p=a(527),g=a.n(p),f=a(531),b=a.n(f),h=a(529),v=a.n(h),_=a(34),y=a.n(_),E=a(526),k=a.n(E),O=a(35),j=a(1),I=a(10),N=a.n(I),R=a(542),C=function(e){function t(){var e,a;o()(this,t);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return a=m()(this,(e=g()(t)).call.apply(e,[this].concat(n))),y()(b()(a),"getDefaultButtonAction",function(){return a.props.isSubmitting?a.props.translate("Saving\u2026"):a.props.translate("Save Settings")}),a}return v()(t,e),u()(t,[{key:"render",value:function(){var e=this.props,t=e.children,a=e.className,r=e.isPrimary,s=i()(e,["children","className","isPrimary"]),c=k()(a,"form-button");return N.a.createElement(R.a,n()({},Object(j.omit)(s,["isSubmitting","moment","numberFormat","translate"]),{primary:r,className:c}),I.Children.count(t)?t:this.getDefaultButtonAction())}}]),t}(N.a.Component);y()(C,"defaultProps",{isSubmitting:!1,isPrimary:!0,type:"submit"}),t.a=Object(O.localize)(C)},588:function(e,t,a){"use strict";a.d(t,"a",function(){return j});var r=a(533),n=a.n(r),s=a(107),i=a.n(s),c=a(108),o=a.n(c),l=a(528),u=a.n(l),d=a(527),m=a.n(d),p=a(529),g=a.n(p),f=a(34),b=a.n(f),h=a(10),v=a.n(h),_=a(12),y=a.n(_),E=a(526),k=a.n(E),O=a(557),j=function(e){function t(){return i()(this,t),u()(this,m()(t).apply(this,arguments))}return g()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.noWrap,a=e.prefix,r=e.suffix,s=n()(e,["noWrap","prefix","suffix"]);return v.a.createElement("div",{className:k()("form-text-input-with-affixes",{"no-wrap":t})},a&&v.a.createElement("span",{className:"form-text-input-with-affixes__prefix"},a),v.a.createElement(O.a,s),r&&v.a.createElement("span",{className:"form-text-input-with-affixes__suffix"},r))}}]),t}(v.a.Component);b()(j,"displayName","FormTextInputWithAffixes"),b()(j,"propTypes",{noWrap:y.a.bool,prefix:y.a.node,suffix:y.a.node})},599:function(e,t,a){"use strict";var r=a(530),n=a.n(r),s=a(10),i=a.n(s),c=a(12),o=a.n(c),l=a(526),u=a.n(l),d=a(534),m=a.n(d),p=a(1),g=function(e){var t=e.className,a=e.disabled,r=e.checked,s=e.partialChecked,c=Object(p.omit)(e,["className","partialChecked"]);return i.a.createElement("span",{className:u()(t,"form-checkbox",{"is-disabled":a})},i.a.createElement("input",n()({},c,{type:"checkbox"})),r&&i.a.createElement(m.a,{icon:"checkmark",size:14}),!r&&s&&i.a.createElement(m.a,{icon:"minus-small",size:16}))};g.propTypes={checked:o.a.bool.isRequired,partialChecked:o.a.bool,onChange:o.a.func.isRequired,className:o.a.string},t.a=g},602:function(e,t,a){"use strict";var r=a(107),n=a.n(r),s=a(108),i=a.n(s),c=a(528),o=a.n(c),l=a(527),u=a.n(l),d=a(529),m=a.n(d),p=a(34),g=a.n(p),f=a(10),b=a.n(f),h=a(12),v=a.n(h),_=a(526),y=a.n(_),E=a(1),k=a(534),O=a.n(k),j=(a(629),function(e){function t(){return n()(this,t),o()(this,u()(t).apply(this,arguments))}return m()(t,e),i()(t,[{key:"render",value:function(){var e=y()("external-link",this.props.className,{"icon-first":!!this.props.showIconFirst},{"has-icon":!!this.props.icon}),t=Object(E.assign)({},Object(E.omit)(this.props,"icon","iconSize","showIconFirst","iconClassName"),{className:e,rel:"external"});t.target&&(t.rel=t.rel.concat(" noopener noreferrer"));var a=b.a.createElement(O.a,{className:this.props.iconClassName,icon:"external",size:this.props.iconSize});return b.a.createElement("a",t,this.props.icon&&this.props.showIconFirst&&a,this.props.children,this.props.icon&&!this.props.showIconFirst&&a)}}]),t}(f.Component));g()(j,"defaultProps",{iconSize:18,showIconFirst:!1}),g()(j,"propTypes",{className:v.a.string,href:v.a.string,onClick:v.a.func,icon:v.a.bool,iconSize:v.a.number,target:v.a.string,showIconFirst:v.a.bool,iconClassName:v.a.string}),t.a=j},615:function(e,t,a){"use strict";var r=a(530),n=a.n(r),s=a(533),i=a.n(s),c=a(10),o=a.n(c),l=a(526),u=a.n(l);t.a=function(e){var t=e.className,a=i()(e,["className"]);return o.a.createElement("input",n()({},a,{type:"checkbox",className:u()(t,"form-checkbox")}))}},629:function(e,t,a){},641:function(e,t,a){"use strict";var r=a(530),n=a.n(r),s=a(533),i=a.n(s),c=a(10),o=a.n(c),l=a(526),u=a.n(l);t.a=function(e){var t=e.className,a=i()(e,["className"]);return o.a.createElement("input",n()({},a,{type:"radio",className:u()(t,"form-radio")}))}},646:function(e,t,a){"use strict";var r=a(10),n=a.n(r),s=a(12),i=a.n(s),c=a(35),o=a(1),l=a(534),u=a.n(l),d=a(526),m=a.n(d),p=function(e){var t=e.isPlaceholder,a=e.data,r=e.dimensionUnit,s=e.prefixActions,i=(e.hasError,e.children),c=e.translate;if(t)return n.a.createElement("div",{className:"packages__packages-row placeholder"},n.a.createElement("div",{className:"packages__packages-row-icon"},n.a.createElement(u.a,{icon:"product",size:18})),n.a.createElement("div",{className:"packages__packages-row-details"},n.a.createElement("div",{className:"packages__packages-row-details-name"},n.a.createElement("span",null))),n.a.createElement("div",{className:"packages__packages-row-dimensions"},n.a.createElement("span",null)),n.a.createElement("div",{className:"packages__packages-row-actions"},i));var l,d=function(){return n.a.createElement("div",{className:"packages__packages-row-actions"},i)};return n.a.createElement("div",{className:m()("packages__packages-row",{prefixed:s})},s?d():null,n.a.createElement("div",{className:"packages__packages-row-icon"},function(e){var t=e?"mail":"product";return n.a.createElement(u.a,{icon:t,size:18})}(a.is_letter)),n.a.createElement("div",{className:"packages__packages-row-details"},n.a.createElement("div",{className:"packages__packages-row-details-name"},(l=a.name)&&""!==Object(o.trim)(l)?l:c("Untitled"))),n.a.createElement("div",{className:"packages__packages-row-dimensions"},a.inner_dimensions," ",r),s?null:d())};p.propTypes={siteId:i.a.number.isRequired,isPlaceholder:i.a.bool,data:i.a.shape({name:i.a.string,is_letter:i.a.bool,inner_dimensions:i.a.string}).isRequired,prefixActions:i.a.bool,dimensionUnit:i.a.string},t.a=Object(c.localize)(p)},647:function(e,t,a){"use strict";a.d(t,"a",function(){return n});var r=a(535);function n(e,t,a){return{type:r.L,successAction:e,failureAction:t,onlyPackages:a||!1}}},676:function(e,t,a){"use strict";var r=a(10),n=a.n(r),s=a(12),i=a.n(s),c=a(677),o=a.n(c),l=a(678),u=a.n(l),d=a(679),m=a.n(d),p={ups:o.a,usps:u.a,dhlexpress:m.a},g=function(e){var t=e.carrier,a=e.size;if(!t||!p[t.toLowerCase()])return n.a.createElement("span",null);var r="".concat(function(e){switch(e){case"small":return 24;case"big":return 40;case"medium":default:return 30}}(a),"px");return n.a.createElement("div",{style:{width:r},className:"carrier-icon"},n.a.createElement("img",{src:p[t.toLowerCase()],alt:t,className:"carrier-icon__logo"}))};g.propTypes={carrier:i.a.string.isRequired,size:i.a.number},t.a=g},677:function(e,t,a){e.exports=a.p+"images/881843a7135b8abd4794bd2d33dc8b3c.png"},678:function(e,t,a){e.exports=a.p+"images/41c6838923ebde874f7fc71db18dcae5.png"},679:function(e,t,a){e.exports=a.p+"images/224d57e46d3ace2d89e5c790bd828d32.png"},682:function(e,t,a){"use strict";var r=a(36),n=a.n(r),s=a(10),i=a.n(s),c=a(12),o=a.n(c),l=a(109),u=a(35),d=a(1),m=a(534),p=a.n(m),g=a(34),f=a.n(g),b=a(107),h=a.n(b),v=a(108),_=a.n(v),y=a(528),E=a.n(y),k=a(527),O=a.n(k),j=a(529),I=a.n(j),N=a(30),R=a(526),C=a.n(R),q=a(557),w=a(588);function x(e){return Object(d.get)(e,["currentUser","id"])}function S(e){var t=x(e);return t?function(e,t){return e.users.items[t]}(e,t):null}var P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(a){var r=S(a);return Object(d.get)(r,e,t)}};P("localeSlug"),P("localeVariant"),P("user_ip_country_code");P("date"),P("username"),P("email");P("email_verified",!1);var T=a(532),z=a(560);function D(e){var t=Object(T.a)(e);return t||1!==function(e){var t=S(e);return t?t.site_count||0:null}(e)||(t=function(e){var t=S(e);return Object(d.get)(t,"primary_blog",null)}(e)),Object(z.a)(e,t)}var A=a(539),U=function(e,t){return Object(d.get)(e,["extensions","woocommerce","sites",t,"settings","products"])},V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(T.a)(e);return Object(d.isArray)(U(e,t))},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(T.a)(e);return A.b===U(e,t)};function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(T.a)(e),a=U(e,t);return Object(d.find)(a,function(e){return"woocommerce_dimension_unit"===e.id})||{}}var W=a(562),L=a(556),B=a(535),H=function(e){return function(t,a){if(!V(a(),e)&&!M(a(),e)){var r={type:B.N,siteId:e};return t(r),Object(W.a)(e).get("settings/products").then(function(a){t({type:B.O,siteId:e,data:a})}).catch(function(a){t(Object(L.a)(e,r,a))})}}},Y=function(e){function t(){return h()(this,t),E()(this,O()(t).apply(this,arguments))}return I()(t,e),_()(t,[{key:"componentDidMount",value:function(){var e=this.props.siteId;e&&this.props.fetchSettingsProducts(e)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.siteId!==this.props.siteId&&this.props.fetchSettingsProducts(e.siteId)}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.noWrap,r=e.dimensions,n=e.onChange,s=e.translate,c=e.dimensionsUnit,o=C()("form-dimensions-input",t,{"no-wrap":a});return i.a.createElement("div",{className:o},i.a.createElement(q.a,{name:"length",placeholder:s("L",{comment:"Length placeholder for dimensions input"}),type:"number",value:r&&r.length||"",onChange:n,className:"form-dimensions-input__length"}),i.a.createElement(q.a,{name:"width",placeholder:s("W",{comment:"Width placeholder for dimensions input"}),type:"number",value:r&&r.width||"",onChange:n,className:"form-dimensions-input__width"}),i.a.createElement(w.a,{name:"height",placeholder:s("H",{comment:"Height placeholder for dimensions input"}),suffix:c,type:"number",noWrap:a,value:r&&r.height||"",onChange:n,className:"form-dimensions-input__height"}))}}]),t}(s.Component);f()(Y,"propTypes",{className:o.a.string,dimensions:o.a.shape({width:o.a.string,height:o.a.string,length:o.a.string}),dimensionsUnit:o.a.string,onChange:o.a.func.isRequired,noWrap:o.a.bool}),f()(Y,"defaultProps",{value:"",className:"",onChange:d.noop,noWrap:!1});var $=Object(l.b)(function(e,t){var a=t.dimensionsUnit,r=D(e);if(!a){var n=r&&F(e,r.ID);a=n&&n.value||"in"}return{siteId:r&&r.ID,dimensionsUnit:a}},function(e){return Object(N.b)({fetchSettingsProducts:H},e)})(Object(u.localize)(Y)),G=a(546),K=a(547),J=a(579),Q=a(550),X=/^\.\d+$/,Z=/^\d+\.$/,ee=function(e){return e=Object(d.trim)(e),X.test(e)?e="0"+e:Z.test(e)&&(e=e.slice(0,e.length-1)),e},te=/^\s*(\S+)\s*x\s*(\S+)\s*x\s*(\S+)\s*$/,ae=/^\s*(\S+)?\s*x\s*(\S+)?\s*x\s*(\S+)?\s*$/,re=function(e){return isNaN(e)?"":0>e?"":e},ne=function(e){var t="",a="",r="",n=ae.exec(e);return n&&4===n.length&&(t=re(n[1]),a=re(n[2]),r=re(n[3])),{length:t,width:a,height:r}},se=function(e){return Object(d.trim)(e)},ie=ee,ce=function(e){var t=te.exec(e);return t?[t[1],t[2],t[3]].map(ee).join(" x "):e},oe=ne,le=function(e){var t=ne(e),a=t.length,r=t.width,n=t.height;return 0<a&&0<r&&0<n},ue=function(e){var t=e.siteId,a=e.form,r=e.setModalErrors,n=e.updatePackagesField,s=e.translate,c=a.mode,o=a.modalErrors,l=a.dimensionUnit,u=a.weightUnit,m=a.packageData,p=m.name,g=m.inner_dimensions,b=m.box_weight,h=m.is_letter,v=function(e,a){r(t,Object(d.omit)(o,e)),n(t,f()({},e,a))},_=function(e){var t=e.target.name,a=e.target.value;v(t,a)},y=function(e,t){var a=t||s("Invalid value."),r=""===Object(d.trim)(m[e])?s("This field is required."):a;return o[e]?i.a.createElement(Q.a,{text:r}):null},E=function(e){n(t,{is_letter:"envelope"===e.target.value})};return i.a.createElement("div",{className:"packages__properties-group"},"add-custom"===c?i.a.createElement(G.a,null,i.a.createElement(K.a,{htmlFor:"package_type"},s("Type of package")),i.a.createElement(J.a,{id:"package_type",onChange:E,value:h?"envelope":"box"},i.a.createElement("option",{value:"box"},s("Box")),i.a.createElement("option",{value:"envelope"},s("Envelope")))):null,i.a.createElement(G.a,null,i.a.createElement(K.a,{htmlFor:"name"},s("Package name")),i.a.createElement(q.a,{id:"name",name:"name",placeholder:s("Unique package name"),value:p||"",onChange:_,isError:o.name}),y("name",s("This field must be unique"))),i.a.createElement(G.a,{className:"packages__add-package-weight-group"},i.a.createElement("div",{className:"packages__add-package-weight"},i.a.createElement(K.a,null,s("Dimensions (L x W x H)")),function(e,t,a,r){var n=oe(t),s=n.length,c=n.width,o=n.height;return i.a.createElement($,{dimensionsUnit:a,dimensions:{width:c,height:o,length:s},onChange:function(t){var a=t.target.name,n=t.target.value;r(e,["length"===a?n:s,"width"===a?n:c,"height"===a?n:o].join(" x "))}})}("inner_dimensions",g,l,v),y("inner_dimensions")),i.a.createElement("div",{className:"packages__add-package-weight"},i.a.createElement(K.a,{htmlFor:"box_weight"},s("Weight of empty package")),i.a.createElement(w.a,{id:"box_weight",name:"box_weight",placeholder:s("0.0"),value:b||"",onChange:_,isError:o.box_weight,type:"number",noWrap:!0,suffix:u}),y("box_weight"))))};ue.propTypes={siteId:o.a.number.isRequired,form:o.a.object.isRequired,updatePackagesField:o.a.func.isRequired,packageData:o.a.shape({name:o.a.string.isRequired,inner_dimensions:o.a.string.isRequired,box_weight:o.a.number.isRequired,is_user_defined:o.a.bool.isRequired,is_letter:o.a.bool.isRequired}),setModalErrors:o.a.func.isRequired};var de=Object(u.localize)(ue),me=a(114),pe=a.n(me),ge=Object(d.memoize)(function(e){return pe()(e,{greedy:!0})}),fe=function(e){return e&&""!==Object(d.trim)(e)?e:null},be=function(e,t){return e=fe(e),Object(d.some)(t,function(t){return t===e})?null:e},he=/^\d+(\.\d+)?$/,ve=function(e){return he.test(e)?Number.parseFloat(e):null},_e=function(e,t,a){var r,n=ge(a);return n(function(e,t){var a=ve(e.box_weight),r=ve(e.max_weight);a&&r&&r<=a&&(r=null);var n={name:be(e.name,t),inner_dimensions:e.inner_dimensions,outer_dimensions:fe(e.outer_dimensions),box_weight:a,max_weight:r};return Object(d.omitBy)(n,function(e){return null===e})}(e,t)),r=n.errors,Object(d.reduce)(r,function(e,t){if(t.field){var a,r=t.field.replace("data.","");Object.assign(e,(a={},f()(a,r,!0),f()(a,"any",!0),a))}return e},{})},ye=a(551),Ee=a(549),ke=a(580),Oe=function(e){var t=e.className,a=e.disabled,r=e.id,n=e.onToggle,s=e.readOnly,c=e.selectedElements,o=e.totalElements,l=c&&c===o,u=c&&c<o,d=C()("bulk-select__box",{"is-checked":l}),m=C()("bulk-select__some-checked-icon",{"is-disabled":a}),g=C()("bulk-select",t);return i.a.createElement("span",{className:g},i.a.createElement("span",{className:"bulk-select__container"},i.a.createElement("input",{id:r,type:"checkbox",className:d,onChange:function(e){s||n(!(u||l),e)},checked:l,disabled:a}),u?i.a.createElement(p.a,{className:m,icon:"minus-small",size:18}):null))};Oe.propTypes={totalElements:o.a.number.isRequired,selectedElements:o.a.number.isRequired,onToggle:o.a.func,readOnly:o.a.bool,className:o.a.string,disabled:o.a.bool};var je=Oe,Ie=a(600),Ne=a(615),Re=a(646),Ce=a(541),qe=function(e){var t=e.siteId,a=e.form,r=e.toggleAll,n=e.togglePackage,s=e.currentlyEditingPredefinedPackages,c=e.translate,o=a.dimensionUnit,l=function(e){var a="group-".concat(e.serviceId,"-").concat(e.groupId);return i.a.createElement("div",{className:"packages__group-header"},i.a.createElement("label",{htmlFor:a,onClick:function(e){return e.stopPropagation()}},i.a.createElement(je,{id:a,totalElements:e.total,selectedElements:e.selected,onToggle:function(a,n){n.stopPropagation(),r(t,e.serviceId,e.groupId,n.target.checked)},className:"packages__group-header-checkbox"}),e.title))};return i.a.createElement("div",null,function(){var e=[];return Object(d.forEach)(s,function(a,r){var s,u,d=(s=a.selected,u=a.total,s===u?c("All packages selected"):c("%(selectedCount)d package selected","%(selectedCount)d packages selected",{count:s,args:{selectedCount:s}}));e.push(i.a.createElement(Ie.a,{className:"packages__predefined-packages",key:r,header:l(a),summary:d,expandedSummary:d,clickableHeader:!0,expanded:!1,screenReaderText:c("Expand Services"),icon:"chevron-down"},function(e){return e.packages.map(function(e,a){return i.a.createElement(Re.a,{key:a,siteId:t,data:e,dimensionUnit:o,prefixActions:!0},i.a.createElement(Ne.a,{checked:e.selected,onChange:function(){return n(t,e.serviceId,e.id)}}))})}(a)))}),e}())};qe.propTypes={siteId:o.a.number.isRequired,toggleAll:o.a.func.isRequired,togglePackage:o.a.func.isRequired,form:o.a.shape({dimensionUnit:o.a.string}).isRequired};var we=Object(l.b)(function(e){return{currentlyEditingPredefinedPackages:Object(Ce.c)(e)}})(Object(u.localize)(qe)),xe=a(531),Se=a.n(xe),Pe=function(e){function t(){var e,a;h()(this,t);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return a=E()(this,(e=O()(t)).call.apply(e,[this].concat(n))),f()(Se()(a),"handleKeyEvent",function(e){switch(e.keyCode){case 13:case 32:e.preventDefault(),document.activeElement.click()}}),a}return I()(t,e),_()(t,[{key:"render",value:function(){var e=C()({"segmented-control__item":!0,"is-selected":this.props.selected}),t=C()("segmented-control__link",f()({},"item-index-".concat(this.props.index),null!=this.props.index));return i.a.createElement("li",{className:e},i.a.createElement("a",{href:this.props.path,className:t,onClick:this.props.onClick,title:this.props.title,"data-e2e-value":this.props.value,role:"radio",tabIndex:0,"aria-checked":this.props.selected,onKeyDown:this.handleKeyEvent},i.a.createElement("span",{className:"segmented-control__text"},this.props.children)))}}]),t}(i.a.Component);f()(Pe,"propTypes",{children:o.a.node.isRequired,path:o.a.string,selected:o.a.bool,title:o.a.string,value:o.a.string,onClick:o.a.func,index:o.a.number}),f()(Pe,"defaultProps",{selected:!1});var Te=Pe,ze=function(e){function t(){var e,a;h()(this,t);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return a=E()(this,(e=O()(t)).call.apply(e,[this].concat(n))),f()(Se()(a),"state",{selected:a.props.initialSelected||a.props.options[0].value}),a}return I()(t,e),_()(t,[{key:"renderOptions",value:function(){var e=this;return this.props.options.map(function(t,a){return i.a.createElement(Te,{index:a,key:a,onClick:function(){e.setState({selected:t.value}),e.props.onSelect&&e.props.onSelect(t)},path:t.path,selected:e.state.selected===t.value,value:t.value},t.label)})}},{key:"render",value:function(){var e={"is-compact":this.props.compact,"is-primary":this.props.primary};return i.a.createElement("ul",{className:C()("segmented-control",e,this.props.className),style:this.props.style,role:"radiogroup"},this.renderOptions())}}]),t}(i.a.Component);f()(ze,"propTypes",{className:o.a.string,compact:o.a.bool,initialSelected:o.a.string,onSelect:o.a.func,options:o.a.arrayOf(o.a.shape({value:o.a.string.isRequired,label:o.a.string.isRequired,path:o.a.string})).isRequired,style:o.a.object});var De=a(647),Ae=a(548),Ue=a(555),Ve=function(e){var t,a=e.siteId,r=e.form,n=e.predefinedPackagesSummary,s=e.setModalErrors,c=e.savePackage,o=e.savePredefinedPackages,l=e.dismissModal,u=e.removePackage,m=e.setAddMode,g=e.updatePackagesField,f=e.translate,b=r.showModal,h=r.mode,v=r.packages,_=r.packageSchema,y=r.predefinedSchema,E=r.packageData,k=E.index,O=v.custom,j="edit"===h,I="add-custom"===h,N="add-predefined"===h,R=function(){var t={duration:5e3};e.createWcsShippingSaveActionList(function(){return"function"===typeof e.onSaveSuccess&&"name"in E&&e.onSaveSuccess(E.name),e.successNotice(f("Your shipping packages have been saved."),t)},function(){return e.errorNotice(f("Unable to save your shipping packages. Please try again."),t)},!0)},C=function(){l(a)},q=f(j?"Edit package":"Add a package"),w=I||N,x=I||j,S=N;t=I||N&&0===n.removed?f("Add package","Add packages",{count:I?1:n.added}):f("Done");var P=[i.a.createElement(ke.a,{onClick:function(){if(N)return o(a),void(e.persistOnSave&&R());var t="number"===typeof E.index?O[E.index].name:null,r=Object(d.concat)(Object(d.difference)(O.map(function(e){return e.name}),[t]),Object(d.flatten)(Object(d.map)(y,function(e){return Object(d.map)(e,function(e){return e.definitions})})),["individual"]),n=Object.assign({},E,{name:se(E.name),inner_dimensions:ce(E.inner_dimensions),outer_dimensions:ce(E.outer_dimensions),box_weight:ie(E.box_weight),max_weight:0}),i=_e(n,r,_);if(le(n.inner_dimensions)||(i.any=!0,i.inner_dimensions=!0),i.any)return g(a,n),void s(a,i);c(a,n),e.persistOnSave&&R()}},t),i.a.createElement(ke.a,{onClick:C,isPrimary:!1},f("Cancel"))];return j&&P.unshift({action:"delete",label:i.a.createElement("span",null,f("{{icon/}} Delete this package",{components:{icon:i.a.createElement(p.a,{icon:"trash"})}})),onClick:function(){return u(a,k)},additionalClassNames:"packages__delete is-scary is-borderless"}),i.a.createElement(ye.a,{isVisible:b,additionalClassNames:"packages__add-edit-dialog woocommerce wcc-root",onClose:C,buttons:P},i.a.createElement(Ee.a,{className:"packages__add-edit-title"},q),w&&i.a.createElement(ze,{primary:!0,className:"packages__mode-select",initialSelected:h,onSelect:function(e){m(a,e.value)},options:[{value:"add-custom",label:"Custom package"},{value:"add-predefined",label:"Service package"}]}),x&&i.a.createElement(de,e),S&&i.a.createElement(we,e))};Ve.propTypes={siteId:o.a.number.isRequired,dismissModal:o.a.func.isRequired,form:o.a.object.isRequired,updatePackagesField:o.a.func.isRequired,savePackage:o.a.func.isRequired,packageData:o.a.shape({index:o.a.number.isRequired}),setModalErrors:o.a.func.isRequired,removePackage:o.a.func.isRequired,setAddMode:o.a.func.isRequired};t.a=Object(l.b)(function(e){return{predefinedPackagesSummary:Object(Ce.f)(e)}},function(e){return Object(N.b)(n()({createWcsShippingSaveActionList:De.a,errorNotice:Ae.a,successNotice:Ae.d},Ue),e)})(Object(u.localize)(Ve))},779:function(e,t,a){},780:function(e,t,a){},789:function(e,t,a){"use strict";a.r(t);var r=a(10),n=a.n(r),s=a(12),i=a.n(s),c=a(109),o=a(30),l=a(35),u=a.n(l),d=a(534),m=a.n(d),p=a(551),g=a(36),f=a.n(g),b=a(530),h=a.n(b),v=a(1),_=a(34),y=a.n(_),E=a(577),k=a(561),O=a(580),j=a(601),I=a(552),N=a(526),R=a.n(N),C=a(547),q=a(641),w=function(e){var t=e.values,a=e.originalValues,r=e.countryNames,s=e.stateNames,i=e.expandStateName,c=void 0!==i&&i;a=a||{};var o=t.state,l=t.country,u="";o&&(u=(c&&s||{})[o]||o);var d=r[l]||l,m=function(e){var r=t[e];if(!r)return"";var s=a[e],i=s&&s.toLowerCase()!==r.toLowerCase(),c=r;switch(e){case"state":c=u;break;case"country":c=d}return n.a.createElement("span",{key:e,className:i?"highlight":""},c)},p=m("state"),g=Object(v.filter)([m("city"),p?", ":"",p," ",m("postcode")]);return n.a.createElement("div",{className:"address-step__summary"},n.a.createElement("p",null,m("name")),n.a.createElement("p",null,m("address")," ",m("address_2")),n.a.createElement("p",null,g),n.a.createElement("p",null,m("country")))},x=function(e){return n.a.createElement(C.a,{className:R()("address-step__suggestion",{"is-selected":e.checked})},n.a.createElement(q.a,Object(v.omit)(e,"children")),e.children)},S=function(e){var t=e.values,a=e.normalized,r=e.selectNormalized,s=e.selectNormalizedAddress,i=e.editAddress,c=e.confirmAddressSuggestion,o=e.countryNames,l=e.translate,u=function(e){return function(){return s(e)}};return n.a.createElement("div",null,n.a.createElement(k.a,{className:"error-notice",status:"is-info",showDismiss:!1},l("We have slightly modified the address entered. If correct, please use the suggested address to ensure accurate delivery.")),n.a.createElement("div",{className:"address-step__suggestion-container"},n.a.createElement(x,{checked:!r,onChange:u(!1)},n.a.createElement("span",{className:"address-step__suggestion-title"},l("Address entered")),n.a.createElement(w,{values:t,countryNames:o})),n.a.createElement(x,{checked:r,onChange:u(!0)},n.a.createElement("span",{className:"address-step__suggestion-title"},l("Suggested address")),n.a.createElement(w,{values:a,originalValues:t,countryNames:o}))),n.a.createElement("div",{className:"address-step__actions"},n.a.createElement(O.a,{type:"button",onClick:c},l("Use selected address")),n.a.createElement(O.a,{type:"button",onClick:i,borderless:!0},l("Edit address"))))};S.propTypes={values:i.a.object.isRequired,normalized:i.a.object,selectNormalized:i.a.bool.isRequired,selectNormalizedAddress:i.a.func.isRequired,confirmAddressSuggestion:i.a.func.isRequired,editAddress:i.a.func.isRequired,countryNames:i.a.object.isRequired};var P=Object(l.localize)(S),T=a(773),z=a.n(T),D=a(602),A=a(574),U=function(e){var t=e.values,a=e.countryNames,r=e.editUnverifiableAddress,s=e.confirmAddressSuggestion,i=e.translate,c=e.fieldErrors,o=A.a.includes(t.country)?z.a.format({scheme:"https",hostname:"tools.usps.com",pathname:"/zip-code-lookup.htm",query:{mode:"byAddress",companyName:t.company,address1:t.address,address2:t.address_2,city:t.city,state:"US"===t.country?t.state:t.country,zip:t.postcode}}):null,l=Object(v.invokeMap)([t.address+" "+t.address_2,t.city,t.state+" "+t.postcode],"trim").join(", "),u={scheme:"https",hostname:"www.google.com",pathname:"/maps/place/"+encodeURIComponent(l)},d=z.a.format(u);return n.a.createElement("div",null,function(){var e=function(){if(c.general)return c.general;for(var e in c)return c[e];return!1}();return e?n.a.createElement(k.a,{status:"is-error",showDismiss:!1},i("We were unable to automatically verify the address \u2014 %(error)s.",{args:{error:e}})):n.a.createElement(k.a,{status:"is-error",showDismiss:!1},i("We were unable to automatically verify the address."))}(),n.a.createElement("div",{className:"address-step__unverifiable-container"},n.a.createElement("div",{className:"address-step__unverifiable-info"},n.a.createElement("span",{className:"address-step__unverifiable-title"},i("Address entered")),n.a.createElement(w,{values:t,countryNames:a})),n.a.createElement("div",{className:"address-step__unverifiable-info"},n.a.createElement("p",null,i("Automatic verification failed for this address. It may still be a valid address \u2014 use the tools below to manually verify.")),o&&n.a.createElement(D.a,{icon:!0,href:o,target:"_blank"},i("Verify with USPS")),n.a.createElement(D.a,{icon:!0,href:d,target:"_blank"},i("View on Google Maps")))),n.a.createElement("div",{className:"address-step__actions"},n.a.createElement(O.a,{type:"button",onClick:r},i("Edit address")),n.a.createElement(O.a,{type:"button",onClick:s,borderless:!0},i("Use address as entered"))))};U.propTypes={values:i.a.object.isRequired,confirmAddressSuggestion:i.a.func.isRequired,editUnverifiableAddress:i.a.func.isRequired,countryNames:i.a.object.isRequired};var V=Object(l.localize)(U),M=a(603),F=a(540),W=a(537),L=a(564),B=function(e){var t=e.siteId,a=e.orderId,r=e.values,s=e.isNormalized,i=e.normalized,c=e.selectNormalized,o=e.normalizationInProgress,l=e.allowChangeCountry,u=e.group,d=e.countryNames,m=e.stateNames,p=e.errors,g=e.isUsable,b=e.translate,h=Object(v.isObject)(p)?p:{},_=function(){return e.confirmAddressSuggestion(a,t,u)};if(s&&!h.phone){if(i&&!Object(v.isEqual)(i,r)){return n.a.createElement(P,{values:r,normalized:i,selectNormalized:c,selectNormalizedAddress:function(r){return e.selectNormalizedAddress(a,t,u,r)},confirmAddressSuggestion:_,editAddress:function(){return e.editAddress(a,t,u)},countryNames:d})}if(0<Object(v.size)(h)){return n.a.createElement(V,{values:r,confirmAddressSuggestion:_,editUnverifiableAddress:function(){return e.editUnverifiableAddress(a,t,u)},countryNames:d,fieldErrors:h})}}var y=h.general&&1===Object(v.size)(h),N=function(e){return u+"_"+e},R=function(e){return r[e]?Object(M.a)(r[e]):""},C=function(r){return function(n){return e.updateAddressValue(a,t,u,r,n)}};return n.a.createElement("div",null,n.a.createElement(E.a,{id:N("name"),title:b("Name"),value:R("name"),updateValue:C("name"),error:h.name}),n.a.createElement("div",{className:"address-step__company-phone"},n.a.createElement(E.a,{id:N("company"),title:b("Company"),value:R("company"),updateValue:C("company"),className:"address-step__company",error:h.company}),n.a.createElement(E.a,{id:N("phone"),title:b("Phone"),value:R("phone"),updateValue:C("phone"),className:"address-step__phone",error:h.phone})),y&&n.a.createElement(k.a,{status:"is-error",showDismiss:!1},b("%(message)s. Please modify the address and try again.",{args:{message:h.general}})),n.a.createElement(E.a,{id:N("address"),title:b("Address"),value:R("address"),updateValue:C("address"),className:"address-step__address-1",error:h.address||y}),n.a.createElement(E.a,{id:N("address_2"),value:R("address_2"),updateValue:C("address_2"),error:h.address_2||y}),n.a.createElement("div",{className:"address-step__city-state-postal-code"},n.a.createElement(E.a,{id:N("city"),title:b("City"),value:R("city"),updateValue:C("city"),className:"address-step__city",error:h.city||y}),m?n.a.createElement(j.a,{id:N("state"),title:b("State"),value:R("state"),valuesMap:f()({"":e.translate("Select one\u2026")},m),updateValue:C("state"),className:"address-step__state",error:h.state||y}):n.a.createElement(E.a,{id:N("state"),title:b("State"),value:R("state"),updateValue:C("state"),className:"address-step__state",error:h.state||y}),n.a.createElement(E.a,{id:N("postcode"),title:b("ZIP/Postal code"),value:R("postcode"),updateValue:C("postcode"),className:"address-step__postal-code",error:h.postcode||y})),n.a.createElement(j.a,{id:N("country"),title:b("Country"),value:R("country"),disabled:!l,valuesMap:d,updateValue:C("country"),error:h.country||y}),n.a.createElement("div",{className:"address-step__actions"},n.a.createElement(O.a,{type:"button",disabled:Object(I.a)(p)||o,onClick:function(){return e.submitAddressForNormalization(a,t,u)}},b("Verify address")),n.a.createElement(O.a,{type:"button",disabled:!g,onClick:_,borderless:!0},b("Use address as entered"))))};B.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,values:i.a.object.isRequired,isNormalized:i.a.bool.isRequired,normalized:i.a.object,selectNormalized:i.a.bool.isRequired,allowChangeCountry:i.a.bool.isRequired,errors:i.a.oneOfType([i.a.object,i.a.bool]).isRequired,group:i.a.string.isRequired,countryNames:i.a.object.isRequired,stateNames:i.a.object};var H=Object(c.b)(function(e,t){var a=t.group,r=t.orderId,n=t.siteId,s=Object(W.t)(e,r,n),i=Object(W.j)(e,r,n).form[a],c="origin"===a?Object(W.i)(e,n):Object(W.c)(e,n);return c[i.values.country]||(c=f()(y()({},i.values.country,Object(L.g)(e,i.values.country,n)),c)),f()({},i,{errors:s&&Object(W.f)(e,r,n)[a],isUsable:s&&Object(W.o)(e,r,a,n),countryNames:c,stateNames:Object(W.k)(e,i.values.country,n)})},function(e){return Object(o.b)({selectNormalizedAddress:F.C,confirmAddressSuggestion:F.g,editAddress:F.m,editUnverifiableAddress:F.n,updateAddressValue:F.V,submitAddressForNormalization:F.T},e)})(Object(l.localize)(B)),Y=a(107),$=a.n(Y),G=a(108),K=a.n(G),J=a(528),Q=a.n(J),X=a(527),Z=a.n(X),ee=a(529),te=a.n(ee),ae=(a(779),function(e){function t(){return $()(this,t),Q()(this,Z()(t).apply(this,arguments))}return te()(t,e),K()(t,[{key:"render",value:function(){var e=R()("spinner",this.props.className),t={width:this.props.size,height:this.props.size,fontSize:this.props.size};return n.a.createElement("div",{className:e},n.a.createElement("div",{className:"spinner__outer",style:t},n.a.createElement("div",{className:"spinner__inner"})))}}]),t}(r.PureComponent));y()(ae,"propTypes",{className:i.a.string,size:i.a.number}),y()(ae,"defaultProps",{size:20});var re=a(600),ne=function(e){var t=e.isSuccess,a=e.isWarning,r=e.isError,s=e.isProgress,i=e.title,c=e.summary,o=e.children,l=e.expanded,u=e.toggleStep,d=e.translate,p=R()({"is-success":t,"is-warning":a,"is-error":r});c=n.a.createElement("span",{className:p},n.a.createElement("span",null,c),n.a.createElement("div",{className:"label-purchase-modal__step-status"},s?n.a.createElement(ae,{size:18}):n.a.createElement(m.a,{icon:t?"checkmark-circle":a?"notice-outline":r?"notice-outline":"",className:p,size:18})));var g=n.a.createElement("div",null,n.a.createElement("div",{className:"label-purchase-modal__step-title"},i));return n.a.createElement(re.a,{header:g,summary:c,expandedSummary:c,clickableHeader:!0,compact:!0,screenReaderText:d("Expand"),expanded:l,onClick:u},o)};ne.propTypes={isSuccess:i.a.bool,isWarning:i.a.bool,isError:i.a.bool,isProgress:i.a.bool,title:i.a.string.isRequired,summary:i.a.string,expanded:i.a.bool};var se=Object(l.localize)(ne),ie=a(563),ce=function(e,t,a,r,n,s){var i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=e.isNormalized,o=e.normalizationInProgress,l=e.normalized;if(o)return n("Validating address\u2026");if(Object(I.a)(r)||c&&!l)return r&&r.general||n("Invalid address");if(!c)return n("You've edited the address, please revalidate it for accurate rates");var u=Object(ie.a)(e),d=u.city,m=u.postcode,p=u.state,g=u.country,f=d+", ";p&&(f+=(i?Object(L.h)(t,g,p,a):p)+"\xa0 ");return f+="US"===g?m.split("-")[0]:m,s&&(f+=", "+Object(L.g)(t,g,a)),f},oe=function(e){var t=e.normalizationInProgress,a=e.errors,r=e.isNormalized,n=e.values,s=e.normalized;return t?{isProgress:!0}:Object(I.a)(a)||r&&!s||!r?{isError:!0}:r?Object(v.isEqual)(n,s)?{isSuccess:!0}:{isWarning:!0}:{}},le=function(e){return n.a.createElement(se,h()({title:e.title,summary:e.summary,expanded:e.expanded,toggleStep:function(){return e.toggleStep(e.orderId,e.siteId,e.type)}},e.normalizationStatus),n.a.createElement(H,{group:e.type,siteId:e.siteId,orderId:e.orderId}))};le.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,type:i.a.string.isRequired,title:i.a.string.isRequired,summary:i.a.string.isRequired,expanded:i.a.bool,normalizationStatus:i.a.object.isRequired,toggleStep:i.a.func.isRequired};var ue=Object(l.localize)(Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=t.type,s=t.translate,i=Object(W.t)(e,a,r),c=Object(W.j)(e,a,r),o=c.form[n],l=i&&Object(W.f)(e,a,r)[n],u="destination"===n&&c.form.origin.values.country!==o.values.country;return{errors:l,form:o,expanded:o.expanded,normalizationStatus:oe(f()({},o,{errors:l})),summary:ce(o,e,r,l,s,u)}},function(e){return Object(o.b)({toggleStep:F.U},e)})(le)),de=a(542),me=function(e,t,a){var r=0;return Object(v.mapValues)(e,function(e){if("individual"===e.box_id)return e.items[0].name;r++;var n=t[e.box_id],s=n&&n.is_letter,i=!(!a||!n)&&n.name;return s?i?Object(l.translate)("Envelope %(packageNum)d: %(packageName)s",{args:{packageNum:r,packageName:i}}):Object(l.translate)("Envelope %(packageNum)d",{args:{packageNum:r}}):i?Object(l.translate)("Package %(packageNum)d: %(packageName)s",{args:{packageNum:r,packageName:i}}):Object(l.translate)("Package %(packageNum)d",{args:{packageNum:r}})})},pe=a(541),ge=function(e){var t,a,r=e.orderId,s=e.siteId,i=e.selected,c=e.all,o=e.errors,l=e.packageId,u=e.translate,d=function(t,a,i){var c=0<Object.keys(o[t]||{}).length;return n.a.createElement("div",{className:"packages-step__list-item",key:t},n.a.createElement(de.a,{borderless:!0,className:R()("packages-step__list-package",{"is-selected":l===t}),onClick:function(){return e.openPackage(r,s,t)}},n.a.createElement("span",{className:"packages-step__list-package-name"},a),function(e,t){return e?n.a.createElement(m.a,{icon:"notice-outline",className:"is-error",size:18}):void 0===t?null:n.a.createElement("span",{className:"packages-step__list-package-count"},t)}(c,i)))},p=me(i,c,!1),g=[],f=[];return Object.keys(i).forEach(function(e){var t=i[e];"individual"===t.box_id?f.push(d(e,t.items[0].name)):g.push(d(e,p[e],t.items.length))}),(g.length||f.length)&&g.unshift((t="boxed-header",a=u("Packages to be Shipped"),n.a.createElement("div",{className:"packages-step__list-item packages-step__list-header",key:t},a))),n.a.createElement("div",{className:"packages-step__list"},g,f)};ge.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,selected:i.a.object.isRequired,all:i.a.object.isRequired,packageId:i.a.string.isRequired,errors:i.a.object,openPackage:i.a.func.isRequired};var fe=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.t)(e,a,r),s=Object(W.j)(e,a,r);return{errors:n&&Object(W.f)(e,a,r).packages,packageId:s.openedPackageId,selected:s.form.packages.selected,all:Object(pe.a)(e,r)}},function(e){return Object(o.b)({openPackage:F.w},e)})(Object(l.localize)(ge)),be=a(550),he=a(553),ve=a(588),_e=a(560),ye=function(e){var t=e.orderId,a=e.siteId,r=e.item,s=e.itemIndex,i=e.translate,c=function(){return e.openItemMove(t,a,s)},o=r.url?n.a.createElement("a",{href:r.url,target:"_blank",rel:"noopener noreferrer"},r.name):r.name;return n.a.createElement("div",{key:s,className:"packages-step__item"},n.a.createElement("div",{className:"packages-step__item-name"},n.a.createElement("span",null,o),"attributes"in r?n.a.createElement("p",null,r.attributes):""),n.a.createElement("div",{className:"packages-step__item-weight"},"weight"in r?n.a.createElement("p",null,r.weight):""),n.a.createElement("div",{className:"packages-step__item-qty"},"quantity"in r?n.a.createElement("p",null,r.quantity):""),n.a.createElement("div",{className:"packages-step__item-move"},n.a.createElement("a",{href:"#",onClick:c},i("Move"))))};ye.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,item:i.a.object.isRequired,itemIndex:i.a.number.isRequired,openItemMove:i.a.func.isRequired};var Ee=Object(c.b)(function(e,t){var a=t.siteId;return{site:Object(_e.a)(e,a)}},function(e){return Object(o.b)({openItemMove:F.v},e)})(Object(l.localize)(ye)),ke=a(579),Oe=a(688),je=a(682),Ie=a(555),Ne=function(e,t){return[e.length,e.width,e.height].map(function(e){return"".concat(e," ").concat(t)}).join(" x ")},Re=function(e){var t=e.siteId,a=e.orderId,r=e.packageId,s=e.pckg,i=e.dimensionUnit,c=e.packageGroups,o=e.translate,l=e.pckgErrors,u=e.isIndividualPackage,d=function(e){var t=Object(Oe.a)(e),a=e.id||e.name;return n.a.createElement("option",{value:a,key:a},e.name," - ",Ne(t,i))};if(!r)return null;if(u){var p=R()({"is-error":l.dimensions});return n.a.createElement("div",null,n.a.createElement("div",{className:"packages-step__package-items-header"},n.a.createElement(he.a,null,o("Individually Shipped Item"))),n.a.createElement("span",{className:"packages-step__package-item-description"},o("Item Dimensions")," -"," "),n.a.createElement("span",{className:p},Ne(s,i)),l.dimensions&&n.a.createElement(be.a,{text:l.dimensions}))}var g=Object(v.reduce)(c,function(e,t){return e+t.definitions.length},0);return n.a.createElement("div",null,n.a.createElement("div",{className:"packages-step__package-items-header packages-step__package-details-header"},n.a.createElement(he.a,null,o("Package details")),0!==g?n.a.createElement("a",{href:"#",onClick:function(){return e.addPackage(t)}},o("Add package")):null),0===g?n.a.createElement("div",{className:"packages-step__no-packages"},n.a.createElement(m.a,{icon:"product",size:18}),n.a.createElement("a",{href:"#",onClick:function(){return e.addPackage(t)}},o("Select a package type"))):n.a.createElement("div",{className:"packages-step__with-packages"},n.a.createElement(ke.a,{onChange:function(n){e.setPackageType(a,t,r,n.target.value)},value:s.box_id,isError:l.box_id||l.dimensions},n.a.createElement("option",{value:"not_selected",key:"not_selected"},o("Please select a package"))," ",Object(v.map)(c,function(e,t){return Object(v.isEmpty)(e.definitions)?null:n.a.createElement("optgroup",{label:e.title,key:t},Object(v.map)(e.definitions,d))}))),n.a.createElement(je.a,h()({persistOnSave:!0},e,{onSaveSuccess:function(n){e.setPackageType(a,t,r,n)}})))};Re.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,packageId:i.a.string.isRequired,pckgErrors:i.a.object.isRequired,pckg:i.a.object.isRequired};var Ce=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.t)(e,a,r),s=Object(W.j)(e,a,r),i=n?s.storeOptions:{},c=Object(pe.e)(e,r)||{};return{dimensionUnit:i.dimension_unit,packageGroups:Object(pe.d)(e,a,r),form:c}},function(e){return Object(o.b)({setPackageType:F.P,addPackage:Ie.addPackage},e)})(Object(l.localize)(Re)),qe=a(544),we=function(e){var t=e.siteId,a=e.orderId,r=e.packageId,s=e.selected,i=e.weightUnit,c=e.errors,o=e.translate,l=e.userMeta,u=c[r]||{};if(!r)return null;var d=s[r];"not_selected"===d.box_id&&l.last_box_id&&e.setPackageType(a,t,r,l.last_box_id);var m="individual"===d.box_id,p=function(e,s){return n.a.createElement(Ee,{siteId:t,orderId:a,key:s,item:e,itemIndex:s,packageId:r,showRemove:!0,isIndividualPackage:m})},g=function(){return e.openAddItem(a,t)},f=function(){return m?null:n.a.createElement(de.a,{className:"packages-step__add-item-btn",compact:!0,onClick:g},o("Add items"))},b=isNaN(d.weight)?"":d.weight;return n.a.createElement("div",{className:"packages-step__package"},n.a.createElement("div",null,n.a.createElement("div",{className:"packages-step__package-items-header-name"},n.a.createElement(he.a,null,o("Items to fulfill"))),n.a.createElement("div",{className:"packages-step__package-items-header-weight"},n.a.createElement(he.a,null,o("Weight"))),n.a.createElement("div",{className:"packages-step__package-items-header-qty"},n.a.createElement(he.a,null,o("QTY"))),n.a.createElement("div",{className:"packages-step__package-items-header-move"}),function(){var e=Object(v.some)(s,function(e,t){return r!==t&&e.items.length});if(!d.items.length)return n.a.createElement("div",{className:"packages-step__add-item-row"},n.a.createElement("div",{className:"packages-step__no-items-message"},o("There are no items in this package."),e?f():null));var t=d.items.map(p);return e&&t.push(n.a.createElement("div",{key:t.length,className:"packages-step__add-item-row"},f())),t}()),n.a.createElement(Ce,{siteId:t,orderId:a,isIndividualPackage:m,pckgErrors:u,pckg:d,packageId:r,lastBoxId:l.last_box_id}),n.a.createElement("div",{className:"packages-step__package-weight"},n.a.createElement(C.a,{htmlFor:"weight_".concat(r)},o("Total Weight (with package)")),n.a.createElement(ve.a,{id:"weight_".concat(r),placeholder:o("0"),value:b,onChange:function(n){e.updatePackageWeight(a,t,r,n.target.value)},isError:Boolean(u.weight),type:"number",noWrap:!0,suffix:i}),u.weight&&n.a.createElement(be.a,{text:u.weight})))};we.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,packageId:i.a.string.isRequired,selected:i.a.object.isRequired,updatePackageWeight:i.a.func.isRequired,dimensionUnit:i.a.string.isRequired,weightUnit:i.a.string.isRequired,errors:i.a.object.isRequired,openAddItem:i.a.func.isRequired,userMeta:i.a.object.isRequired};var xe=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.t)(e,a,r),s=Object(W.j)(e,a,r),i=n?s.storeOptions:{},c=n&&Object(W.f)(e,a,r).packages,o=n?Object(qe.i)(e,r):{};return{siteId:r,errors:c,packageId:s.openedPackageId,selected:s.form.packages.selected,dimensionUnit:i.dimension_unit,weightUnit:i.weight_unit,userMeta:o}},function(e){return Object(o.b)(f()({updatePackageWeight:F.W,openAddItem:F.t,setPackageType:F.P},Ie),e)})(Object(l.localize)(we)),Se=a(549),Pe=function(e){e.site;var t=e.siteId,a=e.orderId,r=e.showItemMoveDialog,s=e.movedItemIndex,i=e.targetPackageId,c=e.openedPackageId,o=e.selected,l=e.all,u=e.translate;if(-1===s||!r)return null;var d,m,g=function(r,s){return n.a.createElement(C.a,{key:r,className:"packages-step__dialog-package-option"},n.a.createElement(q.a,{checked:r===i,onChange:function(){return e.setTargetPackage(a,t,r)}}),s)},f=o[c],b=f.items[s],h=(d=b.product_id,"post.php?post=".concat(d,"&action=edit")),v=n.a.createElement("a",{href:h,target:"_blank",rel:"noopener noreferrer"},b.name),_=me(o,l,!0);m=""===c?u("{{itemLink/}} is currently saved for a later shipment.",{components:{itemLink:v}}):"individual"===f.box_id?u("{{itemLink/}} is currently shipped in its original packaging.",{components:{itemLink:v}}):u("{{itemLink/}} is currently in {{pckg/}}.",{components:{itemLink:v,pckg:n.a.createElement("span",{className:"packages-step__dialog-package-name"},_[c])}});var y=function(){return e.closeItemMove(a,t)},E=[{action:"cancel",label:u("Cancel"),onClick:y},{action:"move",label:u("Submit"),isPrimary:!0,disabled:i===c,onClick:function(){return e.moveItem(a,t,c,s,i)}}];return n.a.createElement(p.a,{isVisible:r,isFullScreen:!1,onClickOutside:y,onClose:y,buttons:E,additionalClassNames:"wcc-root woocommerce packages-step__dialog"},n.a.createElement(Se.a,null,u("Move item")),n.a.createElement("div",{className:"packages-step__dialog-body"},n.a.createElement("p",null,m),n.a.createElement("p",null,u("Where would you like to move it?")),function(){var e=[];return Object.keys(o).forEach(function(t){var a=o[t];t!==c&&"individual"!==a.box_id&&e.push(g(t,_[t]))}),e}(),g("new",u("Add to a New Package")),f&&"individual"===f.box_id?null:g("individual",u("Ship in original packaging"))))};Pe.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,showItemMoveDialog:i.a.bool.isRequired,movedItemIndex:i.a.number.isRequired,targetPackageId:i.a.string,openedPackageId:i.a.string.isRequired,selected:i.a.object.isRequired,all:i.a.object.isRequired,moveItem:i.a.func.isRequired};var Te=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.j)(e,a,r);return{site:Object(_e.a)(e,r),showItemMoveDialog:n.showItemMoveDialog||!1,movedItemIndex:isNaN(n.movedItemIndex)?-1:n.movedItemIndex,targetPackageId:n.targetPackageId,openedPackageId:n.openedPackageId,selected:n.form.packages.selected,all:Object(pe.a)(e,r)}},function(e){return Object(o.b)({closeItemMove:F.d,setTargetPackage:F.S,moveItem:F.s},e)})(Object(l.localize)(Pe)),ze=a(615),De=function(e){var t=e.siteId,a=e.orderId,r=e.showAddItemDialog,s=e.addedItems,i=e.openedPackageId,c=e.selected,o=e.all,l=e.translate;if(!r)return null;var u=me(c,o,!0),d=function(e){return n.a.createElement("span",{className:"packages-step__dialog-package-name"},u[e])},m=[];Object.keys(c).forEach(function(r){if(r!==i){var o=0;c[r].items.forEach(function(i){m.push(function(r,i,c){var o=u[r]?l("%(item)s from {{pckg/}}",{args:{item:c.name},components:{pckg:d(r)}}):c;return n.a.createElement(C.a,{key:"".concat(r,"-").concat(i),className:"packages-step__dialog-package-option"},n.a.createElement(ze.a,{checked:Object(v.includes)(s[r],i),onChange:function(n){return e.setAddedItem(a,t,r,i,n.target.checked)}}),n.a.createElement("span",null,o))}(r,o,i)),o++})}});var g=function(){return e.closeAddItem(a,t)},f=[{action:"close",label:l("Close"),onClick:g},{action:"add",label:l("Add"),isPrimary:!0,disabled:!Object(v.some)(s,v.size),onClick:function(){return e.addItems(a,t,i)}}];return n.a.createElement(p.a,{isVisible:r,isFullScreen:!1,onClickOutside:g,onClose:g,buttons:f,additionalClassNames:"wcc-root woocommerce packages-step__dialog"},n.a.createElement(Se.a,null,l("Add item")),n.a.createElement("div",{className:"packages-step__dialog-body"},n.a.createElement("p",null,l("Which items would you like to add to {{pckg/}}?",{components:{pckg:d(i)}})),m))};De.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,showAddItemDialog:i.a.bool.isRequired,addedItems:i.a.object,openedPackageId:i.a.string.isRequired,selected:i.a.object.isRequired,all:i.a.object.isRequired,closeAddItem:i.a.func.isRequired,setAddedItem:i.a.func.isRequired,addItems:i.a.func.isRequired};var Ae=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.j)(e,a,r);return{showAddItemDialog:Boolean(n.showAddItemDialog),addedItems:n.addedItems,openedPackageId:n.openedPackageId,selected:n.form.packages.selected,all:Object(pe.a)(e,r)}},function(e){return Object(o.b)({closeAddItem:F.b,setAddedItem:F.E,addItems:F.a},e)})(Object(l.localize)(De)),Ue=function(e){var t=e.disabled,a=e.onClick,r=e.children;return n.a.createElement("div",{className:"step-confirmation-button"},n.a.createElement(O.a,{type:"button",onClick:a,disabled:Boolean(t),isPrimary:!0},r))};Ue.propTypes={disabled:i.a.bool,onClick:i.a.func.isRequired};var Ve=Ue,Me={g:0,oz:1,lbs:3,kg:3},Fe=function(e){var t=e.siteId,a=e.orderId,r=e.selected,s=e.weightUnit,i=e.errors,c=e.expanded,o=e.translate,u=Object.keys(r),d=u.reduce(function(e,t){return e+r[t].items.length},0),m=u.reduce(function(e,t){return e+r[t].weight},0),p=0<u.length;return n.a.createElement(se,h()({title:o("Packaging")},function(){if(!p)return{isError:!0,summary:o("No packages selected")};var e=Object(v.find)(i,function(e){return!Object(v.isEmpty)(e)});if(e)return{isError:!0,summary:e[Object.keys(e)[0]]};var t=Object(l.numberFormat)(m,{decimals:Me[s]});return{isSuccess:!0,summary:1===u.length&&1===d?o("1 item in 1 package: %(weight)s %(unit)s total",{args:{weight:t,unit:s}}):1===u.length?o("%(itemsCount)d items in 1 package: %(weight)s %(unit)s total",{args:{itemsCount:d,weight:t,unit:s}}):o("%(itemsCount)d items in %(packageCount)d packages: %(weight)s %(unit)s total",{args:{itemsCount:d,packageCount:u.length,weight:t,unit:s}})}}(),{expanded:c,toggleStep:function(){return e.toggleStep(a,t,"packages")}}),n.a.createElement("div",{className:"packages-step__contents"},n.a.createElement(fe,{siteId:e.siteId,orderId:e.orderId}),n.a.createElement(xe,{siteId:e.siteId,orderId:e.orderId})),n.a.createElement(Ve,{disabled:Object(I.a)(i)||!u.length,onClick:function(){return e.confirmPackages(a,t)}},o("Use these packages")),n.a.createElement(Te,{siteId:e.siteId,orderId:e.orderId}),n.a.createElement(Ae,{siteId:e.siteId,orderId:e.orderId}))};Fe.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,selected:i.a.object.isRequired,weightUnit:i.a.string.isRequired,errors:i.a.object.isRequired,expanded:i.a.bool};var We=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.t)(e,a,r),s=Object(W.j)(e,a,r),i=n?s.storeOptions:{};return{errors:n&&Object(W.f)(e,a,r).packages,weightUnit:i.weight_unit,expanded:s.form.packages.expanded,selected:s.form.packages.selected}},function(e){return Object(o.b)({toggleStep:F.U,confirmPackages:F.i},e)})(Object(l.localize)(Fe)),Le=a(546),Be=function(e){var t=e.id,a=e.title,r=e.value,s=e.placeholder,i=e.updateValue,c=e.error,o=e.className,l=e.weightUnit;return n.a.createElement(Le.a,{className:o},n.a.createElement(C.a,{htmlFor:t},a),n.a.createElement(ve.a,{noWrap:!0,suffix:l,id:t,name:t,type:"number",placeholder:s||"0.0",value:r,onChange:function(e){return i(e.target.value)},isError:Boolean(c)}),c&&"string"===typeof c&&n.a.createElement(be.a,{text:c}))};Be.propTypes={weightUnit:i.a.string.isRequired,id:i.a.string.isRequired,title:i.a.node,value:i.a.oneOfType([i.a.string,i.a.number]).isRequired,placeholder:i.a.string,updateValue:i.a.func,error:i.a.oneOfType([i.a.string,i.a.bool]),className:i.a.string};var He=Be,Ye=a(533),$e=a.n(Ye);function Ge(e,t,a){if(!e)return null;if(!a)return e;var r=Object(v.get)(Object(v.find)(a,function(t){return t.code===e}),"label",e);return n.a.createElement("span",{className:"form-currency-input__affix"},r,n.a.createElement(m.a,{icon:"chevron-down",size:18,className:"form-currency-input__select-icon"}),n.a.createElement("select",{className:"form-currency-input__select",value:e,onChange:t},a.map(function(e){var t=e.code,a=e.label,r=void 0===a?t:a;return n.a.createElement("option",{key:t,value:t},r)})))}function Ke(e){var t=e.className,a=e.currencySymbolPrefix,r=e.currencySymbolSuffix,s=e.onCurrencyChange,i=e.currencyList,c=e.placeholder,o=void 0===c?"0.00":c,l=$e()(e,["className","currencySymbolPrefix","currencySymbolSuffix","onCurrencyChange","currencyList","placeholder"]),u=R()("form-currency-input",t),d=Ge(a,s,i),m=Ge(r,s,i);return n.a.createElement(ve.a,h()({},l,{type:"number",className:u,prefix:d,suffix:m,placeholder:o}))}var Je=i.a.shape({code:i.a.string.isRequired,label:i.a.string});Ke.propTypes={currencySymbolPrefix:i.a.oneOfType([i.a.string,i.a.object]),currencySymbolSuffix:i.a.oneOfType([i.a.string,i.a.object]),onCurrencyChange:i.a.func,currencyList:i.a.arrayOf(Je)};var Qe=Ke,Xe=function(e){var t=e.id,a=e.title,r=e.value,s=e.placeholder,i=e.updateValue,c=e.error,o=e.className;return n.a.createElement(Le.a,{className:o},n.a.createElement(C.a,{htmlFor:t},a),n.a.createElement(Qe,{id:t,name:t,currencySymbolPrefix:"$",placeholder:s||"0.00",value:r,onChange:function(e){return i(e.target.value)},isError:Boolean(c)}),c&&"string"===typeof c&&n.a.createElement(be.a,{text:c}))};Xe.propTypes={id:i.a.string.isRequired,title:i.a.node,value:i.a.oneOfType([i.a.string,i.a.number]).isRequired,placeholder:i.a.string,updateValue:i.a.func,error:i.a.oneOfType([i.a.string,i.a.bool]),className:i.a.string};var Ze=Xe,et=a(788),tt=Object(l.localize)(function(e){var t=e.translate;return n.a.createElement("span",null,t("HS Tariff number")," (",n.a.createElement(D.a,{icon:!0,href:"https://docs.woocommerce.com/document/woocommerce-shipping-and-tax/woocommerce-shipping/#section-29",target:"_blank"},t("more info")),")")}),at=Object(l.localize)(function(e){var t=e.translate;return n.a.createElement("span",null,t("Origin country"),n.a.createElement(et.a,{text:t("Country where the product was manufactured or assembled")},n.a.createElement("span",null,n.a.createElement(m.a,{icon:"info-outline",size:18}))))}),rt=function(e){var t=e.translate,a=e.weightUnit;return n.a.createElement("div",{className:"customs-step__item-rows-header"},n.a.createElement("span",{className:"customs-step__item-description-column"},t("Description")),n.a.createElement("span",{className:"customs-step__item-code-column"},n.a.createElement(tt,null)),n.a.createElement("span",{className:"customs-step__item-weight-column"},t("Weight (%s per unit)",{args:[a]})),n.a.createElement("span",{className:"customs-step__item-value-column"},t("Value ($ per unit)")),n.a.createElement("span",{className:"customs-step__item-country-column"},n.a.createElement(at,null)))};rt.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,weightUnit:i.a.string.isRequired};var nt=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId;return{weightUnit:Object(W.j)(e,a,r).storeOptions.weight_unit}})(Object(l.localize)(rt)),st=function(e){var t=e.errors,a=e.packageId,r=e.productId,s=e.translate,i=e.description,c=e.defaultDescription,o=e.weight,l=e.value,u=e.tariffNumber,d=e.originCountry,m=e.countryNames,p=e.weightUnit;return n.a.createElement("div",{className:"customs-step__item-row"},n.a.createElement(E.a,{id:a+"_"+r+"_description",className:"customs-step__item-description-column",title:s("Description"),value:i,placeholder:c,updateValue:e.setCustomsItemDescription,error:t.description}),n.a.createElement(E.a,{id:a+"_"+r+"_tariffNumber",className:"customs-step__item-code-column",title:n.a.createElement(tt,null),placeholder:s("Optional"),value:u,updateValue:e.setCustomsItemTariffNumber,error:t.tariffNumber}),n.a.createElement(He,{weightUnit:p,id:a+"_"+r+"_weight",className:"customs-step__item-weight-column",title:s("Weight (per unit)"),value:o,updateValue:e.setCustomsItemWeight,error:t.weight}),n.a.createElement(Ze,{id:a+"_"+r+"_value",className:"customs-step__item-value-column",title:s("Value (per unit)"),value:l,updateValue:e.setCustomsItemValue,error:t.value}),n.a.createElement(j.a,{id:a+"_"+r+"_originCountry",className:"customs-step__item-country-column",title:n.a.createElement(at,null),value:d,updateValue:e.setCustomsItemOriginCountry,valuesMap:m}))};st.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,packageId:i.a.string.isRequired,productId:i.a.number.isRequired,description:i.a.string.isRequired,defaultDescription:i.a.string.isRequired,tariffNumber:i.a.string.isRequired,weight:i.a.oneOfType([i.a.string,i.a.number]).isRequired,value:i.a.oneOfType([i.a.string,i.a.number]).isRequired,originCountry:i.a.string.isRequired,errors:i.a.object,countryNames:i.a.object.isRequired,setCustomsItemDescription:i.a.func.isRequired,setCustomsItemTariffNumber:i.a.func.isRequired,setCustomsItemWeight:i.a.func.isRequired,setCustomsItemValue:i.a.func.isRequired,setCustomsItemOriginCountry:i.a.func.isRequired};var it=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=t.productId,s=Object(W.t)(e,a,r),i=Object(W.j)(e,a,r),c=i.form.customs.items[n];return{description:c.description,defaultDescription:c.defaultDescription,tariffNumber:c.tariffNumber||"",weight:c.weight,value:c.value,originCountry:c.originCountry,errors:s?Object(W.f)(e,a,r).customs.items[n]:{},countryNames:Object(L.d)(e,r),weightUnit:i.storeOptions.weight_unit}},function(e,t){var a=t.orderId,r=t.siteId,n=t.productId;return{setCustomsItemDescription:function(t){return e(Object(F.H)(a,r,n,t))},setCustomsItemTariffNumber:function(t){return e(Object(F.J)(a,r,n,t))},setCustomsItemWeight:function(t){return e(Object(F.L)(a,r,n,t))},setCustomsItemValue:function(t){return e(Object(F.K)(a,r,n,t))},setCustomsItemOriginCountry:function(t){return e(Object(F.I)(a,r,n,t))}}})(Object(l.localize)(st)),ct=a(599),ot=function(e){var t=e.siteId,a=e.orderId,r=e.errors,s=e.packageId,i=e.translate,c=e.contentsType,o=e.contentsExplanation,l=e.restrictionType,u=e.restrictionComments,d=e.abandonOnNonDelivery,m=e.itn,p=e.items;return n.a.createElement("div",{className:"customs-step__package"},n.a.createElement(C.a,{htmlFor:s+"_abandonOnNonDelivery",className:"customs-step__abandon-on-non-delivery"},n.a.createElement(ct.a,{id:s+"_abandonOnNonDelivery",checked:!d,onChange:function(){return e.setAbandonOnNonDelivery(!d)}}),n.a.createElement("span",null,i("Return to sender if package is unable to be delivered"))),n.a.createElement("div",{className:"customs-step__restrictions-row"},n.a.createElement("div",{className:"customs-step__contents-type"},n.a.createElement(j.a,{id:s+"_contentsType",title:i("Contents type"),value:c||"merchandise",updateValue:e.setContentsType,valuesMap:{merchandise:i("Merchandise"),documents:i("Documents"),gift:i("Gift"),sample:i("Sample"),other:i("Other\u2026")}}),"other"===c&&n.a.createElement(E.a,{id:s+"_contentsExplanation",title:i("Details"),value:o||"",updateValue:e.setContentsExplanation,error:r.contentsExplanation})),n.a.createElement("div",{className:"customs-step__restriction-type"},n.a.createElement(j.a,{id:s+"_restrictionType",title:i("Restriction type"),value:l||"none",updateValue:e.setRestrictionType,valuesMap:{none:i("None"),quarantine:i("Quarantine"),sanitary_phytosanitary_inspection:i("Sanitary / Phytosanitary inspection"),other:i("Other\u2026")}}),"other"===l&&n.a.createElement(E.a,{id:s+"_restrictionComments",title:i("Details"),value:u||"",updateValue:e.setRestrictionExplanation,error:r.restrictionComments}))),n.a.createElement(E.a,{id:s+"_itn",title:n.a.createElement("span",null,i("ITN")," (",n.a.createElement(D.a,{icon:!0,href:"https://pe.usps.com/text/imm/immc5_010.htm",target:"_blank"},i("more info")),")"),value:m||"",updateValue:e.setITN,error:r.itn}),n.a.createElement("div",{className:"customs-step__item-rows"},n.a.createElement(nt,{siteId:t,orderId:a}),Object(v.uniq)(Object(v.map)(p,"product_id")).map(function(e){return n.a.createElement(it,{key:e,productId:e,packageId:s,siteId:t,orderId:a})})))};ot.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,packageId:i.a.string.isRequired,errors:i.a.object,contentsType:i.a.oneOf(["merchandise","documents","gift","sample","other"]),contentsExplanation:i.a.string,restrictionType:i.a.oneOf(["none","quarantine","sanitary_phytosanitary_inspection","other"]),restrictionComments:i.a.string,abandonOnNonDelivery:i.a.bool,itn:i.a.string,items:i.a.arrayOf(i.a.shape({product_id:i.a.number.isRequired})).isRequired,setContentsType:i.a.func.isRequired,setContentsExplanation:i.a.func.isRequired,setRestrictionType:i.a.func.isRequired,setRestrictionExplanation:i.a.func.isRequired,setAbandonOnNonDelivery:i.a.func.isRequired,setITN:i.a.func.isRequired};var lt=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=t.packageId,s=Object(W.t)(e,a,r),i=Object(W.j)(e,a,r).form.packages.selected[n];return{contentsType:i.contentsType,contentsExplanation:i.contentsExplanation,restrictionType:i.restrictionType,restrictionComments:i.restrictionComments,abandonOnNonDelivery:i.abandonOnNonDelivery,itn:i.itn,items:i.items,errors:s?Object(W.f)(e,a,r).customs.packages[n]:{}}},function(e,t){var a=t.orderId,r=t.siteId,n=t.packageId;return{setContentsType:function(t){return e(Object(F.G)(a,r,n,t))},setContentsExplanation:function(t){return e(Object(F.F)(a,r,n,t))},setRestrictionType:function(t){return e(Object(F.R)(a,r,n,t))},setRestrictionExplanation:function(t){return e(Object(F.Q)(a,r,n,t))},setAbandonOnNonDelivery:function(t){return e(Object(F.D)(a,r,n,t))},setITN:function(t){return e(Object(F.O)(a,r,n,t))}}})(Object(l.localize)(ot)),ut=function(e){var t=e.siteId,a=e.orderId,r=e.errors,s=e.expanded,i=e.translate,c=e.isSubmitted,o=e.packageDescriptions,l=Object(I.a)(r)?i("Customs information incomplete"):i("Customs information valid");return n.a.createElement(se,{title:i("Customs"),summary:c?l:"",expanded:s,toggleStep:e.toggleStep,isSuccess:c&&!Object(I.a)(r),isError:c&&Object(I.a)(r)},Object.keys(o).map(function(e,r){return n.a.createElement("div",{className:"customs-step__package-container",key:e},r?n.a.createElement("hr",null):null,n.a.createElement("p",{className:"customs-step__package-name"},o[e]),n.a.createElement(lt,{packageId:e,siteId:t,orderId:a}))}),n.a.createElement(Ve,{disabled:Object(I.a)(r),onClick:e.confirmCustoms},i("Save customs form")))};ut.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,packageDescriptions:i.a.objectOf(i.a.string).isRequired,expanded:i.a.bool,isSubmitted:i.a.bool.isRequired,errors:i.a.object,toggleStep:i.a.func.isRequired,confirmCustoms:i.a.func.isRequired};var dt=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.t)(e,a,r),s=Object(W.j)(e,a,r),i=s.form.packages.selected;return{packageDescriptions:me(i,Object(pe.a)(e,r),!0),expanded:s.form.customs.expanded,isSubmitted:Object(W.q)(e,a,r),errors:n?Object(W.f)(e,a,r).customs:{}}},function(e,t){var a=t.orderId,r=t.siteId;return{toggleStep:function(){return e(Object(F.U)(a,r,"customs"))},confirmCustoms:function(){return e(Object(F.h)(a,r))}}})(Object(l.localize)(ut)),mt=a(583),pt=a.n(mt),gt=a(531),ft=a.n(gt),bt=a(784),ht=a(785),vt=a(676),_t=function(e){function t(){var e;return $()(this,t),e=Q()(this,Z()(t).call(this)),y()(ft()(e),"onSignatureChecked",function(t,a,r){var n=e.props,s=n.rateObject,i=s.service_id,c=s.carrier_id,o=n.updateValue,l=t?{id:a,value:r.value,netCost:r.netCost}:null;e.setState({selectedSignature:l}),o(i,c,t?r.value:0)}),e.state={signatureOption:!1},e}return te()(t,e),K()(t,[{key:"renderServices",value:function(e,t,a){var r=[];if(a.tracking)switch(e){case"usps":r.push(Object(l.translate)("Includes USPS tracking"));break;default:r.push(Object(l.translate)("Includes tracking"))}if(a.insurance){var n=Number(a.insurance);isNaN(n)?r.push(Object(l.translate)("Insurance (%s)",{args:[a.insurance]})):n>0&&r.push(Object(l.translate)("Insurance (up to %s)",{args:[pt()(n,"USD")]}))}return t.filter(function(e){return 0===e.netCost}).length>0&&r.push(Object(l.translate)("Signature required")),a.free_pickup&&r.push(Object(l.translate)("Eligible for free pickup")),r.join(", ")}},{key:"renderSignatureOptions",value:function(e){var t=this;return e.map(function(e,a){return n.a.createElement(bt.a,{key:a,name:"signature_option_".concat(a),label:e.label,checked:!!t.state.selectedSignature&&t.state.selectedSignature.id===a,onChange:function(r){return t.onSignatureChecked(r,a,e)}})})}},{key:"render",value:function(){var e=this.props,t=e.rateObject,a=t.title,r=t.service_id,s=t.carrier_id,i=t.rate,c=t.delivery_days,o=t.delivery_date_guaranteed,u=t.delivery_date,d=t.tracking,p=t.insurance,g=t.free_pickup,f=e.isSelected,b=e.updateValue,h=e.signatureRates,_=this.state.selectedSignature,y=Object(v.values)(Object(v.mapValues)(h,function(e,t){var a=0===e.optionNetCost?Object(l.translate)("free"):Object(l.translate)("+%s",{args:[pt()(e.optionNetCost,"USD")]});return{label:Object(l.translate)("%(label)s (%(price)s)",{args:{label:e.label,price:a}}),value:t,netCost:e.optionNetCost}})),E="";o&&u?E=Object(l.moment)(u).format("LL").split(",")[0]:c&&(E=Object(l.translate)("%(delivery_days)s business day","%(delivery_days)s business days",{count:c,args:{delivery_days:c}}));var k=_?i+_.netCost:i;return n.a.createElement("div",{className:"rates-step__shipping-rate-container"},n.a.createElement(ht.a,{className:"rates-step__shipping-rate-radio-control",selected:f?r:null,options:[{label:"",value:r}],onChange:function(){b(r,s,!!_&&_.value)}}),n.a.createElement("div",{className:"rates-step__shipping-rate-information"},n.a.createElement(vt.a,{carrier:s,size:30}),n.a.createElement("div",{className:"rates-step__shipping-rate-description"},n.a.createElement("div",{className:"rates-step__shipping-rate-description-title"},a),n.a.createElement("div",{className:"rates-step__shipping-rate-description-details"},this.renderServices(s,y,{tracking:d,insurance:p,free_pickup:g}),f&&y.length>1?this.renderSignatureOptions(y):null)),n.a.createElement("div",{className:"rates-step__shipping-rate-details"},n.a.createElement("div",{className:"rates-step__shipping-rate-rate"},"ups"===s?n.a.createElement(et.a,{position:"top left",text:Object(l.translate)("This rate is provided by your connected UPS account")},n.a.createElement("div",{className:"rates-step__shipping-rate-rate-tooltip"},n.a.createElement(m.a,{icon:"help-outline",size:18}))):null,pt()(k,"USD")),n.a.createElement("div",{className:"rates-step__shipping-rate-delivery-date"},E))))}}]),t}(r.Component);_t.propTypes={rateObject:i.a.shape({rate_id:i.a.string.isRequired,title:i.a.string.isRequired,service_id:i.a.string.isRequired,carrier_id:i.a.string.isRequired,rate:i.a.number.isRequired,delivery_days:i.a.number,delivery_date_guaranteed:i.a.bool,delivery_date:i.a.string,tracking:i.a.bool,insurance:i.a.oneOfType([i.a.string,i.a.number]),free_pickup:i.a.bool}).isRequired,signatureRates:i.a.object.isRequired};var yt=_t,Et={signature_required:u.a.translate("Signature required"),adult_signature_required:u.a.translate("Adult signature required")},kt=function(e,t,a){var r=function(e,t,a){var r=Object(v.find)(a[e].default.rates,function(e){return t===e.service_id});return"undefined"!==typeof r?r.rate:0}(e,t,a);return Object(v.pickBy)(Object(v.mapValues)(a[e],function(e,a){var n=function(e,t,a,r){var n=Object(v.find)(a,function(t){return e===t.service_id});return"undefined"===typeof n?null:t in Et?n.rate===r&&"Express"!==e?null:n:null}(t,a,e.rates,r);return null!==n?{rate:n,label:Et[a],optionNetCost:n.rate-r}:null}),function(e){return null!==e})},Ot=function(e){var t=e.id,a=e.selectedRates,r=e.availableRates,s=e.selectedPackages,i=e.allPackages,c=e.updateRate,o=e.errors,l=e.shouldShowRateNotice,u=e.translate,d=me(s,i,!0),m=1===Object.keys(s).length;return n.a.createElement("div",null,l&&function(e){return n.a.createElement(k.a,{className:"rates-step__notice",icon:"info-outline",showDismiss:!1,text:e("The service and rate chosen by the customer at checkout is not available. Please choose another.")})}(u),Object.values(Object(v.mapValues)(s,function(e,s){if(!(s in r))return null;var i=a[s]||"",l=r[s].default.rates,p=(o[s]||[]).filter(function(e,t){return o[s].indexOf(e)===t}),g=function(e,t,a){return c(s,e,t,a)};return n.a.createElement("div",{key:s,className:"rates-step__package-container"},m?null:n.a.createElement("div",{className:"rates-step__package-container-rates-header"},u("Choose rate: %(pckg)s",{args:{pckg:d[s]}})),Object.values(Object(v.mapValues)(l,function(e){var a=e.service_id;return n.a.createElement(yt,{id:t+"_"+s,key:t+"_"+s+"_"+a,rateObject:e,signatureRates:kt(s,a,r),updateValue:g,isSelected:a===i.serviceId})})),p.map(function(e,t){return n.a.createElement(be.a,{type:"server-error",key:t,text:e})}))})))};Ot.propTypes={id:i.a.string.isRequired,selectedRates:i.a.object.isRequired,availableRates:i.a.object.isRequired,selectedPackages:i.a.object.isRequired,allPackages:i.a.object.isRequired,updateRate:i.a.func.isRequired,errors:i.a.object.isRequired};var jt=Object(l.localize)(Ot);function It(e){var t=Object(v.get)(e,"shipping_lines",[]);return Object(v.reduce)(t,function(e,t){return e+parseFloat(t.total)},0)}function Nt(e){return Object(v.get)(e,"shipping_lines[0].method_title",!1)}var Rt=a(608),Ct=function(e){var t=e.siteId,a=e.orderId,r=e.form,s=e.allPackages,i=e.values,c=e.available,o=e.errors,l=e.ratesTotal,u=e.translate,d=function(e,t,a,r,n){if(!r)return n("Unsaved changes made to packages");if(Object(v.some)(Object(v.mapValues)(t,function(e){return Object(v.isEmpty)(e.default.rates)})))return n("No rates found");if(!a)return"";var s=Object.keys(e);if(1===s.length){var i=s[0],c=e[i],o=t[i].default.rates,l=Object(v.find)(o,["service_id",c]);return l?n("%(serviceName)s: %(rate)s",{args:{serviceName:l.title,rate:pt()(l.rate,"USD")}}):""}return n("Total rate: %(total)s",{args:{total:pt()(a,"USD")}})}(i,c,l,r.packages.saved,u),p=function(r,n,s,i){return e.updateRate(a,t,r,n,s,i)};return Object(v.forEach)(r.packages.selected,function(e,t){if(""===i[t]&&!Object(v.isEmpty)(c)&&t in c&&1===c[t].default.rates.length){var a=c[t].default.rates[0].service_id;p(t,a,!1)}}),n.a.createElement(se,h()({title:u("Shipping rates"),summary:d,expanded:!Object(v.isEmpty)(c),toggleStep:function(){return e.toggleStep(a,t,"rates")}},function(e){var t=e.retrievalInProgress,a=e.errors,r=e.available,n=e.form;return t?{isProgress:!0}:Object(I.a)(a)?{isError:!0}:Object(v.isEmpty)(r)?{}:n.packages.saved?{isSuccess:!0}:{isWarning:!0}}(e)),!Object(v.isEmpty)(c)&&function(e){var t=e.shippingMethod,a=e.shippingCost,r=e.translate,s=document.createElement("div");s.innerHTML=t;var i,c=s.textContent;if(t)return i=0<a?r("Customer paid a {{shippingMethod/}} of {{shippingCost/}} for shipping",{components:{shippingMethod:n.a.createElement("span",null,c),shippingCost:n.a.createElement("span",{className:"rates-step__shipping-info-cost"},pt()(a,"USD"))}}):r("Your customer selected {{shippingMethod/}}",{components:{shippingMethod:n.a.createElement("span",{className:"rates-step__shipping-info-method"},c)}}),n.a.createElement("div",{className:"rates-step__shipping-info"},n.a.createElement(m.a,{icon:"info-outline"}),n.a.createElement("div",null,i))}(e),n.a.createElement(jt,{id:"rates",orderId:a,siteId:t,showRateNotice:!1,selectedPackages:r.packages.selected,allPackages:s,selectedRates:i,availableRates:c,updateRate:p,errors:o}))};Ct.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,form:i.a.object.isRequired,values:i.a.object.isRequired,available:i.a.object.isRequired,errors:i.a.object.isRequired,toggleStep:i.a.func.isRequired,updateRate:i.a.func.isRequired};var qt=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.t)(e,a,r),s=Object(W.j)(e,a,r),i=Object(W.l)(e,a,r),c=Object(Rt.a)(e,a,r);return f()({},s.form.rates,{form:s.form,errors:n&&Object(W.f)(e,a,r).rates,ratesTotal:i?i.total:0,allPackages:Object(pe.a)(e,r),shippingCost:It(c),shippingMethod:Nt(c)})},function(e){return Object(o.b)({toggleStep:F.U,updateRate:F.Y},e)})(Object(l.localize)(Ct)),wt=a(605),xt=function(e){function t(){var e,a;$()(this,t);for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return a=Q()(this,(e=Z()(t)).call.apply(e,[this].concat(s))),y()(ft()(a),"renderDiscount",function(e){var t=a.props.translate,r=t("WooCommerce Shipping gives you access to USPS Commercial Pricing, which is discounted over Retail rates.");return n.a.createElement("div",{className:"label-purchase-modal__price-item-help"},n.a.createElement(et.a,{className:"label-purchase-modal__price-item-tooltip is-dialog-visible",position:"top center",text:r},n.a.createElement("div",{className:"label-purchase-modal__discount"},t("You save %s with WooCommerce Shipping",{args:[pt()(e,"USD")]}),n.a.createElement(m.a,{icon:"help-outline",size:18}))))}),y()(ft()(a),"renderRow",function(e,t,a,r){var s=R()("label-purchase-modal__price-item",{"label-purchase-modal__price-item-total":r});return n.a.createElement("div",{key:a,className:s},n.a.createElement("div",{className:"label-purchase-modal__price-item-name"},e),n.a.createElement("div",{className:"label-purchase-modal__price-item-amount"},pt()(t,"USD")))}),a}return te()(t,e),K()(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.priceBreakdown,s=t.translate;if(!a)return null;var i=a.prices,c=a.discount,o=a.total;return n.a.createElement("div",{className:"label-purchase-modal__shipping-summary-section"},n.a.createElement("hr",null),i.map(function(t,a){var i=s("Package %(index)s \u2013 %(title)s",{args:{index:a+1,title:t.carrierTitle}});return n.a.createElement(r.Fragment,{key:a},e.renderRow(i,t.rateWithDiscount,a),"ups"===t.carrierId?n.a.createElement("div",{className:"label-purchase-modal__price-item-carrier-account-notice"}," ",s("Your UPS account will be charged")):n.a.createElement("div",null),t.addons.map(function(t,r){return n.a.createElement("div",{key:"addons-"+a,className:"label-purchase-modal__price-item-addons"},e.renderRow(t.title,t.rate,"addon-"+r))}))}),this.renderRow(s("Total"),o,"total",!0),0<c&&this.renderDiscount(c))}}]),t}(r.Component);xt.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired};var St=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId;return{priceBreakdown:Object(W.l)(e,a,r)}})(Object(l.localize)(xt)),Pt=function(e){var t=e.translate,a=e.normalizationStatus,r=e.form,s=e.orderId,i=e.siteId,c=r.origin,o=r.rates,l=Object.keys(o.values).length;return n.a.createElement("div",{className:"label-purchase-modal__shipping-summary-section"},n.a.createElement("div",{className:"label-purchase-modal__shipping-summary-header"},t("Shipping summary")),n.a.createElement("div",{className:"label-purchase-modal__shipping-summary-info"},a.isSuccess?n.a.createElement("div",{className:"label-purchase-modal__shipping-summary-street"},n.a.createElement("div",null,t("Shipping from")),n.a.createElement("div",null,c.values.address,n.a.createElement("a",{href:"#",onClick:function(){return e.toggleStep(s,i,"origin",!0)}},t("Edit")))):null),n.a.createElement("div",{className:"label-purchase-modal__shipping-summarry-labels"},l+" "+t("shipping label ready","shipping labels ready",{count:l})))};Pt.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired};var Tt=function(e){var t=e.normalizationInProgress,a=e.errors,r=e.isNormalized,n=e.values,s=e.normalized;return t?{isProgress:!0}:Object(I.a)(a)||r&&!s||!r?{isError:!0}:r?Object(v.isEqual)(n,s)?{isSuccess:!0}:{isWarning:!0}:{}},zt=Object(l.localize)(Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.t)(e,a,r),s=Object(W.j)(e,a,r),i=s.form.origin,c=n&&Object(W.f)(e,a,r).origin;return{orderId:a,siteId:r,errors:c,form:s.form,expanded:i.expanded,normalizationStatus:Tt(f()({},i,{errors:c}))}},function(e){return Object(o.b)({toggleStep:F.U},e)})(Pt)),Dt=function(e){var t=e.form,a=e.disabled,s=e.busy;return n.a.createElement(r.Fragment,null,n.a.createElement(de.a,{disabled:a,onClick:t.needsPrintConfirmation?e.confirmPrintLabel:e.purchaseLabel,primary:!0,busy:s},function(e){var t=e.form,a=e.translate;return t.needsPrintConfirmation?a("Print"):t.isSubmitting?a("Purchasing\u2026"):a("Buy shipping label","Buy shipping labels",{count:Object.keys(t.packages.selected).length})}(e)))};Dt.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,disabled:i.a.bool,busy:i.a.bool};var At=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.t)(e,a,r),s=Object(W.j)(e,a,r);return{form:n&&s.form}},function(e,t){var a=t.orderId,r=t.siteId;return{confirmPrintLabel:function(){return e(Object(F.j)(a,r))},purchaseLabel:function(){return e(Object(F.B)(a,r))}}})(Object(l.localize)(Dt)),Ut=a(566),Vt=function(e){function t(){var e,a;$()(this,t);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return a=Q()(this,(e=Z()(t)).call.apply(e,[this].concat(n))),y()(ft()(a),"onVisibilityChange",function(){document.hidden||a.refetchSettings(),a.creditCardWindow&&a.creditCardWindow.closed&&document.removeEventListener("visibilitychange",a.onVisibilityChange)}),y()(ft()(a),"refetchSettings",function(){a.props.fetchSettings(a.props.siteId)}),y()(ft()(a),"onChooseCard",function(){a.creditCardWindow=window.open(a.props.url),document.addEventListener("visibilitychange",a.onVisibilityChange)}),a}return te()(t,e),K()(t,[{key:"render",value:function(){var e=this.props,t=e.disabled,a=e.buttonLabel,s=e.buttonDescription;return n.a.createElement(r.Fragment,null,n.a.createElement(de.a,{onClick:this.onChooseCard,disabled:t,primary:!0},a," ",n.a.createElement(m.a,{icon:"external"})),n.a.createElement("div",{className:"purchase-section__explanation"},s(this.onChooseCard)))}}]),t}(r.Component),Mt=Object(c.b)(function(e){return e},function(e){return Object(o.b)({fetchSettings:Ut.a},e)})(Object(l.localize)(Vt)),Ft=a(645),Wt=(a(780),Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.t)(e,a,r),s=Object(W.j)(e,a,r),i=n&&Object(W.b)(e,a,r),c=n&&s.form;return{form:c,hasLabelsPaymentMethod:Boolean(Object(qe.n)(e,r)),paymentMethods:Object(qe.l)(e,r),disablePurchase:!c.needsPrintConfirmation&&(!i||c.isSubmitting)}})(Object(l.localize)(function(e){var t=e.orderId,a=e.siteId,r=e.hasLabelsPaymentMethod,s=e.paymentMethods,i=e.form,c=e.disablePurchase,o=e.translate,l=i.isSubmitting&&!i.needsPrintConfirmation,u=Object(W.n)(i.rates),d=u&&Object.values(i.rates.values).some(function(e){return"ups"!==e.carrierId}),m=r&&d||!d;return n.a.createElement("div",{className:"purchase-section"},m||!u?n.a.createElement(At,{siteId:a,orderId:t,disabled:c,busy:l}):s.length?n.a.createElement(Mt,{disabled:c,url:"admin.php?page=wc-settings&tab=shipping§ion=woocommerce-services-settings",buttonLabel:o("Choose credit card"),buttonDescription:function(e){return o("To print this shipping label, {{a}}choose a credit card to add to your account{{/a}}.",{components:{a:n.a.createElement("a",{onClick:e,href:"#",role:"button"})}})}}):n.a.createElement(Mt,{disabled:c,url:Object(Ft.a)()+"/me/purchases/add-credit-card",buttonLabel:o("Add credit card"),buttonDescription:function(e){return o("To print this shipping label, {{a}}add a credit card to your account{{/a}}.",{components:{a:n.a.createElement("a",{onClick:e,href:"#",role:"button"})}})}}))}))),Lt=a(686),Bt=a(532),Ht=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(Bt.a)(e);return Object(v.get)(e,["extensions","woocommerce","ui","orders",t,"edits","currentlyEditingId"],null)},Yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(Bt.a)(e),a=Ht(e,t),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(Bt.a)(e);return Object(v.get)(e,["extensions","woocommerce","ui","orders",t,"edits","changes"],{})}(e,t);if(Object(v.isObject)(a)){var n=function(){var e=Object(Lt.b)(0,"USD");return{status:"pending",currency:"USD",discount_total:e,discount_tax:e,shipping_total:e,shipping_tax:e,cart_tax:e,total:e,total_tax:e,prices_include_tax:!1,billing:{},shipping:{},payment_method:"calypso_manual",payment_method_title:Object(l.translate)("Manual Payment"),line_items:[],tax_lines:[],shipping_lines:[],fee_lines:[],coupon_lines:[],refunds:[]}}();return f()({},n,r,{id:a})}var s=Object(Rt.a)(e,a,t);return s?Object(v.merge)({},s,r):r},$t=a(637),Gt=function(e){var t=e.orderId,a=e.siteId,r=e.form,s=e.errors,i=e.paperSize,c=e.translate,o=e.fulfillOrder,l=e.emailDetails,u=e.order,d=e.hasLabelsPaymentMethod,m=Object(W.n)(r.rates)&&Object.values(r.rates.values).some(function(e){return"ups"!==e.carrierId}),p=d&&m||!m;return n.a.createElement("div",{className:"label-purchase-modal__sidebar"},n.a.createElement(zt,{siteId:a,orderId:t}),n.a.createElement(St,{siteId:a,orderId:t}),n.a.createElement("hr",null),n.a.createElement("div",{className:"label-purchase-modal__purchase-container"},p?n.a.createElement(j.a,{id:"paper_size",valuesMap:Object(wt.a)(r.origin.values.country),title:c("Paper size"),value:i,updateValue:function(r){return e.updatePaperSize(t,a,r)},error:s.paperSize}):null,n.a.createElement(Wt,{siteId:a,orderId:t})),n.a.createElement(bt.a,{className:"label-purchase-modal__option-mark-order-fulfilled",label:Object($t.b)(u.status)?c("Notify the customer with shipment details"):c("Mark this order as complete and notify the customer"),checked:o||l,onChange:function(r){e.setFulfillOrderOption(t,a,r&&!Object($t.b)(u.status)),e.setEmailDetailsOption(t,a,r&&Object($t.b)(u.status))}}))};Gt.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired,paperSize:i.a.string.isRequired,errors:i.a.object.isRequired,form:i.a.object.isRequired,updatePaperSize:i.a.func.isRequired,fulfillOrder:i.a.bool.isRequired,emailDetails:i.a.bool.isRequired,order:i.a.object.isRequired,hasLabelsPaymentMethod:i.a.bool.isRequired,setFulfillOrderOption:i.a.func.isRequired};var Kt=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.t)(e,a,r),s=Object(W.j)(e,a,r);return{order:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(Bt.a)(e);return!!Ht(e,t)}(e)?Yt(e):Object(Rt.a)(e,a),paperSize:s.paperSize,form:s.form,hasLabelsPaymentMethod:Boolean(Object(qe.n)(e,r)),errors:n&&Object(W.f)(e,a,r).sidebar,fulfillOrder:n&&Object(W.v)(e,a,r),emailDetails:n&&Object(W.u)(e,a,r)}},function(e){return Object(o.b)({setEmailDetailsOption:F.M,setFulfillOrderOption:F.N,updatePaperSize:F.X},e)})(Object(l.localize)(Gt)),Jt=function(e){var t=e.loaded,a=e.translate;if(!t)return null;var r=function(){return e.exitPrintingFlow(e.orderId,e.siteId,!1)};return n.a.createElement(p.a,{additionalClassNames:"woocommerce label-purchase-modal wcc-root",isVisible:e.showPurchaseDialog,onClose:r},n.a.createElement("div",{className:"label-purchase-modal__content"},n.a.createElement("div",{className:"label-purchase-modal__header"},n.a.createElement(Se.a,null,a("Create shipping label","Create shipping labels",{count:Object.keys(e.form.packages.selected).length})),n.a.createElement(de.a,{className:"label-purchase-modal__close-button",onClick:r},n.a.createElement(m.a,{icon:"cross"}))),n.a.createElement("div",{className:"label-purchase-modal__body"},n.a.createElement("div",{className:"label-purchase-modal__main-section"},n.a.createElement(ue,{type:"origin",title:a("Origin address"),siteId:e.siteId,orderId:e.orderId}),n.a.createElement(ue,{type:"destination",title:a("Destination address"),siteId:e.siteId,orderId:e.orderId}),n.a.createElement(We,{siteId:e.siteId,orderId:e.orderId}),e.isCustomsFormRequired&&n.a.createElement(dt,{siteId:e.siteId,orderId:e.orderId}),n.a.createElement(qt,{siteId:e.siteId,orderId:e.orderId})),n.a.createElement(Kt,{siteId:e.siteId,orderId:e.orderId}))))};Jt.propTypes={siteId:i.a.number.isRequired,orderId:i.a.number.isRequired};t.default=Object(c.b)(function(e,t){var a=t.orderId,r=t.siteId,n=Object(W.t)(e,a,r),s=Object(W.j)(e,a,r);return{loaded:n,form:n&&s.form,showPurchaseDialog:s.showPurchaseDialog,isCustomsFormRequired:Object(W.p)(e,a,r)}},function(e){return Object(o.b)({exitPrintingFlow:F.o},e)})(Object(l.localize)(Jt))}}]);
|
dist/chunks/{567f79f890201df88608.min.js → 4135317669c63461e19b.min.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{526:function(e,t,l){!function(){"use strict";var t={}.hasOwnProperty;function l(){for(var e=[],a=0;a<arguments.length;a++){var c=arguments[a];if(c){var n=typeof c;if("string"===n||"number"===n)e.push(c);else if(Array.isArray(c)&&c.length){var s=l.apply(null,c);s&&e.push(s)}else if("object"===n)for(var h in c)t.call(c,h)&&c[h]&&e.push(h)}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):"function"===typeof define&&"object"===typeof define.amd&&define.amd?define("classnames",[],function(){return l}):window.classNames=l}()},527:function(e,t){function l(t){return e.exports=l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(t)}e.exports=l},528:function(e,t,l){var a=l(709),c=l(531);e.exports=function(e,t){return!t||"object"!==a(t)&&"function"!==typeof t?c(e):t}},529:function(e,t,l){var a=l(649);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&&a(e,t)}},530:function(e,t){function l(){return e.exports=l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},l.apply(this,arguments)}e.exports=l},531: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}},533:function(e,t,l){var a=l(710);e.exports=function(e,t){if(null==e)return{};var l,c,n=a(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(c=0;c<s.length;c++)l=s[c],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(n[l]=e[l])}return n}},534:function(e,t,l){"use strict";var a=Object.assign||function(e){for(var t,l=1;l<arguments.length;l++)for(var a in t=arguments[l])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},c=function(){function e(e,t){for(var l,a=0;a<t.length;a++)(l=t[a]).enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}return function(t,l,a){return l&&e(t.prototype,l),a&&e(t,a),t}}(),n=l(10),s=r(n),h=r(l(12));function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.PureComponent),c(t,[{key:"needsOffset",value:function(e,t){return!!(0<=["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle","gridicons-reader-follow","gridicons-reader-following"].indexOf(e))&&0==t%18}},{key:"needsOffsetX",value:function(e,t){return!!(0<=["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"].indexOf(e))&&0==t%18}},{key:"needsOffsetY",value:function(e,t){return!!(0<=["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"].indexOf(e))&&0==t%18}},{key:"render",value:function(){var e=this.props,t=e.size,l=e.onClick,c=e.icon,n=e.className,h=function(e,t){var l={};for(var a in e)0<=t.indexOf(a)||Object.prototype.hasOwnProperty.call(e,a)&&(l[a]=e[a]);return l}(e,["size","onClick","icon","className"]),r="gridicons-"+c,i=void 0,d=["gridicon",r,n,!!this.needsOffset(r,t)&&"needs-offset",!!this.needsOffsetX(r,t)&&"needs-offset-x",!!this.needsOffsetY(r,t)&&"needs-offset-y"].filter(Boolean).join(" ");switch(r){default:i=s.default.createElement("svg",a({height:t,width:t},h));break;case"gridicons-add-image":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M23 4v2h-3v3h-2V6h-3V4h3V1h2v3h3zm-8.5 7c.828 0 1.5-.672 1.5-1.5S15.328 8 14.5 8 13 8.672 13 9.5s.672 1.5 1.5 1.5zm3.5 3.234l-.513-.57c-.794-.885-2.18-.885-2.976 0l-.655.73L9 9l-3 3.333V6h7V4H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-7h-2v3.234z"})));break;case"gridicons-add-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})));break;case"gridicons-add":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})));break;case"gridicons-align-center":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11 4v12.17l-5.59-5.59L4 12l8 8 8-8-1.41-1.41L13 16.17V4h-2z"})));break;case"gridicons-arrow-left":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})));break;case"gridicons-arrow-right":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})));break;case"gridicons-arrow-up":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})));break;case"gridicons-aside":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14 20l6-6V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h8zM6 6h12v6h-4c-1.105 0-2 .895-2 2v4H6V6zm10 4H8V8h8v2z"})));break;case"gridicons-attachment":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14 1c-2.762 0-5 2.238-5 5v10c0 1.657 1.343 3 3 3s2.99-1.343 2.99-3V6H13v10c0 .553-.447 1-1 1-.553 0-1-.447-1-1V6c0-1.657 1.343-3 3-3s3 1.343 3 3v10.125C17 18.887 14.762 21 12 21s-5-2.238-5-5v-5H5v5c0 3.866 3.134 7 7 7s6.99-3.134 6.99-7V6c0-2.762-2.228-5-4.99-5z"})));break;case"gridicons-audio":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})));break;case"gridicons-bell":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6.14 14.97l2.828 2.827c-.362.362-.862.586-1.414.586-1.105 0-2-.895-2-2 0-.552.224-1.052.586-1.414zm8.867 5.324L14.3 21 3 9.7l.706-.707 1.102.157c.754.108 1.69-.122 2.077-.51l3.885-3.884c2.34-2.34 6.135-2.34 8.475 0s2.34 6.135 0 8.475l-3.885 3.886c-.388.388-.618 1.323-.51 2.077l.157 1.1z"})));break;case"gridicons-block":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})));break;case"gridicons-bold":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M7 5.01h4.547c2.126 0 3.67.302 4.632.906.96.605 1.44 1.567 1.44 2.887 0 .896-.21 1.63-.63 2.205-.42.574-.98.92-1.678 1.036v.103c.95.212 1.637.608 2.057 1.19.42.58.63 1.35.63 2.315 0 1.367-.494 2.434-1.482 3.2-.99.765-2.332 1.148-4.027 1.148H7V5.01zm3 5.936h2.027c.862 0 1.486-.133 1.872-.4.386-.267.578-.708.578-1.323 0-.574-.21-.986-.63-1.236-.42-.25-1.087-.374-1.996-.374H10v3.333zm0 2.523v3.905h2.253c.876 0 1.52-.167 1.94-.502.416-.335.625-.848.625-1.54 0-1.243-.89-1.864-2.668-1.864H10z"})));break;case"gridicons-book":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 3h2v18H4zM18 3H7v18h11c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-6V8h6v1zm0-2h-6V6h6v1z"})));break;case"gridicons-bookmark-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 5v12.554l-5-2.857-5 2.857V5h10m0-2H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-bookmark":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-briefcase":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14 15h-4v-2H2v6c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2v-6h-8v2zm6-9h-2V4c0-1.105-.895-2-2-2H8c-1.105 0-2 .895-2 2v2H4c-1.105 0-2 .895-2 2v4h20V8c0-1.105-.895-2-2-2zm-4 0H8V4h8v2z"})));break;case"gridicons-bug":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 14h4v-2h-4v-2h1a2 2 0 0 0 2-2V6h-2v2H5V6H3v2a2 2 0 0 0 2 2h1v2H2v2h4v1a6 6 0 0 0 .09 1H5a2 2 0 0 0-2 2v2h2v-2h1.81A6 6 0 0 0 11 20.91V10h2v10.91A6 6 0 0 0 17.19 18H19v2h2v-2a2 2 0 0 0-2-2h-1.09a6 6 0 0 0 .09-1zM12 2a4 4 0 0 0-4 4h8a4 4 0 0 0-4-4z"})));break;case"gridicons-calendar":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})));break;case"gridicons-camera":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm5-5v11c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2V4h4v1h2l1-2h6l1 2h2c1.1 0 2 .9 2 2zM7.5 9c0-.8-.7-1.5-1.5-1.5S4.5 8.2 4.5 9s.7 1.5 1.5 1.5S7.5 9.8 7.5 9zM19 12c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z"})));break;case"gridicons-caption":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 15l2-2v5c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h13l-2 2H4v12h16v-3zm2.44-8.56l-.88-.88c-.586-.585-1.534-.585-2.12 0L12 13v2H6v2h9v-1l7.44-7.44c.585-.586.585-1.534 0-2.12z"})));break;case"gridicons-cart":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})));break;case"gridicons-chat":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 12c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2H9v3l-3-3H3zM21 18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2h-6v1c0 2.2-1.8 4-4 4v2c0 1.1.9 2 2 2h2v3l3-3h3z"})));break;case"gridicons-checkmark-circle":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})));break;case"gridicons-checkmark":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})));break;case"gridicons-chevron-down":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10.837 10.163l-4.6 4.6L10 4h4l.777 2.223-2.144 2.144-.627-2.092-1.17 3.888zm5.495.506L19.244 19H15.82l-1.05-3.5H11.5L5 22l-1.5-1.5 17-17L22 5l-5.668 5.67zm-2.31 2.31l-.032.03.032-.01v-.02z"})));break;case"gridicons-clipboard":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16 18H8v-2h8v2zm0-6H8v2h8v-2zm2-9h-2v2h2v15H6V5h2V3H6c-1.105 0-2 .895-2 2v15c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-4 2V4c0-1.105-.895-2-2-2s-2 .895-2 2v1c-1.105 0-2 .895-2 2v1h8V7c0-1.105-.895-2-2-2z"})));break;case"gridicons-cloud-download":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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-6 7l-4-5h3V8h2v3h3l-4 5z"})));break;case"gridicons-cloud-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11.5 5c2.336 0 4.304 1.825 4.48 4.154l.142 1.86 1.867-.012h.092C19.698 11.043 21 12.37 21 14c0 .748-.28 1.452-.783 2H3.28c-.156-.256-.28-.59-.28-1 0-1.074.85-1.953 1.915-1.998.06.007.118.012.178.015l2.66.124-.622-2.587C7.044 10.186 7 9.843 7 9.5 7 7.02 9.02 5 11.5 5m0-2C7.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-5l-.025.002C17.72 5.646 14.922 3 11.5 3z"})));break;case"gridicons-cloud-upload":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-cloud":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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-5z"})));break;case"gridicons-code":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M23 12l-5.45 6.5L16 17.21 20.39 12 16 6.79l1.55-1.29zM8 6.79L6.45 5.5 1 12l5.45 6.5L8 17.21 3.61 12zm.45 14.61l1.93.52L15.55 2.6l-1.93-.52z"})));break;case"gridicons-cog":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 12c0-.568-.06-1.122-.174-1.656l1.834-1.612-2-3.464-2.322.786c-.82-.736-1.787-1.308-2.86-1.657L14 2h-4l-.48 2.396c-1.07.35-2.04.92-2.858 1.657L4.34 5.268l-2 3.464 1.834 1.612C4.06 10.878 4 11.432 4 12s.06 1.122.174 1.656L2.34 15.268l2 3.464 2.322-.786c.82.736 1.787 1.308 2.86 1.657L10 22h4l.48-2.396c1.07-.35 2.038-.92 2.858-1.657l2.322.786 2-3.464-1.834-1.613c.113-.535.174-1.09.174-1.657zm-8 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})));break;case"gridicons-comment":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 16l-5 5v-5H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v9c0 1.1-.9 2-2 2h-7z"})));break;case"gridicons-computer":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-coupon":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13 16v2h-2v-2h2zm3-3h2v-2h-2v2zm2 8h-2v2h2v-2zm3-5v2h2v-2h-2zm-1-3c.552 0 1 .448 1 1h2c0-1.657-1.343-3-3-3v2zm1 7c0 .552-.448 1-1 1v2c1.657 0 3-1.343 3-3h-2zm-7 1c-.552 0-1-.448-1-1h-2c0 1.657 1.343 3 3 3v-2zm3.21-5.21c-.78.78-2.047.782-2.828.002l-.002-.002L10 11.41l-1.43 1.44c.28.506.427 1.073.43 1.65C9 16.433 7.433 18 5.5 18S2 16.433 2 14.5 3.567 11 5.5 11c.577.003 1.144.15 1.65.43L8.59 10 7.15 8.57c-.506.28-1.073.427-1.65.43C3.567 9 2 7.433 2 5.5S3.567 2 5.5 2 9 3.567 9 5.5c-.003.577-.15 1.144-.43 1.65L10 8.59l3.88-3.88c.78-.78 2.047-.782 2.828-.002l.002.002-5.3 5.29 5.8 5.79zM5.5 7C6.328 7 7 6.328 7 5.5S6.328 4 5.5 4 4 4.672 4 5.5 4.672 7 5.5 7zM7 14.5c0-.828-.672-1.5-1.5-1.5S4 13.672 4 14.5 4.672 16 5.5 16 7 15.328 7 14.5z"})));break;case"gridicons-create":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 14v5c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h5v2H5v14h14v-5h2z"}),s.default.createElement("path",{d:"M21 7h-4V3h-2v4h-4v2h4v4h2V9h4"})));break;case"gridicons-credit-card":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})));break;case"gridicons-crop":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 16h-4V8c0-1.105-.895-2-2-2H8V2H6v4H2v2h4v8c0 1.105.895 2 2 2h8v4h2v-4h4v-2zM8 16V8h8v8H8z"})));break;case"gridicons-cross-circle":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19.1 4.9C15.2 1 8.8 1 4.9 4.9S1 15.2 4.9 19.1s10.2 3.9 14.1 0 4-10.3.1-14.2zm-4.3 11.3L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8 2.8 2.8-1.4 1.4z"})));break;case"gridicons-cross-small":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})));break;case"gridicons-cross":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"})));break;case"gridicons-custom-post-type":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"})));break;case"gridicons-customize":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M2 6c0-1.505.78-3.08 2-4 0 .845.69 2 2 2 1.657 0 3 1.343 3 3 0 .386-.08.752-.212 1.09.74.594 1.476 1.19 2.19 1.81L8.9 11.98c-.62-.716-1.214-1.454-1.807-2.192C6.753 9.92 6.387 10 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.34-1.34c.607.304 1.283.492 2.008.492 2.485 0 4.5-2.015 4.5-4.5 0-.725-.188-1.4-.493-2.007L18 9l-2-2 3.507-3.507C18.9 3.188 18.225 3 17.5 3 15.015 3 13 5.015 13 7.5c0 .725.188 1.4.493 2.007L3 20l2 2 6.848-6.848c1.885 1.928 3.874 3.753 5.977 5.45l1.425 1.148 1.5-1.5-1.15-1.425c-1.695-2.103-3.52-4.092-5.448-5.977z"})));break;case"gridicons-domains":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm6.918 6h-3.215c-.188-1.424-.42-2.65-.565-3.357 1.593.682 2.916 1.87 3.78 3.357zm-5.904-3.928c.068.352.387 2.038.645 3.928h-3.32c.26-1.89.578-3.576.646-3.928C11.32 4.03 11.656 4 12 4s.68.03 1.014.072zM14 12c0 .598-.043 1.286-.11 2h-3.78c-.067-.714-.11-1.402-.11-2s.043-1.286.11-2h3.78c.067.714.11 1.402.11 2zM8.862 4.643C8.717 5.35 8.485 6.576 8.297 8H5.082c.864-1.487 2.187-2.675 3.78-3.357zM4.262 10h3.822c-.05.668-.084 1.344-.084 2s.033 1.332.085 2H4.263C4.097 13.36 4 12.692 4 12s.098-1.36.263-2zm.82 6h3.215c.188 1.424.42 2.65.565 3.357-1.593-.682-2.916-1.87-3.78-3.357zm5.904 3.928c-.068-.353-.388-2.038-.645-3.928h3.32c-.26 1.89-.578 3.576-.646 3.928-.333.043-.67.072-1.014.072s-.68-.03-1.014-.072zm4.152-.57c.145-.708.377-1.934.565-3.358h3.215c-.864 1.487-2.187 2.675-3.78 3.357zm4.6-5.358h-3.822c.05-.668.084-1.344.084-2s-.033-1.332-.085-2h3.82c.167.64.265 1.308.265 2s-.097 1.36-.263 2z"})));break;case"gridicons-dropdown":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis-circle":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM7.5 13.5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5S9 11.2 9 12s-.7 1.5-1.5 1.5zm4.5 0c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm4.5 0c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5z"})));break;case"gridicons-ellipsis":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M7 12c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2zm12-2c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-7 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2z"})));break;case"gridicons-external":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})));break;case"gridicons-filter":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18.595 4H5.415c-.552-.003-1.003.442-1.006.994-.002.27.104.527.295.716l5.3 5.29v6l4 4V11l5.29-5.29c.392-.39.395-1.022.006-1.414-.186-.188-.44-.295-.705-.296z"})));break;case"gridicons-flag":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})));break;case"gridicons-flip-horizontal":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 18v-5h3v-2h-3V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v5H1v2h3v5c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2zM6 6h12v5H6V6z"})));break;case"gridicons-flip-vertical":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 4h-5V1h-2v3H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h5v3h2v-3h5c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 18V6h5v12H6z"})));break;case"gridicons-folder-multiple":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 8c-1.105 0-2 .895-2 2v10c0 1.1.9 2 2 2h14c1.105 0 2-.895 2-2H4V8zm16 10H8c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2h7c1.105 0 2 .895 2 2v8c0 1.105-.895 2-2 2z"})));break;case"gridicons-folder":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})));break;case"gridicons-fullscreen-exit":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14 10V4h2v2.59l3.29-3.29 1.41 1.41L17.41 8H20v2zM4 10V8h2.59l-3.3-3.29 1.42-1.42L8 6.59V4h2v6zm16 4v2h-2.59l3.29 3.29-1.41 1.41L16 17.41V20h-2v-6zm-10 0v6H8v-2.59l-3.29 3.3-1.42-1.42L6.59 16H4v-2z"})));break;case"gridicons-fullscreen":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 3v6h-2V6.41l-3.29 3.3-1.42-1.42L17.59 5H15V3zM3 3v6h2V6.41l3.29 3.3 1.42-1.42L6.41 5H9V3zm18 18v-6h-2v2.59l-3.29-3.29-1.41 1.41L17.59 19H15v2zM9 21v-2H6.41l3.29-3.29-1.41-1.42L5 17.59V15H3v6z"})));break;case"gridicons-gift":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 6h-4.8c.5-.5.8-1.2.8-2 0-1.7-1.3-3-3-3s-3 1.3-3 3c0-1.7-1.3-3-3-3S6 2.3 6 4c0 .8.3 1.5.8 2H2v6h1v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8h1V6zm-2 4h-7V8h7v2zm-5-7c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM9 3c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM4 8h7v2H4V8zm1 4h6v8H5v-8zm14 8h-6v-8h6v8z"})));break;case"gridicons-globe":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.93c-3.94-.494-7-3.858-7-7.93l1 1h2v-2h2l3-3V6h-2L9 5v-.41C9.927 4.21 10.94 4 12 4s2.073.212 3 .59V6l-1 1v2l1 1 3.13-3.13c.752.897 1.304 1.964 1.606 3.13H18l-2 2v2l1 1h2l.286.286C18.03 18.06 15.24 20 12 20z"})));break;case"gridicons-grid":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M8 8H4V4h4v4zm6-4h-4v4h4V4zm6 0h-4v4h4V4zM8 10H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4zM8 16H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4z"})));break;case"gridicons-heading-h1":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11 7h2v10h-2v-4H7v4H5V7h2v4h4V7zm6.57 0c-.594.95-1.504 1.658-2.57 2v1h2v7h2V7h-1.43z"})));break;case"gridicons-heading-h2":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 7h2v10H9v-4H5v4H3V7h2v4h4V7zm8 8c.51-.41.6-.62 1.06-1.05.437-.4.848-.828 1.23-1.28.334-.39.62-.82.85-1.28.2-.39.305-.822.31-1.26.005-.44-.087-.878-.27-1.28-.177-.385-.437-.726-.76-1-.346-.283-.743-.497-1.17-.63-.485-.153-.99-.227-1.5-.22-.36 0-.717.033-1.07.1-.343.06-.678.158-1 .29-.304.13-.593.295-.86.49-.287.21-.56.437-.82.68l1.24 1.22c.308-.268.643-.502 1-.7.35-.2.747-.304 1.15-.3.455-.03.906.106 1.27.38.31.278.477.684.45 1.1-.014.396-.14.78-.36 1.11-.285.453-.62.872-1 1.25-.44.43-.98.92-1.59 1.43-.61.51-1.41 1.06-2.16 1.65V17h8v-2h-4z"})));break;case"gridicons-heading-h3":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14.11 14.218c.355.287.75.523 1.17.7.434.18.9.273 1.37.27.484.017.965-.086 1.4-.3.333-.146.55-.476.55-.84.003-.203-.05-.403-.15-.58-.123-.19-.3-.34-.51-.43-.32-.137-.655-.228-1-.27-.503-.073-1.012-.106-1.52-.1v-1.57c.742.052 1.485-.07 2.17-.36.37-.164.615-.525.63-.93.026-.318-.12-.627-.38-.81-.34-.203-.734-.3-1.13-.28-.395.013-.784.108-1.14.28-.375.167-.73.375-1.06.62l-1.22-1.39c.5-.377 1.053-.68 1.64-.9.608-.224 1.252-.336 1.9-.33.525-.007 1.05.05 1.56.17.43.1.84.277 1.21.52.325.21.595.495.79.83.19.342.287.73.28 1.12.01.48-.177.943-.52 1.28-.417.39-.916.685-1.46.86v.06c.61.14 1.175.425 1.65.83.437.382.68.94.66 1.52.005.42-.113.835-.34 1.19-.23.357-.538.657-.9.88-.408.253-.853.44-1.32.55-.514.128-1.04.192-1.57.19-.786.02-1.57-.106-2.31-.37-.59-.214-1.126-.556-1.57-1l1.12-1.41zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})));break;case"gridicons-heading-h4":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11 17H9v-4H5v4H3V7h2v4h4V7h2v10zm10-2h-1v2h-2v-2h-5v-2l4.05-6H20v6h1v2zm-3-2V9l-2.79 4H18z"})));break;case"gridicons-heading-h5":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14.09 14.19c.352.27.73.5 1.13.69.42.196.877.296 1.34.29.51.014 1.01-.125 1.44-.4.378-.253.594-.686.57-1.14.02-.45-.197-.877-.57-1.13-.406-.274-.89-.41-1.38-.39h-.47c-.135.014-.27.04-.4.08l-.41.15-.48.23-1.02-.57.28-5h6.4v1.92h-4.31L16 10.76c.222-.077.45-.138.68-.18.235-.037.472-.054.71-.05.463-.004.924.057 1.37.18.41.115.798.305 1.14.56.33.248.597.57.78.94.212.422.322.888.32 1.36.007.497-.11.99-.34 1.43-.224.417-.534.782-.91 1.07-.393.3-.837.527-1.31.67-.497.164-1.016.252-1.54.26-.788.023-1.573-.11-2.31-.39-.584-.238-1.122-.577-1.59-1l1.09-1.42zM11 17H9v-4H5v4H3V7h2v4h4V7h2v10z"})));break;case"gridicons-heading-h6":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11 17H9v-4H5v4H3V7h2v4h4V7h2v10zm8.58-7.508c-.248-.204-.524-.37-.82-.49-.625-.242-1.317-.242-1.94 0-.3.11-.566.287-.78.52-.245.27-.432.586-.55.93-.16.46-.243.943-.25 1.43.367-.33.79-.59 1.25-.77.405-.17.84-.262 1.28-.27.415-.006.83.048 1.23.16.364.118.704.304 1 .55.295.253.528.57.68.93.193.403.302.843.32 1.29.01.468-.094.93-.3 1.35-.206.387-.49.727-.83 1-.357.287-.764.504-1.2.64-.98.31-2.033.293-3-.05-.507-.182-.968-.472-1.35-.85-.437-.416-.778-.92-1-1.48-.243-.693-.352-1.426-.32-2.16-.02-.797.11-1.59.38-2.34.215-.604.556-1.156 1-1.62.406-.416.897-.74 1.44-.95.54-.21 1.118-.314 1.7-.31.682-.02 1.36.096 2 .34.5.19.962.464 1.37.81l-1.31 1.34zm-2.39 5.84c.202 0 .405-.03.6-.09.183-.046.356-.128.51-.24.15-.136.27-.303.35-.49.092-.225.136-.467.13-.71.037-.405-.123-.804-.43-1.07-.328-.23-.72-.347-1.12-.33-.346-.002-.687.07-1 .21-.383.17-.724.418-1 .73.046.346.143.683.29 1 .108.23.257.44.44.62.152.15.337.26.54.33.225.055.46.068.69.04z"})));break;case"gridicons-heading":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-heart":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16.5 3c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-help-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm4 8c0-2.21-1.79-4-4-4s-4 1.79-4 4h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2c-.552 0-1 .448-1 1v2h2v-1.14c1.722-.447 3-1.998 3-3.86zm-3 6h-2v2h2v-2z"})));break;case"gridicons-help":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 16h-2v-2h2v2zm0-4.14V15h-2v-2c0-.552.448-1 1-1 1.103 0 2-.897 2-2s-.897-2-2-2-2 .897-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.862-1.278 3.413-3 3.86z"})));break;case"gridicons-history":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M2.12 13.526c.742 4.78 4.902 8.47 9.88 8.47 5.5 0 10-4.5 10-9.998S17.5 2 12 2C8.704 2 5.802 3.6 4 6V2H2.003L2 9h7V7H5.8c1.4-1.8 3.702-3 6.202-3C16.4 4 20 7.6 20 11.998s-3.6 8-8 8c-3.877 0-7.13-2.795-7.848-6.472H2.12z"}),s.default.createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})));break;case"gridicons-image-multiple":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})));break;case"gridicons-image-remove":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20.587 3.423L22 4.837 20 6.84V18c0 1.105-.895 2-2 2H6.84l-2.007 2.006-1.414-1.414 17.167-17.17zM12.42 14.42l1 1 1-1c.63-.504 1.536-.456 2.11.11L18 16V8.84l-5.58 5.58zM15.16 6H6v6.38l2.19-2.19 1.39 1.39L4 17.163V6c0-1.105.895-2 2-2h11.162l-2 2z"})));break;case"gridicons-image":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 6v12c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 0H6v6.38l2.19-2.19 5.23 5.23 1-1c.63-.504 1.536-.456 2.11.11L18 16V6zm-5 3.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5z"})));break;case"gridicons-indent-left":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 20h2V4h-2v16zM2 11h10.172l-2.086-2.086L11.5 7.5 16 12l-4.5 4.5-1.414-1.414L12.172 13H2v-2z"})));break;case"gridicons-indent-right":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6 4H4v16h2V4zm16 9H11.828l2.086 2.086L12.5 16.5 8 12l4.5-4.5 1.414 1.414L11.828 11H22v2z"})));break;case"gridicons-info-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})));break;case"gridicons-info":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-ink":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M5 15c0 3.866 3.134 7 7 7s7-3.134 7-7c0-1.387-.41-2.677-1.105-3.765h.007L12 2l-5.903 9.235h.007C5.41 12.323 5 13.613 5 15z"})));break;case"gridicons-institution":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10.536 5l-.427 2h1.5L9.262 18h-1.5l-.427 2h6.128l.426-2h-1.5l2.347-11h1.5l.427-2"})));break;case"gridicons-layout-blocks":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 7h-2V3c0-1.105-.895-2-2-2H7c-1.105 0-2 .895-2 2v2H3c-1.105 0-2 .895-2 2v4c0 1.105.895 2 2 2h2v8c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-2h2c1.105 0 2-.895 2-2V9c0-1.105-.895-2-2-2zm-4 14H7v-8h2c1.105 0 2-.895 2-2V7c0-1.105-.895-2-2-2H7V3h10v4h-2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h2v2zm4-4h-6V9h6v8z"})));break;case"gridicons-layout":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M8 20H5c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2v12c0 1.105-.895 2-2 2zm8-10h4c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2h-4c-1.105 0-2 .895-2 2v3c0 1.105.895 2 2 2zm5 10v-6c0-1.105-.895-2-2-2h-5c-1.105 0-2 .895-2 2v6c0 1.105.895 2 2 2h5c1.105 0 2-.895 2-2z"})));break;case"gridicons-link-break":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10 11l-2 2H7v-2h3zm9.64-3.64L22 5l-1.5-1.5-17 17L5 22l9-9h3v-2h-1l2-2c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-1.623-.97-3.013-2.36-3.64zM4.36 16.64L6 15c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4v2c0 1.623.97 3.013 2.36 3.64z"})));break;case"gridicons-link":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 13H7v-2h10v2zm1-6h-1c-1.63 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-2.21-1.79-4-4-4zM2 11v2c0 2.21 1.79 4 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4z"})));break;case"gridicons-list-checkmark":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9.5 15.5L5 20l-2.5-2.5 1.06-1.06L5 17.88l3.44-3.44L9.5 15.5zM10 5v2h11V5H10zm0 14h11v-2H10v2zm0-6h11v-2H10v2zM8.44 8.44L5 11.88l-1.44-1.44L2.5 11.5 5 14l4.5-4.5-1.06-1.06zm0-6L5 5.88 3.56 4.44 2.5 5.5 5 8l4.5-4.5-1.06-1.06z"})));break;case"gridicons-list-ordered":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M8 19h13v-2H8v2zm0-6h13v-2H8v2zm0-8v2h13V5H8zm-4.425.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H3.96L2.487 4.915l.6.738.487-.4zm.334 7.764c.474-.426.784-.715.93-.867.145-.153.26-.298.35-.436.087-.138.152-.278.194-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608s-.29-.32-.507-.417c-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067s-.34.11-.49.195c-.15.085-.337.226-.558.423l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.032.304.097.073.064.11.152.11.264 0 .09-.02.176-.055.258-.036.082-.1.18-.192.294-.092.114-.287.328-.586.64L2.42 13.238V14h3.11v-.955H3.91v-.03zm.53 4.746v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.176-.6-.264-1.043-.264-.307 0-.58.033-.816.1s-.47.178-.696.334l.48.773c.293-.183.576-.274.85-.274.147 0 .263.027.35.082s.13.14.13.252c0 .3-.294.45-.882.45h-.27v.87h.264c.217 0 .393.017.527.05.136.03.233.08.294.143.06.064.09.154.09.27 0 .153-.057.265-.173.337-.115.07-.3.106-.554.106-.164 0-.343-.022-.538-.07-.194-.044-.385-.115-.573-.21v.96c.228.088.44.148.637.182.196.033.41.05.64.05.56 0 .998-.114 1.314-.343.315-.228.473-.542.473-.94.002-.585-.356-.923-1.07-1.013z"})));break;case"gridicons-list-unordered":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-location":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 9c0-3.866-3.134-7-7-7S5 5.134 5 9c0 1.387.41 2.677 1.105 3.765h-.008C8.457 16.46 12 22 12 22l5.903-9.235h-.007C18.59 11.677 19 10.387 19 9zm-7 3c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})));break;case"gridicons-lock":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 8h-1V7c0-2.757-2.243-5-5-5S7 4.243 7 7v1H6c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V10c0-1.105-.895-2-2-2zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v1H9V7zm4 8.723V18h-2v-2.277c-.595-.346-1-.984-1-1.723 0-1.105.895-2 2-2s2 .895 2 2c0 .738-.405 1.376-1 1.723z"})));break;case"gridicons-mail":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"gridicons-media-google":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17.4 8.7c.3-.5 1-2.8 1.3-4.1C16.9 3 14.6 2 12 2c-1.4 0-2.8.3-4 .8l8.2 6s.7.7 1.2-.1zM10.5 6c-.4-.5-2.5-1.9-3.6-2.6C4 5.1 2 8.3 2 12c0 .4 0 .7.1 1.1l8.2-5.9s.8-.5.2-1.2zm-4.7 5.7c-.5.2-2.5 1.7-3.6 2.5C3 18 6 20.9 9.7 21.8l-2.9-9.5c0-.1-.2-1-1-.6zm4 6.2c.1.6.8 2.7 1.3 4.1h.9c3.6 0 6.8-2 8.6-4.9h-9.9s-1-.1-.9.8zm9.7-12.5l-3.1 9.5s-.4.9.5 1.1c.6.1 2.8.1 4.2 0 .5-1.2.8-2.6.8-4 .1-2.5-.8-4.8-2.4-6.6z"})));break;case"gridicons-mention":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2a10 10 0 0 0 0 20v-2a8 8 0 1 1 8-8v.5a1.5 1.5 0 0 1-3 0V7h-2v1a5 5 0 1 0 1 7 3.5 3.5 0 0 0 6-2.46V12A10 10 0 0 0 12 2zm0 13a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"})));break;case"gridicons-menu":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 19h10v-2H9v2zm0-6h6v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-microphone":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 9v1a7 7 0 0 1-6 6.92V20h3v2H8v-2h3v-3.08A7 7 0 0 1 5 10V9h2v1a5 5 0 0 0 10 0V9zm-7 4a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v5a3 3 0 0 0 3 3z"})));break;case"gridicons-minus-small":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-money":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M2 5v14h20V5H2zm5 12c0-1.657-1.343-3-3-3v-4c1.657 0 3-1.343 3-3h10c0 1.657 1.343 3 3 3v4c-1.657 0-3 1.343-3 3H7zm5-8c1.1 0 2 1.3 2 3s-.9 3-2 3-2-1.3-2-3 .9-3 2-3z"})));break;case"gridicons-my-sites-horizon":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10.986 13.928l.762-2.284-1.324-3.63c-.458-.026-.892-.08-.892-.08-.458-.027-.405-.727.054-.7 0 0 1.403.107 2.24.107.888 0 2.265-.107 2.265-.107.46-.027.513.646.055.7 0 0-.46.055-.973.082l2.006 5.966c-.875-.034-1.74-.053-2.6-.06l-.428-1.177-.403 1.17c-.252.002-.508.01-.76.015zm-7.156.393c-.21-.737-.33-1.514-.33-2.32 0-1.232.264-2.402.736-3.46l2.036 5.58c.85-.06 1.69-.104 2.526-.138L6.792 8.015c.512-.027.973-.08.973-.08.458-.055.404-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.036-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .674-.244 1.463-.572 2.51.3.02.604.043.907.066l.798-2.307c.486-1.212.647-2.18.647-3.043 0-.313-.02-.603-.057-.874.662 1.21 1.04 2.6 1.04 4.077 0 .807-.128 1.58-.34 2.32.5.05 1.006.112 1.51.17.205-.798.33-1.628.33-2.49 0-5.523-4.477-10-10-10S2 6.477 2 12c0 .862.125 1.692.33 2.49.5-.057 1.003-.12 1.5-.17zm14.638 3.168C16.676 19.672 14.118 20.5 12 20.5c-1.876 0-4.55-.697-6.463-3.012-.585.048-1.174.1-1.77.16C5.572 20.272 8.578 22 12 22c3.422 0 6.43-1.73 8.232-4.35-.593-.063-1.18-.114-1.764-.162zM12 15.01c-3.715 0-7.368.266-10.958.733.18.41.35.825.506 1.247 3.427-.43 6.91-.68 10.452-.68s7.025.25 10.452.68c.156-.422.327-.836.506-1.246-3.59-.467-7.243-.734-10.958-.734z"})));break;case"gridicons-my-sites":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zM3.5 12c0-1.232.264-2.402.736-3.46L8.29 19.65C5.456 18.272 3.5 15.365 3.5 12zm8.5 8.5c-.834 0-1.64-.12-2.4-.345l2.55-7.41 2.613 7.157c.017.042.038.08.06.117-.884.31-1.833.48-2.823.48zm1.172-12.485c.512-.027.973-.08.973-.08.458-.055.404-.728-.054-.702 0 0-1.376.108-2.265.108-.835 0-2.24-.107-2.24-.107-.458-.026-.51.674-.053.7 0 0 .434.055.892.082l1.324 3.63-1.86 5.578-3.096-9.208c.512-.027.973-.08.973-.08.458-.055.403-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.037-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .727-.28 1.572-.646 2.748l-.848 2.833-3.072-9.138zm3.1 11.332l2.597-7.506c.484-1.212.645-2.18.645-3.044 0-.313-.02-.603-.057-.874.664 1.21 1.042 2.6 1.042 4.078 0 3.136-1.7 5.874-4.227 7.347z"})));break;case"gridicons-nametag":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 6a1 1 0 1 1-1 1 1 1 0 0 1 1-1zm-6 8h12v3H6zm14-8h-4V3H8v3H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zM10 5h4v5h-4zm10 14H4v-9h4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2h4z"})));break;case"gridicons-next-page":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 8h-8V6h8v2zm4-4v8l-6 6H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 0H8v12h6v-4c0-1.105.895-2 2-2h4V4zM4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6z"})));break;case"gridicons-not-visible":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M1 12s4.188-6 11-6c.947 0 1.84.12 2.678.322L8.36 12.64C8.133 12.14 8 11.586 8 11c0-.937.335-1.787.875-2.47C6.483 9.344 4.66 10.917 3.62 12c.68.707 1.696 1.62 2.98 2.398L5.15 15.85C2.498 14.13 1 12 1 12zm22 0s-4.188 6-11 6c-.946 0-1.836-.124-2.676-.323L5 22l-1.5-1.5 17-17L22 5l-3.147 3.147C21.5 9.87 23 12 23 12zm-2.615.006c-.678-.708-1.697-1.624-2.987-2.403L16 11c0 2.21-1.79 4-4 4l-.947.947c.31.03.624.053.947.053 3.978 0 6.943-2.478 8.385-3.994z"})));break;case"gridicons-notice-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-notice":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-offline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10 3h8l-4 6h4L6 21l4-9H6l4-9"})));break;case"gridicons-pages":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})));break;case"gridicons-pause":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"})));break;case"gridicons-pencil":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13 6l5 5-9.507 9.507c-.686-.686-.69-1.794-.012-2.485l-.002-.003c-.69.676-1.8.673-2.485-.013-.677-.677-.686-1.762-.036-2.455l-.008-.008c-.694.65-1.78.64-2.456-.036L13 6zm7.586-.414l-2.172-2.172c-.78-.78-2.047-.78-2.828 0L14 5l5 5 1.586-1.586c.78-.78.78-2.047 0-2.828zM3 18v3h3c0-1.657-1.343-3-3-3z"})));break;case"gridicons-phone":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-plans":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 12H6l5-10v10zm2 6V10h5l-5 10z"})));break;case"gridicons-play":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-2 14.5v-9l6 4.5z"})));break;case"gridicons-plugins":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16 8V3c0-.552-.448-1-1-1s-1 .448-1 1v5h-4V3c0-.552-.448-1-1-1s-1 .448-1 1v5H5v4c0 2.79 1.637 5.193 4 6.317V22h6v-3.683c2.363-1.124 4-3.527 4-6.317V8h-3z"})));break;case"gridicons-plus-small":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 13h-8v8h-2v-8H3v-2h8V3h2v8h8v2z"})));break;case"gridicons-popout":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6 7V5c0-1.105.895-2 2-2h11c1.105 0 2 .895 2 2v14c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2v-2h2v2h11V5H8v2H6zm5.5-.5l-1.414 1.414L13.172 11H3v2h10.172l-3.086 3.086L11.5 17.5 17 12l-5.5-5.5z"})));break;case"gridicons-posts":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3c0 1.105-.895 2-2 2H7c-1.105 0-2-.895-2-2v-3H2V9c0-1.105.895-2 2-2h1V5c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2v2h1c1.105 0 2 .895 2 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5z"})));break;case"gridicons-product-downloadable":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zm-6-10v5.17l2.59-2.58L17 14l-5 5-5-5 1.41-1.42L11 15.17V10h2z"})));break;case"gridicons-product-external":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zm-2-9v6h-2v-2.59l-3.29 3.29-1.41-1.41L13.59 13H11v-2h6z"})));break;case"gridicons-product-virtual":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zM7 16.45c0-1.005.815-1.82 1.82-1.82h.09c-.335-1.59.68-3.148 2.27-3.483s3.148.68 3.483 2.27c.02.097.036.195.046.293 1.252-.025 2.29.97 2.314 2.224.017.868-.462 1.67-1.235 2.066H7.87c-.54-.33-.87-.917-.87-1.55z"})));break;case"gridicons-product":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zM9 11h6c0 1.105-.895 2-2 2h-2c-1.105 0-2-.895-2-2z"})));break;case"gridicons-quote":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.77-.692-1.327-.817-.56-.124-1.074-.13-1.54-.022-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1-.345 2.04-.217 3.1.165 1.4.615 2.52 1.35 3.35.732.833 1.646 1.25 2.742 1.25.967 0 1.768-.29 2.402-.876.627-.576.942-1.365.942-2.368v.01z"})));break;case"gridicons-read-more":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"})));break;case"gridicons-reader-follow-conversation":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 14v-3h-2v3h-3v2h3v3h2v-3h3v-2"}),s.default.createElement("path",{d:"M13 16h-2l-5 5v-5H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v4h-4v3h-3v4z"})));break;case"gridicons-reader-follow":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M23 16v2h-3v3h-2v-3h-3v-2h3v-3h2v3h3zM20 2v9h-4v3h-3v4H4c-1.1 0-2-.9-2-2V2h18zM8 13v-1H4v1h4zm3-3H4v1h7v-1zm0-2H4v1h7V8zm7-4H4v2h14V4z"})));break;case"gridicons-reader-following-conversation":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16.8 14.5l3.2-3.2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h2v5l8.7-8.7 2.1 2.2z"}),s.default.createElement("path",{d:"M22.6 11.1l-6.1 6.1-2.1-2.2-1.4 1.4 3.5 3.6 7.5-7.6"})));break;case"gridicons-reader-following":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M23 13.482L15.508 21 12 17.4l1.412-1.388 2.106 2.188 6.094-6.094L23 13.482zm-7.455 1.862L20 10.89V2H2v14c0 1.1.9 2 2 2h4.538l4.913-4.832 2.095 2.176zM8 13H4v-1h4v1zm3-2H4v-1h7v1zm0-2H4V8h7v1zm7-3H4V4h14v2z"})));break;case"gridicons-reader":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 4v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4H3zm7 11H5v-1h5v1zm2-2H5v-1h7v1zm0-2H5v-1h7v1zm7 4h-5v-5h5v5zm0-7H5V6h14v2z"})));break;case"gridicons-reblog":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22.086 9.914L20 7.828V18c0 1.105-.895 2-2 2h-7v-2h7V7.828l-2.086 2.086L14.5 8.5 19 4l4.5 4.5-1.414 1.414zM6 16.172V6h7V4H6c-1.105 0-2 .895-2 2v10.172l-2.086-2.086L.5 15.5 5 20l4.5-4.5-1.414-1.414L6 16.172z"})));break;case"gridicons-redo":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 6v3.586L14.343 5.93C13.17 4.756 11.636 4.17 10.1 4.17s-3.07.585-4.242 1.757c-2.343 2.342-2.343 6.14 0 8.484l5.364 5.364 1.414-1.414L7.272 13c-1.56-1.56-1.56-4.097 0-5.657.755-.755 1.76-1.172 2.828-1.172 1.068 0 2.073.417 2.828 1.173L16.586 11H13v2h7V6h-2z"})));break;case"gridicons-refresh":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"})));break;case"gridicons-refund":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13.91 2.91L11.83 5H14c4.418 0 8 3.582 8 8h-2c0-3.314-2.686-6-6-6h-2.17l2.09 2.09-1.42 1.41L8 6l1.41-1.41L12.5 1.5l1.41 1.41zM2 12v10h16V12H2zm2 6.56v-3.11c.6-.35 1.1-.85 1.45-1.45h9.1c.35.6.85 1.1 1.45 1.45v3.11c-.593.35-1.085.845-1.43 1.44H5.45c-.35-.597-.85-1.094-1.45-1.44zm6 .44c.828 0 1.5-.895 1.5-2s-.672-2-1.5-2-1.5.895-1.5 2 .672 2 1.5 2z"})));break;case"gridicons-reply":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 16h7.2l-2.6 2.6L15 20l5-5-5-5-1.4 1.4 2.6 2.6H9c-2.2 0-4-1.8-4-4s1.8-4 4-4h2V4H9c-3.3 0-6 2.7-6 6s2.7 6 6 6z"})));break;case"gridicons-resize":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));break;case"gridicons-rotate":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 14v6c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-6c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2zM13.914 2.914L11.828 5H14c4.418 0 8 3.582 8 8h-2c0-3.308-2.692-6-6-6h-2.172l2.086 2.086L12.5 10.5 8 6l1.414-1.414L12.5 1.5l1.414 1.414z"})));break;case"gridicons-scheduled":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10.498 18l-3.705-3.704 1.415-1.415 2.294 2.295 5.293-5.293 1.415 1.415L10.498 18zM21 6v13c0 1.104-.896 2-2 2H5c-1.104 0-2-.896-2-2V6c0-1.104.896-2 2-2h1V2h2v2h8V2h2v2h1c1.104 0 2 .896 2 2zm-2 2H5v11h14V8z"})));break;case"gridicons-search":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})));break;case"gridicons-share-computer":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h6v2H7v2h10v-2h-3v-2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 14H4V4h16zm-3.25-3a1.75 1.75 0 0 1-3.5 0L10 11.36a1.71 1.71 0 1 1 0-2.71L13.25 7a1.77 1.77 0 1 1 .68 1.37L10.71 10l3.22 1.61A1.74 1.74 0 0 1 16.75 13z"})));break;case"gridicons-share-ios":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 8h2c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-9c0-1.105.895-2 2-2h2v2H5v9h14v-9h-2V8zM6.5 5.5l1.414 1.414L11 3.828V14h2V3.828l3.086 3.086L17.5 5.5 12 0 6.5 5.5z"})));break;case"gridicons-share":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 16c-.788 0-1.5.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118c-.053.223-.088.453-.088.692 0 1.657 1.343 3 3 3s3-1.343 3-3-1.343-3-3-3z"})));break;case"gridicons-shipping":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 8h-2V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10h2c0 1.657 1.343 3 3 3s3-1.343 3-3h4c0 1.657 1.343 3 3 3s3-1.343 3-3h2v-5l-4-4zM7 18.5c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5zM4 14V7h10v7H4zm13 4.5c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5z"})));break;case"gridicons-shutter":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18.9 4.8s-.7 5.6-3.5 10.2c1.7-.3 3.9-.9 6.6-2 0 0 .7-4.6-3.1-8.2zm-6 2.8c-1.1-1.3-2.7-3-5-4.7C5.1 4.2 3 6.6 2.3 9.6 7 7.7 11 7.5 12.9 7.6zm3.4 2.9c.6-1.6 1.2-3.9 1.6-6.7-4.1-3-8.6-1.5-8.6-1.5s4.4 3.4 7 8.2zm-5.2 6c1.1 1.3 2.7 3 5 4.7 0 0 4.3-1.6 5.6-6.7 0-.1-5.3 2.1-10.6 2zm-3.4-3.1c-.6 1.6-1.2 3.8-1.5 6.7 0 0 3.6 2.9 8.6 1.5 0 0-4.6-3.4-7.1-8.2zM2 11.1s-.7 4.5 3.1 8.2c0 0 .7-5.7 3.5-10.3-1.7.3-4 .9-6.6 2.1z"})));break;case"gridicons-sign-out":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16 17v2c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v2h-2V5H5v14h9v-2h2zm2.5-10.5l-1.414 1.414L20.172 11H10v2h10.172l-3.086 3.086L18.5 17.5 24 12l-5.5-5.5z"})));break;case"gridicons-spam":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-speaker":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 8v6c1.7 0 3-1.3 3-3s-1.3-3-3-3zM11 7H4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h1v3c0 1.1.9 2 2 2h2v-5h2l4 4h2V3h-2l-4 4z"})));break;case"gridicons-special-character":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12.005 7.418c-1.237 0-2.19.376-2.86 1.128s-1.005 1.812-1.005 3.18c0 1.387.226 2.513.677 3.377.45.865 1.135 1.543 2.05 2.036V20H5v-2.666h3.12c-1.04-.636-1.842-1.502-2.405-2.6-.564-1.097-.846-2.322-.846-3.676 0-1.258.29-2.363.875-3.317.585-.952 1.417-1.685 2.497-2.198s2.334-.77 3.763-.77c2.18 0 3.915.572 5.204 1.713s1.932 2.673 1.932 4.594c0 1.353-.283 2.57-.852 3.65-.567 1.08-1.38 1.947-2.44 2.603H19V20h-5.908v-2.86c.95-.493 1.65-1.18 2.102-2.062s.677-2.006.677-3.374c0-1.36-.336-2.415-1.01-3.164-.672-.747-1.624-1.122-2.855-1.122z"})));break;case"gridicons-star-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-star":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-stats-alt":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2V7h2v10zm4 0h-2v-7h2v7z"})));break;case"gridicons-status":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zM7.55 13c-.02.166-.05.33-.05.5 0 2.485 2.015 4.5 4.5 4.5s4.5-2.015 4.5-4.5c0-.17-.032-.334-.05-.5h-8.9zM10 10V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1zm6 0V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1z"})));break;case"gridicons-strikethrough":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"})));break;case"gridicons-sync":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"})));break;case"gridicons-tablet":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-tag":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})));break;case"gridicons-text-color":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 19h18v3H3v-3zM15.82 17h3.424L14 3h-4L4.756 17H8.18l1.067-3.5h5.506L15.82 17zm-1.952-6h-3.73l1.868-5.725L13.868 11z"})));break;case"gridicons-themes":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"})));break;case"gridicons-thumbs-up":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6.7 22H2v-9h2l2.7 9zM20 9h-6V5c0-1.657-1.343-3-3-3h-1v4L7.1 9.625c-.712.89-1.1 1.996-1.1 3.135V14l2.1 7h8.337c1.836 0 3.435-1.25 3.88-3.03l1.622-6.485C22.254 10.223 21.3 9 20 9z"})));break;case"gridicons-time":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm3.8 13.4L13 11.667V7h-2v5.333l3.2 4.266 1.6-1.2z"})));break;case"gridicons-trash":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})));break;case"gridicons-trophy":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 5.062V3H6v2.062H2V8c0 2.525 1.89 4.598 4.324 4.932.7 2.058 2.485 3.61 4.676 3.978V18c0 1.105-.895 2-2 2H8v2h8v-2h-1c-1.105 0-2-.895-2-2v-1.09c2.19-.368 3.976-1.92 4.676-3.978C20.11 12.598 22 10.525 22 8V5.062h-4zM4 8v-.938h2v3.766C4.836 10.416 4 9.304 4 8zm16 0c0 1.304-.836 2.416-2 2.83V7.06h2V8z"})));break;case"gridicons-types":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 17c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585c.433-2.783 2.632-4.982 5.415-5.415z"})));break;case"gridicons-underline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 19v2h16v-2H4zM18 3v8c0 3.314-2.686 6-6 6s-6-2.686-6-6V3h3v8c0 1.654 1.346 3 3 3s3-1.346 3-3V3h3z"})));break;case"gridicons-undo":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18.142 5.93C16.97 4.756 15.435 4.17 13.9 4.17s-3.072.586-4.244 1.757L6 9.585V6H4v7h7v-2H7.414l3.657-3.657c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657l-5.364 5.364 1.414 1.414 5.364-5.364c2.345-2.343 2.345-6.142.002-8.485z"})));break;case"gridicons-user-add":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("circle",{cx:"15",cy:"8",r:"4"}),s.default.createElement("path",{d:"M15 20s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2zM6 10V7H4v3H1v2h3v3h2v-3h3v-2z"})));break;case"gridicons-user-circle":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm0 18.5c-4.694 0-8.5-3.806-8.5-8.5S7.306 3.5 12 3.5s8.5 3.806 8.5 8.5-3.806 8.5-8.5 8.5zm0-8c-3.038 0-5.5 1.728-5.5 3.5s2.462 3.5 5.5 3.5 5.5-1.728 5.5-3.5-2.462-3.5-5.5-3.5zm0-.5c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z"})));break;case"gridicons-user":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm0 16s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})));break;case"gridicons-video-camera":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 9V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h11c1.105 0 2-.895 2-2v-2l5 4V5l-5 4z"})));break;case"gridicons-video-remove":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19.42 4.59l1.167-1.167L22 4.837 20 6.84V18c0 1.105-.895 2-2 2v-2h-2v2H6.84l-2.007 2.006-1.414-1.414 1.17-1.172-.01-.01L8 16 18 6l1.41-1.42.01.01zM15.84 11H18V8.84L15.84 11zM16 8.01l.01-.01H16v.01zM6 15.17l-2 2V6c0-1.105.895-2 2-2v2h2V4h9.17l-9 9H6v2.17zM6 8v3h2V8H6zm12 8v-3h-2v3h2z"})));break;case"gridicons-video":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M8 4h8v1.997h2V4c1.105 0 2 .896 2 2v12c0 1.104-.895 2-2 2v-2.003h-2V20H8v-2.003H6V20c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2v1.997h2V4zm2 11l4.5-3L10 9v6zm8 .997v-3h-2v3h2zm0-5v-3h-2v3h2zm-10 5v-3H6v3h2zm0-5v-3H6v3h2z"})));break;case"gridicons-visible":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 6C5.188 6 1 12 1 12s4.188 6 11 6 11-6 11-6-4.188-6-11-6zm0 10c-3.943 0-6.926-2.484-8.38-4 1.04-1.085 2.863-2.657 5.255-3.47C8.335 9.214 8 10.064 8 11c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.937-.335-1.787-.875-2.47 2.393.813 4.216 2.386 5.254 3.47-1.456 1.518-4.438 4-8.38 4z"})));break;case"gridicons-zoom-in":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M15.8 13.8c.7-1.1 1.2-2.4 1.2-3.8 0-3.9-3.1-7-7-7s-7 3.1-7 7 3.1 7 7 7c1.4 0 2.7-.4 3.8-1.2L19 21l2-2-5.2-5.2zM10 15c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5z"}),s.default.createElement("path",{d:"M11 7H9v2H7v2h2v2h2v-2h2V9h-2"})));break;case"gridicons-zoom-out":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 10c0 3.9 3.1 7 7 7 1.4 0 2.7-.5 3.8-1.2L19 21l2-2-5.2-5.2c.8-1.1 1.2-2.4 1.2-3.8 0-3.9-3.1-7-7-7s-7 3.1-7 7zm2 0c0-2.8 2.2-5 5-5s5 2.2 5 5-2.2 5-5 5-5-2.2-5-5z"}),s.default.createElement("path",{d:"M7 9h6v2H7z"})))}return i}}]),t}();i.defaultProps={size:24},i.propTypes={icon:h.default.string.isRequired,size:h.default.number,onClick:h.default.func,className:h.default.string},t.default=i,e.exports=t.default},649:function(e,t){function l(t,a){return e.exports=l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(t,a)}e.exports=l},709:function(e,t){function l(e){return(l="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 a(t){return"function"===typeof Symbol&&"symbol"===l(Symbol.iterator)?e.exports=a=function(e){return l(e)}:e.exports=a=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":l(e)},a(t)}e.exports=a},710:function(e,t){e.exports=function(e,t){if(null==e)return{};var l,a,c={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(c[l]=e[l]);return c}}}]);
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{526:function(e,t,l){!function(){"use strict";var t={}.hasOwnProperty;function l(){for(var e=[],a=0;a<arguments.length;a++){var c=arguments[a];if(c){var n=typeof c;if("string"===n||"number"===n)e.push(c);else if(Array.isArray(c)&&c.length){var s=l.apply(null,c);s&&e.push(s)}else if("object"===n)for(var h in c)t.call(c,h)&&c[h]&&e.push(h)}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):"function"===typeof define&&"object"===typeof define.amd&&define.amd?define("classnames",[],function(){return l}):window.classNames=l}()},527:function(e,t){function l(t){return e.exports=l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(t)}e.exports=l},528:function(e,t,l){var a=l(708),c=l(531);e.exports=function(e,t){return!t||"object"!==a(t)&&"function"!==typeof t?c(e):t}},529:function(e,t,l){var a=l(648);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&&a(e,t)}},530:function(e,t){function l(){return e.exports=l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},l.apply(this,arguments)}e.exports=l},531: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}},533:function(e,t,l){var a=l(709);e.exports=function(e,t){if(null==e)return{};var l,c,n=a(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(c=0;c<s.length;c++)l=s[c],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(n[l]=e[l])}return n}},534:function(e,t,l){"use strict";var a=Object.assign||function(e){for(var t,l=1;l<arguments.length;l++)for(var a in t=arguments[l])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},c=function(){function e(e,t){for(var l,a=0;a<t.length;a++)(l=t[a]).enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}return function(t,l,a){return l&&e(t.prototype,l),a&&e(t,a),t}}(),n=l(10),s=r(n),h=r(l(12));function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.PureComponent),c(t,[{key:"needsOffset",value:function(e,t){return!!(0<=["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle","gridicons-reader-follow","gridicons-reader-following"].indexOf(e))&&0==t%18}},{key:"needsOffsetX",value:function(e,t){return!!(0<=["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"].indexOf(e))&&0==t%18}},{key:"needsOffsetY",value:function(e,t){return!!(0<=["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"].indexOf(e))&&0==t%18}},{key:"render",value:function(){var e=this.props,t=e.size,l=e.onClick,c=e.icon,n=e.className,h=function(e,t){var l={};for(var a in e)0<=t.indexOf(a)||Object.prototype.hasOwnProperty.call(e,a)&&(l[a]=e[a]);return l}(e,["size","onClick","icon","className"]),r="gridicons-"+c,i=void 0,d=["gridicon",r,n,!!this.needsOffset(r,t)&&"needs-offset",!!this.needsOffsetX(r,t)&&"needs-offset-x",!!this.needsOffsetY(r,t)&&"needs-offset-y"].filter(Boolean).join(" ");switch(r){default:i=s.default.createElement("svg",a({height:t,width:t},h));break;case"gridicons-add-image":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M23 4v2h-3v3h-2V6h-3V4h3V1h2v3h3zm-8.5 7c.828 0 1.5-.672 1.5-1.5S15.328 8 14.5 8 13 8.672 13 9.5s.672 1.5 1.5 1.5zm3.5 3.234l-.513-.57c-.794-.885-2.18-.885-2.976 0l-.655.73L9 9l-3 3.333V6h7V4H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-7h-2v3.234z"})));break;case"gridicons-add-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})));break;case"gridicons-add":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})));break;case"gridicons-align-center":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11 4v12.17l-5.59-5.59L4 12l8 8 8-8-1.41-1.41L13 16.17V4h-2z"})));break;case"gridicons-arrow-left":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})));break;case"gridicons-arrow-right":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})));break;case"gridicons-arrow-up":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})));break;case"gridicons-aside":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14 20l6-6V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h8zM6 6h12v6h-4c-1.105 0-2 .895-2 2v4H6V6zm10 4H8V8h8v2z"})));break;case"gridicons-attachment":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14 1c-2.762 0-5 2.238-5 5v10c0 1.657 1.343 3 3 3s2.99-1.343 2.99-3V6H13v10c0 .553-.447 1-1 1-.553 0-1-.447-1-1V6c0-1.657 1.343-3 3-3s3 1.343 3 3v10.125C17 18.887 14.762 21 12 21s-5-2.238-5-5v-5H5v5c0 3.866 3.134 7 7 7s6.99-3.134 6.99-7V6c0-2.762-2.228-5-4.99-5z"})));break;case"gridicons-audio":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})));break;case"gridicons-bell":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6.14 14.97l2.828 2.827c-.362.362-.862.586-1.414.586-1.105 0-2-.895-2-2 0-.552.224-1.052.586-1.414zm8.867 5.324L14.3 21 3 9.7l.706-.707 1.102.157c.754.108 1.69-.122 2.077-.51l3.885-3.884c2.34-2.34 6.135-2.34 8.475 0s2.34 6.135 0 8.475l-3.885 3.886c-.388.388-.618 1.323-.51 2.077l.157 1.1z"})));break;case"gridicons-block":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})));break;case"gridicons-bold":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M7 5.01h4.547c2.126 0 3.67.302 4.632.906.96.605 1.44 1.567 1.44 2.887 0 .896-.21 1.63-.63 2.205-.42.574-.98.92-1.678 1.036v.103c.95.212 1.637.608 2.057 1.19.42.58.63 1.35.63 2.315 0 1.367-.494 2.434-1.482 3.2-.99.765-2.332 1.148-4.027 1.148H7V5.01zm3 5.936h2.027c.862 0 1.486-.133 1.872-.4.386-.267.578-.708.578-1.323 0-.574-.21-.986-.63-1.236-.42-.25-1.087-.374-1.996-.374H10v3.333zm0 2.523v3.905h2.253c.876 0 1.52-.167 1.94-.502.416-.335.625-.848.625-1.54 0-1.243-.89-1.864-2.668-1.864H10z"})));break;case"gridicons-book":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 3h2v18H4zM18 3H7v18h11c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-6V8h6v1zm0-2h-6V6h6v1z"})));break;case"gridicons-bookmark-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 5v12.554l-5-2.857-5 2.857V5h10m0-2H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-bookmark":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-briefcase":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14 15h-4v-2H2v6c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2v-6h-8v2zm6-9h-2V4c0-1.105-.895-2-2-2H8c-1.105 0-2 .895-2 2v2H4c-1.105 0-2 .895-2 2v4h20V8c0-1.105-.895-2-2-2zm-4 0H8V4h8v2z"})));break;case"gridicons-bug":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 14h4v-2h-4v-2h1a2 2 0 0 0 2-2V6h-2v2H5V6H3v2a2 2 0 0 0 2 2h1v2H2v2h4v1a6 6 0 0 0 .09 1H5a2 2 0 0 0-2 2v2h2v-2h1.81A6 6 0 0 0 11 20.91V10h2v10.91A6 6 0 0 0 17.19 18H19v2h2v-2a2 2 0 0 0-2-2h-1.09a6 6 0 0 0 .09-1zM12 2a4 4 0 0 0-4 4h8a4 4 0 0 0-4-4z"})));break;case"gridicons-calendar":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})));break;case"gridicons-camera":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm5-5v11c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2V4h4v1h2l1-2h6l1 2h2c1.1 0 2 .9 2 2zM7.5 9c0-.8-.7-1.5-1.5-1.5S4.5 8.2 4.5 9s.7 1.5 1.5 1.5S7.5 9.8 7.5 9zM19 12c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z"})));break;case"gridicons-caption":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 15l2-2v5c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h13l-2 2H4v12h16v-3zm2.44-8.56l-.88-.88c-.586-.585-1.534-.585-2.12 0L12 13v2H6v2h9v-1l7.44-7.44c.585-.586.585-1.534 0-2.12z"})));break;case"gridicons-cart":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})));break;case"gridicons-chat":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 12c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2H9v3l-3-3H3zM21 18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2h-6v1c0 2.2-1.8 4-4 4v2c0 1.1.9 2 2 2h2v3l3-3h3z"})));break;case"gridicons-checkmark-circle":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})));break;case"gridicons-checkmark":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})));break;case"gridicons-chevron-down":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10.837 10.163l-4.6 4.6L10 4h4l.777 2.223-2.144 2.144-.627-2.092-1.17 3.888zm5.495.506L19.244 19H15.82l-1.05-3.5H11.5L5 22l-1.5-1.5 17-17L22 5l-5.668 5.67zm-2.31 2.31l-.032.03.032-.01v-.02z"})));break;case"gridicons-clipboard":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16 18H8v-2h8v2zm0-6H8v2h8v-2zm2-9h-2v2h2v15H6V5h2V3H6c-1.105 0-2 .895-2 2v15c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-4 2V4c0-1.105-.895-2-2-2s-2 .895-2 2v1c-1.105 0-2 .895-2 2v1h8V7c0-1.105-.895-2-2-2z"})));break;case"gridicons-cloud-download":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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-6 7l-4-5h3V8h2v3h3l-4 5z"})));break;case"gridicons-cloud-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11.5 5c2.336 0 4.304 1.825 4.48 4.154l.142 1.86 1.867-.012h.092C19.698 11.043 21 12.37 21 14c0 .748-.28 1.452-.783 2H3.28c-.156-.256-.28-.59-.28-1 0-1.074.85-1.953 1.915-1.998.06.007.118.012.178.015l2.66.124-.622-2.587C7.044 10.186 7 9.843 7 9.5 7 7.02 9.02 5 11.5 5m0-2C7.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-5l-.025.002C17.72 5.646 14.922 3 11.5 3z"})));break;case"gridicons-cloud-upload":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-cloud":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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-5z"})));break;case"gridicons-code":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M23 12l-5.45 6.5L16 17.21 20.39 12 16 6.79l1.55-1.29zM8 6.79L6.45 5.5 1 12l5.45 6.5L8 17.21 3.61 12zm.45 14.61l1.93.52L15.55 2.6l-1.93-.52z"})));break;case"gridicons-cog":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 12c0-.568-.06-1.122-.174-1.656l1.834-1.612-2-3.464-2.322.786c-.82-.736-1.787-1.308-2.86-1.657L14 2h-4l-.48 2.396c-1.07.35-2.04.92-2.858 1.657L4.34 5.268l-2 3.464 1.834 1.612C4.06 10.878 4 11.432 4 12s.06 1.122.174 1.656L2.34 15.268l2 3.464 2.322-.786c.82.736 1.787 1.308 2.86 1.657L10 22h4l.48-2.396c1.07-.35 2.038-.92 2.858-1.657l2.322.786 2-3.464-1.834-1.613c.113-.535.174-1.09.174-1.657zm-8 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})));break;case"gridicons-comment":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 16l-5 5v-5H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v9c0 1.1-.9 2-2 2h-7z"})));break;case"gridicons-computer":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-coupon":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13 16v2h-2v-2h2zm3-3h2v-2h-2v2zm2 8h-2v2h2v-2zm3-5v2h2v-2h-2zm-1-3c.552 0 1 .448 1 1h2c0-1.657-1.343-3-3-3v2zm1 7c0 .552-.448 1-1 1v2c1.657 0 3-1.343 3-3h-2zm-7 1c-.552 0-1-.448-1-1h-2c0 1.657 1.343 3 3 3v-2zm3.21-5.21c-.78.78-2.047.782-2.828.002l-.002-.002L10 11.41l-1.43 1.44c.28.506.427 1.073.43 1.65C9 16.433 7.433 18 5.5 18S2 16.433 2 14.5 3.567 11 5.5 11c.577.003 1.144.15 1.65.43L8.59 10 7.15 8.57c-.506.28-1.073.427-1.65.43C3.567 9 2 7.433 2 5.5S3.567 2 5.5 2 9 3.567 9 5.5c-.003.577-.15 1.144-.43 1.65L10 8.59l3.88-3.88c.78-.78 2.047-.782 2.828-.002l.002.002-5.3 5.29 5.8 5.79zM5.5 7C6.328 7 7 6.328 7 5.5S6.328 4 5.5 4 4 4.672 4 5.5 4.672 7 5.5 7zM7 14.5c0-.828-.672-1.5-1.5-1.5S4 13.672 4 14.5 4.672 16 5.5 16 7 15.328 7 14.5z"})));break;case"gridicons-create":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 14v5c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h5v2H5v14h14v-5h2z"}),s.default.createElement("path",{d:"M21 7h-4V3h-2v4h-4v2h4v4h2V9h4"})));break;case"gridicons-credit-card":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})));break;case"gridicons-crop":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 16h-4V8c0-1.105-.895-2-2-2H8V2H6v4H2v2h4v8c0 1.105.895 2 2 2h8v4h2v-4h4v-2zM8 16V8h8v8H8z"})));break;case"gridicons-cross-circle":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19.1 4.9C15.2 1 8.8 1 4.9 4.9S1 15.2 4.9 19.1s10.2 3.9 14.1 0 4-10.3.1-14.2zm-4.3 11.3L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8 2.8 2.8-1.4 1.4z"})));break;case"gridicons-cross-small":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})));break;case"gridicons-cross":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"})));break;case"gridicons-custom-post-type":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"})));break;case"gridicons-customize":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M2 6c0-1.505.78-3.08 2-4 0 .845.69 2 2 2 1.657 0 3 1.343 3 3 0 .386-.08.752-.212 1.09.74.594 1.476 1.19 2.19 1.81L8.9 11.98c-.62-.716-1.214-1.454-1.807-2.192C6.753 9.92 6.387 10 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.34-1.34c.607.304 1.283.492 2.008.492 2.485 0 4.5-2.015 4.5-4.5 0-.725-.188-1.4-.493-2.007L18 9l-2-2 3.507-3.507C18.9 3.188 18.225 3 17.5 3 15.015 3 13 5.015 13 7.5c0 .725.188 1.4.493 2.007L3 20l2 2 6.848-6.848c1.885 1.928 3.874 3.753 5.977 5.45l1.425 1.148 1.5-1.5-1.15-1.425c-1.695-2.103-3.52-4.092-5.448-5.977z"})));break;case"gridicons-domains":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm6.918 6h-3.215c-.188-1.424-.42-2.65-.565-3.357 1.593.682 2.916 1.87 3.78 3.357zm-5.904-3.928c.068.352.387 2.038.645 3.928h-3.32c.26-1.89.578-3.576.646-3.928C11.32 4.03 11.656 4 12 4s.68.03 1.014.072zM14 12c0 .598-.043 1.286-.11 2h-3.78c-.067-.714-.11-1.402-.11-2s.043-1.286.11-2h3.78c.067.714.11 1.402.11 2zM8.862 4.643C8.717 5.35 8.485 6.576 8.297 8H5.082c.864-1.487 2.187-2.675 3.78-3.357zM4.262 10h3.822c-.05.668-.084 1.344-.084 2s.033 1.332.085 2H4.263C4.097 13.36 4 12.692 4 12s.098-1.36.263-2zm.82 6h3.215c.188 1.424.42 2.65.565 3.357-1.593-.682-2.916-1.87-3.78-3.357zm5.904 3.928c-.068-.353-.388-2.038-.645-3.928h3.32c-.26 1.89-.578 3.576-.646 3.928-.333.043-.67.072-1.014.072s-.68-.03-1.014-.072zm4.152-.57c.145-.708.377-1.934.565-3.358h3.215c-.864 1.487-2.187 2.675-3.78 3.357zm4.6-5.358h-3.822c.05-.668.084-1.344.084-2s-.033-1.332-.085-2h3.82c.167.64.265 1.308.265 2s-.097 1.36-.263 2z"})));break;case"gridicons-dropdown":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis-circle":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM7.5 13.5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5S9 11.2 9 12s-.7 1.5-1.5 1.5zm4.5 0c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm4.5 0c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5z"})));break;case"gridicons-ellipsis":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M7 12c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2zm12-2c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-7 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2z"})));break;case"gridicons-external":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})));break;case"gridicons-filter":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18.595 4H5.415c-.552-.003-1.003.442-1.006.994-.002.27.104.527.295.716l5.3 5.29v6l4 4V11l5.29-5.29c.392-.39.395-1.022.006-1.414-.186-.188-.44-.295-.705-.296z"})));break;case"gridicons-flag":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})));break;case"gridicons-flip-horizontal":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 18v-5h3v-2h-3V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v5H1v2h3v5c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2zM6 6h12v5H6V6z"})));break;case"gridicons-flip-vertical":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 4h-5V1h-2v3H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h5v3h2v-3h5c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 18V6h5v12H6z"})));break;case"gridicons-folder-multiple":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 8c-1.105 0-2 .895-2 2v10c0 1.1.9 2 2 2h14c1.105 0 2-.895 2-2H4V8zm16 10H8c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2h7c1.105 0 2 .895 2 2v8c0 1.105-.895 2-2 2z"})));break;case"gridicons-folder":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})));break;case"gridicons-fullscreen-exit":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14 10V4h2v2.59l3.29-3.29 1.41 1.41L17.41 8H20v2zM4 10V8h2.59l-3.3-3.29 1.42-1.42L8 6.59V4h2v6zm16 4v2h-2.59l3.29 3.29-1.41 1.41L16 17.41V20h-2v-6zm-10 0v6H8v-2.59l-3.29 3.3-1.42-1.42L6.59 16H4v-2z"})));break;case"gridicons-fullscreen":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 3v6h-2V6.41l-3.29 3.3-1.42-1.42L17.59 5H15V3zM3 3v6h2V6.41l3.29 3.3 1.42-1.42L6.41 5H9V3zm18 18v-6h-2v2.59l-3.29-3.29-1.41 1.41L17.59 19H15v2zM9 21v-2H6.41l3.29-3.29-1.41-1.42L5 17.59V15H3v6z"})));break;case"gridicons-gift":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 6h-4.8c.5-.5.8-1.2.8-2 0-1.7-1.3-3-3-3s-3 1.3-3 3c0-1.7-1.3-3-3-3S6 2.3 6 4c0 .8.3 1.5.8 2H2v6h1v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8h1V6zm-2 4h-7V8h7v2zm-5-7c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM9 3c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM4 8h7v2H4V8zm1 4h6v8H5v-8zm14 8h-6v-8h6v8z"})));break;case"gridicons-globe":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.93c-3.94-.494-7-3.858-7-7.93l1 1h2v-2h2l3-3V6h-2L9 5v-.41C9.927 4.21 10.94 4 12 4s2.073.212 3 .59V6l-1 1v2l1 1 3.13-3.13c.752.897 1.304 1.964 1.606 3.13H18l-2 2v2l1 1h2l.286.286C18.03 18.06 15.24 20 12 20z"})));break;case"gridicons-grid":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M8 8H4V4h4v4zm6-4h-4v4h4V4zm6 0h-4v4h4V4zM8 10H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4zM8 16H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4z"})));break;case"gridicons-heading-h1":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11 7h2v10h-2v-4H7v4H5V7h2v4h4V7zm6.57 0c-.594.95-1.504 1.658-2.57 2v1h2v7h2V7h-1.43z"})));break;case"gridicons-heading-h2":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 7h2v10H9v-4H5v4H3V7h2v4h4V7zm8 8c.51-.41.6-.62 1.06-1.05.437-.4.848-.828 1.23-1.28.334-.39.62-.82.85-1.28.2-.39.305-.822.31-1.26.005-.44-.087-.878-.27-1.28-.177-.385-.437-.726-.76-1-.346-.283-.743-.497-1.17-.63-.485-.153-.99-.227-1.5-.22-.36 0-.717.033-1.07.1-.343.06-.678.158-1 .29-.304.13-.593.295-.86.49-.287.21-.56.437-.82.68l1.24 1.22c.308-.268.643-.502 1-.7.35-.2.747-.304 1.15-.3.455-.03.906.106 1.27.38.31.278.477.684.45 1.1-.014.396-.14.78-.36 1.11-.285.453-.62.872-1 1.25-.44.43-.98.92-1.59 1.43-.61.51-1.41 1.06-2.16 1.65V17h8v-2h-4z"})));break;case"gridicons-heading-h3":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14.11 14.218c.355.287.75.523 1.17.7.434.18.9.273 1.37.27.484.017.965-.086 1.4-.3.333-.146.55-.476.55-.84.003-.203-.05-.403-.15-.58-.123-.19-.3-.34-.51-.43-.32-.137-.655-.228-1-.27-.503-.073-1.012-.106-1.52-.1v-1.57c.742.052 1.485-.07 2.17-.36.37-.164.615-.525.63-.93.026-.318-.12-.627-.38-.81-.34-.203-.734-.3-1.13-.28-.395.013-.784.108-1.14.28-.375.167-.73.375-1.06.62l-1.22-1.39c.5-.377 1.053-.68 1.64-.9.608-.224 1.252-.336 1.9-.33.525-.007 1.05.05 1.56.17.43.1.84.277 1.21.52.325.21.595.495.79.83.19.342.287.73.28 1.12.01.48-.177.943-.52 1.28-.417.39-.916.685-1.46.86v.06c.61.14 1.175.425 1.65.83.437.382.68.94.66 1.52.005.42-.113.835-.34 1.19-.23.357-.538.657-.9.88-.408.253-.853.44-1.32.55-.514.128-1.04.192-1.57.19-.786.02-1.57-.106-2.31-.37-.59-.214-1.126-.556-1.57-1l1.12-1.41zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})));break;case"gridicons-heading-h4":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11 17H9v-4H5v4H3V7h2v4h4V7h2v10zm10-2h-1v2h-2v-2h-5v-2l4.05-6H20v6h1v2zm-3-2V9l-2.79 4H18z"})));break;case"gridicons-heading-h5":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14.09 14.19c.352.27.73.5 1.13.69.42.196.877.296 1.34.29.51.014 1.01-.125 1.44-.4.378-.253.594-.686.57-1.14.02-.45-.197-.877-.57-1.13-.406-.274-.89-.41-1.38-.39h-.47c-.135.014-.27.04-.4.08l-.41.15-.48.23-1.02-.57.28-5h6.4v1.92h-4.31L16 10.76c.222-.077.45-.138.68-.18.235-.037.472-.054.71-.05.463-.004.924.057 1.37.18.41.115.798.305 1.14.56.33.248.597.57.78.94.212.422.322.888.32 1.36.007.497-.11.99-.34 1.43-.224.417-.534.782-.91 1.07-.393.3-.837.527-1.31.67-.497.164-1.016.252-1.54.26-.788.023-1.573-.11-2.31-.39-.584-.238-1.122-.577-1.59-1l1.09-1.42zM11 17H9v-4H5v4H3V7h2v4h4V7h2v10z"})));break;case"gridicons-heading-h6":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11 17H9v-4H5v4H3V7h2v4h4V7h2v10zm8.58-7.508c-.248-.204-.524-.37-.82-.49-.625-.242-1.317-.242-1.94 0-.3.11-.566.287-.78.52-.245.27-.432.586-.55.93-.16.46-.243.943-.25 1.43.367-.33.79-.59 1.25-.77.405-.17.84-.262 1.28-.27.415-.006.83.048 1.23.16.364.118.704.304 1 .55.295.253.528.57.68.93.193.403.302.843.32 1.29.01.468-.094.93-.3 1.35-.206.387-.49.727-.83 1-.357.287-.764.504-1.2.64-.98.31-2.033.293-3-.05-.507-.182-.968-.472-1.35-.85-.437-.416-.778-.92-1-1.48-.243-.693-.352-1.426-.32-2.16-.02-.797.11-1.59.38-2.34.215-.604.556-1.156 1-1.62.406-.416.897-.74 1.44-.95.54-.21 1.118-.314 1.7-.31.682-.02 1.36.096 2 .34.5.19.962.464 1.37.81l-1.31 1.34zm-2.39 5.84c.202 0 .405-.03.6-.09.183-.046.356-.128.51-.24.15-.136.27-.303.35-.49.092-.225.136-.467.13-.71.037-.405-.123-.804-.43-1.07-.328-.23-.72-.347-1.12-.33-.346-.002-.687.07-1 .21-.383.17-.724.418-1 .73.046.346.143.683.29 1 .108.23.257.44.44.62.152.15.337.26.54.33.225.055.46.068.69.04z"})));break;case"gridicons-heading":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-heart":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16.5 3c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-help-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm4 8c0-2.21-1.79-4-4-4s-4 1.79-4 4h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2c-.552 0-1 .448-1 1v2h2v-1.14c1.722-.447 3-1.998 3-3.86zm-3 6h-2v2h2v-2z"})));break;case"gridicons-help":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 16h-2v-2h2v2zm0-4.14V15h-2v-2c0-.552.448-1 1-1 1.103 0 2-.897 2-2s-.897-2-2-2-2 .897-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.862-1.278 3.413-3 3.86z"})));break;case"gridicons-history":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M2.12 13.526c.742 4.78 4.902 8.47 9.88 8.47 5.5 0 10-4.5 10-9.998S17.5 2 12 2C8.704 2 5.802 3.6 4 6V2H2.003L2 9h7V7H5.8c1.4-1.8 3.702-3 6.202-3C16.4 4 20 7.6 20 11.998s-3.6 8-8 8c-3.877 0-7.13-2.795-7.848-6.472H2.12z"}),s.default.createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})));break;case"gridicons-image-multiple":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})));break;case"gridicons-image-remove":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20.587 3.423L22 4.837 20 6.84V18c0 1.105-.895 2-2 2H6.84l-2.007 2.006-1.414-1.414 17.167-17.17zM12.42 14.42l1 1 1-1c.63-.504 1.536-.456 2.11.11L18 16V8.84l-5.58 5.58zM15.16 6H6v6.38l2.19-2.19 1.39 1.39L4 17.163V6c0-1.105.895-2 2-2h11.162l-2 2z"})));break;case"gridicons-image":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 6v12c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 0H6v6.38l2.19-2.19 5.23 5.23 1-1c.63-.504 1.536-.456 2.11.11L18 16V6zm-5 3.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5z"})));break;case"gridicons-indent-left":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 20h2V4h-2v16zM2 11h10.172l-2.086-2.086L11.5 7.5 16 12l-4.5 4.5-1.414-1.414L12.172 13H2v-2z"})));break;case"gridicons-indent-right":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6 4H4v16h2V4zm16 9H11.828l2.086 2.086L12.5 16.5 8 12l4.5-4.5 1.414 1.414L11.828 11H22v2z"})));break;case"gridicons-info-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})));break;case"gridicons-info":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-ink":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M5 15c0 3.866 3.134 7 7 7s7-3.134 7-7c0-1.387-.41-2.677-1.105-3.765h.007L12 2l-5.903 9.235h.007C5.41 12.323 5 13.613 5 15z"})));break;case"gridicons-institution":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10.536 5l-.427 2h1.5L9.262 18h-1.5l-.427 2h6.128l.426-2h-1.5l2.347-11h1.5l.427-2"})));break;case"gridicons-layout-blocks":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 7h-2V3c0-1.105-.895-2-2-2H7c-1.105 0-2 .895-2 2v2H3c-1.105 0-2 .895-2 2v4c0 1.105.895 2 2 2h2v8c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-2h2c1.105 0 2-.895 2-2V9c0-1.105-.895-2-2-2zm-4 14H7v-8h2c1.105 0 2-.895 2-2V7c0-1.105-.895-2-2-2H7V3h10v4h-2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h2v2zm4-4h-6V9h6v8z"})));break;case"gridicons-layout":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M8 20H5c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2v12c0 1.105-.895 2-2 2zm8-10h4c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2h-4c-1.105 0-2 .895-2 2v3c0 1.105.895 2 2 2zm5 10v-6c0-1.105-.895-2-2-2h-5c-1.105 0-2 .895-2 2v6c0 1.105.895 2 2 2h5c1.105 0 2-.895 2-2z"})));break;case"gridicons-link-break":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10 11l-2 2H7v-2h3zm9.64-3.64L22 5l-1.5-1.5-17 17L5 22l9-9h3v-2h-1l2-2c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-1.623-.97-3.013-2.36-3.64zM4.36 16.64L6 15c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4v2c0 1.623.97 3.013 2.36 3.64z"})));break;case"gridicons-link":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 13H7v-2h10v2zm1-6h-1c-1.63 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-2.21-1.79-4-4-4zM2 11v2c0 2.21 1.79 4 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4z"})));break;case"gridicons-list-checkmark":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9.5 15.5L5 20l-2.5-2.5 1.06-1.06L5 17.88l3.44-3.44L9.5 15.5zM10 5v2h11V5H10zm0 14h11v-2H10v2zm0-6h11v-2H10v2zM8.44 8.44L5 11.88l-1.44-1.44L2.5 11.5 5 14l4.5-4.5-1.06-1.06zm0-6L5 5.88 3.56 4.44 2.5 5.5 5 8l4.5-4.5-1.06-1.06z"})));break;case"gridicons-list-ordered":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M8 19h13v-2H8v2zm0-6h13v-2H8v2zm0-8v2h13V5H8zm-4.425.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H3.96L2.487 4.915l.6.738.487-.4zm.334 7.764c.474-.426.784-.715.93-.867.145-.153.26-.298.35-.436.087-.138.152-.278.194-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608s-.29-.32-.507-.417c-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067s-.34.11-.49.195c-.15.085-.337.226-.558.423l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.032.304.097.073.064.11.152.11.264 0 .09-.02.176-.055.258-.036.082-.1.18-.192.294-.092.114-.287.328-.586.64L2.42 13.238V14h3.11v-.955H3.91v-.03zm.53 4.746v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.176-.6-.264-1.043-.264-.307 0-.58.033-.816.1s-.47.178-.696.334l.48.773c.293-.183.576-.274.85-.274.147 0 .263.027.35.082s.13.14.13.252c0 .3-.294.45-.882.45h-.27v.87h.264c.217 0 .393.017.527.05.136.03.233.08.294.143.06.064.09.154.09.27 0 .153-.057.265-.173.337-.115.07-.3.106-.554.106-.164 0-.343-.022-.538-.07-.194-.044-.385-.115-.573-.21v.96c.228.088.44.148.637.182.196.033.41.05.64.05.56 0 .998-.114 1.314-.343.315-.228.473-.542.473-.94.002-.585-.356-.923-1.07-1.013z"})));break;case"gridicons-list-unordered":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-location":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 9c0-3.866-3.134-7-7-7S5 5.134 5 9c0 1.387.41 2.677 1.105 3.765h-.008C8.457 16.46 12 22 12 22l5.903-9.235h-.007C18.59 11.677 19 10.387 19 9zm-7 3c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})));break;case"gridicons-lock":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 8h-1V7c0-2.757-2.243-5-5-5S7 4.243 7 7v1H6c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V10c0-1.105-.895-2-2-2zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v1H9V7zm4 8.723V18h-2v-2.277c-.595-.346-1-.984-1-1.723 0-1.105.895-2 2-2s2 .895 2 2c0 .738-.405 1.376-1 1.723z"})));break;case"gridicons-mail":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"gridicons-media-google":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17.4 8.7c.3-.5 1-2.8 1.3-4.1C16.9 3 14.6 2 12 2c-1.4 0-2.8.3-4 .8l8.2 6s.7.7 1.2-.1zM10.5 6c-.4-.5-2.5-1.9-3.6-2.6C4 5.1 2 8.3 2 12c0 .4 0 .7.1 1.1l8.2-5.9s.8-.5.2-1.2zm-4.7 5.7c-.5.2-2.5 1.7-3.6 2.5C3 18 6 20.9 9.7 21.8l-2.9-9.5c0-.1-.2-1-1-.6zm4 6.2c.1.6.8 2.7 1.3 4.1h.9c3.6 0 6.8-2 8.6-4.9h-9.9s-1-.1-.9.8zm9.7-12.5l-3.1 9.5s-.4.9.5 1.1c.6.1 2.8.1 4.2 0 .5-1.2.8-2.6.8-4 .1-2.5-.8-4.8-2.4-6.6z"})));break;case"gridicons-mention":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2a10 10 0 0 0 0 20v-2a8 8 0 1 1 8-8v.5a1.5 1.5 0 0 1-3 0V7h-2v1a5 5 0 1 0 1 7 3.5 3.5 0 0 0 6-2.46V12A10 10 0 0 0 12 2zm0 13a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"})));break;case"gridicons-menu":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 19h10v-2H9v2zm0-6h6v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-microphone":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 9v1a7 7 0 0 1-6 6.92V20h3v2H8v-2h3v-3.08A7 7 0 0 1 5 10V9h2v1a5 5 0 0 0 10 0V9zm-7 4a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v5a3 3 0 0 0 3 3z"})));break;case"gridicons-minus-small":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-money":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M2 5v14h20V5H2zm5 12c0-1.657-1.343-3-3-3v-4c1.657 0 3-1.343 3-3h10c0 1.657 1.343 3 3 3v4c-1.657 0-3 1.343-3 3H7zm5-8c1.1 0 2 1.3 2 3s-.9 3-2 3-2-1.3-2-3 .9-3 2-3z"})));break;case"gridicons-my-sites-horizon":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10.986 13.928l.762-2.284-1.324-3.63c-.458-.026-.892-.08-.892-.08-.458-.027-.405-.727.054-.7 0 0 1.403.107 2.24.107.888 0 2.265-.107 2.265-.107.46-.027.513.646.055.7 0 0-.46.055-.973.082l2.006 5.966c-.875-.034-1.74-.053-2.6-.06l-.428-1.177-.403 1.17c-.252.002-.508.01-.76.015zm-7.156.393c-.21-.737-.33-1.514-.33-2.32 0-1.232.264-2.402.736-3.46l2.036 5.58c.85-.06 1.69-.104 2.526-.138L6.792 8.015c.512-.027.973-.08.973-.08.458-.055.404-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.036-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .674-.244 1.463-.572 2.51.3.02.604.043.907.066l.798-2.307c.486-1.212.647-2.18.647-3.043 0-.313-.02-.603-.057-.874.662 1.21 1.04 2.6 1.04 4.077 0 .807-.128 1.58-.34 2.32.5.05 1.006.112 1.51.17.205-.798.33-1.628.33-2.49 0-5.523-4.477-10-10-10S2 6.477 2 12c0 .862.125 1.692.33 2.49.5-.057 1.003-.12 1.5-.17zm14.638 3.168C16.676 19.672 14.118 20.5 12 20.5c-1.876 0-4.55-.697-6.463-3.012-.585.048-1.174.1-1.77.16C5.572 20.272 8.578 22 12 22c3.422 0 6.43-1.73 8.232-4.35-.593-.063-1.18-.114-1.764-.162zM12 15.01c-3.715 0-7.368.266-10.958.733.18.41.35.825.506 1.247 3.427-.43 6.91-.68 10.452-.68s7.025.25 10.452.68c.156-.422.327-.836.506-1.246-3.59-.467-7.243-.734-10.958-.734z"})));break;case"gridicons-my-sites":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zM3.5 12c0-1.232.264-2.402.736-3.46L8.29 19.65C5.456 18.272 3.5 15.365 3.5 12zm8.5 8.5c-.834 0-1.64-.12-2.4-.345l2.55-7.41 2.613 7.157c.017.042.038.08.06.117-.884.31-1.833.48-2.823.48zm1.172-12.485c.512-.027.973-.08.973-.08.458-.055.404-.728-.054-.702 0 0-1.376.108-2.265.108-.835 0-2.24-.107-2.24-.107-.458-.026-.51.674-.053.7 0 0 .434.055.892.082l1.324 3.63-1.86 5.578-3.096-9.208c.512-.027.973-.08.973-.08.458-.055.403-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.037-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .727-.28 1.572-.646 2.748l-.848 2.833-3.072-9.138zm3.1 11.332l2.597-7.506c.484-1.212.645-2.18.645-3.044 0-.313-.02-.603-.057-.874.664 1.21 1.042 2.6 1.042 4.078 0 3.136-1.7 5.874-4.227 7.347z"})));break;case"gridicons-nametag":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 6a1 1 0 1 1-1 1 1 1 0 0 1 1-1zm-6 8h12v3H6zm14-8h-4V3H8v3H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zM10 5h4v5h-4zm10 14H4v-9h4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2h4z"})));break;case"gridicons-next-page":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 8h-8V6h8v2zm4-4v8l-6 6H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 0H8v12h6v-4c0-1.105.895-2 2-2h4V4zM4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6z"})));break;case"gridicons-not-visible":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M1 12s4.188-6 11-6c.947 0 1.84.12 2.678.322L8.36 12.64C8.133 12.14 8 11.586 8 11c0-.937.335-1.787.875-2.47C6.483 9.344 4.66 10.917 3.62 12c.68.707 1.696 1.62 2.98 2.398L5.15 15.85C2.498 14.13 1 12 1 12zm22 0s-4.188 6-11 6c-.946 0-1.836-.124-2.676-.323L5 22l-1.5-1.5 17-17L22 5l-3.147 3.147C21.5 9.87 23 12 23 12zm-2.615.006c-.678-.708-1.697-1.624-2.987-2.403L16 11c0 2.21-1.79 4-4 4l-.947.947c.31.03.624.053.947.053 3.978 0 6.943-2.478 8.385-3.994z"})));break;case"gridicons-notice-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-notice":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-offline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10 3h8l-4 6h4L6 21l4-9H6l4-9"})));break;case"gridicons-pages":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})));break;case"gridicons-pause":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"})));break;case"gridicons-pencil":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13 6l5 5-9.507 9.507c-.686-.686-.69-1.794-.012-2.485l-.002-.003c-.69.676-1.8.673-2.485-.013-.677-.677-.686-1.762-.036-2.455l-.008-.008c-.694.65-1.78.64-2.456-.036L13 6zm7.586-.414l-2.172-2.172c-.78-.78-2.047-.78-2.828 0L14 5l5 5 1.586-1.586c.78-.78.78-2.047 0-2.828zM3 18v3h3c0-1.657-1.343-3-3-3z"})));break;case"gridicons-phone":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-plans":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 12H6l5-10v10zm2 6V10h5l-5 10z"})));break;case"gridicons-play":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-2 14.5v-9l6 4.5z"})));break;case"gridicons-plugins":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16 8V3c0-.552-.448-1-1-1s-1 .448-1 1v5h-4V3c0-.552-.448-1-1-1s-1 .448-1 1v5H5v4c0 2.79 1.637 5.193 4 6.317V22h6v-3.683c2.363-1.124 4-3.527 4-6.317V8h-3z"})));break;case"gridicons-plus-small":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 13h-8v8h-2v-8H3v-2h8V3h2v8h8v2z"})));break;case"gridicons-popout":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6 7V5c0-1.105.895-2 2-2h11c1.105 0 2 .895 2 2v14c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2v-2h2v2h11V5H8v2H6zm5.5-.5l-1.414 1.414L13.172 11H3v2h10.172l-3.086 3.086L11.5 17.5 17 12l-5.5-5.5z"})));break;case"gridicons-posts":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3c0 1.105-.895 2-2 2H7c-1.105 0-2-.895-2-2v-3H2V9c0-1.105.895-2 2-2h1V5c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2v2h1c1.105 0 2 .895 2 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5z"})));break;case"gridicons-product-downloadable":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zm-6-10v5.17l2.59-2.58L17 14l-5 5-5-5 1.41-1.42L11 15.17V10h2z"})));break;case"gridicons-product-external":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zm-2-9v6h-2v-2.59l-3.29 3.29-1.41-1.41L13.59 13H11v-2h6z"})));break;case"gridicons-product-virtual":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zM7 16.45c0-1.005.815-1.82 1.82-1.82h.09c-.335-1.59.68-3.148 2.27-3.483s3.148.68 3.483 2.27c.02.097.036.195.046.293 1.252-.025 2.29.97 2.314 2.224.017.868-.462 1.67-1.235 2.066H7.87c-.54-.33-.87-.917-.87-1.55z"})));break;case"gridicons-product":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zM9 11h6c0 1.105-.895 2-2 2h-2c-1.105 0-2-.895-2-2z"})));break;case"gridicons-quote":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.77-.692-1.327-.817-.56-.124-1.074-.13-1.54-.022-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1-.345 2.04-.217 3.1.165 1.4.615 2.52 1.35 3.35.732.833 1.646 1.25 2.742 1.25.967 0 1.768-.29 2.402-.876.627-.576.942-1.365.942-2.368v.01z"})));break;case"gridicons-read-more":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"})));break;case"gridicons-reader-follow-conversation":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 14v-3h-2v3h-3v2h3v3h2v-3h3v-2"}),s.default.createElement("path",{d:"M13 16h-2l-5 5v-5H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v4h-4v3h-3v4z"})));break;case"gridicons-reader-follow":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M23 16v2h-3v3h-2v-3h-3v-2h3v-3h2v3h3zM20 2v9h-4v3h-3v4H4c-1.1 0-2-.9-2-2V2h18zM8 13v-1H4v1h4zm3-3H4v1h7v-1zm0-2H4v1h7V8zm7-4H4v2h14V4z"})));break;case"gridicons-reader-following-conversation":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16.8 14.5l3.2-3.2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h2v5l8.7-8.7 2.1 2.2z"}),s.default.createElement("path",{d:"M22.6 11.1l-6.1 6.1-2.1-2.2-1.4 1.4 3.5 3.6 7.5-7.6"})));break;case"gridicons-reader-following":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M23 13.482L15.508 21 12 17.4l1.412-1.388 2.106 2.188 6.094-6.094L23 13.482zm-7.455 1.862L20 10.89V2H2v14c0 1.1.9 2 2 2h4.538l4.913-4.832 2.095 2.176zM8 13H4v-1h4v1zm3-2H4v-1h7v1zm0-2H4V8h7v1zm7-3H4V4h14v2z"})));break;case"gridicons-reader":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 4v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4H3zm7 11H5v-1h5v1zm2-2H5v-1h7v1zm0-2H5v-1h7v1zm7 4h-5v-5h5v5zm0-7H5V6h14v2z"})));break;case"gridicons-reblog":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22.086 9.914L20 7.828V18c0 1.105-.895 2-2 2h-7v-2h7V7.828l-2.086 2.086L14.5 8.5 19 4l4.5 4.5-1.414 1.414zM6 16.172V6h7V4H6c-1.105 0-2 .895-2 2v10.172l-2.086-2.086L.5 15.5 5 20l4.5-4.5-1.414-1.414L6 16.172z"})));break;case"gridicons-redo":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 6v3.586L14.343 5.93C13.17 4.756 11.636 4.17 10.1 4.17s-3.07.585-4.242 1.757c-2.343 2.342-2.343 6.14 0 8.484l5.364 5.364 1.414-1.414L7.272 13c-1.56-1.56-1.56-4.097 0-5.657.755-.755 1.76-1.172 2.828-1.172 1.068 0 2.073.417 2.828 1.173L16.586 11H13v2h7V6h-2z"})));break;case"gridicons-refresh":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"})));break;case"gridicons-refund":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13.91 2.91L11.83 5H14c4.418 0 8 3.582 8 8h-2c0-3.314-2.686-6-6-6h-2.17l2.09 2.09-1.42 1.41L8 6l1.41-1.41L12.5 1.5l1.41 1.41zM2 12v10h16V12H2zm2 6.56v-3.11c.6-.35 1.1-.85 1.45-1.45h9.1c.35.6.85 1.1 1.45 1.45v3.11c-.593.35-1.085.845-1.43 1.44H5.45c-.35-.597-.85-1.094-1.45-1.44zm6 .44c.828 0 1.5-.895 1.5-2s-.672-2-1.5-2-1.5.895-1.5 2 .672 2 1.5 2z"})));break;case"gridicons-reply":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 16h7.2l-2.6 2.6L15 20l5-5-5-5-1.4 1.4 2.6 2.6H9c-2.2 0-4-1.8-4-4s1.8-4 4-4h2V4H9c-3.3 0-6 2.7-6 6s2.7 6 6 6z"})));break;case"gridicons-resize":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));break;case"gridicons-rotate":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 14v6c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-6c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2zM13.914 2.914L11.828 5H14c4.418 0 8 3.582 8 8h-2c0-3.308-2.692-6-6-6h-2.172l2.086 2.086L12.5 10.5 8 6l1.414-1.414L12.5 1.5l1.414 1.414z"})));break;case"gridicons-scheduled":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10.498 18l-3.705-3.704 1.415-1.415 2.294 2.295 5.293-5.293 1.415 1.415L10.498 18zM21 6v13c0 1.104-.896 2-2 2H5c-1.104 0-2-.896-2-2V6c0-1.104.896-2 2-2h1V2h2v2h8V2h2v2h1c1.104 0 2 .896 2 2zm-2 2H5v11h14V8z"})));break;case"gridicons-search":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})));break;case"gridicons-share-computer":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h6v2H7v2h10v-2h-3v-2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 14H4V4h16zm-3.25-3a1.75 1.75 0 0 1-3.5 0L10 11.36a1.71 1.71 0 1 1 0-2.71L13.25 7a1.77 1.77 0 1 1 .68 1.37L10.71 10l3.22 1.61A1.74 1.74 0 0 1 16.75 13z"})));break;case"gridicons-share-ios":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 8h2c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-9c0-1.105.895-2 2-2h2v2H5v9h14v-9h-2V8zM6.5 5.5l1.414 1.414L11 3.828V14h2V3.828l3.086 3.086L17.5 5.5 12 0 6.5 5.5z"})));break;case"gridicons-share":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 16c-.788 0-1.5.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118c-.053.223-.088.453-.088.692 0 1.657 1.343 3 3 3s3-1.343 3-3-1.343-3-3-3z"})));break;case"gridicons-shipping":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 8h-2V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10h2c0 1.657 1.343 3 3 3s3-1.343 3-3h4c0 1.657 1.343 3 3 3s3-1.343 3-3h2v-5l-4-4zM7 18.5c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5zM4 14V7h10v7H4zm13 4.5c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5z"})));break;case"gridicons-shutter":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18.9 4.8s-.7 5.6-3.5 10.2c1.7-.3 3.9-.9 6.6-2 0 0 .7-4.6-3.1-8.2zm-6 2.8c-1.1-1.3-2.7-3-5-4.7C5.1 4.2 3 6.6 2.3 9.6 7 7.7 11 7.5 12.9 7.6zm3.4 2.9c.6-1.6 1.2-3.9 1.6-6.7-4.1-3-8.6-1.5-8.6-1.5s4.4 3.4 7 8.2zm-5.2 6c1.1 1.3 2.7 3 5 4.7 0 0 4.3-1.6 5.6-6.7 0-.1-5.3 2.1-10.6 2zm-3.4-3.1c-.6 1.6-1.2 3.8-1.5 6.7 0 0 3.6 2.9 8.6 1.5 0 0-4.6-3.4-7.1-8.2zM2 11.1s-.7 4.5 3.1 8.2c0 0 .7-5.7 3.5-10.3-1.7.3-4 .9-6.6 2.1z"})));break;case"gridicons-sign-out":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16 17v2c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v2h-2V5H5v14h9v-2h2zm2.5-10.5l-1.414 1.414L20.172 11H10v2h10.172l-3.086 3.086L18.5 17.5 24 12l-5.5-5.5z"})));break;case"gridicons-spam":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-speaker":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 8v6c1.7 0 3-1.3 3-3s-1.3-3-3-3zM11 7H4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h1v3c0 1.1.9 2 2 2h2v-5h2l4 4h2V3h-2l-4 4z"})));break;case"gridicons-special-character":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12.005 7.418c-1.237 0-2.19.376-2.86 1.128s-1.005 1.812-1.005 3.18c0 1.387.226 2.513.677 3.377.45.865 1.135 1.543 2.05 2.036V20H5v-2.666h3.12c-1.04-.636-1.842-1.502-2.405-2.6-.564-1.097-.846-2.322-.846-3.676 0-1.258.29-2.363.875-3.317.585-.952 1.417-1.685 2.497-2.198s2.334-.77 3.763-.77c2.18 0 3.915.572 5.204 1.713s1.932 2.673 1.932 4.594c0 1.353-.283 2.57-.852 3.65-.567 1.08-1.38 1.947-2.44 2.603H19V20h-5.908v-2.86c.95-.493 1.65-1.18 2.102-2.062s.677-2.006.677-3.374c0-1.36-.336-2.415-1.01-3.164-.672-.747-1.624-1.122-2.855-1.122z"})));break;case"gridicons-star-outline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-star":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-stats-alt":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2V7h2v10zm4 0h-2v-7h2v7z"})));break;case"gridicons-status":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zM7.55 13c-.02.166-.05.33-.05.5 0 2.485 2.015 4.5 4.5 4.5s4.5-2.015 4.5-4.5c0-.17-.032-.334-.05-.5h-8.9zM10 10V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1zm6 0V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1z"})));break;case"gridicons-strikethrough":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"})));break;case"gridicons-sync":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"})));break;case"gridicons-tablet":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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"})));break;case"gridicons-tag":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})));break;case"gridicons-text-color":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 19h18v3H3v-3zM15.82 17h3.424L14 3h-4L4.756 17H8.18l1.067-3.5h5.506L15.82 17zm-1.952-6h-3.73l1.868-5.725L13.868 11z"})));break;case"gridicons-themes":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"})));break;case"gridicons-thumbs-up":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6.7 22H2v-9h2l2.7 9zM20 9h-6V5c0-1.657-1.343-3-3-3h-1v4L7.1 9.625c-.712.89-1.1 1.996-1.1 3.135V14l2.1 7h8.337c1.836 0 3.435-1.25 3.88-3.03l1.622-6.485C22.254 10.223 21.3 9 20 9z"})));break;case"gridicons-time":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm3.8 13.4L13 11.667V7h-2v5.333l3.2 4.266 1.6-1.2z"})));break;case"gridicons-trash":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})));break;case"gridicons-trophy":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 5.062V3H6v2.062H2V8c0 2.525 1.89 4.598 4.324 4.932.7 2.058 2.485 3.61 4.676 3.978V18c0 1.105-.895 2-2 2H8v2h8v-2h-1c-1.105 0-2-.895-2-2v-1.09c2.19-.368 3.976-1.92 4.676-3.978C20.11 12.598 22 10.525 22 8V5.062h-4zM4 8v-.938h2v3.766C4.836 10.416 4 9.304 4 8zm16 0c0 1.304-.836 2.416-2 2.83V7.06h2V8z"})));break;case"gridicons-types":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 17c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585c.433-2.783 2.632-4.982 5.415-5.415z"})));break;case"gridicons-underline":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M4 19v2h16v-2H4zM18 3v8c0 3.314-2.686 6-6 6s-6-2.686-6-6V3h3v8c0 1.654 1.346 3 3 3s3-1.346 3-3V3h3z"})));break;case"gridicons-undo":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18.142 5.93C16.97 4.756 15.435 4.17 13.9 4.17s-3.072.586-4.244 1.757L6 9.585V6H4v7h7v-2H7.414l3.657-3.657c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657l-5.364 5.364 1.414 1.414 5.364-5.364c2.345-2.343 2.345-6.142.002-8.485z"})));break;case"gridicons-user-add":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("circle",{cx:"15",cy:"8",r:"4"}),s.default.createElement("path",{d:"M15 20s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2zM6 10V7H4v3H1v2h3v3h2v-3h3v-2z"})));break;case"gridicons-user-circle":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 2zm0 18.5c-4.694 0-8.5-3.806-8.5-8.5S7.306 3.5 12 3.5s8.5 3.806 8.5 8.5-3.806 8.5-8.5 8.5zm0-8c-3.038 0-5.5 1.728-5.5 3.5s2.462 3.5 5.5 3.5 5.5-1.728 5.5-3.5-2.462-3.5-5.5-3.5zm0-.5c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z"})));break;case"gridicons-user":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm0 16s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})));break;case"gridicons-video-camera":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17 9V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h11c1.105 0 2-.895 2-2v-2l5 4V5l-5 4z"})));break;case"gridicons-video-remove":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19.42 4.59l1.167-1.167L22 4.837 20 6.84V18c0 1.105-.895 2-2 2v-2h-2v2H6.84l-2.007 2.006-1.414-1.414 1.17-1.172-.01-.01L8 16 18 6l1.41-1.42.01.01zM15.84 11H18V8.84L15.84 11zM16 8.01l.01-.01H16v.01zM6 15.17l-2 2V6c0-1.105.895-2 2-2v2h2V4h9.17l-9 9H6v2.17zM6 8v3h2V8H6zm12 8v-3h-2v3h2z"})));break;case"gridicons-video":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M8 4h8v1.997h2V4c1.105 0 2 .896 2 2v12c0 1.104-.895 2-2 2v-2.003h-2V20H8v-2.003H6V20c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2v1.997h2V4zm2 11l4.5-3L10 9v6zm8 .997v-3h-2v3h2zm0-5v-3h-2v3h2zm-10 5v-3H6v3h2zm0-5v-3H6v3h2z"})));break;case"gridicons-visible":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 6C5.188 6 1 12 1 12s4.188 6 11 6 11-6 11-6-4.188-6-11-6zm0 10c-3.943 0-6.926-2.484-8.38-4 1.04-1.085 2.863-2.657 5.255-3.47C8.335 9.214 8 10.064 8 11c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.937-.335-1.787-.875-2.47 2.393.813 4.216 2.386 5.254 3.47-1.456 1.518-4.438 4-8.38 4z"})));break;case"gridicons-zoom-in":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M15.8 13.8c.7-1.1 1.2-2.4 1.2-3.8 0-3.9-3.1-7-7-7s-7 3.1-7 7 3.1 7 7 7c1.4 0 2.7-.4 3.8-1.2L19 21l2-2-5.2-5.2zM10 15c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5z"}),s.default.createElement("path",{d:"M11 7H9v2H7v2h2v2h2v-2h2V9h-2"})));break;case"gridicons-zoom-out":i=s.default.createElement("svg",a({className:d,height:t,width:t,onClick:l},h,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 10c0 3.9 3.1 7 7 7 1.4 0 2.7-.5 3.8-1.2L19 21l2-2-5.2-5.2c.8-1.1 1.2-2.4 1.2-3.8 0-3.9-3.1-7-7-7s-7 3.1-7 7zm2 0c0-2.8 2.2-5 5-5s5 2.2 5 5-2.2 5-5 5-5-2.2-5-5z"}),s.default.createElement("path",{d:"M7 9h6v2H7z"})))}return i}}]),t}();i.defaultProps={size:24},i.propTypes={icon:h.default.string.isRequired,size:h.default.number,onClick:h.default.func,className:h.default.string},t.default=i,e.exports=t.default},648:function(e,t){function l(t,a){return e.exports=l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(t,a)}e.exports=l},708:function(e,t){function l(e){return(l="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 a(t){return"function"===typeof Symbol&&"symbol"===l(Symbol.iterator)?e.exports=a=function(e){return l(e)}:e.exports=a=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":l(e)},a(t)}e.exports=a},709:function(e,t){e.exports=function(e,t){if(null==e)return{};var l,a,c={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(c[l]=e[l]);return c}}}]);
|
dist/chunks/41b209a14009d245d090.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[151],{706:function(t,e,n){"use strict";var r=n(10),s=n(526),o=n.n(s),a=n(614),h=n(572);var i=function(t){var e=t.as,n=void 0===e?"div":e,s=Object(h.a)(t,["as"]);return function(t){var e=t.as,n=void 0===e?"div":e,s=Object(h.a)(t,["as"]);return"function"===typeof s.children?s.children(s):Object(r.createElement)(n,s)}(Object(a.a)({as:n,className:"components-visually-hidden"},s))};function c(t){var e=t.id,n=t.label,s=t.hideLabelFromVision,a=t.help,h=t.className,l=t.children;return Object(r.createElement)("div",{className:o()("components-base-control",h)},Object(r.createElement)("div",{className:"components-base-control__field"},n&&e&&(s?Object(r.createElement)(i,{as:"label",htmlFor:e},n):Object(r.createElement)("label",{className:"components-base-control__label",htmlFor:e},n)),n&&!e&&(s?Object(r.createElement)(i,{as:"label"},n):Object(r.createElement)(c.VisualLabel,null,n)),l),!!a&&Object(r.createElement)("p",{id:e+"__help",className:"components-base-control__help"},a))}c.VisualLabel=function(t){var e=t.className,n=t.children;return e=o()("components-base-control__label",e),Object(r.createElement)("span",{className:e},n)};e.a=c},773:function(t,e,n){"use strict";var r=n(774),s=n(775);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=y,e.resolve=function(t,e){return y(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?y(t,!1,!0).resolveObject(e):e},e.format=function(t){s.isString(t)&&(t=y(t));return t instanceof o?t.format():o.prototype.format.call(t)},e.Url=o;var a=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),u=["%","/","?",";","#"].concat(l),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(776);function y(t,e,n){if(t&&s.isObject(t)&&t instanceof o)return t;var r=new o;return r.parse(t,e,n),r}o.prototype.parse=function(t,e,n){if(!s.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),h=-1!==o&&o<t.indexOf("#")?"?":"#",c=t.split(h);c[0]=c[0].replace(/\\/g,"/");var y=t=c.join(h);if(y=y.trim(),!n&&1===t.split("#").length){var j=i.exec(y);if(j)return this.path=y,this.href=y,this.pathname=j[1],j[2]?(this.search=j[2],this.query=e?g.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var O=a.exec(y);if(O){var x=(O=O[0]).toLowerCase();this.protocol=x,y=y.substr(O.length)}if(n||O||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var w="//"===y.substr(0,2);!w||O&&v[O]||(y=y.substr(2),this.slashes=!0)}if(!v[O]&&(w||O&&!b[O])){for(var C,_,I=-1,N=0;N<p.length;N++){-1!==(E=y.indexOf(p[N]))&&(-1===I||E<I)&&(I=E)}-1!==(_=-1===I?y.lastIndexOf("@"):y.lastIndexOf("@",I))&&(C=y.slice(0,_),y=y.slice(_+1),this.auth=decodeURIComponent(C)),I=-1;for(N=0;N<u.length;N++){var E;-1!==(E=y.indexOf(u[N]))&&(-1===I||E<I)&&(I=E)}-1===I&&(I=y.length),this.host=y.slice(0,I),y=y.slice(I),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var k=this.hostname.split(/\./),q=(N=0,k.length);N<q;N++){var U=k[N];if(U&&!U.match(f)){for(var R="",F=0,S=U.length;F<S;F++)U.charCodeAt(F)>127?R+="x":R+=U[F];if(!R.match(f)){var L=k.slice(0,N),P=k.slice(N+1),$=U.match(m);$&&(L.push($[1]),P.unshift($[2])),P.length&&(y="/"+P.join(".")+y),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var z=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+z,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!d[x])for(N=0,q=l.length;N<q;N++){var T=l[N];if(-1!==y.indexOf(T)){var V=encodeURIComponent(T);V===T&&(V=escape(T)),y=y.split(T).join(V)}}var H=y.indexOf("#");-1!==H&&(this.hash=y.substr(H),y=y.slice(0,H));var J=y.indexOf("?");if(-1!==J?(this.search=y.substr(J),this.query=y.substr(J+1),e&&(this.query=g.parse(this.query)),y=y.slice(0,J)):e&&(this.search="",this.query={}),y&&(this.pathname=y),b[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var K=this.search||"";this.path=z+K}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(a=g.stringify(this.query));var h=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||b[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),h&&"?"!==h.charAt(0)&&(h="?"+h),e+o+(n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(h=h.replace("#","%23"))+r},o.prototype.resolve=function(t){return this.resolveObject(y(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(s.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var h=r[a];n[h]=this[h]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var i=Object.keys(t),c=0;c<i.length;c++){var l=i[c];"protocol"!==l&&(n[l]=t[l])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!b[t.protocol]){for(var u=Object.keys(t),p=0;p<u.length;p++){var f=u[p];n[f]=t[f]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||v[t.protocol])n.pathname=t.pathname;else{for(var m=(t.pathname||"").split("/");m.length&&!(t.host=m.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var d=n.pathname||"",g=n.search||"";n.path=d+g}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),j=t.host||t.pathname&&"/"===t.pathname.charAt(0),O=j||y||n.host&&t.pathname,x=O,w=n.pathname&&n.pathname.split("/")||[],C=(m=t.pathname&&t.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===m[0]?m[0]=t.host:m.unshift(t.host)),t.host=null),O=O&&(""===m[0]||""===w[0])),j)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,w=m;else if(m.length)w||(w=[]),w.pop(),w=w.concat(m),n.search=t.search,n.query=t.query;else if(!s.isNullOrUndefined(t.search)){if(C)n.hostname=n.host=w.shift(),(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=t.search,n.query=t.query,s.isNull(n.pathname)&&s.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var _=w.slice(-1)[0],I=(n.host||t.host||w.length>1)&&("."===_||".."===_)||""===_,N=0,E=w.length;E>=0;E--)"."===(_=w[E])?w.splice(E,1):".."===_?(w.splice(E,1),N++):N&&(w.splice(E,1),N--);if(!O&&!x)for(;N--;N)w.unshift("..");!O||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),I&&"/"!==w.join("/").substr(-1)&&w.push("");var A,k=""===w[0]||w[0]&&"/"===w[0].charAt(0);C&&(n.hostname=n.host=k?"":w.length?w.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(O=O||n.host&&w.length)&&!k&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),s.isNull(n.pathname)&&s.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=h.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},774:function(t,e,n){(function(t){!function(n){var r=e&&!e.nodeType&&e,s=t&&!t.nodeType&&t,o=window;o.global!==o&&o.window!==o&&o.self!==o||(n=o);var a,h,i=2147483647,c=36,l=1,u=26,p=38,f=700,m=72,d=128,v="-",b=/^xn--/,g=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=c-l,x=Math.floor,w=String.fromCharCode;function C(t){throw new RangeError(j[t])}function _(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function I(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+_((t=t.replace(y,".")).split("."),e).join(".")}function N(t){for(var e,n,r=[],s=0,o=t.length;s<o;)(e=t.charCodeAt(s++))>=55296&&e<=56319&&s<o?56320==(64512&(n=t.charCodeAt(s++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),s--):r.push(e);return r}function E(t){return _(t,function(t){var e="";return t>65535&&(e+=w((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=w(t)}).join("")}function A(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function k(t,e,n){var r=0;for(t=n?x(t/f):t>>1,t+=x(t/e);t>O*u>>1;r+=c)t=x(t/O);return x(r+(O+1)*t/(t+p))}function q(t){var e,n,r,s,o,a,h,p,f,b,g,y=[],j=t.length,O=0,w=d,_=m;for((n=t.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&C("not-basic"),y.push(t.charCodeAt(r));for(s=n>0?n+1:0;s<j;){for(o=O,a=1,h=c;s>=j&&C("invalid-input"),((p=(g=t.charCodeAt(s++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:c)>=c||p>x((i-O)/a))&&C("overflow"),O+=p*a,!(p<(f=h<=_?l:h>=_+u?u:h-_));h+=c)a>x(i/(b=c-f))&&C("overflow"),a*=b;_=k(O-o,e=y.length+1,0==o),x(O/e)>i-w&&C("overflow"),w+=x(O/e),O%=e,y.splice(O++,0,w)}return E(y)}function U(t){var e,n,r,s,o,a,h,p,f,b,g,y,j,O,_,I=[];for(y=(t=N(t)).length,e=d,n=0,o=m,a=0;a<y;++a)(g=t[a])<128&&I.push(w(g));for(r=s=I.length,s&&I.push(v);r<y;){for(h=i,a=0;a<y;++a)(g=t[a])>=e&&g<h&&(h=g);for(h-e>x((i-n)/(j=r+1))&&C("overflow"),n+=(h-e)*j,e=h,a=0;a<y;++a)if((g=t[a])<e&&++n>i&&C("overflow"),g==e){for(p=n,f=c;!(p<(b=f<=o?l:f>=o+u?u:f-o));f+=c)_=p-b,O=c-b,I.push(w(A(b+_%O,0))),p=x(_/O);I.push(w(A(p,0))),o=k(n,j,r==s),n=0,++r}++n,++e}return I.join("")}if(a={version:"1.4.1",ucs2:{decode:N,encode:E},decode:q,encode:U,toASCII:function(t){return I(t,function(t){return g.test(t)?"xn--"+U(t):t})},toUnicode:function(t){return I(t,function(t){return b.test(t)?q(t.slice(4).toLowerCase()):t})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return a});else if(r&&s)if(t.exports==r)s.exports=a;else for(h in a)a.hasOwnProperty(h)&&(r[h]=a[h]);else n.punycode=a}(this)}).call(this,n(117)(t))},775:function(t,e,n){"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},776:function(t,e,n){"use strict";e.decode=e.parse=n(777),e.encode=e.stringify=n(778)},777:function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){e=e||"&",n=n||"=";var a={};if("string"!==typeof t||0===t.length)return a;var h=/\+/g;t=t.split(e);var i=1e3;o&&"number"===typeof o.maxKeys&&(i=o.maxKeys);var c=t.length;i>0&&c>i&&(c=i);for(var l=0;l<c;++l){var u,p,f,m,d=t[l].replace(h,"%20"),v=d.indexOf(n);v>=0?(u=d.substr(0,v),p=d.substr(v+1)):(u=d,p=""),f=decodeURIComponent(u),m=decodeURIComponent(p),r(a,f)?s(a[f])?a[f].push(m):a[f]=[a[f],m]:a[f]=m}return a};var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},778:function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,h){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"===typeof t?o(a(t),function(a){var h=encodeURIComponent(r(a))+n;return s(t[a])?o(t[a],function(t){return h+encodeURIComponent(r(t))}).join(e):h+encodeURIComponent(r(t[a]))}).join(e):h?encodeURIComponent(r(h))+n+encodeURIComponent(r(t)):""};var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var a=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},784:function(t,e,n){"use strict";var r=n(37),s=n(572),o=n(10),a=n(795),h=n(706),i=n(705);e.a=Object(a.a)(function(t){var e=t.label,n=t.className,a=t.heading,c=t.checked,l=t.help,u=t.instanceId,p=t.onChange,f=Object(s.a)(t,["label","className","heading","checked","help","instanceId","onChange"]),m="inspector-checkbox-control-".concat(u);return Object(o.createElement)(h.a,{label:a,id:m,help:l,className:n},Object(o.createElement)("span",{className:"components-checkbox-control__input-container"},Object(o.createElement)("input",Object(r.a)({id:m,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(t){return p(t.target.checked)},checked:c,"aria-describedby":l?m+"__help":void 0},f)),c?Object(o.createElement)(i.a,{icon:"yes",className:"components-checkbox-control__checked",role:"presentation"}):null),Object(o.createElement)("label",{className:"components-checkbox-control__label",htmlFor:m},e))})},785:function(t,e,n){"use strict";var r=n(10),s=n(1),o=n(526),a=n.n(o),h=n(795),i=n(706);e.a=Object(h.a)(function(t){var e=t.label,n=t.className,o=t.selected,h=t.help,c=t.instanceId,l=t.onChange,u=t.options,p=void 0===u?[]:u,f="inspector-radio-control-".concat(c),m=function(t){return l(t.target.value)};return!Object(s.isEmpty)(p)&&Object(r.createElement)(i.a,{label:e,id:f,help:h,className:a()(n,"components-radio-control")},p.map(function(t,e){return Object(r.createElement)("div",{key:"".concat(f,"-").concat(e),className:"components-radio-control__option"},Object(r.createElement)("input",{id:"".concat(f,"-").concat(e),className:"components-radio-control__input",type:"radio",name:f,value:t.value,onChange:m,checked:t.value===o,"aria-describedby":h?"".concat(f,"__help"):void 0}),Object(r.createElement)("label",{htmlFor:"".concat(f,"-").concat(e)},t.label))}))})},795:function(t,e,n){"use strict";var r=n(37),s=n(10),o=n(687),a=new WeakMap;function h(t,e){return Object(s.useMemo)(function(){var n=function(t){var e=a.get(t)||0;return a.set(t,e+1),e}(t);return e?"".concat(e,"-").concat(n):n},[t])}e.a=Object(o.a)(function(t){return function(e){var n=h(t);return Object(s.createElement)(t,Object(r.a)({},e,{instanceId:n}))}},"withInstanceId")}}]);
|
dist/chunks/46fbde408db6dccfb3e8.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[139],{532:function(E,O,_){"use strict";_.d(O,"a",function(){return n});_(1),_(562);function n(E){return E.ui.selectedSiteId}},535:function(E,O,_){"use strict";_.d(O,"a",function(){return n}),_.d(O,"b",function(){return C}),_.d(O,"d",function(){return r}),_.d(O,"e",function(){return t}),_.d(O,"c",function(){return u}),_.d(O,"f",function(){return R}),_.d(O,"h",function(){return S}),_.d(O,"g",function(){return T}),_.d(O,"j",function(){return M}),_.d(O,"i",function(){return N}),_.d(O,"k",function(){return I}),_.d(O,"l",function(){return e}),_.d(O,"p",function(){return o}),_.d(O,"q",function(){return i}),_.d(O,"r",function(){return c}),_.d(O,"s",function(){return P}),_.d(O,"t",function(){return f}),_.d(O,"u",function(){return d}),_.d(O,"y",function(){return D}),_.d(O,"z",function(){return U}),_.d(O,"A",function(){return W}),_.d(O,"v",function(){return A}),_.d(O,"w",function(){return s}),_.d(O,"x",function(){return H}),_.d(O,"C",function(){return b}),_.d(O,"E",function(){return G}),_.d(O,"D",function(){return L}),_.d(O,"B",function(){return a}),_.d(O,"F",function(){return p}),_.d(O,"G",function(){return Z}),_.d(O,"H",function(){return l}),_.d(O,"I",function(){return y}),_.d(O,"J",function(){return Q}),_.d(O,"K",function(){return m}),_.d(O,"m",function(){return F}),_.d(O,"n",function(){return h}),_.d(O,"o",function(){return g}),_.d(O,"L",function(){return v}),_.d(O,"M",function(){return w}),_.d(O,"N",function(){return B}),_.d(O,"O",function(){return V}),_.d(O,"P",function(){return Y}),_.d(O,"Q",function(){return k}),_.d(O,"R",function(){return J}),_.d(O,"S",function(){return X}),_.d(O,"T",function(){return j}),_.d(O,"W",function(){return q}),_.d(O,"X",function(){return x}),_.d(O,"U",function(){return z}),_.d(O,"V",function(){return K}),_.d(O,"ab",function(){return $}),_.d(O,"bb",function(){return EE}),_.d(O,"Y",function(){return OE}),_.d(O,"Z",function(){return _E}),_.d(O,"gb",function(){return nE}),_.d(O,"hb",function(){return CE}),_.d(O,"ib",function(){return rE}),_.d(O,"jb",function(){return tE}),_.d(O,"kb",function(){return uE}),_.d(O,"lb",function(){return RE}),_.d(O,"mb",function(){return SE}),_.d(O,"nb",function(){return TE}),_.d(O,"ob",function(){return ME}),_.d(O,"pb",function(){return NE}),_.d(O,"qb",function(){return IE}),_.d(O,"rb",function(){return eE}),_.d(O,"sb",function(){return oE}),_.d(O,"tb",function(){return iE}),_.d(O,"ub",function(){return cE}),_.d(O,"vb",function(){return PE}),_.d(O,"wb",function(){return fE}),_.d(O,"xb",function(){return dE}),_.d(O,"yb",function(){return DE}),_.d(O,"zb",function(){return UE}),_.d(O,"Bb",function(){return WE}),_.d(O,"Ab",function(){return AE}),_.d(O,"Cb",function(){return sE}),_.d(O,"Db",function(){return HE}),_.d(O,"Eb",function(){return bE}),_.d(O,"Fb",function(){return GE}),_.d(O,"Gb",function(){return LE}),_.d(O,"Hb",function(){return aE}),_.d(O,"Ib",function(){return pE}),_.d(O,"Jb",function(){return ZE}),_.d(O,"Kb",function(){return lE}),_.d(O,"Lb",function(){return yE}),_.d(O,"Mb",function(){return QE}),_.d(O,"Nb",function(){return mE}),_.d(O,"Ob",function(){return FE}),_.d(O,"Pb",function(){return hE}),_.d(O,"Qb",function(){return gE}),_.d(O,"Rb",function(){return vE}),_.d(O,"Sb",function(){return wE}),_.d(O,"eb",function(){return BE}),_.d(O,"fb",function(){return VE}),_.d(O,"cb",function(){return YE}),_.d(O,"db",function(){return kE});var n="WOOCOMMERCE_ACTION_LIST_ANNOTATE",C="WOOCOMMERCE_ACTION_LIST_CLEAR",r="WOOCOMMERCE_ACTION_LIST_STEP_NEXT",t="WOOCOMMERCE_ACTION_LIST_STEP_SUCCESS",u="WOOCOMMERCE_ACTION_LIST_STEP_FAILURE",R="WOOCOMMERCE_COUNT_REQUEST",S="WOOCOMMERCE_COUNT_REQUEST_SUCCESS",T="WOOCOMMERCE_COUNT_REQUEST_FAILURE",M="WOOCOMMERCE_ERROR_SET",N="WOOCOMMERCE_ERROR_CLEAR",I="WOOCOMMERCE_LOCATIONS_REQUEST",e="WOOCOMMERCE_LOCATIONS_REQUEST_SUCCESS",o="WOOCOMMERCE_ORDER_DELETE",i="WOOCOMMERCE_ORDER_DELETE_FAILURE",c="WOOCOMMERCE_ORDER_DELETE_SUCCESS",P="WOOCOMMERCE_ORDER_INVOICE_SEND",f="WOOCOMMERCE_ORDER_INVOICE_SEND_FAILURE",d="WOOCOMMERCE_ORDER_INVOICE_SEND_SUCCESS",D="WOOCOMMERCE_ORDER_NOTE_CREATE",U="WOOCOMMERCE_ORDER_NOTE_CREATE_FAILURE",W="WOOCOMMERCE_ORDER_NOTE_CREATE_SUCCESS",A="WOOCOMMERCE_ORDER_NOTES_REQUEST",s="WOOCOMMERCE_ORDER_NOTES_REQUEST_FAILURE",H="WOOCOMMERCE_ORDER_NOTES_REQUEST_SUCCESS",b="WOOCOMMERCE_ORDER_REFUND_CREATE",G="WOOCOMMERCE_ORDER_REFUND_CREATE_SUCCESS",L="WOOCOMMERCE_ORDER_REFUND_CREATE_FAILURE",a="WOOCOMMERCE_ORDER_REFUNDS_REQUEST_SUCCESS",p="WOOCOMMERCE_ORDER_REQUEST",Z="WOOCOMMERCE_ORDER_REQUEST_FAILURE",l="WOOCOMMERCE_ORDER_REQUEST_SUCCESS",y="WOOCOMMERCE_ORDER_UPDATE",Q="WOOCOMMERCE_ORDER_UPDATE_FAILURE",m="WOOCOMMERCE_ORDER_UPDATE_SUCCESS",F="WOOCOMMERCE_ORDERS_REQUEST",h="WOOCOMMERCE_ORDERS_REQUEST_FAILURE",g="WOOCOMMERCE_ORDERS_REQUEST_SUCCESS",v="WOOCOMMERCE_SERVICES_SHIPPING_ACTION_LIST_CREATE",w="WOOCOMMERCE_SETTINGS_PRODUCTS_CHANGE_SETTING",B="WOOCOMMERCE_SETTINGS_PRODUCTS_REQUEST",V="WOOCOMMERCE_SETTINGS_PRODUCTS_REQUEST_SUCCESS",Y="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST",k="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST_FAILURE",J="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST_SUCCESS",X="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_CLEAR_COMPLETED_NOTIFICATION",j="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_CLEAR_ERROR",q="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_DETAILS_REQUEST",x="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_DETAILS_UPDATE",z="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_DEAUTHORIZE",K="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_DEAUTHORIZE_COMPLETE",$="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_DEAUTHORIZE_OAUTH_INIT",EE="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_OAUTH_INIT_COMPLETE",OE="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_OAUTH_CONNECT",_E="WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_OAUTH_CONNECT_COMPLETE",nE="WOOCOMMERCE_SHIPPING_ZONE_ADD",CE="WOOCOMMERCE_SHIPPING_ZONE_CANCEL",rE="WOOCOMMERCE_SHIPPING_ZONE_CLOSE",tE="WOOCOMMERCE_SHIPPING_ZONE_DELETED",uE="WOOCOMMERCE_SHIPPING_ZONE_EDIT_NAME",RE="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_CANCEL",SE="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_CLOSE",TE="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_EDIT",ME="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_EDIT_POSTCODE",NE="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_POSTCODE",IE="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_STATE",eE="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_WHOLE_COUNTRY",oE="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_CONTINENT",iE="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_COUNTRY",cE="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_STATE",PE="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_UPDATED",fE="WOOCOMMERCE_SHIPPING_ZONE_METHODS_REQUEST",dE="WOOCOMMERCE_SHIPPING_ZONE_METHODS_REQUEST_SUCCESS",DE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_ADD",UE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CANCEL",WE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CLOSE",AE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CHANGE_TYPE",sE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CREATE",HE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_DELETE",bE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_DELETED",GE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_EDIT_TITLE",LE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_OPEN",aE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_REMOVE",pE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_CONDITION",ZE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_COST",lE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_MIN_COST",yE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_TAXABLE",QE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_TOGGLE_ENABLED",mE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_TOGGLE_OPENED_ENABLED",FE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_UPDATE",hE="WOOCOMMERCE_SHIPPING_ZONE_METHOD_UPDATED",gE="WOOCOMMERCE_SHIPPING_ZONE_OPEN",vE="WOOCOMMERCE_SHIPPING_ZONE_REMOVE",wE="WOOCOMMERCE_SHIPPING_ZONE_UPDATED",BE="WOOCOMMERCE_SHIPPING_ZONES_REQUEST",VE="WOOCOMMERCE_SHIPPING_ZONES_REQUEST_SUCCESS",YE="WOOCOMMERCE_SHIPPING_CLASSES_REQUEST",kE="WOOCOMMERCE_SHIPPING_CLASSES_REQUEST_SUCCESS"},542:function(E,O,_){"use strict";_.d(O,"a",function(){return s});var n=_(530),C=_.n(n),r=_(533),t=_.n(r),u=_(107),R=_.n(u),S=_(108),T=_.n(S),M=_(528),N=_.n(M),I=_(527),e=_.n(I),o=_(529),i=_.n(o),c=_(34),P=_.n(c),f=_(10),d=_.n(f),D=_(12),U=_.n(D),W=_(526),A=_.n(W),s=function(E){function O(){return R()(this,O),N()(this,e()(O).apply(this,arguments))}return i()(O,E),T()(O,[{key:"render",value:function(){var E=A()("button",this.props.className,{"is-compact":this.props.compact,"is-primary":this.props.primary,"is-scary":this.props.scary,"is-busy":this.props.busy,"is-borderless":this.props.borderless});if(this.props.href){var O=this.props,_=(O.compact,O.primary,O.scary,O.busy,O.borderless,O.type,t()(O,["compact","primary","scary","busy","borderless","type"])),n=_.target?(_.rel||"").replace(/noopener|noreferrer/g,"")+" noopener noreferrer":_.rel;return d.a.createElement("a",C()({},_,{rel:n,className:E}))}var r=this.props,u=(r.compact,r.primary,r.scary,r.busy,r.borderless,r.target,r.rel,t()(r,["compact","primary","scary","busy","borderless","target","rel"]));return d.a.createElement("button",C()({},u,{className:E}))}}]),O}(f.PureComponent);P()(s,"propTypes",{compact:U.a.bool,primary:U.a.bool,scary:U.a.bool,busy:U.a.bool,type:U.a.string,href:U.a.string,borderless:U.a.bool,target:U.a.string,rel:U.a.string}),P()(s,"defaultProps",{type:"button"})},561:function(E,O,_){"use strict";var n=_(75);O.a=n.a},562:function(E,O,_){"use strict";_.d(O,"a",function(){return n}),_.d(O,"b",function(){return C}),_.d(O,"c",function(){return r});var n=function(){return{}},C=function(){return""},r=function(){return!0}}}]);
|
|
dist/chunks/{0a0baee87f9c944b1a4e.css → 4d617f7576a645addec8.css}
RENAMED
File without changes
|
dist/chunks/{0a0baee87f9c944b1a4e.min.js → 4d617f7576a645addec8.min.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[154],{602:function(e,t,n){"use strict";var i=n(107),o=n.n(i),a=n(108),r=n.n(a),s=n(528),l=n.n(s),c=n(527),u=n.n(c),d=n(529),p=n.n(d),m=n(34),h=n.n(m),f=n(10),b=n.n(f),g=n(12),v=n.n(g),y=n(526),k=n.n(y),w=n(1),E=n(534),C=n.n(E),R=(n(629),function(e){function t(){return o()(this,t),l()(this,u()(t).apply(this,arguments))}return p()(t,e),r()(t,[{key:"render",value:function(){var e=k()("external-link",this.props.className,{"icon-first":!!this.props.showIconFirst},{"has-icon":!!this.props.icon}),t=Object(w.assign)({},Object(w.omit)(this.props,"icon","iconSize","showIconFirst","iconClassName"),{className:e,rel:"external"});t.target&&(t.rel=t.rel.concat(" noopener noreferrer"));var n=b.a.createElement(C.a,{className:this.props.iconClassName,icon:"external",size:this.props.iconSize});return b.a.createElement("a",t,this.props.icon&&this.props.showIconFirst&&n,this.props.children,this.props.icon&&!this.props.showIconFirst&&n)}}]),t}(f.Component));h()(R,"defaultProps",{iconSize:18,showIconFirst:!1}),h()(R,"propTypes",{className:v.a.string,href:v.a.string,onClick:v.a.func,icon:v.a.bool,iconSize:v.a.number,target:v.a.string,showIconFirst:v.a.bool,iconClassName:v.a.string}),t.a=R},629:function(e,t,n){},633:function(e,t,n){"use strict";var i=n(107),o=n.n(i),a=n(108),r=n.n(a),s=n(528),l=n.n(s),c=n(527),u=n.n(c),d=n(531),p=n.n(d),m=n(529),h=n.n(m),f=n(34),b=n.n(f),g=n(12),v=n.n(g),y=n(10),k=n.n(y),w=n(77),E=n.n(w),C=n(109),R=n(47),I=n.n(R),N=n(526),_=n.n(N),D=n(662),O=n.n(D),P=n(1),j=n(628),x=n(76),T=n.n(x),q=n(672),L=n.n(q),S=I()("calypso:popover:util");function M(){var e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,S("viewport: %o",e),e}var z={top:"bottom",bottom:"top",left:"right",right:"left"},A={top:"right",left:"top",bottom:"left",right:"bottom"},V=M();function F(){V=M()}var U=!1,B=function(){if(U)return S("window events already bound");U=!0,S("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",F,!0),window.addEventListener("scroll",F,!0)},H=function(){if(!U)return S("window events are not bound");U=!1,S("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",F,!0),window.removeEventListener("scroll",F,!0)},W=function(e,t,n){var i=L()(n),o=t.clientHeight,a=t.clientWidth,r={top:i.top-o,bottom:V.height-i.bottom-o,left:i.left-a,right:V.width-i.right-a},s=e.split(/\s+/),l=T()(s,1)[0],c=T()(s,2)[1],u=function(e,t){for(var n,i=[e,z[e],A[e],z[A[e]]],o=-1/0,a=0,r=i.length;a<r;a++){var s=i[a],l=t[s];if(l>0)return s;l>o&&(o=l,n=e)}return n}(l,r);return c!==u&&c!==z[u]||(c=null),function(e,t,n,i,o,a){for(var r,s="top"===e||"bottom"===e,l=t?[s?"".concat(e," ").concat(t):"".concat(t," ").concat(e),e,s?"".concat(e," ").concat(z[t]):"".concat(z[t]," ").concat(e)]:[e,s?"".concat(e," ").concat(A[e]):"".concat(A[e]," ").concat(e),s?"".concat(e," ").concat(z[A[e]]):"".concat(z[A[e]]," ").concat(e)],c=0,u=o*a,d=0,p=l.length;d<p;d++){var m=l[d],h=K(m,n,i),f=h.left+o,b=h.top+a,g=Math.min(h.top<V.top?b-V.top:V.bottom-h.top,a),v=Math.min(h.left<V.left?f-V.left:V.right-h.left,o),y=v*g;if(y===u)return m;y>c&&(c=y,r=m)}return r}(u,c,t,n,a,o)||e};function K(e,t,n,i){var o=L()(t);if(!o)throw new Error("could not get bounding client rect of Tip element");var a=o.width,r=o.height,s=L()(n);if(!s)throw new Error("could not get bounding client rect of `target`");var l=s.width,c=s.height,u=function(e,t){var n=t.body||t.getElementsByTagName("body")[0],i=t.documentElement||n.parentNode,o=i.clientTop||n.clientTop||0,a=i.clientLeft||n.clientLeft||0,r=window.pageYOffset||i.scrollTop,s=window.pageXOffset||i.scrollLeft;return{top:e.top+r-o,left:e.left+s-a}}(s,document);if(!u)throw new Error("could not determine page offset of `target`");var d={};switch(e){case"top":d={top:u.top-r,left:i&&i.left?u.left+i.left:u.left+l/2-a/2};break;case"bottom":d={top:u.top+c,left:i&&i.left?u.left+i.left:u.left+l/2-a/2};break;case"right":d={top:u.top+c/2-r/2,left:u.left+l};break;case"left":d={top:u.top+c/2-r/2,left:u.left-a};break;case"top left":d={top:u.top-r,left:u.left+l/2-a+15};break;case"top right":d={top:u.top-r,left:u.left+l/2-15};break;case"bottom left":d={top:u.top+c,left:u.left+l/2-a+15};break;case"bottom right":d={top:u.top+c,left:u.left+l/2-15};break;case"left top":d={top:u.top+c/2-r,left:u.left-a};break;case"left bottom":d={top:u.top+c/2,left:u.left-a};break;case"right top":d={top:u.top+c/2-r,left:u.left+l};break;case"right bottom":d={top:u.top+c/2,left:u.left+l};break;default:throw new Error('invalid position "'.concat(e,'"'))}return d}var Y=function(){},J=I()("calypso:popover"),X=new Set,G=function(e){function t(e){var n;return o()(this,t),n=l()(this,u()(t).call(this,e)),b()(p()(n),"isUpdatingPosition",!1),n.setPopoverId(e.id),n.setDOMBehavior=n.setDOMBehavior.bind(p()(n)),n.setPosition=n.setPosition.bind(p()(n)),n.onClickout=n.onClickout.bind(p()(n)),n.onKeydown=n.onKeydown.bind(p()(n)),n.onWindowChange=n.onWindowChange.bind(p()(n)),n.state={show:e.isVisible,left:-99999,top:-99999,positionClass:n.getPositionClass(e.position)},n}return h()(t,e),r()(t,[{key:"componentDidMount",value:function(){this.state.show&&(this.bindEscKeyListener(),this.bindDebouncedReposition(),B())}},{key:"componentWillReceiveProps",value:function(e){if(this.domContext=E.a.findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}},{key:"componentDidUpdate",value:function(e,t){var n=this,i=this.props.isVisible;return!t.show&&this.state.show&&(this.bindEscKeyListener(),this.bindDebouncedReposition(),B()),i!==e.isVisible&&(i?this.show():this.hide()),this.domContainer&&this.domContext&&i?void(this.isUpdatingPosition||(this.debug("requesting to update position after render completes"),requestAnimationFrame(function(){X.has(n.id)&&n.domContainer&&n.domContext&&i?(n.setPosition(),n.isUpdatingPosition=!1):n.isUpdatingPosition=!1}),this.isUpdatingPosition=!0)):null}},{key:"componentWillUnmount",value:function(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),H(),X.delete(this.id),J("current popover instances: ",X.size)}},{key:"bindEscKeyListener",value:function(){if(!this.props.closeOnEsc)return null;this.debug("adding escKey listener ..."),document.addEventListener("keydown",this.onKeydown,!0)}},{key:"unbindEscKeyListener",value:function(){if(!this.props.closeOnEsc)return null;this.debug("unbinding `escKey` listener ..."),document.removeEventListener("keydown",this.onKeydown,!0)}},{key:"onKeydown",value:function(e){if(27!==e.keyCode)return null;this.close(!0)}},{key:"bindClickoutHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),void(this._clickoutHandlerReference=O()(e,this.onClickout))):(this.debug("no element to bind clickout "),null)}},{key:"unbindClickoutHandler",value:function(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),this._clickoutHandlerReference(),this._clickoutHandlerReference=null)}},{key:"onClickout",value:function(e){var t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){var n=E.a.findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}},{key:"bindDebouncedReposition",value:function(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}},{key:"unbindDebouncedReposition",value:function(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}},{key:"onWindowChange",value:function(){this.willReposition=window.requestAnimationFrame(this.setPosition)}},{key:"setDOMBehavior",value:function(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,this.domContext=E.a.findDOMNode(this.props.context),this.setPosition()}},{key:"getPositionClass",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position;return"is-".concat(e.replace(/\s+/g,"-"))}},{key:"adjustRtlPosition",value:function(e){if(this.props.isRtl)switch(e){case"top right":case"right top":return"top left";case"right":return"left";case"bottom right":case"right bottom":return"bottom left";case"bottom left":case"left bottom":return"bottom right";case"left":return"right";case"top left":case"left top":return"top right"}return e}},{key:"computePosition",value:function(){if(!this.props.isVisible)return null;var e=this.domContainer,t=this.domContext,n=this.props,i=n.position,o=n.relativePosition;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;var a=i;this.debug("position: %o",a),this.props.autoRtl&&(a=this.adjustRtlPosition(a),this.debug("RTL adjusted position: %o",a)),this.props.autoPosition&&(a=W(a,e,t),this.debug("suggested position: %o",a));var r=Object.assign({},function(e,t){var n=L()(t).width;return e.left=Math.max(0,Math.min(e.left,V.width-n)),e}(K(a,e,t,o),e),{positionClass:this.getPositionClass(a)});return this.debug("updating reposition: ",r),r}},{key:"debug",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];J.apply(void 0,["[%s] ".concat(e),this.id].concat(n))}},{key:"setPopoverId",value:function(e){this.id=e||"pop__".concat(Object(P.uniqueId)()),X.add(this.id),this.debug("creating ..."),J("current popover instances: ",X.size)}},{key:"setPosition",value:function(){var e;if(this.debug("updating position"),!(e=this.props.customPosition?Object.assign({positionClass:this.getPositionClass(this.constructor.defaultProps.position)},this.props.customPosition):this.computePosition()))return null;this.willReposition=null,this.setState(e)}},{key:"getStylePosition",value:function(){var e=this.state;return{left:e.left,top:e.top}}},{key:"show",value:function(){var e=this;if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o","".concat(this.props.showDelay,"ms")),this.clearShowTimer(),this._openDelayTimer=setTimeout(function(){e.setState({show:!0})},this.props.showDelay)}},{key:"hide",value:function(){this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),H(),this.setState({show:!1}),this.clearShowTimer()}},{key:"clearShowTimer",value:function(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.props.onClose(e)}},{key:"render",value:function(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;var e=_()("popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),k.a.createElement(j.a,{className:this.props.rootClassName},k.a.createElement("div",{style:this.getStylePosition(),className:e},k.a.createElement("div",{className:"popover__arrow"}),k.a.createElement("div",{ref:this.setDOMBehavior,className:"popover__inner"},this.props.children)))}}]),t}(y.Component);b()(G,"propTypes",{autoPosition:v.a.bool,autoRtl:v.a.bool,className:v.a.string,closeOnEsc:v.a.bool,id:v.a.string,ignoreContext:v.a.shape({getDOMNode:v.a.function}),isRtl:v.a.bool,isVisible:v.a.bool,position:v.a.oneOf(["top","top right","right","bottom right","bottom","bottom left","left","top left"]),rootClassName:v.a.string,showDelay:v.a.number,onClose:v.a.func,onShow:v.a.func,relativePosition:v.a.shape({left:v.a.number}),customPosition:v.a.shape({top:v.a.number,left:v.a.number,positionClass:v.a.oneOf(["top","right","bottom","left"])})}),b()(G,"defaultProps",{autoPosition:!0,autoRtl:!0,className:"",closeOnEsc:!0,isRtl:!1,isVisible:!1,position:"top",showDelay:0,onClose:Y,onShow:Y});t.a=Object(C.b)(function(e){return{isRtl:document.body.classList.contains("rtl")}})(G)},682:function(e,t,n){},683:function(e,t,n){},685:function(e,t,n){"use strict";var i=n(107),o=n.n(i),a=n(108),r=n.n(a),s=n(528),l=n.n(s),c=n(527),u=n.n(c),d=n(531),p=n.n(d),m=n(529),h=n.n(m),f=n(34),b=n.n(f),g=n(109),v=n(35),y=n(12),k=n.n(y),w=n(10),E=n.n(w),C=n(1),R=(n(682),n(616)),I=n(534),N=n.n(I),_=n(584),D=n.n(_),O=n(30),P=n(790),j=n(526),x=n.n(j),T=n(542),q=n(633),L=function(e){return"HR"===e.tagName},S=function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"menu",E.a.createRef()),b()(p()(n),"_setPropsOnChild",function(e){if(null==e)return e;var t=n._onClose.bind(p()(n),e.props.action),i=t;return e.props.onClick&&(i=Object(C.over)([e.props.onClick,t])),E.a.cloneElement(e,{onClick:i})}),b()(p()(n),"_onShow",function(){var e=n.menu.current;n._previouslyFocusedElement=document.activeElement,e&&e.focus()}),b()(p()(n),"_getClosestSibling",function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=n.menu.current,o=i.firstChild,a=i.lastChild;if(t||(o=i.lastChild,a=i.firstChild),e===i)return o;var r=e[t?"nextSibling":"previousSibling"]||a;return L(r)?n._getClosestSibling(r,t):r}),b()(p()(n),"_onKeyDown",function(e){var t,i=e.target,o=!1;switch(e.keyCode){case 9:n.props.onClose(),o=!0;break;case 38:t=n._getClosestSibling(i,!1),o=!0;break;case 40:t=n._getClosestSibling(i,!0),o=!0}t&&t.focus(),o&&e.preventDefault()}),b()(p()(n),"_onClose",function(e){n._previouslyFocusedElement&&(n._previouslyFocusedElement.focus(),n._previouslyFocusedElement=null),n.props.onClose&&n.props.onClose(e)}),n}return h()(t,e),r()(t,[{key:"componentWillUnmount",value:function(){this._previouslyFocusedElement=null}},{key:"render",value:function(){var e=this.props,t=e.popoverComponent,n=e.autoPosition,i=e.className,o=e.context,a=e.customPosition,r=e.isVisible,s=e.popoverTitle,l=e.position,c=e.rootClassName;return E.a.createElement(t,{onClose:this._onClose,onShow:this._onShow,autoPosition:n,className:i,context:o,customPosition:a,isVisible:r,popoverTitle:s,position:l,rootClassName:c},E.a.createElement("div",{ref:this.menu,role:"menu",className:"popover__menu",onKeyDown:this._onKeyDown,tabIndex:"-1"},E.a.Children.map(this.props.children,this._setPropsOnChild,this)))}}]),t}(w.Component);b()(S,"propTypes",{autoPosition:k.a.bool,isVisible:k.a.bool.isRequired,onClose:k.a.func.isRequired,position:k.a.string,className:k.a.string,rootClassName:k.a.string,popoverComponent:k.a.func,popoverTitle:k.a.string,customPosition:k.a.object}),b()(S,"defaultProps",{autoPosition:!0,position:"top",popoverComponent:q.a});var M=S,z=(n(683),function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"state",{isMenuVisible:!1}),b()(p()(n),"popoverContext",E.a.createRef()),b()(p()(n),"handleClick",function(e){var t=n.props.onClick,i=n.state.isMenuVisible;t(e),i?n.hideMenu():n.showMenu()}),b()(p()(n),"hideMenu",function(){return n.toggleMenu(!1)}),b()(p()(n),"showMenu",function(){return n.toggleMenu(!0)}),n}return h()(t,e),r()(t,[{key:"toggleMenu",value:function(e){this.props.disabled||(this.setState({isMenuVisible:e}),this.props.onToggle(e))}},{key:"render",value:function(){var e=this.props,t=e.toggleTitle,n=e.translate,i=e.position,o=e.children,a=e.disabled,r=e.className,s=e.popoverClassName,l=this.state.isMenuVisible,c=x()("ellipsis-menu",r,{"is-menu-visible":l,"is-disabled":a}),u=x()("ellipsis-menu__menu","popover",s);return E.a.createElement("span",{className:c},E.a.createElement(T.a,{ref:this.popoverContext,onClick:this.handleClick,title:t||n("Toggle menu"),borderless:!0,disabled:a,className:"ellipsis-menu__toggle"},E.a.createElement(N.a,{icon:"ellipsis",className:"ellipsis-menu__toggle-icon"})),E.a.createElement(M,{isVisible:l,onClose:this.hideMenu,position:i,context:this.popoverContext.current,className:u},o))}}]),t}(w.Component));b()(z,"propTypes",{translate:k.a.func,toggleTitle:k.a.string,position:k.a.string,disabled:k.a.bool,onClick:k.a.func,onToggle:k.a.func,popoverClassName:k.a.string}),b()(z,"defaultProps",{onClick:C.noop,onToggle:C.noop});var A=Object(v.localize)(z),V=n(530),F=n.n(V),U=n(602),B=function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"handleMouseOver",function(e){n.props.focusOnHover&&e.target.focus(),n.props.onMouseOver()}),n}return h()(t,e),r()(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.href,o=e.icon,a=e.isSelected,r=e.isExternalLink,s=Object(C.omit)(this.props,"icon","focusOnHover","isSelected","isExternalLink","className","itemComponent"),l=x()("popover__menu-item",n,{"is-selected":a}),c=this.props.itemComponent;return r&&i?(c=U.a,s.icon=!0):i&&(c="a"),E.a.createElement(c,F()({role:"menuitem",onMouseOver:this.handleMouseOver,tabIndex:"-1",className:l},s),o&&E.a.createElement(N.a,{icon:o,size:18}),t)}}]),t}(w.Component);b()(B,"propTypes",{href:k.a.string,className:k.a.string,isSelected:k.a.bool,icon:k.a.string,focusOnHover:k.a.bool,onMouseOver:k.a.func,isExternalLink:k.a.bool,itemComponent:k.a.oneOfType([k.a.func,k.a.string])}),b()(B,"defaultProps",{isSelected:!1,focusOnHover:!0,onMouseOver:C.noop,itemComponent:"button"});var H=n(551),W=n(548),K=n(540),Y=n(537),J=function(e){var t=e.orderId,n=e.siteId,i=e.refundDialog,o=e.createdDate,a=e.refundableAmount,r=e.currency,s=e.labelId,l=e.translate,c=e.moment,u=e.label,d=void 0===u?{}:u,p=function(){return D()(a,r)},m=function(){return e.closeRefundDialog(t,n)},h=[{action:"cancel",label:l("Cancel"),onClick:m},{action:"confirm",onClick:function(){return e.confirmRefund(t,n)},isPrimary:!0,disabled:i&&i.isSubmitting,additionalClassNames:i&&i.isSubmitting?"is-busy":"",label:l("Refund label (-%(amount)s)",{args:{amount:p()}})}];return E.a.createElement(H.a,{additionalClassNames:"label-refund-modal woocommerce wcc-root",isVisible:Boolean(i&&i.labelId===s),onClose:m,buttons:h},E.a.createElement(W.a,null,l("Request a refund")),E.a.createElement("p",null,l("You can request a refund for a shipping label that has not been used to ship a package. It will take at least %(days)s days to process.",{args:{days:"dhlexpress"===d.carrier_id?"31":"14"}})),E.a.createElement("dl",null,E.a.createElement("dt",null,l("Purchase date")),E.a.createElement("dd",null,c(o).format("LLL")),E.a.createElement("dt",null,l("Amount eligible for refund")),E.a.createElement("dd",null,p())))};J.propTypes={siteId:k.a.number.isRequired,orderId:k.a.number.isRequired,refundDialog:k.a.object,createdDate:k.a.number,refundableAmount:k.a.number,currency:k.a.string,labelId:k.a.number,closeRefundDialog:k.a.func.isRequired,confirmRefund:k.a.func.isRequired};var X=Object(g.b)(function(e,t){var n=t.orderId,i=t.siteId,o=t.labelId,a=Object(Y.t)(e,n,i),r=Object(Y.j)(e,n,i);return{refundDialog:a?r.refundDialog:{},label:Object(Y.g)(e,n,i,o)}},function(e){return Object(O.b)({closeRefundDialog:K.e,confirmRefund:K.k},e)})(Object(v.localize)(J)),G=n(601),Q=n(605),Z=function(e){var t=e.orderId,n=e.siteId,i=e.reprintDialog,o=e.paperSize,a=e.storeOptions,r=e.labelId,s=e.translate,l=function(){return e.closeReprintDialog(t,n)},c=[{action:"cancel",label:s("Cancel"),onClick:l},{action:"confirm",onClick:function(){return e.confirmReprint(t,n)},isPrimary:!0,disabled:i&&!i.fileData,additionalClassNames:i&&i.isFetching?"is-busy":"",label:s("Print")}];return E.a.createElement(H.a,{isVisible:Boolean(i&&i.labelId===r),onClose:l,buttons:c,additionalClassNames:"label-reprint-modal woocommerce wcc-root"},E.a.createElement(W.a,null,s("Reprint shipping label")),E.a.createElement("p",null,s("If there was a printing error when you purchased the label, you can print it again.")),E.a.createElement("p",{className:"shipping-label__reprint-modal-notice"},s("NOTE: If you already used the label in a package, printing and using it again is a violation of our terms of service and may result in criminal charges.")),E.a.createElement(G.a,{id:"paper_size",valuesMap:Object(Q.a)(a.origin_country),title:s("Paper size"),value:o,updateValue:function(i){return e.updatePaperSize(t,n,i)}}))};Z.propTypes={siteId:k.a.number.isRequired,orderId:k.a.number.isRequired,reprintDialog:k.a.object,paperSize:k.a.string.isRequired,storeOptions:k.a.object.isRequired,labelId:k.a.number,closeReprintDialog:k.a.func.isRequired,confirmReprint:k.a.func.isRequired};var $=Object(g.b)(function(e,t){var n=t.orderId,i=t.siteId,o=Object(Y.t)(e,n,i),a=Object(Y.j)(e,n,i);return{reprintDialog:o?a.reprintDialog:{},paperSize:a.paperSize,storeOptions:o?a.storeOptions:{}}},function(e){return Object(O.b)({closeReprintDialog:K.f,confirmReprint:K.l,updatePaperSize:K.X},e)})(Object(v.localize)(Z)),ee=n(645),te=n(544),ne=function(e){var t=e.orderId,n=e.siteId,i=e.isVisible,o=e.labelIndex,a=e.serviceName,r=e.packageName,s=e.productNames,l=e.canManagePayments,c=e.receiptId,u=e.translate,d=function(){return e.closeDetailsDialog(t,n)},p=[{action:"close",label:u("Close"),onClick:d}];return E.a.createElement(H.a,{additionalClassNames:"label-details-modal woocommerce wcc-root",isVisible:i,onClose:d,buttons:p},E.a.createElement(W.a,{className:"shipping-label__label-details-modal-heading"},E.a.createElement("span",{className:"shipping-label__label-details-modal-heading-title"},u("Label #%(labelIndex)s details",{args:{labelIndex:o+1}})),l&&c?E.a.createElement("a",{href:"".concat(Object(ee.a)(),"/me/purchases/billing/").concat(c),target:"_blank",rel:"noopener noreferrer"},u("Receipt")):null),E.a.createElement("dl",null,E.a.createElement("dt",null,u("Service")),E.a.createElement("dd",null,a),E.a.createElement("dt",null,u("Package")),E.a.createElement("dd",null,r),E.a.createElement("dt",null,u("Items")),E.a.createElement("dd",null,E.a.createElement("ul",null,s.map(function(e,t){return E.a.createElement("li",{key:t},e)})))))};ne.propTypes={siteId:k.a.number.isRequired,orderId:k.a.number.isRequired,isVisible:k.a.bool,serviceName:k.a.string,packageName:k.a.string,productNames:k.a.array,closeDetailsDialog:k.a.func.isRequired,receiptId:k.a.number};var ie=Object(g.b)(function(e,t){var n=t.orderId,i=t.siteId,o=t.labelId,a=Object(Y.t)(e,n,i),r=Object(Y.j)(e,n,i).detailsDialog;return{isVisible:Boolean(a&&r&&r.labelId===o),canManagePayments:Object(te.q)(e,i)}},function(e){return Object(O.b)({closeDetailsDialog:K.c},e)})(Object(v.localize)(ne)),oe={usps:function(e){return"https://tools.usps.com/go/TrackConfirmAction.action?tLabels=".concat(e)},fedex:function(e){return"https://www.fedex.com/apps/fedextrack/?action=track&tracknumbers=".concat(e)},ups:function(e){return"https://www.ups.com/track?loc=en_US&tracknum=".concat(e)},dhlexpress:function(e){return"https://www.dhl.com/en/express/tracking.html?AWB=".concat(e,"&brand=DHL")}},ae=function(e){var t=e.tracking,n=e.carrierId,i=e.translate;if(!t)return E.a.createElement("span",null,i("N/A"));var o=oe[n](t);return o?E.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:o},t," ",E.a.createElement(N.a,{icon:"external",size:12})):E.a.createElement("span",null,t)};ae.propTypes={tracking:k.a.string,carrierId:k.a.string};var re=Object(v.localize)(ae),se=function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"renderRefund",function(e,t,i,o){var a=n.props,r=a.orderId,s=a.siteId,l=a.translate,c="",u=!1;if(t?(c=l("Labels older than 30 days cannot be refunded."),u=!0):"usps"!==i||o||(c=l("USPS labels without tracking are not eligible for refund."),u=!0),u)return E.a.createElement(P.a,{position:"top left",text:c},E.a.createElement("button",{className:"popover__menu-item shipping-label__item-menu-reprint-expired",role:"menuitem",tabIndex:"-1"},E.a.createElement(N.a,{icon:"refund",size:18}),E.a.createElement("span",null," ",l("Request refund")," ")));return E.a.createElement(B,{onClick:function(){n.props.openRefundDialog(r,s,e)},icon:"refund"},l("Request refund"))}),b()(p()(n),"renderReprint",function(e,t){var i=n.props,o=i.orderId,a=i.siteId,r=i.translate;if(t)return E.a.createElement(P.a,{position:"top left",text:r("Label images older than 180 days are deleted by our technology partners for general security and data privacy concerns.")},E.a.createElement("button",{className:"popover__menu-item shipping-label__item-menu-reprint-expired",role:"menuitem",tabIndex:"-1"},E.a.createElement(N.a,{icon:"print",size:18}),E.a.createElement("span",null," ",r("Reprint")," ")));return E.a.createElement(B,{onClick:function(){n.props.openReprintDialog(o,a,e)},icon:"print"},r("Reprint shipping label"))}),b()(p()(n),"renderLabelDetails",function(e){var t=n.props,i=t.orderId,o=t.siteId,a=t.translate;return E.a.createElement(B,{onClick:function(){n.props.openDetailsDialog(i,o,e)},icon:"info-outline"},a("View details"))}),b()(p()(n),"renderPickup",function(e){var t=n.props.translate,i={usps:"https://tools.usps.com/schedule-pickup-steps.htm",fedex:"https://www.fedex.com/en-us/shipping/schedule-manage-pickups.html",ups:"https://wwwapps.ups.com/pickup/request",dhlexpress:"https://mydhl.express.dhl/us/en/home.html#/schedulePickupTab"};if(!i.hasOwnProperty(e))return null;return E.a.createElement(B,{onClick:function(){window.open(i[e],"_blank")},icon:"external"},t("Schedule a pickup"))}),n}return h()(t,e),r()(t,[{key:"renderCommercialInvoiceLink",value:function(){var e=this.props,t=e.translate,n=e.label.commercialInvoiceUrl;if(!n)return null;return E.a.createElement(B,{onClick:function(){window.open(n)},icon:"print"},t("Print customs form"))}},{key:"render",value:function(){var e=this.props,t=e.label,n=t.labelIndex,i=t.serviceName,o=t.packageName,a=t.productNames,r=t.receiptId,s=t.labelId,l=t.createdDate,c=t.refundableAmount,u=t.currency,d=t.showDetails,p=t.expiryDate,m=t.anonymized,h=t.usedDate,f=t.tracking,b=t.carrierId,g=t.commercialInvoiceUrl,v=e.siteId,y=e.orderId,k=e.translate,w=e.isModal,C=(new Date).getTime(),R=!1,I=!1;(m||h||p&&p<C)&&(R=!0);var N=(new Date).setDate((new Date).getDate()-30);return(m||h||l&&l<N)&&(I=!0),E.a.createElement("div",{className:"shipping-label__item"},E.a.createElement("p",{className:"shipping-label__item-detail"},k("%(service)s label (#%(labelIndex)d)",{args:{service:i,labelIndex:n+1}}),d&&E.a.createElement("span",null,!w&&E.a.createElement(A,{position:"bottom left"},this.renderLabelDetails(s),this.renderPickup(b),this.renderRefund(s,I,b,f),this.renderReprint(s,R),this.renderCommercialInvoiceLink(g)),E.a.createElement(ie,{siteId:v,orderId:y,labelIndex:n,serviceName:i,packageName:o,productNames:a,receiptId:r,labelId:s}),E.a.createElement(X,{siteId:v,orderId:y,createdDate:l,refundableAmount:c,currency:u,labelId:s}),E.a.createElement($,{siteId:v,orderId:y,labelId:s}))),d&&E.a.createElement("p",{className:"shipping-label__item-tracking"},k("Tracking #: {{trackingLink/}}",{components:{trackingLink:E.a.createElement(re,{carrierId:b,tracking:f})}})))}}]),t}(w.Component);se.propTypes={siteId:k.a.number.isRequired,orderId:k.a.number.isRequired,label:k.a.shape({serviceName:k.a.string.isRequired,labelIndex:k.a.number.isRequired,packageName:k.a.string.isRequired,productNames:k.a.string.isRequired,receiptId:k.a.number.isRequired,labelId:k.a.number.isRequired,createdDate:k.a.string.isRequired,refundableAmount:k.a.number.isRequired,currency:k.a.string.isRequired,showDetails:k.a.bool.isRequired,expiryDate:k.a.string.isRequired,anonymized:k.a.bool.isRequired,usedDate:k.a.string.isRequired,tracking:k.a.string.isRequired,carrierId:k.a.string.isRequired,commercialInvoiceUrl:k.a.string}).isRequired,isModal:k.a.bool.isRequired,openRefundDialog:k.a.func.isRequired,openReprintDialog:k.a.func.isRequired,openDetailsDialog:k.a.func.isRequired};var le=Object(g.b)(null,function(e){return Object(O.b)({openRefundDialog:K.y,openReprintDialog:K.z,openDetailsDialog:K.u},e)})(Object(v.localize)(se)),ce=function(e){function t(){return o()(this,t),l()(this,u()(t).apply(this,arguments))}return h()(t,e),r()(t,[{key:"render",value:function(){var e=this.props,t=e.label,n=e.translate,i=t.serviceName,o=t.labelIndex;return E.a.createElement("div",{className:"shipping-label__item"},E.a.createElement("p",{className:"shipping-label__item-detail"},n("%(service)s label (#%(labelIndex)d)",{args:{service:i,labelIndex:o+1}}),E.a.createElement("br",null),n("Purchasing\u2026")))}}]),t}(se);se.propTypes={label:k.a.object.isRequired};var ue=Object(v.localize)(ce),de=n(603),pe=function(e){function t(){var e,n,i;o()(this,t);for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return i=l()(this,(e=u()(t)).call.apply(e,[this].concat(r))),b()(p()(i),"eventPropsByType",(n={},b()(n,R.a.INTERNAL_NOTE,function(e){return{icon:"aside",heading:(0,i.props.translate)("Internal note"),content:Object(de.a)(Object(de.b)(e.content))}}),b()(n,R.a.CUSTOMER_NOTE,function(e){return{icon:"mail",heading:(0,i.props.translate)("Note sent to customer"),content:Object(de.a)(Object(de.b)(e.content))}}),b()(n,R.a.LABEL_PURCHASING,function(e){return{icon:"sync",content:E.a.createElement(ue,{label:e,orderId:i.props.orderId,siteId:i.props.siteId})}}),b()(n,R.a.LABEL_PURCHASED,function(e){return{icon:"print",content:E.a.createElement(le,{label:e,orderId:i.props.orderId,siteId:i.props.siteId,isModal:i.props.isModal})}}),b()(n,R.a.LABEL_REFUND_REQUESTED,function(e){var t=i.props.translate;return{icon:"time",content:E.a.createElement("div",null,t("%(service)s label (#%(labelNum)d) refund requested (%(amount)s)",{args:{service:e.serviceName,labelNum:e.labelIndex+1,amount:D()(e.amount,e.currency)}}))}}),b()(n,R.a.LABEL_REFUND_COMPLETED,function(e){var t=i.props.translate;return{icon:"refund",content:E.a.createElement("div",null,t("%(service)s label (#%(labelNum)d) refunded (%(amount)s)",{args:{service:e.serviceName,labelNum:e.labelIndex+1,amount:D()(e.amount,e.currency)}}))}}),b()(n,R.a.LABEL_REFUND_REJECTED,function(e){var t=i.props.translate;return{icon:"cross-small",content:E.a.createElement("div",null,t("%(service)s label (#%(labelNum)d) refund rejected",{service:e.serviceName,args:{labelNum:e.labelIndex+1}}))}}),b()(n,R.a.REFUND_NOTE,function(e){var t=i.props.translate;return{icon:"credit-card",heading:t("Refund"),content:E.a.createElement("div",null,t("Refunded %(amount)s",{args:{amount:D()(e.amount,e.currency)}}),E.a.createElement("br",null),e.reason)}}),b()(n,void 0,function(){return{}}),n)),b()(p()(i),"renderDefaultEvent",function(e){return{icon:"aside",heading:(0,i.props.translate)("Note"),content:e.content}}),i}return h()(t,e),r()(t,[{key:"render",value:function(){var e=this.props,t=e.moment,n=e.event,i=(this.eventPropsByType[n.type]||this.renderDefaultEvent)(n),o=i.icon,a=i.heading,r=i.content;return E.a.createElement("div",{className:"order-activity-log__note"},E.a.createElement("div",{className:"order-activity-log__note-meta"},E.a.createElement("span",{className:"order-activity-log__note-time"},t(n.timestamp).format("LT")),o&&E.a.createElement(N.a,{icon:o,size:24})),E.a.createElement("div",{className:"order-activity-log__note-body"},E.a.createElement("div",{className:"order-activity-log__note-type"},a),E.a.createElement("div",{className:"order-activity-log__note-content"},r)))}}]),t}(w.Component);b()(pe,"propTypes",{customer_note:k.a.bool,date_created_gmt:k.a.string,note:k.a.string.isRequired}),b()(pe,"propTypes",{event:k.a.object}),b()(pe,"defaultProps",{event:{}});var me=Object(v.localize)(pe),he=n(600),fe=function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"onClick",function(){n.props.onClick(n.props.date)}),n}return h()(t,e),r()(t,[{key:"render",value:function(){var e=this.props,t=e.count,n=e.date,i=e.isOpen,o=e.moment,a=e.translate,r=o(n,"YYYYMMDD").format("ll"),s=E.a.createElement("div",null,E.a.createElement("h3",null,r),E.a.createElement("small",null,a("%(count)s event","%(count)s events",{count:t,args:{count:t}})));return E.a.createElement("div",{className:"order-activity-log__day"},E.a.createElement(he.a,{onClick:this.onClick,className:"order-activity-log__day-header",expanded:i,header:s,screenReaderText:a("Show notes from %(date)s",{args:{date:r}})},this.props.children))}}]),t}(w.Component);b()(fe,"propTypes",{count:k.a.number.isRequired,date:k.a.string.isRequired,isOpen:k.a.bool.isRequired,onClick:k.a.func.isRequired});var be=Object(v.localize)(fe);var ge=function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"toggleOpenDay",function(e){n.setState(function(){return{openDay:e}})}),b()(p()(n),"renderNotes",function(){var e=n.props,t=e.days,i=e.eventsByDay,o=e.translate;return t.length?E.a.createElement("div",null,t.map(function(e){var t=i[e];return E.a.createElement(be,{key:e,count:t.length,date:e,isOpen:e===n.state.openDay,onClick:n.toggleOpenDay},t.map(function(e){return E.a.createElement(me,{key:"".concat(e.type,"-").concat(e.key),event:e,orderId:n.props.orderId,siteId:n.props.siteId,isModal:n.props.isModal})}))})):E.a.createElement("p",null,o("No activity yet"))}),b()(p()(n),"renderPlaceholder",function(){return E.a.createElement("div",{className:"is-placeholder"},E.a.createElement(be,{count:0,date:"",isOpen:!0,index:1,onClick:C.noop},E.a.createElement(me,null)))}),n}return h()(t,e),r()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.setState({openDay:Object(C.last)(Object(C.keys)(this.props.eventsByDay))})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=Object(C.last)(Object(C.keys)(e.eventsByDay));this.props.eventsByDay[t]||this.setState({openDay:t})}},{key:"render",value:function(){return this.props.isLoaded?this.renderNotes():this.renderPlaceholder()}}]),t}(w.Component);b()(ge,"propTypes",{orderId:k.a.number.isRequired,siteId:k.a.number.isRequired});t.a=Object(g.b)(function(e,t){var n=t.orderId||!1,i=Object(R.c)(e,n),o=Object(R.b)(e,n),a=o.length?function(e){var t={};return e.forEach(function(e){var n=Object(v.moment)(e.timestamp).format("YYYYMMDD");t[n]?t[n].push(e):t[n]=[e]}),Object(C.keys)(t).forEach(function(e){t[e]=Object(C.sortBy)(t[e],["timestamp","key"]).reverse()}),t}(o):{},r=a?Object(C.keys)(a):[];return r.sort().reverse(),{isLoaded:i,days:r,events:o,eventsByDay:a}})(Object(v.localize)(ge))},787:function(e,t,n){"use strict";n.r(t);var i=n(10),o=n.n(i),a=n(12),r=n.n(a),s=n(109),l=n(30),c=n(35),u=n(534),d=n.n(u),p=n(551),m=n(548),h=n(540),f=n(542),b=n(537),g=n(685),v=function(e){var t=e.loaded,n=e.translate;if(!t)return null;var i=function(){return e.exitTrackingFlow(e.orderId,e.siteId,!1)};return o.a.createElement(p.a,{additionalClassNames:"woocommerce tracking-modal wcc-root",isVisible:e.showTrackingDialog,onClose:i},o.a.createElement("div",{className:"tracking-modal__content"},o.a.createElement("div",{className:"tracking-modal__header"},o.a.createElement(m.a,null,n("Which package would you like to track?")),o.a.createElement(f.a,{className:"tracking-modal__close-button",onClick:i},o.a.createElement(d.a,{icon:"cross"}))),o.a.createElement("div",{className:"tracking-modal__body"},o.a.createElement("div",{className:"tracking-modal__main-section"},o.a.createElement("div",{className:"shipment-tracking__dummy-class order-activity-log"},o.a.createElement(g.a,{orderId:e.orderId,siteId:e.siteId,isModal:!0}))))))};v.propTypes={siteId:r.a.number.isRequired,orderId:r.a.number.isRequired};t.default=Object(s.b)(function(e,t){var n=t.orderId,i=t.siteId,o=Object(b.t)(e,n,i),a=Object(b.j)(e,n,i);return{loaded:o,form:o&&a.form,showTrackingDialog:a.showTrackingDialog,isCustomsFormRequired:Object(b.p)(e,n,i)}},function(e){return Object(l.b)({exitTrackingFlow:h.p},e)})(Object(c.localize)(v))}}]);
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[152],{602:function(e,t,n){"use strict";var i=n(107),o=n.n(i),a=n(108),r=n.n(a),s=n(528),l=n.n(s),c=n(527),u=n.n(c),d=n(529),p=n.n(d),m=n(34),h=n.n(m),f=n(10),b=n.n(f),g=n(12),v=n.n(g),y=n(526),k=n.n(y),w=n(1),E=n(534),C=n.n(E),R=(n(629),function(e){function t(){return o()(this,t),l()(this,u()(t).apply(this,arguments))}return p()(t,e),r()(t,[{key:"render",value:function(){var e=k()("external-link",this.props.className,{"icon-first":!!this.props.showIconFirst},{"has-icon":!!this.props.icon}),t=Object(w.assign)({},Object(w.omit)(this.props,"icon","iconSize","showIconFirst","iconClassName"),{className:e,rel:"external"});t.target&&(t.rel=t.rel.concat(" noopener noreferrer"));var n=b.a.createElement(C.a,{className:this.props.iconClassName,icon:"external",size:this.props.iconSize});return b.a.createElement("a",t,this.props.icon&&this.props.showIconFirst&&n,this.props.children,this.props.icon&&!this.props.showIconFirst&&n)}}]),t}(f.Component));h()(R,"defaultProps",{iconSize:18,showIconFirst:!1}),h()(R,"propTypes",{className:v.a.string,href:v.a.string,onClick:v.a.func,icon:v.a.bool,iconSize:v.a.number,target:v.a.string,showIconFirst:v.a.bool,iconClassName:v.a.string}),t.a=R},629:function(e,t,n){},632:function(e,t,n){"use strict";var i=n(107),o=n.n(i),a=n(108),r=n.n(a),s=n(528),l=n.n(s),c=n(527),u=n.n(c),d=n(531),p=n.n(d),m=n(529),h=n.n(m),f=n(34),b=n.n(f),g=n(12),v=n.n(g),y=n(10),k=n.n(y),w=n(77),E=n.n(w),C=n(109),R=n(47),I=n.n(R),N=n(526),_=n.n(N),D=n(660),O=n.n(D),P=n(1),j=n(628),x=n(76),T=n.n(x),q=n(670),L=n.n(q),S=I()("calypso:popover:util");function M(){var e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,S("viewport: %o",e),e}var z={top:"bottom",bottom:"top",left:"right",right:"left"},A={top:"right",left:"top",bottom:"left",right:"bottom"},V=M();function F(){V=M()}var U=!1,B=function(){if(U)return S("window events already bound");U=!0,S("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",F,!0),window.addEventListener("scroll",F,!0)},H=function(){if(!U)return S("window events are not bound");U=!1,S("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",F,!0),window.removeEventListener("scroll",F,!0)},W=function(e,t,n){var i=L()(n),o=t.clientHeight,a=t.clientWidth,r={top:i.top-o,bottom:V.height-i.bottom-o,left:i.left-a,right:V.width-i.right-a},s=e.split(/\s+/),l=T()(s,1)[0],c=T()(s,2)[1],u=function(e,t){for(var n,i=[e,z[e],A[e],z[A[e]]],o=-1/0,a=0,r=i.length;a<r;a++){var s=i[a],l=t[s];if(l>0)return s;l>o&&(o=l,n=e)}return n}(l,r);return c!==u&&c!==z[u]||(c=null),function(e,t,n,i,o,a){for(var r,s="top"===e||"bottom"===e,l=t?[s?"".concat(e," ").concat(t):"".concat(t," ").concat(e),e,s?"".concat(e," ").concat(z[t]):"".concat(z[t]," ").concat(e)]:[e,s?"".concat(e," ").concat(A[e]):"".concat(A[e]," ").concat(e),s?"".concat(e," ").concat(z[A[e]]):"".concat(z[A[e]]," ").concat(e)],c=0,u=o*a,d=0,p=l.length;d<p;d++){var m=l[d],h=K(m,n,i),f=h.left+o,b=h.top+a,g=Math.min(h.top<V.top?b-V.top:V.bottom-h.top,a),v=Math.min(h.left<V.left?f-V.left:V.right-h.left,o),y=v*g;if(y===u)return m;y>c&&(c=y,r=m)}return r}(u,c,t,n,a,o)||e};function K(e,t,n,i){var o=L()(t);if(!o)throw new Error("could not get bounding client rect of Tip element");var a=o.width,r=o.height,s=L()(n);if(!s)throw new Error("could not get bounding client rect of `target`");var l=s.width,c=s.height,u=function(e,t){var n=t.body||t.getElementsByTagName("body")[0],i=t.documentElement||n.parentNode,o=i.clientTop||n.clientTop||0,a=i.clientLeft||n.clientLeft||0,r=window.pageYOffset||i.scrollTop,s=window.pageXOffset||i.scrollLeft;return{top:e.top+r-o,left:e.left+s-a}}(s,document);if(!u)throw new Error("could not determine page offset of `target`");var d={};switch(e){case"top":d={top:u.top-r,left:i&&i.left?u.left+i.left:u.left+l/2-a/2};break;case"bottom":d={top:u.top+c,left:i&&i.left?u.left+i.left:u.left+l/2-a/2};break;case"right":d={top:u.top+c/2-r/2,left:u.left+l};break;case"left":d={top:u.top+c/2-r/2,left:u.left-a};break;case"top left":d={top:u.top-r,left:u.left+l/2-a+15};break;case"top right":d={top:u.top-r,left:u.left+l/2-15};break;case"bottom left":d={top:u.top+c,left:u.left+l/2-a+15};break;case"bottom right":d={top:u.top+c,left:u.left+l/2-15};break;case"left top":d={top:u.top+c/2-r,left:u.left-a};break;case"left bottom":d={top:u.top+c/2,left:u.left-a};break;case"right top":d={top:u.top+c/2-r,left:u.left+l};break;case"right bottom":d={top:u.top+c/2,left:u.left+l};break;default:throw new Error('invalid position "'.concat(e,'"'))}return d}var Y=function(){},J=I()("calypso:popover"),X=new Set,G=function(e){function t(e){var n;return o()(this,t),n=l()(this,u()(t).call(this,e)),b()(p()(n),"isUpdatingPosition",!1),n.setPopoverId(e.id),n.setDOMBehavior=n.setDOMBehavior.bind(p()(n)),n.setPosition=n.setPosition.bind(p()(n)),n.onClickout=n.onClickout.bind(p()(n)),n.onKeydown=n.onKeydown.bind(p()(n)),n.onWindowChange=n.onWindowChange.bind(p()(n)),n.state={show:e.isVisible,left:-99999,top:-99999,positionClass:n.getPositionClass(e.position)},n}return h()(t,e),r()(t,[{key:"componentDidMount",value:function(){this.state.show&&(this.bindEscKeyListener(),this.bindDebouncedReposition(),B())}},{key:"componentWillReceiveProps",value:function(e){if(this.domContext=E.a.findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}},{key:"componentDidUpdate",value:function(e,t){var n=this,i=this.props.isVisible;return!t.show&&this.state.show&&(this.bindEscKeyListener(),this.bindDebouncedReposition(),B()),i!==e.isVisible&&(i?this.show():this.hide()),this.domContainer&&this.domContext&&i?void(this.isUpdatingPosition||(this.debug("requesting to update position after render completes"),requestAnimationFrame(function(){X.has(n.id)&&n.domContainer&&n.domContext&&i?(n.setPosition(),n.isUpdatingPosition=!1):n.isUpdatingPosition=!1}),this.isUpdatingPosition=!0)):null}},{key:"componentWillUnmount",value:function(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),H(),X.delete(this.id),J("current popover instances: ",X.size)}},{key:"bindEscKeyListener",value:function(){if(!this.props.closeOnEsc)return null;this.debug("adding escKey listener ..."),document.addEventListener("keydown",this.onKeydown,!0)}},{key:"unbindEscKeyListener",value:function(){if(!this.props.closeOnEsc)return null;this.debug("unbinding `escKey` listener ..."),document.removeEventListener("keydown",this.onKeydown,!0)}},{key:"onKeydown",value:function(e){if(27!==e.keyCode)return null;this.close(!0)}},{key:"bindClickoutHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),void(this._clickoutHandlerReference=O()(e,this.onClickout))):(this.debug("no element to bind clickout "),null)}},{key:"unbindClickoutHandler",value:function(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),this._clickoutHandlerReference(),this._clickoutHandlerReference=null)}},{key:"onClickout",value:function(e){var t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){var n=E.a.findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}},{key:"bindDebouncedReposition",value:function(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}},{key:"unbindDebouncedReposition",value:function(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}},{key:"onWindowChange",value:function(){this.willReposition=window.requestAnimationFrame(this.setPosition)}},{key:"setDOMBehavior",value:function(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,this.domContext=E.a.findDOMNode(this.props.context),this.setPosition()}},{key:"getPositionClass",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position;return"is-".concat(e.replace(/\s+/g,"-"))}},{key:"adjustRtlPosition",value:function(e){if(this.props.isRtl)switch(e){case"top right":case"right top":return"top left";case"right":return"left";case"bottom right":case"right bottom":return"bottom left";case"bottom left":case"left bottom":return"bottom right";case"left":return"right";case"top left":case"left top":return"top right"}return e}},{key:"computePosition",value:function(){if(!this.props.isVisible)return null;var e=this.domContainer,t=this.domContext,n=this.props,i=n.position,o=n.relativePosition;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;var a=i;this.debug("position: %o",a),this.props.autoRtl&&(a=this.adjustRtlPosition(a),this.debug("RTL adjusted position: %o",a)),this.props.autoPosition&&(a=W(a,e,t),this.debug("suggested position: %o",a));var r=Object.assign({},function(e,t){var n=L()(t).width;return e.left=Math.max(0,Math.min(e.left,V.width-n)),e}(K(a,e,t,o),e),{positionClass:this.getPositionClass(a)});return this.debug("updating reposition: ",r),r}},{key:"debug",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];J.apply(void 0,["[%s] ".concat(e),this.id].concat(n))}},{key:"setPopoverId",value:function(e){this.id=e||"pop__".concat(Object(P.uniqueId)()),X.add(this.id),this.debug("creating ..."),J("current popover instances: ",X.size)}},{key:"setPosition",value:function(){var e;if(this.debug("updating position"),!(e=this.props.customPosition?Object.assign({positionClass:this.getPositionClass(this.constructor.defaultProps.position)},this.props.customPosition):this.computePosition()))return null;this.willReposition=null,this.setState(e)}},{key:"getStylePosition",value:function(){var e=this.state;return{left:e.left,top:e.top}}},{key:"show",value:function(){var e=this;if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o","".concat(this.props.showDelay,"ms")),this.clearShowTimer(),this._openDelayTimer=setTimeout(function(){e.setState({show:!0})},this.props.showDelay)}},{key:"hide",value:function(){this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),H(),this.setState({show:!1}),this.clearShowTimer()}},{key:"clearShowTimer",value:function(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.props.onClose(e)}},{key:"render",value:function(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;var e=_()("popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),k.a.createElement(j.a,{className:this.props.rootClassName},k.a.createElement("div",{style:this.getStylePosition(),className:e},k.a.createElement("div",{className:"popover__arrow"}),k.a.createElement("div",{ref:this.setDOMBehavior,className:"popover__inner"},this.props.children)))}}]),t}(y.Component);b()(G,"propTypes",{autoPosition:v.a.bool,autoRtl:v.a.bool,className:v.a.string,closeOnEsc:v.a.bool,id:v.a.string,ignoreContext:v.a.shape({getDOMNode:v.a.function}),isRtl:v.a.bool,isVisible:v.a.bool,position:v.a.oneOf(["top","top right","right","bottom right","bottom","bottom left","left","top left"]),rootClassName:v.a.string,showDelay:v.a.number,onClose:v.a.func,onShow:v.a.func,relativePosition:v.a.shape({left:v.a.number}),customPosition:v.a.shape({top:v.a.number,left:v.a.number,positionClass:v.a.oneOf(["top","right","bottom","left"])})}),b()(G,"defaultProps",{autoPosition:!0,autoRtl:!0,className:"",closeOnEsc:!0,isRtl:!1,isVisible:!1,position:"top",showDelay:0,onClose:Y,onShow:Y});t.a=Object(C.b)(function(e){return{isRtl:document.body.classList.contains("rtl")}})(G)},680:function(e,t,n){},681:function(e,t,n){},683:function(e,t,n){"use strict";var i=n(107),o=n.n(i),a=n(108),r=n.n(a),s=n(528),l=n.n(s),c=n(527),u=n.n(c),d=n(531),p=n.n(d),m=n(529),h=n.n(m),f=n(34),b=n.n(f),g=n(109),v=n(35),y=n(12),k=n.n(y),w=n(10),E=n.n(w),C=n(1),R=(n(680),n(616)),I=n(534),N=n.n(I),_=n(583),D=n.n(_),O=n(30),P=n(788),j=n(526),x=n.n(j),T=n(542),q=n(632),L=function(e){return"HR"===e.tagName},S=function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"menu",E.a.createRef()),b()(p()(n),"_setPropsOnChild",function(e){if(null==e)return e;var t=n._onClose.bind(p()(n),e.props.action),i=t;return e.props.onClick&&(i=Object(C.over)([e.props.onClick,t])),E.a.cloneElement(e,{onClick:i})}),b()(p()(n),"_onShow",function(){var e=n.menu.current;n._previouslyFocusedElement=document.activeElement,e&&e.focus()}),b()(p()(n),"_getClosestSibling",function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=n.menu.current,o=i.firstChild,a=i.lastChild;if(t||(o=i.lastChild,a=i.firstChild),e===i)return o;var r=e[t?"nextSibling":"previousSibling"]||a;return L(r)?n._getClosestSibling(r,t):r}),b()(p()(n),"_onKeyDown",function(e){var t,i=e.target,o=!1;switch(e.keyCode){case 9:n.props.onClose(),o=!0;break;case 38:t=n._getClosestSibling(i,!1),o=!0;break;case 40:t=n._getClosestSibling(i,!0),o=!0}t&&t.focus(),o&&e.preventDefault()}),b()(p()(n),"_onClose",function(e){n._previouslyFocusedElement&&(n._previouslyFocusedElement.focus(),n._previouslyFocusedElement=null),n.props.onClose&&n.props.onClose(e)}),n}return h()(t,e),r()(t,[{key:"componentWillUnmount",value:function(){this._previouslyFocusedElement=null}},{key:"render",value:function(){var e=this.props,t=e.popoverComponent,n=e.autoPosition,i=e.className,o=e.context,a=e.customPosition,r=e.isVisible,s=e.popoverTitle,l=e.position,c=e.rootClassName;return E.a.createElement(t,{onClose:this._onClose,onShow:this._onShow,autoPosition:n,className:i,context:o,customPosition:a,isVisible:r,popoverTitle:s,position:l,rootClassName:c},E.a.createElement("div",{ref:this.menu,role:"menu",className:"popover__menu",onKeyDown:this._onKeyDown,tabIndex:"-1"},E.a.Children.map(this.props.children,this._setPropsOnChild,this)))}}]),t}(w.Component);b()(S,"propTypes",{autoPosition:k.a.bool,isVisible:k.a.bool.isRequired,onClose:k.a.func.isRequired,position:k.a.string,className:k.a.string,rootClassName:k.a.string,popoverComponent:k.a.func,popoverTitle:k.a.string,customPosition:k.a.object}),b()(S,"defaultProps",{autoPosition:!0,position:"top",popoverComponent:q.a});var M=S,z=(n(681),function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"state",{isMenuVisible:!1}),b()(p()(n),"popoverContext",E.a.createRef()),b()(p()(n),"handleClick",function(e){var t=n.props.onClick,i=n.state.isMenuVisible;t(e),i?n.hideMenu():n.showMenu()}),b()(p()(n),"hideMenu",function(){return n.toggleMenu(!1)}),b()(p()(n),"showMenu",function(){return n.toggleMenu(!0)}),n}return h()(t,e),r()(t,[{key:"toggleMenu",value:function(e){this.props.disabled||(this.setState({isMenuVisible:e}),this.props.onToggle(e))}},{key:"render",value:function(){var e=this.props,t=e.toggleTitle,n=e.translate,i=e.position,o=e.children,a=e.disabled,r=e.className,s=e.popoverClassName,l=this.state.isMenuVisible,c=x()("ellipsis-menu",r,{"is-menu-visible":l,"is-disabled":a}),u=x()("ellipsis-menu__menu","popover",s);return E.a.createElement("span",{className:c},E.a.createElement(T.a,{ref:this.popoverContext,onClick:this.handleClick,title:t||n("Toggle menu"),borderless:!0,disabled:a,className:"ellipsis-menu__toggle"},E.a.createElement(N.a,{icon:"ellipsis",className:"ellipsis-menu__toggle-icon"})),E.a.createElement(M,{isVisible:l,onClose:this.hideMenu,position:i,context:this.popoverContext.current,className:u},o))}}]),t}(w.Component));b()(z,"propTypes",{translate:k.a.func,toggleTitle:k.a.string,position:k.a.string,disabled:k.a.bool,onClick:k.a.func,onToggle:k.a.func,popoverClassName:k.a.string}),b()(z,"defaultProps",{onClick:C.noop,onToggle:C.noop});var A=Object(v.localize)(z),V=n(530),F=n.n(V),U=n(602),B=function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"handleMouseOver",function(e){n.props.focusOnHover&&e.target.focus(),n.props.onMouseOver()}),n}return h()(t,e),r()(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.href,o=e.icon,a=e.isSelected,r=e.isExternalLink,s=Object(C.omit)(this.props,"icon","focusOnHover","isSelected","isExternalLink","className","itemComponent"),l=x()("popover__menu-item",n,{"is-selected":a}),c=this.props.itemComponent;return r&&i?(c=U.a,s.icon=!0):i&&(c="a"),E.a.createElement(c,F()({role:"menuitem",onMouseOver:this.handleMouseOver,tabIndex:"-1",className:l},s),o&&E.a.createElement(N.a,{icon:o,size:18}),t)}}]),t}(w.Component);b()(B,"propTypes",{href:k.a.string,className:k.a.string,isSelected:k.a.bool,icon:k.a.string,focusOnHover:k.a.bool,onMouseOver:k.a.func,isExternalLink:k.a.bool,itemComponent:k.a.oneOfType([k.a.func,k.a.string])}),b()(B,"defaultProps",{isSelected:!1,focusOnHover:!0,onMouseOver:C.noop,itemComponent:"button"});var H=n(551),W=n(549),K=n(540),Y=n(537),J=function(e){var t=e.orderId,n=e.siteId,i=e.refundDialog,o=e.createdDate,a=e.refundableAmount,r=e.currency,s=e.labelId,l=e.translate,c=e.moment,u=e.label,d=void 0===u?{}:u,p=function(){return D()(a,r)},m=function(){return e.closeRefundDialog(t,n)},h=[{action:"cancel",label:l("Cancel"),onClick:m},{action:"confirm",onClick:function(){return e.confirmRefund(t,n)},isPrimary:!0,disabled:i&&i.isSubmitting,additionalClassNames:i&&i.isSubmitting?"is-busy":"",label:l("Refund label (-%(amount)s)",{args:{amount:p()}})}];return E.a.createElement(H.a,{additionalClassNames:"label-refund-modal woocommerce wcc-root",isVisible:Boolean(i&&i.labelId===s),onClose:m,buttons:h},E.a.createElement(W.a,null,l("Request a refund")),E.a.createElement("p",null,l("You can request a refund for a shipping label that has not been used to ship a package. It will take at least %(days)s days to process.",{args:{days:"dhlexpress"===d.carrier_id?"31":"14"}})),E.a.createElement("dl",null,E.a.createElement("dt",null,l("Purchase date")),E.a.createElement("dd",null,c(o).format("LLL")),E.a.createElement("dt",null,l("Amount eligible for refund")),E.a.createElement("dd",null,p())))};J.propTypes={siteId:k.a.number.isRequired,orderId:k.a.number.isRequired,refundDialog:k.a.object,createdDate:k.a.number,refundableAmount:k.a.number,currency:k.a.string,labelId:k.a.number,closeRefundDialog:k.a.func.isRequired,confirmRefund:k.a.func.isRequired};var X=Object(g.b)(function(e,t){var n=t.orderId,i=t.siteId,o=t.labelId,a=Object(Y.t)(e,n,i),r=Object(Y.j)(e,n,i);return{refundDialog:a?r.refundDialog:{},label:Object(Y.g)(e,n,i,o)}},function(e){return Object(O.b)({closeRefundDialog:K.e,confirmRefund:K.k},e)})(Object(v.localize)(J)),G=n(601),Q=n(605),Z=function(e){var t=e.orderId,n=e.siteId,i=e.reprintDialog,o=e.paperSize,a=e.storeOptions,r=e.labelId,s=e.translate,l=function(){return e.closeReprintDialog(t,n)},c=[{action:"cancel",label:s("Cancel"),onClick:l},{action:"confirm",onClick:function(){return e.confirmReprint(t,n)},isPrimary:!0,disabled:i&&!i.fileData,additionalClassNames:i&&i.isFetching?"is-busy":"",label:s("Print")}];return E.a.createElement(H.a,{isVisible:Boolean(i&&i.labelId===r),onClose:l,buttons:c,additionalClassNames:"label-reprint-modal woocommerce wcc-root"},E.a.createElement(W.a,null,s("Reprint shipping label")),E.a.createElement("p",null,s("If there was a printing error when you purchased the label, you can print it again.")),E.a.createElement("p",{className:"shipping-label__reprint-modal-notice"},s("NOTE: If you already used the label in a package, printing and using it again is a violation of our terms of service and may result in criminal charges.")),E.a.createElement(G.a,{id:"paper_size",valuesMap:Object(Q.a)(a.origin_country),title:s("Paper size"),value:o,updateValue:function(i){return e.updatePaperSize(t,n,i)}}))};Z.propTypes={siteId:k.a.number.isRequired,orderId:k.a.number.isRequired,reprintDialog:k.a.object,paperSize:k.a.string.isRequired,storeOptions:k.a.object.isRequired,labelId:k.a.number,closeReprintDialog:k.a.func.isRequired,confirmReprint:k.a.func.isRequired};var $=Object(g.b)(function(e,t){var n=t.orderId,i=t.siteId,o=Object(Y.t)(e,n,i),a=Object(Y.j)(e,n,i);return{reprintDialog:o?a.reprintDialog:{},paperSize:a.paperSize,storeOptions:o?a.storeOptions:{}}},function(e){return Object(O.b)({closeReprintDialog:K.f,confirmReprint:K.l,updatePaperSize:K.X},e)})(Object(v.localize)(Z)),ee=n(645),te=n(544),ne=function(e){var t=e.orderId,n=e.siteId,i=e.isVisible,o=e.labelIndex,a=e.serviceName,r=e.packageName,s=e.productNames,l=e.canManagePayments,c=e.receiptId,u=e.translate,d=function(){return e.closeDetailsDialog(t,n)},p=[{action:"close",label:u("Close"),onClick:d}];return E.a.createElement(H.a,{additionalClassNames:"label-details-modal woocommerce wcc-root",isVisible:i,onClose:d,buttons:p},E.a.createElement(W.a,{className:"shipping-label__label-details-modal-heading"},E.a.createElement("span",{className:"shipping-label__label-details-modal-heading-title"},u("Label #%(labelIndex)s details",{args:{labelIndex:o+1}})),l&&c?E.a.createElement("a",{href:"".concat(Object(ee.a)(),"/me/purchases/billing/").concat(c),target:"_blank",rel:"noopener noreferrer"},u("Receipt")):null),E.a.createElement("dl",null,E.a.createElement("dt",null,u("Service")),E.a.createElement("dd",null,a),E.a.createElement("dt",null,u("Package")),E.a.createElement("dd",null,r),E.a.createElement("dt",null,u("Items")),E.a.createElement("dd",null,E.a.createElement("ul",null,s.map(function(e,t){return E.a.createElement("li",{key:t},e)})))))};ne.propTypes={siteId:k.a.number.isRequired,orderId:k.a.number.isRequired,isVisible:k.a.bool,serviceName:k.a.string,packageName:k.a.string,productNames:k.a.array,closeDetailsDialog:k.a.func.isRequired,receiptId:k.a.number};var ie=Object(g.b)(function(e,t){var n=t.orderId,i=t.siteId,o=t.labelId,a=Object(Y.t)(e,n,i),r=Object(Y.j)(e,n,i).detailsDialog;return{isVisible:Boolean(a&&r&&r.labelId===o),canManagePayments:Object(te.q)(e,i)}},function(e){return Object(O.b)({closeDetailsDialog:K.c},e)})(Object(v.localize)(ne)),oe={usps:function(e){return"https://tools.usps.com/go/TrackConfirmAction.action?tLabels=".concat(e)},fedex:function(e){return"https://www.fedex.com/apps/fedextrack/?action=track&tracknumbers=".concat(e)},ups:function(e){return"https://www.ups.com/track?loc=en_US&tracknum=".concat(e)},dhlexpress:function(e){return"https://www.dhl.com/en/express/tracking.html?AWB=".concat(e,"&brand=DHL")}},ae=function(e){var t=e.tracking,n=e.carrierId,i=e.translate;if(!t)return E.a.createElement("span",null,i("N/A"));var o=oe[n](t);return o?E.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:o},t," ",E.a.createElement(N.a,{icon:"external",size:12})):E.a.createElement("span",null,t)};ae.propTypes={tracking:k.a.string,carrierId:k.a.string};var re=Object(v.localize)(ae),se=function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"renderRefund",function(e,t,i,o){var a=n.props,r=a.orderId,s=a.siteId,l=a.translate,c="",u=!1;if(t?(c=l("Labels older than 30 days cannot be refunded."),u=!0):"usps"!==i||o||(c=l("USPS labels without tracking are not eligible for refund."),u=!0),u)return E.a.createElement(P.a,{position:"top left",text:c},E.a.createElement("button",{className:"popover__menu-item shipping-label__item-menu-reprint-expired",role:"menuitem",tabIndex:"-1"},E.a.createElement(N.a,{icon:"refund",size:18}),E.a.createElement("span",null," ",l("Request refund")," ")));return E.a.createElement(B,{onClick:function(){n.props.openRefundDialog(r,s,e)},icon:"refund"},l("Request refund"))}),b()(p()(n),"renderReprint",function(e,t){var i=n.props,o=i.orderId,a=i.siteId,r=i.translate;if(t)return E.a.createElement(P.a,{position:"top left",text:r("Label images older than 180 days are deleted by our technology partners for general security and data privacy concerns.")},E.a.createElement("button",{className:"popover__menu-item shipping-label__item-menu-reprint-expired",role:"menuitem",tabIndex:"-1"},E.a.createElement(N.a,{icon:"print",size:18}),E.a.createElement("span",null," ",r("Reprint")," ")));return E.a.createElement(B,{onClick:function(){n.props.openReprintDialog(o,a,e)},icon:"print"},r("Reprint shipping label"))}),b()(p()(n),"renderLabelDetails",function(e){var t=n.props,i=t.orderId,o=t.siteId,a=t.translate;return E.a.createElement(B,{onClick:function(){n.props.openDetailsDialog(i,o,e)},icon:"info-outline"},a("View details"))}),b()(p()(n),"renderPickup",function(e){var t=n.props.translate,i={usps:"https://tools.usps.com/schedule-pickup-steps.htm",fedex:"https://www.fedex.com/en-us/shipping/schedule-manage-pickups.html",ups:"https://wwwapps.ups.com/pickup/request",dhlexpress:"https://mydhl.express.dhl/us/en/home.html#/schedulePickupTab"};if(!i.hasOwnProperty(e))return null;return E.a.createElement(B,{onClick:function(){window.open(i[e],"_blank")},icon:"external"},t("Schedule a pickup"))}),n}return h()(t,e),r()(t,[{key:"renderCommercialInvoiceLink",value:function(){var e=this.props,t=e.translate,n=e.label.commercialInvoiceUrl;if(!n)return null;return E.a.createElement(B,{onClick:function(){window.open(n)},icon:"print"},t("Print customs form"))}},{key:"render",value:function(){var e=this.props,t=e.label,n=t.labelIndex,i=t.serviceName,o=t.packageName,a=t.productNames,r=t.receiptId,s=t.labelId,l=t.createdDate,c=t.refundableAmount,u=t.currency,d=t.showDetails,p=t.expiryDate,m=t.anonymized,h=t.usedDate,f=t.tracking,b=t.carrierId,g=t.commercialInvoiceUrl,v=e.siteId,y=e.orderId,k=e.translate,w=e.isModal,C=(new Date).getTime(),R=!1,I=!1;(m||h||p&&p<C)&&(R=!0);var N=(new Date).setDate((new Date).getDate()-30);return(m||h||l&&l<N)&&(I=!0),E.a.createElement("div",{className:"shipping-label__item"},E.a.createElement("p",{className:"shipping-label__item-detail"},k("%(service)s label (#%(labelIndex)d)",{args:{service:i,labelIndex:n+1}}),d&&E.a.createElement("span",null,!w&&E.a.createElement(A,{position:"bottom left"},this.renderLabelDetails(s),this.renderPickup(b),this.renderRefund(s,I,b,f),this.renderReprint(s,R),this.renderCommercialInvoiceLink(g)),E.a.createElement(ie,{siteId:v,orderId:y,labelIndex:n,serviceName:i,packageName:o,productNames:a,receiptId:r,labelId:s}),E.a.createElement(X,{siteId:v,orderId:y,createdDate:l,refundableAmount:c,currency:u,labelId:s}),E.a.createElement($,{siteId:v,orderId:y,labelId:s}))),d&&E.a.createElement("p",{className:"shipping-label__item-tracking"},k("Tracking #: {{trackingLink/}}",{components:{trackingLink:E.a.createElement(re,{carrierId:b,tracking:f})}})))}}]),t}(w.Component);se.propTypes={siteId:k.a.number.isRequired,orderId:k.a.number.isRequired,label:k.a.shape({serviceName:k.a.string.isRequired,labelIndex:k.a.number.isRequired,packageName:k.a.string.isRequired,productNames:k.a.string.isRequired,receiptId:k.a.number.isRequired,labelId:k.a.number.isRequired,createdDate:k.a.string.isRequired,refundableAmount:k.a.number.isRequired,currency:k.a.string.isRequired,showDetails:k.a.bool.isRequired,expiryDate:k.a.string.isRequired,anonymized:k.a.bool.isRequired,usedDate:k.a.string.isRequired,tracking:k.a.string.isRequired,carrierId:k.a.string.isRequired,commercialInvoiceUrl:k.a.string}).isRequired,isModal:k.a.bool.isRequired,openRefundDialog:k.a.func.isRequired,openReprintDialog:k.a.func.isRequired,openDetailsDialog:k.a.func.isRequired};var le=Object(g.b)(null,function(e){return Object(O.b)({openRefundDialog:K.y,openReprintDialog:K.z,openDetailsDialog:K.u},e)})(Object(v.localize)(se)),ce=function(e){function t(){return o()(this,t),l()(this,u()(t).apply(this,arguments))}return h()(t,e),r()(t,[{key:"render",value:function(){var e=this.props,t=e.label,n=e.translate,i=t.serviceName,o=t.labelIndex;return E.a.createElement("div",{className:"shipping-label__item"},E.a.createElement("p",{className:"shipping-label__item-detail"},n("%(service)s label (#%(labelIndex)d)",{args:{service:i,labelIndex:o+1}}),E.a.createElement("br",null),n("Purchasing\u2026")))}}]),t}(se);se.propTypes={label:k.a.object.isRequired};var ue=Object(v.localize)(ce),de=n(603),pe=function(e){function t(){var e,n,i;o()(this,t);for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return i=l()(this,(e=u()(t)).call.apply(e,[this].concat(r))),b()(p()(i),"eventPropsByType",(n={},b()(n,R.a.INTERNAL_NOTE,function(e){return{icon:"aside",heading:(0,i.props.translate)("Internal note"),content:Object(de.a)(Object(de.b)(e.content))}}),b()(n,R.a.CUSTOMER_NOTE,function(e){return{icon:"mail",heading:(0,i.props.translate)("Note sent to customer"),content:Object(de.a)(Object(de.b)(e.content))}}),b()(n,R.a.LABEL_PURCHASING,function(e){return{icon:"sync",content:E.a.createElement(ue,{label:e,orderId:i.props.orderId,siteId:i.props.siteId})}}),b()(n,R.a.LABEL_PURCHASED,function(e){return{icon:"print",content:E.a.createElement(le,{label:e,orderId:i.props.orderId,siteId:i.props.siteId,isModal:i.props.isModal})}}),b()(n,R.a.LABEL_REFUND_REQUESTED,function(e){var t=i.props.translate;return{icon:"time",content:E.a.createElement("div",null,t("%(service)s label (#%(labelNum)d) refund requested (%(amount)s)",{args:{service:e.serviceName,labelNum:e.labelIndex+1,amount:D()(e.amount,e.currency)}}))}}),b()(n,R.a.LABEL_REFUND_COMPLETED,function(e){var t=i.props.translate;return{icon:"refund",content:E.a.createElement("div",null,t("%(service)s label (#%(labelNum)d) refunded (%(amount)s)",{args:{service:e.serviceName,labelNum:e.labelIndex+1,amount:D()(e.amount,e.currency)}}))}}),b()(n,R.a.LABEL_REFUND_REJECTED,function(e){var t=i.props.translate;return{icon:"cross-small",content:E.a.createElement("div",null,t("%(service)s label (#%(labelNum)d) refund rejected",{service:e.serviceName,args:{labelNum:e.labelIndex+1}}))}}),b()(n,R.a.REFUND_NOTE,function(e){var t=i.props.translate;return{icon:"credit-card",heading:t("Refund"),content:E.a.createElement("div",null,t("Refunded %(amount)s",{args:{amount:D()(e.amount,e.currency)}}),E.a.createElement("br",null),e.reason)}}),b()(n,void 0,function(){return{}}),n)),b()(p()(i),"renderDefaultEvent",function(e){return{icon:"aside",heading:(0,i.props.translate)("Note"),content:e.content}}),i}return h()(t,e),r()(t,[{key:"render",value:function(){var e=this.props,t=e.moment,n=e.event,i=(this.eventPropsByType[n.type]||this.renderDefaultEvent)(n),o=i.icon,a=i.heading,r=i.content;return E.a.createElement("div",{className:"order-activity-log__note"},E.a.createElement("div",{className:"order-activity-log__note-meta"},E.a.createElement("span",{className:"order-activity-log__note-time"},t(n.timestamp).format("LT")),o&&E.a.createElement(N.a,{icon:o,size:24})),E.a.createElement("div",{className:"order-activity-log__note-body"},E.a.createElement("div",{className:"order-activity-log__note-type"},a),E.a.createElement("div",{className:"order-activity-log__note-content"},r)))}}]),t}(w.Component);b()(pe,"propTypes",{customer_note:k.a.bool,date_created_gmt:k.a.string,note:k.a.string.isRequired}),b()(pe,"propTypes",{event:k.a.object}),b()(pe,"defaultProps",{event:{}});var me=Object(v.localize)(pe),he=n(600),fe=function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"onClick",function(){n.props.onClick(n.props.date)}),n}return h()(t,e),r()(t,[{key:"render",value:function(){var e=this.props,t=e.count,n=e.date,i=e.isOpen,o=e.moment,a=e.translate,r=o(n,"YYYYMMDD").format("ll"),s=E.a.createElement("div",null,E.a.createElement("h3",null,r),E.a.createElement("small",null,a("%(count)s event","%(count)s events",{count:t,args:{count:t}})));return E.a.createElement("div",{className:"order-activity-log__day"},E.a.createElement(he.a,{onClick:this.onClick,className:"order-activity-log__day-header",expanded:i,header:s,screenReaderText:a("Show notes from %(date)s",{args:{date:r}})},this.props.children))}}]),t}(w.Component);b()(fe,"propTypes",{count:k.a.number.isRequired,date:k.a.string.isRequired,isOpen:k.a.bool.isRequired,onClick:k.a.func.isRequired});var be=Object(v.localize)(fe);var ge=function(e){function t(){var e,n;o()(this,t);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return n=l()(this,(e=u()(t)).call.apply(e,[this].concat(a))),b()(p()(n),"toggleOpenDay",function(e){n.setState(function(){return{openDay:e}})}),b()(p()(n),"renderNotes",function(){var e=n.props,t=e.days,i=e.eventsByDay,o=e.translate;return t.length?E.a.createElement("div",null,t.map(function(e){var t=i[e];return E.a.createElement(be,{key:e,count:t.length,date:e,isOpen:e===n.state.openDay,onClick:n.toggleOpenDay},t.map(function(e){return E.a.createElement(me,{key:"".concat(e.type,"-").concat(e.key),event:e,orderId:n.props.orderId,siteId:n.props.siteId,isModal:n.props.isModal})}))})):E.a.createElement("p",null,o("No activity yet"))}),b()(p()(n),"renderPlaceholder",function(){return E.a.createElement("div",{className:"is-placeholder"},E.a.createElement(be,{count:0,date:"",isOpen:!0,index:1,onClick:C.noop},E.a.createElement(me,null)))}),n}return h()(t,e),r()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.setState({openDay:Object(C.last)(Object(C.keys)(this.props.eventsByDay))})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=Object(C.last)(Object(C.keys)(e.eventsByDay));this.props.eventsByDay[t]||this.setState({openDay:t})}},{key:"render",value:function(){return this.props.isLoaded?this.renderNotes():this.renderPlaceholder()}}]),t}(w.Component);b()(ge,"propTypes",{orderId:k.a.number.isRequired,siteId:k.a.number.isRequired});t.a=Object(g.b)(function(e,t){var n=t.orderId||!1,i=Object(R.c)(e,n),o=Object(R.b)(e,n),a=o.length?function(e){var t={};return e.forEach(function(e){var n=Object(v.moment)(e.timestamp).format("YYYYMMDD");t[n]?t[n].push(e):t[n]=[e]}),Object(C.keys)(t).forEach(function(e){t[e]=Object(C.sortBy)(t[e],["timestamp","key"]).reverse()}),t}(o):{},r=a?Object(C.keys)(a):[];return r.sort().reverse(),{isLoaded:i,days:r,events:o,eventsByDay:a}})(Object(v.localize)(ge))},786:function(e,t,n){"use strict";n.r(t);var i=n(10),o=n.n(i),a=n(12),r=n.n(a),s=n(109),l=n(30),c=n(35),u=n(534),d=n.n(u),p=n(551),m=n(549),h=n(540),f=n(542),b=n(537),g=n(683),v=function(e){var t=e.loaded,n=e.translate;if(!t)return null;var i=function(){return e.exitTrackingFlow(e.orderId,e.siteId,!1)};return o.a.createElement(p.a,{additionalClassNames:"woocommerce tracking-modal wcc-root",isVisible:e.showTrackingDialog,onClose:i},o.a.createElement("div",{className:"tracking-modal__content"},o.a.createElement("div",{className:"tracking-modal__header"},o.a.createElement(m.a,null,n("Which package would you like to track?")),o.a.createElement(f.a,{className:"tracking-modal__close-button",onClick:i},o.a.createElement(d.a,{icon:"cross"}))),o.a.createElement("div",{className:"tracking-modal__body"},o.a.createElement("div",{className:"tracking-modal__main-section"},o.a.createElement("div",{className:"shipment-tracking__dummy-class order-activity-log"},o.a.createElement(g.a,{orderId:e.orderId,siteId:e.siteId,isModal:!0}))))))};v.propTypes={siteId:r.a.number.isRequired,orderId:r.a.number.isRequired};t.default=Object(s.b)(function(e,t){var n=t.orderId,i=t.siteId,o=Object(b.t)(e,n,i),a=Object(b.j)(e,n,i);return{loaded:o,form:o&&a.form,showTrackingDialog:a.showTrackingDialog,isCustomsFormRequired:Object(b.p)(e,n,i)}},function(e){return Object(l.b)({exitTrackingFlow:h.p},e)})(Object(c.localize)(v))}}]);
|
dist/chunks/{e4877a342c19b83fbeca.min.js → 4ea3465c8c3adacaf63d.min.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[140],{607:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e===t)return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),i=0;i<n.length;i++)if(!o(n[i])||e[n[i]]!==t[n[i]])return!1;return!0},e.exports=t.default},661:function(e,t,n){!function(t){"use strict";var n=window;"function"===typeof define&&define.amd?define(function(){return t(n)}):e.exports=t(n)}(function e(t){"use strict";var n=function(t){return e(t)};if(n.version="0.8.9",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=r,i=t.DocumentFragment,a=t.HTMLTemplateElement,l=t.Node,s=t.NodeFilter,c=t.NamedNodeMap||t.MozNamedAttrMap,u=t.Text,d=t.Comment,p=t.DOMParser,m=!1;if("function"===typeof a){var f=r.createElement("template");f.content&&f.content.ownerDocument&&(r=f.content.ownerDocument)}var h=r.implementation,g=r.createNodeIterator,y=r.getElementsByTagName,b=r.createDocumentFragment,v=o.importNode,T={};n.isSupported="undefined"!==typeof h.createHTMLDocument&&9!==r.documentMode;var x=function(e,t){for(var n=t.length;n--;)"string"===typeof t[n]&&(t[n]=t[n].toLowerCase()),e[t[n]]=!0;return e},A=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},k=null,w=x({},["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","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","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","svg","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","switch","symbol","text","textpath","title","tref","tspan","view","vkern","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmuliscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mpspace","msqrt","mystyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","#text"]),O=null,S=x({},["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","coords","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","span","srclang","start","src","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns","accent-height","accumulate","additivive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","clip","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","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","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mode","min","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","surfacescale","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","u1","u2","unicode","values","viewbox","visibility","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","y","y1","y2","z","zoomandpan","accent","accentunder","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","display","displaystyle","fence","frame","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","xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),E=null,N=null,_=!0,D=!0,M=!1,L=!1,C=!1,R=/\{\{[\s\S]*|[\s\S]*\}\}/gm,z=/<%[\s\S]*|[\s\S]*%>/gm,F=!1,H=!1,j=!1,I=!1,W=!1,B=!0,G=!0,q=x({},["audio","head","math","script","style","template","svg","video"]),P=x({},["audio","video","img","source","image"]),U=x({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),J=null,V=r.createElement("form"),Y=function(e){n.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=""}},K=function(e,t){n.removed.push({attribute:t.getAttributeNode(e),from:t}),t.removeAttribute(e)},$=function(e){var t,n;if(H&&(e="<remove></remove>"+e),m)try{t=(new p).parseFromString(e,"text/html")}catch(r){}return t&&t.documentElement||((n=(t=h.createHTMLDocument("")).body).parentNode.removeChild(n.parentNode.firstElementChild),n.outerHTML=e),y.call(t,F?"html":"body")[0]};n.isSupported&&$('<svg><p><style><img src="</style><img src=x onerror=alert(1)//">').querySelector("svg img")&&(m=!0);var Q=function(e){return g.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,function(){return s.FILTER_ACCEPT},!1)},X=function(e){return"object"===typeof l?e instanceof l:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Z=function(e){var t,r,o;if(le("beforeSanitizeElements",e,null),!((o=e)instanceof u||o instanceof d)&&!("string"===typeof o.nodeName&&"string"===typeof o.textContent&&"function"===typeof o.removeChild&&o.attributes instanceof c&&"function"===typeof o.removeAttribute&&"function"===typeof o.setAttribute))return Y(e),!0;if(t=e.nodeName.toLowerCase(),le("uponSanitizeElement",e,{tagName:t,allowedTags:k}),!k[t]||E[t]){if(G&&!q[t]&&"function"===typeof e.insertAdjacentHTML)try{e.insertAdjacentHTML("AfterEnd",e.innerHTML)}catch(i){}return Y(e),!0}return!L||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(n.removed.push({element:e.cloneNode()}),e.innerHTML=e.textContent.replace(/</g,"<")),C&&3===e.nodeType&&(r=(r=(r=e.textContent).replace(R," ")).replace(z," "),e.textContent!==r&&(n.removed.push({element:e.cloneNode()}),e.textContent=r)),le("afterSanitizeElements",e,null),!1},ee=/^data-[\-\w.\u00B7-\uFFFF]/,te=/^aria-[\-\w]+$/,ne=/^(?:(?:(?:f|ht)tps?|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,re=/^(?:\w+script|data):/i,oe=/[\x00-\x20\xA0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,ie=function(e){var o,i,a,l,s,c,u,d;if(le("beforeSanitizeAttributes",e,null),c=e.attributes){for(u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:O},d=c.length;d--;){if(i=(o=c[d]).name,a=o.value.trim(),l=i.toLowerCase(),u.attrName=l,u.attrValue=a,u.keepAttr=!0,le("uponSanitizeAttribute",e,u),a=u.attrValue,"name"===l&&"IMG"===e.nodeName&&c.id)s=c.id,c=Array.prototype.slice.apply(c),K("id",e),K(i,e),c.indexOf(s)>d&&e.setAttribute("id",s.value);else{if("INPUT"===e.nodeName&&"type"===l&&"file"===a&&(O[l]||!N[l]))continue;"id"===i&&e.setAttribute(i,""),K(i,e)}if(u.keepAttr&&(!B||"id"!==l&&"name"!==l||!(a in t||a in r||a in V))){if(C&&(a=(a=a.replace(R," ")).replace(z," ")),D&&ee.test(l));else if(_&&te.test(l));else{if(!O[l]||N[l])continue;if(U[l]);else if(ne.test(a.replace(oe,"")));else if("src"!==l&&"xlink:href"!==l||0!==a.indexOf("data:")||!P[e.nodeName.toLowerCase()]){if(M&&!re.test(a.replace(oe,"")));else if(a)continue}else;}try{e.setAttribute(i,a),n.removed.pop()}catch(p){}}}le("afterSanitizeAttributes",e,null)}},ae=function(e){var t,n=Q(e);for(le("beforeSanitizeShadowDOM",e,null);t=n.nextNode();)le("uponSanitizeShadowNode",t,null),Z(t)||(t.content instanceof i&&ae(t.content),ie(t));le("afterSanitizeShadowDOM",e,null)},le=function(e,t,r){T[e]&&T[e].forEach(function(e){e.call(n,t,r,J)})};return n.sanitize=function(e,r){var a,s,c,u,d,p;if(e||(e="\x3c!--\x3e"),"string"!==typeof e&&!X(e)){if("function"!==typeof e.toString)throw new TypeError("toString is not a function");e=e.toString()}if(!n.isSupported){if("object"===typeof t.toStaticHTML||"function"===typeof t.toStaticHTML){if("string"===typeof e)return t.toStaticHTML(e);if(X(e))return t.toStaticHTML(e.outerHTML)}return e}if(function(e){"object"!==typeof e&&(e={}),k="ALLOWED_TAGS"in e?x({},e.ALLOWED_TAGS):w,O="ALLOWED_ATTR"in e?x({},e.ALLOWED_ATTR):S,E="FORBID_TAGS"in e?x({},e.FORBID_TAGS):{},N="FORBID_ATTR"in e?x({},e.FORBID_ATTR):{},_=!1!==e.ALLOW_ARIA_ATTR,D=!1!==e.ALLOW_DATA_ATTR,M=e.ALLOW_UNKNOWN_PROTOCOLS||!1,L=e.SAFE_FOR_JQUERY||!1,C=e.SAFE_FOR_TEMPLATES||!1,F=e.WHOLE_DOCUMENT||!1,j=e.RETURN_DOM||!1,I=e.RETURN_DOM_FRAGMENT||!1,W=e.RETURN_DOM_IMPORT||!1,H=e.FORCE_BODY||!1,B=!1!==e.SANITIZE_DOM,G=!1!==e.KEEP_CONTENT,C&&(D=!1),I&&(j=!0),e.ADD_TAGS&&(k===w&&(k=A(k)),x(k,e.ADD_TAGS)),e.ADD_ATTR&&(O===S&&(O=A(O)),x(O,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&x(U,e.ADD_URI_SAFE_ATTR),G&&(k["#text"]=!0),Object&&"freeze"in Object&&Object.freeze(e),J=e}(r),n.removed=[],e instanceof l)1===(s=(a=$("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName?a=s:a.appendChild(s);else{if(!j&&!F&&-1===e.indexOf("<"))return e;if(!(a=$(e)))return j?null:""}for(H&&Y(a.firstChild),d=Q(a);c=d.nextNode();)3===c.nodeType&&c===u||Z(c)||(c.content instanceof i&&ae(c.content),ie(c),u=c);if(j){if(I)for(p=b.call(a.ownerDocument);a.firstChild;)p.appendChild(a.firstChild);else p=a;return W&&(p=v.call(o,p,!0)),p}return F?a.outerHTML:a.innerHTML},n.addHook=function(e,t){"function"===typeof t&&(T[e]=T[e]||[],T[e].push(t))},n.removeHook=function(e){T[e]&&T[e].pop()},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n})}}]);
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[138],{607:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e===t)return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),i=0;i<n.length;i++)if(!o(n[i])||e[n[i]]!==t[n[i]])return!1;return!0},e.exports=t.default},659:function(e,t,n){!function(t){"use strict";var n=window;"function"===typeof define&&define.amd?define(function(){return t(n)}):e.exports=t(n)}(function e(t){"use strict";var n=function(t){return e(t)};if(n.version="0.8.9",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=r,i=t.DocumentFragment,a=t.HTMLTemplateElement,l=t.Node,s=t.NodeFilter,c=t.NamedNodeMap||t.MozNamedAttrMap,u=t.Text,d=t.Comment,p=t.DOMParser,m=!1;if("function"===typeof a){var f=r.createElement("template");f.content&&f.content.ownerDocument&&(r=f.content.ownerDocument)}var h=r.implementation,g=r.createNodeIterator,y=r.getElementsByTagName,b=r.createDocumentFragment,v=o.importNode,T={};n.isSupported="undefined"!==typeof h.createHTMLDocument&&9!==r.documentMode;var x=function(e,t){for(var n=t.length;n--;)"string"===typeof t[n]&&(t[n]=t[n].toLowerCase()),e[t[n]]=!0;return e},A=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},k=null,w=x({},["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","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","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","svg","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","switch","symbol","text","textpath","title","tref","tspan","view","vkern","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmuliscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mpspace","msqrt","mystyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","#text"]),O=null,S=x({},["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","coords","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","span","srclang","start","src","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns","accent-height","accumulate","additivive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","clip","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","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","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mode","min","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","surfacescale","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","u1","u2","unicode","values","viewbox","visibility","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","y","y1","y2","z","zoomandpan","accent","accentunder","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","display","displaystyle","fence","frame","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","xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),E=null,N=null,_=!0,D=!0,M=!1,L=!1,C=!1,R=/\{\{[\s\S]*|[\s\S]*\}\}/gm,z=/<%[\s\S]*|[\s\S]*%>/gm,F=!1,H=!1,j=!1,I=!1,W=!1,B=!0,G=!0,q=x({},["audio","head","math","script","style","template","svg","video"]),P=x({},["audio","video","img","source","image"]),U=x({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),J=null,V=r.createElement("form"),Y=function(e){n.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=""}},K=function(e,t){n.removed.push({attribute:t.getAttributeNode(e),from:t}),t.removeAttribute(e)},$=function(e){var t,n;if(H&&(e="<remove></remove>"+e),m)try{t=(new p).parseFromString(e,"text/html")}catch(r){}return t&&t.documentElement||((n=(t=h.createHTMLDocument("")).body).parentNode.removeChild(n.parentNode.firstElementChild),n.outerHTML=e),y.call(t,F?"html":"body")[0]};n.isSupported&&$('<svg><p><style><img src="</style><img src=x onerror=alert(1)//">').querySelector("svg img")&&(m=!0);var Q=function(e){return g.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,function(){return s.FILTER_ACCEPT},!1)},X=function(e){return"object"===typeof l?e instanceof l:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Z=function(e){var t,r,o;if(le("beforeSanitizeElements",e,null),!((o=e)instanceof u||o instanceof d)&&!("string"===typeof o.nodeName&&"string"===typeof o.textContent&&"function"===typeof o.removeChild&&o.attributes instanceof c&&"function"===typeof o.removeAttribute&&"function"===typeof o.setAttribute))return Y(e),!0;if(t=e.nodeName.toLowerCase(),le("uponSanitizeElement",e,{tagName:t,allowedTags:k}),!k[t]||E[t]){if(G&&!q[t]&&"function"===typeof e.insertAdjacentHTML)try{e.insertAdjacentHTML("AfterEnd",e.innerHTML)}catch(i){}return Y(e),!0}return!L||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(n.removed.push({element:e.cloneNode()}),e.innerHTML=e.textContent.replace(/</g,"<")),C&&3===e.nodeType&&(r=(r=(r=e.textContent).replace(R," ")).replace(z," "),e.textContent!==r&&(n.removed.push({element:e.cloneNode()}),e.textContent=r)),le("afterSanitizeElements",e,null),!1},ee=/^data-[\-\w.\u00B7-\uFFFF]/,te=/^aria-[\-\w]+$/,ne=/^(?:(?:(?:f|ht)tps?|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,re=/^(?:\w+script|data):/i,oe=/[\x00-\x20\xA0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,ie=function(e){var o,i,a,l,s,c,u,d;if(le("beforeSanitizeAttributes",e,null),c=e.attributes){for(u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:O},d=c.length;d--;){if(i=(o=c[d]).name,a=o.value.trim(),l=i.toLowerCase(),u.attrName=l,u.attrValue=a,u.keepAttr=!0,le("uponSanitizeAttribute",e,u),a=u.attrValue,"name"===l&&"IMG"===e.nodeName&&c.id)s=c.id,c=Array.prototype.slice.apply(c),K("id",e),K(i,e),c.indexOf(s)>d&&e.setAttribute("id",s.value);else{if("INPUT"===e.nodeName&&"type"===l&&"file"===a&&(O[l]||!N[l]))continue;"id"===i&&e.setAttribute(i,""),K(i,e)}if(u.keepAttr&&(!B||"id"!==l&&"name"!==l||!(a in t||a in r||a in V))){if(C&&(a=(a=a.replace(R," ")).replace(z," ")),D&&ee.test(l));else if(_&&te.test(l));else{if(!O[l]||N[l])continue;if(U[l]);else if(ne.test(a.replace(oe,"")));else if("src"!==l&&"xlink:href"!==l||0!==a.indexOf("data:")||!P[e.nodeName.toLowerCase()]){if(M&&!re.test(a.replace(oe,"")));else if(a)continue}else;}try{e.setAttribute(i,a),n.removed.pop()}catch(p){}}}le("afterSanitizeAttributes",e,null)}},ae=function(e){var t,n=Q(e);for(le("beforeSanitizeShadowDOM",e,null);t=n.nextNode();)le("uponSanitizeShadowNode",t,null),Z(t)||(t.content instanceof i&&ae(t.content),ie(t));le("afterSanitizeShadowDOM",e,null)},le=function(e,t,r){T[e]&&T[e].forEach(function(e){e.call(n,t,r,J)})};return n.sanitize=function(e,r){var a,s,c,u,d,p;if(e||(e="\x3c!--\x3e"),"string"!==typeof e&&!X(e)){if("function"!==typeof e.toString)throw new TypeError("toString is not a function");e=e.toString()}if(!n.isSupported){if("object"===typeof t.toStaticHTML||"function"===typeof t.toStaticHTML){if("string"===typeof e)return t.toStaticHTML(e);if(X(e))return t.toStaticHTML(e.outerHTML)}return e}if(function(e){"object"!==typeof e&&(e={}),k="ALLOWED_TAGS"in e?x({},e.ALLOWED_TAGS):w,O="ALLOWED_ATTR"in e?x({},e.ALLOWED_ATTR):S,E="FORBID_TAGS"in e?x({},e.FORBID_TAGS):{},N="FORBID_ATTR"in e?x({},e.FORBID_ATTR):{},_=!1!==e.ALLOW_ARIA_ATTR,D=!1!==e.ALLOW_DATA_ATTR,M=e.ALLOW_UNKNOWN_PROTOCOLS||!1,L=e.SAFE_FOR_JQUERY||!1,C=e.SAFE_FOR_TEMPLATES||!1,F=e.WHOLE_DOCUMENT||!1,j=e.RETURN_DOM||!1,I=e.RETURN_DOM_FRAGMENT||!1,W=e.RETURN_DOM_IMPORT||!1,H=e.FORCE_BODY||!1,B=!1!==e.SANITIZE_DOM,G=!1!==e.KEEP_CONTENT,C&&(D=!1),I&&(j=!0),e.ADD_TAGS&&(k===w&&(k=A(k)),x(k,e.ADD_TAGS)),e.ADD_ATTR&&(O===S&&(O=A(O)),x(O,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&x(U,e.ADD_URI_SAFE_ATTR),G&&(k["#text"]=!0),Object&&"freeze"in Object&&Object.freeze(e),J=e}(r),n.removed=[],e instanceof l)1===(s=(a=$("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName?a=s:a.appendChild(s);else{if(!j&&!F&&-1===e.indexOf("<"))return e;if(!(a=$(e)))return j?null:""}for(H&&Y(a.firstChild),d=Q(a);c=d.nextNode();)3===c.nodeType&&c===u||Z(c)||(c.content instanceof i&&ae(c.content),ie(c),u=c);if(j){if(I)for(p=b.call(a.ownerDocument);a.firstChild;)p.appendChild(a.firstChild);else p=a;return W&&(p=v.call(o,p,!0)),p}return F?a.outerHTML:a.innerHTML},n.addHook=function(e,t){"function"===typeof t&&(T[e]=T[e]||[],T[e].push(t))},n.removeHook=function(e){T[e]&&T[e].pop()},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n})}}]);
|
dist/chunks/{2e77eac33ceac334714c.css → 52784f6495bf581c7d0f.css}
RENAMED
File without changes
|
dist/chunks/52784f6495bf581c7d0f.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[143,137],{532:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n(1),n(560);function r(e){return e.ui.selectedSiteId}},535:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return s}),n.d(t,"h",function(){return u}),n.d(t,"g",function(){return l}),n.d(t,"j",function(){return d}),n.d(t,"i",function(){return f}),n.d(t,"k",function(){return p}),n.d(t,"l",function(){return h}),n.d(t,"p",function(){return E}),n.d(t,"q",function(){return O}),n.d(t,"r",function(){return b}),n.d(t,"s",function(){return m}),n.d(t,"t",function(){return v}),n.d(t,"u",function(){return g}),n.d(t,"y",function(){return _}),n.d(t,"z",function(){return y}),n.d(t,"A",function(){return C}),n.d(t,"v",function(){return j}),n.d(t,"w",function(){return S}),n.d(t,"x",function(){return I}),n.d(t,"C",function(){return R}),n.d(t,"E",function(){return T}),n.d(t,"D",function(){return N}),n.d(t,"B",function(){return M}),n.d(t,"F",function(){return P}),n.d(t,"G",function(){return w}),n.d(t,"H",function(){return k}),n.d(t,"I",function(){return A}),n.d(t,"J",function(){return L}),n.d(t,"K",function(){return x}),n.d(t,"m",function(){return D}),n.d(t,"n",function(){return W}),n.d(t,"o",function(){return V}),n.d(t,"L",function(){return H}),n.d(t,"M",function(){return G}),n.d(t,"N",function(){return U}),n.d(t,"O",function(){return B}),n.d(t,"P",function(){return F}),n.d(t,"Q",function(){return z}),n.d(t,"R",function(){return q}),n.d(t,"W",function(){return K}),n.d(t,"X",function(){return Z}),n.d(t,"Y",function(){return Q}),n.d(t,"Z",function(){return Y}),n.d(t,"ab",function(){return $}),n.d(t,"bb",function(){return J}),n.d(t,"cb",function(){return X}),n.d(t,"db",function(){return ee}),n.d(t,"eb",function(){return te}),n.d(t,"fb",function(){return ne}),n.d(t,"gb",function(){return re}),n.d(t,"hb",function(){return ie}),n.d(t,"ib",function(){return oe}),n.d(t,"jb",function(){return ae}),n.d(t,"kb",function(){return ce}),n.d(t,"lb",function(){return se}),n.d(t,"mb",function(){return ue}),n.d(t,"nb",function(){return le}),n.d(t,"ob",function(){return de}),n.d(t,"pb",function(){return fe}),n.d(t,"rb",function(){return pe}),n.d(t,"qb",function(){return he}),n.d(t,"sb",function(){return Ee}),n.d(t,"tb",function(){return Oe}),n.d(t,"ub",function(){return be}),n.d(t,"vb",function(){return me}),n.d(t,"wb",function(){return ve}),n.d(t,"xb",function(){return ge}),n.d(t,"yb",function(){return _e}),n.d(t,"zb",function(){return ye}),n.d(t,"Ab",function(){return Ce}),n.d(t,"Bb",function(){return je}),n.d(t,"Cb",function(){return Se}),n.d(t,"Db",function(){return Ie}),n.d(t,"Eb",function(){return Re}),n.d(t,"Fb",function(){return Te}),n.d(t,"Gb",function(){return Ne}),n.d(t,"Hb",function(){return Me}),n.d(t,"Ib",function(){return Pe}),n.d(t,"U",function(){return we}),n.d(t,"V",function(){return ke}),n.d(t,"S",function(){return Ae}),n.d(t,"T",function(){return Le});var r="WOOCOMMERCE_ACTION_LIST_ANNOTATE",i="WOOCOMMERCE_ACTION_LIST_CLEAR",o="WOOCOMMERCE_ACTION_LIST_STEP_NEXT",a="WOOCOMMERCE_ACTION_LIST_STEP_SUCCESS",c="WOOCOMMERCE_ACTION_LIST_STEP_FAILURE",s="WOOCOMMERCE_COUNT_REQUEST",u="WOOCOMMERCE_COUNT_REQUEST_SUCCESS",l="WOOCOMMERCE_COUNT_REQUEST_FAILURE",d="WOOCOMMERCE_ERROR_SET",f="WOOCOMMERCE_ERROR_CLEAR",p="WOOCOMMERCE_LOCATIONS_REQUEST",h="WOOCOMMERCE_LOCATIONS_REQUEST_SUCCESS",E="WOOCOMMERCE_ORDER_DELETE",O="WOOCOMMERCE_ORDER_DELETE_FAILURE",b="WOOCOMMERCE_ORDER_DELETE_SUCCESS",m="WOOCOMMERCE_ORDER_INVOICE_SEND",v="WOOCOMMERCE_ORDER_INVOICE_SEND_FAILURE",g="WOOCOMMERCE_ORDER_INVOICE_SEND_SUCCESS",_="WOOCOMMERCE_ORDER_NOTE_CREATE",y="WOOCOMMERCE_ORDER_NOTE_CREATE_FAILURE",C="WOOCOMMERCE_ORDER_NOTE_CREATE_SUCCESS",j="WOOCOMMERCE_ORDER_NOTES_REQUEST",S="WOOCOMMERCE_ORDER_NOTES_REQUEST_FAILURE",I="WOOCOMMERCE_ORDER_NOTES_REQUEST_SUCCESS",R="WOOCOMMERCE_ORDER_REFUND_CREATE",T="WOOCOMMERCE_ORDER_REFUND_CREATE_SUCCESS",N="WOOCOMMERCE_ORDER_REFUND_CREATE_FAILURE",M="WOOCOMMERCE_ORDER_REFUNDS_REQUEST_SUCCESS",P="WOOCOMMERCE_ORDER_REQUEST",w="WOOCOMMERCE_ORDER_REQUEST_FAILURE",k="WOOCOMMERCE_ORDER_REQUEST_SUCCESS",A="WOOCOMMERCE_ORDER_UPDATE",L="WOOCOMMERCE_ORDER_UPDATE_FAILURE",x="WOOCOMMERCE_ORDER_UPDATE_SUCCESS",D="WOOCOMMERCE_ORDERS_REQUEST",W="WOOCOMMERCE_ORDERS_REQUEST_FAILURE",V="WOOCOMMERCE_ORDERS_REQUEST_SUCCESS",H="WOOCOMMERCE_SERVICES_SHIPPING_ACTION_LIST_CREATE",G="WOOCOMMERCE_SETTINGS_PRODUCTS_CHANGE_SETTING",U="WOOCOMMERCE_SETTINGS_PRODUCTS_REQUEST",B="WOOCOMMERCE_SETTINGS_PRODUCTS_REQUEST_SUCCESS",F="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST",z="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST_FAILURE",q="WOOCOMMERCE_SETTINGS_PRODUCTS_UPDATE_REQUEST_SUCCESS",K="WOOCOMMERCE_SHIPPING_ZONE_ADD",Z="WOOCOMMERCE_SHIPPING_ZONE_CANCEL",Q="WOOCOMMERCE_SHIPPING_ZONE_CLOSE",Y="WOOCOMMERCE_SHIPPING_ZONE_DELETED",$="WOOCOMMERCE_SHIPPING_ZONE_EDIT_NAME",J="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_CANCEL",X="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_CLOSE",ee="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_EDIT",te="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_EDIT_POSTCODE",ne="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_POSTCODE",re="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_STATE",ie="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_FILTER_BY_WHOLE_COUNTRY",oe="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_CONTINENT",ae="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_COUNTRY",ce="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_SELECT_STATE",se="WOOCOMMERCE_SHIPPING_ZONE_LOCATIONS_UPDATED",ue="WOOCOMMERCE_SHIPPING_ZONE_METHODS_REQUEST",le="WOOCOMMERCE_SHIPPING_ZONE_METHODS_REQUEST_SUCCESS",de="WOOCOMMERCE_SHIPPING_ZONE_METHOD_ADD",fe="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CANCEL",pe="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CLOSE",he="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CHANGE_TYPE",Ee="WOOCOMMERCE_SHIPPING_ZONE_METHOD_CREATE",Oe="WOOCOMMERCE_SHIPPING_ZONE_METHOD_DELETE",be="WOOCOMMERCE_SHIPPING_ZONE_METHOD_DELETED",me="WOOCOMMERCE_SHIPPING_ZONE_METHOD_EDIT_TITLE",ve="WOOCOMMERCE_SHIPPING_ZONE_METHOD_OPEN",ge="WOOCOMMERCE_SHIPPING_ZONE_METHOD_REMOVE",_e="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_CONDITION",ye="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_COST",Ce="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_MIN_COST",je="WOOCOMMERCE_SHIPPING_ZONE_METHOD_SET_TAXABLE",Se="WOOCOMMERCE_SHIPPING_ZONE_METHOD_TOGGLE_ENABLED",Ie="WOOCOMMERCE_SHIPPING_ZONE_METHOD_TOGGLE_OPENED_ENABLED",Re="WOOCOMMERCE_SHIPPING_ZONE_METHOD_UPDATE",Te="WOOCOMMERCE_SHIPPING_ZONE_METHOD_UPDATED",Ne="WOOCOMMERCE_SHIPPING_ZONE_OPEN",Me="WOOCOMMERCE_SHIPPING_ZONE_REMOVE",Pe="WOOCOMMERCE_SHIPPING_ZONE_UPDATED",we="WOOCOMMERCE_SHIPPING_ZONES_REQUEST",ke="WOOCOMMERCE_SHIPPING_ZONES_REQUEST_SUCCESS",Ae="WOOCOMMERCE_SHIPPING_CLASSES_REQUEST",Le="WOOCOMMERCE_SHIPPING_CLASSES_REQUEST_SUCCESS"},537:function(e,t,n){"use strict";n.d(t,"j",function(){return h}),n.d(t,"t",function(){return E}),n.d(t,"s",function(){return O}),n.d(t,"r",function(){return b}),n.d(t,"h",function(){return m}),n.d(t,"g",function(){return v}),n.d(t,"v",function(){return g}),n.d(t,"u",function(){return _}),n.d(t,"m",function(){return y}),n.d(t,"e",function(){return C}),n.d(t,"l",function(){return j}),n.d(t,"p",function(){return S}),n.d(t,"n",function(){return N}),n.d(t,"f",function(){return w}),n.d(t,"o",function(){return k}),n.d(t,"q",function(){return A}),n.d(t,"d",function(){return L}),n.d(t,"b",function(){return x}),n.d(t,"i",function(){return D}),n.d(t,"c",function(){return W}),n.d(t,"k",function(){return V}),n.d(t,"a",function(){return H});var r=n(1),i=n(35),o=n(545),a=n(532),c=n(552),s=n(544),u=n(541),l=n(563),d=n(574),f=n(564),p=n(565),h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",n,"shippingLabel",t],null)},E=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.loaded},O=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.isFetching},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.error},m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.loaded?r.labels:[]},v=function(e,t,n,r){return m(e,t,n).find(function(e){return e.label_id===r})},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.fulfillOrder},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.emailDetails},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.refreshedLabelStatus},C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),r=h(e,t,n);return r&&r.form},j=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),o=C(e,t,n);if(!o)return null;var c=o.rates,s=c.values,u=c.available,l=[],d=0,f=0,p=function(e){if(!(e in u))return"continue";var t=s[e],n=t.serviceId,o=t.signatureRequired,a=u[e].default.rates,c=null,p=null;o in u[e]&&(c=u[e][o].rates,p=Object(r.find)(c,function(e){return n===e.service_id})||null);var h=Object(r.find)(a,function(e){return n===e.service_id});if(h){var E=h.retail_rate-h.rate,O=h.rate,b={title:h.title,retailRate:h.retail_rate,rateWithDiscount:O,addons:[],carrierId:h.carrier_id,carrierTitle:h.title.split("-")[0].trim()};null!==p&&(b.addons=[{title:Object(i.translate)("Signature Required"),rate:p.rate-h.rate}],O=p.rate),l.push(b),d+=Object(r.round)(E,2),f+=O}};for(var h in s)p(h);return l.length?{prices:l,discount:d,total:f}:null},S=Object(o.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),i=C(e,t,n);if(Object(r.isEmpty)(i))return!1;var o=Object(l.a)(i.origin),c=Object(l.a)(i.destination);return!("US"!==o.country||!Object(r.includes)(d.d,o.state))||(!("US"!==c.country||!Object(r.includes)(d.d,c.state))||o.country!==c.country&&(!Object(r.includes)(d.b,o.country)||!Object(r.includes)(d.b,c.country)))},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return[C(e,t,n)]}),I=function(e,t,n,o){var a=t.values,c=Object(l.a)(t),s=c.phone,u=c.postcode,p=c.state,h=c.country,E={};return["name","address","city","postcode","country"].forEach(function(e){a[e]||(E[e]=Object(i.translate)("This field is required"))}),Object(r.includes)(d.a,h)&&!/^\d{5}(?:-\d{4})?$/.test(u)&&(E.postcode=Object(i.translate)("Invalid ZIP/Postal code format")),!p&&Object(f.j)(e,h,n)&&(E.state=Object(i.translate)("This field is required")),o&&(s?10!==s.split(/\D+/g).join("").replace(/^1/,"").length&&(E.phone=Object(i.translate)("Customs forms require a 10-digit phone number. Please edit your phone number so it has at most 10 digits.")):E.phone=Object(i.translate)("Please enter a phone number for your origin address. It's required because this shipment requires a customs form.")),E},R=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.isNormalized,a=e.isUnverifiable,c=e.normalized,s=e.ignoreValidation,u=e.fieldErrors;if((o||a)&&!c&&u)return u;if(o&&!c)return{address:Object(i.translate)("This address is not recognized. Please try another.")};var l=I(t,e,n,r);return s&&Object.keys(l).forEach(function(e){s[e]&&delete l[e]}),l},T=function(e,t,n,o){var a=Object(r.uniq)(Object(r.flatten)(Object(r.map)(e,function(e){return Object(r.map)(e.items,"product_id")}))),c=Object(r.zipObject)(a,Object(r.fill)(Array(a.length),0));Object(r.forEach)(e,function(e){Object(r.forEach)(e.items,function(e){var n=e.quantity,r=e.product_id;return c[r]+=n*t.items[r].value})});var s={};return Object(r.forEach)(Object(r.pick)(t.items,a),function(e,t){e.tariffNumber&&6===e.tariffNumber.length&&(s[e.tariffNumber]||(s[e.tariffNumber]=0),s[e.tariffNumber]+=c[t])}),{packages:Object(r.mapValues)(e,function(e){var a={};"other"!==e.contentsType||e.contentsExplanation||(a.contentsExplanation=Object(i.translate)("Please describe what kind of goods this package contains")),"other"!==e.restrictionType||e.restrictionComments||(a.restrictionComments=Object(i.translate)("Please describe what kind of restrictions this package must have"));var c=new Set;return Object(r.forEach)(e.items,function(e){var n=e.product_id,r=t.items[n].tariffNumber;2500<s[r]&&c.add(r)}),e.itn?/^(?:(?:AES X\d{14})|(?:NOEEI 30\.\d{1,2}(?:\([a-z]\)(?:\(\d\))?)?))$/.test(e.itn)||(a.itn=Object(i.translate)("Invalid format")):"CA"!==n&&(Object(r.isEmpty)(c)?Object(r.includes)(d.c,n)&&(a.itn=Object(i.translate)("International Transaction Number is required for shipments to %(country)s",{args:{country:o}})):a.itn=Object(i.translate)("International Transaction Number is required for shipping items valued over $2,500 per tariff number. Products with tariff number %(code)s add up to more than $2,500.",{args:{code:c.values().next().value}})),a}),items:Object(r.mapValues)(Object(r.pick)(t.items,a),function(e,n){var o={};return e.description||(o.description=Object(i.translate)("This field is required")),t.ignoreWeightValidation[n]||(Object(r.isNil)(e.weight)||""===e.weight?o.weight=Object(i.translate)("This field is required"):parseFloat(e.weight)>0||(o.weight=Object(i.translate)("Weight must be greater than zero"))),t.ignoreValueValidation[n]||(Object(r.isNil)(e.value)||""===e.value?o.value=Object(i.translate)("This field is required"):parseFloat(e.value)>0||(o.value=Object(i.translate)("Declared value must be greater than zero"))),e.tariffNumber&&6!==e.tariffNumber.length&&(o.tariffNumber=Object(i.translate)("The tariff number must be 6 digits long")),o})}},N=function(e){var t=e.values,n=e.available,i=Object(r.map)(n,function(e,n){return t[n]});return!Object(r.isEmpty)(i)&&Object(r.every)(i)},M=function(e){var t=e.values,n=e.available;return Object(r.mapValues)(n,function(e,n){if(!Object(r.isEmpty)(e.default.errors)){var o=e.default.errors.map(function(e){return e.userMessage||e.message}).filter(Boolean);return o.length?o:["We couldn't get a rate for this package, please try again."]}return t[n]&&t[n].serviceId?[]:Object(r.isEmpty)(e.default.rates)?[Object(i.translate)("No rates available, please double check dimensions and weight or try using different packaging.")]:[Object(i.translate)("Please choose a rate")]})},P=function(e){var t={};return e||(t.paperSize=Object(i.translate)("This field is required")),t},w=Object(o.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);if(!E(e,t,n))return{};var o=h(e,t,n),c=o.form,s=o.paperSize;if(Object(r.isEmpty)(c))return{};var u,l=c.destination.values.country,d=Object(f.g)(e,l,n),p=S(e,t,n);return{origin:R(c.origin,e,n,p),destination:R(c.destination,e,n),packages:(u=c.packages.selected,Object(r.mapValues)(u,function(e){var t={};"not_selected"===e.box_id&&(t.box_id=Object(i.translate)("Please select a package"));var n=function(e){return!Object(r.isFinite)(e)||0>=e};return n(e.weight)&&(t.weight=Object(i.translate)("Invalid weight")),Object(r.some)([e.length,e.width,e.height],n)&&(t.dimensions=Object(i.translate)("Package dimensions must be greater than zero")),t})),customs:T(c.packages.selected,c.customs,l,d),rates:M(c.rates),sidebar:P(s)}},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return[h(e,t,n)]}),k=Object(o.a)(function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(a.a)(e),i=h(e,t,r).form,o="origin"===n&&S(e,t,r),c=I(e,i[n],r,o);return 0===Object.keys(c).length},function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(a.a)(e);return[h(e,t,r).form[n]]}),A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),i=C(e,t,n);if(!i)return!1;var o=Object(r.uniq)(Object(r.flatten)(Object(r.map)(i.packages.selected,function(e){return Object(r.map)(e.items,"product_id")})));return!Object(r.some)(o.map(function(e){return Object(r.isNil)(i.customs.items[e].tariffNumber)||i.customs.ignoreWeightValidation[e]||i.customs.ignoreValueValidation[e]}))},L=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),i=C(e,t,n);if(!i)return null;var o=w(e,t,n);return i.origin.isNormalized&&Object(r.isEqual)(i.origin.values,i.origin.normalized)&&!Object(c.a)(o.origin)?i.destination.isNormalized&&Object(r.isEqual)(i.destination.values,i.destination.normalized)&&!Object(c.a)(o.destination)?Object(c.a)(o.packages)?"packages":!S(e,t,n)||!Object(c.a)(o.customs)&&A(e,t,n)?Object(c.a)(o.rates)?"rates":null:"customs":"destination":"origin"},x=Object(o.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e),i=C(e,t,n);return!Object(r.isEmpty)(i)&&!L(e,t,n)&&!i.origin.normalizationInProgress&&!i.destination.normalizationInProgress&&!i.rates.retrievalInProgress&&!Object(r.isEmpty)(i.rates.available)},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return[C(e,t,n),L(e,t,n)]}),D=Object(o.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=Object(f.d)(e,t);return Object(p.b)(e,t)?Object(r.pick)(n,d.a):Object(r.pick)(n,d.b)},[f.d,p.b]),W=Object(o.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(a.a)(e),n=Object(f.d)(e,t);return Object(p.b)(e,t)?n:Object(r.pick)(n,d.b)},[f.d,p.b]),V=Object(o.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);if(!Object(f.j)(e,t,n))return null;var i=Object(f.i)(e,t,n),o={};return i.forEach(function(e){var t=e.code,n=e.name;return o[t]=n}),"US"!==t||Object(p.b)(e,n)?o:Object(r.omit)(o,d.d)},[f.i,p.b]),H=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(a.a)(e);return E(e,t,n)&&Object(s.d)(e,n)&&Object(u.i)(e,n)&&Object(f.b)(e,n)}},538:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"e",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return s}),n.d(t,"g",function(){return u}),n.d(t,"h",function(){return l}),n.d(t,"i",function(){return d}),n.d(t,"j",function(){return f}),n.d(t,"k",function(){return p}),n.d(t,"l",function(){return h}),n.d(t,"m",function(){return E}),n.d(t,"n",function(){return O}),n.d(t,"o",function(){return b}),n.d(t,"q",function(){return m}),n.d(t,"p",function(){return v}),n.d(t,"r",function(){return g}),n.d(t,"s",function(){return _}),n.d(t,"t",function(){return y}),n.d(t,"u",function(){return C}),n.d(t,"v",function(){return j}),n.d(t,"w",function(){return S}),n.d(t,"B",function(){return I}),n.d(t,"x",function(){return R}),n.d(t,"C",function(){return T}),n.d(t,"z",function(){return N}),n.d(t,"A",function(){return M}),n.d(t,"D",function(){return P}),n.d(t,"E",function(){return w}),n.d(t,"F",function(){return k}),n.d(t,"G",function(){return A}),n.d(t,"H",function(){return L}),n.d(t,"I",function(){return x}),n.d(t,"J",function(){return D}),n.d(t,"K",function(){return W}),n.d(t,"L",function(){return V}),n.d(t,"M",function(){return H}),n.d(t,"N",function(){return G}),n.d(t,"y",function(){return U}),n.d(t,"O",function(){return B}),n.d(t,"P",function(){return F}),n.d(t,"Q",function(){return z}),n.d(t,"R",function(){return q}),n.d(t,"S",function(){return K}),n.d(t,"T",function(){return Z}),n.d(t,"U",function(){return Q}),n.d(t,"Ob",function(){return Y}),n.d(t,"V",function(){return $}),n.d(t,"W",function(){return J}),n.d(t,"X",function(){return X}),n.d(t,"Y",function(){return ee}),n.d(t,"Z",function(){return te}),n.d(t,"ab",function(){return ne}),n.d(t,"bb",function(){return re}),n.d(t,"cb",function(){return ie}),n.d(t,"db",function(){return oe}),n.d(t,"eb",function(){return ae}),n.d(t,"fb",function(){return ce}),n.d(t,"gb",function(){return se}),n.d(t,"hb",function(){return ue}),n.d(t,"ib",function(){return le}),n.d(t,"jb",function(){return de}),n.d(t,"kb",function(){return fe}),n.d(t,"lb",function(){return pe}),n.d(t,"nb",function(){return he}),n.d(t,"mb",function(){return Ee}),n.d(t,"ob",function(){return Oe}),n.d(t,"pb",function(){return be}),n.d(t,"qb",function(){return me}),n.d(t,"rb",function(){return ve}),n.d(t,"sb",function(){return ge}),n.d(t,"tb",function(){return _e}),n.d(t,"ub",function(){return ye}),n.d(t,"vb",function(){return Ce}),n.d(t,"wb",function(){return je}),n.d(t,"xb",function(){return Se}),n.d(t,"zb",function(){return Ie}),n.d(t,"Ab",function(){return Re}),n.d(t,"Bb",function(){return Te}),n.d(t,"Cb",function(){return Ne}),n.d(t,"Db",function(){return Me}),n.d(t,"Eb",function(){return Pe}),n.d(t,"Fb",function(){return we}),n.d(t,"Gb",function(){return ke}),n.d(t,"Hb",function(){return Ae}),n.d(t,"Ib",function(){return Le}),n.d(t,"Jb",function(){return xe}),n.d(t,"yb",function(){return De}),n.d(t,"Lb",function(){return We}),n.d(t,"Kb",function(){return Ve}),n.d(t,"Mb",function(){return He}),n.d(t,"Nb",function(){return Ge}),n.d(t,"Pb",function(){return Ue}),n.d(t,"Qb",function(){return Be}),n.d(t,"Rb",function(){return Fe});var r="WOOCOMMERCE_SERVICES_LABELS_INIT_FORM",i="WOOCOMMERCE_SERVICES_LABELS_RESTORE_PRISTINE",o="WOOCOMMERCE_SERVICES_LABELS_SET_FORM_DATA_VALUE",a="WOOCOMMERCE_SERVICES_LABELS_SET_FORM_META_PROPERTY",c="WOOCOMMERCE_SERVICES_LABELS_OPEN_ADD_CARD_DIALOG",s="WOOCOMMERCE_SERVICES_LABELS_CLOSE_ADD_CARD_DIALOG",u="WOOCOMMERCE_SERVICES_PACKAGES_ADD_PACKAGE",l="WOOCOMMERCE_SERVICES_PACKAGES_DISMISS_MODAL",d="WOOCOMMERCE_SERVICES_PACKAGES_EDIT_PACKAGE",f="WOOCOMMERCE_SERVICES_PACKAGES_INIT_PACKAGES_FORM",p="WOOCOMMERCE_SERVICES_PACKAGES_REMOVE_PACKAGE",h="WOOCOMMERCE_SERVICES_PACKAGES_REMOVE_PREDEFINED",E="WOOCOMMERCE_SERVICES_PACKAGES_SAVE_PACKAGE",O="WOOCOMMERCE_SERVICES_PACKAGES_SAVE_PREDEFINED",b="WOOCOMMERCE_SERVICES_PACKAGES_SET_ADD_MODE",m="WOOCOMMERCE_SERVICES_PACKAGES_SET_IS_FETCH_ERROR",v="WOOCOMMERCE_SERVICES_PACKAGES_SET_IS_FETCHING",g="WOOCOMMERCE_SERVICES_PACKAGES_SET_IS_SAVING",_="WOOCOMMERCE_SERVICES_PACKAGES_SET_MODAL_ERROR",y="WOOCOMMERCE_SERVICES_PACKAGES_TOGGLE_ALL_PREDEFINED",C="WOOCOMMERCE_SERVICES_PACKAGES_TOGGLE_OUTER_DIMENSIONS",j="WOOCOMMERCE_SERVICES_PACKAGES_TOGGLE_PREDEFINED",S="WOOCOMMERCE_SERVICES_PACKAGES_UPDATE_PACKAGES_FIELD",I="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADD_ITEMS",R="WOOCOMMERCE_SERVICES_SERVICE_SETTINGS_UPDATE_FIELD",T="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADD_PACKAGE",N="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADDRESS_NORMALIZATION_COMPLETED",M="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_ADDRESS_NORMALIZATION_IN_PROGRESS",P="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLEAR_AVAILABLE_RATES",w="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_ADD_ITEM",k="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_DETAILS_DIALOG",A="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_ITEM_MOVE",L="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_REFUND_DIALOG",x="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CLOSE_REPRINT_DIALOG",D="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CONFIRM_ADDRESS_SUGGESTION",W="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_CONFIRM_REPRINT",V="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_EDIT_ADDRESS",H="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_EDIT_UNVERIFIABLE_ADDRESS",G="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_EXIT_PRINTING_FLOW",U="WOOCOMMERCE_SERVICES_SHIPPING_EXIT_TRACKING_FLOW",B="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_INIT",F="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_MOVE_ITEM",z="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_ADD_ITEM",q="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_DETAILS_DIALOG",K="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_ITEM_MOVE",Z="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_PACKAGE",Q="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_PRINTING_FLOW",Y="WOOCOMMERCE_SERVICES_SHIPPING_OPEN_TRACKING_FLOW",$="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_REFUND_DIALOG",J="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_OPEN_REPRINT_DIALOG",X="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_PURCHASE_REQUEST",ee="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_PURCHASE_RESPONSE",te="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_RATES_RETRIEVAL_COMPLETED",ne="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_RATES_RETRIEVAL_IN_PROGRESS",re="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REFUND_REQUEST",ie="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REFUND_RESPONSE",oe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REMOVE_IGNORE_VALIDATION",ae="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REMOVE_PACKAGE",ce="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REPRINT_DIALOG_ERROR",se="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_REPRINT_DIALOG_READY",ue="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SAVE_CUSTOMS",le="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SAVE_PACKAGES",de="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SELECT_NORMALIZED_ADDRESS",fe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_ABANDON_ON_NON_DELIVERY",pe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_ADDED_ITEM",he="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CONTENTS_TYPE",Ee="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CONTENTS_EXPLANATION",Oe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_DESCRIPTION",be="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_ORIGIN_COUNTRY",me="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_TARIFF_NUMBER",ve="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_VALUE",ge="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_CUSTOMS_ITEM_WEIGHT",_e="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_EMAIL_DETAILS",ye="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_FETCH_ERROR",Ce="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_FULFILL_ORDER",je="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_IS_FETCHING",Se="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_ITN",Ie="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_PACKAGE_TYPE",Re="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_RATES",Te="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_RESTRICTION_COMMENTS",Ne="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_RESTRICTION_TYPE",Me="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_TARGET_PACKAGE",Pe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SHOW_PRINT_CONFIRMATION",we="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_STATUS_RESPONSE",ke="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_STATUS_RETRIEVAL_IN_PROGRESS",Ae="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_TOGGLE_STEP",Le="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_ADDRESS_VALUE",xe="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_PACKAGE_WEIGHT",De="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_SET_PACKAGE_SIGNATURE",We="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_RATE",Ve="WOOCOMMERCE_SERVICES_SHIPPING_LABEL_UPDATE_PAPER_SIZE",He="WOOCOMMERCE_SERVICES_SHIPPING_METHOD_SCHEMA_REQUEST",Ge="WOOCOMMERCE_SERVICES_SHIPPING_METHOD_SCHEMA_REQUEST_SUCCESS",Ue="WOOCOMMERCE_SERVICES_SHIPPING_ZONE_METHOD_SETTINGS_REQUEST",Be="WOOCOMMERCE_SERVICES_SHIPPING_ZONE_METHOD_SETTINGS_REQUEST_SUCCESS",Fe="WOOCOMMERCE_SERVICES_SHIPPING_ZONE_METHOD_UPDATE"},539:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var r="LOADING",i="ERROR"},541:function(e,t,n){"use strict";n.d(t,"e",function(){return h}),n.d(t,"b",function(){return O}),n.d(t,"d",function(){return b}),n.d(t,"a",function(){return m}),n.d(t,"c",function(){return v}),n.d(t,"f",function(){return g}),n.d(t,"i",function(){return _}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return C});var r=n(110),i=n.n(r),o=n(36),a=n.n(o),c=n(1),s=n(35),u=n(545),l=n(532),d=n(574),f=n(563),p=n(537),h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e);return Object(c.get)(e,["extensions","woocommerce","woocommerceServices",t,"packages"],null)},E=function(e){return e&&e.predefinedSchema?Object.keys(e.predefinedSchema):[]},O=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=h(e,t);if(!n||!n.predefinedSchema||!n.packages)return null;var r=[];Object(c.forEach)(n.predefinedSchema,function(e,t){var i=(n.packages.predefined||{})[t]||[];Object(c.forEach)(e,function(e){var n=e.definitions;Object(c.forEach)(n,function(e){Object(c.includes)(i,e.id)&&r.push(a()({},e,{serviceId:t}))})})});var i=(n.packages.custom||[]).map(function(e,t){return a()({},e,{index:t})});return Object(c.orderBy)(r.concat(i),"name")},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=h(e,t);if(!n||!n.packages)return[];var r=E(n);return[].concat(i()(n.packages.custom||[]),i()(r.map(function(e){return(n.packages.predefined||{})[e]})))}),b=Object(u.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(l.a)(e),r=h(e,n);if(!r||!r.predefinedSchema||!r.packages)return null;var i=Object(p.e)(e,t,n),o=Object(f.a)(i.origin).country,a=Object(f.a)(i.destination).country,u=d.a.includes(o)&&!d.a.includes(a),E={custom:{title:Object(s.translate)("Custom Packages"),definitions:r.packages.custom}};return Object(c.forEach)(r.predefinedSchema,function(e,t){var n=(r.packages.predefined||{})[t]||[];Object(c.forEach)(e,function(e,t){var r=e.definitions,i={title:e.title,definitions:[]};Object(c.forEach)(r,function(e){u&&!1===e.can_ship_international||Object(c.includes)(n,e.id)&&i.definitions.push(e)}),i.definitions.length&&(E[t]=i)})}),E},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(l.a)(e),r=h(e,n);if(!r||!r.packages)return[];var o=E(r),a=Object(p.e)(e,t,n),c=Object(f.a)(a.origin).country,s=Object(f.a)(a.destination).country;return[].concat(i()(r.packages.custom||[]),i()(o.map(function(e){return(r.packages.predefined||{})[e]})),[c,s])}),m=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=h(e,t);if(!n||!n.predefinedSchema||!n.packages)return null;var r={};return Object(c.forEach)(n.packages.custom,function(e){r[e.name]=e}),Object(c.forEach)(n.predefinedSchema,function(e){Object(c.forEach)(e,function(e){var t=e.definitions;Object(c.forEach)(t,function(e){r[e.id]=e})})}),r},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=h(e,t);if(!n||!n.packages)return[];var r=E(n);return[].concat(i()(n.packages.custom||[]),i()(r.map(function(e){return(n.packages.predefined||{})[e]})))}),v=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=h(e,t);if(!n||!n.currentlyEditingPredefinedPackages)return null;var r={},i=n.predefinedSchema,o=n.currentlyEditingPredefinedPackages;return Object(c.forEach)(i,function(e,t){var n=o[t]||[];Object(c.forEach)(e,function(e,i){var o={groupId:i,serviceId:t,title:e.title,packages:[],total:e.definitions.length,selected:0};Object(c.forEach)(e.definitions,function(e){var r=Object(c.includes)(n,e.id);r&&o.selected++,o.packages.push(a()({},e,{selected:r,serviceId:t}))}),r["".concat(t,"-").concat(i)]=o})}),r},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=h(e,t);if(!n||!n.currentlyEditingPredefinedPackages)return[];var r=E(n);return i()(r.map(function(e){return n.currentlyEditingPredefinedPackages[e]}))}),g=Object(u.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=0,r=0,i=h(e,t);if(!i||!i.currentlyEditingPredefinedPackages)return{added:n,removed:r};var o=i.packages&&i.packages.predefined?i.packages.predefined:{},a=i.currentlyEditingPredefinedPackages;return Object.keys(a).forEach(function(e){var t=o[e],r=a[e];t?r.forEach(function(e){Object(c.includes)(t,e)||n++}):n+=r.length}),Object.keys(o).forEach(function(e){var t=o[e],n=a[e];n?t.forEach(function(e){Object(c.includes)(n,e)||r++}):r+=t.length}),{added:n,removed:r}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=h(e,t);if(!n||!n.currentlyEditingPredefinedPackages)return[];var r=E(n);return[].concat(i()(r.map(function(e){return n.packages&&n.packages.predefined&&n.packages.predefined[e]})),i()(r.map(function(e){return n.currentlyEditingPredefinedPackages[e]})))}),_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=h(e,t);return n&&n.isLoaded},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=h(e,t);return n&&n.isFetching},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(l.a)(e),n=h(e,t);return n&&n.isFetchError}},542:function(e,t,n){"use strict";n.d(t,"a",function(){return S});var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(107),s=n.n(c),u=n(108),l=n.n(u),d=n(528),f=n.n(d),p=n(527),h=n.n(p),E=n(529),O=n.n(E),b=n(34),m=n.n(b),v=n(10),g=n.n(v),_=n(12),y=n.n(_),C=n(526),j=n.n(C),S=function(e){function t(){return s()(this,t),f()(this,h()(t).apply(this,arguments))}return O()(t,e),l()(t,[{key:"render",value:function(){var e=j()("button",this.props.className,{"is-compact":this.props.compact,"is-primary":this.props.primary,"is-scary":this.props.scary,"is-busy":this.props.busy,"is-borderless":this.props.borderless});if(this.props.href){var t=this.props,n=(t.compact,t.primary,t.scary,t.busy,t.borderless,t.type,a()(t,["compact","primary","scary","busy","borderless","type"])),r=n.target?(n.rel||"").replace(/noopener|noreferrer/g,"")+" noopener noreferrer":n.rel;return g.a.createElement("a",i()({},n,{rel:r,className:e}))}var o=this.props,c=(o.compact,o.primary,o.scary,o.busy,o.borderless,o.target,o.rel,a()(o,["compact","primary","scary","busy","borderless","target","rel"]));return g.a.createElement("button",i()({},c,{className:e}))}}]),t}(v.PureComponent);m()(S,"propTypes",{compact:y.a.bool,primary:y.a.bool,scary:y.a.bool,busy:y.a.bool,type:y.a.string,href:y.a.string,borderless:y.a.bool,target:y.a.string,rel:y.a.string}),m()(S,"defaultProps",{type:"button"})},543:function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"c",function(){return g}),n.d(t,"b",function(){return _}),n.d(t,"a",function(){return y});var r={};n.r(r),n.d(r,"accountSettings",function(){return o}),n.d(r,"packages",function(){return a}),n.d(r,"orderLabels",function(){return c}),n.d(r,"getLabelRates",function(){return s}),n.d(r,"labelStatus",function(){return u}),n.d(r,"labelRefund",function(){return l}),n.d(r,"labelsPrint",function(){return d}),n.d(r,"labelTestPrint",function(){return f}),n.d(r,"addressNormalization",function(){return p}),n.d(r,"serviceSettings",function(){return h}),n.d(r,"shippingCarrier",function(){return E}),n.d(r,"shippingCarriers",function(){return O}),n.d(r,"shippingCarrierDelete",function(){return b}),n.d(r,"shippingCarrierTypes",function(){return m});var i=n(562),o="connect/account/settings",a="connect/packages",c=function(e){return"connect/label/".concat(e)},s=function(e){return"connect/label/".concat(e,"/rates")},u=function(e,t){return"connect/label/".concat(e,"/").concat(t)},l=function(e,t){return"connect/label/".concat(e,"/").concat(t,"/refund")},d=function(){return"connect/label/print"},f=function(){return"connect/label/preview"},p=function(){return"connect/normalize-address"},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"connect/services/".concat(e,"/").concat(t)},E=function(){return"connect/shipping/carrier"},O=function(){return"connect/shipping/carriers"},b=function(e){return"connect/shipping/carrier/".concat(e)},m=function(){return"connect/shipping/carrier-types"},v=function(e){if(e&&e.message)throw e.message;if(e&&e.data&&e.data.message)throw e.data.message;throw e},g=function(e,t,n){return Object(i.a)(e).post(t,n,"wc/v1").catch(v)},_=function(e,t){return Object(i.a)(e).get(t,"wc/v1").catch(v)},y=function(e,t){return Object(i.a)(e).del(t,"wc/v1").catch(v)}},544:function(e,t,n){"use strict";n.d(t,"f",function(){return a}),n.d(t,"g",function(){return c}),n.d(t,"h",function(){return s}),n.d(t,"i",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return f}),n.d(t,"a",function(){return p}),n.d(t,"n",function(){return h}),n.d(t,"o",function(){return E}),n.d(t,"e",function(){return O}),n.d(t,"q",function(){return b}),n.d(t,"p",function(){return m}),n.d(t,"k",function(){return v}),n.d(t,"l",function(){return g}),n.d(t,"m",function(){return _}),n.d(t,"j",function(){return y});var r=n(1),i=n(532),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",t,"labelSettings"],null)},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=o(e,t);return n&&n.data},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=o(e,t);return n&&n.meta},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=o(e,t);return n&&n.storeOptions},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.user},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.isLoaded},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.isFetching},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.isFetchError},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=a(e,t);return n&&n.enabled},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=a(e,t);return n&&n.selected_payment_method_id},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.pristine},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=a(e,t);return n&&n.email_receipts},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.can_manage_payments},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.can_edit_settings},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=a(e,t);return n&&n.paper_size},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.payment_methods},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return n&&n.warnings&&n.warnings.payment_methods},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return{masterUserName:n&&n.master_user_name,masterUserLogin:n&&n.master_user_login,masterUserEmail:n&&n.master_user_email,masterUserWpcomLogin:n&&n.master_user_wpcom_login}}},545:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(1),i=n(607),o=n.n(i),a=(n(113),function(e){return e}),c=function(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 n.join()},s=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.map(function(e){return e.apply(void 0,[t].concat(r))})}};function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,u=Object(r.memoize)(e,i);return Array.isArray(n)&&(n=s(n)),Object.assign(function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var c=n.apply(void 0,[e].concat(i));return Array.isArray(c)||(c=[c]),t&&!o()(c,t)&&u.cache.clear(),t=c,u.apply(void 0,[e].concat(i))},{memoizedSelector:u})}},546:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(10),s=n.n(c),u=n(526),l=n.n(u);t.a=function(e){var t=e.className,n=e.children,r=a()(e,["className","children"]);return s.a.createElement("fieldset",i()({},r,{className:l()(t,"form-fieldset")}),n)}},547:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(36),s=n.n(c),u=n(10),l=n.n(u),d=n(12),f=n.n(d),p=n(526),h=n.n(p),E=n(35),O=n(1),b=function(e){var t=e.children,n=e.required,r=e.optional,o=e.translate,c=e.className,u=a()(e,["children","required","optional","translate","className"]);return t=l.a.Children.toArray(t)||[],n&&t.push(function(e){return l.a.createElement("small",{className:"form-label__required"},e("Required"))}(o)),r&&t.push(function(e){return l.a.createElement("small",{className:"form-label__optional"},e("Optional"))}(o)),l.a.createElement("label",i()({},Object(O.omit)(u,"moment","numberFormat"),{className:h()(c,"form-label")}),t.length?t.map(function(e,t){return Object(O.isObject)(e)?s()({},e,{key:t}):e}):null)};b.propTypes={required:f.a.bool},t.a=Object(E.localize)(b)},548:function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return d}),n.d(t,"b",function(){return f});var r=n(533),i=n.n(r),o=n(1),a={debounce:o.debounce,isPlainObject:o.isPlainObject,uniqueId:o.uniqueId},c=(n(46),a.uniqueId);function s(e){return{noticeId:e,type:"NOTICE_REMOVE"}}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.id,o=i()(n,["id"]);return{type:"NOTICE_CREATE",notice:Object.assign({showDismiss:!0},o,{noticeId:r||c(),status:e,text:t})}}var l=u.bind(null,"is-success"),d=u.bind(null,"is-error"),f=u.bind(null,"is-info");u.bind(null,"is-warning"),u.bind(null,"is-plain")},549:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(10),s=n.n(c),u=n(526),l=n.n(u);t.a=function(e){var t=e.className,n=e.children,r=a()(e,["className","children"]);return s.a.createElement("h3",i()({},r,{className:l()(t,"form-section-heading")}),n)}},550:function(e,t,n){"use strict";var r=n(10),i=n.n(r),o=n(12),a=n.n(o),c=n(526),s=n.n(c),u=n(534),l=n.n(u),d=function(e){var t=e.text,n=e.type,r=void 0===n?"input-validation":n;return i.a.createElement("div",{className:s()("field-error","field-error__".concat(r))},i.a.createElement(l.a,{size:24,icon:"notice-outline"})," ",i.a.createElement("span",null,t))};d.propTypes={text:a.a.string.isRequired,type:a.a.string},t.a=d},552:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(1),i=function e(t){return!!t&&(Object(r.isArray)(t)?Object(r.some)(t,e):!Object(r.isPlainObject)(t)||Object(r.some)(Object(r.values)(t),e))}},553:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(10),s=n.n(c),u=n(526),l=n.n(u);t.a=function(e){var t=e.className,n=e.children,r=a()(e,["className","children"]);return s.a.createElement("legend",i()({},r,{className:l()(t,"form-legend")}),n)}},554:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(530),i=n.n(r),o=n(10),a=n.n(o),c=n(526),s=n.n(c),u=n(559);function l(e){return a.a.createElement(u.a,i()({},e,{className:s()(e.className,"is-compact")}),e.children)}},555:function(e,t,n){"use strict";n.r(t),n.d(t,"addPackage",function(){return a}),n.d(t,"removePackage",function(){return c}),n.d(t,"editPackage",function(){return s}),n.d(t,"dismissModal",function(){return u}),n.d(t,"savePackage",function(){return l}),n.d(t,"updatePackagesField",function(){return d}),n.d(t,"toggleOuterDimensions",function(){return f}),n.d(t,"toggleAll",function(){return p}),n.d(t,"togglePackage",function(){return h}),n.d(t,"savePredefinedPackages",function(){return E}),n.d(t,"removePredefinedPackage",function(){return O}),n.d(t,"setModalErrors",function(){return b}),n.d(t,"setIsSaving",function(){return m}),n.d(t,"setIsFetching",function(){return v}),n.d(t,"setIsFetchError",function(){return g}),n.d(t,"setAddMode",function(){return _}),n.d(t,"fetchSettings",function(){return y}),n.d(t,"submit",function(){return C});var r=n(543),i=n(538),o=n(541),a=function(e){return{type:i.g,siteId:e}},c=function(e,t){return{type:i.k,index:t,siteId:e}},s=function(e,t){return{type:i.i,package:t,siteId:e}},u=function(e){return{type:i.h,siteId:e}},l=function(e,t){return{type:i.m,packageData:t,siteId:e}},d=function(e,t){return{type:i.w,values:t,siteId:e}},f=function(e){return{type:i.u,siteId:e}},p=function(e,t,n,r){return{type:i.t,serviceId:t,groupId:n,checked:r,siteId:e}},h=function(e,t,n){return{type:i.v,serviceId:t,packageId:n,siteId:e}},E=function(e){return{type:i.n,siteId:e}},O=function(e,t,n){return{type:i.l,serviceId:t,packageId:n,siteId:e}},b=function(e,t){return{type:i.s,value:t,siteId:e}},m=function(e,t){return{type:i.r,isSaving:t,siteId:e}},v=function(e,t){return{type:i.p,isFetching:t,siteId:e}},g=function(e,t){return{type:i.q,isFetchError:t,siteId:e}},_=function(e,t){return{type:i.o,siteId:e,mode:t}},y=function(e){return function(t,n){var a=Object(o.e)(n(),e);a&&(a.packages||a.isFetching)||(t(v(e,!0)),r.b(e,r.d.packages).then(function(n){var r=n.formData,o=n.formSchema,a=n.storeOptions;t({type:i.j,packages:r,dimensionUnit:a.dimension_unit,weightUnit:a.weight_unit,packageSchema:o.custom.items,predefinedSchema:o.predefined,siteId:e})}).catch(function(n){console.error(n),t(g(e,!0))}).then(function(){return t(v(e,!1))}))}},C=function(e,t,n){return function(i,a){var c=Object(o.e)(a(),e);i(m(e,!0)),r.c(e,r.d.packages,c.packages).then(t).catch(n).then(function(){return i(m(e,!1))})}}},556:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(535);function i(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:r.j,siteId:e,originalAction:t,data:n,time:i}}},557:function(e,t,n){"use strict";n.d(t,"a",function(){return I});var r=n(530),i=n.n(r),o=n(107),a=n.n(o),c=n(108),s=n.n(c),u=n(528),l=n.n(u),d=n(527),f=n.n(d),p=n(531),h=n.n(p),E=n(529),O=n.n(E),b=n(34),m=n.n(b),v=n(10),g=n.n(v),_=n(12),y=n.n(_),C=n(526),j=n.n(C),S=n(1),I=function(e){function t(){var e;return a()(this,t),(e=l()(this,f()(t).apply(this,arguments))).selectOnFocus=e.selectOnFocus.bind(h()(e)),e}return O()(t,e),s()(t,[{key:"focus",value:function(){this.refs.textField.focus()}},{key:"selectOnFocus",value:function(e){this.props.selectOnFocus&&e.target.select()}},{key:"render",value:function(){var e=this.props.inputRef,t=Object(S.omit)(this.props,"isError","isValid","selectOnFocus","inputRef"),n=j()("form-text-input",this.props.className,{"is-error":this.props.isError,"is-valid":this.props.isValid});return g.a.createElement("input",i()({type:"text"},t,{ref:e||"textField",className:n,onClick:this.selectOnFocus}))}}]),t}(v.PureComponent);m()(I,"propTypes",{isError:y.a.bool,isValid:y.a.bool,selectOnFocus:y.a.bool,className:y.a.string})},558:function(e,t,n){"use strict";n.d(t,"a",function(){return j});var r=n(530),i=n.n(r),o=n(107),a=n.n(o),c=n(108),s=n.n(c),u=n(528),l=n.n(u),d=n(527),f=n.n(d),p=n(529),h=n.n(p),E=n(34),O=n.n(E),b=n(10),m=n.n(b),v=n(12),g=n.n(v),_=n(526),y=n.n(_),C=n(1),j=function(e){function t(){return a()(this,t),l()(this,f()(t).apply(this,arguments))}return h()(t,e),s()(t,[{key:"render",value:function(){var e=y()(this.props.className,"form-setting-explanation",{"no-validate":this.props.noValidate,"is-indented":this.props.isIndented});return m.a.createElement("p",i()({},Object(C.omit)(this.props,"className","noValidate","isIndented"),{className:e}),this.props.children)}}]),t}(m.a.Component);O()(j,"displayName","FormSettingExplanation"),O()(j,"propTypes",{noValidate:g.a.bool,isIndented:g.a.bool,className:g.a.string}),O()(j,"defaultProps",{noValidate:!1,isIndented:!1})},559:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(107),s=n.n(c),u=n(108),l=n.n(u),d=n(528),f=n.n(d),p=n(527),h=n.n(p),E=n(529),O=n.n(E),b=n(34),m=n.n(b),v=n(10),g=n.n(v),_=n(526),y=n.n(_),C=n(534),j=n.n(C),S=n(12),I=n.n(S),R=function(e){var t=e.className,n=e.compact,r=e.displayAsLink,i=e.highlight,o=e.href,a=e.onClick;return y()("card",t,{"is-card-link":r||!!o,"is-clickable":!!a,"is-compact":n,"is-highlight":i},!!i&&"is-"+i)},T=function(e){function t(){return s()(this,t),f()(this,h()(t).apply(this,arguments))}return O()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=(e.compact,e.displayAsLink),r=(e.highlight,e.tagName),o=e.href,c=e.target,s=a()(e,["children","compact","displayAsLink","highlight","tagName","href","target"]);return o?g.a.createElement("a",i()({},s,{href:o,target:c,className:R(this.props)}),g.a.createElement(j.a,{className:"card__link-indicator",icon:c?"external":"chevron-right"}),t):g.a.createElement(r,i()({},s,{className:R(this.props)}),n&&g.a.createElement(j.a,{className:"card__link-indicator",icon:c?"external":"chevron-right"}),t)}}]),t}(v.PureComponent);m()(T,"propTypes",{className:I.a.string,displayAsLink:I.a.bool,href:I.a.string,tagName:I.a.oneOfType([I.a.func,I.a.string]).isRequired,target:I.a.string,compact:I.a.bool,highlight:I.a.oneOf([!1,"error","info","success","warning"])}),m()(T,"defaultProps",{tagName:"div",highlight:!1}),t.a=T},560:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o});var r=function(){return{}},i=function(){return""},o=function(){return!0}},561:function(e,t,n){"use strict";var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),l=n.n(u),d=n(531),f=n.n(d),p=n(529),h=n.n(p),E=n(34),O=n.n(E),b=n(12),m=n.n(b),v=n(10),g=n.n(v),_=n(526),y=n.n(_),C=n(1),j=n(35),S=n(534),I=n.n(S),R=n(576),T=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=s()(this,(e=l()(t)).call.apply(e,[this].concat(o))),O()(f()(n),"dismissTimeout",null),n}return h()(t,e),a()(t,[{key:"componentDidMount",value:function(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}},{key:"componentWillUnmount",value:function(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)}},{key:"componentDidUpdate",value:function(){clearTimeout(this.dismissTimeout),this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}},{key:"getIcon",value:function(){var e;switch(this.props.status){case"is-info":e="info";break;case"is-success":e="checkmark";break;case"is-error":case"is-warning":e="notice";break;default:e="info"}return e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.icon,i=e.isCompact,o=e.isLoading,a=e.onDismissClick,c=e.showDismiss,s=void 0===c?!i:c,u=e.status,l=e.text,d=e.translate,f=y()("notice",u,n,{"is-compact":i,"is-loading":o,"is-dismissable":s});return g.a.createElement("div",{className:f},g.a.createElement("span",{className:"notice__icon-wrapper"},g.a.createElement(I.a,{className:"notice__icon",icon:r||this.getIcon(),size:24})),g.a.createElement("span",{className:"notice__content"},g.a.createElement("span",{className:"notice__text"},l||t)),l?t:null,s&&g.a.createElement("span",{tabIndex:"0",className:"notice__dismiss",onClick:a},g.a.createElement(I.a,{icon:"cross",size:24}),g.a.createElement(R.a,null,d("Dismiss"))))}}]),t}(v.Component);O()(T,"defaultProps",{className:"",duration:0,icon:null,isCompact:!1,isLoading:!1,onDismissClick:C.noop,status:null,text:null}),O()(T,"propTypes",{className:m.a.string,duration:m.a.number,icon:m.a.string,isCompact:m.a.bool,isLoading:m.a.bool,onDismissClick:m.a.func,showDismiss:m.a.bool,status:m.a.oneOf(["is-error","is-info","is-success","is-warning","is-plain"]),text:m.a.oneOfType([m.a.arrayOf(m.a.oneOfType([m.a.string,m.a.node])),m.a.oneOfType([m.a.string,m.a.node])]),translate:m.a.func.isRequired}),t.a=Object(j.localize)(T)},562:function(e,t,n){"use strict";var r=n(75);t.a=r.a},563:function(e,t,n){"use strict";var r=n(1);t.a=function(e){return Object(r.isPlainObject)(e)&&(e.isNormalized&&e.selectNormalized&&e.normalized?e.normalized:e.values)||{}}},564:function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"c",function(){return u}),n.d(t,"a",function(){return l}),n.d(t,"e",function(){return f}),n.d(t,"f",function(){return h}),n.d(t,"g",function(){return E}),n.d(t,"i",function(){return O}),n.d(t,"h",function(){return b}),n.d(t,"j",function(){return m}),n.d(t,"d",function(){return v});var r=n(1),i=n(545),o=n(532),a=n(539),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"data","locations"])},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);return Object(r.isArray)(c(e,t))},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);return a.b===c(e,t)},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);return a.a===c(e,t)},d=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=r[e],a=s(t,o);return[a,a&&c(t,o)]}},f=Object(i.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);if(!s(e,t))return[];var n=c(e,t).map(function(e){return Object(r.omit)(e,"countries")});return Object(r.sortBy)(n,"name")},d(0)),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e);if(!s(e,t))return[];var n=Object(r.flatMap)(c(e,t),"countries");return Object(r.sortBy)(n,"name")},h=Object(i.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(o.a)(e);if(!s(e,n))return[];var i=Object(r.find)(c(e,n),{code:t});if(!i)return[];var a=i.countries.map(function(e){return Object(r.omit)(e,"states")});return Object(r.sortBy)(a,"name")},d(1)),E=Object(i.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(o.a)(e);if(!s(e,n))return t;var i=Object(r.find)(Object(r.flatMap)(c(e,n),"countries"),{code:t});return i?i.name:t},d(1)),O=Object(i.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(o.a)(e);if(!s(e,n))return[];var i=Object(r.find)(Object(r.flatMap)(c(e,n),"countries"),{code:t});return i?Object(r.sortBy)(i.states,"name"):[]},d(1)),b=Object(i.a)(function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(o.a)(e);if(!s(e,i))return n;var a=Object(r.find)(Object(r.flatMap)(c(e,i),"countries"),{code:t});if(!a)return n;var u=Object(r.find)(a.states,{code:n});return u?u.name:n},d(2)),m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(o.a)(e);return!Object(r.isEmpty)(O(e,t,n))},v=Object(i.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(o.a)(e),n=p(e,t),r={};return n.forEach(function(e){var t=e.code,n=e.name;return r[t]=n}),r},d(0))},565:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i});var r=function(){return!0},i=function(){return!0}},566:function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"e",function(){return u}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return d});var r=n(543),i=n(538),o=n(544),a=function(e,t,n){return{type:i.e,siteId:e,key:t,value:n}},c=function(e,t,n){return{type:i.f,siteId:e,key:t,value:n}},s=function(e){return function(t){t(c(e,"isFetching",!0)),r.b(e,r.d.accountSettings).then(function(n){var r=n.storeOptions,o=n.formMeta,a=n.formData,c=n.userMeta;t(function(e,t,n,r,o){return{type:i.b,siteId:e,storeOptions:t,formData:n,formMeta:r,userMeta:o}}(e,r,a,o,c))}).catch(function(n){t(c(e,"isFetchError",!0)),console.error(n)}).then(function(){return t(c(e,"isFetching",!1))})}},u=function(e,t,n){return function(i,a){i(c(e,"isSaving",!0)),i(c(e,"pristine",!0)),r.c(e,r.d.accountSettings,Object(o.f)(a())).then(t).catch(function(t){return i(c(e,"pristine",!1)),n(t)}).then(function(){i(c(e,"isSaving",!1))})}},l=function(e){return{type:i.d,siteId:e}},d=function(e){return{type:i.c,siteId:e}}},567:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return u});var r=n(1),i=n(532),o=n(539),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",t,"shippingMethodSchemas"],{})},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return Object(r.isObject)(a(e,n)[t])},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return c(e,t,n)?a(e,n)[t]:null},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return o.b===a(e,n)[t]}},574:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"c",function(){return a});var r=["US","PR","VI","GU","AS","UM","MH","FM","MP"],i=["US","PR","VI"],o=["AA","AE","AP"],a=["IR","SY","KP","CU","SD"]},575:function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return d});var r=n(1),i=n(532),o=n(584),a=n(539),c=n(565),s=n(585),u=function(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"shippingZoneMethods"])}(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e));return Object(r.isObject)(n)?n[t]:null},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e),a=Object(o.b)(e,n);if(!Object(r.isArray)(a))return!1;var l=Object(r.find)(a,{id:t});if(!l||!Object(r.isArray)(l.methodIds))return!1;if(!Object(c.a)(e,n))return!0;var d=l.methodIds.map(function(t){var i=u(e,t,n);return i&&Object(r.startsWith)(i.methodType,"wc_services")?i:null}).filter(Boolean);return Object(r.every)(d,function(t){var r=t.id;return Object(s.a)(e,r,n)})},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e),l=Object(o.b)(e,n);if(!Object(r.isArray)(l))return!1;var d=Object(r.find)(l,{id:t});if(!d)return!1;if(a.b===d.methodIds)return!0;if(!Object(c.a)(e,n)||!Object(r.isArray)(d.methodIds))return!1;var f=d.methodIds.map(function(t){var i=u(e,t,n);return i&&Object(r.startsWith)(i.methodType,"wc_services")?i:null}).filter(Boolean);return Object(r.some)(f,function(t){var r=t.id;return Object(s.b)(e,r,n)})}},576:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(10),i=n.n(r);n(593);function o(e){var t=e.children;return i.a.createElement("span",{className:"screen-reader-text"},t)}},577:function(e,t,n){"use strict";var r=n(10),i=n.n(r),o=n(12),a=n.n(o),c=n(546),s=n(547),u=n(557),l=n(550),d=n(558),f=function(e){var t=e.id,n=e.title,o=e.description,a=e.value,f=e.placeholder,p=e.updateValue,h=e.error,E=e.className,O=e.defaultValue,b=Object(r.useCallback)(function(e){return p(e.target.value,e)},[p]);return i.a.createElement(c.a,{className:E},i.a.createElement(s.a,{htmlFor:t},n),i.a.createElement(u.a,{id:t,name:t,placeholder:f,value:a,onChange:b,isError:Boolean(h),defaultValue:O}),h&&"string"===typeof h&&i.a.createElement(l.a,{text:h}),!h&&o&&i.a.createElement(d.a,null,o))};f.propTypes={id:a.a.string.isRequired,title:a.a.node,description:a.a.string,value:a.a.string,defaultValue:a.a.string,updateValue:a.a.func,error:a.a.oneOfType([a.a.string,a.a.bool]),className:a.a.string},t.a=f},579:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(107),s=n.n(c),u=n(108),l=n.n(u),d=n(528),f=n.n(d),p=n(527),h=n.n(p),E=n(529),O=n.n(E),b=n(34),m=n.n(b),v=n(10),g=n.n(v),_=n(526),y=n.n(_),C=function(e){function t(){return s()(this,t),f()(this,h()(t).apply(this,arguments))}return O()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,t=e.inputRef,n=e.className,r=e.isError,o=a()(e,["inputRef","className","isError"]),c=y()(n,"form-select",{"is-error":r});return g.a.createElement("select",i()({},o,{ref:t,className:c}),this.props.children)}}]),t}(g.a.Component);m()(C,"defaultProps",{isError:!1}),t.a=C},584:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return s});var r=n(1),i=n(532),o=(n(539),n(575)),a=n(611),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"shippingZones"])},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e),n=c(e,t);return Object(r.isArray)(n)&&Object(r.every)(n,function(n){return Object(o.a)(e,n.id,t)})&&Object(r.every)(n,function(n){return Object(a.a)(e,n.id,t)})}},585:function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return s});var r=n(1),i=n(532),o=n(539),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","woocommerceServices",t,"shippingZoneMethodSettings"],{})},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return!0===a(e,n)[t]},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return o.b===a(e,n)[t]}},587:function(e,t,n){"use strict";var r=n(10),i=n.n(r),o=n(12),a=n.n(o),c=n(526),s=n.n(c),u=n(554),l=n(549),d=function(e){var t=e.heading,n=e.children;return i.a.createElement(u.a,{className:"settings-group-card"},t&&i.a.createElement(l.a,{className:"settings-group-card__heading"},t),i.a.createElement("div",{className:s()("settings-group-card__content",{"is-full-width":!t})},n))};d.propTypes={heading:a.a.node},t.a=d},589:function(e,t,n){"use strict";var r=n(47),i=n.n(r),o=n(1),a=n(115),c=i()("calypso:notices");c("initializing notices");var s,u={containerNames:{}};s=u,Object(o.assign)(s,a.EventEmitter.prototype),s.emitChange=function(){this.emit("change")},s.off=s.removeListener;var l=[],d={new:function(e,t,n){var r=t.overlay?"overlay-notices":"notices";u.containerNames[r]=r,c("creating notice",e,t,n),u[r]=[];var i={type:t.type||"message",status:n,text:e,duration:t.duration,container:r,button:t.button,href:t.href,onClick:function(e){if("function"===typeof t.onClick){var n=d.removeNotice.bind(d,i);return t.onClick(e,n)}},onRemoveCallback:t.onRemoveCallback||function(){},arrow:t.arrow,isCompact:t.isCompact,showDismiss:t.showDismiss,persistent:t.persistent};return t.displayOnNextPage?l.push(i):u[r].push(i),u.emit("change"),i},success:function(e,t){return t=t||{},this.new(e,t,"is-success")},error:function(e,t){return t=t||{},this.new(e,t,"is-error")},info:function(e,t){return t=t||{},this.new(e,t,"is-info")},warning:function(e,t){return t=t||{},this.new(e,t,"is-warning")},list:u,removeNotice:function(e){if(e.container){var t=u[e.container],n=t.indexOf(e);-1!==n&&(t.splice(n,1),u.emit("change"))}},clearNoticesOnNavigation:function(e,t){c("clearNoticesOnNavigation");var n=!1,r=function(e){return e.persistent};for(var i in u.containerNames){var o=u[i].length;u[i]=u[i].filter(r),o!==u[i].length&&(n=!0)}l.length&&(l.forEach(function(e){u[e.container]=[],u[e.container].push(e)}),l=[]),n&&u.emit("change"),t()},clearNotices:function(e){u[e]=[],u.emit("change")},getStatusHelper:function(e){return e.error?"is-error":e.warning?"is-warning":e.info?"is-info":e.success?"is-success":void 0}};t.a=d},591:function(e,t,n){"use strict";var r,i=n(34),o=n.n(i),a=n(36),c=n.n(a),s=n(1),u=n(46),l=Object(u.b)({},(r={},o()(r,"NOTICE_CREATE",function(e,t){var n=t.notice;return c()({},e,o()({},n.noticeId,n))}),o()(r,"NOTICE_REMOVE",function(e,t){var n=t.noticeId;return e.hasOwnProperty(n)?Object(s.omit)(e,n):e}),o()(r,"ROUTE_SET",function(e){return Object(s.reduce)(e,function(e,t,n){if(!t.isPersistent&&!t.displayOnNextPage)return e;var r=t;return r.displayOnNextPage&&(r=c()({},r,{displayOnNextPage:!1})),e[n]=r,e},{})}),r)),d=Object(u.b)({},o()({},"NOTICE_CREATE",function(e,t){var n=t.notice;return c()({},e,o()({},n.noticeId,Date.now()))}));t.a=Object(u.a)({items:l,lastTimeShown:d})},592:function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return c}),n.d(t,"c",function(){return s});var r=n(535);function i(e){return{type:r.d,actionList:e}}function o(){return{type:r.b}}function a(e){return{type:r.a,actionList:e}}function c(e){return{type:r.e,actionList:e}}function s(e,t){return{type:r.c,actionList:e,error:t}}},593:function(e,t,n){},594:function(e,t,n){"use strict";var r=n(659),i=["a","strong","em","u","tt","s"],o=["target","href"];t.a=function(e){return{__html:Object(r.sanitize)(e,{ALLOWED_TAGS:i,ALLOWED_ATTR:o})}}},599:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(10),a=n.n(o),c=n(12),s=n.n(c),u=n(526),l=n.n(u),d=n(534),f=n.n(d),p=n(1),h=function(e){var t=e.className,n=e.disabled,r=e.checked,o=e.partialChecked,c=Object(p.omit)(e,["className","partialChecked"]);return a.a.createElement("span",{className:l()(t,"form-checkbox",{"is-disabled":n})},a.a.createElement("input",i()({},c,{type:"checkbox"})),r&&a.a.createElement(f.a,{icon:"checkmark",size:14}),!r&&o&&a.a.createElement(f.a,{icon:"minus-small",size:16}))};h.propTypes={checked:s.a.bool.isRequired,partialChecked:s.a.bool,onChange:s.a.func.isRequired,className:s.a.string},t.a=h},600:function(e,t,n){"use strict";var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),l=n.n(u),d=n(531),f=n.n(d),p=n(529),h=n.n(p),E=n(34),O=n.n(E),b=n(12),m=n.n(b),v=n(10),g=n.n(v),_=n(526),y=n.n(_),C=n(35),j=n(1),S=n(559),I=n(554),R=n(534),T=n.n(R),N=n(576),M=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=s()(this,(e=l()(t)).call.apply(e,[this].concat(o))),O()(f()(n),"state",{expanded:n.props.expanded}),O()(f()(n),"onClick",function(){n.props.children&&n.setState({expanded:!n.state.expanded}),n.props.onClick&&n.props.onClick(),n.state.expanded?n.props.onClose(n.props.cardKey):n.props.onOpen(n.props.cardKey)}),n}return h()(t,e),a()(t,[{key:"componentWillReceiveProps",value:function(e){e.expanded!==this.props.expanded&&this.setState({expanded:e.expanded})}},{key:"getClickAction",value:function(){if(!this.props.disabled)return this.onClick}},{key:"getActionButton",value:function(){return this.state.expanded&&this.props.actionButtonExpanded||this.props.actionButton}},{key:"renderActionButton",value:function(){var e=this.props.clickableHeader?null:this.getClickAction();if(this.props.actionButton)return g.a.createElement("div",{className:"foldable-card__action",onClick:e},this.getActionButton());if(this.props.children){var t=this.props.screenReaderText||this.props.translate("More");return g.a.createElement("button",{disabled:this.props.disabled,type:"button",className:"foldable-card__action foldable-card__expand",onClick:e},g.a.createElement(N.a,null,t),g.a.createElement(T.a,{icon:this.props.icon,size:24}))}}},{key:"renderContent",value:function(){return g.a.createElement("div",{className:"foldable-card__content"},this.props.children)}},{key:"renderHeader",value:function(){var e=this.props.summary?g.a.createElement("span",{className:"foldable-card__summary"},this.props.summary," "):null,t=this.props.expandedSummary?g.a.createElement("span",{className:"foldable-card__summary-expanded"},this.props.expandedSummary," "):null,n=this.props.clickableHeader?this.getClickAction():null,r=y()("foldable-card__header",{"is-clickable":!!this.props.clickableHeader,"has-border":!!this.props.summary});return g.a.createElement("div",{className:r,onClick:n},g.a.createElement("span",{className:"foldable-card__main"},this.props.header," "),g.a.createElement("span",{className:"foldable-card__secondary"},e,t,this.renderActionButton()))}},{key:"render",value:function(){var e=this.props.compact?I.a:S.a,t=y()("foldable-card",this.props.className,{"is-disabled":!!this.props.disabled,"is-expanded":!!this.state.expanded,"has-expanded-summary":!!this.props.expandedSummary});return g.a.createElement(e,{className:t},this.renderHeader(),this.state.expanded&&this.renderContent())}}]),t}(v.Component);O()(M,"displayName","FoldableCard"),O()(M,"propTypes",{actionButton:m.a.element,actionButtonExpanded:m.a.element,cardKey:m.a.string,compact:m.a.bool,disabled:m.a.bool,expandedSummary:m.a.oneOfType([m.a.string,m.a.element]),expanded:m.a.bool,icon:m.a.string,onClick:m.a.func,onClose:m.a.func,onOpen:m.a.func,screenReaderText:m.a.oneOfType([m.a.string,m.a.bool]),summary:m.a.oneOfType([m.a.string,m.a.element])}),O()(M,"defaultProps",{onOpen:j.noop,onClose:j.noop,cardKey:"",icon:"chevron-down",expanded:!1,screenReaderText:!1}),t.a=Object(C.localize)(M)},609:function(e,t,n){"use strict";n.d(t,"a",function(){return O});var r,i=n(36),o=n.n(i),a=n(533),c=n.n(a),s=n(651),u=n.n(s),l=n(1),d=n(46),f=n(113),p=function(e){return Object(l.get)(e,"meta.dataLayer.data",void 0)},h=function(e){return Object(l.get)(e,"meta.dataLayer.error",void 0)},E=function(e){return Object(l.get)(e,"meta.dataLayer.progress",void 0)},O=(Object(d.d)("meta.dataLayer.requestKey",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(arguments.length>1?arguments[1]:void 0).meta,n=(t=void 0===t?{}:t).dataLayer,r=(n=void 0===n?{}:n).lastUpdated,i=n.pendingSince,a=n.status;return Object.assign(o()({},e),{status:a},r&&{lastUpdated:r},i&&{pendingSince:i})}),r=function(e){return function(t,n){if(!0!==Object(l.get)(n,"meta.dataLayer.trackRequest")||E(n))return e(t,n);var r=function(e){var t=e.meta,n=c()(e,["meta"]),r=Object(l.get)(t,"dataLayer.requestKey");return r||u()(n)}(n),i=function(e){return void 0!==h(e)?"failure":void 0!==p(e)?"success":"pending"}(n),a=Object.assign({requestKey:r,status:i},"pending"===i?{pendingSince:Date.now()}:{lastUpdated:Date.now()});e(o()({},t,{dispatch:function(e){return t.dispatch(Object(l.merge)(e,{meta:{dataLayer:a}}))}}),n)}},function(e){return e.fetch||Object(f.a)("fetch handler is not defined: no request will ever be issued"),e.onSuccess||Object(f.a)("onSuccess handler is not defined: response to the request is being ignored"),e.onError||Object(f.a)("onError handler is not defined: error during the request is being ignored"),r(function(t,n){var r=function(e,t){var n=e.fetch,r=void 0===n?l.noop:n,i=e.onSuccess,o=void 0===i?l.noop:i,a=e.onError,c=void 0===a?l.noop:a,s=e.onProgress,u=void 0===s?l.noop:s,d=e.fromApi,f=void 0===d?l.identity:d,O=h(t);if(O)return c(t,O);var b=p(t);if(b)try{return o(t,f(b))}catch(v){return c(t,v)}var m=E(t);return m?u(t,m):r(t)}(e,n);if(r)return Array.isArray(r)?r.map(t.dispatch):t.dispatch(r)})})},610:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(1),i=function(e,t){return Object(r.isArray)(e)?e.concat(t):void 0},o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>1?r.mergeWith.apply(void 0,[Object.create(null)].concat(t,[i])):t[0]}},611:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return s});var r=n(1),i=n(532),o=n(539),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(i.a)(e);return Object(r.get)(e,["extensions","woocommerce","sites",t,"shippingZoneLocations"])},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e),o=a(e,n);return o&&Object(r.isObject)(o[t])},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)(e);return a(e,n)&&o.b===a(e,n)[t]}},612:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(543),i=n(556),o=n(538),a=n(585),c=function(e,t,n){return function(c,s){if(!Object(a.a)(s(),n,e)&&!Object(a.b)(s(),n,e)){var u={type:o.Pb,instanceId:n,siteId:e};return c(u),r.b(e,r.d.serviceSettings(t,n)).then(function(t){return c(function(e,t,n){return{type:o.Qb,siteId:e,instanceId:t,data:n}}(e,n,t))}).catch(function(t){return c(Object(i.a)(e,u,t))})}}}},613:function(e,t,n){"use strict";t.a=function(e,t){return function e(t,n,r){if(void 0===n||null===n||!t)return n;switch((t=function(e,t){if(e.$ref){var n=e.$ref.match(/^#\/definitions\/(.+)/);n&&t[n[1]]&&(e=t[n[1]])}return e}(t,r)).type){case"number":if(""===n)return;return isNaN(n)?n:parseFloat(n);case"boolean":return-1!==["true","True","TRUE","1",1,!0].indexOf(n)||-1===["false","False","FALSE","0",0,!1].indexOf(n)&&void 0;case"string":return n?n.toString():"";case"object":var i={};return Object.keys(n).forEach(function(o){var a=(t.properties||{})[o];i[o]=e(a,n[o],r)}),i;case"array":return n.map(function(n){return e(t.items,n,r)});default:return n}}({type:"object",properties:e.properties},t,e.definitions)}},619:function(e,t,n){var r={"./af":[392,3],"./af.js":[392,3],"./ar":[399,4],"./ar-dz":[393,5],"./ar-dz.js":[393,5],"./ar-kw":[394,6],"./ar-kw.js":[394,6],"./ar-ly":[395,7],"./ar-ly.js":[395,7],"./ar-ma":[396,8],"./ar-ma.js":[396,8],"./ar-sa":[397,9],"./ar-sa.js":[397,9],"./ar-tn":[398,10],"./ar-tn.js":[398,10],"./ar.js":[399,4],"./az":[400,11],"./az.js":[400,11],"./be":[401,12],"./be.js":[401,12],"./bg":[402,13],"./bg.js":[402,13],"./bm":[403,14],"./bm.js":[403,14],"./bn":[404,15],"./bn.js":[404,15],"./bo":[405,16],"./bo.js":[405,16],"./br":[406,17],"./br.js":[406,17],"./bs":[407,18],"./bs.js":[407,18],"./ca":[408,19],"./ca.js":[408,19],"./cs":[409,20],"./cs.js":[409,20],"./cv":[410,21],"./cv.js":[410,21],"./cy":[411,22],"./cy.js":[411,22],"./da":[412,23],"./da.js":[412,23],"./de":[415,24],"./de-at":[413,25],"./de-at.js":[413,25],"./de-ch":[414,26],"./de-ch.js":[414,26],"./de.js":[415,24],"./dv":[416,27],"./dv.js":[416,27],"./el":[417,28],"./el.js":[417,28],"./en-au":[418,29],"./en-au.js":[418,29],"./en-ca":[419,30],"./en-ca.js":[419,30],"./en-gb":[420,31],"./en-gb.js":[420,31],"./en-ie":[421,32],"./en-ie.js":[421,32],"./en-il":[422,33],"./en-il.js":[422,33],"./en-in":[423,34],"./en-in.js":[423,34],"./en-nz":[424,35],"./en-nz.js":[424,35],"./en-sg":[425,36],"./en-sg.js":[425,36],"./eo":[426,37],"./eo.js":[426,37],"./es":[429,38],"./es-do":[427,39],"./es-do.js":[427,39],"./es-us":[428,40],"./es-us.js":[428,40],"./es.js":[429,38],"./et":[430,41],"./et.js":[430,41],"./eu":[431,42],"./eu.js":[431,42],"./fa":[432,43],"./fa.js":[432,43],"./fi":[433,44],"./fi.js":[433,44],"./fil":[434,45],"./fil.js":[434,45],"./fo":[435,46],"./fo.js":[435,46],"./fr":[438,47],"./fr-ca":[436,48],"./fr-ca.js":[436,48],"./fr-ch":[437,49],"./fr-ch.js":[437,49],"./fr.js":[438,47],"./fy":[439,50],"./fy.js":[439,50],"./ga":[440,51],"./ga.js":[440,51],"./gd":[441,52],"./gd.js":[441,52],"./gl":[442,53],"./gl.js":[442,53],"./gom-deva":[443,54],"./gom-deva.js":[443,54],"./gom-latn":[444,55],"./gom-latn.js":[444,55],"./gu":[445,56],"./gu.js":[445,56],"./he":[446,57],"./he.js":[446,57],"./hi":[447,58],"./hi.js":[447,58],"./hr":[448,59],"./hr.js":[448,59],"./hu":[449,60],"./hu.js":[449,60],"./hy-am":[450,61],"./hy-am.js":[450,61],"./id":[451,62],"./id.js":[451,62],"./is":[452,63],"./is.js":[452,63],"./it":[454,64],"./it-ch":[453,65],"./it-ch.js":[453,65],"./it.js":[454,64],"./ja":[455,66],"./ja.js":[455,66],"./jv":[456,67],"./jv.js":[456,67],"./ka":[457,68],"./ka.js":[457,68],"./kk":[458,69],"./kk.js":[458,69],"./km":[459,70],"./km.js":[459,70],"./kn":[460,71],"./kn.js":[460,71],"./ko":[461,72],"./ko.js":[461,72],"./ku":[462,73],"./ku.js":[462,73],"./ky":[463,74],"./ky.js":[463,74],"./lb":[464,75],"./lb.js":[464,75],"./lo":[465,76],"./lo.js":[465,76],"./lt":[466,77],"./lt.js":[466,77],"./lv":[467,78],"./lv.js":[467,78],"./me":[468,79],"./me.js":[468,79],"./mi":[469,80],"./mi.js":[469,80],"./mk":[470,81],"./mk.js":[470,81],"./ml":[471,82],"./ml.js":[471,82],"./mn":[472,83],"./mn.js":[472,83],"./mr":[473,84],"./mr.js":[473,84],"./ms":[475,85],"./ms-my":[474,86],"./ms-my.js":[474,86],"./ms.js":[475,85],"./mt":[476,87],"./mt.js":[476,87],"./my":[477,88],"./my.js":[477,88],"./nb":[478,89],"./nb.js":[478,89],"./ne":[479,90],"./ne.js":[479,90],"./nl":[481,91],"./nl-be":[480,92],"./nl-be.js":[480,92],"./nl.js":[481,91],"./nn":[482,93],"./nn.js":[482,93],"./oc-lnc":[483,94],"./oc-lnc.js":[483,94],"./pa-in":[484,95],"./pa-in.js":[484,95],"./pl":[485,96],"./pl.js":[485,96],"./pt":[487,97],"./pt-br":[486,98],"./pt-br.js":[486,98],"./pt.js":[487,97],"./ro":[488,99],"./ro.js":[488,99],"./ru":[489,100],"./ru.js":[489,100],"./sd":[490,101],"./sd.js":[490,101],"./se":[491,102],"./se.js":[491,102],"./si":[492,103],"./si.js":[492,103],"./sk":[493,104],"./sk.js":[493,104],"./sl":[494,105],"./sl.js":[494,105],"./sq":[495,106],"./sq.js":[495,106],"./sr":[497,107],"./sr-cyrl":[496,108],"./sr-cyrl.js":[496,108],"./sr.js":[497,107],"./ss":[498,109],"./ss.js":[498,109],"./sv":[499,110],"./sv.js":[499,110],"./sw":[500,111],"./sw.js":[500,111],"./ta":[501,112],"./ta.js":[501,112],"./te":[502,113],"./te.js":[502,113],"./tet":[503,114],"./tet.js":[503,114],"./tg":[504,115],"./tg.js":[504,115],"./th":[505,116],"./th.js":[505,116],"./tk":[506,117],"./tk.js":[506,117],"./tl-ph":[507,118],"./tl-ph.js":[507,118],"./tlh":[508,119],"./tlh.js":[508,119],"./tr":[509,120],"./tr.js":[509,120],"./tzl":[510,121],"./tzl.js":[510,121],"./tzm":[512,122],"./tzm-latn":[511,123],"./tzm-latn.js":[511,123],"./tzm.js":[512,122],"./ug-cn":[513,124],"./ug-cn.js":[513,124],"./uk":[514,125],"./uk.js":[514,125],"./ur":[515,126],"./ur.js":[515,126],"./uz":[517,127],"./uz-latn":[516,128],"./uz-latn.js":[516,128],"./uz.js":[517,127],"./vi":[518,129],"./vi.js":[518,129],"./x-pseudo":[519,130],"./x-pseudo.js":[519,130],"./yo":[520,131],"./yo.js":[520,131],"./zh-cn":[521,132],"./zh-cn.js":[521,132],"./zh-hk":[522,133],"./zh-hk.js":[522,133],"./zh-mo":[523,134],"./zh-mo.js":[523,134],"./zh-tw":[524,135],"./zh-tw.js":[524,135]};function i(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],i=t[0];return n.e(t[1]).then(function(){return n.t(i,7)})}i.keys=function(){return Object.keys(r)},i.id=619,e.exports=i},620:function(e,t,n){"use strict";(function(e){var n={env:e?"production":"development",wpcom_concierge_schedule_id:1,languages:[],google_adwords_conversion_id:"",google_adwords_conversion_id_jetpack:""},r=function(e){if(e in n)return n[e];throw new Error("config key `"+e+"` does not exist")};r.isEnabled=function(){return!0},t.a=r}).call(this,n(112))},621:function(e,t,n){"use strict";var r=n(10),i=n.n(r),o=n(12),a=n.n(o),c=n(558),s=n(594),u=function(e){var t=e.text;return t?i.a.createElement(c.a,{dangerouslySetInnerHTML:Object(s.a)(t)}):null};u.propTypes={text:a.a.string},t.a=u},628:function(e,t,n){"use strict";n.d(t,"a",function(){return S});var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),l=n.n(u),d=n(531),f=n.n(d),p=n(529),h=n.n(p),E=n(34),O=n.n(E),b=n(77),m=n.n(b),v=n(12),g=n.n(v),_=n(10),y=n.n(_),C=n(109),j=n(634),S=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=s()(this,(e=l()(t)).call.apply(e,[this].concat(o))),O()(f()(n),"renderChildren",function(){var e;e=n.props&&(Object.keys(n.props).length>1||!n.props.children)?y.a.createElement("div",n.props,n.props.children):n.props.children,n.context.store&&(e=y.a.createElement(C.a,{store:n.context.store},y.a.createElement(j.b,null,e))),m.a.render(e,n.container)}),n}return h()(t,e),a()(t,[{key:"componentDidMount",value:function(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()}},{key:"componentDidUpdate",value:function(){this.renderChildren()}},{key:"componentWillUnmount",value:function(){this.container&&(m.a.unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)}},{key:"render",value:function(){return null}}]),t}(y.a.Component);O()(S,"contextTypes",{store:g.a.object})},630:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(164),s=n.n(c),u=n(12),l=n.n(u),d=n(10),f=n.n(d),p=n(561),h=n(640),E=n(526),O=n.n(E);n(658);function b(e){var t=e.id,n=e.className,r=e.children;return f.a.createElement("div",{id:t,className:O()("global-notices",n)},r)}var m=n(589),v=n(47),g=n.n(v)()("calypso:data-observe"),_=n(109),y=n(1),C=n(545),j=Object(C.a)(function(e){return Object(y.values)(e.notices.items)},function(e){return e.notices.items}),S=(Object(C.a)(function(e,t){return e.notices.lastTimeShown[t]||0},function(e){return e.notices.lastTimeShown}),n(548)),I=s()({displayName:"GlobalNotices",mixins:[function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{componentDidMount:function(){t.forEach(function(e){this.props[e]?this.props[e].on("change",this.update):g(e+" is not set.")},this)},componentWillUnmount:function(){t.forEach(function(e){this.props[e]&&this.props[e].off("change",this.update)},this)},componentWillReceiveProps:function(e){t.forEach(function(t){this.props[t]!==e[t]&&(this.props[t]&&this.props[t].off("change",this.update),e[t]&&e[t].on("change",this.update))},this)},update:function(){g("Re-rendering "+this.constructor.displayName+" component."),this.forceUpdate()}}}("notices")],propTypes:{id:l.a.string,notices:l.a.oneOfType([l.a.object,l.a.array]),removeNotice:l.a.func.isRequired,storeNotices:l.a.array.isRequired},getDefaultProps:function(){return{id:"overlay-notices",notices:Object.freeze([])}},removeNoticeStoreNotice:function(e){return function(){e&&m.a.removeNotice(e)}},removeReduxNotice:function(e,t){var n=this;return function(r){t&&t(r),n.props.removeNotice(e)}},render:function(){var e=(this.props.notices[this.props.id]||[]).map(function(e,t){return f.a.createElement(p.a,{key:"notice-old-"+t,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.removeNoticeStoreNotice(e),showDismiss:e.showDismiss},e.button&&f.a.createElement(h.a,{href:e.href,onClick:e.onClick},e.button))},this);return(e=e.concat(this.props.storeNotices.map(function(e){var t=e.button,n=e.href,r=e.noticeId,o=e.onClick,c=e.onDismissClick,s=a()(e,["button","href","noticeId","onClick","onDismissClick"]);return f.a.createElement(p.a,i()({},s,{key:"notice-".concat(r),onDismissClick:this.removeReduxNotice(r,c)}),t&&f.a.createElement(h.a,{href:n,onClick:o},t))},this))).length?f.a.createElement(b,{id:this.props.id},e):null}});t.a=Object(_.b)(function(e){return{storeNotices:j(e)}},{removeNotice:S.c})(I)},632:function(e,t,n){"use strict";var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),l=n.n(u),d=n(531),f=n.n(d),p=n(529),h=n.n(p),E=n(34),O=n.n(E),b=n(12),m=n.n(b),v=n(10),g=n.n(v),_=n(77),y=n.n(_),C=n(109),j=n(47),S=n.n(j),I=n(526),R=n.n(I),T=n(660),N=n.n(T),M=n(1),P=n(628),w=n(76),k=n.n(w),A=n(670),L=n.n(A),x=S()("calypso:popover:util");function D(){var e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,x("viewport: %o",e),e}var W={top:"bottom",bottom:"top",left:"right",right:"left"},V={top:"right",left:"top",bottom:"left",right:"bottom"},H=D();function G(){H=D()}var U=!1,B=function(){if(U)return x("window events already bound");U=!0,x("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",G,!0),window.addEventListener("scroll",G,!0)},F=function(){if(!U)return x("window events are not bound");U=!1,x("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",G,!0),window.removeEventListener("scroll",G,!0)},z=function(e,t,n){var r=L()(n),i=t.clientHeight,o=t.clientWidth,a={top:r.top-i,bottom:H.height-r.bottom-i,left:r.left-o,right:H.width-r.right-o},c=e.split(/\s+/),s=k()(c,1)[0],u=k()(c,2)[1],l=function(e,t){for(var n,r=[e,W[e],V[e],W[V[e]]],i=-1/0,o=0,a=r.length;o<a;o++){var c=r[o],s=t[c];if(s>0)return c;s>i&&(i=s,n=e)}return n}(s,a);return u!==l&&u!==W[l]||(u=null),function(e,t,n,r,i,o){for(var a,c="top"===e||"bottom"===e,s=t?[c?"".concat(e," ").concat(t):"".concat(t," ").concat(e),e,c?"".concat(e," ").concat(W[t]):"".concat(W[t]," ").concat(e)]:[e,c?"".concat(e," ").concat(V[e]):"".concat(V[e]," ").concat(e),c?"".concat(e," ").concat(W[V[e]]):"".concat(W[V[e]]," ").concat(e)],u=0,l=i*o,d=0,f=s.length;d<f;d++){var p=s[d],h=q(p,n,r),E=h.left+i,O=h.top+o,b=Math.min(h.top<H.top?O-H.top:H.bottom-h.top,o),m=Math.min(h.left<H.left?E-H.left:H.right-h.left,i),v=m*b;if(v===l)return p;v>u&&(u=v,a=p)}return a}(l,u,t,n,o,i)||e};function q(e,t,n,r){var i=L()(t);if(!i)throw new Error("could not get bounding client rect of Tip element");var o=i.width,a=i.height,c=L()(n);if(!c)throw new Error("could not get bounding client rect of `target`");var s=c.width,u=c.height,l=function(e,t){var n=t.body||t.getElementsByTagName("body")[0],r=t.documentElement||n.parentNode,i=r.clientTop||n.clientTop||0,o=r.clientLeft||n.clientLeft||0,a=window.pageYOffset||r.scrollTop,c=window.pageXOffset||r.scrollLeft;return{top:e.top+a-i,left:e.left+c-o}}(c,document);if(!l)throw new Error("could not determine page offset of `target`");var d={};switch(e){case"top":d={top:l.top-a,left:r&&r.left?l.left+r.left:l.left+s/2-o/2};break;case"bottom":d={top:l.top+u,left:r&&r.left?l.left+r.left:l.left+s/2-o/2};break;case"right":d={top:l.top+u/2-a/2,left:l.left+s};break;case"left":d={top:l.top+u/2-a/2,left:l.left-o};break;case"top left":d={top:l.top-a,left:l.left+s/2-o+15};break;case"top right":d={top:l.top-a,left:l.left+s/2-15};break;case"bottom left":d={top:l.top+u,left:l.left+s/2-o+15};break;case"bottom right":d={top:l.top+u,left:l.left+s/2-15};break;case"left top":d={top:l.top+u/2-a,left:l.left-o};break;case"left bottom":d={top:l.top+u/2,left:l.left-o};break;case"right top":d={top:l.top+u/2-a,left:l.left+s};break;case"right bottom":d={top:l.top+u/2,left:l.left+s};break;default:throw new Error('invalid position "'.concat(e,'"'))}return d}var K=function(){},Z=S()("calypso:popover"),Q=new Set,Y=function(e){function t(e){var n;return i()(this,t),n=s()(this,l()(t).call(this,e)),O()(f()(n),"isUpdatingPosition",!1),n.setPopoverId(e.id),n.setDOMBehavior=n.setDOMBehavior.bind(f()(n)),n.setPosition=n.setPosition.bind(f()(n)),n.onClickout=n.onClickout.bind(f()(n)),n.onKeydown=n.onKeydown.bind(f()(n)),n.onWindowChange=n.onWindowChange.bind(f()(n)),n.state={show:e.isVisible,left:-99999,top:-99999,positionClass:n.getPositionClass(e.position)},n}return h()(t,e),a()(t,[{key:"componentDidMount",value:function(){this.state.show&&(this.bindEscKeyListener(),this.bindDebouncedReposition(),B())}},{key:"componentWillReceiveProps",value:function(e){if(this.domContext=y.a.findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props.isVisible;return!t.show&&this.state.show&&(this.bindEscKeyListener(),this.bindDebouncedReposition(),B()),r!==e.isVisible&&(r?this.show():this.hide()),this.domContainer&&this.domContext&&r?void(this.isUpdatingPosition||(this.debug("requesting to update position after render completes"),requestAnimationFrame(function(){Q.has(n.id)&&n.domContainer&&n.domContext&&r?(n.setPosition(),n.isUpdatingPosition=!1):n.isUpdatingPosition=!1}),this.isUpdatingPosition=!0)):null}},{key:"componentWillUnmount",value:function(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),F(),Q.delete(this.id),Z("current popover instances: ",Q.size)}},{key:"bindEscKeyListener",value:function(){if(!this.props.closeOnEsc)return null;this.debug("adding escKey listener ..."),document.addEventListener("keydown",this.onKeydown,!0)}},{key:"unbindEscKeyListener",value:function(){if(!this.props.closeOnEsc)return null;this.debug("unbinding `escKey` listener ..."),document.removeEventListener("keydown",this.onKeydown,!0)}},{key:"onKeydown",value:function(e){if(27!==e.keyCode)return null;this.close(!0)}},{key:"bindClickoutHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),void(this._clickoutHandlerReference=N()(e,this.onClickout))):(this.debug("no element to bind clickout "),null)}},{key:"unbindClickoutHandler",value:function(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),this._clickoutHandlerReference(),this._clickoutHandlerReference=null)}},{key:"onClickout",value:function(e){var t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){var n=y.a.findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}},{key:"bindDebouncedReposition",value:function(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}},{key:"unbindDebouncedReposition",value:function(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}},{key:"onWindowChange",value:function(){this.willReposition=window.requestAnimationFrame(this.setPosition)}},{key:"setDOMBehavior",value:function(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,this.domContext=y.a.findDOMNode(this.props.context),this.setPosition()}},{key:"getPositionClass",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position;return"is-".concat(e.replace(/\s+/g,"-"))}},{key:"adjustRtlPosition",value:function(e){if(this.props.isRtl)switch(e){case"top right":case"right top":return"top left";case"right":return"left";case"bottom right":case"right bottom":return"bottom left";case"bottom left":case"left bottom":return"bottom right";case"left":return"right";case"top left":case"left top":return"top right"}return e}},{key:"computePosition",value:function(){if(!this.props.isVisible)return null;var e=this.domContainer,t=this.domContext,n=this.props,r=n.position,i=n.relativePosition;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;var o=r;this.debug("position: %o",o),this.props.autoRtl&&(o=this.adjustRtlPosition(o),this.debug("RTL adjusted position: %o",o)),this.props.autoPosition&&(o=z(o,e,t),this.debug("suggested position: %o",o));var a=Object.assign({},function(e,t){var n=L()(t).width;return e.left=Math.max(0,Math.min(e.left,H.width-n)),e}(q(o,e,t,i),e),{positionClass:this.getPositionClass(o)});return this.debug("updating reposition: ",a),a}},{key:"debug",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Z.apply(void 0,["[%s] ".concat(e),this.id].concat(n))}},{key:"setPopoverId",value:function(e){this.id=e||"pop__".concat(Object(M.uniqueId)()),Q.add(this.id),this.debug("creating ..."),Z("current popover instances: ",Q.size)}},{key:"setPosition",value:function(){var e;if(this.debug("updating position"),!(e=this.props.customPosition?Object.assign({positionClass:this.getPositionClass(this.constructor.defaultProps.position)},this.props.customPosition):this.computePosition()))return null;this.willReposition=null,this.setState(e)}},{key:"getStylePosition",value:function(){var e=this.state;return{left:e.left,top:e.top}}},{key:"show",value:function(){var e=this;if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o","".concat(this.props.showDelay,"ms")),this.clearShowTimer(),this._openDelayTimer=setTimeout(function(){e.setState({show:!0})},this.props.showDelay)}},{key:"hide",value:function(){this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),F(),this.setState({show:!1}),this.clearShowTimer()}},{key:"clearShowTimer",value:function(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.props.onClose(e)}},{key:"render",value:function(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;var e=R()("popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),g.a.createElement(P.a,{className:this.props.rootClassName},g.a.createElement("div",{style:this.getStylePosition(),className:e},g.a.createElement("div",{className:"popover__arrow"}),g.a.createElement("div",{ref:this.setDOMBehavior,className:"popover__inner"},this.props.children)))}}]),t}(v.Component);O()(Y,"propTypes",{autoPosition:m.a.bool,autoRtl:m.a.bool,className:m.a.string,closeOnEsc:m.a.bool,id:m.a.string,ignoreContext:m.a.shape({getDOMNode:m.a.function}),isRtl:m.a.bool,isVisible:m.a.bool,position:m.a.oneOf(["top","top right","right","bottom right","bottom","bottom left","left","top left"]),rootClassName:m.a.string,showDelay:m.a.number,onClose:m.a.func,onShow:m.a.func,relativePosition:m.a.shape({left:m.a.number}),customPosition:m.a.shape({top:m.a.number,left:m.a.number,positionClass:m.a.oneOf(["top","right","bottom","left"])})}),O()(Y,"defaultProps",{autoPosition:!0,autoRtl:!0,className:"",closeOnEsc:!0,isRtl:!1,isVisible:!1,position:"top",showDelay:0,onClose:K,onShow:K});t.a=Object(C.b)(function(e){return{isRtl:document.body.classList.contains("rtl")}})(Y)},633:function(e,t,n){"use strict";var r=n(34),i=n.n(r),o=n(110),a=n.n(o),c=n(1),s=n(35),u=n(535),l=n(592),d=n(544),f=n(541),p=n(566),h=n(555),E=n(532),O=n(538);n(562),n(556),n(575),n(612),n(620);var b=n(543),m=n(36),v=n.n(m);function g(e,t,n,r){Object(c.isFunction)(n)?g(e,t,n(e,t,r),r):Object(c.isObject)(n)&&e(v()({},n,r))}var _,y=n(567),C=n(613),j=function(e,t){var n=Object(f.e)(e,t);return!n||n.pristine?[]:[{description:Object(s.translate)("Saving label settings"),onStep:function(e,n){e(Object(h.submit)(t,function(){return e(Object(l.e)(n))},function(){return e(Object(l.c)(n))}))}}]},S=function(e,t){var n=Object(E.a)(e);return t?a()(j(e,n)):[].concat(a()(function(e,t){var n=Object(d.g)(e,t);return!n||n.pristine||!n.can_edit_settings&&n.can_manage_payments?[]:[{description:Object(s.translate)("Saving label settings"),onStep:function(e,n){e(Object(p.e)(t,function(){return e(Object(l.e)(n))},function(){return e(Object(l.c)(n))}))}}]}(e,n)),a()(j(e,n)))};t.a=(_={},i()(_,u.L,[function(e,t){var n=t.successAction,r=t.failureAction,i=t.onlyPackages,o=function(e){e(n),e(Object(l.b)())},a=S(e.getState(),i);e.dispatch(Object(c.isEmpty)(a)?o:Object(l.d)({nextSteps:a,onSuccess:o,onFailure:function(e){e(r),e(Object(l.b)())}}))}]),i()(_,O.Rb,[function(e,t){var n=e.dispatch,r=e.getState,i=t.siteId,o=t.methodId,a=t.methodType,c=t.method,s=t.successAction,l=t.failureAction,d=Object(y.a)(r(),a,i).formSchema,f=Object(C.a)(d,c);b.c(i,b.d.serviceSettings(a,o),f).then(function(e){n(function(e,t,n){return{type:u.Fb,siteId:e,data:t,originatingAction:n}}(i,e,t)),g(n,r,s,{sentData:f,receivedData:e})}).catch(function(e){return g(n,r,l,{error:e})})}]),_)},634:function(e,t,n){"use strict";n.d(t,"b",function(){return w}),n.d(t,"a",function(){return M});var r=n(111),i=n.n(r),o=n(107),a=n.n(o),c=n(108),s=n.n(c),u=n(528),l=n.n(u),d=n(527),f=n.n(d),p=n(531),h=n.n(p),E=n(529),O=n.n(E),b=n(34),m=n.n(b),v=n(10),g=n.n(v),_=n(109),y=n(163),C=n.n(y),j=n(47),S=n.n(j),I=n(1),R=n(545),T=Object(R.a)(function(e){return Object(I.get)(e,"ui.language.localeSlug",null)},function(e){return e.ui.language}),N=S()("calypso:localized-moment"),M=g.a.createContext(C.a),P=function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=l()(this,(e=f()(t)).call.apply(e,[this].concat(i))),m()(h()(n),"state",{moment:C.a,momentLocale:C.a.locale()}),n}return O()(t,e),s()(t,[{key:"checkAndLoad",value:function(){var e=i()(regeneratorRuntime.mark(function e(t){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=this.props.currentLocale)!==t){e.next=3;break}return e.abrupt("return");case 3:if("en"!==r){e.next=7;break}this.loadingLocalePromise=Promise.resolve(),e.next=19;break;case 7:return N("Loading moment locale for %s",r),e.prev=8,this.loadingLocalePromise=n(619)("./".concat(r)),e.next=12,this.loadingLocalePromise;case 12:e.next=18;break;case 14:return e.prev=14,e.t0=e.catch(8),N("Failed to load moment locale for %s",r,e.t0),e.abrupt("return");case 18:N("Loaded moment locale for %s",r);case 19:r===this.props.currentLocale&&(C.a.locale()!==r&&C.a.locale(r),this.setState({momentLocale:r}));case 20:case"end":return e.stop()}},e,this,[[8,14]])}));return function(t){return e.apply(this,arguments)}}()},{key:"componentDidMount",value:function(){this.checkAndLoad(C.a.locale())}},{key:"componentDidUpdate",value:function(e){this.checkAndLoad(e.currentLocale)}},{key:"render",value:function(){return g.a.createElement(M.Provider,{value:this.state},this.props.children)}}]),t}(g.a.Component),w=Object(_.b)(function(e){return{currentLocale:T(e)}})(P)},635:function(e,t,n){"use strict";var r=n(533),i=n.n(r),o=n(75),a=n(46),c=function(e,t,n,r,c,s){var u=Object(o.b)();return s&&!s.endsWith("/")&&(s+="/"),s&&s.startsWith("/")&&(s=s.substr(1)),-1!==u.indexOf("?")&&(t=t.replace("?","&")),Object(a.c)(function(e){var t=e.url,n=e.method,r=e.headers,o=e.queryParams,a=e.body,c=e.withCredentials,s=e.onSuccess,u=e.onFailure,l=i()(e,["url","method","headers","queryParams","body","withCredentials","onSuccess","onFailure"]),d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:"HTTP_REQUEST",url:t,method:n,headers:r,queryParams:o,body:a,withCredentials:c,onSuccess:s||d,onFailure:u||d,options:l}}({url:u+s+t,method:e,headers:[["X-WP-Nonce",Object(o.c)()],["Content-Type","application/json"]],body:r&&JSON.stringify(r),withCredentials:!0},c),{meta:{localApiRequest:!0}})};t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"wc/v1";return{get:function(e){return c("GET",e,0,null,t,n)},getWithHeaders:function(e){return function(e,t,n,r,i,o){return c(e,t+"&_envelope",0,r,i,o)}("GET",e,0,null,t,n)},post:function(e,r){return c("POST",e,0,r||{},t,n)},put:function(e,r){return c("PUT",e,0,r||{},t,n)},del:function(e){return c("DELETE",e,0,null,t,n)}}}},639:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n(36),n(1);function r(e){if(!e.data)throw new Error("Failure at remote site.",e);return e}},640:function(e,t,n){"use strict";n.d(t,"a",function(){return _});var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),l=n.n(u),d=n(529),f=n.n(d),p=n(34),h=n.n(p),E=n(12),O=n.n(E),b=n(10),m=n.n(b),v=n(534),g=n.n(v),_=function(e){function t(){return i()(this,t),s()(this,l()(t).apply(this,arguments))}return f()(t,e),a()(t,[{key:"render",value:function(){var e={className:"notice__action",href:this.props.href,onClick:this.props.onClick};return this.props.external&&(e.target="_blank",e.rel="noopener noreferrer"),m.a.createElement("a",e,m.a.createElement("span",null,this.props.children),this.props.icon&&m.a.createElement(g.a,{icon:this.props.icon,size:24}),this.props.external&&m.a.createElement(g.a,{icon:"external",size:24}))}}]),t}(m.a.Component);h()(_,"displayName","NoticeAction"),h()(_,"propTypes",{href:O.a.string,onClick:O.a.func,external:O.a.bool,icon:O.a.string}),h()(_,"defaultProps",{external:!1})},641:function(e,t,n){"use strict";var r=n(530),i=n.n(r),o=n(533),a=n.n(o),c=n(10),s=n.n(c),u=n(526),l=n.n(u);t.a=function(e){var t=e.className,n=a()(e,["className"]);return s.a.createElement("input",i()({},n,{type:"radio",className:l()(t,"form-radio")}))}},651:function(e,t,n){var r="undefined"!==typeof JSON?JSON:n(652);e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var n=t.space||"";"number"===typeof n&&(n=Array(n+1).join(" "));var a,c="boolean"===typeof t.cycles&&t.cycles,s=t.replacer||function(e,t){return t},u=t.cmp&&(a=t.cmp,function(e){return function(t,n){var r={key:t,value:e[t]},i={key:n,value:e[n]};return a(r,i)}}),l=[];return function e(t,a,d,f){var p=n?"\n"+new Array(f+1).join(n):"",h=n?": ":":";if(d&&d.toJSON&&"function"===typeof d.toJSON&&(d=d.toJSON()),void 0!==(d=s.call(t,a,d))){if("object"!==typeof d||null===d)return r.stringify(d);if(i(d)){for(var E=[],O=0;O<d.length;O++){var b=e(d,O,d[O],f+1)||r.stringify(null);E.push(p+n+b)}return"["+E.join(",")+p+"]"}if(-1!==l.indexOf(d)){if(c)return r.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}l.push(d);var m=o(d).sort(u&&u(d));for(E=[],O=0;O<m.length;O++){var v=e(d,a=m[O],d[a],f+1);if(v){var g=r.stringify(a)+h+v;E.push(p+n+g)}}return l.splice(l.indexOf(d),1),"{"+E.join(",")+p+"}"}}({"":e},"",e,0)};var i=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n}},652:function(e,t,n){t.parse=n(653),t.stringify=n(654)},653:function(e,t){var n,r,i,o,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},c=function(e){throw{name:"SyntaxError",message:e,at:n,text:i}},s=function(e){return e&&e!==r&&c("Expected '"+e+"' instead of '"+r+"'"),r=i.charAt(n),n+=1,r},u=function(){var e,t="";for("-"===r&&(t="-",s("-"));r>="0"&&r<="9";)t+=r,s();if("."===r)for(t+=".";s()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,s(),"-"!==r&&"+"!==r||(t+=r,s());r>="0"&&r<="9";)t+=r,s();if(e=+t,isFinite(e))return e;c("Bad number")},l=function(){var e,t,n,i="";if('"'===r)for(;s();){if('"'===r)return s(),i;if("\\"===r)if(s(),"u"===r){for(n=0,t=0;t<4&&(e=parseInt(s(),16),isFinite(e));t+=1)n=16*n+e;i+=String.fromCharCode(n)}else{if("string"!==typeof a[r])break;i+=a[r]}else i+=r}c("Bad string")},d=function(){for(;r&&r<=" ";)s()};o=function(){switch(d(),r){case"{":return function(){var e,t={};if("{"===r){if(s("{"),d(),"}"===r)return s("}"),t;for(;r;){if(e=l(),d(),s(":"),Object.hasOwnProperty.call(t,e)&&c('Duplicate key "'+e+'"'),t[e]=o(),d(),"}"===r)return s("}"),t;s(","),d()}}c("Bad object")}();case"[":return function(){var e=[];if("["===r){if(s("["),d(),"]"===r)return s("]"),e;for(;r;){if(e.push(o()),d(),"]"===r)return s("]"),e;s(","),d()}}c("Bad array")}();case'"':return l();case"-":return u();default:return r>="0"&&r<="9"?u():function(){switch(r){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}c("Unexpected '"+r+"'")}()}},e.exports=function(e,t){var a;return i=e,n=0,r=" ",a=o(),d(),r&&c("Syntax error"),"function"===typeof t?function e(n,r){var i,o,a=n[r];if(a&&"object"===typeof a)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(void 0!==(o=e(a,i))?a[i]=o:delete a[i]);return t.call(n,r,a)}({"":a},""):a}},654:function(e,t){var n,r,i,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function c(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,function(e){var t=a[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}e.exports=function(e,t,o){var a;if(n="",r="","number"===typeof o)for(a=0;a<o;a+=1)r+=" ";else"string"===typeof o&&(r=o);if(i=t,t&&"function"!==typeof t&&("object"!==typeof t||"number"!==typeof t.length))throw new Error("JSON.stringify");return function e(t,o){var a,s,u,l,d,f=n,p=o[t];switch(p&&"object"===typeof p&&"function"===typeof p.toJSON&&(p=p.toJSON(t)),"function"===typeof i&&(p=i.call(o,t,p)),typeof p){case"string":return c(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(n+=r,d=[],"[object Array]"===Object.prototype.toString.apply(p)){for(l=p.length,a=0;a<l;a+=1)d[a]=e(a,p)||"null";return u=0===d.length?"[]":n?"[\n"+n+d.join(",\n"+n)+"\n"+f+"]":"["+d.join(",")+"]",n=f,u}if(i&&"object"===typeof i)for(l=i.length,a=0;a<l;a+=1)"string"===typeof(s=i[a])&&(u=e(s,p))&&d.push(c(s)+(n?": ":":")+u);else for(s in p)Object.prototype.hasOwnProperty.call(p,s)&&(u=e(s,p))&&d.push(c(s)+(n?": ":":")+u);return u=0===d.length?"{}":n?"{\n"+n+d.join(",\n"+n)+"\n"+f+"}":"{"+d.join(",")+"}",n=f,u}}("",{"":e})}},658:function(e,t,n){},671:function(e,t,n){"use strict";n.d(t,"a",function(){return P});n(530);var r=n(107),i=n.n(r),o=n(108),a=n.n(o),c=n(528),s=n.n(c),u=n(527),l=n.n(u),d=(n(531),n(529)),f=n.n(d),p=n(34),h=n.n(p),E=n(12),O=n.n(E),b=n(10),m=n(47),v=n.n(m),g=(n(672),n(35)),_=n.n(g),y=n(1),C=v()("calypso:protect-form"),j=[],S=0;function I(e){if(j.length){C("unsaved form changes detected");var t=_.a.translate("You have unsaved changes.");return(e||window.event).returnValue=t,t}}function R(){0===S&&window.addEventListener("beforeunload",I),S++}function T(){0===--S&&window.removeEventListener("beforeunload",I)}function N(e){Object(y.includes)(j,e)||j.push(e)}function M(e){j=Object(y.without)(j,e)}var P=function(e){function t(){return i()(this,t),s()(this,l()(t).apply(this,arguments))}return f()(t,e),a()(t,[{key:"componentDidMount",value:function(){R(),this.props.isChanged&&N(this)}},{key:"componentWillUnmount",value:function(){T(),M(this)}},{key:"componentWillReceiveProps",value:function(e){e.isChanged!==this.props.isChanged&&(e.isChanged?N(this):M(this))}},{key:"render",value:function(){return null}}]),t}(b.Component);h()(P,"propTypes",{isChanged:O.a.bool.isRequired})},672:function(e,t,n){(function(t){e.exports=function(){"use strict";var e=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},n=E,r=s,i=function(e){return u(s(e))},o=u,a=h,c=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function s(e){for(var t,n=[],r=0,i=0,o="";null!=(t=c.exec(e));){var a=t[0],s=t[1],u=t.index;if(o+=e.slice(i,u),i=u+a.length,s)o+=s[1];else{o&&(n.push(o),o="");var l=t[2],f=t[3],p=t[4],h=t[5],E=t[6],O=t[7],b="+"===E||"*"===E,m="?"===E||"*"===E,v=l||"/",g=p||h||(O?".*":"[^"+v+"]+?");n.push({name:f||r++,prefix:l||"",delimiter:v,optional:m,repeat:b,pattern:d(g)})}}return i<e.length&&(o+=e.substr(i)),o&&n.push(o),n}function u(t){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"===typeof t[r]&&(n[r]=new RegExp("^"+t[r].pattern+"$"));return function(r){for(var i="",o=r||{},a=0;a<t.length;a++){var c=t[a];if("string"!==typeof c){var s,u=o[c.name];if(null==u){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to be defined')}if(e(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received "'+u+'"');if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var l=0;l<u.length;l++){if(s=encodeURIComponent(u[l]),!n[a].test(s))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received "'+s+'"');i+=(0===l?c.prefix:c.delimiter)+s}}else{if(s=encodeURIComponent(u),!n[a].test(s))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+s+'"');i+=c.prefix+s}}else i+=c}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function d(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function f(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function h(e,t){for(var n=(t=t||{}).strict,r=!1!==t.end,i="",o=e[e.length-1],a="string"===typeof o&&/\/$/.test(o),c=0;c<e.length;c++){var s=e[c];if("string"===typeof s)i+=l(s);else{var u=l(s.prefix),d=s.pattern;s.repeat&&(d+="(?:"+u+d+")*"),d=s.optional?u?"(?:"+u+"("+d+"))?":"("+d+")?":u+"("+d+")",i+=d}}return n||(i=(a?i.slice(0,-2):i)+"(?:\\/(?=$))?"),i+=r?"$":n&&a?"":"(?=\\/|$)",new RegExp("^"+i,p(t))}function E(t,n,r){return e(n=n||[])?r||(r={}):(r=n,n=[]),t 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,pattern:null});return f(e,t)}(t,n):e(t)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(E(e[i],t,n).source);return f(new RegExp("(?:"+r.join("|")+")",p(n)),t)}(t,n,r):function(e,t,n){for(var r=s(e),i=h(r,n),o=0;o<r.length;o++)"string"!==typeof r[o]&&t.push(r[o]);return f(i,t)}(t,n,r)}n.parse=r,n.compile=i,n.tokensToFunction=o,n.tokensToRegExp=a;var O="undefined"!==typeof document,b="undefined"!==typeof history,m="undefined"!==typeof t,v=O&&document.ontouchstart?"touchstart":"click",g=!(!window.history.location&&!window.location);function _(){this.callbacks=[],this.exits=[],this.current="",this.len=0,this._decodeURLComponents=!0,this._base="",this._strict=!1,this._running=!1,this._hashbang=!1,this.clickHandler=this.clickHandler.bind(this),this._onpopstate=this._onpopstate.bind(this)}function y(e,t){if("function"===typeof e)return y.call(this,"*",e);if("function"===typeof t)for(var n=new j(e,null,this),r=1;r<arguments.length;++r)this.callbacks.push(n.middleware(arguments[r]));else"string"===typeof e?this["string"===typeof t?"redirect":"show"](e,t):this.start(e)}function C(e,t,n){var r=this.page=n||y,i=r._window,o=r._hashbang,a=r._getBase();"/"===e[0]&&0!==e.indexOf(a)&&(e=a+(o?"#!":"")+e);var c=e.indexOf("?");this.canonicalPath=e;var s=new RegExp("^"+a.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1"));if(this.path=e.replace(s,"")||"/",o&&(this.path=this.path.replace("#!","")||"/"),this.title=O&&i.document.title,this.state=t||{},this.state.path=e,this.querystring=~c?r._decodeURLEncodedURIComponent(e.slice(c+1)):"",this.pathname=r._decodeURLEncodedURIComponent(~c?e.slice(0,c):e),this.params={},this.hash="",!o){if(!~this.path.indexOf("#"))return;var u=this.path.split("#");this.path=this.pathname=u[0],this.hash=r._decodeURLEncodedURIComponent(u[1])||"",this.querystring=this.querystring.split("#")[0]}}function j(e,t,r){this.page=r||S;var i=t||{};i.strict=i.strict||r._strict,this.path="*"===e?"(.*)":e,this.method="GET",this.regexp=n(this.path,this.keys=[],i)}_.prototype.configure=function(e){var t=e||{};this._window=t.window||window,this._decodeURLComponents=!1!==t.decodeURLComponents,this._popstate=!1!==t.popstate&&!0,this._click=!1!==t.click&&O,this._hashbang=!!t.hashbang;var n=this._window;this._popstate?n.addEventListener("popstate",this._onpopstate,!1):n.removeEventListener("popstate",this._onpopstate,!1),this._click?n.document.addEventListener(v,this.clickHandler,!1):O&&n.document.removeEventListener(v,this.clickHandler,!1),this._hashbang&&!b?n.addEventListener("hashchange",this._onpopstate,!1):n.removeEventListener("hashchange",this._onpopstate,!1)},_.prototype.base=function(e){if(0===arguments.length)return this._base;this._base=e},_.prototype._getBase=function(){var e=this._base;if(e)return e;var t=this._window&&this._window.location;return this._hashbang&&t&&"file:"===t.protocol&&(e=t.pathname),e},_.prototype.strict=function(e){if(0===arguments.length)return this._strict;this._strict=e},_.prototype.start=function(e){var t=e||{};if(this.configure(t),!1!==t.dispatch){var n;if(this._running=!0,g){var r=this._window,i=r.location;n=this._hashbang&&~i.hash.indexOf("#!")?i.hash.substr(2)+i.search:this._hashbang?i.search+i.hash:i.pathname+i.search+i.hash}this.replace(n,null,!0,t.dispatch)}},_.prototype.stop=function(){if(this._running){this.current="",this.len=0,this._running=!1;var e=this._window;this._click&&e.document.removeEventListener(v,this.clickHandler,!1),e.removeEventListener("popstate",this._onpopstate,!1),e.removeEventListener("hashchange",this._onpopstate,!1)}},_.prototype.show=function(e,t,n,r){var i=new C(e,t,this),o=this.prevContext;return this.prevContext=i,this.current=i.path,!1!==n&&this.dispatch(i,o),!1!==i.handled&&!1!==r&&i.pushState(),i},_.prototype.back=function(e,t){var n=this;if(this.len>0){var r=this._window;b&&r.history.back(),this.len--}else e?setTimeout(function(){n.show(e,t)}):setTimeout(function(){n.show(n._getBase(),t)})},_.prototype.redirect=function(e,t){var n=this;"string"===typeof e&&"string"===typeof t&&y.call(this,e,function(e){setTimeout(function(){n.replace(t)},0)}),"string"===typeof e&&"undefined"===typeof t&&setTimeout(function(){n.replace(e)},0)},_.prototype.replace=function(e,t,n,r){var i=new C(e,t,this),o=this.prevContext;return this.prevContext=i,this.current=i.path,i.init=n,i.save(),!1!==r&&this.dispatch(i,o),i},_.prototype.dispatch=function(e,t){var n=0,r=0,i=this;function o(){var t=i.callbacks[n++];if(e.path===i.current)return t?void t(e,o):function(e){if(!e.handled){var t=this._window;(this._hashbang?g&&this._getBase()+t.location.hash.replace("#!",""):g&&t.location.pathname+t.location.search)!==e.canonicalPath&&(this.stop(),e.handled=!1,g&&(t.location.href=e.canonicalPath))}}.call(i,e);e.handled=!1}t?function e(){var n=i.exits[r++];if(!n)return o();n(t,e)}():o()},_.prototype.exit=function(e,t){if("function"===typeof e)return this.exit("*",e);for(var n=new j(e,null,this),r=1;r<arguments.length;++r)this.exits.push(n.middleware(arguments[r]))},_.prototype.clickHandler=function(e){if(1===this._which(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented){var t=e.target,n=e.path||(e.composedPath?e.composedPath():null);if(n)for(var r=0;r<n.length;r++)if(n[r].nodeName&&"A"===n[r].nodeName.toUpperCase()&&n[r].href){t=n[r];break}for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;if(t&&"A"===t.nodeName.toUpperCase()){var i="object"===typeof t.href&&"SVGAnimatedString"===t.href.constructor.name;if(!t.hasAttribute("download")&&"external"!==t.getAttribute("rel")){var o=t.getAttribute("href");if((this._hashbang||!this._samePath(t)||!t.hash&&"#"!==o)&&!(o&&o.indexOf("mailto:")>-1)&&(i?!t.target.baseVal:!t.target)&&(i||this.sameOrigin(t.href))){var a=i?t.href.baseVal:t.pathname+t.search+(t.hash||"");a="/"!==a[0]?"/"+a:a,m&&a.match(/^\/[a-zA-Z]:\//)&&(a=a.replace(/^\/[a-zA-Z]:\//,"/"));var c=a,s=this._getBase();0===a.indexOf(s)&&(a=a.substr(s.length)),this._hashbang&&(a=a.replace("#!","")),(!s||c!==a||g&&"file:"===this._window.location.protocol)&&(e.preventDefault(),this.show(c))}}}}},_.prototype._onpopstate=function(){var e=!1;return O&&"complete"===document.readyState?e=!0:window.addEventListener("load",function(){setTimeout(function(){e=!0},0)}),function(t){if(e)if(t.state){var n=t.state.path;this.replace(n,t.state)}else if(g){var r=this._window.location;this.show(r.pathname+r.search+r.hash,void 0,void 0,!1)}}}(),_.prototype._which=function(e){return null==(e=e||this._window.event).which?e.button:e.which},_.prototype._toURL=function(e){var t=this._window;if("function"===typeof URL&&g)return new URL(e,t.location.toString());if(O){var n=t.document.createElement("a");return n.href=e,n}},_.prototype.sameOrigin=function(e){if(!e||!g)return!1;var t=this._toURL(e),n=this._window,r=n.location;return r.protocol===t.protocol&&r.hostname===t.hostname&&r.port===t.port},_.prototype._samePath=function(e){if(!g)return!1;var t=this._window,n=t.location;return e.pathname===n.pathname&&e.search===n.search},_.prototype._decodeURLEncodedURIComponent=function(e){return"string"!==typeof e?e:this._decodeURLComponents?decodeURIComponent(e.replace(/\+/g," ")):e},C.prototype.pushState=function(){var e=this.page,t=e._window,n=e._hashbang;e.len++,b&&t.history.pushState(this.state,this.title,n&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},C.prototype.save=function(){var e=this.page;b&&e._window.history.replaceState(this.state,this.title,e._hashbang&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},j.prototype.middleware=function(e){var t=this;return function(n,r){if(t.match(n.path,n.params))return e(n,r);r()}},j.prototype.match=function(e,t){var n=this.keys,r=e.indexOf("?"),i=~r?e.slice(0,r):e,o=this.regexp.exec(decodeURIComponent(i));if(!o)return!1;for(var a=1,c=o.length;a<c;++a){var s=n[a-1],u=this.page._decodeURLEncodedURIComponent(o[a]);void 0===u&&hasOwnProperty.call(t,s.name)||(t[s.name]=u)}return!0};var S=function e(){var t=new _;function n(){return y.apply(t,arguments)}return n.callbacks=t.callbacks,n.exits=t.exits,n.base=t.base.bind(t),n.strict=t.strict.bind(t),n.start=t.start.bind(t),n.stop=t.stop.bind(t),n.show=t.show.bind(t),n.back=t.back.bind(t),n.redirect=t.redirect.bind(t),n.replace=t.replace.bind(t),n.dispatch=t.dispatch.bind(t),n.exit=t.exit.bind(t),n.configure=t.configure.bind(t),n.sameOrigin=t.sameOrigin.bind(t),n.clickHandler=t.clickHandler.bind(t),n.create=e,Object.defineProperty(n,"len",{get:function(){return t.len},set:function(e){t.len=e}}),Object.defineProperty(n,"current",{get:function(){return t.current},set:function(e){t.current=e}}),n.Context=C,n.Route=j,n}(),I=S,R=S;return I.default=R,I}()}).call(this,n(112))},687:function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){return function(n){var i=e(n),o=n.displayName,a=void 0===o?n.name||"Component":o;return i.displayName="".concat(Object(r.upperFirst)(Object(r.camelCase)(t)),"(").concat(a,")"),i}}},717:function(e,t,n){},718:function(e,t,n){"use strict";e.exports=n(719)},719:function(e,t,n){"use strict";var r=n(720);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var i=n.allowHorizontalScroll,o=n.onlyScrollIfNeeded,a=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,u=n.offsetLeft||0,l=n.offsetBottom||0,d=n.offsetRight||0;i=void 0===i||i;var f=r.isWindow(t),p=r.offset(e),h=r.outerHeight(e),E=r.outerWidth(e),O=void 0,b=void 0,m=void 0,v=void 0,g=void 0,_=void 0,y=void 0,C=void 0,j=void 0,S=void 0;f?(y=t,S=r.height(y),j=r.width(y),C={left:r.scrollLeft(y),top:r.scrollTop(y)},g={left:p.left-C.left-u,top:p.top-C.top-s},_={left:p.left+E-(C.left+j)+d,top:p.top+h-(C.top+S)+l},v=C):(O=r.offset(t),b=t.clientHeight,m=t.clientWidth,v={left:t.scrollLeft,top:t.scrollTop},g={left:p.left-(O.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-u,top:p.top-(O.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},_={left:p.left+E-(O.left+m+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+h-(O.top+b+(parseFloat(r.css(t,"borderBottomWidth"))||0))+l}),g.top<0||_.top>0?!0===a?r.scrollTop(t,v.top+g.top):!1===a?r.scrollTop(t,v.top+_.top):g.top<0?r.scrollTop(t,v.top+g.top):r.scrollTop(t,v.top+_.top):o||((a=void 0===a||!!a)?r.scrollTop(t,v.top+g.top):r.scrollTop(t,v.top+_.top)),i&&(g.left<0||_.left>0?!0===c?r.scrollLeft(t,v.left+g.left):!1===c?r.scrollLeft(t,v.left+_.left):g.left<0?r.scrollLeft(t,v.left+g.left):r.scrollLeft(t,v.left+_.left):o||((c=void 0===c||!!c)?r.scrollLeft(t,v.left+g.left):r.scrollLeft(t,v.left+_.left)))}},720:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function o(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!==typeof n){var i=e.document;"number"!==typeof(n=i.documentElement[r])&&(n=i.body[r])}return n}function a(e){return o(e)}function c(e){return o(e,!0)}function s(e){var t=function(e){var t,n=void 0,r=void 0,i=e.ownerDocument,o=i.body,a=i&&i.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||o.clientLeft||0,top:r-=a.clientTop||o.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=a(r),t.top+=c(r),t}var u=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),l=/^(top|right|bottom|left)$/,d="currentStyle",f="runtimeStyle",p="left",h="px";var E=void 0;function O(e,t){for(var n=0;n<e.length;n++)t(e[n])}function b(e){return"border-box"===E(e,"boxSizing")}E=window.getComputedStyle?function(e,t,n){var r="",i=e.ownerDocument,o=n||i.defaultView.getComputedStyle(e,null);return o&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e[d]&&e[d][t];if(u.test(n)&&!l.test(t)){var r=e.style,i=r[p],o=e[f][p];e[f][p]=e[d][p],r[p]="fontSize"===t?"1em":n||0,n=r.pixelLeft+h,r[p]=i,e[f][p]=o}return""===n?"auto":n};var m=["margin","border","padding"],v=-1,g=2,_=1;function y(e,t,n){var r=0,i=void 0,o=void 0,a=void 0;for(o=0;o<t.length;o++)if(i=t[o])for(a=0;a<n.length;a++){var c=void 0;c="border"===i?i+n[a]+"Width":i+n[a],r+=parseFloat(E(e,c))||0}return r}function C(e){return null!=e&&e==e.window}var j={};function S(e,t,n){if(C(e))return"width"===t?j.viewportWidth(e):j.viewportHeight(e);if(9===e.nodeType)return"width"===t?j.docWidth(e):j.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?e.offsetWidth:e.offsetHeight,o=(E(e),b(e)),a=0;(null==i||i<=0)&&(i=void 0,(null==(a=E(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=o?_:v);var c=void 0!==i||o,s=i||a;if(n===v)return c?s-y(e,["border","padding"],r):a;if(c){var u=n===g?-y(e,["border"],r):y(e,["margin"],r);return s+(n===_?0:u)}return a+y(e,m.slice(n),r)}O(["Width","Height"],function(e){j["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],j["viewport"+e](n))},j["viewport"+e]=function(t){var n="client"+e,r=t.document,i=r.body,o=r.documentElement[n];return"CSS1Compat"===r.compatMode&&o||i&&i[n]||o}});var I={position:"absolute",visibility:"hidden",display:"block"};function R(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=S.apply(void 0,n):function(e,t,n){var r={},i=e.style,o=void 0;for(o in t)t.hasOwnProperty(o)&&(r[o]=i[o],i[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(i[o]=r[o])}(e,I,function(){t=S.apply(void 0,n)}),t}function T(e,t,n){var r=n;if("object"!==("undefined"===typeof t?"undefined":i(t)))return"undefined"!==typeof r?("number"===typeof r&&(r+="px"),void(e.style[t]=r)):E(e,t);for(var o in t)t.hasOwnProperty(o)&&T(e,o,t[o])}O(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);j["outer"+t]=function(t,n){return t&&R(t,e,n?0:_)};var n="width"===e?["Left","Right"]:["Top","Bottom"];j[e]=function(t,r){if(void 0===r)return t&&R(t,e,v);if(t){E(t);return b(t)&&(r+=y(t,["padding","border"],n)),T(t,e,r)}}}),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if("undefined"===typeof t)return s(e);!function(e,t){"static"===T(e,"position")&&(e.style.position="relative");var n=s(e),r={},i=void 0,o=void 0;for(o in t)t.hasOwnProperty(o)&&(i=parseFloat(T(e,o))||0,r[o]=i+t[o]-n[o]);T(e,r)}(e,t)},isWindow:C,each:O,css:T,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(C(e)){if(void 0===t)return a(e);window.scrollTo(t,c(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(C(e)){if(void 0===t)return c(e);window.scrollTo(a(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},j)},761:function(e,t,n){},765:function(e,t,n){e.exports=n(766).ObjectPath},766:function(e,t,n){"use strict";!function(e){var n={"'":/\\\'/g,'"':/\\\"/g},r={parse:function(e){if("string"!==typeof e)throw new TypeError("ObjectPath.parse must be passed a string");for(var t,r,i,o,a=0,c=[];a<e.length;)if(t=e.indexOf(".",a),r=e.indexOf("[",a),-1===t&&-1===r)c.push(e.slice(a,e.length)),a=e.length;else if(-1===r||-1!==t&&t<r)c.push(e.slice(a,t)),a=t+1;else if(r>a&&(c.push(e.slice(a,r)),a=r),'"'!==(i=e.slice(r+1,r+2))&&"'"!==i)-1===(o=e.indexOf("]",r))&&(o=e.length),c.push(e.slice(a+1,o)),a="."===e.slice(o+1,o+2)?o+2:o+1;else{for(-1===(o=e.indexOf(i+"]",r))&&(o=e.length);"\\"===e.slice(o-1,o)&&r<e.length;)r++,o=e.indexOf(i+"]",r);c.push(e.slice(a+2,o).replace(n[i],i)),a="."===e.slice(o+2,o+3)?o+3:o+2}return c},stringify:function(e,t){return Array.isArray(e)||(e=[e.toString()]),t='"'===t?'"':"'",e.map(function(e){return"["+t+e.toString().replace(new RegExp(t,"g"),"\\"+t)+t+"]"}).join("")},normalize:function(e,t){return r.stringify(Array.isArray(e)?e:r.parse(e),t)},registerModule:function(e){e.module("ObjectPath",[]).provider("ObjectPath",function(){this.parse=r.parse,this.stringify=r.stringify,this.normalize=r.normalize,this.$get=function(){return r}})}};"function"===typeof define&&define.amd?define(function(){return{ObjectPath:r,parse:r.parse,stringify:r.stringify,normalize:r.normalize}}):t.ObjectPath=r}()},787:function(e,t,n){"use strict";n.r(t);var r=n(36),i=n.n(r),o=n(34),a=n.n(o),c=n(10),s=n.n(c),u=(n(717),n(107)),l=n.n(u),d=n(108),f=n.n(d),p=n(528),h=n.n(p),E=n(527),O=n.n(E),b=n(531),m=n.n(b),v=n(529),g=n.n(v),_=n(109),y=n(35),C=n(1),j=n(110),S=n.n(j),I=n(545),R=n(532),T=n(584),N=n(565),M=n(539),P=n(567),w={wc_services_usps:Object(y.translate)("USPS",{comment:"United States Postal Services"}),wc_services_canada_post:Object(y.translate)("Canada Post"),wc_services_fedex:Object(y.translate)("FedEx"),wc_services_ups:Object(y.translate)("UPS"),wc_services_dhlexpress:Object(y.translate)("DHL Express")},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=Object(C.get)(e,["extensions","woocommerce","sites",t,"shippingMethods"]);return Object(C.isArray)(n)?(Object(N.a)(e,t)?n:Object(C.filter)(n,function(e){var t=e.id;return!Object(C.startsWith)(t,"wc_services")})).map(function(e){return i()({},e,{title:w[e.id]||e.title})}):n},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!Object(C.isArray)(k(e,t)))return!1;var n=Object(C.filter)(k(e,t),function(e){var t=e.id;return Object(C.startsWith)(t,"wc_services")});return Object(C.every)(n,function(n){var r=n.id;return Object(P.b)(e,r,t)})},L=(Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!A(e,t))return function(e){return e};var n=k(e,t).reduce(function(e,t){var n=t.id,r=t.title;return e[n]=r,e},{});return function(e){return n[e]||e}},[A,k]),n(575)),x=n(533),D=n.n(x),W=n(76),V=n.n(W),H=n(611),G=n(564),U=n(46),B=n(535),F=function(e,t){if(!t||t.pristine)return e;var n=e.journal,r=e.states,i=t.journal,o=t.states,a=t.postcode,c=null;return null!==o&&(null===r?c=o:(c={add:o.removeAll?[]:S()(r.add),remove:o.removeAll?[]:S()(r.remove),removeAll:r.removeAll||o.removeAll},Object(C.pullAll)(c.add,o.remove),Object(C.pullAll)(c.remove,o.add),c.add=Object(C.union)(c.add,o.add),c.remove=Object(C.union)(c.remove,o.remove))),{journal:[].concat(S()(n),S()(i)),states:c,postcode:a,pristine:t.pristine&&e.pristine}},z="ADD_CONTINENT",q="REMOVE_CONTINENT",K="ADD_COUNTRY",Z="REMOVE_COUNTRY",Q={journal:[],states:null,postcode:null,pristine:!0},Y={};Y[B.db]=function(e){return i()({},e,{temporaryChanges:i()({},Q)})},Y[B.cb]=function(e){var t=e.temporaryChanges,n=D()(e,["temporaryChanges"]);return F(n,t)},Y[B.bb]=function(e){return i()({},e,{temporaryChanges:null})},Y[B.ib]=function(e,t){var n=t.continentCode,r=t.selected;return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{states:null,postcode:null,journal:[].concat(S()(e.temporaryChanges.journal),[{action:r?z:q,code:n}])})})},Y[B.jb]=function(e,t){var n=t.countryCode,r=t.selected;return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{states:null,postcode:null,journal:[].concat(S()(e.temporaryChanges.journal),[{action:r?K:Z,code:n}])})})},Y[B.kb]=function(e,t){var n=t.stateCode,r=t.selected,o=e.temporaryChanges.states||{add:[],remove:[],removeAll:!1},a=S()(o.add),c=S()(o.remove),s=o.removeAll;return r?(Object(C.find)(a,n)||a.push(n),Object(C.pull)(c,n)):(Object(C.find)(c,n)||c.push(n),Object(C.pull)(a,n)),i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{states:{add:a,remove:c,removeAll:s}})})},Y[B.eb]=function(e,t){var n=t.postcode;return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{postcode:n})})},Y[B.hb]=function(e){return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{postcode:null,states:null})})},Y[B.gb]=function(e){return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{postcode:null,states:{add:[],remove:[],removeAll:!0}})})},Y[B.fb]=function(e){return i()({},e,{temporaryChanges:i()({},e.temporaryChanges,{postcode:"",states:null})})};var $=Object(U.b)(Q,Y),J=Object(I.a)(function(e,t){var n={},r=fe(e,t);return Object(C.forIn)(Object(H.c)(e,t),function(e,t){var i=e.continent;if(r.id!==Number(t)){var o=!0,a=!1,c=void 0;try{for(var s,u=i[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var l=s.value;n[l]=Number(t)}}catch(d){a=!0,c=d}finally{try{o||null==u.return||u.return()}finally{if(a)throw c}}}}),n},function(e,t){return[fe(e,t),Object(H.c)(e,t)]}),X=Object(I.a)(function(e,t){var n={},r=fe(e,t);return Object(C.forIn)(Object(H.c)(e,t),function(e,t){var i=e.country,o=e.postcode;if(r.id!==Number(t)&&Object(C.isEmpty)(o)){var a=!0,c=!1,s=void 0;try{for(var u,l=i[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var d=u.value;n[d]=Number(t)}}catch(f){c=!0,s=f}finally{try{a||null==l.return||l.return()}finally{if(c)throw s}}}}),n},function(e,t){return[fe(e,t),Object(H.c)(e,t)]}),ee=Object(I.a)(function(e,t,n){var r={},i=fe(e,t);return Object(C.forIn)(Object(H.c)(e,t),function(e,t){if(i.id!==Number(t)){var o=!0,a=!1,c=void 0;try{for(var s,u=e.state[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var l=s.value.split(":"),d=V()(l,2),f=d[0],p=d[1];f===n&&(r[p]=Number(t))}}catch(h){a=!0,c=h}finally{try{o||null==u.return||u.return()}finally{if(a)throw c}}}}),r},function(e,t){return[fe(e,t),Object(H.c)(e,t)]},function(e,t,n){return[t,n].join()}),te=Object(I.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e);if(!Object(T.a)(e,n))return null;var r=Object(H.c)(e,n)[t]||{continent:[],country:[],state:[],postcode:[]},o=new Set(r.country),a=new Set;return r.state.forEach(function(e){var t=e.split(":"),n=V()(t,2),r=n[0],i=n[1];o.add(r),a.add(i)}),i()({},r,{country:Array.from(o),state:Array.from(a)})},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e),r=Object(T.a)(e,n);return[r,r&&Object(H.c)(e,n)]},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e),r=Object(C.isObject)(t)?"i".concat(t.index):t;return"".concat(r).concat(n)}),ne=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!Object(T.a)(e,t))return null;var r=fe(e,t);if(!r)return null;var i=te(e,r.id,t),o=new Set(i.continent),a=new Set(i.country),c=new Set(i.state),s=ue(e,t).currentlyEditingChanges.locations,u=s.temporaryChanges,l=D()(s,["temporaryChanges"]),d=n?F(l,u):l;if(d.pristine)return{continent:Array.from(o),country:Array.from(a),state:Array.from(c),postcode:i.postcode};var f=new Set(Object.keys(X(e,t)));return d.journal.forEach(function(n){var r=n.action,i=n.code;switch(r){case z:Object(G.f)(e,i,t).forEach(function(e){return a.delete(e.code)}),a.size?Object(G.f)(e,i,t).forEach(function(e){f.has(e.code)||a.add(e.code)}):o.add(i);break;case q:o.delete(i),Object(G.f)(e,i,t).forEach(function(e){return a.delete(e.code)});break;case K:f.forEach(function(e){a.delete(e)}),a.add(i),o.forEach(function(n){Object(G.f)(e,n,t).forEach(function(e){f.has(e.code)||a.add(e.code)})}),o.clear();break;case Z:var c=!1,s=!0,u=!1,l=void 0;try{for(var d,p=o[Symbol.iterator]();!(s=(d=p.next()).done);s=!0){var h=d.value;if(c)break;var E=!0,O=!1,b=void 0;try{for(var m,v=Object(G.f)(e,h,t)[Symbol.iterator]();!(E=(m=v.next()).done);E=!0){if(m.value.code===i){c=!0;break}}}catch(g){O=!0,b=g}finally{try{E||null==v.return||v.return()}finally{if(O)throw b}}}}catch(g){u=!0,l=g}finally{try{s||null==p.return||p.return()}finally{if(u)throw l}}c&&(o.forEach(function(n){Object(G.f)(e,n,t).forEach(function(e){f.has(e.code)||a.add(e.code)})}),o.clear()),a.delete(i)}}),d.states&&!d.states.removeAll&&Object(C.isEmpty)(d.journal)||c.clear(),d.states&&(d.states.add.forEach(function(e){return c.add(e)}),d.states.remove.forEach(function(e){return c.delete(e)})),{continent:Array.from(o),country:Array.from(a),state:Array.from(c),postcode:null===d.postcode?[]:[d.postcode]}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=Object(T.a)(e,t),r=n&&fe(e,t);return[n,r,r&&te(e,r.id,t),r&&ue(e,t),r&&X(e,t)]},function(e){return[arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),!(arguments.length>2&&void 0!==arguments[2])||arguments[2]].join()}),re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return!(!Object(T.a)(e,t)||!fe(e,t))&&Boolean(ue(e,t).currentlyEditingChanges.locations.temporaryChanges)}(e,t))return!1;var n=ne(e,t);return n&&Object(C.isEmpty)(n.continent)&&1===n.country.length},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!re(e,t))return null;var n=ne(e,t);return X(e,t)[n.country[0]]},oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!re(e,t))return!1;var n=ne(e,t);return n&&Object(G.j)(e,n.country[0],t)},ae=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!re(e,t))return!1;var n=fe(e,t),r=Object(H.c)(e,t)[n.id],i=ue(e,t).currentlyEditingChanges.locations,o=i.temporaryChanges,a=D()(i,["temporaryChanges"]),c=F(a,o);return c.pristine?!Object(C.isEmpty)(r.postcode):null!==c.postcode||!oe(e,t)&&Boolean(ie(e,t))},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=re(e,t);return[n,n&&fe(e,t),n&&Object(H.c)(e,t),n&&ue(e,t),n&&oe(e,t),n&&ie(e,t)]}),ce=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!re(e,t)||!oe(e,t))return!1;var n=fe(e,t),r=Object(H.c)(e,t)[n.id],i=ue(e,t).currentlyEditingChanges.locations,o=i.temporaryChanges,a=D()(i,["temporaryChanges"]),c=F(a,o);return c.pristine?!Object(C.isEmpty)(r.state):null!==c.states||!ae(e,t)&&Boolean(ie(e,t))},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=re(e,t);return[n,n&&oe(e,t),n&&fe(e,t),n&&Object(H.c)(e,t),n&&ue(e,t),n&&ae(e,t),n&&ie(e,t)]}),se=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(R.a)(e);if(!t)return[];var i=new Set(t.continent);if(i.size)return Object(G.e)(e,r).filter(function(e){var t=e.code;return i.has(t)}).map(function(e){return{type:"continent",code:e.code,name:e.name}});var o=new Set(t.state);if(o.size){var a=t.country[0],c=Object(G.g)(e,a,r);return Object(G.i)(e,a,r).filter(function(e){var t=e.code;return o.has(t)}).map(function(e){return{type:"state",code:e.code,name:e.name,countryName:c,countryCode:a}})}if(t.postcode[0])return t.country.map(function(n){return{type:"country",code:n,name:Object(G.g)(e,n,r),postcodeFilter:t.postcode[0]}});var s=new Set(t.country);if(!s.size)return[];var u=[];return Object(G.e)(e,r).forEach(function(t){var i=t.code,o=t.name,a=Object(G.f)(e,i,r),c=a.filter(function(e){var t=e.code;return s.has(t)}).map(function(e){return{type:"country",code:e.code,name:e.name,postcodeFilter:void 0}});c.length<n?u=u.concat(c):u.push({type:"continent",code:i,name:o,countryCount:a.length,selectedCountryCount:c.length})}),u},ue=(Object(I.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(R.a)(e),i=te(e,t,r);return se(e,i,n,r)},function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(R.a)(e);return[te(e,t,r)]},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object(R.a)(e),i=Object(C.isObject)(t)?"i".concat(t.index):t;return"".concat(i).concat(n).concat(r)}),Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:999,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e),r=ne(e,n,!1);return se(e,r,t,n)},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e);return[ne(e,n,!1)]},function(e){return[arguments.length>1&&void 0!==arguments[1]?arguments[1]:999,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e)].join()}),Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=ne(e,t);if(!n)return[];var r=new Set(n.continent),i=new Set(n.country),o=J(e,t),a=X(e,t),c=[],s=0===r.size&&0===i.size;return Object(G.e)(e,t).forEach(function(n){var u=n.code,l=n.name,d=r.has(u),f=Object(G.f)(e,u,t),p=0,h=c.push({code:u,name:l,selected:d,disabled:Boolean(o[u]),ownerZoneId:o[u],type:"continent",countryCount:f.length});f.forEach(function(e){var t=e.code,n=e.name,r=d||i.has(t);r&&p++,c.push({code:t,name:n,selected:r,disabled:!s&&Boolean(a[t]),ownerZoneId:a[t],type:"country"})}),c[h-1].selectedCountryCount=p}),c},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return[ne(e,t),J(e,t),X(e,t)]}),Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!ce(e,t))return[];var n=ne(e,t);if(!n)return[];var r=n.country[0],i=new Set(n.state),o=ee(e,t,r);return Object(G.i)(e,r,t).map(function(e){var t=e.code;return{code:t,name:e.name,selected:i.has(t),disabled:Boolean(o[t]),ownerZoneId:o[t]}})},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return[ce(e,t),ne(e,t),ee(e,t)]}),function(e,t){return Object(C.get)(e,["extensions","woocommerce","ui","shipping",t,"zones"])}),le=function(e){return S()(e).sort(function(e,t){return Object(C.isNumber)(e.id)||Object(C.isNumber)(t.id)?Object(C.isNumber)(e.id)?Object(C.isNumber)(t.id)?0===e.id?1:0===t.id?-1:e.order===t.order?e.id-t.id:e.order-t.order:1:-1:e.id.index-t.id.index})},de=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!Object(T.a)(e,t))return[];var n=S()(Object(T.b)(e,t)),r=ue(e,t);if(!r)return le(n);var o=r.creates,a=r.updates;return r.deletes.forEach(function(e){var t=e.id;return Object(C.remove)(n,{id:t})}),a.forEach(function(e){var t=Object(C.findIndex)(n,{id:e.id});-1!==t&&(n[t]=i()({},n[t],e))}),le([].concat(S()(n),S()(o)))},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=Object(T.a)(e,t);return[t,n,n&&Object(T.b)(e,t),n&&ue(e,t)]}),fe=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=ue(e,t);if(!n)return null;if(null===n.currentlyEditingId)return null;var r=Object(C.find)(de(e,t),{id:n.currentlyEditingId});return r?i()({},r,n.currentlyEditingChanges):i()({id:n.currentlyEditingId},n.currentlyEditingChanges)},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=ue(e,t);return[t,n,n&&null!==n.currentlyEditingId&&de(e,t)]});function pe(e){return e&&!Object(C.isObject)(e.id)?"updates":"creates"}var he={};he[B.Bb]=function(e,t){var n=t.isTaxable;return i()({},e,{tax_status:n?"taxable":"none"})},he[B.zb]=function(e,t){var n=t.cost;return i()({},e,{cost:n})};var Ee=Object(U.b)({tax_status:"none",cost:5},he),Oe={};Oe[B.yb]=function(e,t){var n=t.condition;return i()({},e,{requires:n})},Oe[B.Ab]=function(e,t){var n=t.cost;return i()({},e,{min_amount:n})};var be=Object(U.b)({requires:"",min_amount:0},Oe),me={};me[B.Bb]=function(e,t){var n=t.isTaxable;return i()({},e,{tax_status:n?"taxable":"none"})},me[B.zb]=function(e,t){var n=t.cost;return i()({},e,{cost:n})};var ve=Object(U.b)({tax_status:"none",cost:0},me),ge=n(538),_e={};_e[ge.x]=function(e,t){return Object(C.setWith)(Object(C.clone)(e),t.path,t.value,C.clone)};var ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"function"===typeof _e[t.type]?_e[t.type](e,t):e},Ce={flat_rate:Ee,free_shipping:be,local_pickup:ve,wc_services_usps:ye,wc_services_canada_post:ye,wc_services_fedex:ye,wc_services_ups:ye,wc_services_dhlexpress:ye},je={creates:[],updates:[],deletes:[],currentlyEditingId:null,currentlyEditingNew:!1,currentlyEditingChangedType:!1},Se={},Ie=function(e){return{index:Object(C.isEmpty)(e.creates)?0:e.creates[e.creates.length-1].id.index+1}};Se[B.ob]=function(e,t){var n=t.methodType,r=t.title,o=Ie(e),a={id:o,methodType:n};return Ce[n]&&(a=i()({},a,{title:r},Ce[n](void 0,t))),i()({},e,{currentlyEditingId:o,currentlyEditingNew:!0,currentlyEditingChangedType:!1,currentlyEditingChanges:a})},Se[B.wb]=function(e,t){return i()({},e,{currentlyEditingId:t.methodId,currentlyEditingChanges:{},currentlyEditingChangedType:!1,currentlyEditingNew:!1})},Se[B.pb]=function(e){return i()({},e,{currentlyEditingId:null,currentlyEditingChangedType:!1,currentlyEditingNew:!1})},Se[B.rb]=function(e){var t=e,n=t.currentlyEditingId,r=t.currentlyEditingChanges,o=t.currentlyEditingNew,c=t.currentlyEditingChangedType;if(null===n)return e;if(Object(C.isEmpty)(r))return i()({},e,{currentlyEditingChangedType:!1,currentlyEditingNew:!1,currentlyEditingId:null});var s=pe({id:n});if(o)return i()({},e,{creates:[].concat(S()(e.creates),[r]),currentlyEditingId:null,currentlyEditingNew:!1,currentlyEditingChangedType:!1,currentlyEditingChanges:{}});if(c){var u=Object(C.find)(e[s],{id:n}),l=n;return u&&!Object(C.isNil)(u._originalId)&&(l=u._originalId),e=Se[B.xb](e,{methodId:n}),i()({},e,{currentlyEditingId:null,currentlyEditingChangedType:!1,currentlyEditingNew:!1,creates:[].concat(S()(e.creates),[i()({},r,{enabled:Object(C.isNil)(r.enabled)?u&&u.enabled:r.enabled,id:Ie(e),_originalId:l})])})}var d=!1,f=e[s].map(function(e){return Object(C.isEqual)(n,e.id)?(d=!0,i()({},e,r)):e});return d||f.push(i()({id:n},r)),i()({},e,a()({currentlyEditingId:null,currentlyEditingChangedType:!1,currentlyEditingNew:!1},s,f))},Se[B.xb]=function(e,t){var n=t.methodId,r=i()({},e,{currentlyEditingId:null}),o=pe({id:n});return"updates"===o&&(r.deletes=[].concat(S()(e.deletes),[{id:n}])),r[o]=Object(C.reject)(e[o],{id:n}),r},Se[B.qb]=function(e,t){var n=t.methodType,r=t.title;if(!Ce[n])return e;var o=i()({},Ce[n](void 0,t),{id:e.currentlyEditingId,title:r,methodType:n,enabled:e.currentlyEditingChanges&&e.currentlyEditingChanges.enabled});return i()({},e,{currentlyEditingChangedType:!0,currentlyEditingChanges:o})},Se[B.vb]=function(e,t){var n=t.title;return i()({},e,{currentlyEditingChanges:i()({},e.currentlyEditingChanges,{title:n})})},Se[B.Db]=function(e,t){var n=t.enabled;return i()({},e,{currentlyEditingChanges:i()({},e.currentlyEditingChanges,{enabled:n})})},Se[B.Cb]=function(e,t){var n=t.methodId,r=t.enabled,o=pe({id:n}),c=Object(C.findIndex)(e[o],{id:n});if(-1===c)return i()({},e,a()({},o,[].concat(S()(e[o]),[{id:n,enabled:r}])));var s=i()({},e[o][c],{enabled:r});return i()({},e,a()({},o,[].concat(S()(e[o].slice(0,c)),[s],S()(e[o].slice(c+1)))))},Se[B.Fb]=function(e,t){var n=t.data,r=t.originatingAction,o=r.methodId,a=r.method,c=pe({id:o}),s=i()({},e,{currentlyEditingId:null});if("creates"===c){var u=Object(C.find)(e.creates,{id:o});u&&(s.updates=[].concat(S()(e.updates),[i()({},u,{id:n.id})])),s.creates=Object(C.reject)(e[c],{id:o})}else{var l=Object(C.find)(e.updates,{id:o}),d=Object(C.omit)(l,Object.keys(a));if(Object(C.isEmpty)(Object(C.omit)(d,["id","methodType"])))s.updates=Object(C.reject)(e.updates,{id:o});else{var f=Object(C.findIndex)(e.updates,{id:o});s.updates=[].concat(S()(e[c].slice(0,f)),[d],S()(e[c].slice(f+1)))}}return s},Se[B.ub]=function(e,t){var n=t.originatingAction.methodId;return i()({},e,{creates:Object(C.reject)(e.creates,{id:n}),updates:Object(C.reject)(e.updates,{id:n}),deletes:Object(C.reject)(e.deletes,{id:n}),currentlyEditingId:null})};var Re=Object(U.b)(je,Se),Te=function(e,t){if(!t)return e;var n=e.creates,r=e.updates,i=e.deletes,o=t.creates,a=t.updates,c=t.deletes,s=t.currentlyEditingId,u=t.currentlyEditingNew,l=t.currentlyEditingChangedType,d={creates:S()(n),updates:S()(r),deletes:S()(i),currentlyEditingId:s,currentlyEditingNew:u,currentlyEditingChangedType:l};return c.forEach(function(e){var t=e.id,n=pe({id:t});"updates"===n&&d.deletes.push({id:t}),Object(C.remove)(d[n],{id:t})}),o.forEach(function(e){var t=Object(C.findIndex)(n,{id:e.id});-1===t?d.creates.push(e):d.creates[t]=Object(C.merge)({},d.creates[t],e)}),a.forEach(function(e){var t=Object(C.findIndex)(r,{id:e.id});-1===t?d.updates.push(e):d.updates[t]=Object(C.merge)({},d.updates[t],e)}),d};function Ne(e){switch(e.type){case"boolean":return e.default||!1;case"number":return e.default||0;case"string":case"textarea":return e.default||"";case"array":return e.default||[];case"object":return Object(C.mapValues)(Object(C.get)(e,"properties",{}),Ne);default:return null}}var Me=function(e){return Object(C.mapValues)(e.properties,Ne)},Pe=Object(I.a)(function(e,t,n){return Object(T.a)(e,n)?null===t?fe(e,n):Object(C.find)(Object(T.b)(e,n),{id:t}):null},function(e,t,n){var r=Object(T.a)(e,n);return[r,r&&fe(e,n),r&&Object(T.b)(e,n)]},function(e,t,n){return Object(C.isNumber)(t)?"".concat(t).concat(n):"i".concat(t.index).concat(n)}),we=function(e,t,n,r){var o=S()(t.methodIds||[]),a=function(e,t,n){var r=ue(e,n);if(r){var i=Object(C.find)(r[pe({id:t})],{id:t});if(i&&!Object(C.isEmpty)(i.methods))return i.methods}return{creates:[],updates:[],deletes:[],currentlyEditingId:null}}(e,t.id,n),c=Te(a,r),s=c.creates,u=c.updates,l=c.deletes;Object(C.pullAll)(o,Object(C.map)(l,"id"));var d=o.map(function(t){return Object(L.c)(e,t,n)});u.forEach(function(e){var t=o.indexOf(e.id);-1!==t&&(d[t]=i()({},d[t],e))});var f=[].concat(S()(d),S()(s)).map(function(t){var r=t.enabled;Object(C.isNil)(r)&&"number"===typeof t._originalId&&(r=Object(L.c)(e,t._originalId,n).enabled);var i=Object(C.startsWith)(t.methodType,"wc_services")?Me(Object(P.a)(e,t.methodType,n).formSchema):{};return Object(C.merge)({},i,t,{enabled:!1!==r})});return function(e,t,n){return n.sort(function(n,r){var i=Object(C.isNil)(n._originalId)?n.id:n._originalId,o=Object(C.isNil)(r._originalId)?r.id:r._originalId;return Object(C.isNumber)(i)?Object(C.isNumber)(o)?Object(L.c)(e,i,t).order-Object(L.c)(e,o,t).order:-1:Object(C.isNumber)(o)?1:i.index-o.index})}(e,n,f)},ke=(Object(I.a)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e);if(!Object(T.a)(e,n))return[];var r=Pe(e,t,n)||{id:t,methodIds:[]};return we(e,r,n)},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(R.a)(e),r=Object(T.a)(e,n);return[r,r&&Pe(e,n),r&&ue(e,n)]},function(e,t,n){return Object(C.isNumber)(t)?"".concat(t).concat(n):"i".concat(t.index).concat(n)}),Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!Object(T.a)(e,t))return[];var n=fe(e,t);if(!n)return[];var r=ue(e,t).currentlyEditingChanges.methods;return we(e,n,t,r)},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=Object(T.a)(e,t),r=n&&fe(e,t);return[n,r,r&&ue(e,t)]})),Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);if(!Object(T.a)(e,t))return null;var n=fe(e,t);if(!n||!n.methods||!n.methods.currentlyEditingId)return null;var r=n.methods.currentlyEditingChanges.methodType,i=Object(C.startsWith)(r,"wc_services")?Me(Object(P.a)(e,r,t).formSchema):{};if(n.methods.currentlyEditingNew)return Object(C.merge)({},i,n.methods.currentlyEditingChanges,{enabled:!1!==n.methods.currentlyEditingChanges.enabled});var o=ke(e),a=Object(C.find)(o,{id:n.methods.currentlyEditingId});if(!a)return null;var c=Object(C.isNil)(n.methods.currentlyEditingChanges.enabled)?!1!==a.enabled:!1!==n.methods.currentlyEditingChanges.enabled;return Object(C.mergeWith)({},i,a,n.methods.currentlyEditingChanges,{enabled:c},function(e,t){if(Object(C.isArray)(e))return t})},Le=n(630),xe=n(589),De=n(530),We=n.n(De),Ve=n(12),He=n.n(Ve),Ge=n(30),Ue=n(546),Be=n(547),Fe=n(557),ze=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(i))),a()(m()(n),"state",{focused:!1,text:n.props.value}),a()(m()(n),"handleChange",function(e){n.setState({text:e.target.value}),n.props.onChange(e)}),a()(m()(n),"handleBlur",function(e){n.setState({focused:!1,text:n.props.value}),n.props.onChange(e)}),a()(m()(n),"handleFocus",function(){n.setState({focused:!0})}),n}return g()(t,e),f()(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.state.focused||e.value===this.props.value||this.setState({text:e.value})}},{key:"render",value:function(){return s.a.createElement(Fe.a,We()({},this.props,{value:this.state.text,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus}))}}]),t}(c.Component);a()(ze,"propTypes",{onChange:He.a.func}),a()(ze,"defaultProps",{onChange:function(){}});var qe=n(550),Ke=n(621),Ze=n(594),Qe=function(e){var t=e.id,n=e.title,r=e.description,i=e.value,o=e.placeholder,a=e.updateValue,c=e.error,u=e.className;return s.a.createElement(Ue.a,{className:u},s.a.createElement(Be.a,{htmlFor:t,dangerouslySetInnerHTML:Object(Ze.a)(n)}),s.a.createElement(ze,{id:t,name:t,placeholder:o,value:i,onChange:function(e){return a(function(e){if(""===e)return 0;var t=Number.parseFloat(e);return isNaN(t)?e:t}(e.target.value))},isError:Boolean(c)}),c?s.a.createElement(qe.a,{text:c}):s.a.createElement(Ke.a,{text:r}))};Qe.propTypes={id:He.a.string.isRequired,title:He.a.string,description:He.a.string,value:He.a.oneOfType([He.a.string,He.a.number]).isRequired,updateValue:He.a.func,error:He.a.oneOfType([He.a.string,He.a.bool]),className:He.a.string};var Ye=Qe,$e=n(553),Je=function(e){var t,n=e.id,r=e.title,i=e.className,o=e.value;return s.a.createElement(Ue.a,null,function(e){return e?s.a.createElement($e.a,{dangerouslySetInnerHTML:Object(Ze.a)(e)}):null}(r),s.a.createElement("p",{id:n,className:i},(t=o,s.a.createElement("span",{dangerouslySetInnerHTML:Object(Ze.a)(t)}))))};Je.propTypes={id:He.a.string.isRequired,title:He.a.string,className:He.a.string,value:He.a.string.isRequired};var Xe=Je,et=n(577),tt=n(641),nt=function(e){var t=e.value,n=e.currentValue,r=e.setValue,i=e.description;return s.a.createElement(Be.a,null,s.a.createElement(tt.a,{value:t,checked:t===n,onChange:function(){return r(t)}}),s.a.createElement("span",{dangerouslySetInnerHTML:Object(Ze.a)(i)}))},rt=function(e){var t=e.valuesMap,n=e.title,r=e.description,i=e.value,o=e.setValue,a=e.className;return s.a.createElement(Ue.a,{className:a},s.a.createElement($e.a,{dangerouslySetInnerHTML:Object(Ze.a)(n)}),s.a.createElement(Ke.a,{text:r}),Object.keys(t).map(function(e){return s.a.createElement(nt,{key:e,value:e,currentValue:i,setValue:o,description:t[e]})}))};rt.propTypes={valuesMap:He.a.object.isRequired,title:He.a.string,description:He.a.string,value:He.a.string.isRequired,setValue:He.a.func.isRequired,className:He.a.string};var it=rt,ot=n(526),at=n.n(ot),ct=n(47),st=n.n(ct),ut=n(718),lt=n.n(ut),dt=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(i))),a()(m()(n),"_computeSuggestionMatch",function(e){var t,r=n.props.displayTransform(n.props.match||"").toLocaleLowerCase();return 0===r.length?null:(t=(e=n.props.displayTransform(e)).toLocaleLowerCase().indexOf(r),{suggestionBeforeMatch:e.substring(0,t),suggestionMatch:e.substring(t,t+r.length),suggestionAfterMatch:e.substring(t+r.length)})}),a()(m()(n),"_renderSuggestions",function(){return Object(C.map)(n.props.suggestions,function(e,t){var n=this._computeSuggestionMatch(e),r=at()("token-field__suggestion",{"is-selected":t===this.props.selectedIndex});return s.a.createElement("li",{className:r,key:e,onMouseDown:this._handleMouseDown,onClick:this._handleClick(e),onMouseEnter:this._handleHover(e)},n?s.a.createElement("span",null,n.suggestionBeforeMatch,s.a.createElement("strong",{className:"token-field__suggestion-match"},n.suggestionMatch),n.suggestionAfterMatch):this.props.displayTransform(e))}.bind(m()(n)))}),a()(m()(n),"_handleHover",function(e){return function(){this._scrollingIntoView||this.props.onHover(e)}.bind(m()(n))}),a()(m()(n),"_handleClick",function(e){return function(){this.props.onSelect(e)}.bind(m()(n))}),a()(m()(n),"_handleMouseDown",function(e){e.preventDefault()}),n}return g()(t,e),f()(t,[{key:"componentDidUpdate",value:function(e){var t;e.isExpanded&&this.props.isExpanded&&this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this._scrollingIntoView=!0,t=this.refs.list,lt()(t.children[this.props.selectedIndex],t,{onlyScrollIfNeeded:!0}),setTimeout(function(){this._scrollingIntoView=!1}.bind(this),100))}},{key:"render",value:function(){var e=at()("token-field__suggestions-list",{"is-expanded":this.props.isExpanded&&this.props.suggestions.length>0});return s.a.createElement("ul",{ref:"list",className:e,tabIndex:"-1"},this._renderSuggestions())}}]),t}(s.a.PureComponent);a()(dt,"propTypes",{isExpanded:He.a.bool,match:He.a.string,displayTransform:He.a.func.isRequired,onSelect:He.a.func,suggestions:He.a.array,selectedIndex:He.a.number}),a()(dt,"defaultProps",{isExpanded:!1,match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])});var ft=dt,pt=n(534),ht=n.n(pt),Et=n(632),Ot=n(687),bt=769,mt="<480px",vt=">960px",gt=!window.matchMedia,_t=function(){return null};function yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,n=e.max;return void 0!==t&&void 0!==n?gt?{matches:bt>t&&bt<=n}:window.matchMedia("(min-width: ".concat(t+1,"px) and (max-width: ").concat(n,"px)")):void 0!==t?gt?{matches:bt>t}:window.matchMedia("(min-width: ".concat(t+1,"px)")):void 0!==n&&(gt?{matches:bt<=n}:window.matchMedia("(max-width: ".concat(n,"px)")))}var Ct={"<480px":yt({max:480}),"<660px":yt({max:660}),"<800px":yt({max:800}),"<960px":yt({max:960}),"<1040px":yt({max:1040}),"<1280px":yt({max:1280}),"<1400px":yt({max:1400}),">480px":yt({min:480}),">660px":yt({min:660}),">800px":yt({min:800}),">960px":yt({min:960}),">1040px":yt({min:1040}),">1280px":yt({min:1280}),">1400px":yt({min:1400}),"480px-660px":yt({min:480,max:660}),"660px-960px":yt({min:660,max:960}),"480px-960px":yt({min:480,max:960})};function jt(e){if(Ct.hasOwnProperty(e))return Ct[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function St(e){var t=jt(e);return t?t.matches:void 0}function It(e,t){if(!t)return _t;var n=jt(e);if(n&&!gt){var r=function(e){return t(e.matches)};return n.addListener(r),function(){return n.removeListener(r)}}return _t}function Rt(e){var t=Object(c.useState)(function(){return{isActive:St(e),breakpoint:e}}),n=V()(t,2),r=n[0],i=n[1];return Object(c.useEffect)(function(){return It(e,function(t){i(function(n){return n.isActive===t&&n.breakpoint===e?n:{isActive:t,breakpoint:e}})})},[e]),e===r.breakpoint?r.isActive:St(e)}Object(Ot.a)(function(e){return function(t){var n=Rt(mt);return s.a.createElement(e,We()({},t,{isBreakpointActive:n}))}},"WithMobileBreakpoint"),Object(Ot.a)(function(e){return function(t){var n=Rt(vt);return s.a.createElement(e,We()({},t,{isBreakpointActive:n}))}},"WithDesktopBreakpoint");function Tt(e){var t=Rt(mt);if(!e.showOnMobile&&t)return null;var n=at()("popover","tooltip","is-".concat(e.status),"is-".concat(e.position),e.className);return s.a.createElement(Et.a,{autoPosition:e.autoPosition,className:n,rootClassName:e.rootClassName,context:e.context,id:e.id,isVisible:e.isVisible,position:e.position,showDelay:e.showDelay},e.children)}Tt.propTypes={autoPosition:He.a.bool,className:He.a.string,id:He.a.string,isVisible:He.a.bool,position:He.a.string,rootClassName:He.a.string,status:He.a.string,showDelay:He.a.number,showOnMobile:He.a.bool},Tt.defaultProps={showDelay:100,position:"top",showOnMobile:!1};var Nt=Tt,Mt=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(i))),a()(m()(n),"_onClickRemove",function(){n.props.onClickRemove({value:n.props.value})}),n}return g()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.value,n=e.status,r=e.isBorderless,i=e.tooltip,o=e.displayTransform,a=at()("token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":r,"is-disabled":this.props.disabled});return s.a.createElement("span",{className:a,tabIndex:"-1",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},s.a.createElement("span",{className:"token-field__token-text"},o(t)),s.a.createElement(ht.a,{icon:"cross-small",size:24,className:"token-field__remove-token",onClick:this.props.disabled?null:this._onClickRemove}),i&&s.a.createElement(Nt,{showOnMobile:!0,context:this,status:n,isVisible:!0,position:"bottom"},i))}}]),t}(s.a.PureComponent);a()(Mt,"displayName","Token"),a()(Mt,"propTypes",{value:He.a.string.isRequired,displayTransform:He.a.func.isRequired,onClickRemove:He.a.func,status:He.a.oneOf(["error","success","validating"]),isBorderless:He.a.bool,tooltip:He.a.string,disabled:He.a.bool}),a()(Mt,"defaultProps",{onClickRemove:function(){},isBorderless:!1,disabled:!1});var Pt=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(i))),a()(m()(n),"setTextInput",function(e){n.textInput=e}),a()(m()(n),"onChange",function(e){n.props.onChange({value:e.target.value})}),n}return g()(t,e),f()(t,[{key:"componentDidUpdate",value:function(){this.props.hasFocus&&this.textInput.focus()}},{key:"render",value:function(){var e=this.props,t=e.placeholder,n=e.value,r=(0===n.length&&t&&t.length||n.length)+1;return s.a.createElement("input",We()({className:"token-field__input",onChange:this.onChange,ref:this.setTextInput,size:r,type:"text"},Object(C.omit)(this.props,["hasFocus","onChange"])))}}]),t}(s.a.PureComponent);a()(Pt,"propTypes",{disabled:He.a.bool,hasFocus:He.a.bool,onChange:He.a.func,onBlur:He.a.func,placeholder:He.a.string,value:He.a.string}),a()(Pt,"defaultProps",{disabled:!1,hasFocus:!1,onChange:C.noop,onBlur:C.noop,placeholder:"",value:""});var wt=Pt,kt=(n(761),st()("calypso:token-field")),At=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(o))),a()(m()(n),"state",n.constructor.initialState),a()(m()(n),"_renderTokensAndInput",function(){var e=Object(C.map)(n.props.value,n._renderToken);return e.splice(n._getIndexOfInput(),0,n._renderInput()),e}),a()(m()(n),"_renderToken",function(e){var t=n._getTokenValue(e),r=e.status?e.status:void 0;return s.a.createElement(Mt,{key:"token-"+t,value:t,status:r,tooltip:e.tooltip,displayTransform:n.props.displayTransform,onClickRemove:n._onTokenClickRemove,isBorderless:e.isBorderless||n.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==r&&n.props.disabled})}),a()(m()(n),"_renderInput",function(){var e=n.props,t=e.autoCapitalize,r=e.autoComplete,o=e.autoCorrect,a=e.id,c=e.maxLength,u=e.placeholder,l=e.spellCheck,d=e.value,f={autoCapitalize:t,autoComplete:r,autoCorrect:o,disabled:n.props.disabled,hasFocus:n.state.tokenInputHasFocus,id:a,key:"input",onBlur:n._onBlur,spellCheck:l,value:n.state.incompleteTokenValue};return 0===d.length&&u&&(f.placeholder=u),c&&d.length>=c||(f=i()({},f,{onChange:n._onInputChange})),s.a.createElement(wt,f)}),a()(m()(n),"setTokensAndInput",function(e){n.tokensAndInput=e}),a()(m()(n),"_onFocus",function(e){n.setState({isActive:!0,tokenInputHasFocus:!0}),"function"===typeof n.props.onFocus&&n.props.onFocus(e)}),a()(m()(n),"_onBlur",function(){n._inputHasValidValue()?(kt("_onBlur adding current token"),n.setState({isActive:!1},n._addCurrentToken)):(kt("_onBlur not adding current token"),n.setState(n.constructor.initialState))}),a()(m()(n),"_onTokenClickRemove",function(e){n._deleteToken(e.value)}),a()(m()(n),"_onSuggestionHovered",function(e){var t=n._getMatchingSuggestions().indexOf(e);t>=0&&n.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}),a()(m()(n),"_onSuggestionSelected",function(e){kt("_onSuggestionSelected",e),n._addNewToken(e)}),a()(m()(n),"_onInputChange",function(e){var t=e.value,r=n.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,i=t.split(r);i.length>1&&n._addNewTokens(i.slice(0,-1)),n.setState({incompleteTokenValue:Object(C.last)(i)||"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1})}),a()(m()(n),"_onContainerTouched",function(e){e.target===n.tokensAndInput&&n.state.isActive&&e.preventDefault()}),a()(m()(n),"_onKeyDown",function(e){var t=!1;switch(e.keyCode){case 8:t=n._handleDeleteKey(n._deleteTokenBeforeInput);break;case 9:case 13:t=n._addCurrentToken();break;case 37:t=n._handleLeftArrowKey();break;case 38:t=n._handleUpArrowKey();break;case 39:t=n._handleRightArrowKey();break;case 40:t=n._handleDownArrowKey();break;case 46:t=n._handleDeleteKey(n._deleteTokenAfterInput);break;case 32:n.props.tokenizeOnSpace&&(t=n._addCurrentToken())}t&&e.preventDefault()}),a()(m()(n),"_onKeyPress",function(e){var t=!1;switch(e.charCode){case 44:t=n._handleCommaKey()}t&&e.preventDefault()}),a()(m()(n),"_handleDeleteKey",function(e){var t=!1;return n.state.tokenInputHasFocus&&n._isInputEmpty()&&(e(),t=!0),t}),a()(m()(n),"_getMatchingSuggestions",function(){var e=n.props.suggestions,t=n.props.saveTransform(n.state.incompleteTokenValue),r=[],i=[];return 0===t.length?e=Object(C.difference)(e,n.props.value):(t=t.toLocaleLowerCase(),Object(C.each)(e,function(e){var n=e.toLocaleLowerCase().indexOf(t);-1===this.props.value.indexOf(e)&&(0===n?r.push(e):n>0&&i.push(e))}.bind(m()(n))),e=r.concat(i)),Object(C.take)(e,n.props.maxSuggestions)}),a()(m()(n),"_getSelectedSuggestion",function(){if(-1!==n.state.selectedSuggestionIndex)return n._getMatchingSuggestions()[n.state.selectedSuggestionIndex]}),a()(m()(n),"_addCurrentToken",function(){var e=!1,t=n._getSelectedSuggestion();return t?(n._addNewToken(t),e=!0):n._inputHasValidValue()&&(n._addNewToken(n.state.incompleteTokenValue),e=!0),e}),a()(m()(n),"_handleLeftArrowKey",function(){var e=!1;return n._isInputEmpty()&&(n._moveInputBeforePreviousToken(),e=!0),e}),a()(m()(n),"_handleRightArrowKey",function(){var e=!1;return n._isInputEmpty()&&(n._moveInputAfterNextToken(),e=!0),e}),a()(m()(n),"_handleUpArrowKey",function(){return n.setState({selectedSuggestionIndex:Math.max((n.state.selectedSuggestionIndex||0)-1,0),selectedSuggestionScroll:!0}),!0}),a()(m()(n),"_handleDownArrowKey",function(){return n.setState({selectedSuggestionIndex:Math.min(n.state.selectedSuggestionIndex+1||0,n._getMatchingSuggestions().length-1),selectedSuggestionScroll:!0}),!0}),a()(m()(n),"_handleCommaKey",function(){return n._inputHasValidValue()&&n._addNewToken(n.state.incompleteTokenValue),!0}),a()(m()(n),"_isInputEmpty",function(){return 0===n.state.incompleteTokenValue.length}),a()(m()(n),"_inputHasValidValue",function(){return n.props.saveTransform(n.state.incompleteTokenValue).length>0}),a()(m()(n),"_deleteTokenBeforeInput",function(){var e=n._getIndexOfInput()-1;e>-1&&n._deleteToken(n.props.value[e])}),a()(m()(n),"_deleteTokenAfterInput",function(){var e=n._getIndexOfInput();e<n.props.value.length&&(n._deleteToken(n.props.value[e]),n._moveInputToIndex(e))}),a()(m()(n),"_deleteToken",function(e){var t=n.props.value.filter(function(t){return n._getTokenValue(t)!==n._getTokenValue(e)});n.props.onChange(t)}),a()(m()(n),"_moveInputToIndex",function(e){n.setState({inputOffsetFromEnd:n.props.value.length-Math.max(e,-1)-1})}),a()(m()(n),"_moveInputBeforePreviousToken",function(){n.setState({inputOffsetFromEnd:Math.min(n.state.inputOffsetFromEnd+1,n.props.value.length)})}),a()(m()(n),"_moveInputAfterNextToken",function(){n.setState({inputOffsetFromEnd:Math.max(n.state.inputOffsetFromEnd-1,0)})}),a()(m()(n),"_addNewTokens",function(e){var t=Object(C.uniq)(e.map(n.props.saveTransform).filter(Boolean).filter(function(e){return!n._valueContainsToken(e)}));if(kt("_addNewTokens: tokensToAdd",t),t.length>0){var r=Object(C.clone)(n.props.value);r.splice.apply(r,[n._getIndexOfInput(),0].concat(t)),kt("_addNewTokens: onChange",r),n.props.onChange(r)}}),a()(m()(n),"_addNewToken",function(e){n._addNewTokens([e]),n.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),n.state.isActive&&(kt("_addNewToken focusing input"),n.setState({tokenInputHasFocus:!0}))}),a()(m()(n),"_valueContainsToken",function(e){return Object(C.some)(n.props.value,function(t){return n._getTokenValue(e)===n._getTokenValue(t)})}),a()(m()(n),"_getTokenValue",function(e){return"object"===typeof e?e.value:e}),a()(m()(n),"_getIndexOfInput",function(){return n.props.value.length-n.state.inputOffsetFromEnd}),n}return g()(t,e),f()(t,[{key:"componentWillReceiveProps",value:function(e){e.disabled&&this.state.isActive&&this.setState({isActive:!1,incompleteTokenValue:""})}},{key:"render",value:function(){var e={ref:"main",className:at()("token-field",{"is-active":this.state.isActive,"is-disabled":this.props.disabled}),tabIndex:"-1"};return this.props.disabled||(e=Object.assign({},e,{onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onFocus:this._onFocus})),s.a.createElement("div",e,s.a.createElement("div",{ref:this.setTokensAndInput,className:"token-field__input-container",tabIndex:"-1",onMouseDown:this._onContainerTouched,onTouchStart:this._onContainerTouched},this._renderTokensAndInput()),s.a.createElement(ft,{match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:this._getMatchingSuggestions(),selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,isExpanded:this.props.isExpanded||this.state.isActive,onHover:this._onSuggestionHovered,onSelect:this._onSuggestionSelected}))}}]),t}(c.PureComponent);a()(At,"propTypes",{suggestions:He.a.array,maxSuggestions:He.a.number,displayTransform:He.a.func,saveTransform:He.a.func,onChange:He.a.func,isBorderless:He.a.bool,maxLength:He.a.number,onFocus:He.a.func,disabled:He.a.bool,tokenizeOnSpace:He.a.bool,placeholder:He.a.string,id:He.a.string,isExpanded:He.a.bool,value:function(e){var t=e.value;if(!Array.isArray(t))return new Error("Value prop is expected to be an array.");Object(C.forEach)(t,function(e){if("object"===typeof e&&!("value"in e))return new Error("When using object for value prop, each object is expected to have a 'value' property.")})}}),a()(At,"defaultProps",{suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),placeholder:"",displayTransform:C.identity,saveTransform:function(e){return e.trim()},onChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,isExpanded:!1}),a()(At,"initialState",{incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,tokenInputHasFocus:!1});var Lt=At,xt=n(558),Dt=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h()(this,(e=O()(t)).call.apply(e,[this].concat(i))),a()(m()(n),"prepareValueForTokenField",function(e){return Object(C.filter)(Object(C.map)(e,n.getNameFromId))}),a()(m()(n),"getNameFromId",function(e){var t=Object(C.find)(n.props.options,{id:e});return t?t.name:null}),a()(m()(n),"getIdFromName",function(e){var t=e.toLowerCase(),r=Object(C.find)(n.props.options,function(e){return e.name.toLowerCase()===t});return r?r.id:null}),a()(m()(n),"transformForDisplay",function(e){var t=Object(C.find)(n.props.options,{slug:e});return t?t.name:e}),a()(m()(n),"onChange",function(e){(0,n.props.updateValue)(Object(C.uniq)(Object(C.filter)(Object(C.map)(e,n.getIdFromName))))}),n}return g()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.id,n=e.title,r=e.description,i=e.value,o=e.placeholder,a=e.options;return!1===a||0===a.length?null:s.a.createElement(Ue.a,null,s.a.createElement(Be.a,{htmlFor:t},n),s.a.createElement(Lt,{id:t,name:t,placeholder:o,value:this.prepareValueForTokenField(i),suggestions:Object(C.uniq)(Object(C.map)(a,"name")),onChange:this.onChange,displayTransform:this.transformForDisplay}),r&&s.a.createElement(xt.a,null,r))}}]),t}(s.a.Component);a()(Dt,"propTypes",{id:He.a.string.isRequired,title:He.a.string,description:He.a.string,value:He.a.array.isRequired,updateValue:He.a.func,options:He.a.array});var Wt=n(788),Vt=n(599),Ht=n(579),Gt=function(e){var t=e.currencySymbol,n=e.updateValue,r=e.errors,i=e.service,o=i.enabled,a=i.name,c=i.adjustment,u=i.adjustment_type,l=Boolean(r[i.id]),d="service_"+Object(C.snakeCase)(i.name);return s.a.createElement("div",{className:at()("shipping-services__entry",{"wcc-error":l})},s.a.createElement("label",{className:"shipping-services__entry-title",htmlFor:d},s.a.createElement(Vt.a,{id:d,checked:o,onChange:function(e){return n("enabled",e.target.checked)}}),s.a.createElement("span",null,a)),l?s.a.createElement(ht.a,{icon:"notice"}):null,s.a.createElement(ze,{disabled:!o,value:c,onChange:function(e){return n("adjustment",e.target.value)},isError:l}),s.a.createElement(Ht.a,{disabled:!o,value:u,onChange:function(e){return n("adjustment_type",e.target.value)}},s.a.createElement("option",{value:"flat"},t),s.a.createElement("option",{value:"percentage"},"%")))};Gt.propTypes={service:He.a.shape({id:He.a.string.isRequired,name:He.a.string.isRequired,enabled:He.a.bool,adjustment:He.a.oneOfType([He.a.string,He.a.number]),adjustment_type:He.a.string}),currencySymbol:He.a.string.isRequired,updateValue:He.a.func.isRequired,settingsKey:He.a.string.isRequired},Gt.defaultProps={enabled:!1,adjustment:0,adjustment_type:"flat"};var Ut=Gt,Bt=n(600),Ft=function(e){var t=e.title,n=e.deliveryEstimate,r=e.services,i=e.updateValue,o=e.errors,a=e.translate,c=r.reduce(function(e,t){return e+(t.enabled?1:0)},0),u=function(e){return e.stopPropagation()},l=function(e){return function(e,t,n){n.forEach(function(n){t([n.id,"enabled"],e.target.checked)})}(e,i,r)},d=function(e,t,n){return t===e.length?n("All services selected"):n("%(numSelected)d service selected","%(numSelected)d services selected",{count:t,args:{numSelected:t}})}(r,c,a);return s.a.createElement("div",{className:at()({"is-error":!Object(C.isEmpty)(o)})},s.a.createElement(Bt.a,{header:s.a.createElement("div",null,s.a.createElement(Vt.a,{checked:r.length===c,partialChecked:Boolean(c),onChange:l,onClick:u}),t,n&&s.a.createElement("small",{className:"shipping-services__delivery-estimate"},"(",n,")")),summary:d,expandedSummary:d,clickableHeader:!0,compact:!0,screenReaderText:a("Expand Services")},s.a.createElement("div",{className:"shipping-services__entry shipping-services__entry-header-container"},s.a.createElement("span",{className:"shipping-services__entry-header"},a("Service")),s.a.createElement("span",{className:"shipping-services__entry-header shipping-services__entry-price-adjustment"},a("Price adjustment"),s.a.createElement(Wt.a,{position:"top left",text:a("Increase the rates calculated by the carrier to account for packaging and handling costs. You can also add a negative amount to save your customers money.")},s.a.createElement("span",null,s.a.createElement(ht.a,{icon:"info-outline",size:18}))))),r.map(function(t,n){return s.a.createElement(Ut,We()({},e,{service:t},{updateValue:function(e,n){return i([t.id].concat(e),n)},key:n}))})))};Ft.propTypes={title:He.a.string.isRequired,deliveryEstimate:He.a.string,services:He.a.arrayOf(He.a.shape({id:He.a.string.isRequired,name:He.a.string.isRequired,enabled:He.a.bool,adjustment:He.a.oneOfType([He.a.string,He.a.number]),adjustment_type:He.a.string})).isRequired,updateValue:He.a.func.isRequired};var zt=Object(y.localize)(Ft),qt=function(e){var t=e.title,n=e.description,r=e.services,i=e.settings,o=e.currencySymbol,a=e.updateValue,c=e.settingsKey,u=e.errors,l=e.generalError,d=r.map(function(e){return Object.assign({},e,i[e.id])}),f=Object(C.groupBy)(d,function(e){return e.group});return s.a.createElement("div",{className:"shipping-services"},s.a.createElement($e.a,{dangerouslySetInnerHTML:Object(Ze.a)(t)}),s.a.createElement(Ke.a,{text:n}),s.a.createElement("div",{className:at()("shipping-services__inner",{"is-error":l})},Object.keys(f).sort().map(function(e){var t=Object(C.map)(f[e],"id"),n={};return t.forEach(function(e){u[e]&&(n[e]=u[e])}),s.a.createElement(zt,{key:e,title:f[e][0].group_name,deliveryEstimate:f[e][0].group_estimate||"",services:f[e],currencySymbol:o,updateValue:a,settingsKey:c,errors:n})})),l?s.a.createElement(qe.a,{text:l}):null)};qt.propTypes={title:He.a.string,description:He.a.string,services:He.a.array.isRequired,settings:He.a.object.isRequired,currencySymbol:He.a.string,updateValue:He.a.func.isRequired,settingsKey:He.a.string.isRequired},qt.defaultProps={currencySymbol:"$",settings:{}};var Kt=qt,Zt=function(e){var t=e.formData,n=e.layout,r=e.schema,i=e.formValueActions,o=e.storeOptions,a=e.errors,c=e.translate,u=(e.site,e.shippingClasses),l=n.key?n.key:n,d=function(e){return i.updateField(l,e)},f=t[l],p=r.properties[l],h=n.type||p.type||"",E=!!a[""]&&(a[""].value||n.validation_hint||"");switch(h){case"radios":return s.a.createElement(it,{valuesMap:n.titleMap,title:p.title,description:p.description,value:f,setValue:d,error:E});case"shipping_services":return s.a.createElement(Kt,{services:r.definitions.services,title:p.title,description:p.description,settings:f,currencySymbol:o.currency_symbol,updateValue:function(e,t){return i.updateField([l].concat(e),t)},settingsKey:l,errors:a,generalError:E});case"packages":return s.a.createElement("div",null,s.a.createElement($e.a,null,c("Saved Packages")),c("Add and edit saved packages using the {{a}}Packaging Manager{{/a}}.",{components:{a:s.a.createElement("a",{href:"admin.php?page=wc-settings&tab=shipping§ion=woocommerce-services-settings"})}}));case"text":return s.a.createElement(Xe,{id:l,title:n.title,className:n.class,value:f||n.description});case"number":return s.a.createElement(Ye,{id:l,title:p.title,description:p.description,value:f,placeholder:n.placeholder,updateValue:d,error:E});case"shipping_classes":return s.a.createElement(Dt,{id:l,title:p.title,description:p.description,value:f,options:u,updateValue:d});default:return s.a.createElement(et.a,{id:l,title:p.title,description:p.description,value:f,placeholder:n.placeholder,updateValue:d,error:E})}};Zt.propTypes={layout:He.a.oneOfType([He.a.string.isRequired,He.a.object.isRequired]).isRequired,schema:He.a.object.isRequired,storeOptions:He.a.object.isRequired,formValueActions:He.a.object.isRequired,errors:He.a.object};var Qt=Object(y.localize)(Zt),Yt=n(587),$t=function(e){var t=e.group,n=e.errors,r=function(){return t.items.map(function(t,r){return s.a.createElement("div",{className:"settings-form__row",key:r},function(t){var r=t.key?t.key:t;return s.a.createElement(Qt,We()({},e,{key:r,layout:t,errors:n[r]||{}}))}(t))})};switch(t.type){case"fieldset":return s.a.createElement(Yt.a,{heading:t.title},r());case"actions":return null;default:return s.a.createElement("div",null,r())}};$t.propTypes={group:He.a.shape({title:He.a.string,items:He.a.array}),schema:He.a.object.isRequired,storeOptions:He.a.object.isRequired,errors:He.a.object,site:He.a.object.isRequired};var Jt=$t,Xt=n(548),en=function(e,t,n,r){return{type:ge.x,siteId:e,methodId:t,methodType:"wc_services_usps",path:n,value:r}},tn=n(114),nn=n.n(tn),rn=n(765),on=n.n(rn),an=n(613),cn={level:"error"};Object.freeze(cn);var sn=function(e,t,n){var r=nn()(e,{greedy:!0}),i=r(Object(an.a)(e,t)),o={};return!i&&r.errors&&r.errors.length&&r.errors.forEach(function(e){var t=function(e){var t=on.a.parse(e);return"data"===t[0]?t[1]||null:t[0]}(e.field);t&&!n[t]||(o[e.field]=cn)}),n.services&&!Object(C.some)(t.services,"enabled")&&(o.services=Object(y.translate)("Select at least one service.")),o},un=Object(I.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=fe(e,t);if(!n||!n.methods||!n.methods.currentlyEditingId)return{};var r=Ae(e,t),i=Object(P.a)(e,r.methodType,t).formSchema,o=Object(C.omit)(n.methods.currentlyEditingChanges,["id","methodType","enabled"]),a=Object(C.mapValues)(o,function(){return!0});return function(e){if(!Object(C.isObject)(e))return{};var t={};return Object.keys(e).forEach(function(n){var r=on.a.parse(n),i=r;"data"===r[0]&&(i=r.slice(1));var o=t;i.forEach(function(e){o[e]||(o[e]={}),o=o[e]}),o[""]=e[n]}),t}(sn(i,r,a))},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return[t,fe(e,t)]}),ln=n(560),dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return Object(C.get)(e,["extensions","woocommerce","sites",t,"shippingClasses"],!1)},fn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return Object(C.isArray)(dn(e,t))},pn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e),n=dn(e,t);return Object(C.isArray)(n)?n:[]},hn=function(e){return s.a.createElement("div",null,e.layout.map(function(t,n){return r=n,s.a.createElement(Jt,We()({},e,{group:e.layout[r],key:r}));var r}))};hn.propTypes={siteId:He.a.number.isRequired,method:He.a.object.isRequired};var En,On=Object(_.b)(function(e,t){var n=Object(P.a)(e,t.method.methodType,t.siteId),r=n.storeOptions,i=n.formSchema,o=n.formLayout;return{formData:Ae(e,t.siteId),shippingClasses:pn(e,t.siteId),errors:un(e,t.siteId),storeOptions:r,schema:i,layout:o,site:Object(ln.a)(e,t.siteId)}},function(e,t){return{noticeActions:Object(Ge.b)({successNotice:Xt.d,errorNotice:Xt.a},e),formValueActions:{updateField:function(n,r){return e(en(t.siteId,t.method.id,n,r))}}}})(hn),bn=n(542),mn=n(671),vn=function(e,t){return{type:B.wb,siteId:e,methodId:t}},gn=n(552),_n=n(554),yn=function(e){function t(e){var n;return l()(this,t),n=h()(this,O()(t).call(this,e)),a()(m()(n),"onSave",function(){var e=n.props.translate;n.setState({isSaving:!0}),n.props.saveChanges(function(t){n.setState({isSaving:!1}),t(Object(Xt.d)(e("Your changes have been saved."),{duration:4e3}))},function(t,r,i){var o=i.error;n.setState({isSaving:!1}),o&&t(Object(Xt.a)(Object(C.isString)(o)?o:e("There was a problem with one or more entries. Please fix the errors below and try saving again.")))})}),a()(m()(n),"renderPlaceholder",function(){return s.a.createElement("div",{className:"settings__placeholder"},s.a.createElement(Yt.a,{heading:" "},s.a.createElement(et.a,{id:"placeholder1",title:"Lorem",value:""}),s.a.createElement(et.a,{id:"placeholder1",title:"Ipsum",value:""})))}),n.state={isSaving:!1},n}return g()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.siteId,n=e.method,r=e.translate,i=e.hasEdits,o=e.anyErrors,a=e.isLoaded;return s.a.createElement("div",null,s.a.createElement(Le.a,{id:"notices",notices:xe.a.list}),n?s.a.createElement(On,{method:n,siteId:t}):this.renderPlaceholder(),s.a.createElement(_n.a,{className:"settings__button-row"},s.a.createElement(bn.a,{primary:!0,onClick:this.onSave,busy:this.state.isSaving,disabled:this.state.isSaving||!a||o},r("Save changes"))),s.a.createElement(mn.a,{isChanged:i}))}}]),t}(c.Component),Cn=function(e){var t=fe(e).methods;return!Object(C.isEmpty)(t.currentlyEditingChanges)||!(Object(C.isEmpty)(t.updates)||Object(C.isEmpty)(t.updates[0]))},jn=function(e,t){return function(n,r){if(Cn(r())){var i=Object(R.a)(r()),o=Ae(r());n(function(e){return function(t,n){var r=Ae(n(),e);if(Object(C.startsWith)(r.methodType,"wc_services")){var i=Object(C.omit)(r,["id","enabled","methodType"]);if(Object(C.forEach)(i,function(n,i){return t(en(e,r.id,i,n))}),!Object(C.isEmpty)(un(n(),e)))return t(Object(Xt.a)(Object(y.translate)("There was a problem with one or more entries. Please fix the errors below and try saving again."),{duration:5e3}))}t({type:B.rb,siteId:e})}}(i)),Ae(r())?n(t):(n(vn(i,o.id)),n(function(e,t,n,r,i,o){return{type:ge.Rb,siteId:e,methodId:t,methodType:n,method:r,successAction:i,failureAction:o}}(i,o.id,o.methodType,Object(C.omit)(o,["id","methodType","enabled"]),e,t)))}else n(e)}},Sn=Object(_.b)(function(e){var t=Object(R.a)(e),n=A(e,t)&&fn(e,t);return{siteId:t,isLoaded:n,method:n&&Ae(e),hasEdits:n&&Cn(e),anyErrors:n&&Object(gn.a)(un(e))}},function(e){return{saveChanges:function(){return e(jn.apply(void 0,arguments))}}})(Object(y.localize)(yn)),In=(n(543),n(556),function(e,t,n){return{type:ge.Nb,siteId:e,methodId:t,data:n}}),Rn=(En={},a()(En,ge.Qb,function(e,t){var n=e.siteId,r=e.data;t(In(n,r.methodId,r))}),a()(En,B.Fb,function(e,t){var n=e.siteId,r=e.originatingAction.methodId;t(vn(n,r))}),En),Tn=function(e){var t=e.dispatch;return function(e){return function(n){e(n);var r=Rn[n.type];r&&r(n,t)}}},Nn={};Nn[B.nb]=function(e,t){var n=t.data,r=i()({},e);return n.forEach(function(e){r[e.id]=i()({id:e.id,order:e.order,enabled:e.enabled,methodType:e.method_id},Object(C.mapValues)(e.settings,"value"))}),r},Nn[B.Fb]=function(e,t){var n=t.data,r=t.originatingAction;return n.id?Nn[B.nb](e,{data:[n]}):i()({},e,a()({},r.methodId,i()({},e[r.methodId],{id:r.methodId,methodType:r.methodType},r.method)))},Nn[ge.Qb]=function(e,t){var n=t.instanceId,r=t.data;return i()({},e,a()({},n,i()({},e[n],r.formData)))};var Mn,Pn=Object(U.b)({},Nn),wn=function(e){return 0!==e.id?e:i()({},e,{name:Object(y.translate)("Locations not covered by your other zones")})},kn=Object(U.b)(null,(Mn={},a()(Mn,B.mb,function(e,t){var n=t.zoneId;if(!Object(C.isArray)(e))return e;var r=Object(C.findIndex)(e,{id:n});if(-1===r)return e;var o=i()({},e[r],{methodIds:M.b});return[].concat(S()(e.slice(0,r)),[o],S()(e.slice(r+1)))}),a()(Mn,B.nb,function(e,t){var n=t.zoneId,r=t.data;if(!Object(C.isArray)(e))return e;var o=Object(C.findIndex)(e,{id:n});if(-1===o)return e;var a=i()({},e[o],{methodIds:r.map(function(e){return e.id})});return[].concat(S()(e.slice(0,o)),[a],S()(e.slice(o+1)))}),a()(Mn,B.Ib,function(e,t){var n=t.data,r=t.originatingAction.zone;if(n=wn(n),!Object(C.isArray)(e))return e;if("number"!==typeof r.id)return[].concat(S()(e),[i()({},n,{methodIds:[]})]);var o=Object(C.findIndex)(e,{id:r.id});return-1===o?e:[].concat(S()(e.slice(0,o)),[i()({},n,{methodIds:e[o].methodIds})],S()(e.slice(o+1)))}),a()(Mn,B.Z,function(e,t){var n=t.originatingAction.zone;if(!Object(C.isArray)(e))return e;var r=Object(C.findIndex)(e,{id:n.id});return-1===r?e:[].concat(S()(e.slice(0,r)),S()(e.slice(r+1)))}),a()(Mn,B.Fb,function(e,t){var n=t.data,r=t.originatingAction.zoneId;if(!Object(C.isArray)(e))return e;var o=Object(C.findIndex)(e,{id:r});return-1===o?e:-1!==e[o].methodIds.indexOf(n.id)?e:[].concat(S()(e.slice(0,o)),[i()({},e[o],{methodIds:[].concat(S()(e[o].methodIds),[n.id])})],S()(e.slice(o+1)))}),a()(Mn,B.ub,function(e,t){var n=t.originatingAction,r=n.zoneId,o=n.methodId;if(!Object(C.isArray)(e))return e;var a=Object(C.findIndex)(e,{id:r});if(-1===a)return e;var c=e[a].methodIds.indexOf(o);return-1===c?e:[].concat(S()(e.slice(0,a)),[i()({},e[a],{methodIds:[].concat(S()(e[a].methodIds.slice(0,c)),S()(e[a].methodIds.slice(c+1)))})],S()(e.slice(a+1)))}),a()(Mn,B.U,function(){return M.b}),a()(Mn,B.V,function(e,t){return t.data.map(wn)}),Mn)),An={};An[ge.Pb]=function(e,t){var n=t.instanceId;return i()({},e,a()({},n,M.b))},An[ge.Qb]=function(e,t){var n=t.instanceId;return i()({},e,a()({},n,!0))},An[B.Fb]=function(e,t){var n=t.data;return An[ge.Qb](e,{instanceId:n.id})};var Ln=Object(U.b)({},An),xn={creates:[],updates:[],deletes:[],currentlyEditingId:null},Dn={};Dn[B.W]=function(e){var t={index:(e.creates||[]).length};return Dn[B.Gb](e,{id:t})},Dn[B.X]=function(e){return Dn[B.Y](i()({},e,{currentlyEditingChanges:{}}))},Dn[B.Y]=function(e){var t=e.currentlyEditingChanges,n=e.currentlyEditingId;if(null===n)return e;if(Object(C.isEmpty)(Object(C.omit)(t,"methods","locations"))&&Object(C.every)(t.methods,C.isEmpty)&&(!t.locations||t.locations.pristine))return i()({},e,{currentlyEditingId:null});var r=pe({id:n}),o=!1,c=e[r].map(function(e){return Object(C.isEqual)(n,e.id)?(o=!0,i()({},e,t,{methods:Te(e.methods,t.methods)})):e});return o||c.push(i()({id:n},t)),i()({},e,a()({currentlyEditingId:null},r,c))},Dn[B.ab]=function(e,t){var n=t.name;return null===e.currentlyEditingId?e:i()({},e,{currentlyEditingChanges:i()({},e.currentlyEditingChanges,{name:n})})},Dn[B.Gb]=function(e,t){var n=t.id;return i()({},e,{currentlyEditingId:n,currentlyEditingChanges:{methods:je,locations:Q}})},Dn[B.Hb]=function(e,t){var n=t.id,r=i()({},e,{currentlyEditingId:null}),o=pe({id:n});return"updates"===o&&(r.deletes=[].concat(S()(e.deletes),[{id:n}])),r[o]=Object(C.reject)(e[o],{id:n}),r},Dn[B.Ib]=function(e,t){var n=t.data;return t.originatingAction.zone.id!==e.currentlyEditingId?e:i()({},e,{currentlyEditingId:n.id,currentlyEditingChanges:Object(C.pick)(e.currentlyEditingChanges,"locations","methods")})},Dn[B.Z]=function(e,t){return t.originatingAction.zone.id!==e.currentlyEditingId?e:i()({},e,{currentlyEditingId:null})},Dn[B.lb]=function(e,t){return t.originatingAction.zoneId!==e.currentlyEditingId?e:i()({},e,{currentlyEditingChanges:i()({},e.currentlyEditingChanges,{locations:Q})})};var Wn,Vn=Object(U.b)(xn,Dn),Hn=function(e,t){var n=Vn(e,t);if(null!==n.currentlyEditingId){var r=function(e,t){if(Se[t.type])return Re(e,t);var n=t.methodId,r=t.methodType;if(n&&r&&Ce[r]){var o=e.currentlyEditingChanges,a=Ce[r](o,t);if(a!==o)return i()({},e,{currentlyEditingChanges:a})}return e}(n.currentlyEditingChanges.methods,t),o=function(e,t){var n=$(e,t);return e.temporaryChanges&&n.temporaryChanges&&e.temporaryChanges!==n.temporaryChanges&&(n.temporaryChanges.pristine=!1),n}(n.currentlyEditingChanges.locations,t);return i()({},n,{currentlyEditingChanges:i()({},n.currentlyEditingChanges,{methods:r,locations:o})})}return n},Gn=n(591),Un=n(612),Bn=function(e){return function(t,n){if(!fn(n(),e)&&!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(R.a)(e);return M.b===dn(e,t)}(n(),e))return t({type:B.S,siteId:e})}},Fn=Object(U.b)(null,(Wn={},a()(Wn,ge.Mb,function(){return M.b}),a()(Wn,ge.Nb,function(e,t){return t.data}),Wn)),zn=Object(U.d)("methodId",Fn),qn=n(633),Kn=n(116),Zn={};Zn[B.S]=function(){return M.b},Zn[B.T]=function(e,t){return t.data};var Qn=Object(U.b)({},Zn),Yn=n(609),$n=n(635),Jn=n(639),Xn=a()({},B.S,[Object(Yn.a)({fetch:function(e){var t=e.siteId;return Object($n.a)(t,e).get("products/shipping_classes")},onSuccess:function(e,t){var n=e.siteId,r=t.data;return function(e){e(function(e,t){return{type:B.T,siteId:e,data:t}}(n,r))}},onError:function(e,t){return function(t){t(function(e,t,n){var r=e.siteId,i="query-shipping-classes-retry";return Object(Xt.a)(Object(y.translate)("Could not retrieve the shipping classes."),{id:i,button:Object(y.translate)("Try again"),onClick:function(e){e.preventDefault(),n({type:B.S,siteId:r}),n(Object(Xt.c)(i))}})}(e,0,t))}},fromApi:Jn.a})]),er=n(610);t.default=function(e){var t=e.methodId,n=e.instanceId;return{getReducer:function(){return Object(U.a)({extensions:Object(U.a)({woocommerce:Object(U.a)({sites:Object(U.a)({1:Object(U.a)({shippingZoneMethods:Pn,shippingZones:kn,shippingZoneLocations:function(e){return e||null},shippingMethods:function(e){return e||null},shippingClasses:Qn})}),ui:Object(U.a)({shipping:Object(U.a)({1:Object(U.a)({zones:Hn})})}),woocommerceServices:Object(U.a)({1:Object(U.a)({shippingZoneMethodSettings:Ln,shippingMethodSchemas:zn})})})}),ui:function(e){return e||null},notices:Gn.a})},getInitialState:function(){return{extensions:{woocommerce:{sites:{1:{shippingMethods:[{id:t}],shippingZones:[{id:0,order:0,methodIds:[n]}],shippingZoneLocations:{0:{continent:[],country:[],state:[],postcode:[]}},shippingZoneMethods:a()({},n,{id:n,methodType:t})}},ui:{shipping:{1:{zones:i()({},xn,{currentlyEditingId:0,currentlyEditingChanges:{methods:i()({},je,{currentlyEditingId:n,currentlyEditingChanges:{}}),locations:Q}})}}}}},ui:{selectedSiteId:1}}},getStateForPersisting:function(e){return delete e.notices,e},getInitialActions:function(){return[Object(Un.a)(0,t,n),Bn(0)]},getMiddlewares:function(){return[Tn,Object(Kn.b)(Object(er.a)(qn.a,Xn))]},getStateKey:function(){return"wcs-settings-".concat(t,"-").concat(n)},View:function(){return s.a.createElement(Sn,null)}}}}}]);
|
dist/chunks/{438aea1df434d9920a53.min.js → 5a0f6593dcb238369cda.min.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[151],{582:function(e,i,r){"use strict";var o=Object.prototype.hasOwnProperty,n=function(){for(var e=[],i=0;i<256;++i)e.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase());return e}();i.arrayToObject=function(e,i){for(var r=i&&i.plainObjects?Object.create(null):{},o=0;o<e.length;++o)"undefined"!==typeof e[o]&&(r[o]=e[o]);return r},i.merge=function(e,r,n){if(!r)return e;if("object"!==typeof r){if(Array.isArray(e))e.push(r);else{if("object"!==typeof e)return[e,r];(n.plainObjects||n.allowPrototypes||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if("object"!==typeof e)return[e].concat(r);var t=e;return Array.isArray(e)&&!Array.isArray(r)&&(t=i.arrayToObject(e,n)),Array.isArray(e)&&Array.isArray(r)?(r.forEach(function(r,t){o.call(e,t)?e[t]&&"object"===typeof e[t]?e[t]=i.merge(e[t],r,n):e.push(r):e[t]=r}),e):Object.keys(r).reduce(function(e,t){var c=r[t];return o.call(e,t)?e[t]=i.merge(e[t],c,n):e[t]=c,e},t)},i.assign=function(e,i){return Object.keys(i).reduce(function(e,r){return e[r]=i[r],e},e)},i.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(i){return e}},i.encode=function(e){if(0===e.length)return e;for(var i="string"===typeof e?e:String(e),r="",o=0;o<i.length;++o){var t=i.charCodeAt(o);45===t||46===t||95===t||126===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?r+=i.charAt(o):t<128?r+=n[t]:t<2048?r+=n[192|t>>6]+n[128|63&t]:t<55296||t>=57344?r+=n[224|t>>12]+n[128|t>>6&63]+n[128|63&t]:(o+=1,t=65536+((1023&t)<<10|1023&i.charCodeAt(o)),r+=n[240|t>>18]+n[128|t>>12&63]+n[128|t>>6&63]+n[128|63&t])}return r},i.compact=function(e){for(var i=[{obj:{o:e},prop:"o"}],r=[],o=0;o<i.length;++o)for(var n=i[o],t=n.obj[n.prop],c=Object.keys(t),l=0;l<c.length;++l){var s=c[l],a=t[s];"object"===typeof a&&null!==a&&-1===r.indexOf(a)&&(i.push({obj:t,prop:s}),r.push(a))}return function(e){for(var i;e.length;){var r=e.pop();if(i=r.obj[r.prop],Array.isArray(i)){for(var o=[],n=0;n<i.length;++n)"undefined"!==typeof i[n]&&o.push(i[n]);r.obj[r.prop]=o}}return i}(i)},i.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},i.isBuffer=function(e){return null!==e&&"undefined"!==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},583:function(e,i,r){"use strict";var o=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},584:function(e,i,r){"use strict";var o=r(650);Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,c.getCurrencyDefaults)(i);if(!o||isNaN(e))return null;var l=(0,n.default)({},o,r),s=l.decimal,a=l.grouping,p=l.precision,u=l.symbol,g=e<0?"-":"",m=(0,t.numberFormat)(Math.abs(e),{decimals:p,thousandsSep:a,decPoint:s});return"".concat(g).concat(u).concat(m)},i.getCurrencyObject=function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,c.getCurrencyDefaults)(i);if(!o||isNaN(e))return null;var l=(0,n.default)({},o,r),s=l.decimal,a=l.grouping,p=l.precision,u=l.symbol,g=e<0?"-":"",m=Math.abs(e),f=Math.floor(m),y=(0,t.numberFormat)(f,{decimals:0,thousandsSep:a,decPoint:s}),d=p>0?(0,t.numberFormat)(m-f,{decimals:p,thousandsSep:a,decPoint:s}).slice(1):"";return{sign:g,symbol:u,integer:y,fraction:d}},Object.defineProperty(i,"getCurrencyDefaults",{enumerable:!0,get:function(){return c.getCurrencyDefaults}}),Object.defineProperty(i,"CURRENCIES",{enumerable:!0,get:function(){return c.CURRENCIES}});var n=o(r(36)),t=r(35),c=r(711)},606:function(e,i,r){"use strict";var o=r(617),n=r(618),t=r(583);e.exports={formats:t,parse:n,stringify:o}},607:function(e,i,r){"use strict";i.__esModule=!0,i.default=function(e,i){if(e===i)return!0;if("object"!==typeof e||null===e||"object"!==typeof i||null===i)return!1;var r=Object.keys(e),o=Object.keys(i);if(r.length!==o.length)return!1;for(var n=Object.prototype.hasOwnProperty.bind(i),t=0;t<r.length;t++)if(!n(r[t])||e[r[t]]!==i[r[t]])return!1;return!0},e.exports=i.default},617:function(e,i,r){"use strict";var o=r(582),n=r(583),t={brackets:function(e){return e+"[]"},indices:function(e,i){return e+"["+i+"]"},repeat:function(e){return e}},c=Date.prototype.toISOString,l={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(i,r,n,t,c,s,a,p,u,g,m,f){var y=i;if("function"===typeof a)y=a(r,y);else if(y instanceof Date)y=g(y);else if(null===y){if(t)return s&&!f?s(r,l.encoder):r;y=""}if("string"===typeof y||"number"===typeof y||"boolean"===typeof y||o.isBuffer(y))return s?[m(f?r:s(r,l.encoder))+"="+m(s(y,l.encoder))]:[m(r)+"="+m(String(y))];var d,b=[];if("undefined"===typeof y)return b;if(Array.isArray(a))d=a;else{var v=Object.keys(y);d=p?v.sort(p):v}for(var h=0;h<d.length;++h){var O=d[h];c&&null===y[O]||(b=Array.isArray(y)?b.concat(e(y[O],n(r,O),n,t,c,s,a,p,u,g,m,f)):b.concat(e(y[O],r+(u?"."+O:"["+O+"]"),n,t,c,s,a,p,u,g,m,f)))}return b};e.exports=function(e,i){var r=e,c=i?o.assign({},i):{};if(null!==c.encoder&&void 0!==c.encoder&&"function"!==typeof c.encoder)throw new TypeError("Encoder has to be a function.");var a="undefined"===typeof c.delimiter?l.delimiter:c.delimiter,p="boolean"===typeof c.strictNullHandling?c.strictNullHandling:l.strictNullHandling,u="boolean"===typeof c.skipNulls?c.skipNulls:l.skipNulls,g="boolean"===typeof c.encode?c.encode:l.encode,m="function"===typeof c.encoder?c.encoder:l.encoder,f="function"===typeof c.sort?c.sort:null,y="undefined"!==typeof c.allowDots&&c.allowDots,d="function"===typeof c.serializeDate?c.serializeDate:l.serializeDate,b="boolean"===typeof c.encodeValuesOnly?c.encodeValuesOnly:l.encodeValuesOnly;if("undefined"===typeof c.format)c.format=n.default;else if(!Object.prototype.hasOwnProperty.call(n.formatters,c.format))throw new TypeError("Unknown format option provided.");var v,h,O=n.formatters[c.format];"function"===typeof c.filter?r=(h=c.filter)("",r):Array.isArray(c.filter)&&(v=h=c.filter);var j,D=[];if("object"!==typeof r||null===r)return"";j=c.arrayFormat in t?c.arrayFormat:"indices"in c?c.indices?"indices":"repeat":"indices";var S=t[j];v||(v=Object.keys(r)),f&&v.sort(f);for(var N=0;N<v.length;++N){var R=v[N];u&&null===r[R]||(D=D.concat(s(r[R],R,S,p,u,g?m:null,h,f,y,d,O,b)))}var A=D.join(a),C=!0===c.addQueryPrefix?"?":"";return A.length>0?C+A:""}},618:function(e,i,r){"use strict";var o=r(582),n=Object.prototype.hasOwnProperty,t={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},c=function(e,i,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,t=/(\[[^[\]]*])/g,c=/(\[[^[\]]*])/.exec(o),l=c?o.slice(0,c.index):o,s=[];if(l){if(!r.plainObjects&&n.call(Object.prototype,l)&&!r.allowPrototypes)return;s.push(l)}for(var a=0;null!==(c=t.exec(o))&&a<r.depth;){if(a+=1,!r.plainObjects&&n.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(c[1])}return c&&s.push("["+o.slice(c.index)+"]"),function(e,i,r){for(var o=i,n=e.length-1;n>=0;--n){var t,c=e[n];if("[]"===c)t=(t=[]).concat(o);else{t=r.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,s=parseInt(l,10);!isNaN(s)&&c!==l&&String(s)===l&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(t=[])[s]=o:t[l]=o}o=t}return o}(s,i,r)}};e.exports=function(e,i){var r=i?o.assign({},i):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!==typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"===typeof r.delimiter||o.isRegExp(r.delimiter)?r.delimiter:t.delimiter,r.depth="number"===typeof r.depth?r.depth:t.depth,r.arrayLimit="number"===typeof r.arrayLimit?r.arrayLimit:t.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"===typeof r.decoder?r.decoder:t.decoder,r.allowDots="boolean"===typeof r.allowDots?r.allowDots:t.allowDots,r.plainObjects="boolean"===typeof r.plainObjects?r.plainObjects:t.plainObjects,r.allowPrototypes="boolean"===typeof r.allowPrototypes?r.allowPrototypes:t.allowPrototypes,r.parameterLimit="number"===typeof r.parameterLimit?r.parameterLimit:t.parameterLimit,r.strictNullHandling="boolean"===typeof r.strictNullHandling?r.strictNullHandling:t.strictNullHandling,""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var l="string"===typeof e?function(e,i){for(var r={},o=i.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=i.parameterLimit===1/0?void 0:i.parameterLimit,l=o.split(i.delimiter,c),s=0;s<l.length;++s){var a,p,u=l[s],g=u.indexOf("]="),m=-1===g?u.indexOf("="):g+1;-1===m?(a=i.decoder(u,t.decoder),p=i.strictNullHandling?null:""):(a=i.decoder(u.slice(0,m),t.decoder),p=i.decoder(u.slice(m+1),t.decoder)),n.call(r,a)?r[a]=[].concat(r[a]).concat(p):r[a]=p}return r}(e,r):e,s=r.plainObjects?Object.create(null):{},a=Object.keys(l),p=0;p<a.length;++p){var u=a[p],g=c(u,l[u],r);s=o.merge(s,g,r)}return o.compact(s)}},650:function(e,i){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},653:function(e,i,r){var o="undefined"!==typeof JSON?JSON:r(654);e.exports=function(e,i){i||(i={}),"function"===typeof i&&(i={cmp:i});var r=i.space||"";"number"===typeof r&&(r=Array(r+1).join(" "));var c,l="boolean"===typeof i.cycles&&i.cycles,s=i.replacer||function(e,i){return i},a=i.cmp&&(c=i.cmp,function(e){return function(i,r){var o={key:i,value:e[i]},n={key:r,value:e[r]};return c(o,n)}}),p=[];return function e(i,c,u,g){var m=r?"\n"+new Array(g+1).join(r):"",f=r?": ":":";if(u&&u.toJSON&&"function"===typeof u.toJSON&&(u=u.toJSON()),void 0!==(u=s.call(i,c,u))){if("object"!==typeof u||null===u)return o.stringify(u);if(n(u)){for(var y=[],d=0;d<u.length;d++){var b=e(u,d,u[d],g+1)||o.stringify(null);y.push(m+r+b)}return"["+y.join(",")+m+"]"}if(-1!==p.indexOf(u)){if(l)return o.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}p.push(u);var v=t(u).sort(a&&a(u));for(y=[],d=0;d<v.length;d++){var h=e(u,c=v[d],u[c],g+1);if(h){var O=o.stringify(c)+f+h;y.push(m+r+O)}}return p.splice(p.indexOf(u),1),"{"+y.join(",")+m+"}"}}({"":e},"",e,0)};var n=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},t=Object.keys||function(e){var i=Object.prototype.hasOwnProperty||function(){return!0},r=[];for(var o in e)i.call(e,o)&&r.push(o);return r}},654:function(e,i,r){i.parse=r(655),i.stringify=r(656)},655:function(e,i){var r,o,n,t,c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},l=function(e){throw{name:"SyntaxError",message:e,at:r,text:n}},s=function(e){return e&&e!==o&&l("Expected '"+e+"' instead of '"+o+"'"),o=n.charAt(r),r+=1,o},a=function(){var e,i="";for("-"===o&&(i="-",s("-"));o>="0"&&o<="9";)i+=o,s();if("."===o)for(i+=".";s()&&o>="0"&&o<="9";)i+=o;if("e"===o||"E"===o)for(i+=o,s(),"-"!==o&&"+"!==o||(i+=o,s());o>="0"&&o<="9";)i+=o,s();if(e=+i,isFinite(e))return e;l("Bad number")},p=function(){var e,i,r,n="";if('"'===o)for(;s();){if('"'===o)return s(),n;if("\\"===o)if(s(),"u"===o){for(r=0,i=0;i<4&&(e=parseInt(s(),16),isFinite(e));i+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!==typeof c[o])break;n+=c[o]}else n+=o}l("Bad string")},u=function(){for(;o&&o<=" ";)s()};t=function(){switch(u(),o){case"{":return function(){var e,i={};if("{"===o){if(s("{"),u(),"}"===o)return s("}"),i;for(;o;){if(e=p(),u(),s(":"),Object.hasOwnProperty.call(i,e)&&l('Duplicate key "'+e+'"'),i[e]=t(),u(),"}"===o)return s("}"),i;s(","),u()}}l("Bad object")}();case"[":return function(){var e=[];if("["===o){if(s("["),u(),"]"===o)return s("]"),e;for(;o;){if(e.push(t()),u(),"]"===o)return s("]"),e;s(","),u()}}l("Bad array")}();case'"':return p();case"-":return a();default:return o>="0"&&o<="9"?a():function(){switch(o){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}l("Unexpected '"+o+"'")}()}},e.exports=function(e,i){var c;return n=e,r=0,o=" ",c=t(),u(),o&&l("Syntax error"),"function"===typeof i?function e(r,o){var n,t,c=r[o];if(c&&"object"===typeof c)for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(void 0!==(t=e(c,n))?c[n]=t:delete c[n]);return i.call(r,o,c)}({"":c},""):c}},656:function(e,i){var r,o,n,t=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function l(e){return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var i=c[e];return"string"===typeof i?i:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}e.exports=function(e,i,t){var c;if(r="",o="","number"===typeof t)for(c=0;c<t;c+=1)o+=" ";else"string"===typeof t&&(o=t);if(n=i,i&&"function"!==typeof i&&("object"!==typeof i||"number"!==typeof i.length))throw new Error("JSON.stringify");return function e(i,t){var c,s,a,p,u,g=r,m=t[i];switch(m&&"object"===typeof m&&"function"===typeof m.toJSON&&(m=m.toJSON(i)),"function"===typeof n&&(m=n.call(t,i,m)),typeof m){case"string":return l(m);case"number":return isFinite(m)?String(m):"null";case"boolean":case"null":return String(m);case"object":if(!m)return"null";if(r+=o,u=[],"[object Array]"===Object.prototype.toString.apply(m)){for(p=m.length,c=0;c<p;c+=1)u[c]=e(c,m)||"null";return a=0===u.length?"[]":r?"[\n"+r+u.join(",\n"+r)+"\n"+g+"]":"["+u.join(",")+"]",r=g,a}if(n&&"object"===typeof n)for(p=n.length,c=0;c<p;c+=1)"string"===typeof(s=n[c])&&(a=e(s,m))&&u.push(l(s)+(r?": ":":")+a);else for(s in m)Object.prototype.hasOwnProperty.call(m,s)&&(a=e(s,m))&&u.push(l(s)+(r?": ":":")+a);return a=0===u.length?"{}":r?"{\n"+r+u.join(",\n"+r)+"\n"+g+"}":"{"+u.join(",")+"}",r=g,a}}("",{"":e})}},659:function(e,i,r){"use strict";var o,n;o=this,n=function(){var e=0,i=1,r=2,o=3,n=/\s/,t=/<(\w*)>/g;return function(c,l,s){c=c||"";var a,p,u,g=e,m=0,f="",y="",d=!1;for("string"===typeof l?l=function(e){for(var i,r=[];null!==(i=t.exec(e));)r.push(i[1]);return 0!==r.length?r:null}(l):Array.isArray(l)||(l=null),a=0,p=c.length;a<p;a++)switch(u=c[a]){case"<":if(d)break;if(" "==c[a+1]){b(u);break}if(g==e){g=i,b(u);break}if(g==i){m++;break}b(u);break;case">":if(m){m--;break}if(d)break;if(g==i){d=g=0,l&&(y+=">",v());break}if(g==r){d=g=0,y="";break}if(g==o&&"-"==c[a-1]&&"-"==c[a-2]){d=g=0,y="";break}b(u);break;case'"':case"'":g==i&&(d==u?d=!1:d||(d=u)),b(u);break;case"!":if(g==i&&"<"==c[a-1]){g=r;break}b(u);break;case"-":if(g==r&&"-"==c[a-1]&&"!"==c[a-2]){g=o;break}b(u);break;case"E":case"e":if(g==r&&"doctype"==c.substr(a-6,7).toLowerCase()){g=i;break}b(u);break;default:b(u)}function b(r){g==e?f+=r:l&&g==i&&(y+=r)}function v(){var e,i,r,o="",t=!1;e:for(e=0,i=y.length;e<i;e++)switch(r=y[e].toLowerCase()){case"<":break;case">":break e;case"/":t=!0;break;default:if(r.match(n)){if(t)break e}else t=!0,o+=r}-1!==l.indexOf(o)?f+=y:s&&(f+=s),y=""}return f}},"function"===typeof define&&define.amd?define([],n):e.exports?e.exports=n():o.striptags=n()},689:function(e,i,r){"use strict";var o=r(1);i.a=function(e,i){return function(r){var n=e(r),t=r.displayName,c=void 0===t?r.name||"Component":t;return n.displayName="".concat(Object(o.upperFirst)(Object(o.camelCase)(i)),"(").concat(c,")"),n}}},711:function(e,i,r){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getCurrencyDefaults=function(e){return o[e]||{symbol:"$",grouping:",",decimal:".",precision:2}},i.CURRENCIES=void 0;var o={AED:{symbol:"\u062f.\u0625.\u200f",grouping:",",decimal:".",precision:2},AFN:{symbol:"\u060b",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"\u058f",grouping:",",decimal:".",precision:2},ANG:{symbol:"\u0192",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"\u0192",grouping:",",decimal:".",precision:2},AZN:{symbol:"\u20bc",grouping:" ",decimal:",",precision:2},BAM:{symbol:"\u041a\u041c",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"\u09f3",grouping:",",decimal:".",precision:0},BGN:{symbol:"\u043b\u0432.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"\u062f.\u0628.\u200f",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"\u0243",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"\u0440.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"\xa5",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"\u20a1",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"K\u010d",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"\u062f.\u062c.\u200f",grouping:",",decimal:".",precision:2},EGP:{symbol:"\u062c.\u0645.\u200f",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"\u20ac",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"\xa3",grouping:",",decimal:".",precision:2},GBP:{symbol:"\xa3",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"\u20b5",grouping:",",decimal:".",precision:2},GIP:{symbol:"\xa3",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"\u20aa",grouping:",",decimal:".",precision:2},INR:{symbol:"\u20b9",grouping:",",decimal:".",precision:2},IQD:{symbol:"\u062f.\u0639.\u200f",grouping:",",decimal:".",precision:2},IRR:{symbol:"\ufdfc",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"\u062f.\u0627.\u200f",grouping:",",decimal:".",precision:3},JPY:{symbol:"\xa5",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"\u0441\u043e\u043c",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"\u17db",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"\u20a9",grouping:",",decimal:".",precision:0},KRW:{symbol:"\u20a9",grouping:",",decimal:".",precision:0},KWD:{symbol:"\u062f.\u0643.\u200f",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"\u20b8",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"\u20ad",grouping:",",decimal:".",precision:0},LBP:{symbol:"\u0644.\u0644.\u200f",grouping:",",decimal:".",precision:2},LKR:{symbol:"\u20a8",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"\u062f.\u0644.\u200f",grouping:",",decimal:".",precision:3},MAD:{symbol:"\u062f.\u0645.\u200f",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"\u0434\u0435\u043d.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"\u20ae",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"\u20a4",grouping:",",decimal:".",precision:2},MUR:{symbol:"\u20a8",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"\u20a6",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"\u20a8",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"\ufdfc",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"\u20b1",grouping:",",decimal:".",precision:2},PKR:{symbol:"\u20a8",grouping:",",decimal:".",precision:2},PLN:{symbol:"z\u0142",grouping:" ",decimal:",",precision:2},PYG:{symbol:"\u20b2",grouping:".",decimal:",",precision:2},QAR:{symbol:"\ufdfc",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"\u0414\u0438\u043d.",grouping:".",decimal:",",precision:2},RUB:{symbol:"\u20bd",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"\ufdfc",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"\u20a8",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"\xa3\u200f",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"\xa3",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"\u20a1",grouping:",",decimal:".",precision:2},SYP:{symbol:"\xa3",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"\u0e3f",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"\u062f.\u062a.\u200f",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"\u20b4",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"\u0441\u045e\u043c",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"\u20ab",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"\ufdfc",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"\u20a9",grouping:",",decimal:".",precision:2}};i.CURRENCIES=o},712:function(e,i,r){var o=r(527),n=r(649),t=r(713),c=r(714);function l(i){var r="function"===typeof Map?new Map:void 0;return e.exports=l=function(e){if(null===e||!t(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,i)}function i(){return c(e,arguments,o(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n(i,e)},l(i)}e.exports=l},713:function(e,i){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},714:function(e,i,r){var o=r(649);function n(i,r,t){return!function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?e.exports=n=function(e,i,r){var n=[null];n.push.apply(n,i);var t=new(Function.bind.apply(e,n));return r&&o(t,r.prototype),t}:e.exports=n=Reflect.construct,n.apply(null,arguments)}e.exports=n}}]);
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[149],{581:function(e,i,r){"use strict";var o=Object.prototype.hasOwnProperty,n=function(){for(var e=[],i=0;i<256;++i)e.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase());return e}();i.arrayToObject=function(e,i){for(var r=i&&i.plainObjects?Object.create(null):{},o=0;o<e.length;++o)"undefined"!==typeof e[o]&&(r[o]=e[o]);return r},i.merge=function(e,r,n){if(!r)return e;if("object"!==typeof r){if(Array.isArray(e))e.push(r);else{if("object"!==typeof e)return[e,r];(n.plainObjects||n.allowPrototypes||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if("object"!==typeof e)return[e].concat(r);var t=e;return Array.isArray(e)&&!Array.isArray(r)&&(t=i.arrayToObject(e,n)),Array.isArray(e)&&Array.isArray(r)?(r.forEach(function(r,t){o.call(e,t)?e[t]&&"object"===typeof e[t]?e[t]=i.merge(e[t],r,n):e.push(r):e[t]=r}),e):Object.keys(r).reduce(function(e,t){var c=r[t];return o.call(e,t)?e[t]=i.merge(e[t],c,n):e[t]=c,e},t)},i.assign=function(e,i){return Object.keys(i).reduce(function(e,r){return e[r]=i[r],e},e)},i.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(i){return e}},i.encode=function(e){if(0===e.length)return e;for(var i="string"===typeof e?e:String(e),r="",o=0;o<i.length;++o){var t=i.charCodeAt(o);45===t||46===t||95===t||126===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?r+=i.charAt(o):t<128?r+=n[t]:t<2048?r+=n[192|t>>6]+n[128|63&t]:t<55296||t>=57344?r+=n[224|t>>12]+n[128|t>>6&63]+n[128|63&t]:(o+=1,t=65536+((1023&t)<<10|1023&i.charCodeAt(o)),r+=n[240|t>>18]+n[128|t>>12&63]+n[128|t>>6&63]+n[128|63&t])}return r},i.compact=function(e){for(var i=[{obj:{o:e},prop:"o"}],r=[],o=0;o<i.length;++o)for(var n=i[o],t=n.obj[n.prop],c=Object.keys(t),l=0;l<c.length;++l){var s=c[l],a=t[s];"object"===typeof a&&null!==a&&-1===r.indexOf(a)&&(i.push({obj:t,prop:s}),r.push(a))}return function(e){for(var i;e.length;){var r=e.pop();if(i=r.obj[r.prop],Array.isArray(i)){for(var o=[],n=0;n<i.length;++n)"undefined"!==typeof i[n]&&o.push(i[n]);r.obj[r.prop]=o}}return i}(i)},i.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},i.isBuffer=function(e){return null!==e&&"undefined"!==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},582:function(e,i,r){"use strict";var o=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},583:function(e,i,r){"use strict";var o=r(710);Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,c.getCurrencyDefaults)(i);if(!o||isNaN(e))return null;var l=(0,n.default)({},o,r),s=l.decimal,a=l.grouping,p=l.precision,u=l.symbol,g=e<0?"-":"",m=(0,t.numberFormat)(Math.abs(e),{decimals:p,thousandsSep:a,decPoint:s});return"".concat(g).concat(u).concat(m)},i.getCurrencyObject=function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,c.getCurrencyDefaults)(i);if(!o||isNaN(e))return null;var l=(0,n.default)({},o,r),s=l.decimal,a=l.grouping,p=l.precision,u=l.symbol,g=e<0?"-":"",m=Math.abs(e),f=Math.floor(m),y=(0,t.numberFormat)(f,{decimals:0,thousandsSep:a,decPoint:s}),d=p>0?(0,t.numberFormat)(m-f,{decimals:p,thousandsSep:a,decPoint:s}).slice(1):"";return{sign:g,symbol:u,integer:y,fraction:d}},Object.defineProperty(i,"getCurrencyDefaults",{enumerable:!0,get:function(){return c.getCurrencyDefaults}}),Object.defineProperty(i,"CURRENCIES",{enumerable:!0,get:function(){return c.CURRENCIES}});var n=o(r(36)),t=r(35),c=r(711)},606:function(e,i,r){"use strict";var o=r(617),n=r(618),t=r(582);e.exports={formats:t,parse:n,stringify:o}},607:function(e,i,r){"use strict";i.__esModule=!0,i.default=function(e,i){if(e===i)return!0;if("object"!==typeof e||null===e||"object"!==typeof i||null===i)return!1;var r=Object.keys(e),o=Object.keys(i);if(r.length!==o.length)return!1;for(var n=Object.prototype.hasOwnProperty.bind(i),t=0;t<r.length;t++)if(!n(r[t])||e[r[t]]!==i[r[t]])return!1;return!0},e.exports=i.default},617:function(e,i,r){"use strict";var o=r(581),n=r(582),t={brackets:function(e){return e+"[]"},indices:function(e,i){return e+"["+i+"]"},repeat:function(e){return e}},c=Date.prototype.toISOString,l={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(i,r,n,t,c,s,a,p,u,g,m,f){var y=i;if("function"===typeof a)y=a(r,y);else if(y instanceof Date)y=g(y);else if(null===y){if(t)return s&&!f?s(r,l.encoder):r;y=""}if("string"===typeof y||"number"===typeof y||"boolean"===typeof y||o.isBuffer(y))return s?[m(f?r:s(r,l.encoder))+"="+m(s(y,l.encoder))]:[m(r)+"="+m(String(y))];var d,b=[];if("undefined"===typeof y)return b;if(Array.isArray(a))d=a;else{var v=Object.keys(y);d=p?v.sort(p):v}for(var h=0;h<d.length;++h){var O=d[h];c&&null===y[O]||(b=Array.isArray(y)?b.concat(e(y[O],n(r,O),n,t,c,s,a,p,u,g,m,f)):b.concat(e(y[O],r+(u?"."+O:"["+O+"]"),n,t,c,s,a,p,u,g,m,f)))}return b};e.exports=function(e,i){var r=e,c=i?o.assign({},i):{};if(null!==c.encoder&&void 0!==c.encoder&&"function"!==typeof c.encoder)throw new TypeError("Encoder has to be a function.");var a="undefined"===typeof c.delimiter?l.delimiter:c.delimiter,p="boolean"===typeof c.strictNullHandling?c.strictNullHandling:l.strictNullHandling,u="boolean"===typeof c.skipNulls?c.skipNulls:l.skipNulls,g="boolean"===typeof c.encode?c.encode:l.encode,m="function"===typeof c.encoder?c.encoder:l.encoder,f="function"===typeof c.sort?c.sort:null,y="undefined"!==typeof c.allowDots&&c.allowDots,d="function"===typeof c.serializeDate?c.serializeDate:l.serializeDate,b="boolean"===typeof c.encodeValuesOnly?c.encodeValuesOnly:l.encodeValuesOnly;if("undefined"===typeof c.format)c.format=n.default;else if(!Object.prototype.hasOwnProperty.call(n.formatters,c.format))throw new TypeError("Unknown format option provided.");var v,h,O=n.formatters[c.format];"function"===typeof c.filter?r=(h=c.filter)("",r):Array.isArray(c.filter)&&(v=h=c.filter);var j,D=[];if("object"!==typeof r||null===r)return"";j=c.arrayFormat in t?c.arrayFormat:"indices"in c?c.indices?"indices":"repeat":"indices";var S=t[j];v||(v=Object.keys(r)),f&&v.sort(f);for(var N=0;N<v.length;++N){var R=v[N];u&&null===r[R]||(D=D.concat(s(r[R],R,S,p,u,g?m:null,h,f,y,d,O,b)))}var A=D.join(a),C=!0===c.addQueryPrefix?"?":"";return A.length>0?C+A:""}},618:function(e,i,r){"use strict";var o=r(581),n=Object.prototype.hasOwnProperty,t={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},c=function(e,i,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,t=/(\[[^[\]]*])/g,c=/(\[[^[\]]*])/.exec(o),l=c?o.slice(0,c.index):o,s=[];if(l){if(!r.plainObjects&&n.call(Object.prototype,l)&&!r.allowPrototypes)return;s.push(l)}for(var a=0;null!==(c=t.exec(o))&&a<r.depth;){if(a+=1,!r.plainObjects&&n.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(c[1])}return c&&s.push("["+o.slice(c.index)+"]"),function(e,i,r){for(var o=i,n=e.length-1;n>=0;--n){var t,c=e[n];if("[]"===c)t=(t=[]).concat(o);else{t=r.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,s=parseInt(l,10);!isNaN(s)&&c!==l&&String(s)===l&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(t=[])[s]=o:t[l]=o}o=t}return o}(s,i,r)}};e.exports=function(e,i){var r=i?o.assign({},i):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!==typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"===typeof r.delimiter||o.isRegExp(r.delimiter)?r.delimiter:t.delimiter,r.depth="number"===typeof r.depth?r.depth:t.depth,r.arrayLimit="number"===typeof r.arrayLimit?r.arrayLimit:t.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"===typeof r.decoder?r.decoder:t.decoder,r.allowDots="boolean"===typeof r.allowDots?r.allowDots:t.allowDots,r.plainObjects="boolean"===typeof r.plainObjects?r.plainObjects:t.plainObjects,r.allowPrototypes="boolean"===typeof r.allowPrototypes?r.allowPrototypes:t.allowPrototypes,r.parameterLimit="number"===typeof r.parameterLimit?r.parameterLimit:t.parameterLimit,r.strictNullHandling="boolean"===typeof r.strictNullHandling?r.strictNullHandling:t.strictNullHandling,""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var l="string"===typeof e?function(e,i){for(var r={},o=i.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=i.parameterLimit===1/0?void 0:i.parameterLimit,l=o.split(i.delimiter,c),s=0;s<l.length;++s){var a,p,u=l[s],g=u.indexOf("]="),m=-1===g?u.indexOf("="):g+1;-1===m?(a=i.decoder(u,t.decoder),p=i.strictNullHandling?null:""):(a=i.decoder(u.slice(0,m),t.decoder),p=i.decoder(u.slice(m+1),t.decoder)),n.call(r,a)?r[a]=[].concat(r[a]).concat(p):r[a]=p}return r}(e,r):e,s=r.plainObjects?Object.create(null):{},a=Object.keys(l),p=0;p<a.length;++p){var u=a[p],g=c(u,l[u],r);s=o.merge(s,g,r)}return o.compact(s)}},651:function(e,i,r){var o="undefined"!==typeof JSON?JSON:r(652);e.exports=function(e,i){i||(i={}),"function"===typeof i&&(i={cmp:i});var r=i.space||"";"number"===typeof r&&(r=Array(r+1).join(" "));var c,l="boolean"===typeof i.cycles&&i.cycles,s=i.replacer||function(e,i){return i},a=i.cmp&&(c=i.cmp,function(e){return function(i,r){var o={key:i,value:e[i]},n={key:r,value:e[r]};return c(o,n)}}),p=[];return function e(i,c,u,g){var m=r?"\n"+new Array(g+1).join(r):"",f=r?": ":":";if(u&&u.toJSON&&"function"===typeof u.toJSON&&(u=u.toJSON()),void 0!==(u=s.call(i,c,u))){if("object"!==typeof u||null===u)return o.stringify(u);if(n(u)){for(var y=[],d=0;d<u.length;d++){var b=e(u,d,u[d],g+1)||o.stringify(null);y.push(m+r+b)}return"["+y.join(",")+m+"]"}if(-1!==p.indexOf(u)){if(l)return o.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}p.push(u);var v=t(u).sort(a&&a(u));for(y=[],d=0;d<v.length;d++){var h=e(u,c=v[d],u[c],g+1);if(h){var O=o.stringify(c)+f+h;y.push(m+r+O)}}return p.splice(p.indexOf(u),1),"{"+y.join(",")+m+"}"}}({"":e},"",e,0)};var n=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},t=Object.keys||function(e){var i=Object.prototype.hasOwnProperty||function(){return!0},r=[];for(var o in e)i.call(e,o)&&r.push(o);return r}},652:function(e,i,r){i.parse=r(653),i.stringify=r(654)},653:function(e,i){var r,o,n,t,c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},l=function(e){throw{name:"SyntaxError",message:e,at:r,text:n}},s=function(e){return e&&e!==o&&l("Expected '"+e+"' instead of '"+o+"'"),o=n.charAt(r),r+=1,o},a=function(){var e,i="";for("-"===o&&(i="-",s("-"));o>="0"&&o<="9";)i+=o,s();if("."===o)for(i+=".";s()&&o>="0"&&o<="9";)i+=o;if("e"===o||"E"===o)for(i+=o,s(),"-"!==o&&"+"!==o||(i+=o,s());o>="0"&&o<="9";)i+=o,s();if(e=+i,isFinite(e))return e;l("Bad number")},p=function(){var e,i,r,n="";if('"'===o)for(;s();){if('"'===o)return s(),n;if("\\"===o)if(s(),"u"===o){for(r=0,i=0;i<4&&(e=parseInt(s(),16),isFinite(e));i+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!==typeof c[o])break;n+=c[o]}else n+=o}l("Bad string")},u=function(){for(;o&&o<=" ";)s()};t=function(){switch(u(),o){case"{":return function(){var e,i={};if("{"===o){if(s("{"),u(),"}"===o)return s("}"),i;for(;o;){if(e=p(),u(),s(":"),Object.hasOwnProperty.call(i,e)&&l('Duplicate key "'+e+'"'),i[e]=t(),u(),"}"===o)return s("}"),i;s(","),u()}}l("Bad object")}();case"[":return function(){var e=[];if("["===o){if(s("["),u(),"]"===o)return s("]"),e;for(;o;){if(e.push(t()),u(),"]"===o)return s("]"),e;s(","),u()}}l("Bad array")}();case'"':return p();case"-":return a();default:return o>="0"&&o<="9"?a():function(){switch(o){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}l("Unexpected '"+o+"'")}()}},e.exports=function(e,i){var c;return n=e,r=0,o=" ",c=t(),u(),o&&l("Syntax error"),"function"===typeof i?function e(r,o){var n,t,c=r[o];if(c&&"object"===typeof c)for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(void 0!==(t=e(c,n))?c[n]=t:delete c[n]);return i.call(r,o,c)}({"":c},""):c}},654:function(e,i){var r,o,n,t=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function l(e){return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var i=c[e];return"string"===typeof i?i:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}e.exports=function(e,i,t){var c;if(r="",o="","number"===typeof t)for(c=0;c<t;c+=1)o+=" ";else"string"===typeof t&&(o=t);if(n=i,i&&"function"!==typeof i&&("object"!==typeof i||"number"!==typeof i.length))throw new Error("JSON.stringify");return function e(i,t){var c,s,a,p,u,g=r,m=t[i];switch(m&&"object"===typeof m&&"function"===typeof m.toJSON&&(m=m.toJSON(i)),"function"===typeof n&&(m=n.call(t,i,m)),typeof m){case"string":return l(m);case"number":return isFinite(m)?String(m):"null";case"boolean":case"null":return String(m);case"object":if(!m)return"null";if(r+=o,u=[],"[object Array]"===Object.prototype.toString.apply(m)){for(p=m.length,c=0;c<p;c+=1)u[c]=e(c,m)||"null";return a=0===u.length?"[]":r?"[\n"+r+u.join(",\n"+r)+"\n"+g+"]":"["+u.join(",")+"]",r=g,a}if(n&&"object"===typeof n)for(p=n.length,c=0;c<p;c+=1)"string"===typeof(s=n[c])&&(a=e(s,m))&&u.push(l(s)+(r?": ":":")+a);else for(s in m)Object.prototype.hasOwnProperty.call(m,s)&&(a=e(s,m))&&u.push(l(s)+(r?": ":":")+a);return a=0===u.length?"{}":r?"{\n"+r+u.join(",\n"+r)+"\n"+g+"}":"{"+u.join(",")+"}",r=g,a}}("",{"":e})}},657:function(e,i,r){"use strict";var o,n;o=this,n=function(){var e=0,i=1,r=2,o=3,n=/\s/,t=/<(\w*)>/g;return function(c,l,s){c=c||"";var a,p,u,g=e,m=0,f="",y="",d=!1;for("string"===typeof l?l=function(e){for(var i,r=[];null!==(i=t.exec(e));)r.push(i[1]);return 0!==r.length?r:null}(l):Array.isArray(l)||(l=null),a=0,p=c.length;a<p;a++)switch(u=c[a]){case"<":if(d)break;if(" "==c[a+1]){b(u);break}if(g==e){g=i,b(u);break}if(g==i){m++;break}b(u);break;case">":if(m){m--;break}if(d)break;if(g==i){d=g=0,l&&(y+=">",v());break}if(g==r){d=g=0,y="";break}if(g==o&&"-"==c[a-1]&&"-"==c[a-2]){d=g=0,y="";break}b(u);break;case'"':case"'":g==i&&(d==u?d=!1:d||(d=u)),b(u);break;case"!":if(g==i&&"<"==c[a-1]){g=r;break}b(u);break;case"-":if(g==r&&"-"==c[a-1]&&"!"==c[a-2]){g=o;break}b(u);break;case"E":case"e":if(g==r&&"doctype"==c.substr(a-6,7).toLowerCase()){g=i;break}b(u);break;default:b(u)}function b(r){g==e?f+=r:l&&g==i&&(y+=r)}function v(){var e,i,r,o="",t=!1;e:for(e=0,i=y.length;e<i;e++)switch(r=y[e].toLowerCase()){case"<":break;case">":break e;case"/":t=!0;break;default:if(r.match(n)){if(t)break e}else t=!0,o+=r}-1!==l.indexOf(o)?f+=y:s&&(f+=s),y=""}return f}},"function"===typeof define&&define.amd?define([],n):e.exports?e.exports=n():o.striptags=n()},687:function(e,i,r){"use strict";var o=r(1);i.a=function(e,i){return function(r){var n=e(r),t=r.displayName,c=void 0===t?r.name||"Component":t;return n.displayName="".concat(Object(o.upperFirst)(Object(o.camelCase)(i)),"(").concat(c,")"),n}}},710:function(e,i){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},711:function(e,i,r){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getCurrencyDefaults=function(e){return o[e]||{symbol:"$",grouping:",",decimal:".",precision:2}},i.CURRENCIES=void 0;var o={AED:{symbol:"\u062f.\u0625.\u200f",grouping:",",decimal:".",precision:2},AFN:{symbol:"\u060b",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"\u058f",grouping:",",decimal:".",precision:2},ANG:{symbol:"\u0192",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"\u0192",grouping:",",decimal:".",precision:2},AZN:{symbol:"\u20bc",grouping:" ",decimal:",",precision:2},BAM:{symbol:"\u041a\u041c",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"\u09f3",grouping:",",decimal:".",precision:0},BGN:{symbol:"\u043b\u0432.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"\u062f.\u0628.\u200f",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"\u0243",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"\u0440.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"\xa5",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"\u20a1",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"K\u010d",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"\u062f.\u062c.\u200f",grouping:",",decimal:".",precision:2},EGP:{symbol:"\u062c.\u0645.\u200f",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"\u20ac",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"\xa3",grouping:",",decimal:".",precision:2},GBP:{symbol:"\xa3",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"\u20b5",grouping:",",decimal:".",precision:2},GIP:{symbol:"\xa3",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"\u20aa",grouping:",",decimal:".",precision:2},INR:{symbol:"\u20b9",grouping:",",decimal:".",precision:2},IQD:{symbol:"\u062f.\u0639.\u200f",grouping:",",decimal:".",precision:2},IRR:{symbol:"\ufdfc",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"\u062f.\u0627.\u200f",grouping:",",decimal:".",precision:3},JPY:{symbol:"\xa5",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"\u0441\u043e\u043c",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"\u17db",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"\u20a9",grouping:",",decimal:".",precision:0},KRW:{symbol:"\u20a9",grouping:",",decimal:".",precision:0},KWD:{symbol:"\u062f.\u0643.\u200f",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"\u20b8",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"\u20ad",grouping:",",decimal:".",precision:0},LBP:{symbol:"\u0644.\u0644.\u200f",grouping:",",decimal:".",precision:2},LKR:{symbol:"\u20a8",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"\u062f.\u0644.\u200f",grouping:",",decimal:".",precision:3},MAD:{symbol:"\u062f.\u0645.\u200f",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"\u0434\u0435\u043d.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"\u20ae",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"\u20a4",grouping:",",decimal:".",precision:2},MUR:{symbol:"\u20a8",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"\u20a6",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"\u20a8",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"\ufdfc",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"\u20b1",grouping:",",decimal:".",precision:2},PKR:{symbol:"\u20a8",grouping:",",decimal:".",precision:2},PLN:{symbol:"z\u0142",grouping:" ",decimal:",",precision:2},PYG:{symbol:"\u20b2",grouping:".",decimal:",",precision:2},QAR:{symbol:"\ufdfc",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"\u0414\u0438\u043d.",grouping:".",decimal:",",precision:2},RUB:{symbol:"\u20bd",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"\ufdfc",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"\u20a8",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"\xa3\u200f",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"\xa3",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"\u20a1",grouping:",",decimal:".",precision:2},SYP:{symbol:"\xa3",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"\u0e3f",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"\u062f.\u062a.\u200f",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"\u20b4",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"\u0441\u045e\u043c",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"\u20ab",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"\ufdfc",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"\u20a9",grouping:",",decimal:".",precision:2}};i.CURRENCIES=o},712:function(e,i,r){var o=r(527),n=r(648),t=r(713),c=r(714);function l(i){var r="function"===typeof Map?new Map:void 0;return e.exports=l=function(e){if(null===e||!t(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,i)}function i(){return c(e,arguments,o(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n(i,e)},l(i)}e.exports=l},713:function(e,i){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},714:function(e,i,r){var o=r(648);function n(i,r,t){return!function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?e.exports=n=function(e,i,r){var n=[null];n.push.apply(n,i);var t=new(Function.bind.apply(e,n));return r&&o(t,r.prototype),t}:e.exports=n=Reflect.construct,n.apply(null,arguments)}e.exports=n}}]);
|
dist/chunks/{849c6c58eb07fc01b80d.min.js → 660db9b28c7fc73a7115.min.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[136],{579:function(t,n,r){var e=r(698)("wks"),o=r(670),i=r(587).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},587:function(t,n,r){var e=t.exports=window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},595:function(t,n,r){var e=r(596),o=r(695);t.exports=r(598)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},596:function(t,n,r){var e=r(625),o=r(726),i=r(727),u=Object.defineProperty;n.f=r(598)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(c){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},597:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},598:function(t,n,r){t.exports=!r(642)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},622:function(t,n,r){var e=r(587),o=r(623),i=r(624),u=r(595),c=r(626),f=function(t,n,r){var s,a,p,l=t&f.F,v=t&f.G,d=t&f.S,h=t&f.P,y=t&f.B,x=t&f.W,g=v?o:o[n]||(o[n]={}),_=g.prototype,m=v?e:d?e[n]:(e[n]||{}).prototype;for(s in v&&(r=n),r)(a=!l&&m&&void 0!==m[s])&&c(g,s)||(p=a?m[s]:r[s],g[s]=v&&"function"!=typeof m[s]?r[s]:y&&a?i(p,e):x&&m[s]==p?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(p):h&&"function"==typeof p?i(Function.call,p):p,h&&((g.virtual||(g.virtual={}))[s]=p,t&f.R&&_&&!_[s]&&u(_,s,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},623:function(t,n){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},624:function(t,n,r){var e=r(693);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},625:function(t,n,r){var e=r(597);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},626:function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},627:function(t,n){t.exports={}},642:function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},643:function(t,n,r){var e=r(624),o=r(742),i=r(743),u=r(625),c=r(668),f=r(744),s={},a={};(n=t.exports=function(t,n,r,p,l){var v,d,h,y,x=l?function(){return t}:f(t),g=e(r,p,n?2:1),_=0;if("function"!=typeof x)throw TypeError(t+" is not iterable!");if(i(x)){for(v=c(t.length);v>_;_++)if((y=n?g(u(d=t[_])[0],d[1]):g(t[_]))===s||y===a)return y}else for(h=x.call(t);!(d=h.next()).done;)if((y=o(h,g,d.value,n))===s||y===a)return y}).BREAK=s,n.RETURN=a},662:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=u(r(721));n.default=f;var o=u(r(758)),i=u(r(759));function u(t){return t&&t.__esModule?t:{default:t}}var c=new e.default;function f(t,n){return c.set(t,n),function(){c.delete(t)}}function s(t){c.forEach(function(n,r){(0,i.default)(r,t.target)||n.call(r,t)})}function a(t){t||(t=document),o.default.bind(t,"click",s)}f.globalClick=s,f.install=a,"undefined"!==typeof document&&a(document),t.exports=n.default},663:function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},664:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},665:function(t,n,r){"use strict";var e=r(692),o=r(622),i=r(728),u=r(595),c=r(627),f=r(729),s=r(671),a=r(736),p=r(579)("iterator"),l=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,r,d,h,y,x){f(r,n,d);var g,_,m,w=function(t){if(!l&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},b=n+" Iterator",S="values"==h,E=!1,O=t.prototype,L=O[p]||O["@@iterator"]||h&&O[h],M=L||w(h),T=h?S?w("entries"):M:void 0,k="Array"==n&&O.entries||L;if(k&&(m=a(k.call(new t)))!==Object.prototype&&m.next&&(s(m,b,!0),e||"function"==typeof m[p]||u(m,p,v)),S&&L&&"values"!==L.name&&(E=!0,M=function(){return L.call(this)}),e&&!x||!l&&!E&&O[p]||u(O,p,M),c[n]=M,c[b]=v,h)if(g={values:S?M:w("values"),keys:y?M:w("keys"),entries:T},x)for(_ in g)_ in O||i(O,_,g[_]);else o(o.P+o.F*(l||E),n,g);return g}},666:function(t,n,r){var e=r(697),o=r(664);t.exports=function(t){return e(o(t))}},667:function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},668:function(t,n,r){var e=r(663),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},669:function(t,n,r){var e=r(698)("keys"),o=r(670);t.exports=function(t){return e[t]||(e[t]=o(t))}},670:function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},671:function(t,n,r){var e=r(596).f,o=r(626),i=r(579)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},672:function(t,n,r){var e=r(760);t.exports=function(t){var n=null,r=e(t);if(3===t.nodeType){var o=r.createRange();o.selectNodeContents(t),t=o}if("function"===typeof t.getBoundingClientRect&&(n=t.getBoundingClientRect(),t.startContainer&&0===n.left&&0===n.top)){var i=r.createElement("span");i.appendChild(r.createTextNode("\u200b")),t.insertNode(i),n=i.getBoundingClientRect();var u=i.parentNode;u.removeChild(i),u.normalize()}return n}},692:function(t,n){t.exports=!0},693:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},694:function(t,n,r){var e=r(597),o=r(587).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},695:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},696:function(t,n,r){var e=r(625),o=r(730),i=r(699),u=r(669)("IE_PROTO"),c=function(){},f=function(){var t,n=r(694)("iframe"),e=i.length;for(n.style.display="none",r(735).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;e--;)delete f.prototype[i[e]];return f()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=f(),void 0===n?r:o(r,n)}},697:function(t,n,r){var e=r(667);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},698:function(t,n,r){var e=r(623),o=r(587),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(692)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},699:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},700:function(t,n,r){var e=r(664);t.exports=function(t){return Object(e(t))}},701:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},702:function(t,n,r){var e=r(595);t.exports=function(t,n,r){for(var o in n)r&&t[o]?t[o]=n[o]:e(t,o,n[o]);return t}},703:function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},704:function(t,n,r){var e=r(667),o=r(579)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(r){}}(n=Object(t),o))?r:i?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},705:function(t,n,r){var e=r(670)("meta"),o=r(597),i=r(626),u=r(596).f,c=0,f=Object.isExtensible||function(){return!0},s=!r(642)(function(){return f(Object.preventExtensions({}))}),a=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},p=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!f(t))return"F";if(!n)return"E";a(t)}return t[e].i},getWeak:function(t,n){if(!i(t,e)){if(!f(t))return!0;if(!n)return!1;a(t)}return t[e].w},onFreeze:function(t){return s&&p.NEED&&f(t)&&!i(t,e)&&a(t),t}}},706:function(t,n,r){var e=r(597);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},721:function(t,n,r){t.exports={default:r(722),__esModule:!0}},722:function(t,n,r){r(723),r(724),r(737),r(740),r(751),r(754),r(756),t.exports=r(623).Map},723:function(t,n){},724:function(t,n,r){"use strict";var e=r(725)(!0);r(665)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},725:function(t,n,r){var e=r(663),o=r(664);t.exports=function(t){return function(n,r){var i,u,c=String(o(n)),f=e(r),s=c.length;return f<0||f>=s?t?"":void 0:(i=c.charCodeAt(f))<55296||i>56319||f+1===s||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):u-56320+(i-55296<<10)+65536}}},726:function(t,n,r){t.exports=!r(598)&&!r(642)(function(){return 7!=Object.defineProperty(r(694)("div"),"a",{get:function(){return 7}}).a})},727:function(t,n,r){var e=r(597);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},728:function(t,n,r){t.exports=r(595)},729:function(t,n,r){"use strict";var e=r(696),o=r(695),i=r(671),u={};r(595)(u,r(579)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:o(1,r)}),i(t,n+" Iterator")}},730:function(t,n,r){var e=r(596),o=r(625),i=r(731);t.exports=r(598)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},731:function(t,n,r){var e=r(732),o=r(699);t.exports=Object.keys||function(t){return e(t,o)}},732:function(t,n,r){var e=r(626),o=r(666),i=r(733)(!1),u=r(669)("IE_PROTO");t.exports=function(t,n){var r,c=o(t),f=0,s=[];for(r in c)r!=u&&e(c,r)&&s.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~i(s,r)||s.push(r));return s}},733:function(t,n,r){var e=r(666),o=r(668),i=r(734);t.exports=function(t){return function(n,r,u){var c,f=e(n),s=o(f.length),a=i(u,s);if(t&&r!=r){for(;s>a;)if((c=f[a++])!=c)return!0}else for(;s>a;a++)if((t||a in f)&&f[a]===r)return t||a||0;return!t&&-1}}},734:function(t,n,r){var e=r(663),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=e(t))<0?o(t+n,0):i(t,n)}},735:function(t,n,r){var e=r(587).document;t.exports=e&&e.documentElement},736:function(t,n,r){var e=r(626),o=r(700),i=r(669)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},737:function(t,n,r){r(738);for(var e=r(587),o=r(595),i=r(627),u=r(579)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var s=c[f],a=e[s],p=a&&a.prototype;p&&!p[u]&&o(p,u,s),i[s]=i.Array}},738:function(t,n,r){"use strict";var e=r(739),o=r(701),i=r(627),u=r(666);t.exports=r(665)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},739:function(t,n){t.exports=function(){}},740:function(t,n,r){"use strict";var e=r(741),o=r(706);t.exports=r(746)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=e.getEntry(o(this,"Map"),t);return n&&n.v},set:function(t,n){return e.def(o(this,"Map"),0===t?0:t,n)}},e,!0)},741:function(t,n,r){"use strict";var e=r(596).f,o=r(696),i=r(702),u=r(624),c=r(703),f=r(643),s=r(665),a=r(701),p=r(745),l=r(598),v=r(705).fastKey,d=r(706),h=l?"_s":"size",y=function(t,n){var r,e=v(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,s){var a=t(function(t,e){c(t,a,n,"_i"),t._t=n,t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,void 0!=e&&f(e,r,t[s],t)});return i(a.prototype,{clear:function(){for(var t=d(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var r=d(this,n),e=y(r,t);if(e){var o=e.n,i=e.p;delete r._i[e.i],e.r=!0,i&&(i.n=o),o&&(o.p=i),r._f==e&&(r._f=o),r._l==e&&(r._l=i),r[h]--}return!!e},forEach:function(t){d(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!y(d(this,n),t)}}),l&&e(a.prototype,"size",{get:function(){return d(this,n)[h]}}),a},def:function(t,n,r){var e,o,i=y(t,n);return i?i.v=r:(t._l=i={i:o=v(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=i),e&&(e.n=i),t[h]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,n,r){s(t,n,function(t,r){this._t=d(t,n),this._k=r,this._l=void 0},function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?a(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,a(1))},r?"entries":"values",!r,!0),p(n)}}},742:function(t,n,r){var e=r(625);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(u){var i=t.return;throw void 0!==i&&e(i.call(t)),u}}},743:function(t,n,r){var e=r(627),o=r(579)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||i[o]===t)}},744:function(t,n,r){var e=r(704),o=r(579)("iterator"),i=r(627);t.exports=r(623).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[e(t)]}},745:function(t,n,r){"use strict";var e=r(587),o=r(623),i=r(596),u=r(598),c=r(579)("species");t.exports=function(t){var n="function"==typeof o[t]?o[t]:e[t];u&&n&&!n[c]&&i.f(n,c,{configurable:!0,get:function(){return this}})}},746:function(t,n,r){"use strict";var e=r(587),o=r(622),i=r(705),u=r(642),c=r(595),f=r(702),s=r(643),a=r(703),p=r(597),l=r(671),v=r(596).f,d=r(747)(0),h=r(598);t.exports=function(t,n,r,y,x,g){var _=e[t],m=_,w=x?"set":"add",b=m&&m.prototype,S={};return h&&"function"==typeof m&&(g||b.forEach&&!u(function(){(new m).entries().next()}))?(m=n(function(n,r){a(n,m,t,"_c"),n._c=new _,void 0!=r&&s(r,x,n[w],n)}),d("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var n="add"==t||"set"==t;t in b&&(!g||"clear"!=t)&&c(m.prototype,t,function(r,e){if(a(this,m,t),!n&&g&&!p(r))return"get"==t&&void 0;var o=this._c[t](0===r?0:r,e);return n?this:o})}),g||v(m.prototype,"size",{get:function(){return this._c.size}})):(m=y.getConstructor(n,t,x,w),f(m.prototype,r),i.NEED=!0),l(m,t),S[t]=m,o(o.G+o.W+o.F,S),g||y.setStrong(m,t,x),m}},747:function(t,n,r){var e=r(624),o=r(697),i=r(700),u=r(668),c=r(748);t.exports=function(t,n){var r=1==t,f=2==t,s=3==t,a=4==t,p=6==t,l=5==t||p,v=n||c;return function(n,c,d){for(var h,y,x=i(n),g=o(x),_=e(c,d,3),m=u(g.length),w=0,b=r?v(n,m):f?v(n,0):void 0;m>w;w++)if((l||w in g)&&(y=_(h=g[w],w,x),t))if(r)b[w]=y;else if(y)switch(t){case 3:return!0;case 5:return h;case 6:return w;case 2:b.push(h)}else if(a)return!1;return p?-1:s||a?a:b}}},748:function(t,n,r){var e=r(749);t.exports=function(t,n){return new(e(t))(n)}},749:function(t,n,r){var e=r(597),o=r(750),i=r(579)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),e(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},750:function(t,n,r){var e=r(667);t.exports=Array.isArray||function(t){return"Array"==e(t)}},751:function(t,n,r){var e=r(622);e(e.P+e.R,"Map",{toJSON:r(752)("Map")})},752:function(t,n,r){var e=r(704),o=r(753);t.exports=function(t){return function(){if(e(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},753:function(t,n,r){var e=r(643);t.exports=function(t,n){var r=[];return e(t,!1,r.push,r,n),r}},754:function(t,n,r){r(755)("Map")},755:function(t,n,r){"use strict";var e=r(622);t.exports=function(t){e(e.S,t,{of:function(){for(var t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return new this(n)}})}},756:function(t,n,r){r(757)("Map")},757:function(t,n,r){"use strict";var e=r(622),o=r(693),i=r(624),u=r(643);t.exports=function(t){e(e.S,t,{from:function(t){var n,r,e,c,f=arguments[1];return o(this),(n=void 0!==f)&&o(f),void 0==t?new this:(r=[],n?(e=0,c=i(f,arguments[2],2),u(t,!1,function(t){r.push(c(t,e++))})):u(t,!1,r.push,r),new this(r))}})}},758:function(t,n){var r=window.addEventListener?"addEventListener":"attachEvent",e=window.removeEventListener?"removeEventListener":"detachEvent",o="addEventListener"!==r?"on":"";n.bind=function(t,n,e,i){return t[r](o+n,e,i||!1),e},n.unbind=function(t,n,r,i){return t[e](o+n,r,i||!1),r}},759:function(t,n){t.exports=function(t,n){return t===n||!!(16&t.compareDocumentPosition(n))}},760:function(t,n){t.exports=function t(n){if(e(n))return n;if(e(n.ownerDocument))return n.ownerDocument;if(e(n.document))return n.document;if(n.parentNode)return t(n.parentNode);if(n.commonAncestorContainer)return t(n.commonAncestorContainer);if(n.startContainer)return t(n.startContainer);if(n.anchorNode)return t(n.anchorNode)};var r=9;function e(t){return t&&t.nodeType===r}}}]);
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[136],{578:function(t,n,r){var e=r(696)("wks"),o=r(668),i=r(586).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},586:function(t,n,r){var e=t.exports=window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},595:function(t,n,r){var e=r(596),o=r(693);t.exports=r(598)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},596:function(t,n,r){var e=r(625),o=r(726),i=r(727),u=Object.defineProperty;n.f=r(598)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(c){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},597:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},598:function(t,n,r){t.exports=!r(642)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},622:function(t,n,r){var e=r(586),o=r(623),i=r(624),u=r(595),c=r(626),f=function(t,n,r){var s,a,p,l=t&f.F,v=t&f.G,d=t&f.S,h=t&f.P,y=t&f.B,x=t&f.W,g=v?o:o[n]||(o[n]={}),_=g.prototype,m=v?e:d?e[n]:(e[n]||{}).prototype;for(s in v&&(r=n),r)(a=!l&&m&&void 0!==m[s])&&c(g,s)||(p=a?m[s]:r[s],g[s]=v&&"function"!=typeof m[s]?r[s]:y&&a?i(p,e):x&&m[s]==p?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(p):h&&"function"==typeof p?i(Function.call,p):p,h&&((g.virtual||(g.virtual={}))[s]=p,t&f.R&&_&&!_[s]&&u(_,s,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},623:function(t,n){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},624:function(t,n,r){var e=r(691);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},625:function(t,n,r){var e=r(597);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},626:function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},627:function(t,n){t.exports={}},642:function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},643:function(t,n,r){var e=r(624),o=r(742),i=r(743),u=r(625),c=r(666),f=r(744),s={},a={};(n=t.exports=function(t,n,r,p,l){var v,d,h,y,x=l?function(){return t}:f(t),g=e(r,p,n?2:1),_=0;if("function"!=typeof x)throw TypeError(t+" is not iterable!");if(i(x)){for(v=c(t.length);v>_;_++)if((y=n?g(u(d=t[_])[0],d[1]):g(t[_]))===s||y===a)return y}else for(h=x.call(t);!(d=h.next()).done;)if((y=o(h,g,d.value,n))===s||y===a)return y}).BREAK=s,n.RETURN=a},660:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=u(r(721));n.default=f;var o=u(r(758)),i=u(r(759));function u(t){return t&&t.__esModule?t:{default:t}}var c=new e.default;function f(t,n){return c.set(t,n),function(){c.delete(t)}}function s(t){c.forEach(function(n,r){(0,i.default)(r,t.target)||n.call(r,t)})}function a(t){t||(t=document),o.default.bind(t,"click",s)}f.globalClick=s,f.install=a,"undefined"!==typeof document&&a(document),t.exports=n.default},661:function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},662:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},663:function(t,n,r){"use strict";var e=r(690),o=r(622),i=r(728),u=r(595),c=r(627),f=r(729),s=r(669),a=r(736),p=r(578)("iterator"),l=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,r,d,h,y,x){f(r,n,d);var g,_,m,w=function(t){if(!l&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},b=n+" Iterator",S="values"==h,E=!1,O=t.prototype,L=O[p]||O["@@iterator"]||h&&O[h],M=L||w(h),T=h?S?w("entries"):M:void 0,k="Array"==n&&O.entries||L;if(k&&(m=a(k.call(new t)))!==Object.prototype&&m.next&&(s(m,b,!0),e||"function"==typeof m[p]||u(m,p,v)),S&&L&&"values"!==L.name&&(E=!0,M=function(){return L.call(this)}),e&&!x||!l&&!E&&O[p]||u(O,p,M),c[n]=M,c[b]=v,h)if(g={values:S?M:w("values"),keys:y?M:w("keys"),entries:T},x)for(_ in g)_ in O||i(O,_,g[_]);else o(o.P+o.F*(l||E),n,g);return g}},664:function(t,n,r){var e=r(695),o=r(662);t.exports=function(t){return e(o(t))}},665:function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},666:function(t,n,r){var e=r(661),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},667:function(t,n,r){var e=r(696)("keys"),o=r(668);t.exports=function(t){return e[t]||(e[t]=o(t))}},668:function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},669:function(t,n,r){var e=r(596).f,o=r(626),i=r(578)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},670:function(t,n,r){var e=r(760);t.exports=function(t){var n=null,r=e(t);if(3===t.nodeType){var o=r.createRange();o.selectNodeContents(t),t=o}if("function"===typeof t.getBoundingClientRect&&(n=t.getBoundingClientRect(),t.startContainer&&0===n.left&&0===n.top)){var i=r.createElement("span");i.appendChild(r.createTextNode("\u200b")),t.insertNode(i),n=i.getBoundingClientRect();var u=i.parentNode;u.removeChild(i),u.normalize()}return n}},690:function(t,n){t.exports=!0},691:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},692:function(t,n,r){var e=r(597),o=r(586).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},693:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},694:function(t,n,r){var e=r(625),o=r(730),i=r(697),u=r(667)("IE_PROTO"),c=function(){},f=function(){var t,n=r(692)("iframe"),e=i.length;for(n.style.display="none",r(735).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;e--;)delete f.prototype[i[e]];return f()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=f(),void 0===n?r:o(r,n)}},695:function(t,n,r){var e=r(665);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},696:function(t,n,r){var e=r(623),o=r(586),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(690)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},697:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},698:function(t,n,r){var e=r(662);t.exports=function(t){return Object(e(t))}},699:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},700:function(t,n,r){var e=r(595);t.exports=function(t,n,r){for(var o in n)r&&t[o]?t[o]=n[o]:e(t,o,n[o]);return t}},701:function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},702:function(t,n,r){var e=r(665),o=r(578)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(r){}}(n=Object(t),o))?r:i?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},703:function(t,n,r){var e=r(668)("meta"),o=r(597),i=r(626),u=r(596).f,c=0,f=Object.isExtensible||function(){return!0},s=!r(642)(function(){return f(Object.preventExtensions({}))}),a=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},p=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!f(t))return"F";if(!n)return"E";a(t)}return t[e].i},getWeak:function(t,n){if(!i(t,e)){if(!f(t))return!0;if(!n)return!1;a(t)}return t[e].w},onFreeze:function(t){return s&&p.NEED&&f(t)&&!i(t,e)&&a(t),t}}},704:function(t,n,r){var e=r(597);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},721:function(t,n,r){t.exports={default:r(722),__esModule:!0}},722:function(t,n,r){r(723),r(724),r(737),r(740),r(751),r(754),r(756),t.exports=r(623).Map},723:function(t,n){},724:function(t,n,r){"use strict";var e=r(725)(!0);r(663)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},725:function(t,n,r){var e=r(661),o=r(662);t.exports=function(t){return function(n,r){var i,u,c=String(o(n)),f=e(r),s=c.length;return f<0||f>=s?t?"":void 0:(i=c.charCodeAt(f))<55296||i>56319||f+1===s||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):u-56320+(i-55296<<10)+65536}}},726:function(t,n,r){t.exports=!r(598)&&!r(642)(function(){return 7!=Object.defineProperty(r(692)("div"),"a",{get:function(){return 7}}).a})},727:function(t,n,r){var e=r(597);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},728:function(t,n,r){t.exports=r(595)},729:function(t,n,r){"use strict";var e=r(694),o=r(693),i=r(669),u={};r(595)(u,r(578)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:o(1,r)}),i(t,n+" Iterator")}},730:function(t,n,r){var e=r(596),o=r(625),i=r(731);t.exports=r(598)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},731:function(t,n,r){var e=r(732),o=r(697);t.exports=Object.keys||function(t){return e(t,o)}},732:function(t,n,r){var e=r(626),o=r(664),i=r(733)(!1),u=r(667)("IE_PROTO");t.exports=function(t,n){var r,c=o(t),f=0,s=[];for(r in c)r!=u&&e(c,r)&&s.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~i(s,r)||s.push(r));return s}},733:function(t,n,r){var e=r(664),o=r(666),i=r(734);t.exports=function(t){return function(n,r,u){var c,f=e(n),s=o(f.length),a=i(u,s);if(t&&r!=r){for(;s>a;)if((c=f[a++])!=c)return!0}else for(;s>a;a++)if((t||a in f)&&f[a]===r)return t||a||0;return!t&&-1}}},734:function(t,n,r){var e=r(661),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=e(t))<0?o(t+n,0):i(t,n)}},735:function(t,n,r){var e=r(586).document;t.exports=e&&e.documentElement},736:function(t,n,r){var e=r(626),o=r(698),i=r(667)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},737:function(t,n,r){r(738);for(var e=r(586),o=r(595),i=r(627),u=r(578)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var s=c[f],a=e[s],p=a&&a.prototype;p&&!p[u]&&o(p,u,s),i[s]=i.Array}},738:function(t,n,r){"use strict";var e=r(739),o=r(699),i=r(627),u=r(664);t.exports=r(663)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},739:function(t,n){t.exports=function(){}},740:function(t,n,r){"use strict";var e=r(741),o=r(704);t.exports=r(746)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=e.getEntry(o(this,"Map"),t);return n&&n.v},set:function(t,n){return e.def(o(this,"Map"),0===t?0:t,n)}},e,!0)},741:function(t,n,r){"use strict";var e=r(596).f,o=r(694),i=r(700),u=r(624),c=r(701),f=r(643),s=r(663),a=r(699),p=r(745),l=r(598),v=r(703).fastKey,d=r(704),h=l?"_s":"size",y=function(t,n){var r,e=v(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,s){var a=t(function(t,e){c(t,a,n,"_i"),t._t=n,t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,void 0!=e&&f(e,r,t[s],t)});return i(a.prototype,{clear:function(){for(var t=d(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var r=d(this,n),e=y(r,t);if(e){var o=e.n,i=e.p;delete r._i[e.i],e.r=!0,i&&(i.n=o),o&&(o.p=i),r._f==e&&(r._f=o),r._l==e&&(r._l=i),r[h]--}return!!e},forEach:function(t){d(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!y(d(this,n),t)}}),l&&e(a.prototype,"size",{get:function(){return d(this,n)[h]}}),a},def:function(t,n,r){var e,o,i=y(t,n);return i?i.v=r:(t._l=i={i:o=v(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=i),e&&(e.n=i),t[h]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,n,r){s(t,n,function(t,r){this._t=d(t,n),this._k=r,this._l=void 0},function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?a(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,a(1))},r?"entries":"values",!r,!0),p(n)}}},742:function(t,n,r){var e=r(625);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(u){var i=t.return;throw void 0!==i&&e(i.call(t)),u}}},743:function(t,n,r){var e=r(627),o=r(578)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||i[o]===t)}},744:function(t,n,r){var e=r(702),o=r(578)("iterator"),i=r(627);t.exports=r(623).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[e(t)]}},745:function(t,n,r){"use strict";var e=r(586),o=r(623),i=r(596),u=r(598),c=r(578)("species");t.exports=function(t){var n="function"==typeof o[t]?o[t]:e[t];u&&n&&!n[c]&&i.f(n,c,{configurable:!0,get:function(){return this}})}},746:function(t,n,r){"use strict";var e=r(586),o=r(622),i=r(703),u=r(642),c=r(595),f=r(700),s=r(643),a=r(701),p=r(597),l=r(669),v=r(596).f,d=r(747)(0),h=r(598);t.exports=function(t,n,r,y,x,g){var _=e[t],m=_,w=x?"set":"add",b=m&&m.prototype,S={};return h&&"function"==typeof m&&(g||b.forEach&&!u(function(){(new m).entries().next()}))?(m=n(function(n,r){a(n,m,t,"_c"),n._c=new _,void 0!=r&&s(r,x,n[w],n)}),d("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var n="add"==t||"set"==t;t in b&&(!g||"clear"!=t)&&c(m.prototype,t,function(r,e){if(a(this,m,t),!n&&g&&!p(r))return"get"==t&&void 0;var o=this._c[t](0===r?0:r,e);return n?this:o})}),g||v(m.prototype,"size",{get:function(){return this._c.size}})):(m=y.getConstructor(n,t,x,w),f(m.prototype,r),i.NEED=!0),l(m,t),S[t]=m,o(o.G+o.W+o.F,S),g||y.se
|