WooCommerce Gutenberg Products Block - Version 3.8.0

Version Description

  • 2020-11-10 =
  • Show the phone number field in the billing section when shipping is disabled in settings. (3376)
  • Add new doc referencing feature flags and experimental interfaces. (3348)
  • Add __experimental_woocommerce_blocks_checkout_order_processed action. (3238)
Download this release

Release Info

Developer automattic
Plugin Icon 128x128 WooCommerce Gutenberg Products Block
Version 3.8.0
Comparing to
See all releases

Code changes from version 3.7.1 to 3.8.0

assets/js/base/context/cart-checkout/checkout-state/index.js CHANGED
@@ -66,6 +66,8 @@ const CheckoutContext = createContext( {
66
  },
67
  hasOrder: false,
68
  isCart: false,
 
 
69
  } );
70
 
71
  /**
@@ -82,11 +84,8 @@ export const useCheckoutContext = () => {
82
  *
83
  * @param {Object} props Incoming props for the provider.
84
  * @param {Object} props.children The children being wrapped.
85
- * @param {string} props.redirectUrl Initialize what the checkout will
86
- * redirect to after successful
87
- * submit.
88
- * @param {boolean} props.isCart If context provider is being used
89
- * in cart context.
90
  */
91
  export const CheckoutStateProvider = ( {
92
  children,
66
  },
67
  hasOrder: false,
68
  isCart: false,
69
+ shouldCreateAccount: false,
70
+ setShouldCreateAccount: ( value ) => void value,
71
  } );
72
 
73
  /**
84
  *
85
  * @param {Object} props Incoming props for the provider.
86
  * @param {Object} props.children The children being wrapped.
87
+ * @param {string} props.redirectUrl Initialize what the checkout will redirect to after successful submit.
88
+ * @param {boolean} props.isCart If context provider is being used in cart context.
 
 
 
89
  */
90
  export const CheckoutStateProvider = ( {
91
  children,
assets/js/blocks/cart-checkout/checkout/form/address-step.js CHANGED
@@ -5,6 +5,7 @@ import { useMemo } from '@wordpress/element';
5
  import PropTypes from 'prop-types';
6
  import { useCheckoutAddress } from '@woocommerce/base-hooks';
7
  import { useShippingDataContext } from '@woocommerce/base-context';
 
8
 
9
  /**
10
  * Internal dependencies
@@ -12,6 +13,7 @@ import { useShippingDataContext } from '@woocommerce/base-context';
12
  import BillingFieldsStep from './billing-fields-step';
13
  import ContactFieldsStep from './contact-fields-step';
14
  import ShippingFieldsStep from './shipping-fields-step';
 
15
  import './style.scss';
16
 
17
  const AddressStep = ( {
@@ -35,6 +37,7 @@ const AddressStep = ( {
35
  showBillingFields,
36
  } = useCheckoutAddress();
37
  const { needsShipping } = useShippingDataContext();
 
38
  const addressFieldsConfig = useMemo( () => {
39
  return {
40
  company: {
@@ -63,25 +66,44 @@ const AddressStep = ( {
63
  />
64
  { needsShipping && (
65
  <ShippingFieldsStep
66
- addressFieldsConfig={ addressFieldsConfig }
67
- billingFields={ billingFields }
68
- defaultAddressFields={ defaultAddressFields }
69
- requirePhoneField={ requirePhoneField }
70
- setPhone={ setPhone }
71
- setShippingAsBilling={ setShippingAsBilling }
72
- setShippingFields={ setShippingFields }
73
  shippingAsBilling={ shippingAsBilling }
74
- shippingFields={ shippingFields }
75
- showPhoneField={ showPhoneField }
76
- />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  ) }
78
  { showBillingFields && (
79
- <BillingFieldsStep
80
- addressFieldsConfig={ addressFieldsConfig }
81
- billingFields={ billingFields }
82
- defaultAddressFields={ defaultAddressFields }
83
- setBillingFields={ setBillingFields }
84
- />
 
 
 
 
 
 
 
 
 
 
 
85
  ) }
86
  </>
87
  );
5
  import PropTypes from 'prop-types';
6
  import { useCheckoutAddress } from '@woocommerce/base-hooks';
7
  import { useShippingDataContext } from '@woocommerce/base-context';
8
+ import { AddressForm } from '@woocommerce/base-components/cart-checkout';
9
 
10
  /**
11
  * Internal dependencies
13
  import BillingFieldsStep from './billing-fields-step';
14
  import ContactFieldsStep from './contact-fields-step';
15
  import ShippingFieldsStep from './shipping-fields-step';
16
+ import PhoneNumber from './phone-number';
17
  import './style.scss';
18
 
19
  const AddressStep = ( {
37
  showBillingFields,
38
  } = useCheckoutAddress();
39
  const { needsShipping } = useShippingDataContext();
40
+
41
  const addressFieldsConfig = useMemo( () => {
42
  return {
43
  company: {
66
  />
67
  { needsShipping && (
68
  <ShippingFieldsStep
 
 
 
 
 
 
 
69
  shippingAsBilling={ shippingAsBilling }
70
+ setShippingAsBilling={ setShippingAsBilling }
71
+ >
72
+ <AddressForm
73
+ id="shipping"
74
+ type="shipping"
75
+ onChange={ setShippingFields }
76
+ values={ shippingFields }
77
+ fields={ Object.keys( defaultAddressFields ) }
78
+ fieldConfig={ addressFieldsConfig }
79
+ />
80
+ { showPhoneField && (
81
+ <PhoneNumber
82
+ isRequired={ requirePhoneField }
83
+ value={ billingFields.phone }
84
+ onChange={ setPhone }
85
+ />
86
+ ) }
87
+ </ShippingFieldsStep>
88
  ) }
89
  { showBillingFields && (
90
+ <BillingFieldsStep>
91
+ <AddressForm
92
+ id="billing"
93
+ type="billing"
94
+ onChange={ setBillingFields }
95
+ values={ billingFields }
96
+ fields={ Object.keys( defaultAddressFields ) }
97
+ fieldConfig={ addressFieldsConfig }
98
+ />
99
+ { showPhoneField && ! needsShipping && (
100
+ <PhoneNumber
101
+ isRequired={ requirePhoneField }
102
+ value={ billingFields.phone }
103
+ onChange={ setPhone }
104
+ />
105
+ ) }
106
+ </BillingFieldsStep>
107
  ) }
108
  </>
109
  );
assets/js/blocks/cart-checkout/checkout/form/billing-fields-step.js CHANGED
@@ -2,19 +2,11 @@
2
  * External dependencies
3
  */
4
  import { __ } from '@wordpress/i18n';
5
- import {
6
- AddressForm,
7
- FormStep,
8
- } from '@woocommerce/base-components/cart-checkout';
9
  import { useCheckoutContext } from '@woocommerce/base-context';
10
  import PropTypes from 'prop-types';
11
 
12
- const BillingFieldsStep = ( {
13
- addressFieldsConfig,
14
- billingFields,
15
- defaultAddressFields,
16
- setBillingFields,
17
- } ) => {
18
  const { isProcessing: checkoutIsProcessing } = useCheckoutContext();
19
 
20
  return (
@@ -28,23 +20,13 @@ const BillingFieldsStep = ( {
28
  'woo-gutenberg-products-block'
29
  ) }
30
  >
31
- <AddressForm
32
- id="billing"
33
- onChange={ setBillingFields }
34
- type="billing"
35
- values={ billingFields }
36
- fields={ Object.keys( defaultAddressFields ) }
37
- fieldConfig={ addressFieldsConfig }
38
- />
39
  </FormStep>
40
  );
41
  };
42
 
43
  BillingFieldsStep.propTypes = {
44
- addressFieldsConfig: PropTypes.object.isRequired,
45
- billingFields: PropTypes.object.isRequired,
46
- defaultAddressFields: PropTypes.object.isRequired,
47
- setBillingFields: PropTypes.func.isRequired,
48
  };
49
 
50
  export default BillingFieldsStep;
2
  * External dependencies
3
  */
4
  import { __ } from '@wordpress/i18n';
5
+ import { FormStep } from '@woocommerce/base-components/cart-checkout';
 
 
 
6
  import { useCheckoutContext } from '@woocommerce/base-context';
7
  import PropTypes from 'prop-types';
8
 
9
+ const BillingFieldsStep = ( { children } ) => {
 
 
 
 
 
10
  const { isProcessing: checkoutIsProcessing } = useCheckoutContext();
11
 
12
  return (
20
  'woo-gutenberg-products-block'
21
  ) }
22
  >
23
+ { children }
 
 
 
 
 
 
 
24
  </FormStep>
25
  );
26
  };
27
 
28
  BillingFieldsStep.propTypes = {
29
+ children: PropTypes.node.isRequired,
 
 
 
30
  };
31
 
32
  export default BillingFieldsStep;
assets/js/blocks/cart-checkout/checkout/form/index.js CHANGED
@@ -37,7 +37,7 @@ const CheckoutForm = ( {
37
  />
38
  <ShippingOptionsStep />
39
  <PaymentMethodStep />
40
- <OrderNotesStep showOrderNotes={ showOrderNotes } />
41
  </Form>
42
  );
43
  };
37
  />
38
  <ShippingOptionsStep />
39
  <PaymentMethodStep />
40
+ { showOrderNotes && <OrderNotesStep /> }
41
  </Form>
42
  );
43
  };
assets/js/blocks/cart-checkout/checkout/form/order-notes-step.js CHANGED
@@ -7,14 +7,13 @@ import {
7
  useCheckoutContext,
8
  useShippingDataContext,
9
  } from '@woocommerce/base-context';
10
- import PropTypes from 'prop-types';
11
 
12
  /**
13
  * Internal dependencies
14
  */
15
  import CheckoutOrderNotes from './order-notes';
16
 
17
- const OrderNotesStep = ( { showOrderNotes } ) => {
18
  const { needsShipping } = useShippingDataContext();
19
  const {
20
  isProcessing: checkoutIsProcessing,
@@ -23,10 +22,6 @@ const OrderNotesStep = ( { showOrderNotes } ) => {
23
  } = useCheckoutContext();
24
  const { setOrderNotes } = dispatchActions;
25
 
26
- if ( ! showOrderNotes ) {
27
- return null;
28
- }
29
-
30
  return (
31
  <FormStep id="order-notes" showStepNumber={ false }>
32
  <CheckoutOrderNotes
@@ -49,8 +44,4 @@ const OrderNotesStep = ( { showOrderNotes } ) => {
49
  );
50
  };
51
 
52
- OrderNotesStep.propTypes = {
53
- showOrderNotes: PropTypes.bool.isRequired,
54
- };
55
-
56
  export default OrderNotesStep;
7
  useCheckoutContext,
8
  useShippingDataContext,
9
  } from '@woocommerce/base-context';
 
10
 
11
  /**
12
  * Internal dependencies
13
  */
14
  import CheckoutOrderNotes from './order-notes';
15
 
16
+ const OrderNotesStep = () => {
17
  const { needsShipping } = useShippingDataContext();
18
  const {
19
  isProcessing: checkoutIsProcessing,
22
  } = useCheckoutContext();
23
  const { setOrderNotes } = dispatchActions;
24
 
 
 
 
 
25
  return (
26
  <FormStep id="order-notes" showStepNumber={ false }>
27
  <CheckoutOrderNotes
44
  );
45
  };
46
 
 
 
 
 
47
  export default OrderNotesStep;
assets/js/blocks/cart-checkout/checkout/form/phone-number/index.js ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { DebouncedValidatedTextInput } from '@woocommerce/base-components/text-input';
6
+
7
+ /**
8
+ * Renders a phone number input.
9
+ *
10
+ * @param {Object} props Component props.
11
+ * @param {boolean} props.isRequired Is the phone number required or optional.
12
+ * @param {Function} props.onChange Event fired when the input changes.
13
+ * @param {string} props.value Value of the input.
14
+ * @return {*} The component.
15
+ */
16
+ const PhoneNumber = ( { isRequired = false, value = '', onChange } ) => {
17
+ return (
18
+ <DebouncedValidatedTextInput
19
+ id="phone"
20
+ type="tel"
21
+ autoComplete="tel"
22
+ required={ isRequired }
23
+ label={
24
+ isRequired
25
+ ? __( 'Phone', 'woo-gutenberg-products-block' )
26
+ : __( 'Phone (optional)', 'woo-gutenberg-products-block' )
27
+ }
28
+ value={ value }
29
+ onChange={ onChange }
30
+ />
31
+ );
32
+ };
33
+
34
+ export default PhoneNumber;
assets/js/blocks/cart-checkout/checkout/form/shipping-fields-step.js CHANGED
@@ -2,26 +2,15 @@
2
  * External dependencies
3
  */
4
  import { __ } from '@wordpress/i18n';
5
- import {
6
- AddressForm,
7
- FormStep,
8
- } from '@woocommerce/base-components/cart-checkout';
9
- import { DebouncedValidatedTextInput } from '@woocommerce/base-components/text-input';
10
  import CheckboxControl from '@woocommerce/base-components/checkbox-control';
11
  import { useCheckoutContext } from '@woocommerce/base-context';
12
  import PropTypes from 'prop-types';
13
 
14
  const ShippingFieldsStep = ( {
15
- addressFieldsConfig,
16
- defaultAddressFields,
17
- billingFields,
18
- setPhone,
19
  shippingAsBilling,
20
- shippingFields,
21
- showPhoneField,
22
- setShippingFields,
23
  setShippingAsBilling,
24
- requirePhoneField,
25
  } ) => {
26
  const { isProcessing: checkoutIsProcessing } = useCheckoutContext();
27
 
@@ -36,31 +25,7 @@ const ShippingFieldsStep = ( {
36
  'woo-gutenberg-products-block'
37
  ) }
38
  >
39
- <AddressForm
40
- id="shipping"
41
- onChange={ setShippingFields }
42
- values={ shippingFields }
43
- fields={ Object.keys( defaultAddressFields ) }
44
- fieldConfig={ addressFieldsConfig }
45
- />
46
- { showPhoneField && (
47
- <DebouncedValidatedTextInput
48
- id="phone"
49
- type="tel"
50
- label={
51
- requirePhoneField
52
- ? __( 'Phone', 'woo-gutenberg-products-block' )
53
- : __(
54
- 'Phone (optional)',
55
- 'woo-gutenberg-products-block'
56
- )
57
- }
58
- value={ billingFields.phone }
59
- autoComplete="tel"
60
- onChange={ setPhone }
61
- required={ requirePhoneField }
62
- />
63
- ) }
64
  <CheckboxControl
65
  className="wc-block-checkout__use-address-for-billing"
66
  label={ __(
@@ -75,16 +40,9 @@ const ShippingFieldsStep = ( {
75
  };
76
 
77
  ShippingFieldsStep.propTypes = {
78
- addressFieldsConfig: PropTypes.object.isRequired,
79
- billingFields: PropTypes.object.isRequired,
80
- defaultAddressFields: PropTypes.object.isRequired,
81
- requirePhoneField: PropTypes.bool.isRequired,
82
- setPhone: PropTypes.func.isRequired,
83
  shippingAsBilling: PropTypes.bool.isRequired,
84
  setShippingAsBilling: PropTypes.func.isRequired,
85
- setShippingFields: PropTypes.func.isRequired,
86
- shippingFields: PropTypes.object.isRequired,
87
- showPhoneField: PropTypes.bool.isRequired,
88
  };
89
 
90
  export default ShippingFieldsStep;
2
  * External dependencies
3
  */
4
  import { __ } from '@wordpress/i18n';
5
+ import { FormStep } from '@woocommerce/base-components/cart-checkout';
 
 
 
 
6
  import CheckboxControl from '@woocommerce/base-components/checkbox-control';
7
  import { useCheckoutContext } from '@woocommerce/base-context';
8
  import PropTypes from 'prop-types';
9
 
10
  const ShippingFieldsStep = ( {
 
 
 
 
11
  shippingAsBilling,
 
 
 
12
  setShippingAsBilling,
13
+ children,
14
  } ) => {
15
  const { isProcessing: checkoutIsProcessing } = useCheckoutContext();
16
 
25
  'woo-gutenberg-products-block'
26
  ) }
27
  >
28
+ { children }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  <CheckboxControl
30
  className="wc-block-checkout__use-address-for-billing"
31
  label={ __(
40
  };
41
 
42
  ShippingFieldsStep.propTypes = {
 
 
 
 
 
43
  shippingAsBilling: PropTypes.bool.isRequired,
44
  setShippingAsBilling: PropTypes.func.isRequired,
45
+ children: PropTypes.node.isRequired,
 
 
46
  };
47
 
48
  export default ShippingFieldsStep;
assets/js/type-defs/contexts.js CHANGED
@@ -19,37 +19,26 @@
19
  * @typedef {Object} ShippingDataContext
20
  *
21
  * @property {ShippingErrorStatus} shippingErrorStatus The current shipping error status.
22
- * @property {Function} dispatchErrorStatus A function for dispatching a
23
- * shipping rate error status.
24
- * @property {ShippingErrorTypes} shippingErrorTypes The error type constants for the
25
- * shipping rate error status.
26
  * @property {CartShippingOption[]} shippingRates An array of available shipping rates.
27
- * @property {Function} setShippingRates Used to set the available shipping
28
- * rates.
29
- * @property {boolean} shippingRatesLoading Whether or not the shipping rates
30
- * are being loaded.
31
- * @property {string[]} selectedRates The ids of the rates that are
32
- * selected.
33
- * @property {Function} setSelectedRates Function for setting the selected
34
- * rates.
35
  * @property {boolean} isSelectingRate True when rate is being selected.
36
  * @property {CartShippingAddress} shippingAddress The current set address for shipping.
37
- * @property {Function} setShippingAddress Function for setting the shipping
38
- * address.
39
- * @property {function()} onShippingRateSuccess Used to register a callback to be
40
- * invoked when shipping rates are
41
- * retrieved.
42
- * @property {function()} onShippingRateSelectSuccess Used to register a callback to be
43
- * invoked when shipping rate is
44
- * selected.
45
- * @property {function()} onShippingRateSelectFail Used to register a callback to be
46
- * invoked when shipping rate is
47
- * selected unsuccessfully
48
- * @property {function()} onShippingRateFail Used to register a callback to be
49
- * invoked when there is an error with
50
- * retrieving shipping rates.
51
- * @property {boolean} needsShipping True if the cart has items requiring
52
- * shipping.
53
  */
54
 
55
  /**
@@ -66,27 +55,23 @@
66
  *
67
  * @property {string} NONE No shipping error.
68
  * @property {string} INVALID_ADDRESS Error due to an invalid address for calculating shipping.
69
- * @property {string} UNKNOWN When an unknown error has occurred in calculating/retrieving
70
- * shipping rates.
71
  */
72
 
73
  /**
74
  * @typedef {Object} PaymentMethodCurrentStatus
75
  *
76
- * This contains status information for the current active payment method in
77
- * the checkout.
78
  *
79
  * @property {boolean} isPristine If true then the payment method state in checkout is pristine.
80
- * @property {boolean} isStarted If true then the payment method has been initialized and has
81
- * started.
82
  * @property {boolean} isProcessing If true then the payment method is processing payment.
83
- * @property {boolean} isFinished If true then the payment method is in a finished state (which
84
- * may mean it's status is either error, failed, or success).
85
  * @property {boolean} hasError If true then the payment method is in an error state.
86
- * @property {boolean} hasFailed If true then the payment method has failed (usually indicates a
87
- * problem with the payment method used, not logic error)
88
- * @property {boolean} isSuccessful If true then the payment method has completed it's processing
89
- * successfully.
90
  */
91
 
92
  /**
@@ -98,8 +83,7 @@
98
  * @property {string} expires Short form of expiry for payment method.
99
  * @property {boolean} is_default Whether it is the default payment method of the customer or not.
100
  * @property {number} tokenId The id of the saved payment method.
101
- * @property {Object} actions Varies, actions that can be done to interact with the payment
102
- * method.
103
  */
104
 
105
  /**
@@ -111,8 +95,8 @@
111
  /**
112
  * A Saved Customer Payment methods object
113
  *
114
- * This is an object where the keys are payment gateway slugs and the values are an array of
115
- * CustomerPaymentMethod objects.
116
  *
117
  * @typedef {Object} SavedCustomerPaymentMethods
118
  * @property {any} any Various payment methods
@@ -136,122 +120,90 @@
136
  /**
137
  * @typedef {Object} PaymentMethodDataContext
138
  *
139
- * @property {PaymentStatusDispatch} setPaymentStatus Sets the payment status
140
- * for the payment method.
141
- * @property {PaymentMethodCurrentStatus} currentStatus The current payment
142
- * status.
143
- * @property {Object} paymentStatuses An object of payment
144
- * status constants.
145
- * @property {Object} paymentMethodData Arbitrary data to be
146
- * passed along for
147
- * processing by the
148
- * payment method on the
149
  * server.
150
- * @property {string} errorMessage An error message
151
- * provided by the payment
152
- * method if there is an
153
- * error.
154
- * @property {string} activePaymentMethod The active payment
155
- * method slug.
156
- * @property {function(string)} setActivePaymentMethod A function for setting
157
- * the active payment
158
  * method.
159
- * @property {SavedCustomerPaymentMethods} customerPaymentMethods Returns the customer
160
- * payment for the customer
161
- * if it exists.
162
- * @property {Object} paymentMethods Registered payment
163
- * methods.
164
- * @property {Object} expressPaymentMethods Registered express
165
- * payment methods.
166
- * @property {boolean} paymentMethodsInitialized True when all registered
167
- * payment methods have
168
- * been initialized.
169
- * @property {boolean} expressPaymentMethodsInitialized True when all registered
170
- * express payment methods
171
  * have been initialized.
172
- * @property {function(function())} onPaymentProcessing Event registration
173
- * callback for registering
174
- * observers for the
175
- * payment processing
176
- * event.
177
- * @property {function(string)} setExpressPaymentError A function used by
178
- * express payment methods
179
- * to indicate an error
180
- * for checkout to handle.
181
- * It receives an error
182
- * message string. Does not
183
- * change payment status.
184
- * @property {function(boolean):void} setShouldSavePayment A function used to set
185
- * the shouldSavePayment
186
  * value.
187
- * @property {boolean} shouldSavePayment True means that
188
- * the configured payment
189
- * method option is saved
190
- * for the customer.
191
  */
192
 
193
  /**
194
  * @typedef {Object} CheckoutDataContext
195
  *
196
- * @property {function()} onSubmit The callback to register with
197
- * the checkout submit button.
198
- * @property {boolean} isComplete True when checkout is complete
199
- * and ready for redirect.
200
- * @property {boolean} isBeforeProcessing True during any observers
201
- * executing logic before
202
- * checkout processing (eg.
203
- * validation).
204
- * @property {boolean} isAfterProcessing True when checkout status is
205
- * AFTER_PROCESSING.
206
- * @property {boolean} isIdle True when the checkout state
207
- * has changed and checkout has
208
- * no activity.
209
- * @property {boolean} isProcessing True when checkout has been
210
- * submitted and is being
211
- * processed. Note, payment
212
- * related processing happens
213
- * during this state. When
214
- * payment status is success,
215
- * processing happens on the
216
- * server.
217
- * @property {boolean} isCalculating True when something in the
218
- * checkout is resulting in
219
- * totals being calculated.
220
- * @property {boolean} hasError True when the checkout is in
221
- * an error state. Whatever
222
- * caused the error
223
- * (validation/payment method)
224
- * will likely have triggered a
225
- * notice.
226
- * @property {string} redirectUrl This is the url that checkout
227
- * will redirect to when it's
228
- * ready.
229
- * @property {function(function(),number=)} onCheckoutAfterProcessingWithSuccess Used to register a
230
- * callback that will fire after
231
- * checkout has been processed
232
- * and there are no errors.
233
- * @property {function(function(),number=)} onCheckoutAfterProcessingWithError Used to register a
234
- * callback that will fire when
235
- * the checkout has been
236
- * processed and has an error.
237
- * @property {function(function(),number=)} onCheckoutBeforeProcessing Used to register a callback
238
- * that will fire when the
239
- * checkout has been submitted
240
- * before being sent off to the
241
- * server.
242
- * @property {CheckoutDispatchActions} dispatchActions Various actions that can be
243
- * dispatched for the checkout
244
- * context data.
245
- * @property {number} orderId This is the ID for the draft
246
- * order if one exists.
247
- * @property {number} orderNotes Order notes introduced by the
248
- * user in the checkout form.
249
- * @property {boolean} hasOrder True when the checkout has a
250
- * draft order from the API.
251
- * @property {boolean} isCart When true, means the provider
252
- * is providing data for the cart.
253
- * @property {number} customerId This is the ID of the customer
254
- * the draft order belongs to.
255
  */
256
 
257
  /**
@@ -268,44 +220,44 @@
268
  * @property {Object} product The product object to add to the cart.
269
  * @property {string} productType The name of the product type.
270
  * @property {boolean} productIsPurchasable True if the product can be purchased.
271
- * @property {boolean} productHasOptions True if the product has additonal options and thus needs a cart form.
 
272
  * @property {boolean} supportsFormElements True if the product type supports form elements.
273
- * @property {boolean} showFormElements True if showing a full add to cart form (enabled and supported).
 
274
  * @property {number} quantity Stores the quantity being added to the cart.
275
  * @property {number} minQuantity Min quantity that can be added to the cart.
276
  * @property {number} maxQuantity Max quantity than can be added to the cart.
277
  * @property {Object} requestParams List of params to send to the API.
278
- * @property {boolean} isIdle True when the form state has changed and has no activity.
 
279
  * @property {boolean} isDisabled True when the form cannot be submitted.
280
- * @property {boolean} isProcessing True when the form has been submitted and is being processed.
281
- * @property {boolean} isBeforeProcessing True during any observers executing logic before form processing (eg. validation).
 
 
282
  * @property {boolean} isAfterProcessing True when form status is AFTER_PROCESSING.
283
- * @property {boolean} hasError True when the form is in an error state. Whatever caused the error (validation/payment method) will likely have triggered a notice.
 
 
284
  * @property {AddToCartFormEventRegistration} eventRegistration Event emitters that can be subscribed to.
285
- * @property {AddToCartFormDispatchActions} dispatchActions Various actions that can be dispatched for the add to cart form context data.
 
286
  */
287
 
288
  /**
289
  * @typedef {Object} ValidationContext
290
  *
291
- * @property {function(string):Object} getValidationError Return validation error for the
292
- * given property.
293
- * @property {function(Object)} setValidationErrors Receive an object of properties and
294
- * error messages as strings and adds
295
- * to the validation error state.
296
- * @property {function(string)} clearValidationError Clears a validation error for the
297
- * given property name.
298
- * @property {function()} clearAllValidationErrors Clears all validation errors
299
- * currently in state.
300
  * @property {function(string)} getValidationErrorId Returns the css id for the
301
- * validation error using the given
302
- * inputId string.
303
- * @property {function(string)} hideValidationError Sets the hidden prop of a specific
304
- * error to true.
305
- * @property {function(string)} showValidationError Sets the hidden prop of a specific
306
- * error to false.
307
- * @property {function()} showAllValidationErrors Sets the hidden prop of all
308
- * errors to false.
309
  * @property {boolean} hasValidationErrors True if there is at least one error.
310
  */
311
 
@@ -320,19 +272,13 @@
320
  /**
321
  * @typedef NoticeContext
322
  *
323
- * @property {Array<StoreNoticeObject>} notices An array of notice
324
- * objects.
325
- * @property {function(string,string,any):undefined} createNotice Creates a notice for the
326
- * given arguments.
327
- * @property {function(string, any):undefined} createSnackbarNotice Creates a snackbar notice
328
- * type.
329
- * @property {function(string,string=):undefined} removeNotice Removes a notice with the
330
- * given id and context
331
- * @property {string} context The current context
332
- * identifier for the notice
333
  * provider
334
- * @property {function(boolean):void} setIsSuppressed Consumers can use this
335
- * setter to suppress
336
  */
337
 
338
  /**
19
  * @typedef {Object} ShippingDataContext
20
  *
21
  * @property {ShippingErrorStatus} shippingErrorStatus The current shipping error status.
22
+ * @property {Function} dispatchErrorStatus A function for dispatching a shipping rate error status.
23
+ * @property {ShippingErrorTypes} shippingErrorTypes The error type constants for the shipping rate error
24
+ * status.
 
25
  * @property {CartShippingOption[]} shippingRates An array of available shipping rates.
26
+ * @property {Function} setShippingRates Used to set the available shipping rates.
27
+ * @property {boolean} shippingRatesLoading Whether or not the shipping rates are being loaded.
28
+ * @property {string[]} selectedRates The ids of the rates that are selected.
29
+ * @property {Function} setSelectedRates Function for setting the selected rates.
 
 
 
 
30
  * @property {boolean} isSelectingRate True when rate is being selected.
31
  * @property {CartShippingAddress} shippingAddress The current set address for shipping.
32
+ * @property {Function} setShippingAddress Function for setting the shipping address.
33
+ * @property {function()} onShippingRateSuccess Used to register a callback to be invoked when shipping
34
+ * rates are retrieved.
35
+ * @property {function()} onShippingRateSelectSuccess Used to register a callback to be invoked when shipping
36
+ * rate is selected.
37
+ * @property {function()} onShippingRateSelectFail Used to register a callback to be invoked when shipping
38
+ * rate is selected unsuccessfully
39
+ * @property {function()} onShippingRateFail Used to register a callback to be invoked when there is
40
+ * an error with retrieving shipping rates.
41
+ * @property {boolean} needsShipping True if the cart has items requiring shipping.
 
 
 
 
 
 
42
  */
43
 
44
  /**
55
  *
56
  * @property {string} NONE No shipping error.
57
  * @property {string} INVALID_ADDRESS Error due to an invalid address for calculating shipping.
58
+ * @property {string} UNKNOWN When an unknown error has occurred in calculating/retrieving shipping rates.
 
59
  */
60
 
61
  /**
62
  * @typedef {Object} PaymentMethodCurrentStatus
63
  *
64
+ * This contains status information for the current active payment method in the checkout.
 
65
  *
66
  * @property {boolean} isPristine If true then the payment method state in checkout is pristine.
67
+ * @property {boolean} isStarted If true then the payment method has been initialized and has started.
 
68
  * @property {boolean} isProcessing If true then the payment method is processing payment.
69
+ * @property {boolean} isFinished If true then the payment method is in a finished state (which may mean it's status
70
+ * is either error, failed, or success).
71
  * @property {boolean} hasError If true then the payment method is in an error state.
72
+ * @property {boolean} hasFailed If true then the payment method has failed (usually indicates a problem with the
73
+ * payment method used, not logic error)
74
+ * @property {boolean} isSuccessful If true then the payment method has completed it's processing successfully.
 
75
  */
76
 
77
  /**
83
  * @property {string} expires Short form of expiry for payment method.
84
  * @property {boolean} is_default Whether it is the default payment method of the customer or not.
85
  * @property {number} tokenId The id of the saved payment method.
86
+ * @property {Object} actions Varies, actions that can be done to interact with the payment method.
 
87
  */
88
 
89
  /**
95
  /**
96
  * A Saved Customer Payment methods object
97
  *
98
+ * This is an object where the keys are payment gateway slugs and the values are an array of CustomerPaymentMethod
99
+ * objects.
100
  *
101
  * @typedef {Object} SavedCustomerPaymentMethods
102
  * @property {any} any Various payment methods
120
  /**
121
  * @typedef {Object} PaymentMethodDataContext
122
  *
123
+ * @property {PaymentStatusDispatch} setPaymentStatus Sets the payment status for the payment
124
+ * method.
125
+ * @property {PaymentMethodCurrentStatus} currentStatus The current payment status.
126
+ * @property {Object} paymentStatuses An object of payment status constants.
127
+ * @property {Object} paymentMethodData Arbitrary data to be passed along for
128
+ * processing by the payment method on the
 
 
 
 
129
  * server.
130
+ * @property {string} errorMessage An error message provided by the payment
131
+ * method if there is an error.
132
+ * @property {string} activePaymentMethod The active payment method slug.
133
+ * @property {function(string)} setActivePaymentMethod A function for setting the active payment
 
 
 
 
134
  * method.
135
+ * @property {SavedCustomerPaymentMethods} customerPaymentMethods Returns the customer payment for the
136
+ * customer if it exists.
137
+ * @property {Object} paymentMethods Registered payment methods.
138
+ * @property {Object} expressPaymentMethods Registered express payment methods.
139
+ * @property {boolean} paymentMethodsInitialized True when all registered payment methods
 
 
 
 
 
 
 
140
  * have been initialized.
141
+ * @property {boolean} expressPaymentMethodsInitialized True when all registered express payment
142
+ * methods have been initialized.
143
+ * @property {function(function())} onPaymentProcessing Event registration callback for registering
144
+ * observers for the payment processing event.
145
+ * @property {function(string)} setExpressPaymentError A function used by express payment methods
146
+ * to indicate an error for checkout to handle.
147
+ * It receives an error message string.
148
+ * Does not change payment status.
149
+ * @property {function(boolean):void} setShouldSavePayment A function used to set the shouldSavePayment
 
 
 
 
 
150
  * value.
151
+ * @property {boolean} shouldSavePayment True means that the configured payment
152
+ * method option is saved for the customer.
 
 
153
  */
154
 
155
  /**
156
  * @typedef {Object} CheckoutDataContext
157
  *
158
+ * @property {function()} onSubmit The callback to register with the
159
+ * checkout submit button.
160
+ * @property {boolean} isComplete True when checkout is complete and
161
+ * ready for redirect.
162
+ * @property {boolean} isBeforeProcessing True during any observers executing
163
+ * logic before checkout processing
164
+ * (eg. validation).
165
+ * @property {boolean} isAfterProcessing True when checkout status is
166
+ * AFTER_PROCESSING.
167
+ * @property {boolean} isIdle True when the checkout state has
168
+ * changed and checkout has no activity.
169
+ * @property {boolean} isProcessing True when checkout has been submitted
170
+ * and is being processed. Note, payment
171
+ * related processing happens during this
172
+ * state. When payment status is success,
173
+ * processing happens on the server.
174
+ * @property {boolean} isCalculating True when something in the checkout is
175
+ * resulting in totals being calculated.
176
+ * @property {boolean} hasError True when the checkout is in an error
177
+ * state. Whatever caused the error
178
+ * (validation/payment method) will likely
179
+ * have triggered a notice.
180
+ * @property {string} redirectUrl This is the url that checkout will
181
+ * redirect to when it's ready.
182
+ * @property {function(function(),number=)} onCheckoutAfterProcessingWithSuccess Used to register a callback that will
183
+ * fire after checkout has been processed
184
+ * and there are no errors.
185
+ * @property {function(function(),number=)} onCheckoutAfterProcessingWithError Used to register a callback that will
186
+ * fire when the checkout has been
187
+ * processed and has an error.
188
+ * @property {function(function(),number=)} onCheckoutBeforeProcessing Used to register a callback that will
189
+ * fire when the checkout has been
190
+ * submitted before being sent off to the
191
+ * server.
192
+ * @property {CheckoutDispatchActions} dispatchActions Various actions that can be dispatched
193
+ * for the checkout context data.
194
+ * @property {number} orderId This is the ID for the draft order if
195
+ * one exists.
196
+ * @property {number} orderNotes Order notes introduced by the user in
197
+ * the checkout form.
198
+ * @property {boolean} hasOrder True when the checkout has a draft
199
+ * order from the API.
200
+ * @property {boolean} isCart When true, means the provider is
201
+ * providing data for the cart.
202
+ * @property {number} customerId This is the ID of the customer the
203
+ * draft order belongs to.
204
+ * @property {boolean} shouldCreateAccount Should a user account be created?
205
+ * @property {function(boolean)} setShouldCreateAccount Function to update the
206
+ * shouldCreateAccount property.
 
 
 
 
 
 
 
 
 
 
207
  */
208
 
209
  /**
220
  * @property {Object} product The product object to add to the cart.
221
  * @property {string} productType The name of the product type.
222
  * @property {boolean} productIsPurchasable True if the product can be purchased.
223
+ * @property {boolean} productHasOptions True if the product has additional options and thus
224
+ * needs a cart form.
225
  * @property {boolean} supportsFormElements True if the product type supports form elements.
226
+ * @property {boolean} showFormElements True if showing a full add to cart form (enabled and
227
+ * supported).
228
  * @property {number} quantity Stores the quantity being added to the cart.
229
  * @property {number} minQuantity Min quantity that can be added to the cart.
230
  * @property {number} maxQuantity Max quantity than can be added to the cart.
231
  * @property {Object} requestParams List of params to send to the API.
232
+ * @property {boolean} isIdle True when the form state has changed and has no
233
+ * activity.
234
  * @property {boolean} isDisabled True when the form cannot be submitted.
235
+ * @property {boolean} isProcessing True when the form has been submitted and is being
236
+ * processed.
237
+ * @property {boolean} isBeforeProcessing True during any observers executing logic before form
238
+ * processing (eg. validation).
239
  * @property {boolean} isAfterProcessing True when form status is AFTER_PROCESSING.
240
+ * @property {boolean} hasError True when the form is in an error state. Whatever
241
+ * caused the error (validation/payment method) will
242
+ * likely have triggered a notice.
243
  * @property {AddToCartFormEventRegistration} eventRegistration Event emitters that can be subscribed to.
244
+ * @property {AddToCartFormDispatchActions} dispatchActions Various actions that can be dispatched for the add to
245
+ * cart form context data.
246
  */
247
 
248
  /**
249
  * @typedef {Object} ValidationContext
250
  *
251
+ * @property {function(string):Object} getValidationError Return validation error for the given property.
252
+ * @property {function(Object)} setValidationErrors Receive an object of properties and error messages as
253
+ * strings and adds to the validation error state.
254
+ * @property {function(string)} clearValidationError Clears a validation error for the given property name.
255
+ * @property {function()} clearAllValidationErrors Clears all validation errors currently in state.
 
 
 
 
256
  * @property {function(string)} getValidationErrorId Returns the css id for the
257
+ * validation error using the given inputId string.
258
+ * @property {function(string)} hideValidationError Sets the hidden prop of a specific error to true.
259
+ * @property {function(string)} showValidationError Sets the hidden prop of a specific error to false.
260
+ * @property {function()} showAllValidationErrors Sets the hidden prop of all errors to false.
 
 
 
 
261
  * @property {boolean} hasValidationErrors True if there is at least one error.
262
  */
263
 
272
  /**
273
  * @typedef NoticeContext
274
  *
275
+ * @property {Array<StoreNoticeObject>} notices An array of notice objects.
276
+ * @property {function(string,string,any):undefined} createNotice Creates a notice for the given arguments.
277
+ * @property {function(string, any):undefined} createSnackbarNotice Creates a snackbar notice type.
278
+ * @property {function(string,string=):undefined} removeNotice Removes a notice with the given id and context
279
+ * @property {string} context The current context identifier for the notice
 
 
 
 
 
280
  * provider
281
+ * @property {function(boolean):void} setIsSuppressed Consumers can use this setter to suppress
 
282
  */
283
 
284
  /**
build/active-filters-frontend.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-settings', 'wp-blocks', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => 'd7058b75cdad39f38967456fcf0dff4e');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-settings', 'wp-blocks', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => '1391ebc279bc397dd0c53ee18f4734cd');
build/all-products-frontend.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wc-shared-context', 'wc-shared-hocs', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-wordcount'), 'version' => '4ce563e1dae43f75660e85aa10c0bf7a');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wc-shared-context', 'wc-shared-hocs', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-wordcount'), 'version' => 'a48e326a657d2336d96df73d61b52148');
build/all-products-frontend.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){function t(t){for(var n,o,c=t[0],i=t[1],a=0,s=[];a<c.length;a++)o=c[a],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&s.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(t);s.length;)s.shift()()}var n={},r={1:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=c);var i,a=document.createElement("script");a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=function(e){return o.p+""+({2:"atomic-block-components/add-to-cart",3:"atomic-block-components/button",4:"atomic-block-components/category-list",5:"atomic-block-components/image",6:"atomic-block-components/price",7:"atomic-block-components/rating",8:"atomic-block-components/sale-badge",9:"atomic-block-components/sku",10:"atomic-block-components/stock-indicator",11:"atomic-block-components/summary",12:"atomic-block-components/tag-list",13:"atomic-block-components/title",20:"vendors~atomic-block-components/price"}[e]||e)+"-frontend.js"}(e);var u=new Error;i=function(t){a.onerror=a.onload=null,clearTimeout(s);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+o+": "+c+")",u.name="ChunkLoadError",u.type=o,u.request=c,n[1](u)}r[e]=void 0}};var s=setTimeout((function(){i({type:"timeout",target:a})}),12e4);a.onerror=a.onload=i,document.head.appendChild(a)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var c=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],i=c.push.bind(c);c.push=t,c=c.slice();for(var a=0;a<c.length;a++)t(c[a]);var u=i;o(o.s=206)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wc.wcSettings}()},function(e,t,n){e.exports=n(61)()},function(e,t,n){var r;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
1
+ !function(e){function t(t){for(var n,o,c=t[0],i=t[1],a=0,s=[];a<c.length;a++)o=c[a],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&s.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(t);s.length;)s.shift()()}var n={},r={1:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=c);var i,a=document.createElement("script");a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=function(e){return o.p+""+({2:"atomic-block-components/add-to-cart",3:"atomic-block-components/button",4:"atomic-block-components/category-list",5:"atomic-block-components/image",6:"atomic-block-components/price",7:"atomic-block-components/rating",8:"atomic-block-components/sale-badge",9:"atomic-block-components/sku",10:"atomic-block-components/stock-indicator",11:"atomic-block-components/summary",12:"atomic-block-components/tag-list",13:"atomic-block-components/title",20:"vendors--atomic-block-components/price"}[e]||e)+"-frontend.js"}(e);var u=new Error;i=function(t){a.onerror=a.onload=null,clearTimeout(s);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+o+": "+c+")",u.name="ChunkLoadError",u.type=o,u.request=c,n[1](u)}r[e]=void 0}};var s=setTimeout((function(){i({type:"timeout",target:a})}),12e4);a.onerror=a.onload=i,document.head.appendChild(a)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var c=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],i=c.push.bind(c);c.push=t,c=c.slice();for(var a=0;a<c.length;a++)t(c[a]);var u=i;o(o.s=206)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wc.wcSettings}()},function(e,t,n){e.exports=n(61)()},function(e,t,n){var r;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
build/all-products.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wc-shared-context', 'wc-shared-hocs', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '6630997a17bfece8059ced03b701b407');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wc-shared-context', 'wc-shared-hocs', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '7dac3a85071df3829708a617fead0b48');
build/all-products.js CHANGED
@@ -1 +1 @@
1
- this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["all-products"]=function(e){function t(t){for(var n,a,i=t[0],s=t[1],u=t[2],b=0,p=[];b<i.length;b++)a=i[b],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&p.push(c[a][0]),c[a]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(l&&l(t);p.length;)p.shift()();return o.push.apply(o,u||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],n=!0,i=1;i<r.length;i++){var s=r[i];0!==c[s]&&(n=!1)}n&&(o.splice(t--,1),e=a(a.s=r[0]))}return e}var n={},c={5:0,2:0,3:0,8:0,9:0,11:0,12:0,13:0,14:0,15:0,16:0},o=[];function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[],r=c[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=n);var o,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+""+({1:"atomic-block-components/add-to-cart~atomic-block-components/image~atomic-block-components/title",2:"atomic-block-components/add-to-cart~atomic-block-components/button",3:"atomic-block-components/sale-badge",7:"atomic-block-components/add-to-cart",8:"atomic-block-components/button",9:"atomic-block-components/category-list",10:"atomic-block-components/image",11:"atomic-block-components/price",12:"atomic-block-components/rating",13:"atomic-block-components/sku",14:"atomic-block-components/stock-indicator",15:"atomic-block-components/summary",16:"atomic-block-components/tag-list",17:"atomic-block-components/title"}[e]||e)+".js"}(e);var s=new Error;o=function(t){i.onerror=i.onload=null,clearTimeout(u);var r=c[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",s.name="ChunkLoadError",s.type=n,s.request=o,r[1](s)}c[e]=void 0}};var u=setTimeout((function(){o({type:"timeout",target:i})}),12e4);i.onerror=i.onload=o,document.head.appendChild(i)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var l=s;return o.push([839,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},102:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=Object(n.createContext)("page"),o=function(){return Object(n.useContext)(c)};c.Provider},108:function(e,t){},109:function(e,t){},110:function(e,t){},111:function(e,t){},112:function(e,t){},113:function(e,t){},114:function(e,t){},115:function(e,t){},116:function(e,t){},117:function(e,t){},118:function(e,t){},119:function(e,t){},120:function(e,t){},121:function(e,t){},122:function(e,t){},13:function(e,t){!function(){e.exports=this.wp.apiFetch}()},134:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(41),c=r(36),o=r(212),a=r(33),i=r(6),s={cartCoupons:[],cartItems:[],cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:[],cartTotals:{},cartIsLoading:!0,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:[],shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:function(){}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(o.b)(),r=t.isEditor,u=t.previewData,l=(null==u?void 0:u.previewCart)||{},b=e.shouldSelect,p=Object(c.useSelect)((function(e,t){var c=t.dispatch;if(!b)return s;if(r)return{cartCoupons:l.coupons,cartItems:l.items,cartItemsCount:l.items_count,cartItemsWeight:l.items_weight,cartNeedsPayment:l.needs_payment,cartNeedsShipping:l.needs_shipping,cartItemErrors:[],cartTotals:l.totals,cartIsLoading:!1,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:l.shipping_rates,shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:"function"==typeof(null==l?void 0:l.receiveCart)?l.receiveCart:function(){}};var o=e(n.CART_STORE_KEY),u=o.getCartData(),p=o.getCartErrors(),d=o.getCartTotals(),f=!o.hasFinishedResolution("getCartData"),m=o.areShippingRatesLoading(),O=c(n.CART_STORE_KEY).receiveCart,g=Object(i.mapValues)(u.shippingAddress,(function(e){return Object(a.decodeEntities)(e)}));return{cartCoupons:u.coupons,cartItems:u.items||[],cartItemsCount:u.itemsCount,cartItemsWeight:u.itemsWeight,cartNeedsPayment:u.needsPayment,cartNeedsShipping:u.needsShipping,cartItemErrors:u.errors||[],cartTotals:d,cartIsLoading:f,cartErrors:p,shippingAddress:g,shippingRates:u.shippingRates||[],shippingRatesLoading:m,hasShippingAddress:!!g.country,receiveCart:O}}),[b]);return p}},135:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(61),a=r(167),i=r(3),s=r(14),u=r(45);t.a=function(e){var t=(Object(u.useProductDataContext)().product||{}).id||e.productId||0;return t?Object(n.createElement)(s.InspectorControls,null,Object(n.createElement)("div",{className:"wc-block-single-product__edit-card"},Object(n.createElement)("div",{className:"wc-block-single-product__edit-card-title"},Object(n.createElement)("a",{href:"".concat(i.ADMIN_URL,"post.php?post=").concat(t,"&action=edit"),target:"_blank",rel:"noopener noreferrer"},Object(c.__)("Edit this product's details","woo-gutenberg-products-block"),Object(n.createElement)(o.a,{srcElement:a.a,size:16}))),Object(n.createElement)("div",{className:"wc-block-single-product__edit-card-description"},Object(c.__)("Edit details such as title, price, description and more.","woo-gutenberg-products-block")))):null}},14:function(e,t){!function(){e.exports=this.wp.blockEditor}()},140:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(8),c=r.n(n),o=r(191),a=r(0);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=function(){var e=Object(o.b)(),t=e.notices,r=e.createNotice,n=e.removeNotice,c=e.createSnackbarNotice,i=e.setIsSuppressed,u=Object(a.useRef)(t);Object(a.useEffect)((function(){u.current=t}),[t]);var l=Object(a.useMemo)((function(){return{hasNoticesOfType:function(e){return u.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u.current.forEach((function(t){null!==e&&t.status!==e||n(t.id)}))},removeNotice:n}}),[n]),b=Object(a.useMemo)((function(){return{addDefaultNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("default",e,s({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("error",e,s({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("warning",e,s({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("info",e,s({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("success",e,s({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(e,t)}}}),[r,c]);return s(s(s({notices:t},l),b),{},{setIsSuppressed:i})}},142:function(e,t){!function(){e.exports=this.wp.wordcount}()},143:function(e,t,r){"use strict";var n=r(51),c=r.n(n),o=r(10),a=r.n(o),i=r(0),s=r(1),u=r(6),l=(r(2),r(50)),b=r(4),p=r(7),d=r.n(p),f=r(22),m=r.n(f),O=r(25),g=r.n(O),j=r(23),v=r.n(j),h=r(24),y=r.n(h),w=r(12),E=r.n(w),_=r(26);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E()(e);if(t){var c=E()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return y()(this,r)}}var P=Object(_.createHigherOrderComponent)((function(e){var t=function(t){v()(n,t);var r=k(n);function n(){return m()(this,n),r.apply(this,arguments)}return g()(n,[{key:"render",value:function(){var t=this.props.selected;return Object(i.createElement)(e,a()({},this.props,{selected:Object(u.isNil)(t)?[]:[t]}))}}]),n}(i.Component);return t.defaultProps={selected:null},t}),"withTransformSingleSelectToMultipleSelect"),C=r(302),S=r(15),N=r.n(S),x=r(37),D=r.n(x),B=r(19),z=r.n(B),R=r(8),T=r.n(R),I=r(43),L=r.n(I),A=r(40),V=r(44);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){T()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E()(e);if(t){var c=E()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return y()(this,r)}}var q=Object(_.createHigherOrderComponent)((function(e){var t=function(t){v()(n,t);var r=H(n);function n(){var e;m()(this,n);for(var t=arguments.length,c=new Array(t),o=0;o<t;o++)c[o]=arguments[o];return e=r.call.apply(r,[this].concat(c)),T()(z()(e),"state",{error:null,loading:!1,variations:{}}),T()(z()(e),"loadVariations",(function(){var t=e.props.products,r=e.state,n=r.loading,c=r.variations;if(!n){var o=e.getExpandedProduct();if(o&&!c[o]){var a=t.find((function(e){return e.id===o}));a.variations&&0!==a.variations.length?(e.setState({loading:!0}),Object(A.g)(o).then((function(t){var r=t.map((function(e){return M(M({},e),{},{parent:o})}));e.setState({variations:M(M({},e.state.variations),{},T()({},o,r)),loading:!1,error:null})})).catch(function(){var t=D()(N.a.mark((function t(r){var n;return N.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(V.a)(r);case 2:n=t.sent,e.setState({variations:M(M({},e.state.variations),{},T()({},o,null)),loading:!1,error:n});case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())):e.setState({variations:M(M({},e.state.variations),{},T()({},o,null)),loading:!1,error:null})}}})),e}return g()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.selected,r=e.showVariations;t&&r&&this.loadVariations()}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isLoading,n=t.selected;t.showVariations&&(!L()(e.selected,n)||e.isLoading&&!r)&&this.loadVariations()}},{key:"isProductId",value:function(e){return this.props.products.some((function(t){return t.id===e}))}},{key:"findParentProduct",value:function(e){return this.props.products.filter((function(t){return t.variations&&t.variations.find((function(t){return t.id===e}))}))[0].id}},{key:"getExpandedProduct",value:function(){var e=this.props,t=e.isLoading,r=e.selected;if(!e.showVariations)return null;var n=r&&r.length?r[0]:null;return n?this.prevSelectedItem=n:this.prevSelectedItem&&(t||this.isProductId(this.prevSelectedItem)||(n=this.prevSelectedItem)),!t&&n?this.isProductId(n)?n:this.findParentProduct(n):null}},{key:"render",value:function(){var t=this.props,r=t.error,n=t.isLoading,c=this.state,o=c.error,s=c.loading,u=c.variations;return Object(i.createElement)(e,a()({},this.props,{error:o||r,expandedProduct:this.getExpandedProduct(),isLoading:n,variations:u,variationsLoading:s}))}}]),n}(i.Component);return T()(t,"defaultProps",{selected:[],showVariations:!1}),t}),"withProductVariations"),U=r(61),Q=r(57),Y=Object(i.createElement)(Q.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"#1E8CBE",d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),W=Object(i.createElement)(Q.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"#757575",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),X=r(49);r(200);function G(e,t){if(!t)return e;var r=new RegExp(Object(u.escapeRegExp)(t),"ig");return e.replace(r,"<strong>$&</strong>")}var K=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?Object(i.createElement)(U.a,{srcElement:Y}):Object(i.createElement)(U.a,{srcElement:W})},$={list:Object(s.__)("Products","woo-gutenberg-products-block"),noItems:Object(s.__)("Your store doesn't have any products.","woo-gutenberg-products-block"),search:Object(s.__)("Search for a product to display","woo-gutenberg-products-block"),updated:Object(s.__)("Product search results updated.","woo-gutenberg-products-block")},J=function(e){var t=e.expandedProduct,r=e.error,n=e.isLoading,o=e.onChange,p=e.onSearch,f=e.products,m=e.renderItem,O=e.selected,g=e.showVariations,j=e.variations,v=e.variationsLoading,h=function(e){var r=e.item,n=e.search,c=e.depth,o=void 0===c?0:c,p=e.isSelected,f=e.onSelect,m=r.variations&&Array.isArray(r.variations)?r.variations.length:0,O=d()("woocommerce-search-product__item","woocommerce-search-list__item","depth-".concat(o),{"is-searching":n.length>0,"is-skip-level":0===o&&0!==r.parent,"is-variable":m>0}),g=Object.assign({},e);delete g.isSingle;var j={role:"menuitemradio"};return r.breadcrumbs.length&&(j["aria-label"]="".concat(r.breadcrumbs[0],": ").concat(r.name)),m&&(j["aria-expanded"]=r.id===t),r.breadcrumbs.length?(Object(u.isEmpty)(r.variation)||(r.name=r.variation),Object(i.createElement)(l.b,a()({className:O},e,j))):[Object(i.createElement)(b.MenuItem,a()({key:"product-".concat(r.id),isSelected:p},g,j,{className:O,onClick:function(){f(r)()}}),Object(i.createElement)("span",{className:"woocommerce-search-list__item-state"},K(p)),Object(i.createElement)("span",{className:"woocommerce-search-list__item-label"},Object(i.createElement)("span",{className:"woocommerce-search-list__item-name",dangerouslySetInnerHTML:{__html:G(r.name,n)}})),m?Object(i.createElement)("span",{className:"woocommerce-search-list__item-variation-count"},Object(s.sprintf)(Object(s._n)("%d variation","%d variations",m,"woo-gutenberg-products-block"),m)):null),t===r.id&&m>0&&v&&Object(i.createElement)("div",{key:"loading",className:"woocommerce-search-list__item woocommerce-search-product__itemdepth-1 is-loading is-not-active"},Object(i.createElement)(b.Spinner,null))]};if(r)return Object(i.createElement)(X.a,{error:r});var y=j&&j[t]?j[t]:[],w=[].concat(c()(f),c()(y));return Object(i.createElement)(l.a,{className:"woocommerce-products",list:w,isLoading:n,isSingle:!0,selected:w.filter((function(e){var t=e.id;return O.includes(t)})),onChange:o,renderItem:m||(g?h:null),onSearch:p,messages:$,isHierarchical:!0})};J.defaultProps={expandedProduct:null,selected:[],showVariations:!1};t.a=P(Object(C.a)(q(J)))},144:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}));t.a=o},149:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(7)),o=r.n(c),a=r(48),i=r(193);r(202);t.a=Object(i.a)((function(e){var t=e.className,r=e.instanceId,c=e.defaultValue,i=e.label,s=e.onChange,u=e.options,l=e.screenReaderLabel,b=e.readOnly,p=e.value,d="wc-block-components-sort-select__select-".concat(r);return Object(n.createElement)("div",{className:o()("wc-block-sort-select","wc-block-components-sort-select",t)},Object(n.createElement)(a.a,{label:i,screenReaderLabel:l,wrapperElement:"label",wrapperProps:{className:"wc-block-sort-select__label wc-block-components-sort-select__label",htmlFor:d}}),Object(n.createElement)("select",{id:d,className:"wc-block-sort-select__select wc-block-components-sort-select__select",defaultValue:c,onChange:s,readOnly:b,value:p},u.map((function(e){return Object(n.createElement)("option",{key:e.key,value:e.key},e.label)}))))}))},15:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},150:function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return b}));var n=r(8),c=r.n(n),o=r(6);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s="add_event_callback",u="remove_event_callback",l={addEventCallback:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:Object(o.uniqueId)(),type:s,eventType:e,callback:t,priority:r}},removeEventCallback:function(e,t){return{id:t,type:u,eventType:e}}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.eventType,o=t.id,a=t.callback,l=t.priority,b=new Map(e[n]);switch(r){case s:return b.set(o,{priority:l,callback:a}),i(i({},e),{},c()({},n,b));case u:return b.delete(o),i(i({},e),{},c()({},n,b))}return e}},152:function(e,t,r){"use strict";var n=r(22),c=r.n(n),o=r(25),a=r.n(o),i=r(23),s=r.n(i),u=r(24),l=r.n(u),b=r(12),p=r.n(b),d=r(0),f=r(6),m=r(1),O=r(4);function g(e){var t=e.level,r={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return r.hasOwnProperty(t)?Object(d.createElement)(O.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(O.Path,{d:r[t]})):null}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p()(e);if(t){var c=p()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return l()(this,r)}}var v=function(e){s()(r,e);var t=j(r);function r(){return c()(this,r),t.apply(this,arguments)}return a()(r,[{key:"createLevelControl",value:function(e,t,r){var n=e===t;return{icon:Object(d.createElement)(g,{level:e}),title:Object(m.sprintf)(Object(m.__)("Heading %d"),e),isActive:n,onClick:function(){return r(e)}}}},{key:"render",value:function(){var e=this,t=this.props,r=t.isCollapsed,n=void 0===r||r,c=t.minLevel,o=t.maxLevel,a=t.selectedLevel,i=t.onChange;return Object(d.createElement)(O.Toolbar,{isCollapsed:n,icon:Object(d.createElement)(g,{level:a}),controls:Object(f.range)(c,o).map((function(t){return e.createLevelControl(t,a,i)}))})}}]),r}(d.Component);t.a=v},155:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(11),c=r.n(n),o=r(0),a=function(){var e=Object(o.useState)(),t=c()(e,2)[1];return function(e){return t((function(){throw e}))}}},164:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(0),a=r(1),i=r(55),s=r(7),u=r.n(s),l=(r(2),r(237),function(e){var t=e.className,r=e.currency,n=e.maxPrice,c=e.minPrice,a=e.priceClassName,s=e.priceStyle;return Object(o.createElement)("span",{className:t},Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",a),currency:r,value:c,style:s})," — ",Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",a),currency:r,value:n,style:s}))}),b=function(e){var t=e.className,r=e.currency,n=e.regularPriceClassName,c=e.regularPriceStyle,s=e.regularPrice,l=e.priceClassName,b=e.priceStyle,p=e.price;return Object(o.createElement)("span",{className:t},Object(o.createElement)("span",{className:"screen-reader-text"},Object(a.__)("Previous price:","woo-gutenberg-products-block")),Object(o.createElement)(i.a,{currency:r,renderText:function(e){return Object(o.createElement)("del",{className:u()("wc-block-components-product-price__regular",n),style:c},e)},value:s}),Object(o.createElement)("span",{className:"screen-reader-text"},Object(a.__)("Discounted price:","woo-gutenberg-products-block")),Object(o.createElement)(i.a,{currency:r,renderText:function(e){return Object(o.createElement)("ins",{className:u()("wc-block-components-product-price__value","is-discounted",l),style:b},e)},value:p}))};t.a=function(e){var t=e.align,r=e.className,n=e.currency,a=e.maxPrice,s=void 0===a?null:a,p=e.minPrice,d=void 0===p?null:p,f=e.price,m=void 0===f?null:f,O=e.priceClassName,g=e.priceStyle,j=e.regularPrice,v=e.regularPriceClassName,h=e.regularPriceStyle,y=u()(r,"price","wc-block-components-product-price",c()({},"wc-block-components-product-price--align-".concat(t),t));return j&&m!==j?Object(o.createElement)(b,{className:y,currency:n,price:m,priceClassName:O,priceStyle:g,regularPrice:j,regularPriceClassName:v,regularPriceStyle:h}):null!==d&&null!==s?Object(o.createElement)(l,{className:y,currency:n,maxPrice:s,minPrice:d,priceClassName:O,priceStyle:g}):null!==m?Object(o.createElement)("span",{className:y},Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",O),currency:n,value:m,style:g})):Object(o.createElement)("span",{className:y},Object(o.createElement)("span",{className:u()("wc-block-components-product-price__value",O)}))}},167:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("mask",{id:"external-mask",width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},Object(n.createElement)("path",{fill:"#fff",d:"M6.3431 6.3431v1.994l7.8984.0072-8.6055 8.6054 1.4142 1.4143 8.6055-8.6055.0071 7.8984h1.994V6.3431H6.3431z"})),Object(n.createElement)("g",{mask:"url(#external-mask)"},Object(n.createElement)("path",{d:"M0 0h24v24H0z"})));t.a=o},168:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(9),c=function(e,t){var r=Object(n.useRef)();return Object(n.useEffect)((function(){r.current===e||t&&!t(e,r.current)||(r.current=e)}),[e,t]),r.current}},17:function(e,t){!function(){e.exports=this.wp.blocks}()},172:function(e,t,r){"use strict";r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return m})),r.d(t,"c",(function(){return O}));var n=r(11),c=r.n(n),o=r(41),a=r(36),i=r(0),s=r(102),u=r(168),l=r(43),b=r.n(l),p=r(6),d=r(58),f=function(e){var t=Object(s.a)();e=e||t;var r=Object(a.useSelect)((function(t){return t(o.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0)}),[e]),n=Object(a.useDispatch)(o.QUERY_STATE_STORE_KEY).setValueForQueryContext;return[r,Object(i.useCallback)((function(t){n(e,t)}),[e,n])]},m=function(e,t,r){var n=Object(s.a)();r=r||n;var c=Object(a.useSelect)((function(n){return n(o.QUERY_STATE_STORE_KEY).getValueForQueryKey(r,e,t)}),[r,e]),u=Object(a.useDispatch)(o.QUERY_STATE_STORE_KEY).setQueryValue;return[c,Object(i.useCallback)((function(t){u(r,e,t)}),[r,e,u])]},O=function(e,t){var r=Object(s.a)(),n=f(t=t||r),o=c()(n,2),a=o[0],l=o[1],m=Object(d.a)(a),O=Object(d.a)(e),g=Object(u.a)(O),j=Object(i.useRef)(!1);return Object(i.useEffect)((function(){b()(g,O)||(l(Object(p.assign)({},m,O)),j.current=!0)}),[m,O,g,l]),j.current?[a,l]:[e,l]}},176:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=r(5),o=Object(n.createElement)("img",{src:c.U+"img/grid.svg",alt:"Grid Preview",width:"230",height:"250",style:{width:"100%"}})},177:function(e,t,r){"use strict";var n=r(0),c=r(142),o=r(95),a=function(e){var t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)},i=function(e){return e.replace(/<\/?[a-z][^>]*?>/gi,"")},s=function(e,t){return e.replace(/[\s|\.\,]+$/i,"")+t},u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"&hellip;",n=i(e),c=n.split(" ").splice(0,t).join(" ");return Object(o.autop)(s(c,r))},l=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&hellip;",c=i(e),a=c.slice(0,t);if(r)return Object(o.autop)(s(a,n));var u=a.match(/([\s]+)/g),l=u?u.length:0,b=c.slice(0,t+l);return Object(o.autop)(s(b,n))};t.a=function(e){var t=e.source,r=e.maxLength,i=void 0===r?15:r,s=e.countType,b=void 0===s?"words":s,p=e.className,d=void 0===p?"":p,f=Object(n.useMemo)((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"words",n=Object(o.autop)(e),i=Object(c.count)(n,r);if(i<=t)return n;var s=a(n),b=Object(c.count)(s,r);return b<=t?s:"words"===r?u(s,t):l(s,t,"characters_including_spaces"===r)}(t,i,b)}),[t,i,b]);return Object(n.createElement)(n.RawHTML,{className:d},f)}},18:function(e,t){!function(){e.exports=this.wp.url}()},185:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(22),a=r.n(o),i=r(25),s=r.n(i),u=r(19),l=r.n(u),b=r(23),p=r.n(b),d=r(24),f=r.n(d),m=r(12),O=r.n(m),g=r(8),j=r.n(g),v=r(0),h=r(9);r(260);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O()(e);if(t){var c=O()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return f()(this,r)}}t.a=function(e){var t=function(t){p()(n,t);var r=y(n);function n(){var e;return a()(this,n),e=r.call(this),j()(l()(e),"scrollToTopIfNeeded",(function(){var t=e.scrollPointRef.current.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollPointRef.current.scrollIntoView()})),j()(l()(e),"moveFocusToTop",(function(t){var r=e.scrollPointRef.current.parentElement.querySelectorAll(t);r.length&&r[0].focus()})),j()(l()(e),"scrollToTop",(function(t){window&&Number.isFinite(window.innerHeight)&&(e.scrollToTopIfNeeded(),t&&t.focusableSelector&&e.moveFocusToTop(t.focusableSelector))})),e.scrollPointRef=Object(h.createRef)(),e}return s()(n,[{key:"render",value:function(){return Object(v.createElement)(h.Fragment,null,Object(v.createElement)("div",{className:"with-scroll-to-top__scroll-point",ref:this.scrollPointRef,"aria-hidden":!0}),Object(v.createElement)(e,c()({},this.props,{scrollToTop:this.scrollToTop})))}}]),n}(h.Component);return t.displayName="withScrollToTop",t}},191:function(e,t,r){"use strict";r.d(t,"b",(function(){return g})),r.d(t,"a",(function(){return j}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=(r(2),r(36)),u=r(303),l=r(944),b=r(140),p=r(212),d=function(){var e=Object(p.b)().isEditor,t=Object(b.a)(),r=t.notices,n=t.removeNotice;if(e)return null;var c=r.filter((function(e){return"snackbar"===e.type}));return Object(i.createElement)(l.a,{notices:c,className:"wc-block-components-notices__snackbar",onRemove:n})};function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=Object(i.createContext)({notices:[],createNotice:function(e,t,r){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),g=function(){return Object(i.useContext)(O)},j=function(e){var t=e.children,r=e.className,n=void 0===r?"":r,c=e.createNoticeContainer,o=void 0===c||c,l=e.context,b=void 0===l?"wc/core":l,p=Object(s.useDispatch)("core/notices"),f=p.createNotice,g=p.removeNotice,j=Object(i.useState)(!1),v=a()(j,2),h=v[0],y=v[1],w=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};f(e,t,m(m({},r),{},{context:r.context||b}))}),[f,b]),E=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;g(e,t)}),[g,b]),_=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w("default",e,m(m({},t),{},{type:"snackbar"}))}),[w]),k={notices:Object(s.useSelect)((function(e){return{notices:e("core/notices").getNotices(b)}}),[b]).notices,createNotice:w,createSnackbarNotice:_,removeNotice:E,context:b,setIsSuppressed:y},P=h?null:Object(i.createElement)(u.a,{className:n,notices:k.notices}),C=h?null:Object(i.createElement)(d,null);return Object(i.createElement)(O.Provider,{value:k},o&&P,t,C)}},194:function(e,t){},200:function(e,t){},202:function(e,t){},207:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(41),c=r(36),o=r(0),a=r(155),i=r(58),s=function(e){var t=e.namespace,r=e.resourceName,s=e.resourceValues,u=void 0===s?[]:s,l=e.query,b=void 0===l?{}:l,p=e.shouldSelect,d=void 0===p||p;if(!t||!r)throw new Error("The options object must have valid values for the namespace and the resource properties.");var f=Object(o.useRef)({results:[],isLoading:!0}),m=Object(i.a)(b),O=Object(i.a)(u),g=Object(a.a)(),j=Object(c.useSelect)((function(e){if(!d)return null;var c=e(n.COLLECTIONS_STORE_KEY),o=[t,r,m,O],a=c.getCollectionError.apply(c,o);return a&&g(a),{results:c.getCollection.apply(c,o),isLoading:!c.hasFinishedResolution("getCollection",o)}}),[t,r,O,m,d]);return null!==j&&(f.current=j),f.current}},212:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return i}));var n=r(0),c=r(36),o=Object(n.createContext)({isEditor:!1,currentPostId:0,previewData:{}}),a=function(){return Object(n.useContext)(o)},i=function(e){var t=e.children,r=e.currentPostId,a=void 0===r?0:r,i=e.previewData,s=void 0===i?{}:i,u={isEditor:!0,currentPostId:Object(c.useSelect)((function(e){return a||e("core/editor").getCurrentPostId()}),[a]),previewData:s};return Object(n.createElement)(o.Provider,{value:u},t)}},233:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=r(86),o=(r(2),r(240),function(e){var t=e.errorMessage,r=void 0===t?"":t,o=e.propertyName,a=void 0===o?"":o,i=e.elementId,s=void 0===i?"":i,u=Object(c.b)(),l=u.getValidationError,b=u.getValidationErrorId;if(!r){var p=l(a)||{};if(!p.message||p.hidden)return null;r=p.message}return Object(n.createElement)("div",{className:"wc-block-components-validation-error",role:"alert"},Object(n.createElement)("p",{id:b(s)},r))})},237:function(e,t){},238:function(e,t){},239:function(e,t){},240:function(e,t){},259:function(e,t,r){"use strict";r.d(t,"c",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"a",(function(){return m}));var n=r(8),c=r.n(n),o=r(60),a=r.n(o),i=r(3);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l,b,p={code:i.CURRENCY.code,symbol:i.CURRENCY.symbol,thousandSeparator:i.CURRENCY.thousandSeparator,decimalSeparator:i.CURRENCY.decimalSeparator,minorUnit:i.CURRENCY.precision,prefix:(l=i.CURRENCY.symbol,b=i.CURRENCY.symbolPosition,{left:l,left_space:" "+l,right:"",right_space:""}[b]||""),suffix:function(e,t){return{left:"",left_space:"",right:e,right_space:" "+e}[t]||""}(i.CURRENCY.symbol,i.CURRENCY.symbolPosition)},d=function(e){if(!e||"object"!==a()(e))return p;var t=e.currency_code,r=e.currency_symbol,n=e.currency_thousand_separator,c=e.currency_decimal_separator,o=e.currency_minor_unit,i=e.currency_prefix,s=e.currency_suffix;return{code:t||"USD",symbol:r||"$",thousandSeparator:"string"==typeof n?n:",",decimalSeparator:"string"==typeof c?c:".",minorUnit:Number.isFinite(o)?o:2,prefix:"string"==typeof i?i:"$",suffix:"string"==typeof s?s:""}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(u({},p),e)},m=function(e,t){if(""===e||void 0===e)return"";var r=parseInt(e,10);if(!Number.isFinite(r))return"";var n=f(t),c=r/Math.pow(10,n.minorUnit),o=n.prefix+c+n.suffix,a=document.createElement("textarea");return a.innerHTML=o,a.value}},26:function(e,t){!function(){e.exports=this.wp.compose}()},260:function(e,t){},267:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(1)),i=r(7),s=r.n(i),u=r(48),l=r(45),b=r(73);r(553);t.default=Object(b.withProductDataContext)((function(e){var t=e.className,r=e.align,n=Object(l.useInnerBlockLayoutContext)().parentClassName,i=Object(l.useProductDataContext)().product;if(!i.id||!i.on_sale)return null;var b="string"==typeof r?"wc-block-components-product-sale-badge--align-".concat(r):"";return Object(o.createElement)("div",{className:s()("wc-block-components-product-sale-badge",t,b,c()({},"".concat(n,"__product-onsale"),n))},Object(o.createElement)(u.a,{label:Object(a.__)("Sale","woo-gutenberg-products-block"),screenReaderLabel:Object(a.__)("Product on sale","woo-gutenberg-products-block")}))}))},268:function(e,t){!function(){e.exports=this.wp.deprecated}()},269:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(27),a=r.n(o),i=r(0),s=r(57),u=Object(i.createElement)((function(e){var t=e.className,r=e.size,n=void 0===r?20:r,o=a()(e,["className","size"]);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:n,height:n},o),Object(i.createElement)("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))}),null),l=r(284);t.a=function(e){let t;switch(e.icon){case"arrow-down-alt2":t=u;break;case"no-alt":t=l.a}return t?Object(i.cloneElement)(t,{size:e.size||20,className:e.className}):null}},284:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(27),a=r.n(o),i=r(0),s=r(57),u=Object(i.createElement)((function(e){var t=e.className,r=e.size,n=a()(e,["className","size"]);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:r,height:r},n),Object(i.createElement)("path",{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))}),null);t.a=u},3:function(e,t){!function(){e.exports=this.wc.wcSettings}()},302:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(15),a=r.n(o),i=r(37),s=r.n(i),u=r(22),l=r.n(u),b=r(25),p=r.n(b),d=r(19),f=r.n(d),m=r(23),O=r.n(m),g=r(24),j=r.n(g),v=r(12),h=r.n(v),y=r(0),w=r(6),E=r(26),_=(r(2),r(5)),k=r(40),P=r(44);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h()(e);if(t){var c=h()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return j()(this,r)}}var S=Object(E.createHigherOrderComponent)((function(e){var t=function(t){O()(o,t);var r,n=C(o);function o(){var e;return l()(this,o),(e=n.apply(this,arguments)).state={list:[],loading:!0},e.setError=e.setError.bind(f()(e)),e.debouncedOnSearch=Object(w.debounce)(e.onSearch.bind(f()(e)),400),e}return p()(o,[{key:"componentDidMount",value:function(){var e=this,t=this.props.selected;Object(k.h)({selected:t}).then((function(t){e.setState({list:t,loading:!1})})).catch(this.setError)}},{key:"componentWillUnmount",value:function(){this.debouncedOnSearch.cancel()}},{key:"onSearch",value:function(e){var t=this,r=this.props.selected;Object(k.h)({selected:r,search:e}).then((function(e){t.setState({list:e,loading:!1})})).catch(this.setError)}},{key:"setError",value:(r=s()(a.a.mark((function e(t){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(P.a)(t);case 2:r=e.sent,this.setState({list:[],loading:!1,error:r});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this,r=this.state,n=r.error,o=r.list,a=r.loading;return Object(y.createElement)(e,c()({},this.props,{error:n,products:o,isLoading:a,onSearch:_.v?function(e){t.setState({loading:!0}),t.debouncedOnSearch(e)}:null}))}}]),o}(y.Component);return t.defaultProps={selected:[]},t}),"withSearchedProducts");t.a=S},303:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),s=r(390),u=r(191),l=(r(238),function(e){var t=e.status;switch(void 0===t?"default":t){case"error":return"woocommerce-error";case"success":return"woocommerce-success";case"info":case"warning":return"woocommerce-info"}return""});t.a=function(e){var t=e.className,r=e.notices,n=Object(u.b)().removeNotice,a=r.filter((function(e){return"snackbar"!==e.type}));if(!a.length)return null;var b=i()(t,"wc-block-components-notices");return Object(o.createElement)("div",{className:b},a.map((function(e){return Object(o.createElement)(s.a,c()({key:"store-notice-"+e.id},e,{className:i()("wc-block-components-notices__notice","woocommerce-message",l(e)),onRemove:function(){e.isDismissible&&n(e.id)}}),e.content)})))}},33:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},35:function(e,t){!function(){e.exports=this.moment}()},36:function(e,t){!function(){e.exports=this.wp.data}()},362:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4V6h16v12z"}));t.a=o},391:function(e,t){},392:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(5);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={headingLevel:{type:"number",default:2},productLink:{type:"boolean",default:!0},productId:{type:"number",default:0}};Object(o.X)()&&(s=i(i({},s),{},{align:{type:"string"},color:{type:"string"},customColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"}})),t.a=s},393:function(e,t,r){"use strict";t.a={productLink:{type:"boolean",default:!0},showSaleBadge:{type:"boolean",default:!0},saleBadgeAlign:{type:"string",default:"right"},imageSizing:{type:"string",default:"full-size"},productId:{type:"number",default:0}}},394:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=(r(2),r(7)),u=r.n(s),l=r(5),b=r(45),p=r(73),d=r(6),f=r(267);r(554);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=function(){return Object(i.createElement)("img",{src:l.G,alt:"",width:500,height:500})},j=function(e){var t=e.image,r=e.onLoad,n=e.loaded,c=e.showFullSize,o=t||{},a=o.thumbnail,s=o.src,u=o.srcset,l=o.sizes,b={alt:o.alt,onLoad:r,hidden:!n,src:a};return c&&(b=O(O({},b),{},{src:s,srcSet:u,sizes:l})),Object(i.createElement)(i.Fragment,null,Object(i.createElement)("img",b),!n&&Object(i.createElement)(g,null))};t.a=Object(p.withProductDataContext)((function(e){var t=e.className,r=e.imageSizing,n=void 0===r?"full-size":r,o=e.productLink,s=void 0===o||o,l=e.showSaleBadge,p=e.saleBadgeAlign,m=void 0===p?"right":p,O=Object(b.useInnerBlockLayoutContext)().parentClassName,v=Object(b.useProductDataContext)().product,h=Object(i.useState)(!1),y=a()(h,2),w=y[0],E=y[1];if(!v.id)return Object(i.createElement)("div",{className:u()(t,"wc-block-components-product-image","wc-block-components-product-image--placeholder",c()({},"".concat(O,"__product-image"),O))},Object(i.createElement)(g,null));var _=Object(d.isEmpty)(v.images)?null:v.images[0];return Object(i.createElement)("div",{className:u()(t,"wc-block-components-product-image",c()({},"".concat(O,"__product-image"),O))},s?Object(i.createElement)("a",{href:v.permalink,rel:"nofollow"},!!l&&Object(i.createElement)(f.default,{align:m,product:v}),Object(i.createElement)(j,{image:_,onLoad:function(){return E(!0)},loaded:w,showFullSize:"cropped"!==n})):Object(i.createElement)(i.Fragment,null,!!l&&Object(i.createElement)(f.default,{align:m,product:v}),Object(i.createElement)(j,{image:_,onLoad:function(){return E(!0)},loaded:w,showFullSize:"cropped"!==n})))}))},395:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=function(e,t){return!!e.type&&e.type===t},c={SUCCESS:"success",FAIL:"failure",ERROR:"error"},o={PAYMENTS:"wc/payment-area",EXPRESS_PAYMENTS:"wc/express-payment-area"},a=function(e){return n(e,c.SUCCESS)},i=function(e){return n(e,c.ERROR)},s=function(e){return n(e,c.FAIL)},u=function(e){return void 0===e.retry||!0===e.retry},l=function(){return{responseTypes:c,noticeContexts:o,shouldRetry:u,isSuccessResponse:a,isErrorResponse:i,isFailResponse:s}}},396:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(150),c=function(e,t){return function(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,o=n.a.addEventCallback(e,r,c);return t(o),function(){t(n.a.removeEventCallback(e,o.id))}}}},397:function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return d}));var n=r(15),c=r.n(n),o=r(60),a=r.n(o),i=r(37),s=r.n(i);function u(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,c=function(){};return{s:c,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var b=function(e,t){return e[t]?Array.from(e[t].values()).sort((function(e,t){return e.priority-t.priority})):[]},p=function(){var e=s()(c.a.mark((function e(t,r,n){var o,i,s,l,p,d;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=b(t,r),i=[],s=u(o),e.prev=3,s.s();case 5:if((l=s.n()).done){e.next=19;break}return p=l.value,e.prev=7,e.next=10,Promise.resolve(p.callback(n));case 10:d=e.sent,"object"===a()(d)&&i.push(d),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),console.error(e.t0);case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(3),s.e(e.t1);case 24:return e.prev=24,s.f(),e.finish(24);case 27:return e.abrupt("return",!i.length||i);case 28:case"end":return e.stop()}}),e,null,[[3,21,24,27],[7,14]])})));return function(t,r,n){return e.apply(this,arguments)}}(),d=function(){var e=s()(c.a.mark((function e(t,r,n){var o,i,s,l,p;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=b(t,r),i=u(o),e.prev=2,i.s();case 4:if((s=i.n()).done){e.next=23;break}return l=s.value,e.prev=6,e.next=9,Promise.resolve(l.callback(n));case 9:if(p=e.sent,"object"===a()(p)){e.next=12;break}return e.abrupt("continue",21);case 12:if(void 0!==p.type){e.next=14;break}throw new Error("If you want to abort event emitter processing, your observer must return an object with a type property");case 14:return e.abrupt("return",p);case 17:return e.prev=17,e.t0=e.catch(6),console.error(e.t0),e.abrupt("return",{type:"error"});case 21:e.next=4;break;case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(2),i.e(e.t1);case 28:return e.prev=28,i.f(),e.finish(28);case 31:return e.abrupt("return",!0);case 32:case"end":return e.stop()}}),e,null,[[2,25,28,31],[6,17]])})));return function(t,r,n){return e.apply(this,arguments)}}()},398:function(e,t,r){"use strict";t.a={showFormElements:{type:"boolean",default:!1},productId:{type:"number",default:0}}},399:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(7)),o=r.n(c),a=r(86),i=r(11),s=r.n(i),u=r(1),l=r(58),b=r(140),p=r(395),d=r(929),f="pristine",m="idle",O="disabled",g="processing",j="before_processing",v="after_processing",h={status:f,hasError:!1,quantity:1,processingResponse:null,requestParams:{}},y="set_pristine",w="set_idle",E="set_disabled",_="set_processing",k="set_before_processing",P="set_after_processing",C="set_processing_response",S="set_has_error",N="set_no_error",x="set_quantity",D="set_request_params",B=y,z=w,R=E,T=_,I=k,L=P,A=C,V=S,F=N,M=x,H=D,q=function(){return{type:B}},U=function(){return{type:z}},Q=function(){return{type:R}},Y=function(){return{type:T}},W=function(){return{type:I}},X=function(){return{type:L}},G=function(e){return{type:A,data:e}},K=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?V:F;return{type:t}},$=function(e){return{type:M,quantity:e}},J=function(e){return{type:H,data:e}},Z=r(8),ee=r.n(Z);function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?te(Object(r),!0).forEach((function(t){ee()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ne=y,ce=w,oe=E,ae=_,ie=k,se=P,ue=C,le=S,be=N,pe=x,de=D,fe=f,me=m,Oe=O,ge=g,je=j,ve=v,he=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,r=arguments.length>1?arguments[1]:void 0,n=r.quantity,c=r.type,o=r.data;switch(c){case ne:e=h;break;case ce:e=t.status!==me?re(re({},t),{},{status:me}):t;break;case oe:e=t.status!==Oe?re(re({},t),{},{status:Oe}):t;break;case pe:e=n!==t.quantity?re(re({},t),{},{quantity:n}):t;break;case de:e=re(re({},t),{},{requestParams:re(re({},t.requestParams),o)});break;case ue:e=re(re({},t),{},{processingResponse:o});break;case ae:e=!1===(e=t.status!==ge?re(re({},t),{},{status:ge,hasError:!1}):t).hasError?e:re(re({},e),{},{hasError:!1});break;case ie:e=t.status!==je?re(re({},t),{},{status:je,hasError:!1}):t;break;case se:e=t.status!==ve?re(re({},t),{},{status:ve}):t;break;case le:e=t.hasError?t:re(re({},t),{},{hasError:!0}),e=t.status===ge||t.status===je?re(re({},e),{},{status:me}):e;break;case be:e=t.hasError?re(re({},t),{},{hasError:!1}):t}return e!==t&&c!==ne&&e.status===fe&&(e.status=me),e},ye=r(150),we=r(396),Ee="add_to_cart_before_processing",_e="add_to_cart_after_processing_with_success",ke="add_to_cart_after_processing_with_error",Pe=function(e){return{onAddToCartAfterProcessingWithSuccess:Object(we.a)(_e,e),onAddToCartProcessingWithError:Object(we.a)(ke,e),onAddToCartBeforeProcessing:Object(we.a)(Ee,e)}},Ce=r(397),Se=Object(n.createContext)({product:{},productType:"simple",productIsPurchasable:!0,productHasOptions:!1,supportsFormElements:!0,showFormElements:!1,quantity:0,minQuantity:1,maxQuantity:99,requestParams:{},isIdle:!1,isDisabled:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,eventRegistration:{onAddToCartAfterProcessingWithSuccess:function(e){},onAddToCartAfterProcessingWithError:function(e){},onAddToCartBeforeProcessing:function(e){}},dispatchActions:{resetForm:function(){},submitForm:function(){},setQuantity:function(e){},setHasError:function(e){},setAfterProcessing:function(e){},setRequestParams:function(e){}}}),Ne=function(){return Object(n.useContext)(Se)},xe=function(e){var t=e.children,r=e.product,c=e.showFormElements,o=Object(n.useReducer)(he,h),i=s()(o,2),f=i[0],y=i[1],w=Object(n.useReducer)(ye.b,{}),E=s()(w,2),_=E[0],k=E[1],P=Object(l.a)(_),C=Object(b.a)(),S=C.addErrorNotice,N=C.removeNotices,x=Object(a.b)().setValidationErrors,D=Object(p.a)(),B=D.isSuccessResponse,z=D.isErrorResponse,R=D.isFailResponse,T=Object(n.useMemo)((function(){return{onAddToCartAfterProcessingWithSuccess:Pe(k).onAddToCartAfterProcessingWithSuccess,onAddToCartAfterProcessingWithError:Pe(k).onAddToCartAfterProcessingWithError,onAddToCartBeforeProcessing:Pe(k).onAddToCartBeforeProcessing}}),[k]),I=Object(n.useMemo)((function(){return{resetForm:function(){y(q())},submitForm:function(){y(W())},setQuantity:function(e){y($(e))},setHasError:function(e){y(K(e))},setRequestParams:function(e){y(J(e))},setAfterProcessing:function(e){y(G(e)),y(X())}}}),[]);Object(n.useEffect)((function(){var e=f.status,t=!r.id||!Object(d.a)(r);e!==O||t?e!==O&&t&&y(Q()):y(U())}),[f.status,r,y]),Object(n.useEffect)((function(){f.status===j&&(N("error"),Object(Ce.a)(P,Ee,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,r=e.validationErrors;t&&S(t),r&&x(r)})),y(U())):y(Y())})))}),[f.status,x,S,N,y,P]),Object(n.useEffect)((function(){if(f.status===v){var e={processingResponse:f.processingResponse},t=function(e){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;S(e.message,t)}};if(f.hasError)return void Object(Ce.b)(P,ke,e).then((function(r){if(z(r)||R(r))t(r);else{var n,c=(null===(n=e.processingResponse)||void 0===n?void 0:n.message)||Object(u.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");S(c,{id:"add-to-cart"})}y(U())}));Object(Ce.b)(P,_e,e).then((function(e){z(e)||R(e)?(t(e),y(K(!0))):y(U())}))}}),[f.status,f.hasError,f.processingResponse,I,S,z,R,B,P]);var L=Object(d.b)(r),A={product:r,productType:r.type||"simple",productIsPurchasable:Object(d.a)(r),productHasOptions:r.has_options||!1,supportsFormElements:L,showFormElements:c&&L,quantity:f.quantity,minQuantity:1,maxQuantity:r.quantity_limit||99,requestParams:f.requestParams,isIdle:f.status===m,isDisabled:f.status===O,isProcessing:f.status===g,isBeforeProcessing:f.status===j,isAfterProcessing:f.status===v,hasError:f.hasError,eventRegistration:T,dispatchActions:I};return Object(n.createElement)(Se.Provider,{value:A},t)},De=r(13),Be=r.n(De),ze=r(134),Re=r(33),Te=r(537);function Ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Le=function(){var e=Ne(),t=e.dispatchActions,r=e.product,c=e.quantity,o=e.eventRegistration,i=e.hasError,l=e.isProcessing,p=e.requestParams,d=Object(a.b)(),f=d.hasValidationErrors,m=d.showAllValidationErrors,O=Object(b.a)(),g=O.addErrorNotice,j=O.removeNotice,v=Object(ze.a)().receiveCart,h=Object(n.useState)(!1),y=s()(h,2),w=y[0],E=y[1],_=!i&&l,k=Object(n.useCallback)((function(){return!f||(m(),{type:"error"})}),[f,m]);Object(n.useEffect)((function(){var e=o.onAddToCartBeforeProcessing(k,0);return function(){e()}}),[o,k]);var P=Object(n.useCallback)((function(){E(!0),j("add-to-cart");var e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach((function(t){ee()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:r.id||0,quantity:c},p);Be()({path:"/wc/store/cart/add-item",method:"POST",data:e,cache:"no-store",parse:!1}).then((function(e){Be.a.setNonce(e.headers),e.json().then((function(r){e.ok?v(r):(r.body&&r.body.message?g(Object(Re.decodeEntities)(r.body.message),{id:"add-to-cart"}):g(Object(u.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block"),{id:"add-to-cart"}),t.setHasError()),t.setAfterProcessing(r),E(!1),Object(Te.c)()}))})).catch((function(e){e.json().then((function(e){var r;(null===(r=e.data)||void 0===r?void 0:r.cart)&&v(e.data.cart),t.setHasError(),t.setAfterProcessing(e),E(!1)}))}))}),[r,g,j,v,t,c,p]);return Object(n.useEffect)((function(){_&&!w&&P()}),[_,P,w]),null},Ae=function(e){var t=e.children,r=e.product,c=e.showFormElements;return Object(n.createElement)(a.a,null,Object(n.createElement)(xe,{product:r,showFormElements:c},t,Object(n.createElement)(Le,null)))},Ve=r(45),Fe=r(6),Me=r(73),He=(r(391),r(99)),qe=r(61),Ue=r(563),Qe=r(842),Ye=function(e){var t=e.className,r=e.href,c=e.text;return Object(n.createElement)(He.a,{className:t,href:r,rel:"nofollow"},c)},We=function(e){var t=e.className,r=e.quantityInCart,c=e.isProcessing,o=e.isDisabled,a=e.isDone,i=e.onClick;return Object(n.createElement)(He.a,{className:t,disabled:o,showSpinner:c,onClick:i},a&&r>0?Object(u.sprintf)(Object(u._n)("%d in cart","%d in cart",r,"woo-gutenberg-products-block"),r):Object(u.__)("Add to cart","woo-gutenberg-products-block"),!!a&&Object(n.createElement)(qe.a,{srcElement:Ue.a,alt:Object(u.__)("Done","woo-gutenberg-products-block")}))},Xe=function(){var e=Ne(),t=e.showFormElements,r=e.productIsPurchasable,c=e.productHasOptions,o=e.product,a=e.productType,i=e.isDisabled,l=e.isProcessing,b=e.eventRegistration,p=e.hasError,d=e.dispatchActions,f=Object(Qe.a)(o.id||0).cartQuantity,m=Object(n.useState)(!1),O=s()(m,2),g=O[0],j=O[1],v=o.add_to_cart||{url:"",text:""};return Object(n.useEffect)((function(){var e=b.onAddToCartAfterProcessingWithSuccess((function(){return p||j(!0),!0}),0);return function(){e()}}),[b,p]),(t||!c&&"simple"===a)&&r?Object(n.createElement)(We,{className:"wc-block-components-product-add-to-cart-button",quantityInCart:f,isDisabled:i,isProcessing:l,isDone:g,onClick:function(){return d.submitForm()}}):Object(n.createElement)(Ye,{className:"wc-block-components-product-add-to-cart-button",href:v.url,text:v.text||Object(u.__)("View Product","woo-gutenberg-products-block")})},Ge=function(e){var t=e.disabled,r=e.min,c=e.max,o=e.value,a=e.onChange;return Object(n.createElement)("input",{className:"wc-block-components-product-add-to-cart-quantity",type:"number",value:o,min:r,max:c,hidden:1===c,disabled:t,onChange:function(e){a(e.target.value)}})},Ke=function(e){var t=e.reason,r=void 0===t?Object(u.__)("Sorry, this product cannot be purchased.","woo-gutenberg-products-block"):t;return Object(n.createElement)("div",{className:"wc-block-components-product-add-to-cart-unavailable"},r)},$e=function(){var e=Ne(),t=e.product,r=e.quantity,c=e.minQuantity,o=e.maxQuantity,a=e.dispatchActions,i=e.isDisabled;return t.id&&!t.is_purchasable?Object(n.createElement)(Ke,null):t.id&&!t.is_in_stock?Object(n.createElement)(Ke,{reason:Object(u.__)("This product is currently out of stock and cannot be purchased.","woo-gutenberg-products-block")}):Object(n.createElement)(n.Fragment,null,Object(n.createElement)(Ge,{value:r,min:c,max:o,disabled:i,onChange:a.setQuantity}),Object(n.createElement)(Xe,null))},Je=(r(562),r(51)),Ze=r.n(Je),et=r(4),tt=r(9),rt=r(233),nt={value:"",label:Object(u.__)("Select an option","woo-gutenberg-products-block")},ct=function(e){var t=e.attributeName,r=e.options,c=void 0===r?[]:r,i=e.value,s=void 0===i?"":i,l=e.onChange,b=void 0===l?function(){}:l,p=e.errorMessage,d=void 0===p?Object(u.__)("Please select a value.","woo-gutenberg-products-block"):p,f=Object(a.b)(),m=f.getValidationError,O=f.setValidationErrors,g=f.clearValidationError,j=t,v=m(j)||{};return Object(tt.useEffect)((function(){s?g(j):O(ee()({},j,{message:d,hidden:!0}))}),[s,j,d,g,O]),Object(tt.useEffect)((function(){return function(){g(j)}}),[j,g]),Object(n.createElement)("div",{className:"wc-block-components-product-add-to-cart-attribute-picker__container"},Object(n.createElement)(et.SelectControl,{label:Object(Re.decodeEntities)(t),value:s||"",options:[nt].concat(Ze()(c)),onChange:b,required:!0,className:o()("wc-block-components-product-add-to-cart-attribute-picker__select",{"has-error":v.message&&!v.hidden})}),Object(n.createElement)(rt.a,{propertyName:j,elementId:j}))};function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){ee()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var it=function(e,t,r){var n=Object.values(t).map((function(e){return e.id}));if(Object.values(r).every((function(e){return""===e})))return n;var c=Object.keys(e);return n.filter((function(e){return c.every((function(n){var c=r[n]||"",o=t["id:"+e].attributes[n];return""===c||(null===o||o===c)}))}))},st=function(e,t,r){var n={},c=Object.keys(e),o=Object.values(r).filter(Boolean).length>0;return c.forEach((function(c){var a=e[c],i=at(at({},r),{},ee()({},c,null)),s=o?it(e,t,i):null,u=null!==s?s.map((function(e){return t["id:"+e].attributes[c]})):null;n[c]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Object.values(e).map((function(e){var r=e.name,n=e.slug;return null===t||t.includes(null)||t.includes(n)?{value:n,label:Object(Re.decodeEntities)(r)}:null})).filter(Boolean)}(a.terms,u)})),n};function ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(r),!0).forEach((function(t){ee()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ut(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bt=function(e){var t=e.attributes,r=e.variationAttributes,c=e.setRequestParams,o=Object(l.a)(t),a=Object(l.a)(r),i=Object(n.useState)(0),u=s()(i,2),b=u[0],p=u[1],d=Object(n.useState)({}),f=s()(d,2),m=f[0],O=f[1],g=Object(n.useMemo)((function(){return st(o,a,m)}),[m,o,a]);return Object(n.useEffect)((function(){Object.values(m).filter((function(e){return""!==e})).length===Object.keys(o).length?p(function(e,t,r){return it(e,t,r)[0]||0}(o,a,m)):b>0&&p(0)}),[m,b,o,a]),Object(n.useEffect)((function(){c({id:b,variation:Object.keys(m).map((function(e){return{attribute:e,value:m[e]}}))})}),[c,b,m]),Object(n.createElement)("div",{className:"wc-block-components-product-add-to-cart-attribute-picker"},Object.keys(o).map((function(e){return Object(n.createElement)(ct,{key:e,attributeName:e,options:g[e],value:m[e],onChange:function(t){O(lt(lt({},m),{},ee()({},e,t)))}})})))},pt=function(e){var t=e.product,r=e.dispatchers,c=function(e){return e?Object(Fe.keyBy)(Object.values(e).filter((function(e){return e.has_variations})),"name"):{}}(t.attributes),o=function(e){if(!e)return{};var t={};return e.forEach((function(e){var r=e.id,n=e.attributes;t["id:".concat(r)]={id:r,attributes:n.reduce((function(e,t){var r=t.name,n=t.value;return e[r]=n,e}),{})}})),t}(t.variations);return 0===Object.keys(c).length||0===o.length?null:Object(n.createElement)(bt,{attributes:c,variationAttributes:o,setRequestParams:r.setRequestParams})},dt=function(){var e=Ne(),t=e.product,r=e.quantity,c=e.minQuantity,o=e.maxQuantity,a=e.dispatchActions,i=e.isDisabled;return t.id&&!t.is_purchasable?Object(n.createElement)(Ke,null):t.id&&!t.is_in_stock?Object(n.createElement)(Ke,{reason:Object(u.__)("This product is currently out of stock and cannot be purchased.","woo-gutenberg-products-block")}):Object(n.createElement)(n.Fragment,null,Object(n.createElement)(pt,{product:t,dispatchers:a}),Object(n.createElement)(Ge,{value:r,min:c,max:o,disabled:i,onChange:a.setQuantity}),Object(n.createElement)(Xe,null))},ft=function(){return Object(n.createElement)(Xe,null)},mt=function(){return Object(n.createElement)(et.Placeholder,{className:"wc-block-components-product-add-to-cart-group-list"},"This is a placeholder for the grouped products form element.")},Ot=function(){return Object(n.createElement)(mt,null)},gt=function(){var e=Ne(),t=e.showFormElements,r=e.productType;return t?"variable"===r?Object(n.createElement)(dt,null):"grouped"===r?Object(n.createElement)(Ot,null):"external"===r?Object(n.createElement)(ft,null):"simple"===r||"variation"===r?Object(n.createElement)($e,null):null:Object(n.createElement)(Xe,null)};t.a=Object(Me.withProductDataContext)((function(e){var t=e.className,r=e.showFormElements,c=Object(Ve.useProductDataContext)().product,a=o()(t,"wc-block-components-product-add-to-cart",{"wc-block-components-product-add-to-cart--placeholder":Object(Fe.isEmpty)(c)});return Object(n.createElement)(Ae,{product:c,showFormElements:r},Object(n.createElement)("div",{className:a},Object(n.createElement)(gt,null)))}))},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t,r){"use strict";r.d(t,"h",(function(){return p})),r.d(t,"e",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"i",(function(){return m})),r.d(t,"f",(function(){return O})),r.d(t,"c",(function(){return g})),r.d(t,"d",(function(){return j})),r.d(t,"g",(function(){return v})),r.d(t,"a",(function(){return h}));var n=r(8),c=r.n(n),o=r(18),a=r(13),i=r.n(a),s=r(6),u=r(5);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=function(e){var t=e.selected,r=void 0===t?[]:t,n=e.search,c=void 0===n?"":n,a=e.queryArgs,l=function(e){var t=e.selected,r=void 0===t?[]:t,n=e.search,c=void 0===n?"":n,a=e.queryArgs,i=void 0===a?[]:a,s={per_page:u.v?100:0,catalog_visibility:"any",search:c,orderby:"title",order:"asc"},l=[Object(o.addQueryArgs)("/wc/store/products",b(b({},s),i))];return u.v&&r.length&&l.push(Object(o.addQueryArgs)("/wc/store/products",{catalog_visibility:"any",include:r})),l}({selected:r,search:c,queryArgs:void 0===a?[]:a});return Promise.all(l.map((function(e){return i()({path:e})}))).then((function(e){return Object(s.uniqBy)(Object(s.flatten)(e),"id").map((function(e){return b(b({},e),{},{parent:0})}))})).catch((function(e){throw e}))},d=function(e){return i()({path:"/wc/store/products/".concat(e)})},f=function(){return i()({path:"wc/store/products/attributes"})},m=function(e){return i()({path:"wc/store/products/attributes/".concat(e,"/terms")})},O=function(e){var t=e.selected,r=function(e){var t=e.selected,r=void 0===t?[]:t,n=e.search,c=[Object(o.addQueryArgs)("wc/store/products/tags",{per_page:u.y?100:0,orderby:u.y?"count":"name",order:u.y?"desc":"asc",search:n})];return u.y&&r.length&&c.push(Object(o.addQueryArgs)("wc/store/products/tags",{include:r})),c}({selected:void 0===t?[]:t,search:e.search});return Promise.all(r.map((function(e){return i()({path:e})}))).then((function(e){return Object(s.uniqBy)(Object(s.flatten)(e),"id")}))},g=function(e){return i()({path:Object(o.addQueryArgs)("wc/store/products/categories",b({per_page:0},e))})},j=function(e){return i()({path:"wc/store/products/categories/".concat(e)})},v=function(e){return i()({path:Object(o.addQueryArgs)("wc/store/products",{per_page:0,type:"variation",parent:e})})},h=function(e,t){if(!e.title.raw)return e.slug;var r=1===t.filter((function(t){return t.title.raw===e.title.raw})).length;return e.title.raw+(r?"":" - ".concat(e.slug))}},400:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),s=r(33),u=r(45),l=r(14),b=r(5),p=function(e){var t=e.color,r=e.fontSize;return Object(b.X)()?{color:t,fontSize:r}:{}},d=r(73);r(552),t.a=Object(d.withProductDataContext)((function(e){var t,r,n,a=e.className,d=e.headingLevel,f=void 0===d?2:d,m=e.productLink,O=void 0===m||m,g=e.align,j=e.color,v=e.customColor,h=e.fontSize,y=e.customFontSize,w=Object(u.useInnerBlockLayoutContext)().parentClassName,E=Object(u.useProductDataContext)().product,_="h".concat(f),k=Object(l.getColorClassName)("color",j),P=Object(l.getFontSizeClass)(h),C=i()((t={"has-text-color":j||v,"has-font-size":h||y},c()(t,k,k),c()(t,P,P),t));if(!E.id)return Object(o.createElement)(_,{className:i()(a,"wc-block-components-product-title",(n={},c()(n,"".concat(w,"__product-title"),w),c()(n,"wc-block-components-product-title--align-".concat(g),g&&Object(b.X)()),c()(n,C,Object(b.X)()),n)),style:p({color:v,fontSize:y})});var S=Object(s.decodeEntities)(E.name);return Object(o.createElement)(_,{className:i()(a,"wc-block-components-product-title",(r={},c()(r,"".concat(w,"__product-title"),w),c()(r,"wc-block-components-product-title--align-".concat(g),g&&Object(b.X)()),r))},O?Object(o.createElement)("a",{href:E.permalink,rel:"nofollow",className:i()(c()({},C,Object(b.X)())),style:p({color:v,fontSize:y})},S):Object(o.createElement)("span",{className:i()(c()({},C,Object(b.X)())),style:p({color:v,fontSize:y})},S))}))},41:function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},43:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},44:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(15),c=r.n(n),o=r(37),a=r.n(o),i=function(){var e=a()(c.a.mark((function e(t){var r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t.json){e.next=11;break}return e.prev=1,e.next=4,t.json();case 4:return r=e.sent,e.abrupt("return",{message:r.message,type:r.type||"api"});case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",{message:e.t0.message,type:"general"});case 11:return e.abrupt("return",{message:t.message,type:t.type||"general"});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()},45:function(e,t){!function(){e.exports=this.wc.wcSharedContext}()},47:function(e,t){!function(){e.exports=this.wp.escapeHtml}()},48:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(9)),i=r(7),s=r.n(i);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.a=function(e){var t,r=e.label,n=e.screenReaderLabel,c=e.wrapperElement,i=e.wrapperProps,u=void 0===i?{}:i,b=null!=r,p=null!=n;return!b&&p?(t=c||"span",u=l(l({},u),{},{className:s()(u.className,"screen-reader-text")}),Object(o.createElement)(t,u,n)):(t=c||a.Fragment,b&&p&&r!==n?Object(o.createElement)(t,u,Object(o.createElement)("span",{"aria-hidden":"true"},r),Object(o.createElement)("span",{className:"screen-reader-text"},n)):Object(o.createElement)(t,u,r))}},49:function(e,t,r){"use strict";var n=r(0),c=r(1),o=(r(2),r(47));t.a=function(e){var t,r,a,i=e.error;return Object(n.createElement)("div",{className:"wc-block-error-message"},(r=(t=i).message,a=t.type,r?"general"===a?Object(n.createElement)("span",null,Object(c.__)("The following error was returned","woo-gutenberg-products-block"),Object(n.createElement)("br",null),Object(n.createElement)("code",null,Object(o.escapeHTML)(r))):"api"===a?Object(n.createElement)("span",null,Object(c.__)("The following error was returned from the API","woo-gutenberg-products-block"),Object(n.createElement)("br",null),Object(n.createElement)("code",null,Object(o.escapeHTML)(r))):r:Object(c.__)("An unknown error occurred which prevented the block from being updated.","woo-gutenberg-products-block")))}},5:function(e,t,r){"use strict";r.d(t,"l",(function(){return c})),r.d(t,"K",(function(){return o})),r.d(t,"Q",(function(){return a})),r.d(t,"A",(function(){return i})),r.d(t,"C",(function(){return s})),r.d(t,"m",(function(){return u})),r.d(t,"B",(function(){return l})),r.d(t,"E",(function(){return b})),r.d(t,"o",(function(){return p})),r.d(t,"D",(function(){return d})),r.d(t,"n",(function(){return f})),r.d(t,"G",(function(){return m})),r.d(t,"v",(function(){return O})),r.d(t,"y",(function(){return g})),r.d(t,"s",(function(){return j})),r.d(t,"t",(function(){return v})),r.d(t,"u",(function(){return h})),r.d(t,"k",(function(){return y})),r.d(t,"M",(function(){return w})),r.d(t,"R",(function(){return E})),r.d(t,"q",(function(){return _})),r.d(t,"r",(function(){return k})),r.d(t,"p",(function(){return P})),r.d(t,"J",(function(){return C})),r.d(t,"c",(function(){return S})),r.d(t,"w",(function(){return N})),r.d(t,"x",(function(){return x})),r.d(t,"U",(function(){return B})),r.d(t,"V",(function(){return z})),r.d(t,"L",(function(){return R})),r.d(t,"a",(function(){return T})),r.d(t,"O",(function(){return I})),r.d(t,"b",(function(){return L})),r.d(t,"N",(function(){return A})),r.d(t,"F",(function(){return V})),r.d(t,"i",(function(){return F})),r.d(t,"P",(function(){return q})),r.d(t,"h",(function(){return U})),r.d(t,"j",(function(){return Q})),r.d(t,"I",(function(){return Y})),r.d(t,"H",(function(){return W})),r.d(t,"T",(function(){return X})),r.d(t,"S",(function(){return G})),r.d(t,"d",(function(){return K})),r.d(t,"e",(function(){return $})),r.d(t,"f",(function(){return J})),r.d(t,"g",(function(){return Z})),r.d(t,"z",(function(){return ee})),r.d(t,"Y",(function(){return re})),r.d(t,"Z",(function(){return ne})),r.d(t,"W",(function(){return ce})),r.d(t,"X",(function(){return oe}));var n=r(3),c=Object(n.getSetting)("currentUserIsAdmin",!1),o=Object(n.getSetting)("reviewRatingsEnabled",!0),a=Object(n.getSetting)("showAvatars",!0),i=Object(n.getSetting)("max_columns",6),s=Object(n.getSetting)("min_columns",1),u=Object(n.getSetting)("default_columns",3),l=Object(n.getSetting)("max_rows",6),b=Object(n.getSetting)("min_rows",1),p=Object(n.getSetting)("default_rows",3),d=Object(n.getSetting)("min_height",500),f=Object(n.getSetting)("default_height",500),m=Object(n.getSetting)("placeholderImgSrc",""),O=(Object(n.getSetting)("thumbnail_size",300),Object(n.getSetting)("isLargeCatalog")),g=Object(n.getSetting)("limitTags"),j=Object(n.getSetting)("hasProducts",!0),v=Object(n.getSetting)("hasTags",!0),h=Object(n.getSetting)("homeUrl",""),y=Object(n.getSetting)("couponsEnabled",!0),w=Object(n.getSetting)("shippingEnabled",!0),E=Object(n.getSetting)("taxesEnabled",!0),_=Object(n.getSetting)("displayItemizedTaxes",!1),k=Object(n.getSetting)("hasDarkEditorStyleSupport",!1),P=(Object(n.getSetting)("displayShopPricesIncludingTax",!1),Object(n.getSetting)("displayCartPricesIncludingTax",!1)),C=Object(n.getSetting)("productCount",0),S=Object(n.getSetting)("attributes",[]),N=Object(n.getSetting)("isShippingCalculatorEnabled",!0),x=Object(n.getSetting)("isShippingCostHidden",!1),D=Object(n.getSetting)("woocommerceBlocksPhase",1),B=Object(n.getSetting)("wcBlocksAssetUrl",""),z=Object(n.getSetting)("wcBlocksBuildUrl",""),R=Object(n.getSetting)("shippingCountries",{}),T=Object(n.getSetting)("allowedCountries",{}),I=Object(n.getSetting)("shippingStates",{}),L=Object(n.getSetting)("allowedStates",{}),A=Object(n.getSetting)("shippingMethodsExist",!1),V=Object(n.getSetting)("paymentGatewaySortOrder",[]),F=Object(n.getSetting)("checkoutShowLoginReminder",!0),M={id:0,title:"",permalink:""},H=Object(n.getSetting)("storePages",{shop:M,cart:M,checkout:M,privacy:M,terms:M}),q=H.shop.permalink,U=H.checkout.id,Q=H.checkout.permalink,Y=H.privacy.permalink,W=H.privacy.title,X=H.terms.permalink,G=H.terms.title,K=H.cart.id,$=H.cart.permalink,J=Object(n.getSetting)("checkoutAllowsGuest",!1),Z=Object(n.getSetting)("checkoutAllowsSignup",!1),ee=Object(n.getSetting)("loginUrl","/wp-login.php"),te=r(17),re=function(e,t){if(D>2)return Object(te.registerBlockType)(e,t)},ne=function(e,t){if(D>1)return Object(te.registerBlockType)(e,t)},ce=function(){return D>2},oe=function(){return D>1}},534:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),s=r(164),u=r(259),l=r(45),b=r(14),p=r(5),d=r(73);t.default=Object(d.withProductDataContext)((function(e){var t,r,n,a,d,f,m,O=e.className,g=e.align,j=e.fontSize,v=e.customFontSize,h=e.saleFontSize,y=e.customSaleFontSize,w=e.color,E=e.customColor,_=e.saleColor,k=e.customSaleColor,P=Object(l.useInnerBlockLayoutContext)().parentClassName,C=Object(l.useProductDataContext)().product,S=i()(O,c()({},"".concat(P,"__product-price"),P));if(!C.id)return Object(o.createElement)(s.a,{align:g,className:S});var N=Object(b.getColorClassName)("color",w),x=Object(b.getFontSizeClass)(j),D=Object(b.getColorClassName)("color",_),B=Object(b.getFontSizeClass)(h),z=i()((t={"has-text-color":w||E,"has-font-size":j||v},c()(t,N,N),c()(t,x,x),t)),R=i()((r={"has-text-color":_||k,"has-font-size":h||y},c()(r,D,D),c()(r,B,B),r)),T={color:E,fontSize:v},I={color:k,fontSize:y},L=C.prices,A=Object(u.c)(L),V=L.price!==L.regular_price,F=V?i()((n={},c()(n,"".concat(P,"__product-price__value"),P),c()(n,R,Object(p.X)()),n)):i()((a={},c()(a,"".concat(P,"__product-price__value"),P),c()(a,z,Object(p.X)()),a)),M=V?I:T;return Object(o.createElement)(s.a,{align:g,className:S,currency:A,price:L.price,priceClassName:F,priceStyle:Object(p.X)()?M:{},minPrice:null==L||null===(d=L.price_range)||void 0===d?void 0:d.min_amount,maxPrice:null==L||null===(f=L.price_range)||void 0===f?void 0:f.max_amount,regularPrice:L.regular_price,regularPriceClassName:i()((m={},c()(m,"".concat(P,"__product-price__regular"),P),c()(m,z,Object(p.X)()),m)),regularPriceStyle:Object(p.X)()?T:{}})}))},535:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(1)),i=r(7),s=r.n(i),u=r(45),l=r(73),b=(r(555),function(e){var t=parseFloat(e.average_rating);return Number.isFinite(t)&&t>0?t:0});t.default=Object(l.withProductDataContext)((function(e){var t=e.className,r=Object(u.useInnerBlockLayoutContext)().parentClassName,n=Object(u.useProductDataContext)().product,i=b(n);if(!i)return null;var l={width:i/5*100+"%"},p=Object(a.sprintf)(Object(a.__)("Rated %f out of 5","woo-gutenberg-products-block"),i);return Object(o.createElement)("div",{className:s()(t,"star-rating","wc-block-components-product-rating",c()({},"".concat(r,"__product-rating"),r))},Object(o.createElement)("div",{className:s()("wc-block-components-product-rating__stars","".concat(r,"__product-rating__stars")),role:"img","aria-label":p},Object(o.createElement)("span",{style:l},p)))}))},536:function(e,t,r){"use strict";r.r(t);var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(0),s=(r(2),r(7)),u=r.n(s),l=r(1),b=r(842),p=r(33),d=r(537),f=r(45),m=r(73),O=(r(556),function(e){var t=e.product,r=Object(i.useRef)(!0),n=t.id,o=t.permalink,a=t.add_to_cart,s=t.has_options,f=t.is_purchasable,m=t.is_in_stock,O=Object(b.a)(n),g=O.cartQuantity,j=O.addingToCart,v=O.addToCart;Object(i.useEffect)((function(){r.current?r.current=!1:Object(d.c)()}),[g]);var h=Number.isFinite(g)&&g>0,y=!s&&f&&m,w=Object(p.decodeEntities)((null==a?void 0:a.description)||""),E=h?Object(l.sprintf)(Object(l._n)("%d in cart","%d in cart",g,"woo-gutenberg-products-block"),g):Object(p.decodeEntities)((null==a?void 0:a.text)||Object(l.__)("Add to cart","woo-gutenberg-products-block")),_=y?"button":"a",k={};return y?k.onClick=function(){v()}:(k.href=o,k.rel="nofollow"),Object(i.createElement)(_,c()({"aria-label":w,className:u()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button",{loading:j,added:h}),disabled:j},k),E)}),g=function(){return Object(i.createElement)("button",{className:u()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button","wc-block-components-product-button__button--placeholder"),disabled:!0})};t.default=Object(m.withProductDataContext)((function(e){var t=e.className,r=Object(f.useInnerBlockLayoutContext)().parentClassName,n=Object(f.useProductDataContext)().product;return Object(i.createElement)("div",{className:u()(t,"wp-block-button","wc-block-components-product-button",a()({},"".concat(r,"__product-add-to-cart"),r))},n.id?Object(i.createElement)(O,{product:n}):Object(i.createElement)(g,null))}))},537:function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return a}));var n=window.Event||null,c=function(e,t){var r=t.bubbles,c=void 0!==r&&r,o=t.cancelable,a=void 0!==o&&o,i=t.element;if(i||(i=document.body),"function"==typeof n){var s=new n(e,{bubbles:c,cancelable:a});i.dispatchEvent(s)}else{var u=document.createEvent("Event");u.initEvent(e,c,a),i.dispatchEvent(u)}},o=function(){c("wc_fragment_refresh",{bubbles:!0,cancelable:!0})},a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"!=typeof jQuery)return function(){};var o=function(){c(t,{bubbles:r,cancelable:n})};return jQuery(document).on(e,o),function(){return jQuery(document).off(e,o)}}},538:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),s=r(177),u=r(3),l=r(45),b=r(73);r(557);t.default=Object(b.withProductDataContext)((function(e){var t=e.className,r=Object(l.useInnerBlockLayoutContext)().parentClassName,n=Object(l.useProductDataContext)().product;if(!n)return Object(o.createElement)("div",{className:i()(t,"wc-block-components-product-summary",c()({},"".concat(r,"__product-summary"),r))});var a=n.short_description?n.short_description:n.description;if(!a)return null;var b=Object(u.getSetting)("wordCountType","words");return Object(o.createElement)(s.a,{className:i()(t,"wc-block-components-product-summary",c()({},"".concat(r,"__product-summary"),r)),source:a,maxLength:150,countType:b})}))},539:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=r(1),i=(r(2),r(7)),s=r.n(i),u=r(45),l=r(73);r(558);t.default=Object(l.withProductDataContext)((function(e){var t=e.className,r=Object(u.useInnerBlockLayoutContext)().parentClassName,n=Object(u.useProductDataContext)().product.sku;return n?Object(o.createElement)("div",{className:s()(t,"wc-block-components-product-sku",c()({},"".concat(r,"__product-sku"),r))},Object(a.__)("SKU:","woo-gutenberg-products-block")," ",Object(o.createElement)("strong",null,n)):null}))},54:function(e,t){!function(){e.exports=this.wp.keycodes}()},540:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=r(1),i=(r(2),r(7)),s=r.n(i),u=r(45),l=r(6),b=r(73);r(559);t.default=Object(b.withProductDataContext)((function(e){var t=e.className,r=Object(u.useInnerBlockLayoutContext)().parentClassName,n=Object(u.useProductDataContext)().product;return Object(l.isEmpty)(n.categories)?null:Object(o.createElement)("div",{className:s()(t,"wc-block-components-product-category-list",c()({},"".concat(r,"__product-category-list"),r))},Object(a.__)("Categories:","woo-gutenberg-products-block")," ",Object(o.createElement)("ul",null,Object.values(n.categories).map((function(e){var t=e.name,r=e.link,n=e.slug;return Object(o.createElement)("li",{key:"category-list-item-".concat(n)},Object(o.createElement)("a",{href:r},t))}))))}))},541:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=r(1),i=(r(2),r(7)),s=r.n(i),u=r(45),l=r(6),b=r(73);r(560);t.default=Object(b.withProductDataContext)((function(e){var t=e.className,r=Object(u.useInnerBlockLayoutContext)().parentClassName,n=Object(u.useProductDataContext)().product;return Object(l.isEmpty)(n.tags)?null:Object(o.createElement)("div",{className:s()(t,"wc-block-components-product-tag-list",c()({},"".concat(r,"__product-tag-list"),r))},Object(a.__)("Tags:","woo-gutenberg-products-block")," ",Object(o.createElement)("ul",null,Object.values(n.tags).map((function(e){var t=e.name,r=e.link,n=e.slug;return Object(o.createElement)("li",{key:"tag-list-item-".concat(n)},Object(o.createElement)("a",{href:r},t))}))))}))},542:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=r(1),i=(r(2),r(7)),s=r.n(i),u=r(45),l=r(73),b=(r(561),function(e){return Object(a.sprintf)(Object(a.__)("%d left in stock","woo-gutenberg-products-block"),e)}),p=function(e,t){return t?Object(a.__)("Available on backorder","woo-gutenberg-products-block"):e?Object(a.__)("In Stock","woo-gutenberg-products-block"):Object(a.__)("Out of Stock","woo-gutenberg-products-block")};t.default=Object(l.withProductDataContext)((function(e){var t,r=e.className,n=Object(u.useInnerBlockLayoutContext)().parentClassName,a=Object(u.useProductDataContext)().product;if(!a.id||!a.is_purchasable)return null;var i=!!a.is_in_stock,l=a.low_stock_remaining,d=a.is_on_backorder;return Object(o.createElement)("div",{className:s()(r,"wc-block-components-product-stock-indicator",(t={},c()(t,"".concat(n,"__stock-indicator"),n),c()(t,"wc-block-components-product-stock-indicator--in-stock",i),c()(t,"wc-block-components-product-stock-indicator--out-of-stock",!i),c()(t,"wc-block-components-product-stock-indicator--low-stock",!!l),c()(t,"wc-block-components-product-stock-indicator--available-on-backorder",!!d),t))},l?b(l):p(i,d))}))},55:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(27),s=r.n(i),u=r(0),l=r(184),b=r(7),p=r.n(b);r(194);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.a=function(e){var t=e.className,r=e.value,n=e.currency,o=e.onValueChange,a=s()(e,["className","value","currency","onValueChange"]);if("-"===r)return null;var i=r/Math.pow(10,n.minorUnit);if(!Number.isFinite(i))return null;var b=p()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),d=f(f(f({displayType:"text"},a),function(e){return{thousandSeparator:e.thousandSeparator,decimalSeparator:e.decimalSeparator,decimalScale:e.minorUnit,fixedDecimalScale:!0,prefix:e.prefix,suffix:e.suffix,isNumericString:!0}}(n)),{},{value:void 0,currency:void 0,onValueChange:void 0}),m=o?function(e){var t=e.value*Math.pow(10,n.minorUnit);o(t)}:function(){};return Object(u.createElement)(l.a,c()({className:b},d,{value:i,onValueChange:m}))}},552:function(e,t){},553:function(e,t){},554:function(e,t){},555:function(e,t){},556:function(e,t){},557:function(e,t){},558:function(e,t){},559:function(e,t){},56:function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},560:function(e,t){},561:function(e,t){},562:function(e,t){},563:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),Object(n.createElement)("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}));t.a=o},58:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),c=r(43),o=r.n(c),a=function(e){var t=Object(n.useRef)();return o()(e,t.current)||(t.current=e),t.current}},6:function(e,t){!function(){e.exports=this.lodash}()},61:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(27),a=r.n(o),i=r(9);r(2);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.srcElement,r=e.size,n=void 0===r?24:r,o=a()(e,["srcElement","size"]);return Object(i.isValidElement)(t)&&Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({width:n,height:n},o))}},73:function(e,t){!function(){e.exports=this.wc.wcSharedHocs}()},74:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(22),a=r.n(o),i=r(25),s=r.n(i),u=r(19),l=r.n(u),b=r(23),p=r.n(b),d=r(24),f=r.n(d),m=r(12),O=r.n(m),g=r(0),j=r(6),v=r(7),h=r.n(v),y=r(4),w=r(26);r(122);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O()(e);if(t){var c=O()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return f()(this,r)}}var _=function(e){p()(r,e);var t=E(r);function r(){var e;return a()(this,r),(e=t.apply(this,arguments)).onClick=e.onClick.bind(l()(e)),e}return s()(r,[{key:"onClick",value:function(e){this.props.onChange&&this.props.onChange(e.target.value)}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.label,o=r.checked,a=r.instanceId,i=r.className,s=r.help,u=r.options,l=r.value,b="inspector-toggle-button-control-".concat(a);return s&&(e=Object(j.isFunction)(s)?s(o):s),Object(g.createElement)(y.BaseControl,{id:b,help:e,className:h()("components-toggle-button-control",i)},Object(g.createElement)("label",{id:b+"__label",htmlFor:b,className:"components-toggle-button-control__label"},n),Object(g.createElement)(y.ButtonGroup,{"aria-labelledby":b+"__label"},u.map((function(e,r){var o={};return l===e.value?(o.isPrimary=!0,o["aria-pressed"]=!0):(o.isDefault=!0,o["aria-pressed"]=!1),Object(g.createElement)(y.Button,c()({key:"".concat(e.label,"-").concat(e.value,"-").concat(r),value:e.value,onClick:t.onClick,"aria-label":n+": "+e.label},o),e.label)}))))}}]),r}(g.Component);t.a=Object(w.withInstanceId)(_)},75:function(e,t){!function(){e.exports=this.wp.hooks}()},77:function(e,t){!function(){e.exports=this.ReactDOM}()},78:function(e,t){!function(){e.exports=this.wp.dom}()},81:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(6),a=(r(2),r(4)),i=r(5);t.a=function(e){var t=e.columns,r=e.rows,s=e.setAttributes,u=e.alignButtons;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(a.RangeControl,{label:Object(c.__)("Columns","woo-gutenberg-products-block"),value:t,onChange:function(e){var t=Object(o.clamp)(e,i.C,i.A);s({columns:Object(o.isNaN)(t)?"":t})},min:i.C,max:i.A}),Object(n.createElement)(a.RangeControl,{label:Object(c.__)("Rows","woo-gutenberg-products-block"),value:r,onChange:function(e){var t=Object(o.clamp)(e,i.E,i.B);s({rows:Object(o.isNaN)(t)?"":t})},min:i.E,max:i.B}),Object(n.createElement)(a.ToggleControl,{label:Object(c.__)("Align Last Block","woo-gutenberg-products-block"),help:u?Object(c.__)("The last inner block will be aligned vertically.","woo-gutenberg-products-block"):Object(c.__)("The last inner block will follow other content.","woo-gutenberg-products-block"),checked:u,onChange:function(){return s({alignButtons:!u})}}))}},811:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}));t.a=o},818:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM13 20.01L4 11V4h7v-.01l9 9-7 7.02z"}),Object(n.createElement)("circle",{cx:"6.5",cy:"6.5",r:"1.5"}),Object(n.createElement)("path",{d:"M8.9 12.55c0 .57.23 1.07.6 1.45l3.5 3.5 3.5-3.5c.37-.37.6-.89.6-1.45 0-1.13-.92-2.05-2.05-2.05-.57 0-1.08.23-1.45.6l-.6.6-.6-.59c-.37-.38-.89-.61-1.45-.61-1.13 0-2.05.92-2.05 2.05z"}));t.a=o},826:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}));t.a=o},827:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),c=r(5),o=[{id:1,name:"WordPress Pennant",variation:"",permalink:"https://example.org",sku:"wp-pennant",short_description:Object(n.__)("Fly your WordPress banner with this beauty! Deck out your office space or add it to your kids walls. This banner will spruce up any space it’s hung!","woo-gutenberg-products-block"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",price:"7.99",price_html:'<span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>7.99</span>',images:[{id:1,src:c.U+"img/pennant.jpg",thumbnail:c.U+"img/pennant.jpg",name:"pennant-1.jpg",alt:"WordPress Pennant",srcset:"",sizes:""}],average_rating:5,review_count:1,prices:{currency_code:"GBP",decimal_separator:".",thousand_separator:",",decimals:2,price_prefix:"£",price_suffix:"",price:"7.99",regular_price:"9.99",sale_price:"7.99",price_range:null},add_to_cart:{text:Object(n.__)("Add to cart","woo-gutenberg-products-block"),description:Object(n.__)("Add to cart","woo-gutenberg-products-block")},has_options:!1,is_purchasable:!0,is_in_stock:!0,on_sale:!0}]},83:function(e,t){!function(){e.exports=this.wp.viewport}()},832:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}));t.a=o},839:function(e,t,r){e.exports=r(899)},840:function(e,t){},841:function(e,t){},842:function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(11),c=r.n(n),o=r(0),a=r(36),i=r(134),s=r(41),u=r(33),l=r(140),b=function(e,t){var r=e.find((function(e){return e.id===t}));return r?r.quantity:0},p=function(e){var t=Object(a.useDispatch)(s.CART_STORE_KEY).addItemToCart,r=Object(i.a)(),n=r.cartItems,p=r.cartIsLoading,d=Object(l.a)(),f=d.addErrorNotice,m=d.removeNotice,O=Object(o.useState)(!1),g=c()(O,2),j=g[0],v=g[1],h=Object(o.useRef)(b(n,e));return Object(o.useEffect)((function(){var t=b(n,e);t!==h.current&&(h.current=t)}),[n,e]),{cartQuantity:Number.isFinite(h.current)?h.current:0,addingToCart:j,cartIsLoading:p,addToCart:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;v(!0),t(e,r).then((function(e){!0===e&&m("add-to-cart")})).catch((function(e){f(Object(u.decodeEntities)(e.message),{context:"wc/all-products",id:"add-to-cart",isDismissible:!0})})).finally((function(){v(!1)}))}}}},844:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"}));t.a=o},845:function(e,t){},846:function(e,t){},847:function(e,t){},848:function(e,t){},86:function(e,t,r){"use strict";r.d(t,"b",(function(){return f})),r.d(t,"a",(function(){return m}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=r(6),u=r(43),l=r.n(u);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d=Object(i.createContext)({getValidationError:function(){return""},setValidationErrors:function(e){},clearValidationError:function(e){},clearAllValidationErrors:function(){},hideValidationError:function(){},showValidationError:function(){},showAllValidationErrors:function(){},hasValidationErrors:!1,getValidationErrorId:function(e){return e}}),f=function(){return Object(i.useContext)(d)},m=function(e){var t=e.children,r=Object(i.useState)({}),n=a()(r,2),o=n[0],u=n[1],b=Object(i.useCallback)((function(e){return o[e]}),[o]),f=Object(i.useCallback)((function(e){var t=o[e];return!t||t.hidden?"":"validate-error-".concat(e)}),[o]),m=Object(i.useCallback)((function(e){u((function(t){return t[e]?Object(s.omit)(t,[e]):t}))}),[]),O=Object(i.useCallback)((function(){u({})}),[]),g=Object(i.useCallback)((function(e){e&&u((function(t){return e=Object(s.pickBy)(e,(function(e,r){return"string"==typeof e.message&&(!t.hasOwnProperty(r)||!l()(t[r],e))})),0===Object.values(e).length?t:p(p({},t),e)}))}),[]),j=Object(i.useCallback)((function(e,t){u((function(r){if(!r.hasOwnProperty(e))return r;var n=p(p({},r[e]),t);return l()(r[e],n)?r:p(p({},r),{},c()({},e,n))}))}),[]),v={getValidationError:b,setValidationErrors:g,clearValidationError:m,clearAllValidationErrors:O,hideValidationError:Object(i.useCallback)((function(e){j(e,{hidden:!0})}),[j]),showValidationError:Object(i.useCallback)((function(e){j(e,{hidden:!1})}),[j]),showAllValidationErrors:Object(i.useCallback)((function(){u((function(e){var t={};return Object.keys(e).forEach((function(r){e[r].hidden&&(t[r]=p(p({},e[r]),{},{hidden:!1}))})),0===Object.values(t).length?e:p(p({},e),t)}))}),[]),hasValidationErrors:Object.keys(o).length>0,getValidationErrorId:f};return Object(i.createElement)(d.Provider,{value:v},t)}},87:function(e,t){!function(){e.exports=this.wp.a11y}()},899:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(10),a=r.n(o),i=r(0),s=r(1),u=r(14),l=r(17),b=r(61),p=r(57),d=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(i.createElement)("path",{d:"M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"})),f=r(5),m=r(7),O=r.n(m),g=function(e){var t=e.attributes;return Object(i.createElement)("div",{className:O()("is-loading",t.className)})},j={category:"woocommerce-product-elements",keywords:[Object(s.__)("WooCommerce","woo-gutenberg-products-block")],icon:{src:Object(i.createElement)(b.a,{srcElement:d}),foreground:"#96588a"},supports:{html:!1},parent:Object(f.W)()?null:["@woocommerce/all-products","@woocommerce/single-product"],save:g,deprecated:[{save:function(){}}]},v=r(392),h=r(4),y=r(26),w=r(152),E=r(400),_=r(11),k=r.n(_),P=r(143),C=r(27),S=r.n(C);r(841);var N=function(e){var t=e.className,r=void 0===t?"":t,n=S()(e,["className"]),c=O()("wc-block-text-toolbar-button",r);return Object(i.createElement)(h.Button,a()({className:c},n))},x=r(45),D=(r(840),function(e){return function(t){return function(r){var n=Object(x.useProductDataContext)(),c=r.attributes,o=r.setAttributes,a=c.productId,l=Object(i.useState)(!a),b=k()(l,2),p=b[0],d=b[1];return n.hasContext?Object(i.createElement)(t,r):Object(i.createElement)(i.Fragment,null,p?Object(i.createElement)(h.Placeholder,{icon:e.icon||"",label:e.label||"",className:"wc-atomic-blocks-product"},!!e.description&&Object(i.createElement)("div",null,e.description),Object(i.createElement)("div",{className:"wc-atomic-blocks-product__selection"},Object(i.createElement)(P.a,{selected:a||0,showVariations:!0,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o({productId:e[0]?e[0].id:0})}}),Object(i.createElement)(h.Button,{isDefault:!0,disabled:!a,onClick:function(){d(!1)}},Object(s.__)("Done","woo-gutenberg-products-block")))):Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(h.Toolbar,null,Object(i.createElement)(N,{onClick:function(){return d(!0)}},Object(s.__)("Switch product…","woo-gutenberg-products-block")))),Object(i.createElement)(t,r)))}}}),B=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),Object(i.createElement)("path",{d:"M17 3H7a2 2 0 00-2 2v16l7-3 7 3V5a2 2 0 00-2-2z"})),z=Object(s.__)("Product Title","woo-gutenberg-products-block"),R=Object(i.createElement)(b.a,{srcElement:B}),T=Object(s.__)("Display the title of a product.","woo-gutenberg-products-block"),I=function(e){var t=e.color,r=e.fontSize,n=e.setFontSize,c=e.setColor,o=e.attributes,a=e.setAttributes,l=o.headingLevel,b=o.productLink,p=o.align;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(w.a,{isCollapsed:!0,minLevel:1,maxLevel:7,selectedLevel:l,onChange:function(e){return a({headingLevel:e})}}),Object(f.X)()&&Object(i.createElement)(u.AlignmentToolbar,{value:p,onChange:function(e){a({align:e})}})),Object(i.createElement)(u.InspectorControls,null,Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Content","woo-gutenberg-products-block")},Object(i.createElement)(h.ToggleControl,{label:Object(s.__)("Link to Product Page","woo-gutenberg-products-block"),help:Object(s.__)("Links the image to the single product listing.","woo-gutenberg-products-block"),checked:b,onChange:function(){return a({productLink:!b})}})),Object(f.X)()&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Text settings","woo-gutenberg-products-block")},Object(i.createElement)(u.FontSizePicker,{value:r.size,onChange:n})),Object(i.createElement)(u.PanelColorSettings,{title:Object(s.__)("Color settings","woo-gutenberg-products-block"),colorSettings:[{value:t.color,onChange:c,label:Object(s.__)("Text color","woo-gutenberg-products-block")}]}))),Object(i.createElement)(h.Disabled,null,Object(i.createElement)(E.a,o)))},L=Object(f.X)()?Object(y.compose)([Object(u.withFontSizes)("fontSize"),Object(u.withColors)("color",{textColor:"color"}),D({icon:R,label:z,description:Object(s.__)("Choose a product to display its title.","woo-gutenberg-products-block")})])(I):I;function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var F={title:z,description:T,icon:{src:R,foreground:"#874FB9"},attributes:v.a,edit:L};Object(l.registerBlockType)("woocommerce/product-title",V(V({},j),F));var M=r(534),H=r(362),q=Object(s.__)("Product Price","woo-gutenberg-products-block"),U=Object(i.createElement)(b.a,{srcElement:H.a}),Q=Object(s.__)("Display the price of a product.","woo-gutenberg-products-block"),Y=function(e){var t=e.fontSize,r=e.setFontSize,n=e.color,c=e.setColor,o=e.colorLabel;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.FontSizePicker,{value:t.size,onChange:r}),Object(i.createElement)(h.BaseControl,{label:o},Object(i.createElement)(u.ColorPalette,{value:n.color,onChange:c,label:Object(s.__)("Color")})))},W=function(e){var t=e.fontSize,r=e.saleFontSize,n=e.setFontSize,c=e.setSaleFontSize,o=e.color,a=e.saleColor,l=e.setColor,b=e.setSaleColor,p=e.attributes,d=e.setAttributes,m=p.align;return Object(i.createElement)(i.Fragment,null,Object(f.X)()&&Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(u.AlignmentToolbar,{value:m,onChange:function(e){d({align:e})}})),Object(i.createElement)(u.InspectorControls,null,Object(f.X)()&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Price","woo-gutenberg-products-block")},Object(i.createElement)(Y,{color:o,setColor:l,fontSize:t,setFontSize:n,colorLabel:Object(s.__)("Color","woo-gutenberg-products-block")})),Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Sale price","woo-gutenberg-products-block")},Object(i.createElement)(Y,{color:a,setColor:b,fontSize:r,setFontSize:c,colorLabel:Object(s.__)("Color","woo-gutenberg-products-block")})))),Object(i.createElement)(M.default,p))},X=Object(f.X)()?Object(y.compose)([Object(u.withFontSizes)("fontSize"),Object(u.withFontSizes)("saleFontSize"),Object(u.withFontSizes)("originalFontSize"),Object(u.withColors)("color",{textColor:"color"}),Object(u.withColors)("saleColor",{textColor:"saleColor"}),Object(u.withColors)("originalColor",{textColor:"originalColor"}),D({icon:U,label:q,description:Object(s.__)("Choose a product to display its price.","woo-gutenberg-products-block")})])(W):W;function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $={productId:{type:"number",default:0}};function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Object(f.X)()&&($=K(K({},$),{},{align:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},saleFontSize:{type:"string"},customSaleFontSize:{type:"number"},color:{type:"string"},saleColor:{type:"string"},customColor:{type:"string"},customSaleColor:{type:"string"}}));var ee={title:q,description:Q,icon:{src:U,foreground:"#874FB9"},attributes:$,edit:X};Object(l.registerBlockType)("woocommerce/product-price",Z(Z({},j),ee));var te=r(393),re=r(192),ne=r(74),ce=r(3),oe=r(394),ae=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(i.createElement)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"})),ie=Object(s.__)("Product Image","woo-gutenberg-products-block"),se=Object(i.createElement)(b.a,{srcElement:ae}),ue=Object(s.__)("Display the main product image","woo-gutenberg-products-block"),le=D({icon:se,label:ie,description:Object(s.__)("Choose a product to display its image.","woo-gutenberg-products-block")})((function(e){var t=e.attributes,r=e.setAttributes,n=t.productLink,c=t.imageSizing,o=t.showSaleBadge,a=t.saleBadgeAlign;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.InspectorControls,null,Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Content","woo-gutenberg-products-block")},Object(i.createElement)(h.ToggleControl,{label:Object(s.__)("Link to Product Page","woo-gutenberg-products-block"),help:Object(s.__)("Links the image to the single product listing.","woo-gutenberg-products-block"),checked:n,onChange:function(){return r({productLink:!n})}}),Object(i.createElement)(h.ToggleControl,{label:Object(s.__)("Show On-Sale Badge","woo-gutenberg-products-block"),help:Object(s.__)('Overlay a "sale" badge if the product is on-sale.',"woo-gutenberg-products-block"),checked:o,onChange:function(){return r({showSaleBadge:!o})}}),o&&Object(i.createElement)(ne.a,{label:Object(s.__)("Sale Badge Alignment","woo-gutenberg-products-block"),value:a,options:[{label:Object(s.__)("Left","woo-gutenberg-products-block"),value:"left"},{label:Object(s.__)("Center","woo-gutenberg-products-block"),value:"center"},{label:Object(s.__)("Right","woo-gutenberg-products-block"),value:"right"}],onChange:function(e){return r({saleBadgeAlign:e})}}),Object(i.createElement)(ne.a,{label:Object(s.__)("Image Sizing","woo-gutenberg-products-block"),help:Object(re.a)(Object(s.__)("Product image cropping can be modified in the <a>Customizer</a>.","woo-gutenberg-products-block"),{a:Object(i.createElement)("a",{href:"".concat(Object(ce.getAdminLink)("customize.php"),"?autofocus[panel]=woocommerce&autofocus[section]=woocommerce_product_images"),target:"_blank",rel:"noopener noreferrer"})}),value:c,options:[{label:Object(s.__)("Full Size","woo-gutenberg-products-block"),value:"full-size"},{label:Object(s.__)("Cropped","woo-gutenberg-products-block"),value:"cropped"}],onChange:function(e){return r({imageSizing:e})}}))),Object(i.createElement)(h.Disabled,null,Object(i.createElement)(oe.a,t)))}));function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var de={title:ie,description:ue,icon:{src:se,foreground:"#874FB9"},attributes:te.a,edit:le};Object(l.registerBlockType)("woocommerce/product-image",pe(pe({},j),de));var fe={productId:{type:"number",default:0}},me=r(535),Oe=r(826),ge=Object(s.__)("Product Rating","woo-gutenberg-products-block"),je=Object(i.createElement)(b.a,{srcElement:Oe.a});function ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ye={title:ge,description:Object(s.__)("Display the average rating of a product.","woo-gutenberg-products-block"),icon:{src:je,foreground:"#874FB9"},attributes:fe,edit:D({icon:je,label:ge,description:Object(s.__)("Choose a product to display its rating.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(me.default,t)}))};Object(l.registerBlockType)("woocommerce/product-rating",he(he({},j),ye));var we={productId:{type:"number",default:0}},Ee=r(536),_e=r(844),ke=Object(s.__)("Add to Cart Button","woo-gutenberg-products-block"),Pe=Object(i.createElement)(b.a,{srcElement:_e.a});function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ne={title:ke,description:Object(s.__)("Display a call to action button which either adds the product to the cart, or links to the product page.","woo-gutenberg-products-block"),icon:{src:Pe,foreground:"#874FB9"},attributes:we,edit:D({icon:Pe,label:ke,description:Object(s.__)("Choose a product to display its add to cart button.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(h.Disabled,null,Object(i.createElement)(Ee.default,t))}))};Object(l.registerBlockType)("woocommerce/product-button",Se(Se({},j),Ne));var xe={productId:{type:"number",default:0}},De=r(538),Be=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(i.createElement)("path",{d:"M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"})),ze=Object(s.__)("Product Summary","woo-gutenberg-products-block"),Re=Object(i.createElement)(b.a,{srcElement:Be});function Te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Le={title:ze,description:Object(s.__)("Display a short description about a product.","woo-gutenberg-products-block"),icon:{src:Re,foreground:"#874FB9"},attributes:xe,edit:D({icon:Re,label:ze,description:Object(s.__)("Choose a product to display its short description.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(De.default,t)}))};Object(l.registerBlockType)("woocommerce/product-summary",Ie(Ie({},j),Le));var Ae={productId:{type:"number",default:0}},Ve=r(267),Fe=r(818),Me=Object(s.__)("On-Sale Badge","woo-gutenberg-products-block"),He=Object(i.createElement)(b.a,{srcElement:Fe.a});function qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Qe={title:Me,description:Object(s.__)("Displays an on-sale badge if the product is on-sale.","woo-gutenberg-products-block"),icon:{src:He,foreground:"#874FB9"},supports:{html:!1},attributes:Ae,edit:D({icon:He,label:Me,description:Object(s.__)("Choose a product to display its sale-badge.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(Ve.default,t)}))};Object(l.registerBlockType)("woocommerce/product-sale-badge",Ue(Ue({},j),Qe));var Ye={productId:{type:"number",default:0}},We=r(135),Xe=r(539),Ge=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{d:"M2 6h2v12H2V6m3 0h1v12H5V6m2 0h3v12H7V6m4 0h1v12h-1V6m3 0h2v12h-2V6m3 0h3v12h-3V6m4 0h1v12h-1V6z"})),Ke=Object(s.__)("Product SKU","woo-gutenberg-products-block"),$e=Object(i.createElement)(b.a,{srcElement:Ge});function Je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var et={title:Ke,description:Object(s.__)("Display the SKU of a product.","woo-gutenberg-products-block"),icon:{src:$e,foreground:"#874FB9"},attributes:Ye,edit:D({icon:$e,label:Ke,description:Object(s.__)("Choose a product to display its SKU.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(We.a,null),Object(i.createElement)(Xe.default,t))}))};Object(f.Y)("woocommerce/product-sku",Ze(Ze({},j),et));var tt={productId:{type:"number",default:0}},rt=r(540),nt=r(811),ct=Object(s.__)("Product Category List","woo-gutenberg-products-block"),ot=Object(i.createElement)(b.a,{srcElement:nt.a});function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?at(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var st={title:ct,description:Object(s.__)("Display a list of categories belonging to a product.","woo-gutenberg-products-block"),icon:{src:ot,foreground:"#874FB9"},attributes:tt,edit:D({icon:ot,label:ct,description:Object(s.__)("Choose a product to display its categories.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(We.a,null),Object(i.createElement)(h.Disabled,null,Object(i.createElement)(rt.default,t)))}))};Object(f.Y)("woocommerce/product-category-list",it(it({},j),st));var ut={productId:{type:"number",default:0}},lt=r(541),bt=Object(s.__)("Product Tag List","woo-gutenberg-products-block"),pt=Object(i.createElement)(b.a,{srcElement:Fe.a});function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var mt={title:bt,description:Object(s.__)("Display a list of tags belonging to a product.","woo-gutenberg-products-block"),icon:{src:pt,foreground:"#874FB9"},attributes:ut,edit:D({icon:pt,label:bt,description:Object(s.__)("Choose a product to display its tags.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(We.a,null),Object(i.createElement)(h.Disabled,null,Object(i.createElement)(lt.default,t)))}))};Object(f.Y)("woocommerce/product-tag-list",ft(ft({},j),mt));var Ot={productId:{type:"number",default:0}},gt=r(542),jt=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("g",{fillRule:"evenodd"},Object(i.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}),Object(i.createElement)("path",{fillRule:"nonzero",d:"M20.5 5.2l-1.4-1.7C19 3.3 18.5 3 18 3H6c-.5 0-.9.2-1.2.5L3.5 5.3A2 2 0 003 6.5V19c0 1.1.9 2 2 2h14a2 2 0 002-2V6.5c0-.5-.2-1-.5-1.3zM6.2 5h11.6l.8 1H5.4l.8-1zM5 19V8h14v11H5z"}))),vt=Object(s.__)("Product Stock Indicator","woo-gutenberg-products-block"),ht=Object(i.createElement)(b.a,{srcElement:jt});function yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Et={title:vt,description:Object(s.__)("Display product stock status.","woo-gutenberg-products-block"),icon:{src:ht,foreground:"#874FB9"},attributes:Ot,edit:D({icon:ht,label:vt,description:Object(s.__)("Choose a product to display its stock.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(We.a,null),Object(i.createElement)(gt.default,t))}))};Object(f.Y)("woocommerce/product-stock-indicator",wt(wt({},j),Et));var _t=r(929),kt=(r(391),r(399)),Pt=Object(s.__)("Add to Cart","woo-gutenberg-products-block"),Ct=Object(i.createElement)(b.a,{srcElement:_e.a});function St(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?St(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xt={title:Pt,description:Object(s.__)("Displays an add to cart button. Optionally displays other add to cart form elements.","woo-gutenberg-products-block"),icon:{src:Ct,foreground:"#874FB9"},edit:D({icon:Ct,label:Pt,description:Object(s.__)("Choose a product to display its add to cart form.","woo-gutenberg-products-block")})((function(e){var t=e.attributes,r=e.setAttributes,n=Object(x.useProductDataContext)().product,c=t.className,o=t.showFormElements;return Object(i.createElement)("div",{className:O()(c,"wc-block-components-product-add-to-cart")},Object(i.createElement)(We.a,{productId:n.id}),Object(i.createElement)(u.InspectorControls,null,Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Layout","woo-gutenberg-products-block")},Object(_t.b)(n)?Object(i.createElement)(h.ToggleControl,{label:Object(s.__)("Display form elements","woo-gutenberg-products-block"),help:Object(s.__)("Depending on product type, allow customers to select a quantity, variations etc.","woo-gutenberg-products-block"),checked:o,onChange:function(){return r({showFormElements:!o})}}):Object(i.createElement)(h.Notice,{className:"wc-block-components-product-add-to-cart-notice",isDismissible:!1,status:"info"},Object(s.__)("This product does not support the block based add to cart form. A link to the product page will be shown instead.","woo-gutenberg-products-block")))),Object(i.createElement)(h.Disabled,null,Object(i.createElement)(kt.a,t)))})),attributes:r(398).a};Object(f.Y)("woocommerce/product-add-to-cart",Nt(Nt({},j),xt));var Dt=r(22),Bt=r.n(Dt),zt=r(19),Rt=r.n(zt),Tt=r(23),It=r.n(Tt),Lt=r(24),At=r.n(Lt),Vt=r(12),Ft=r.n(Vt),Mt=r(36),Ht=(r(2),r(81)),qt=r(927),Ut=r(827),Qt=r(167),Yt=function(e,t){var r=t.className,n=t.contentVisibility;return O()(e,r,{"has-image":n&&n.image,"has-title":n&&n.title,"has-rating":n&&n.rating,"has-price":n&&n.price,"has-button":n&&n.button})},Wt=function(e,t){return Object(i.createElement)(h.Placeholder,{className:"wc-block-products",icon:t,label:e},Object(i.createElement)("p",null,Object(s.__)("You haven't published any products to list here yet.","woo-gutenberg-products-block")),Object(i.createElement)(h.Button,{className:"wc-block-products__add-product-button",isDefault:!0,isLarge:!0,href:ce.ADMIN_URL+"post-new.php?post_type=product"},Object(s.__)("Add new product","woo-gutenberg-products-block")+" ",Object(i.createElement)(b.a,{srcElement:Qt.a})),Object(i.createElement)(h.Button,{className:"wc-block-products__read_more_button",isTertiary:!0,href:"https://docs.woocommerce.com/document/managing-products/"},Object(s.__)("Learn more","woo-gutenberg-products-block")))},Xt=function(e,t){return Object(i.createElement)(h.Placeholder,{className:"wc-block-products",icon:t,label:e},Object(s.__)("The content for this block is hidden due to block settings.","woo-gutenberg-products-block"))};function Gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $t=[["woocommerce/product-image"],["woocommerce/product-title"],["woocommerce/product-price"],["woocommerce/product-rating"],["woocommerce/product-button"]],Jt=function e(t){return t&&0!==t.length?t.map((function(t){return[t.name,Kt(Kt({},t.attributes),{},{product:void 0,children:t.innerBlocks.length>0?e(t.innerBlocks):[]})]})):[]};r(845);function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var tr=function(e,t){var r=e.contentVisibility;return Object(i.createElement)(h.ToggleControl,{label:Object(s.__)("Show Sorting Dropdown","woo-gutenberg-products-block"),checked:r.orderBy,onChange:function(){return t({contentVisibility:er(er({},r),{},{orderBy:!r.orderBy})})}})},rr=function(e,t){return Object(i.createElement)(h.SelectControl,{label:Object(s.__)("Order Products By","woo-gutenberg-products-block"),value:e.orderby,options:[{label:Object(s.__)("Default sorting (menu order)","woo-gutenberg-products-block"),value:"menu_order"},{label:Object(s.__)("Popularity","woo-gutenberg-products-block"),value:"popularity"},{label:Object(s.__)("Average rating","woo-gutenberg-products-block"),value:"rating"},{label:Object(s.__)("Latest","woo-gutenberg-products-block"),value:"date"},{label:Object(s.__)("Price: low to high","woo-gutenberg-products-block"),value:"price"},{label:Object(s.__)("Price: high to low","woo-gutenberg-products-block"),value:"price-desc"}],onChange:function(e){return t({orderby:e})}})},nr=r(25),cr=r.n(nr),or=r(9),ar=r(6),ir=r(48),sr=(r(848),function(e){var t=e.currentPage,r=e.displayFirstAndLastPages,n=e.displayNextAndPreviousArrows,c=e.pagesToDisplay,o=e.onPageChange,a=e.totalPages,u=function(e,t,r){if(r<=2)return{minIndex:null,maxIndex:null};var n=e-1,c=Math.max(Math.floor(t-n/2),2),o=Math.min(Math.ceil(t+(n-(t-c))),r-1);return{minIndex:Math.max(Math.floor(t-(n-(o-t))),2),maxIndex:o}}(c,t,a),l=u.minIndex,b=u.maxIndex,p=r&&Boolean(1!==l),d=r&&Boolean(b!==a),f=r&&Boolean(l>3),m=r&&Boolean(b<a-2);p&&3===l&&(l-=1),d&&b===a-2&&(b+=1);var g=[];if(l&&b)for(var j=l;j<=b;j++)g.push(j);return Object(i.createElement)("div",{className:"wc-block-pagination wc-block-components-pagination"},Object(i.createElement)(ir.a,{screenReaderLabel:Object(s.__)("Navigate to another page","woo-gutenberg-products-block")}),n&&Object(i.createElement)("button",{className:"wc-block-pagination-page wc-block-components-pagination__page",onClick:function(){return o(t-1)},title:Object(s.__)("Previous page","woo-gutenberg-products-block"),disabled:t<=1},Object(i.createElement)(ir.a,{label:"<",screenReaderLabel:Object(s.__)("Previous page","woo-gutenberg-products-block")})),p&&Object(i.createElement)("button",{className:O()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":1===t,"wc-block-components-pagination__page--active":1===t}),onClick:function(){return o(1)},disabled:1===t},Object(i.createElement)(ir.a,{label:1,screenReaderLabel:Object(s.sprintf)(Object(s.__)("Page %d","woo-gutenberg-products-block"),1)})),f&&Object(i.createElement)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true"},Object(s.__)("…","woo-gutenberg-products-block")),g.map((function(e){return Object(i.createElement)("button",{key:e,className:O()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":t===e,"wc-block-components-pagination__page--active":t===e}),onClick:t===e?null:function(){return o(e)},disabled:t===e},Object(i.createElement)(ir.a,{label:e,screenReaderLabel:Object(s.sprintf)(Object(s.__)("Page %d","woo-gutenberg-products-block"),e)}))})),m&&Object(i.createElement)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true"},Object(s.__)("…","woo-gutenberg-products-block")),d&&Object(i.createElement)("button",{className:O()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":t===a,"wc-block-components-pagination__page--active":t===a}),onClick:function(){return o(a)},disabled:t===a},Object(i.createElement)(ir.a,{label:a,screenReaderLabel:Object(s.sprintf)(Object(s.__)("Page %d","woo-gutenberg-products-block"),a)})),n&&Object(i.createElement)("button",{className:"wc-block-pagination-page wc-block-components-pagination__page",onClick:function(){return o(t+1)},title:Object(s.__)("Next page","woo-gutenberg-products-block"),disabled:t>=a},Object(i.createElement)(ir.a,{label:">",screenReaderLabel:Object(s.__)("Next page","woo-gutenberg-products-block")})))});sr.defaultProps={displayFirstAndLastPages:!0,displayNextAndPreviousArrows:!0,pagesToDisplay:3};var ur=sr,lr=r(149),br=(r(847),function(e){var t=e.defaultValue,r=e.onChange,n=e.readOnly,c=e.value;return Object(i.createElement)(lr.a,{className:"wc-block-product-sort-select wc-block-components-product-sort-select",defaultValue:t,name:"orderby",onChange:r,options:[{key:"menu_order",label:Object(s.__)("Default sorting","woo-gutenberg-products-block")},{key:"popularity",label:Object(s.__)("Popularity","woo-gutenberg-products-block")},{key:"rating",label:Object(s.__)("Average rating","woo-gutenberg-products-block")},{key:"date",label:Object(s.__)("Latest","woo-gutenberg-products-block")},{key:"price",label:Object(s.__)("Price: low to high","woo-gutenberg-products-block")},{key:"price-desc",label:Object(s.__)("Price: high to low","woo-gutenberg-products-block")}],readOnly:n,screenReaderLabel:Object(s.__)("Order products by","woo-gutenberg-products-block"),value:c})}),pr=r(193),dr=Object(pr.a)((function(e){var t=e.product,r=e.attributes,n=e.instanceId,c=r.layoutConfig,o=Object(x.useInnerBlockLayoutContext)(),s=o.parentClassName,u=o.parentName,l=0===Object.keys(t).length,b=O()("".concat(s,"__product"),"wc-block-layout",{"is-loading":l});return Object(i.createElement)("li",{className:b,"aria-hidden":l},function e(t,r,n,c){if(n){var o=Object(qt.a)(t);return n.map((function(n,s){var u=k()(n,2),l=u[0],b=u[1],p=void 0===b?{}:b,d=[];p.children&&p.children.length>0&&(d=e(t,r,p.children,c));var f=o[l];if(!f)return null;var m=r.id||0,O=["layout",l,s,c,m];return Object(i.createElement)(i.Suspense,{key:O.join("_"),fallback:Object(i.createElement)("div",{className:"wc-block-placeholder"})},Object(i.createElement)(f,a()({},p,{children:d,product:r})))}))}}(u,t,c,n))})),fr=r(172),mr=r(207),Or=r(41),gr=r(58);function jr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var hr=function(e){var t={namespace:"/wc/store",resourceName:"products"},r=Object(mr.a)(vr(vr({},t),{},{query:e})),n=r.results,c=r.isLoading,o=function(e,t){var r=t.namespace,n=t.resourceName,c=t.resourceValues,o=void 0===c?[]:c,a=t.query,i=void 0===a?{}:a;if(!r||!n)throw new Error("The options object must have valid values for the namespace and the resource name properties.");var s=Object(gr.a)(i),u=Object(gr.a)(o),l=Object(Mt.useSelect)((function(t){var c=t(Or.COLLECTIONS_STORE_KEY),o=[e,r,n,s,u];return{value:c.getCollectionHeader.apply(c,o),isLoading:c.hasFinishedResolution("getCollectionHeader",o)}}),[e,r,n,u,s]),b=l.value,p=l.isLoading;return{value:b,isLoading:void 0===p||p}}("x-wp-total",vr(vr({},t),{},{query:e})).value;return{products:n,totalProducts:parseInt(o,10),productsLoading:c}},yr=r(168),wr=r(185),Er=r(87),_r=(r(846),r(144)),kr=function(){var e=Object(x.useInnerBlockLayoutContext)().parentClassName;return Object(i.createElement)("div",{className:"".concat(e,"__no-products")},Object(i.createElement)(b.a,{className:"".concat(e,"__no-products-image"),alt:"",srcElement:_r.a,size:100}),Object(i.createElement)("strong",{className:"".concat(e,"__no-products-title")},Object(s.__)("No products","woo-gutenberg-products-block")),Object(i.createElement)("p",{className:"".concat(e,"__no-products-description")},Object(s.__)("There are currently no products available to display.","woo-gutenberg-products-block")))},Pr=r(832),Cr=function(e){var t=e.resetCallback,r=void 0===t?function(){}:t,n=Object(x.useInnerBlockLayoutContext)().parentClassName;return Object(i.createElement)("div",{className:"".concat(n,"__no-products")},Object(i.createElement)(b.a,{className:"".concat(n,"__no-products-image"),alt:"",srcElement:Pr.a,size:100}),Object(i.createElement)("strong",{className:"".concat(n,"__no-products-title")},Object(s.__)("No products found","woo-gutenberg-products-block")),Object(i.createElement)("p",{className:"".concat(n,"__no-products-description")},Object(s.__)("We were unable to find any results based on your search.","woo-gutenberg-products-block")),Object(i.createElement)("button",{onClick:r},Object(s.__)("Reset Search","woo-gutenberg-products-block")))};function Sr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xr=function(e){var t=e.totalQuery,r=e.totalProducts,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=n.totalQuery;return!Object(ar.isEqual)(t,c)&&Number.isFinite(r)},Dr=Object(wr.a)((function(e){var t=e.attributes,r=e.currentPage,n=e.onPageChange,c=e.onSortChange,o=e.sortValue,a=e.scrollToTop,u=Object(fr.c)(function(e){var t=e.sortValue,r=e.currentPage,n=e.attributes,c=n.columns,o=n.rows;return Nr(Nr({},function(e){switch(e){case"menu_order":case"popularity":case"rating":case"price":return{orderby:e,order:"asc"};case"price-desc":return{orderby:"price",order:"desc"};case"date":return{orderby:"date",order:"desc"}}}(t)),{},{catalog_visibility:"catalog",per_page:c*o,page:r})}({attributes:t,sortValue:o,currentPage:r})),l=k()(u,1)[0],b=hr(l),p=b.products,d=b.totalProducts,f=b.productsLoading,m=Object(x.useInnerBlockLayoutContext)().parentClassName,g=function(e){e.order,e.orderby,e.page,e.per_page;return S()(e,["order","orderby","page","per_page"])||{}}(l),j=Object(fr.b)("attributes",[]),v=k()(j,2),h=v[0],y=v[1],w=Object(fr.b)("min_price"),E=k()(w,2),_=E[0],P=E[1],C=Object(fr.b)("max_price"),N=k()(C,2),D=N[0],B=N[1],z=Object(yr.a)({totalQuery:g,totalProducts:d},xr);Object(i.useEffect)((function(){Object(ar.isEqual)(g,null==z?void 0:z.totalQuery)||(n(1),(null==z?void 0:z.totalQuery)&&function(e){Number.isFinite(e)&&(0===e?Object(Er.speak)(Object(s.__)("No products found","woo-gutenberg-products-block")):Object(Er.speak)(Object(s.sprintf)(Object(s._n)("%d product found","%d products found",e,"woo-gutenberg-products-block"),e)))}(d))}),[null==z?void 0:z.totalQuery,d,n,g]);var R,T,I,L,A,V=t.contentVisibility,F=t.columns*t.rows,M=!Number.isFinite(d)&&Number.isFinite(null==z?void 0:z.totalProducts)&&Object(ar.isEqual)(g,null==z?void 0:z.totalQuery)?Math.ceil(z.totalProducts/F):Math.ceil(d/F),H=p.length?p:Array.from({length:F}),q=0!==p.length||f,U=h.length>0||Number.isFinite(_)||Number.isFinite(D);return Object(i.createElement)("div",{className:(R=t.columns,T=t.rows,I=t.alignButtons,L=t.align,A=void 0!==L?"align"+L:"",O()(m,A,"has-"+R+"-columns",{"has-multiple-rows":T>1,"has-aligned-buttons":I}))},V.orderBy&&q&&Object(i.createElement)(br,{onChange:c,value:o}),!q&&U&&Object(i.createElement)(Cr,{resetCallback:function(){y([]),P(null),B(null)}}),!q&&!U&&Object(i.createElement)(kr,null),q&&Object(i.createElement)("ul",{className:"".concat(m,"__products")},H.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return Object(i.createElement)(dr,{key:e.id||r,attributes:t,product:e})}))),M>1&&Object(i.createElement)(ur,{currentPage:r,onPageChange:function(e){a({focusableSelector:"a, button"}),n(e)},totalPages:M}))})),Br=function(e){var t=e.attributes,r=Object(i.useState)(1),n=k()(r,2),c=n[0],o=n[1],a=Object(i.useState)(t.orderby),s=k()(a,2),u=s[0],l=s[1];Object(i.useEffect)((function(){l(t.orderby)}),[t.orderby]);return Object(i.createElement)(Dr,{attributes:t,currentPage:c,onPageChange:function(e){o(e)},onSortChange:function(e){var t=e.target.value;l(t),o(1)},sortValue:u})},zr=r(176);function Rr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ft()(e);if(t){var c=Ft()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return At()(this,r)}}var Tr=function(e){It()(r,e);var t=Rr(r);function r(){return Bt()(this,r),t.apply(this,arguments)}return cr()(r,[{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.urlParameterSuffix;return t.isPreview?zr.a:Object(i.createElement)(x.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},Object(i.createElement)(Br,{attributes:t,urlParameterSuffix:r}))}}]),r}(or.Component);function Ir(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ft()(e);if(t){var c=Ft()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return At()(this,r)}}var Lr=function(e){It()(r,e);var t=Ir(r);function r(){var e;Bt()(this,r);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),c()(Rt()(e),"state",{isEditing:!1,innerBlocks:[]}),c()(Rt()(e),"blockMap",Object(qt.a)("woocommerce/all-products")),c()(Rt()(e),"componentDidMount",(function(){var t=e.props.block;e.setState({innerBlocks:t.innerBlocks})})),c()(Rt()(e),"getTitle",(function(){return Object(s.__)("All Products","woo-gutenberg-products-block")})),c()(Rt()(e),"getIcon",(function(){return Object(i.createElement)(b.a,{srcElement:d})})),c()(Rt()(e),"togglePreview",(function(){var t=e.props.debouncedSpeak;e.setState({isEditing:!e.state.isEditing}),e.state.isEditing||t(Object(s.__)("Showing All Products block preview.","woo-gutenberg-products-block"))})),c()(Rt()(e),"getInspectorControls",(function(){var t=e.props,r=t.attributes,n=t.setAttributes,c=r.columns,o=r.rows,a=r.alignButtons;return Object(i.createElement)(u.InspectorControls,{key:"inspector"},Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Layout Settings","woo-gutenberg-products-block"),initialOpen:!0},Object(i.createElement)(Ht.a,{columns:c,rows:o,alignButtons:a,setAttributes:n})),Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Content Settings","woo-gutenberg-products-block")},tr(r,n),rr(r,n)))})),c()(Rt()(e),"getBlockControls",(function(){var t=e.state.isEditing;return Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(h.Toolbar,{controls:[{icon:"edit",title:Object(s.__)("Edit","woo-gutenberg-products-block"),onClick:function(){return e.togglePreview()},isActive:t}]}))})),c()(Rt()(e),"renderEditMode",(function(){var t={template:e.props.attributes.layoutConfig,templateLock:!1,allowedBlocks:Object.keys(e.blockMap)};return 0!==e.props.attributes.layoutConfig.length&&(t.renderAppender=!1),Object(i.createElement)(h.Placeholder,{icon:e.getIcon(),label:e.getTitle()},Object(s.__)("Display all products from your store as a grid.","woo-gutenberg-products-block"),Object(i.createElement)("div",{className:"wc-block-all-products-grid-item-template"},Object(i.createElement)(h.Tip,null,Object(s.__)("Edit the blocks inside the preview below to change the content displayed for each product within the product grid.","woo-gutenberg-products-block")),Object(i.createElement)(x.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},Object(i.createElement)("div",{className:"wc-block-grid wc-block-layout has-1-columns"},Object(i.createElement)("ul",{className:"wc-block-grid__products"},Object(i.createElement)("li",{className:"wc-block-grid__product"},Object(i.createElement)(x.ProductDataContextProvider,{product:Ut.a[0]},Object(i.createElement)(u.InnerBlocks,t)))))),Object(i.createElement)("div",{className:"wc-block-all-products__actions"},Object(i.createElement)(h.Button,{className:"wc-block-all-products__done-button",isPrimary:!0,isLarge:!0,onClick:function(){var t=e.props,r=t.block;(0,t.setAttributes)({layoutConfig:Jt(r.innerBlocks)}),e.setState({innerBlocks:r.innerBlocks}),e.togglePreview()}},Object(s.__)("Done","woo-gutenberg-products-block")),Object(i.createElement)(h.Button,{className:"wc-block-all-products__cancel-button",isTertiary:!0,onClick:function(){var t=e.props,r=t.block,n=t.replaceInnerBlocks,c=e.state.innerBlocks;n(r.clientId,c,!1),e.togglePreview()}},Object(s.__)("Cancel","woo-gutenberg-products-block")),Object(i.createElement)(h.IconButton,{className:"wc-block-all-products__reset-button",icon:Object(i.createElement)(b.a,{srcElement:d}),label:Object(s.__)("Reset layout to default","woo-gutenberg-products-block"),onClick:function(){var t=e.props,r=t.block,n=t.replaceInnerBlocks,c=[];$t.map((function(e){var t=k()(e,2),r=t[0],n=t[1];return c.push(Object(l.createBlock)(r,n)),!0})),n(r.clientId,c,!1),e.setState({innerBlocks:r.innerBlocks})}},Object(s.__)("Reset Layout","woo-gutenberg-products-block")))))})),c()(Rt()(e),"renderViewMode",(function(){var t=e.props.attributes,r=t.layoutConfig,n=r&&0!==r.length,c=e.getTitle(),o=e.getIcon();return n?Object(i.createElement)(h.Disabled,null,Object(i.createElement)(Tr,{attributes:t})):Xt(c,o)})),c()(Rt()(e),"render",(function(){var t=e.props.attributes,r=e.state.isEditing,n=e.getTitle(),c=e.getIcon();return f.s?Object(i.createElement)("div",{className:Yt("wc-block-all-products",t)},e.getBlockControls(),e.getInspectorControls(),r?e.renderEditMode():e.renderViewMode()):Wt(n,c)})),e}return r}(i.Component),Ar=Object(y.compose)(h.withSpokenMessages,Object(Mt.withSelect)((function(e,t){var r=t.clientId;return{block:(0,e("core/block-editor").getBlock)(r)}})),Object(Mt.withDispatch)((function(e){return{replaceInnerBlocks:e("core/block-editor").replaceInnerBlocks}})))(Lr),Vr={columns:f.m,rows:f.o,alignButtons:!1,contentVisibility:{orderBy:!0},orderby:"date",layoutConfig:$t,isPreview:!1};function Fr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Hr={title:Object(s.__)("All Products","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:d}),foreground:"#96588a"},category:"woocommerce",keywords:[Object(s.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(s.__)("Display products from your store in a grid layout.","woo-gutenberg-products-block"),supports:{align:["wide","full"],html:!1,multiple:!1},example:{attributes:{isPreview:!0}},attributes:{columns:{type:"number"},rows:{type:"number"},alignButtons:{type:"boolean"},contentVisibility:{type:"object"},orderby:{type:"string"},layoutConfig:{type:"array"},isPreview:{type:"boolean",default:!1}},defaults:Vr,edit:function(e){return Object(i.createElement)(Ar,e)},save:function(e){var t=e.attributes,r={};Object.keys(t).sort().forEach((function(e){r[e]=t[e]}));var n={"data-attributes":JSON.stringify(r)};return Object(i.createElement)("div",a()({className:Yt("wc-block-all-products",t)},n),Object(i.createElement)(u.InnerBlocks.Content,null))}};Object(l.registerBlockType)("woocommerce/all-products",Mr(Mr({},Hr),{},{deprecated:[{attributes:Object.assign({},Hr.attributes,{rows:{type:"number",default:1}}),save:function(e){var t=e.attributes,r={"data-attributes":JSON.stringify(t)};return Object(i.createElement)("div",a()({className:Yt("wc-block-all-products",t)},r),Object(i.createElement)(u.InnerBlocks.Content,null))}}]}))},9:function(e,t){!function(){e.exports=this.React}()},927:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(56),c=r(0),o=r(5);r.p=o.V,Object(n.registerBlockComponent)({blockName:"woocommerce/product-price",component:Object(c.lazy)((function(){return Promise.all([r.e(0),r.e(11)]).then(r.bind(null,534))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-image",component:Object(c.lazy)((function(){return Promise.all([r.e(1),r.e(3),r.e(10)]).then(r.bind(null,947))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-title",component:Object(c.lazy)((function(){return Promise.all([r.e(1),r.e(17)]).then(r.bind(null,948))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-rating",component:Object(c.lazy)((function(){return r.e(12).then(r.bind(null,535))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-button",component:Object(c.lazy)((function(){return Promise.all([r.e(0),r.e(2),r.e(8)]).then(r.bind(null,536))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-summary",component:Object(c.lazy)((function(){return r.e(15).then(r.bind(null,538))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-sale-badge",component:Object(c.lazy)((function(){return r.e(3).then(r.bind(null,267))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-sku",component:Object(c.lazy)((function(){return r.e(13).then(r.bind(null,539))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-category-list",component:Object(c.lazy)((function(){return r.e(9).then(r.bind(null,540))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-tag-list",component:Object(c.lazy)((function(){return r.e(16).then(r.bind(null,541))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-stock-indicator",component:Object(c.lazy)((function(){return r.e(14).then(r.bind(null,542))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-add-to-cart",component:Object(c.lazy)((function(){return Promise.all([r.e(0),r.e(1),r.e(2),r.e(7)]).then(r.bind(null,949))}))});var a=function(e){return Object(n.getRegisteredBlockComponents)(e)}},929:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return c}));var n=function(e){return e.is_purchasable||!1},c=function(e){return["simple","variable"].includes(e.type||"simple")}},94:function(e,t){!function(){e.exports=this.wp.date}()},95:function(e,t){!function(){e.exports=this.wp.autop}()},99:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(27),a=r.n(o),i=r(0),s=r(280),u=(r(2),r(7)),l=r.n(u);r(239);t.a=function(e){var t=e.className,r=e.showSpinner,n=void 0!==r&&r,o=e.children,u=a()(e,["className","showSpinner","children"]),b=l()("wc-block-components-button",t,{"wc-block-components-button--loading":n});return Object(i.createElement)(s.a,c()({className:b},u),n&&Object(i.createElement)("span",{className:"wc-block-components-button__spinner","aria-hidden":"true"}),Object(i.createElement)("span",{className:"wc-block-components-button__text"},o))}}});
1
+ this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["all-products"]=function(e){function t(t){for(var n,a,i=t[0],s=t[1],u=t[2],b=0,p=[];b<i.length;b++)a=i[b],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&p.push(c[a][0]),c[a]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(l&&l(t);p.length;)p.shift()();return o.push.apply(o,u||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],n=!0,i=1;i<r.length;i++){var s=r[i];0!==c[s]&&(n=!1)}n&&(o.splice(t--,1),e=a(a.s=r[0]))}return e}var n={},c={5:0,2:0,3:0,8:0,9:0,11:0,12:0,13:0,14:0,15:0,16:0},o=[];function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[],r=c[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=n);var o,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+""+({1:"atomic-block-components/add-to-cart--atomic-block-components/image--atomic-block-components/title",2:"atomic-block-components/add-to-cart--atomic-block-components/button",3:"atomic-block-components/sale-badge",7:"atomic-block-components/add-to-cart",8:"atomic-block-components/button",9:"atomic-block-components/category-list",10:"atomic-block-components/image",11:"atomic-block-components/price",12:"atomic-block-components/rating",13:"atomic-block-components/sku",14:"atomic-block-components/stock-indicator",15:"atomic-block-components/summary",16:"atomic-block-components/tag-list",17:"atomic-block-components/title"}[e]||e)+".js"}(e);var s=new Error;o=function(t){i.onerror=i.onload=null,clearTimeout(u);var r=c[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",s.name="ChunkLoadError",s.type=n,s.request=o,r[1](s)}c[e]=void 0}};var u=setTimeout((function(){o({type:"timeout",target:i})}),12e4);i.onerror=i.onload=o,document.head.appendChild(i)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var l=s;return o.push([839,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},102:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=Object(n.createContext)("page"),o=function(){return Object(n.useContext)(c)};c.Provider},108:function(e,t){},109:function(e,t){},110:function(e,t){},111:function(e,t){},112:function(e,t){},113:function(e,t){},114:function(e,t){},115:function(e,t){},116:function(e,t){},117:function(e,t){},118:function(e,t){},119:function(e,t){},120:function(e,t){},121:function(e,t){},122:function(e,t){},13:function(e,t){!function(){e.exports=this.wp.apiFetch}()},134:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(41),c=r(36),o=r(212),a=r(33),i=r(6),s={cartCoupons:[],cartItems:[],cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:[],cartTotals:{},cartIsLoading:!0,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:[],shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:function(){}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(o.b)(),r=t.isEditor,u=t.previewData,l=(null==u?void 0:u.previewCart)||{},b=e.shouldSelect,p=Object(c.useSelect)((function(e,t){var c=t.dispatch;if(!b)return s;if(r)return{cartCoupons:l.coupons,cartItems:l.items,cartItemsCount:l.items_count,cartItemsWeight:l.items_weight,cartNeedsPayment:l.needs_payment,cartNeedsShipping:l.needs_shipping,cartItemErrors:[],cartTotals:l.totals,cartIsLoading:!1,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:l.shipping_rates,shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:"function"==typeof(null==l?void 0:l.receiveCart)?l.receiveCart:function(){}};var o=e(n.CART_STORE_KEY),u=o.getCartData(),p=o.getCartErrors(),d=o.getCartTotals(),f=!o.hasFinishedResolution("getCartData"),m=o.areShippingRatesLoading(),O=c(n.CART_STORE_KEY).receiveCart,g=Object(i.mapValues)(u.shippingAddress,(function(e){return Object(a.decodeEntities)(e)}));return{cartCoupons:u.coupons,cartItems:u.items||[],cartItemsCount:u.itemsCount,cartItemsWeight:u.itemsWeight,cartNeedsPayment:u.needsPayment,cartNeedsShipping:u.needsShipping,cartItemErrors:u.errors||[],cartTotals:d,cartIsLoading:f,cartErrors:p,shippingAddress:g,shippingRates:u.shippingRates||[],shippingRatesLoading:m,hasShippingAddress:!!g.country,receiveCart:O}}),[b]);return p}},135:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(61),a=r(167),i=r(3),s=r(14),u=r(45);t.a=function(e){var t=(Object(u.useProductDataContext)().product||{}).id||e.productId||0;return t?Object(n.createElement)(s.InspectorControls,null,Object(n.createElement)("div",{className:"wc-block-single-product__edit-card"},Object(n.createElement)("div",{className:"wc-block-single-product__edit-card-title"},Object(n.createElement)("a",{href:"".concat(i.ADMIN_URL,"post.php?post=").concat(t,"&action=edit"),target:"_blank",rel:"noopener noreferrer"},Object(c.__)("Edit this product's details","woo-gutenberg-products-block"),Object(n.createElement)(o.a,{srcElement:a.a,size:16}))),Object(n.createElement)("div",{className:"wc-block-single-product__edit-card-description"},Object(c.__)("Edit details such as title, price, description and more.","woo-gutenberg-products-block")))):null}},14:function(e,t){!function(){e.exports=this.wp.blockEditor}()},140:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(8),c=r.n(n),o=r(191),a=r(0);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=function(){var e=Object(o.b)(),t=e.notices,r=e.createNotice,n=e.removeNotice,c=e.createSnackbarNotice,i=e.setIsSuppressed,u=Object(a.useRef)(t);Object(a.useEffect)((function(){u.current=t}),[t]);var l=Object(a.useMemo)((function(){return{hasNoticesOfType:function(e){return u.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u.current.forEach((function(t){null!==e&&t.status!==e||n(t.id)}))},removeNotice:n}}),[n]),b=Object(a.useMemo)((function(){return{addDefaultNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("default",e,s({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("error",e,s({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("warning",e,s({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("info",e,s({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("success",e,s({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(e,t)}}}),[r,c]);return s(s(s({notices:t},l),b),{},{setIsSuppressed:i})}},142:function(e,t){!function(){e.exports=this.wp.wordcount}()},143:function(e,t,r){"use strict";var n=r(51),c=r.n(n),o=r(10),a=r.n(o),i=r(0),s=r(1),u=r(6),l=(r(2),r(50)),b=r(4),p=r(7),d=r.n(p),f=r(22),m=r.n(f),O=r(25),g=r.n(O),j=r(23),v=r.n(j),h=r(24),y=r.n(h),w=r(12),E=r.n(w),_=r(26);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E()(e);if(t){var c=E()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return y()(this,r)}}var P=Object(_.createHigherOrderComponent)((function(e){var t=function(t){v()(n,t);var r=k(n);function n(){return m()(this,n),r.apply(this,arguments)}return g()(n,[{key:"render",value:function(){var t=this.props.selected;return Object(i.createElement)(e,a()({},this.props,{selected:Object(u.isNil)(t)?[]:[t]}))}}]),n}(i.Component);return t.defaultProps={selected:null},t}),"withTransformSingleSelectToMultipleSelect"),C=r(302),S=r(15),N=r.n(S),x=r(37),D=r.n(x),B=r(19),z=r.n(B),R=r(8),T=r.n(R),I=r(43),L=r.n(I),A=r(40),V=r(44);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){T()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E()(e);if(t){var c=E()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return y()(this,r)}}var q=Object(_.createHigherOrderComponent)((function(e){var t=function(t){v()(n,t);var r=H(n);function n(){var e;m()(this,n);for(var t=arguments.length,c=new Array(t),o=0;o<t;o++)c[o]=arguments[o];return e=r.call.apply(r,[this].concat(c)),T()(z()(e),"state",{error:null,loading:!1,variations:{}}),T()(z()(e),"loadVariations",(function(){var t=e.props.products,r=e.state,n=r.loading,c=r.variations;if(!n){var o=e.getExpandedProduct();if(o&&!c[o]){var a=t.find((function(e){return e.id===o}));a.variations&&0!==a.variations.length?(e.setState({loading:!0}),Object(A.g)(o).then((function(t){var r=t.map((function(e){return M(M({},e),{},{parent:o})}));e.setState({variations:M(M({},e.state.variations),{},T()({},o,r)),loading:!1,error:null})})).catch(function(){var t=D()(N.a.mark((function t(r){var n;return N.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(V.a)(r);case 2:n=t.sent,e.setState({variations:M(M({},e.state.variations),{},T()({},o,null)),loading:!1,error:n});case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())):e.setState({variations:M(M({},e.state.variations),{},T()({},o,null)),loading:!1,error:null})}}})),e}return g()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.selected,r=e.showVariations;t&&r&&this.loadVariations()}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isLoading,n=t.selected;t.showVariations&&(!L()(e.selected,n)||e.isLoading&&!r)&&this.loadVariations()}},{key:"isProductId",value:function(e){return this.props.products.some((function(t){return t.id===e}))}},{key:"findParentProduct",value:function(e){return this.props.products.filter((function(t){return t.variations&&t.variations.find((function(t){return t.id===e}))}))[0].id}},{key:"getExpandedProduct",value:function(){var e=this.props,t=e.isLoading,r=e.selected;if(!e.showVariations)return null;var n=r&&r.length?r[0]:null;return n?this.prevSelectedItem=n:this.prevSelectedItem&&(t||this.isProductId(this.prevSelectedItem)||(n=this.prevSelectedItem)),!t&&n?this.isProductId(n)?n:this.findParentProduct(n):null}},{key:"render",value:function(){var t=this.props,r=t.error,n=t.isLoading,c=this.state,o=c.error,s=c.loading,u=c.variations;return Object(i.createElement)(e,a()({},this.props,{error:o||r,expandedProduct:this.getExpandedProduct(),isLoading:n,variations:u,variationsLoading:s}))}}]),n}(i.Component);return T()(t,"defaultProps",{selected:[],showVariations:!1}),t}),"withProductVariations"),U=r(61),Q=r(57),Y=Object(i.createElement)(Q.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"#1E8CBE",d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),W=Object(i.createElement)(Q.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"#757575",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),X=r(49);r(200);function G(e,t){if(!t)return e;var r=new RegExp(Object(u.escapeRegExp)(t),"ig");return e.replace(r,"<strong>$&</strong>")}var K=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?Object(i.createElement)(U.a,{srcElement:Y}):Object(i.createElement)(U.a,{srcElement:W})},$={list:Object(s.__)("Products","woo-gutenberg-products-block"),noItems:Object(s.__)("Your store doesn't have any products.","woo-gutenberg-products-block"),search:Object(s.__)("Search for a product to display","woo-gutenberg-products-block"),updated:Object(s.__)("Product search results updated.","woo-gutenberg-products-block")},J=function(e){var t=e.expandedProduct,r=e.error,n=e.isLoading,o=e.onChange,p=e.onSearch,f=e.products,m=e.renderItem,O=e.selected,g=e.showVariations,j=e.variations,v=e.variationsLoading,h=function(e){var r=e.item,n=e.search,c=e.depth,o=void 0===c?0:c,p=e.isSelected,f=e.onSelect,m=r.variations&&Array.isArray(r.variations)?r.variations.length:0,O=d()("woocommerce-search-product__item","woocommerce-search-list__item","depth-".concat(o),{"is-searching":n.length>0,"is-skip-level":0===o&&0!==r.parent,"is-variable":m>0}),g=Object.assign({},e);delete g.isSingle;var j={role:"menuitemradio"};return r.breadcrumbs.length&&(j["aria-label"]="".concat(r.breadcrumbs[0],": ").concat(r.name)),m&&(j["aria-expanded"]=r.id===t),r.breadcrumbs.length?(Object(u.isEmpty)(r.variation)||(r.name=r.variation),Object(i.createElement)(l.b,a()({className:O},e,j))):[Object(i.createElement)(b.MenuItem,a()({key:"product-".concat(r.id),isSelected:p},g,j,{className:O,onClick:function(){f(r)()}}),Object(i.createElement)("span",{className:"woocommerce-search-list__item-state"},K(p)),Object(i.createElement)("span",{className:"woocommerce-search-list__item-label"},Object(i.createElement)("span",{className:"woocommerce-search-list__item-name",dangerouslySetInnerHTML:{__html:G(r.name,n)}})),m?Object(i.createElement)("span",{className:"woocommerce-search-list__item-variation-count"},Object(s.sprintf)(Object(s._n)("%d variation","%d variations",m,"woo-gutenberg-products-block"),m)):null),t===r.id&&m>0&&v&&Object(i.createElement)("div",{key:"loading",className:"woocommerce-search-list__item woocommerce-search-product__itemdepth-1 is-loading is-not-active"},Object(i.createElement)(b.Spinner,null))]};if(r)return Object(i.createElement)(X.a,{error:r});var y=j&&j[t]?j[t]:[],w=[].concat(c()(f),c()(y));return Object(i.createElement)(l.a,{className:"woocommerce-products",list:w,isLoading:n,isSingle:!0,selected:w.filter((function(e){var t=e.id;return O.includes(t)})),onChange:o,renderItem:m||(g?h:null),onSearch:p,messages:$,isHierarchical:!0})};J.defaultProps={expandedProduct:null,selected:[],showVariations:!1};t.a=P(Object(C.a)(q(J)))},144:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}));t.a=o},149:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(7)),o=r.n(c),a=r(48),i=r(193);r(202);t.a=Object(i.a)((function(e){var t=e.className,r=e.instanceId,c=e.defaultValue,i=e.label,s=e.onChange,u=e.options,l=e.screenReaderLabel,b=e.readOnly,p=e.value,d="wc-block-components-sort-select__select-".concat(r);return Object(n.createElement)("div",{className:o()("wc-block-sort-select","wc-block-components-sort-select",t)},Object(n.createElement)(a.a,{label:i,screenReaderLabel:l,wrapperElement:"label",wrapperProps:{className:"wc-block-sort-select__label wc-block-components-sort-select__label",htmlFor:d}}),Object(n.createElement)("select",{id:d,className:"wc-block-sort-select__select wc-block-components-sort-select__select",defaultValue:c,onChange:s,readOnly:b,value:p},u.map((function(e){return Object(n.createElement)("option",{key:e.key,value:e.key},e.label)}))))}))},15:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},150:function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return b}));var n=r(8),c=r.n(n),o=r(6);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s="add_event_callback",u="remove_event_callback",l={addEventCallback:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:Object(o.uniqueId)(),type:s,eventType:e,callback:t,priority:r}},removeEventCallback:function(e,t){return{id:t,type:u,eventType:e}}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.eventType,o=t.id,a=t.callback,l=t.priority,b=new Map(e[n]);switch(r){case s:return b.set(o,{priority:l,callback:a}),i(i({},e),{},c()({},n,b));case u:return b.delete(o),i(i({},e),{},c()({},n,b))}return e}},152:function(e,t,r){"use strict";var n=r(22),c=r.n(n),o=r(25),a=r.n(o),i=r(23),s=r.n(i),u=r(24),l=r.n(u),b=r(12),p=r.n(b),d=r(0),f=r(6),m=r(1),O=r(4);function g(e){var t=e.level,r={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return r.hasOwnProperty(t)?Object(d.createElement)(O.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(O.Path,{d:r[t]})):null}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p()(e);if(t){var c=p()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return l()(this,r)}}var v=function(e){s()(r,e);var t=j(r);function r(){return c()(this,r),t.apply(this,arguments)}return a()(r,[{key:"createLevelControl",value:function(e,t,r){var n=e===t;return{icon:Object(d.createElement)(g,{level:e}),title:Object(m.sprintf)(Object(m.__)("Heading %d"),e),isActive:n,onClick:function(){return r(e)}}}},{key:"render",value:function(){var e=this,t=this.props,r=t.isCollapsed,n=void 0===r||r,c=t.minLevel,o=t.maxLevel,a=t.selectedLevel,i=t.onChange;return Object(d.createElement)(O.Toolbar,{isCollapsed:n,icon:Object(d.createElement)(g,{level:a}),controls:Object(f.range)(c,o).map((function(t){return e.createLevelControl(t,a,i)}))})}}]),r}(d.Component);t.a=v},155:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(11),c=r.n(n),o=r(0),a=function(){var e=Object(o.useState)(),t=c()(e,2)[1];return function(e){return t((function(){throw e}))}}},164:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(0),a=r(1),i=r(55),s=r(7),u=r.n(s),l=(r(2),r(237),function(e){var t=e.className,r=e.currency,n=e.maxPrice,c=e.minPrice,a=e.priceClassName,s=e.priceStyle;return Object(o.createElement)("span",{className:t},Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",a),currency:r,value:c,style:s})," — ",Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",a),currency:r,value:n,style:s}))}),b=function(e){var t=e.className,r=e.currency,n=e.regularPriceClassName,c=e.regularPriceStyle,s=e.regularPrice,l=e.priceClassName,b=e.priceStyle,p=e.price;return Object(o.createElement)("span",{className:t},Object(o.createElement)("span",{className:"screen-reader-text"},Object(a.__)("Previous price:","woo-gutenberg-products-block")),Object(o.createElement)(i.a,{currency:r,renderText:function(e){return Object(o.createElement)("del",{className:u()("wc-block-components-product-price__regular",n),style:c},e)},value:s}),Object(o.createElement)("span",{className:"screen-reader-text"},Object(a.__)("Discounted price:","woo-gutenberg-products-block")),Object(o.createElement)(i.a,{currency:r,renderText:function(e){return Object(o.createElement)("ins",{className:u()("wc-block-components-product-price__value","is-discounted",l),style:b},e)},value:p}))};t.a=function(e){var t=e.align,r=e.className,n=e.currency,a=e.maxPrice,s=void 0===a?null:a,p=e.minPrice,d=void 0===p?null:p,f=e.price,m=void 0===f?null:f,O=e.priceClassName,g=e.priceStyle,j=e.regularPrice,v=e.regularPriceClassName,h=e.regularPriceStyle,y=u()(r,"price","wc-block-components-product-price",c()({},"wc-block-components-product-price--align-".concat(t),t));return j&&m!==j?Object(o.createElement)(b,{className:y,currency:n,price:m,priceClassName:O,priceStyle:g,regularPrice:j,regularPriceClassName:v,regularPriceStyle:h}):null!==d&&null!==s?Object(o.createElement)(l,{className:y,currency:n,maxPrice:s,minPrice:d,priceClassName:O,priceStyle:g}):null!==m?Object(o.createElement)("span",{className:y},Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",O),currency:n,value:m,style:g})):Object(o.createElement)("span",{className:y},Object(o.createElement)("span",{className:u()("wc-block-components-product-price__value",O)}))}},167:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("mask",{id:"external-mask",width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},Object(n.createElement)("path",{fill:"#fff",d:"M6.3431 6.3431v1.994l7.8984.0072-8.6055 8.6054 1.4142 1.4143 8.6055-8.6055.0071 7.8984h1.994V6.3431H6.3431z"})),Object(n.createElement)("g",{mask:"url(#external-mask)"},Object(n.createElement)("path",{d:"M0 0h24v24H0z"})));t.a=o},168:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(9),c=function(e,t){var r=Object(n.useRef)();return Object(n.useEffect)((function(){r.current===e||t&&!t(e,r.current)||(r.current=e)}),[e,t]),r.current}},17:function(e,t){!function(){e.exports=this.wp.blocks}()},172:function(e,t,r){"use strict";r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return m})),r.d(t,"c",(function(){return O}));var n=r(11),c=r.n(n),o=r(41),a=r(36),i=r(0),s=r(102),u=r(168),l=r(43),b=r.n(l),p=r(6),d=r(58),f=function(e){var t=Object(s.a)();e=e||t;var r=Object(a.useSelect)((function(t){return t(o.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0)}),[e]),n=Object(a.useDispatch)(o.QUERY_STATE_STORE_KEY).setValueForQueryContext;return[r,Object(i.useCallback)((function(t){n(e,t)}),[e,n])]},m=function(e,t,r){var n=Object(s.a)();r=r||n;var c=Object(a.useSelect)((function(n){return n(o.QUERY_STATE_STORE_KEY).getValueForQueryKey(r,e,t)}),[r,e]),u=Object(a.useDispatch)(o.QUERY_STATE_STORE_KEY).setQueryValue;return[c,Object(i.useCallback)((function(t){u(r,e,t)}),[r,e,u])]},O=function(e,t){var r=Object(s.a)(),n=f(t=t||r),o=c()(n,2),a=o[0],l=o[1],m=Object(d.a)(a),O=Object(d.a)(e),g=Object(u.a)(O),j=Object(i.useRef)(!1);return Object(i.useEffect)((function(){b()(g,O)||(l(Object(p.assign)({},m,O)),j.current=!0)}),[m,O,g,l]),j.current?[a,l]:[e,l]}},176:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=r(5),o=Object(n.createElement)("img",{src:c.U+"img/grid.svg",alt:"Grid Preview",width:"230",height:"250",style:{width:"100%"}})},177:function(e,t,r){"use strict";var n=r(0),c=r(142),o=r(95),a=function(e){var t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)},i=function(e){return e.replace(/<\/?[a-z][^>]*?>/gi,"")},s=function(e,t){return e.replace(/[\s|\.\,]+$/i,"")+t},u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"&hellip;",n=i(e),c=n.split(" ").splice(0,t).join(" ");return Object(o.autop)(s(c,r))},l=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&hellip;",c=i(e),a=c.slice(0,t);if(r)return Object(o.autop)(s(a,n));var u=a.match(/([\s]+)/g),l=u?u.length:0,b=c.slice(0,t+l);return Object(o.autop)(s(b,n))};t.a=function(e){var t=e.source,r=e.maxLength,i=void 0===r?15:r,s=e.countType,b=void 0===s?"words":s,p=e.className,d=void 0===p?"":p,f=Object(n.useMemo)((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"words",n=Object(o.autop)(e),i=Object(c.count)(n,r);if(i<=t)return n;var s=a(n),b=Object(c.count)(s,r);return b<=t?s:"words"===r?u(s,t):l(s,t,"characters_including_spaces"===r)}(t,i,b)}),[t,i,b]);return Object(n.createElement)(n.RawHTML,{className:d},f)}},18:function(e,t){!function(){e.exports=this.wp.url}()},185:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(22),a=r.n(o),i=r(25),s=r.n(i),u=r(19),l=r.n(u),b=r(23),p=r.n(b),d=r(24),f=r.n(d),m=r(12),O=r.n(m),g=r(8),j=r.n(g),v=r(0),h=r(9);r(260);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O()(e);if(t){var c=O()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return f()(this,r)}}t.a=function(e){var t=function(t){p()(n,t);var r=y(n);function n(){var e;return a()(this,n),e=r.call(this),j()(l()(e),"scrollToTopIfNeeded",(function(){var t=e.scrollPointRef.current.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollPointRef.current.scrollIntoView()})),j()(l()(e),"moveFocusToTop",(function(t){var r=e.scrollPointRef.current.parentElement.querySelectorAll(t);r.length&&r[0].focus()})),j()(l()(e),"scrollToTop",(function(t){window&&Number.isFinite(window.innerHeight)&&(e.scrollToTopIfNeeded(),t&&t.focusableSelector&&e.moveFocusToTop(t.focusableSelector))})),e.scrollPointRef=Object(h.createRef)(),e}return s()(n,[{key:"render",value:function(){return Object(v.createElement)(h.Fragment,null,Object(v.createElement)("div",{className:"with-scroll-to-top__scroll-point",ref:this.scrollPointRef,"aria-hidden":!0}),Object(v.createElement)(e,c()({},this.props,{scrollToTop:this.scrollToTop})))}}]),n}(h.Component);return t.displayName="withScrollToTop",t}},191:function(e,t,r){"use strict";r.d(t,"b",(function(){return g})),r.d(t,"a",(function(){return j}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=(r(2),r(36)),u=r(303),l=r(944),b=r(140),p=r(212),d=function(){var e=Object(p.b)().isEditor,t=Object(b.a)(),r=t.notices,n=t.removeNotice;if(e)return null;var c=r.filter((function(e){return"snackbar"===e.type}));return Object(i.createElement)(l.a,{notices:c,className:"wc-block-components-notices__snackbar",onRemove:n})};function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=Object(i.createContext)({notices:[],createNotice:function(e,t,r){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),g=function(){return Object(i.useContext)(O)},j=function(e){var t=e.children,r=e.className,n=void 0===r?"":r,c=e.createNoticeContainer,o=void 0===c||c,l=e.context,b=void 0===l?"wc/core":l,p=Object(s.useDispatch)("core/notices"),f=p.createNotice,g=p.removeNotice,j=Object(i.useState)(!1),v=a()(j,2),h=v[0],y=v[1],w=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};f(e,t,m(m({},r),{},{context:r.context||b}))}),[f,b]),E=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;g(e,t)}),[g,b]),_=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w("default",e,m(m({},t),{},{type:"snackbar"}))}),[w]),k={notices:Object(s.useSelect)((function(e){return{notices:e("core/notices").getNotices(b)}}),[b]).notices,createNotice:w,createSnackbarNotice:_,removeNotice:E,context:b,setIsSuppressed:y},P=h?null:Object(i.createElement)(u.a,{className:n,notices:k.notices}),C=h?null:Object(i.createElement)(d,null);return Object(i.createElement)(O.Provider,{value:k},o&&P,t,C)}},194:function(e,t){},200:function(e,t){},202:function(e,t){},207:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(41),c=r(36),o=r(0),a=r(155),i=r(58),s=function(e){var t=e.namespace,r=e.resourceName,s=e.resourceValues,u=void 0===s?[]:s,l=e.query,b=void 0===l?{}:l,p=e.shouldSelect,d=void 0===p||p;if(!t||!r)throw new Error("The options object must have valid values for the namespace and the resource properties.");var f=Object(o.useRef)({results:[],isLoading:!0}),m=Object(i.a)(b),O=Object(i.a)(u),g=Object(a.a)(),j=Object(c.useSelect)((function(e){if(!d)return null;var c=e(n.COLLECTIONS_STORE_KEY),o=[t,r,m,O],a=c.getCollectionError.apply(c,o);return a&&g(a),{results:c.getCollection.apply(c,o),isLoading:!c.hasFinishedResolution("getCollection",o)}}),[t,r,O,m,d]);return null!==j&&(f.current=j),f.current}},212:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return i}));var n=r(0),c=r(36),o=Object(n.createContext)({isEditor:!1,currentPostId:0,previewData:{}}),a=function(){return Object(n.useContext)(o)},i=function(e){var t=e.children,r=e.currentPostId,a=void 0===r?0:r,i=e.previewData,s=void 0===i?{}:i,u={isEditor:!0,currentPostId:Object(c.useSelect)((function(e){return a||e("core/editor").getCurrentPostId()}),[a]),previewData:s};return Object(n.createElement)(o.Provider,{value:u},t)}},233:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=r(86),o=(r(2),r(240),function(e){var t=e.errorMessage,r=void 0===t?"":t,o=e.propertyName,a=void 0===o?"":o,i=e.elementId,s=void 0===i?"":i,u=Object(c.b)(),l=u.getValidationError,b=u.getValidationErrorId;if(!r){var p=l(a)||{};if(!p.message||p.hidden)return null;r=p.message}return Object(n.createElement)("div",{className:"wc-block-components-validation-error",role:"alert"},Object(n.createElement)("p",{id:b(s)},r))})},237:function(e,t){},238:function(e,t){},239:function(e,t){},240:function(e,t){},259:function(e,t,r){"use strict";r.d(t,"c",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"a",(function(){return m}));var n=r(8),c=r.n(n),o=r(60),a=r.n(o),i=r(3);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l,b,p={code:i.CURRENCY.code,symbol:i.CURRENCY.symbol,thousandSeparator:i.CURRENCY.thousandSeparator,decimalSeparator:i.CURRENCY.decimalSeparator,minorUnit:i.CURRENCY.precision,prefix:(l=i.CURRENCY.symbol,b=i.CURRENCY.symbolPosition,{left:l,left_space:" "+l,right:"",right_space:""}[b]||""),suffix:function(e,t){return{left:"",left_space:"",right:e,right_space:" "+e}[t]||""}(i.CURRENCY.symbol,i.CURRENCY.symbolPosition)},d=function(e){if(!e||"object"!==a()(e))return p;var t=e.currency_code,r=e.currency_symbol,n=e.currency_thousand_separator,c=e.currency_decimal_separator,o=e.currency_minor_unit,i=e.currency_prefix,s=e.currency_suffix;return{code:t||"USD",symbol:r||"$",thousandSeparator:"string"==typeof n?n:",",decimalSeparator:"string"==typeof c?c:".",minorUnit:Number.isFinite(o)?o:2,prefix:"string"==typeof i?i:"$",suffix:"string"==typeof s?s:""}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(u({},p),e)},m=function(e,t){if(""===e||void 0===e)return"";var r=parseInt(e,10);if(!Number.isFinite(r))return"";var n=f(t),c=r/Math.pow(10,n.minorUnit),o=n.prefix+c+n.suffix,a=document.createElement("textarea");return a.innerHTML=o,a.value}},26:function(e,t){!function(){e.exports=this.wp.compose}()},260:function(e,t){},267:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(1)),i=r(7),s=r.n(i),u=r(48),l=r(45),b=r(73);r(553);t.default=Object(b.withProductDataContext)((function(e){var t=e.className,r=e.align,n=Object(l.useInnerBlockLayoutContext)().parentClassName,i=Object(l.useProductDataContext)().product;if(!i.id||!i.on_sale)return null;var b="string"==typeof r?"wc-block-components-product-sale-badge--align-".concat(r):"";return Object(o.createElement)("div",{className:s()("wc-block-components-product-sale-badge",t,b,c()({},"".concat(n,"__product-onsale"),n))},Object(o.createElement)(u.a,{label:Object(a.__)("Sale","woo-gutenberg-products-block"),screenReaderLabel:Object(a.__)("Product on sale","woo-gutenberg-products-block")}))}))},268:function(e,t){!function(){e.exports=this.wp.deprecated}()},269:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(27),a=r.n(o),i=r(0),s=r(57),u=Object(i.createElement)((function(e){var t=e.className,r=e.size,n=void 0===r?20:r,o=a()(e,["className","size"]);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:n,height:n},o),Object(i.createElement)("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))}),null),l=r(284);t.a=function(e){let t;switch(e.icon){case"arrow-down-alt2":t=u;break;case"no-alt":t=l.a}return t?Object(i.cloneElement)(t,{size:e.size||20,className:e.className}):null}},284:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(27),a=r.n(o),i=r(0),s=r(57),u=Object(i.createElement)((function(e){var t=e.className,r=e.size,n=a()(e,["className","size"]);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:r,height:r},n),Object(i.createElement)("path",{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))}),null);t.a=u},3:function(e,t){!function(){e.exports=this.wc.wcSettings}()},302:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(15),a=r.n(o),i=r(37),s=r.n(i),u=r(22),l=r.n(u),b=r(25),p=r.n(b),d=r(19),f=r.n(d),m=r(23),O=r.n(m),g=r(24),j=r.n(g),v=r(12),h=r.n(v),y=r(0),w=r(6),E=r(26),_=(r(2),r(5)),k=r(40),P=r(44);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h()(e);if(t){var c=h()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return j()(this,r)}}var S=Object(E.createHigherOrderComponent)((function(e){var t=function(t){O()(o,t);var r,n=C(o);function o(){var e;return l()(this,o),(e=n.apply(this,arguments)).state={list:[],loading:!0},e.setError=e.setError.bind(f()(e)),e.debouncedOnSearch=Object(w.debounce)(e.onSearch.bind(f()(e)),400),e}return p()(o,[{key:"componentDidMount",value:function(){var e=this,t=this.props.selected;Object(k.h)({selected:t}).then((function(t){e.setState({list:t,loading:!1})})).catch(this.setError)}},{key:"componentWillUnmount",value:function(){this.debouncedOnSearch.cancel()}},{key:"onSearch",value:function(e){var t=this,r=this.props.selected;Object(k.h)({selected:r,search:e}).then((function(e){t.setState({list:e,loading:!1})})).catch(this.setError)}},{key:"setError",value:(r=s()(a.a.mark((function e(t){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(P.a)(t);case 2:r=e.sent,this.setState({list:[],loading:!1,error:r});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this,r=this.state,n=r.error,o=r.list,a=r.loading;return Object(y.createElement)(e,c()({},this.props,{error:n,products:o,isLoading:a,onSearch:_.v?function(e){t.setState({loading:!0}),t.debouncedOnSearch(e)}:null}))}}]),o}(y.Component);return t.defaultProps={selected:[]},t}),"withSearchedProducts");t.a=S},303:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),s=r(390),u=r(191),l=(r(238),function(e){var t=e.status;switch(void 0===t?"default":t){case"error":return"woocommerce-error";case"success":return"woocommerce-success";case"info":case"warning":return"woocommerce-info"}return""});t.a=function(e){var t=e.className,r=e.notices,n=Object(u.b)().removeNotice,a=r.filter((function(e){return"snackbar"!==e.type}));if(!a.length)return null;var b=i()(t,"wc-block-components-notices");return Object(o.createElement)("div",{className:b},a.map((function(e){return Object(o.createElement)(s.a,c()({key:"store-notice-"+e.id},e,{className:i()("wc-block-components-notices__notice","woocommerce-message",l(e)),onRemove:function(){e.isDismissible&&n(e.id)}}),e.content)})))}},33:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},35:function(e,t){!function(){e.exports=this.moment}()},36:function(e,t){!function(){e.exports=this.wp.data}()},362:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4V6h16v12z"}));t.a=o},391:function(e,t){},392:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(5);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={headingLevel:{type:"number",default:2},productLink:{type:"boolean",default:!0},productId:{type:"number",default:0}};Object(o.X)()&&(s=i(i({},s),{},{align:{type:"string"},color:{type:"string"},customColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"}})),t.a=s},393:function(e,t,r){"use strict";t.a={productLink:{type:"boolean",default:!0},showSaleBadge:{type:"boolean",default:!0},saleBadgeAlign:{type:"string",default:"right"},imageSizing:{type:"string",default:"full-size"},productId:{type:"number",default:0}}},394:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=(r(2),r(7)),u=r.n(s),l=r(5),b=r(45),p=r(73),d=r(6),f=r(267);r(554);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=function(){return Object(i.createElement)("img",{src:l.G,alt:"",width:500,height:500})},j=function(e){var t=e.image,r=e.onLoad,n=e.loaded,c=e.showFullSize,o=t||{},a=o.thumbnail,s=o.src,u=o.srcset,l=o.sizes,b={alt:o.alt,onLoad:r,hidden:!n,src:a};return c&&(b=O(O({},b),{},{src:s,srcSet:u,sizes:l})),Object(i.createElement)(i.Fragment,null,Object(i.createElement)("img",b),!n&&Object(i.createElement)(g,null))};t.a=Object(p.withProductDataContext)((function(e){var t=e.className,r=e.imageSizing,n=void 0===r?"full-size":r,o=e.productLink,s=void 0===o||o,l=e.showSaleBadge,p=e.saleBadgeAlign,m=void 0===p?"right":p,O=Object(b.useInnerBlockLayoutContext)().parentClassName,v=Object(b.useProductDataContext)().product,h=Object(i.useState)(!1),y=a()(h,2),w=y[0],E=y[1];if(!v.id)return Object(i.createElement)("div",{className:u()(t,"wc-block-components-product-image","wc-block-components-product-image--placeholder",c()({},"".concat(O,"__product-image"),O))},Object(i.createElement)(g,null));var _=Object(d.isEmpty)(v.images)?null:v.images[0];return Object(i.createElement)("div",{className:u()(t,"wc-block-components-product-image",c()({},"".concat(O,"__product-image"),O))},s?Object(i.createElement)("a",{href:v.permalink,rel:"nofollow"},!!l&&Object(i.createElement)(f.default,{align:m,product:v}),Object(i.createElement)(j,{image:_,onLoad:function(){return E(!0)},loaded:w,showFullSize:"cropped"!==n})):Object(i.createElement)(i.Fragment,null,!!l&&Object(i.createElement)(f.default,{align:m,product:v}),Object(i.createElement)(j,{image:_,onLoad:function(){return E(!0)},loaded:w,showFullSize:"cropped"!==n})))}))},395:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=function(e,t){return!!e.type&&e.type===t},c={SUCCESS:"success",FAIL:"failure",ERROR:"error"},o={PAYMENTS:"wc/payment-area",EXPRESS_PAYMENTS:"wc/express-payment-area"},a=function(e){return n(e,c.SUCCESS)},i=function(e){return n(e,c.ERROR)},s=function(e){return n(e,c.FAIL)},u=function(e){return void 0===e.retry||!0===e.retry},l=function(){return{responseTypes:c,noticeContexts:o,shouldRetry:u,isSuccessResponse:a,isErrorResponse:i,isFailResponse:s}}},396:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(150),c=function(e,t){return function(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,o=n.a.addEventCallback(e,r,c);return t(o),function(){t(n.a.removeEventCallback(e,o.id))}}}},397:function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return d}));var n=r(15),c=r.n(n),o=r(60),a=r.n(o),i=r(37),s=r.n(i);function u(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,c=function(){};return{s:c,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var b=function(e,t){return e[t]?Array.from(e[t].values()).sort((function(e,t){return e.priority-t.priority})):[]},p=function(){var e=s()(c.a.mark((function e(t,r,n){var o,i,s,l,p,d;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=b(t,r),i=[],s=u(o),e.prev=3,s.s();case 5:if((l=s.n()).done){e.next=19;break}return p=l.value,e.prev=7,e.next=10,Promise.resolve(p.callback(n));case 10:d=e.sent,"object"===a()(d)&&i.push(d),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),console.error(e.t0);case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(3),s.e(e.t1);case 24:return e.prev=24,s.f(),e.finish(24);case 27:return e.abrupt("return",!i.length||i);case 28:case"end":return e.stop()}}),e,null,[[3,21,24,27],[7,14]])})));return function(t,r,n){return e.apply(this,arguments)}}(),d=function(){var e=s()(c.a.mark((function e(t,r,n){var o,i,s,l,p;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=b(t,r),i=u(o),e.prev=2,i.s();case 4:if((s=i.n()).done){e.next=23;break}return l=s.value,e.prev=6,e.next=9,Promise.resolve(l.callback(n));case 9:if(p=e.sent,"object"===a()(p)){e.next=12;break}return e.abrupt("continue",21);case 12:if(void 0!==p.type){e.next=14;break}throw new Error("If you want to abort event emitter processing, your observer must return an object with a type property");case 14:return e.abrupt("return",p);case 17:return e.prev=17,e.t0=e.catch(6),console.error(e.t0),e.abrupt("return",{type:"error"});case 21:e.next=4;break;case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(2),i.e(e.t1);case 28:return e.prev=28,i.f(),e.finish(28);case 31:return e.abrupt("return",!0);case 32:case"end":return e.stop()}}),e,null,[[2,25,28,31],[6,17]])})));return function(t,r,n){return e.apply(this,arguments)}}()},398:function(e,t,r){"use strict";t.a={showFormElements:{type:"boolean",default:!1},productId:{type:"number",default:0}}},399:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(7)),o=r.n(c),a=r(86),i=r(11),s=r.n(i),u=r(1),l=r(58),b=r(140),p=r(395),d=r(929),f="pristine",m="idle",O="disabled",g="processing",j="before_processing",v="after_processing",h={status:f,hasError:!1,quantity:1,processingResponse:null,requestParams:{}},y="set_pristine",w="set_idle",E="set_disabled",_="set_processing",k="set_before_processing",P="set_after_processing",C="set_processing_response",S="set_has_error",N="set_no_error",x="set_quantity",D="set_request_params",B=y,z=w,R=E,T=_,I=k,L=P,A=C,V=S,F=N,M=x,H=D,q=function(){return{type:B}},U=function(){return{type:z}},Q=function(){return{type:R}},Y=function(){return{type:T}},W=function(){return{type:I}},X=function(){return{type:L}},G=function(e){return{type:A,data:e}},K=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?V:F;return{type:t}},$=function(e){return{type:M,quantity:e}},J=function(e){return{type:H,data:e}},Z=r(8),ee=r.n(Z);function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?te(Object(r),!0).forEach((function(t){ee()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ne=y,ce=w,oe=E,ae=_,ie=k,se=P,ue=C,le=S,be=N,pe=x,de=D,fe=f,me=m,Oe=O,ge=g,je=j,ve=v,he=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,r=arguments.length>1?arguments[1]:void 0,n=r.quantity,c=r.type,o=r.data;switch(c){case ne:e=h;break;case ce:e=t.status!==me?re(re({},t),{},{status:me}):t;break;case oe:e=t.status!==Oe?re(re({},t),{},{status:Oe}):t;break;case pe:e=n!==t.quantity?re(re({},t),{},{quantity:n}):t;break;case de:e=re(re({},t),{},{requestParams:re(re({},t.requestParams),o)});break;case ue:e=re(re({},t),{},{processingResponse:o});break;case ae:e=!1===(e=t.status!==ge?re(re({},t),{},{status:ge,hasError:!1}):t).hasError?e:re(re({},e),{},{hasError:!1});break;case ie:e=t.status!==je?re(re({},t),{},{status:je,hasError:!1}):t;break;case se:e=t.status!==ve?re(re({},t),{},{status:ve}):t;break;case le:e=t.hasError?t:re(re({},t),{},{hasError:!0}),e=t.status===ge||t.status===je?re(re({},e),{},{status:me}):e;break;case be:e=t.hasError?re(re({},t),{},{hasError:!1}):t}return e!==t&&c!==ne&&e.status===fe&&(e.status=me),e},ye=r(150),we=r(396),Ee="add_to_cart_before_processing",_e="add_to_cart_after_processing_with_success",ke="add_to_cart_after_processing_with_error",Pe=function(e){return{onAddToCartAfterProcessingWithSuccess:Object(we.a)(_e,e),onAddToCartProcessingWithError:Object(we.a)(ke,e),onAddToCartBeforeProcessing:Object(we.a)(Ee,e)}},Ce=r(397),Se=Object(n.createContext)({product:{},productType:"simple",productIsPurchasable:!0,productHasOptions:!1,supportsFormElements:!0,showFormElements:!1,quantity:0,minQuantity:1,maxQuantity:99,requestParams:{},isIdle:!1,isDisabled:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,eventRegistration:{onAddToCartAfterProcessingWithSuccess:function(e){},onAddToCartAfterProcessingWithError:function(e){},onAddToCartBeforeProcessing:function(e){}},dispatchActions:{resetForm:function(){},submitForm:function(){},setQuantity:function(e){},setHasError:function(e){},setAfterProcessing:function(e){},setRequestParams:function(e){}}}),Ne=function(){return Object(n.useContext)(Se)},xe=function(e){var t=e.children,r=e.product,c=e.showFormElements,o=Object(n.useReducer)(he,h),i=s()(o,2),f=i[0],y=i[1],w=Object(n.useReducer)(ye.b,{}),E=s()(w,2),_=E[0],k=E[1],P=Object(l.a)(_),C=Object(b.a)(),S=C.addErrorNotice,N=C.removeNotices,x=Object(a.b)().setValidationErrors,D=Object(p.a)(),B=D.isSuccessResponse,z=D.isErrorResponse,R=D.isFailResponse,T=Object(n.useMemo)((function(){return{onAddToCartAfterProcessingWithSuccess:Pe(k).onAddToCartAfterProcessingWithSuccess,onAddToCartAfterProcessingWithError:Pe(k).onAddToCartAfterProcessingWithError,onAddToCartBeforeProcessing:Pe(k).onAddToCartBeforeProcessing}}),[k]),I=Object(n.useMemo)((function(){return{resetForm:function(){y(q())},submitForm:function(){y(W())},setQuantity:function(e){y($(e))},setHasError:function(e){y(K(e))},setRequestParams:function(e){y(J(e))},setAfterProcessing:function(e){y(G(e)),y(X())}}}),[]);Object(n.useEffect)((function(){var e=f.status,t=!r.id||!Object(d.a)(r);e!==O||t?e!==O&&t&&y(Q()):y(U())}),[f.status,r,y]),Object(n.useEffect)((function(){f.status===j&&(N("error"),Object(Ce.a)(P,Ee,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,r=e.validationErrors;t&&S(t),r&&x(r)})),y(U())):y(Y())})))}),[f.status,x,S,N,y,P]),Object(n.useEffect)((function(){if(f.status===v){var e={processingResponse:f.processingResponse},t=function(e){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;S(e.message,t)}};if(f.hasError)return void Object(Ce.b)(P,ke,e).then((function(r){if(z(r)||R(r))t(r);else{var n,c=(null===(n=e.processingResponse)||void 0===n?void 0:n.message)||Object(u.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");S(c,{id:"add-to-cart"})}y(U())}));Object(Ce.b)(P,_e,e).then((function(e){z(e)||R(e)?(t(e),y(K(!0))):y(U())}))}}),[f.status,f.hasError,f.processingResponse,I,S,z,R,B,P]);var L=Object(d.b)(r),A={product:r,productType:r.type||"simple",productIsPurchasable:Object(d.a)(r),productHasOptions:r.has_options||!1,supportsFormElements:L,showFormElements:c&&L,quantity:f.quantity,minQuantity:1,maxQuantity:r.quantity_limit||99,requestParams:f.requestParams,isIdle:f.status===m,isDisabled:f.status===O,isProcessing:f.status===g,isBeforeProcessing:f.status===j,isAfterProcessing:f.status===v,hasError:f.hasError,eventRegistration:T,dispatchActions:I};return Object(n.createElement)(Se.Provider,{value:A},t)},De=r(13),Be=r.n(De),ze=r(134),Re=r(33),Te=r(537);function Ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Le=function(){var e=Ne(),t=e.dispatchActions,r=e.product,c=e.quantity,o=e.eventRegistration,i=e.hasError,l=e.isProcessing,p=e.requestParams,d=Object(a.b)(),f=d.hasValidationErrors,m=d.showAllValidationErrors,O=Object(b.a)(),g=O.addErrorNotice,j=O.removeNotice,v=Object(ze.a)().receiveCart,h=Object(n.useState)(!1),y=s()(h,2),w=y[0],E=y[1],_=!i&&l,k=Object(n.useCallback)((function(){return!f||(m(),{type:"error"})}),[f,m]);Object(n.useEffect)((function(){var e=o.onAddToCartBeforeProcessing(k,0);return function(){e()}}),[o,k]);var P=Object(n.useCallback)((function(){E(!0),j("add-to-cart");var e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach((function(t){ee()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:r.id||0,quantity:c},p);Be()({path:"/wc/store/cart/add-item",method:"POST",data:e,cache:"no-store",parse:!1}).then((function(e){Be.a.setNonce(e.headers),e.json().then((function(r){e.ok?v(r):(r.body&&r.body.message?g(Object(Re.decodeEntities)(r.body.message),{id:"add-to-cart"}):g(Object(u.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block"),{id:"add-to-cart"}),t.setHasError()),t.setAfterProcessing(r),E(!1),Object(Te.c)()}))})).catch((function(e){e.json().then((function(e){var r;(null===(r=e.data)||void 0===r?void 0:r.cart)&&v(e.data.cart),t.setHasError(),t.setAfterProcessing(e),E(!1)}))}))}),[r,g,j,v,t,c,p]);return Object(n.useEffect)((function(){_&&!w&&P()}),[_,P,w]),null},Ae=function(e){var t=e.children,r=e.product,c=e.showFormElements;return Object(n.createElement)(a.a,null,Object(n.createElement)(xe,{product:r,showFormElements:c},t,Object(n.createElement)(Le,null)))},Ve=r(45),Fe=r(6),Me=r(73),He=(r(391),r(99)),qe=r(61),Ue=r(563),Qe=r(842),Ye=function(e){var t=e.className,r=e.href,c=e.text;return Object(n.createElement)(He.a,{className:t,href:r,rel:"nofollow"},c)},We=function(e){var t=e.className,r=e.quantityInCart,c=e.isProcessing,o=e.isDisabled,a=e.isDone,i=e.onClick;return Object(n.createElement)(He.a,{className:t,disabled:o,showSpinner:c,onClick:i},a&&r>0?Object(u.sprintf)(Object(u._n)("%d in cart","%d in cart",r,"woo-gutenberg-products-block"),r):Object(u.__)("Add to cart","woo-gutenberg-products-block"),!!a&&Object(n.createElement)(qe.a,{srcElement:Ue.a,alt:Object(u.__)("Done","woo-gutenberg-products-block")}))},Xe=function(){var e=Ne(),t=e.showFormElements,r=e.productIsPurchasable,c=e.productHasOptions,o=e.product,a=e.productType,i=e.isDisabled,l=e.isProcessing,b=e.eventRegistration,p=e.hasError,d=e.dispatchActions,f=Object(Qe.a)(o.id||0).cartQuantity,m=Object(n.useState)(!1),O=s()(m,2),g=O[0],j=O[1],v=o.add_to_cart||{url:"",text:""};return Object(n.useEffect)((function(){var e=b.onAddToCartAfterProcessingWithSuccess((function(){return p||j(!0),!0}),0);return function(){e()}}),[b,p]),(t||!c&&"simple"===a)&&r?Object(n.createElement)(We,{className:"wc-block-components-product-add-to-cart-button",quantityInCart:f,isDisabled:i,isProcessing:l,isDone:g,onClick:function(){return d.submitForm()}}):Object(n.createElement)(Ye,{className:"wc-block-components-product-add-to-cart-button",href:v.url,text:v.text||Object(u.__)("View Product","woo-gutenberg-products-block")})},Ge=function(e){var t=e.disabled,r=e.min,c=e.max,o=e.value,a=e.onChange;return Object(n.createElement)("input",{className:"wc-block-components-product-add-to-cart-quantity",type:"number",value:o,min:r,max:c,hidden:1===c,disabled:t,onChange:function(e){a(e.target.value)}})},Ke=function(e){var t=e.reason,r=void 0===t?Object(u.__)("Sorry, this product cannot be purchased.","woo-gutenberg-products-block"):t;return Object(n.createElement)("div",{className:"wc-block-components-product-add-to-cart-unavailable"},r)},$e=function(){var e=Ne(),t=e.product,r=e.quantity,c=e.minQuantity,o=e.maxQuantity,a=e.dispatchActions,i=e.isDisabled;return t.id&&!t.is_purchasable?Object(n.createElement)(Ke,null):t.id&&!t.is_in_stock?Object(n.createElement)(Ke,{reason:Object(u.__)("This product is currently out of stock and cannot be purchased.","woo-gutenberg-products-block")}):Object(n.createElement)(n.Fragment,null,Object(n.createElement)(Ge,{value:r,min:c,max:o,disabled:i,onChange:a.setQuantity}),Object(n.createElement)(Xe,null))},Je=(r(562),r(51)),Ze=r.n(Je),et=r(4),tt=r(9),rt=r(233),nt={value:"",label:Object(u.__)("Select an option","woo-gutenberg-products-block")},ct=function(e){var t=e.attributeName,r=e.options,c=void 0===r?[]:r,i=e.value,s=void 0===i?"":i,l=e.onChange,b=void 0===l?function(){}:l,p=e.errorMessage,d=void 0===p?Object(u.__)("Please select a value.","woo-gutenberg-products-block"):p,f=Object(a.b)(),m=f.getValidationError,O=f.setValidationErrors,g=f.clearValidationError,j=t,v=m(j)||{};return Object(tt.useEffect)((function(){s?g(j):O(ee()({},j,{message:d,hidden:!0}))}),[s,j,d,g,O]),Object(tt.useEffect)((function(){return function(){g(j)}}),[j,g]),Object(n.createElement)("div",{className:"wc-block-components-product-add-to-cart-attribute-picker__container"},Object(n.createElement)(et.SelectControl,{label:Object(Re.decodeEntities)(t),value:s||"",options:[nt].concat(Ze()(c)),onChange:b,required:!0,className:o()("wc-block-components-product-add-to-cart-attribute-picker__select",{"has-error":v.message&&!v.hidden})}),Object(n.createElement)(rt.a,{propertyName:j,elementId:j}))};function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){ee()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var it=function(e,t,r){var n=Object.values(t).map((function(e){return e.id}));if(Object.values(r).every((function(e){return""===e})))return n;var c=Object.keys(e);return n.filter((function(e){return c.every((function(n){var c=r[n]||"",o=t["id:"+e].attributes[n];return""===c||(null===o||o===c)}))}))},st=function(e,t,r){var n={},c=Object.keys(e),o=Object.values(r).filter(Boolean).length>0;return c.forEach((function(c){var a=e[c],i=at(at({},r),{},ee()({},c,null)),s=o?it(e,t,i):null,u=null!==s?s.map((function(e){return t["id:"+e].attributes[c]})):null;n[c]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Object.values(e).map((function(e){var r=e.name,n=e.slug;return null===t||t.includes(null)||t.includes(n)?{value:n,label:Object(Re.decodeEntities)(r)}:null})).filter(Boolean)}(a.terms,u)})),n};function ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(r),!0).forEach((function(t){ee()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ut(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bt=function(e){var t=e.attributes,r=e.variationAttributes,c=e.setRequestParams,o=Object(l.a)(t),a=Object(l.a)(r),i=Object(n.useState)(0),u=s()(i,2),b=u[0],p=u[1],d=Object(n.useState)({}),f=s()(d,2),m=f[0],O=f[1],g=Object(n.useMemo)((function(){return st(o,a,m)}),[m,o,a]);return Object(n.useEffect)((function(){Object.values(m).filter((function(e){return""!==e})).length===Object.keys(o).length?p(function(e,t,r){return it(e,t,r)[0]||0}(o,a,m)):b>0&&p(0)}),[m,b,o,a]),Object(n.useEffect)((function(){c({id:b,variation:Object.keys(m).map((function(e){return{attribute:e,value:m[e]}}))})}),[c,b,m]),Object(n.createElement)("div",{className:"wc-block-components-product-add-to-cart-attribute-picker"},Object.keys(o).map((function(e){return Object(n.createElement)(ct,{key:e,attributeName:e,options:g[e],value:m[e],onChange:function(t){O(lt(lt({},m),{},ee()({},e,t)))}})})))},pt=function(e){var t=e.product,r=e.dispatchers,c=function(e){return e?Object(Fe.keyBy)(Object.values(e).filter((function(e){return e.has_variations})),"name"):{}}(t.attributes),o=function(e){if(!e)return{};var t={};return e.forEach((function(e){var r=e.id,n=e.attributes;t["id:".concat(r)]={id:r,attributes:n.reduce((function(e,t){var r=t.name,n=t.value;return e[r]=n,e}),{})}})),t}(t.variations);return 0===Object.keys(c).length||0===o.length?null:Object(n.createElement)(bt,{attributes:c,variationAttributes:o,setRequestParams:r.setRequestParams})},dt=function(){var e=Ne(),t=e.product,r=e.quantity,c=e.minQuantity,o=e.maxQuantity,a=e.dispatchActions,i=e.isDisabled;return t.id&&!t.is_purchasable?Object(n.createElement)(Ke,null):t.id&&!t.is_in_stock?Object(n.createElement)(Ke,{reason:Object(u.__)("This product is currently out of stock and cannot be purchased.","woo-gutenberg-products-block")}):Object(n.createElement)(n.Fragment,null,Object(n.createElement)(pt,{product:t,dispatchers:a}),Object(n.createElement)(Ge,{value:r,min:c,max:o,disabled:i,onChange:a.setQuantity}),Object(n.createElement)(Xe,null))},ft=function(){return Object(n.createElement)(Xe,null)},mt=function(){return Object(n.createElement)(et.Placeholder,{className:"wc-block-components-product-add-to-cart-group-list"},"This is a placeholder for the grouped products form element.")},Ot=function(){return Object(n.createElement)(mt,null)},gt=function(){var e=Ne(),t=e.showFormElements,r=e.productType;return t?"variable"===r?Object(n.createElement)(dt,null):"grouped"===r?Object(n.createElement)(Ot,null):"external"===r?Object(n.createElement)(ft,null):"simple"===r||"variation"===r?Object(n.createElement)($e,null):null:Object(n.createElement)(Xe,null)};t.a=Object(Me.withProductDataContext)((function(e){var t=e.className,r=e.showFormElements,c=Object(Ve.useProductDataContext)().product,a=o()(t,"wc-block-components-product-add-to-cart",{"wc-block-components-product-add-to-cart--placeholder":Object(Fe.isEmpty)(c)});return Object(n.createElement)(Ae,{product:c,showFormElements:r},Object(n.createElement)("div",{className:a},Object(n.createElement)(gt,null)))}))},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t,r){"use strict";r.d(t,"h",(function(){return p})),r.d(t,"e",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"i",(function(){return m})),r.d(t,"f",(function(){return O})),r.d(t,"c",(function(){return g})),r.d(t,"d",(function(){return j})),r.d(t,"g",(function(){return v})),r.d(t,"a",(function(){return h}));var n=r(8),c=r.n(n),o=r(18),a=r(13),i=r.n(a),s=r(6),u=r(5);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=function(e){var t=e.selected,r=void 0===t?[]:t,n=e.search,c=void 0===n?"":n,a=e.queryArgs,l=function(e){var t=e.selected,r=void 0===t?[]:t,n=e.search,c=void 0===n?"":n,a=e.queryArgs,i=void 0===a?[]:a,s={per_page:u.v?100:0,catalog_visibility:"any",search:c,orderby:"title",order:"asc"},l=[Object(o.addQueryArgs)("/wc/store/products",b(b({},s),i))];return u.v&&r.length&&l.push(Object(o.addQueryArgs)("/wc/store/products",{catalog_visibility:"any",include:r})),l}({selected:r,search:c,queryArgs:void 0===a?[]:a});return Promise.all(l.map((function(e){return i()({path:e})}))).then((function(e){return Object(s.uniqBy)(Object(s.flatten)(e),"id").map((function(e){return b(b({},e),{},{parent:0})}))})).catch((function(e){throw e}))},d=function(e){return i()({path:"/wc/store/products/".concat(e)})},f=function(){return i()({path:"wc/store/products/attributes"})},m=function(e){return i()({path:"wc/store/products/attributes/".concat(e,"/terms")})},O=function(e){var t=e.selected,r=function(e){var t=e.selected,r=void 0===t?[]:t,n=e.search,c=[Object(o.addQueryArgs)("wc/store/products/tags",{per_page:u.y?100:0,orderby:u.y?"count":"name",order:u.y?"desc":"asc",search:n})];return u.y&&r.length&&c.push(Object(o.addQueryArgs)("wc/store/products/tags",{include:r})),c}({selected:void 0===t?[]:t,search:e.search});return Promise.all(r.map((function(e){return i()({path:e})}))).then((function(e){return Object(s.uniqBy)(Object(s.flatten)(e),"id")}))},g=function(e){return i()({path:Object(o.addQueryArgs)("wc/store/products/categories",b({per_page:0},e))})},j=function(e){return i()({path:"wc/store/products/categories/".concat(e)})},v=function(e){return i()({path:Object(o.addQueryArgs)("wc/store/products",{per_page:0,type:"variation",parent:e})})},h=function(e,t){if(!e.title.raw)return e.slug;var r=1===t.filter((function(t){return t.title.raw===e.title.raw})).length;return e.title.raw+(r?"":" - ".concat(e.slug))}},400:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),s=r(33),u=r(45),l=r(14),b=r(5),p=function(e){var t=e.color,r=e.fontSize;return Object(b.X)()?{color:t,fontSize:r}:{}},d=r(73);r(552),t.a=Object(d.withProductDataContext)((function(e){var t,r,n,a=e.className,d=e.headingLevel,f=void 0===d?2:d,m=e.productLink,O=void 0===m||m,g=e.align,j=e.color,v=e.customColor,h=e.fontSize,y=e.customFontSize,w=Object(u.useInnerBlockLayoutContext)().parentClassName,E=Object(u.useProductDataContext)().product,_="h".concat(f),k=Object(l.getColorClassName)("color",j),P=Object(l.getFontSizeClass)(h),C=i()((t={"has-text-color":j||v,"has-font-size":h||y},c()(t,k,k),c()(t,P,P),t));if(!E.id)return Object(o.createElement)(_,{className:i()(a,"wc-block-components-product-title",(n={},c()(n,"".concat(w,"__product-title"),w),c()(n,"wc-block-components-product-title--align-".concat(g),g&&Object(b.X)()),c()(n,C,Object(b.X)()),n)),style:p({color:v,fontSize:y})});var S=Object(s.decodeEntities)(E.name);return Object(o.createElement)(_,{className:i()(a,"wc-block-components-product-title",(r={},c()(r,"".concat(w,"__product-title"),w),c()(r,"wc-block-components-product-title--align-".concat(g),g&&Object(b.X)()),r))},O?Object(o.createElement)("a",{href:E.permalink,rel:"nofollow",className:i()(c()({},C,Object(b.X)())),style:p({color:v,fontSize:y})},S):Object(o.createElement)("span",{className:i()(c()({},C,Object(b.X)())),style:p({color:v,fontSize:y})},S))}))},41:function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},43:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},44:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(15),c=r.n(n),o=r(37),a=r.n(o),i=function(){var e=a()(c.a.mark((function e(t){var r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t.json){e.next=11;break}return e.prev=1,e.next=4,t.json();case 4:return r=e.sent,e.abrupt("return",{message:r.message,type:r.type||"api"});case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",{message:e.t0.message,type:"general"});case 11:return e.abrupt("return",{message:t.message,type:t.type||"general"});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()},45:function(e,t){!function(){e.exports=this.wc.wcSharedContext}()},47:function(e,t){!function(){e.exports=this.wp.escapeHtml}()},48:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(9)),i=r(7),s=r.n(i);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.a=function(e){var t,r=e.label,n=e.screenReaderLabel,c=e.wrapperElement,i=e.wrapperProps,u=void 0===i?{}:i,b=null!=r,p=null!=n;return!b&&p?(t=c||"span",u=l(l({},u),{},{className:s()(u.className,"screen-reader-text")}),Object(o.createElement)(t,u,n)):(t=c||a.Fragment,b&&p&&r!==n?Object(o.createElement)(t,u,Object(o.createElement)("span",{"aria-hidden":"true"},r),Object(o.createElement)("span",{className:"screen-reader-text"},n)):Object(o.createElement)(t,u,r))}},49:function(e,t,r){"use strict";var n=r(0),c=r(1),o=(r(2),r(47));t.a=function(e){var t,r,a,i=e.error;return Object(n.createElement)("div",{className:"wc-block-error-message"},(r=(t=i).message,a=t.type,r?"general"===a?Object(n.createElement)("span",null,Object(c.__)("The following error was returned","woo-gutenberg-products-block"),Object(n.createElement)("br",null),Object(n.createElement)("code",null,Object(o.escapeHTML)(r))):"api"===a?Object(n.createElement)("span",null,Object(c.__)("The following error was returned from the API","woo-gutenberg-products-block"),Object(n.createElement)("br",null),Object(n.createElement)("code",null,Object(o.escapeHTML)(r))):r:Object(c.__)("An unknown error occurred which prevented the block from being updated.","woo-gutenberg-products-block")))}},5:function(e,t,r){"use strict";r.d(t,"l",(function(){return c})),r.d(t,"K",(function(){return o})),r.d(t,"Q",(function(){return a})),r.d(t,"A",(function(){return i})),r.d(t,"C",(function(){return s})),r.d(t,"m",(function(){return u})),r.d(t,"B",(function(){return l})),r.d(t,"E",(function(){return b})),r.d(t,"o",(function(){return p})),r.d(t,"D",(function(){return d})),r.d(t,"n",(function(){return f})),r.d(t,"G",(function(){return m})),r.d(t,"v",(function(){return O})),r.d(t,"y",(function(){return g})),r.d(t,"s",(function(){return j})),r.d(t,"t",(function(){return v})),r.d(t,"u",(function(){return h})),r.d(t,"k",(function(){return y})),r.d(t,"M",(function(){return w})),r.d(t,"R",(function(){return E})),r.d(t,"q",(function(){return _})),r.d(t,"r",(function(){return k})),r.d(t,"p",(function(){return P})),r.d(t,"J",(function(){return C})),r.d(t,"c",(function(){return S})),r.d(t,"w",(function(){return N})),r.d(t,"x",(function(){return x})),r.d(t,"U",(function(){return B})),r.d(t,"V",(function(){return z})),r.d(t,"L",(function(){return R})),r.d(t,"a",(function(){return T})),r.d(t,"O",(function(){return I})),r.d(t,"b",(function(){return L})),r.d(t,"N",(function(){return A})),r.d(t,"F",(function(){return V})),r.d(t,"i",(function(){return F})),r.d(t,"P",(function(){return q})),r.d(t,"h",(function(){return U})),r.d(t,"j",(function(){return Q})),r.d(t,"I",(function(){return Y})),r.d(t,"H",(function(){return W})),r.d(t,"T",(function(){return X})),r.d(t,"S",(function(){return G})),r.d(t,"d",(function(){return K})),r.d(t,"e",(function(){return $})),r.d(t,"f",(function(){return J})),r.d(t,"g",(function(){return Z})),r.d(t,"z",(function(){return ee})),r.d(t,"Y",(function(){return re})),r.d(t,"Z",(function(){return ne})),r.d(t,"W",(function(){return ce})),r.d(t,"X",(function(){return oe}));var n=r(3),c=Object(n.getSetting)("currentUserIsAdmin",!1),o=Object(n.getSetting)("reviewRatingsEnabled",!0),a=Object(n.getSetting)("showAvatars",!0),i=Object(n.getSetting)("max_columns",6),s=Object(n.getSetting)("min_columns",1),u=Object(n.getSetting)("default_columns",3),l=Object(n.getSetting)("max_rows",6),b=Object(n.getSetting)("min_rows",1),p=Object(n.getSetting)("default_rows",3),d=Object(n.getSetting)("min_height",500),f=Object(n.getSetting)("default_height",500),m=Object(n.getSetting)("placeholderImgSrc",""),O=(Object(n.getSetting)("thumbnail_size",300),Object(n.getSetting)("isLargeCatalog")),g=Object(n.getSetting)("limitTags"),j=Object(n.getSetting)("hasProducts",!0),v=Object(n.getSetting)("hasTags",!0),h=Object(n.getSetting)("homeUrl",""),y=Object(n.getSetting)("couponsEnabled",!0),w=Object(n.getSetting)("shippingEnabled",!0),E=Object(n.getSetting)("taxesEnabled",!0),_=Object(n.getSetting)("displayItemizedTaxes",!1),k=Object(n.getSetting)("hasDarkEditorStyleSupport",!1),P=(Object(n.getSetting)("displayShopPricesIncludingTax",!1),Object(n.getSetting)("displayCartPricesIncludingTax",!1)),C=Object(n.getSetting)("productCount",0),S=Object(n.getSetting)("attributes",[]),N=Object(n.getSetting)("isShippingCalculatorEnabled",!0),x=Object(n.getSetting)("isShippingCostHidden",!1),D=Object(n.getSetting)("woocommerceBlocksPhase",1),B=Object(n.getSetting)("wcBlocksAssetUrl",""),z=Object(n.getSetting)("wcBlocksBuildUrl",""),R=Object(n.getSetting)("shippingCountries",{}),T=Object(n.getSetting)("allowedCountries",{}),I=Object(n.getSetting)("shippingStates",{}),L=Object(n.getSetting)("allowedStates",{}),A=Object(n.getSetting)("shippingMethodsExist",!1),V=Object(n.getSetting)("paymentGatewaySortOrder",[]),F=Object(n.getSetting)("checkoutShowLoginReminder",!0),M={id:0,title:"",permalink:""},H=Object(n.getSetting)("storePages",{shop:M,cart:M,checkout:M,privacy:M,terms:M}),q=H.shop.permalink,U=H.checkout.id,Q=H.checkout.permalink,Y=H.privacy.permalink,W=H.privacy.title,X=H.terms.permalink,G=H.terms.title,K=H.cart.id,$=H.cart.permalink,J=Object(n.getSetting)("checkoutAllowsGuest",!1),Z=Object(n.getSetting)("checkoutAllowsSignup",!1),ee=Object(n.getSetting)("loginUrl","/wp-login.php"),te=r(17),re=function(e,t){if(D>2)return Object(te.registerBlockType)(e,t)},ne=function(e,t){if(D>1)return Object(te.registerBlockType)(e,t)},ce=function(){return D>2},oe=function(){return D>1}},534:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),s=r(164),u=r(259),l=r(45),b=r(14),p=r(5),d=r(73);t.default=Object(d.withProductDataContext)((function(e){var t,r,n,a,d,f,m,O=e.className,g=e.align,j=e.fontSize,v=e.customFontSize,h=e.saleFontSize,y=e.customSaleFontSize,w=e.color,E=e.customColor,_=e.saleColor,k=e.customSaleColor,P=Object(l.useInnerBlockLayoutContext)().parentClassName,C=Object(l.useProductDataContext)().product,S=i()(O,c()({},"".concat(P,"__product-price"),P));if(!C.id)return Object(o.createElement)(s.a,{align:g,className:S});var N=Object(b.getColorClassName)("color",w),x=Object(b.getFontSizeClass)(j),D=Object(b.getColorClassName)("color",_),B=Object(b.getFontSizeClass)(h),z=i()((t={"has-text-color":w||E,"has-font-size":j||v},c()(t,N,N),c()(t,x,x),t)),R=i()((r={"has-text-color":_||k,"has-font-size":h||y},c()(r,D,D),c()(r,B,B),r)),T={color:E,fontSize:v},I={color:k,fontSize:y},L=C.prices,A=Object(u.c)(L),V=L.price!==L.regular_price,F=V?i()((n={},c()(n,"".concat(P,"__product-price__value"),P),c()(n,R,Object(p.X)()),n)):i()((a={},c()(a,"".concat(P,"__product-price__value"),P),c()(a,z,Object(p.X)()),a)),M=V?I:T;return Object(o.createElement)(s.a,{align:g,className:S,currency:A,price:L.price,priceClassName:F,priceStyle:Object(p.X)()?M:{},minPrice:null==L||null===(d=L.price_range)||void 0===d?void 0:d.min_amount,maxPrice:null==L||null===(f=L.price_range)||void 0===f?void 0:f.max_amount,regularPrice:L.regular_price,regularPriceClassName:i()((m={},c()(m,"".concat(P,"__product-price__regular"),P),c()(m,z,Object(p.X)()),m)),regularPriceStyle:Object(p.X)()?T:{}})}))},535:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(1)),i=r(7),s=r.n(i),u=r(45),l=r(73),b=(r(555),function(e){var t=parseFloat(e.average_rating);return Number.isFinite(t)&&t>0?t:0});t.default=Object(l.withProductDataContext)((function(e){var t=e.className,r=Object(u.useInnerBlockLayoutContext)().parentClassName,n=Object(u.useProductDataContext)().product,i=b(n);if(!i)return null;var l={width:i/5*100+"%"},p=Object(a.sprintf)(Object(a.__)("Rated %f out of 5","woo-gutenberg-products-block"),i);return Object(o.createElement)("div",{className:s()(t,"star-rating","wc-block-components-product-rating",c()({},"".concat(r,"__product-rating"),r))},Object(o.createElement)("div",{className:s()("wc-block-components-product-rating__stars","".concat(r,"__product-rating__stars")),role:"img","aria-label":p},Object(o.createElement)("span",{style:l},p)))}))},536:function(e,t,r){"use strict";r.r(t);var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(0),s=(r(2),r(7)),u=r.n(s),l=r(1),b=r(842),p=r(33),d=r(537),f=r(45),m=r(73),O=(r(556),function(e){var t=e.product,r=Object(i.useRef)(!0),n=t.id,o=t.permalink,a=t.add_to_cart,s=t.has_options,f=t.is_purchasable,m=t.is_in_stock,O=Object(b.a)(n),g=O.cartQuantity,j=O.addingToCart,v=O.addToCart;Object(i.useEffect)((function(){r.current?r.current=!1:Object(d.c)()}),[g]);var h=Number.isFinite(g)&&g>0,y=!s&&f&&m,w=Object(p.decodeEntities)((null==a?void 0:a.description)||""),E=h?Object(l.sprintf)(Object(l._n)("%d in cart","%d in cart",g,"woo-gutenberg-products-block"),g):Object(p.decodeEntities)((null==a?void 0:a.text)||Object(l.__)("Add to cart","woo-gutenberg-products-block")),_=y?"button":"a",k={};return y?k.onClick=function(){v()}:(k.href=o,k.rel="nofollow"),Object(i.createElement)(_,c()({"aria-label":w,className:u()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button",{loading:j,added:h}),disabled:j},k),E)}),g=function(){return Object(i.createElement)("button",{className:u()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button","wc-block-components-product-button__button--placeholder"),disabled:!0})};t.default=Object(m.withProductDataContext)((function(e){var t=e.className,r=Object(f.useInnerBlockLayoutContext)().parentClassName,n=Object(f.useProductDataContext)().product;return Object(i.createElement)("div",{className:u()(t,"wp-block-button","wc-block-components-product-button",a()({},"".concat(r,"__product-add-to-cart"),r))},n.id?Object(i.createElement)(O,{product:n}):Object(i.createElement)(g,null))}))},537:function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return a}));var n=window.Event||null,c=function(e,t){var r=t.bubbles,c=void 0!==r&&r,o=t.cancelable,a=void 0!==o&&o,i=t.element;if(i||(i=document.body),"function"==typeof n){var s=new n(e,{bubbles:c,cancelable:a});i.dispatchEvent(s)}else{var u=document.createEvent("Event");u.initEvent(e,c,a),i.dispatchEvent(u)}},o=function(){c("wc_fragment_refresh",{bubbles:!0,cancelable:!0})},a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"!=typeof jQuery)return function(){};var o=function(){c(t,{bubbles:r,cancelable:n})};return jQuery(document).on(e,o),function(){return jQuery(document).off(e,o)}}},538:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),s=r(177),u=r(3),l=r(45),b=r(73);r(557);t.default=Object(b.withProductDataContext)((function(e){var t=e.className,r=Object(l.useInnerBlockLayoutContext)().parentClassName,n=Object(l.useProductDataContext)().product;if(!n)return Object(o.createElement)("div",{className:i()(t,"wc-block-components-product-summary",c()({},"".concat(r,"__product-summary"),r))});var a=n.short_description?n.short_description:n.description;if(!a)return null;var b=Object(u.getSetting)("wordCountType","words");return Object(o.createElement)(s.a,{className:i()(t,"wc-block-components-product-summary",c()({},"".concat(r,"__product-summary"),r)),source:a,maxLength:150,countType:b})}))},539:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=r(1),i=(r(2),r(7)),s=r.n(i),u=r(45),l=r(73);r(558);t.default=Object(l.withProductDataContext)((function(e){var t=e.className,r=Object(u.useInnerBlockLayoutContext)().parentClassName,n=Object(u.useProductDataContext)().product.sku;return n?Object(o.createElement)("div",{className:s()(t,"wc-block-components-product-sku",c()({},"".concat(r,"__product-sku"),r))},Object(a.__)("SKU:","woo-gutenberg-products-block")," ",Object(o.createElement)("strong",null,n)):null}))},54:function(e,t){!function(){e.exports=this.wp.keycodes}()},540:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=r(1),i=(r(2),r(7)),s=r.n(i),u=r(45),l=r(6),b=r(73);r(559);t.default=Object(b.withProductDataContext)((function(e){var t=e.className,r=Object(u.useInnerBlockLayoutContext)().parentClassName,n=Object(u.useProductDataContext)().product;return Object(l.isEmpty)(n.categories)?null:Object(o.createElement)("div",{className:s()(t,"wc-block-components-product-category-list",c()({},"".concat(r,"__product-category-list"),r))},Object(a.__)("Categories:","woo-gutenberg-products-block")," ",Object(o.createElement)("ul",null,Object.values(n.categories).map((function(e){var t=e.name,r=e.link,n=e.slug;return Object(o.createElement)("li",{key:"category-list-item-".concat(n)},Object(o.createElement)("a",{href:r},t))}))))}))},541:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=r(1),i=(r(2),r(7)),s=r.n(i),u=r(45),l=r(6),b=r(73);r(560);t.default=Object(b.withProductDataContext)((function(e){var t=e.className,r=Object(u.useInnerBlockLayoutContext)().parentClassName,n=Object(u.useProductDataContext)().product;return Object(l.isEmpty)(n.tags)?null:Object(o.createElement)("div",{className:s()(t,"wc-block-components-product-tag-list",c()({},"".concat(r,"__product-tag-list"),r))},Object(a.__)("Tags:","woo-gutenberg-products-block")," ",Object(o.createElement)("ul",null,Object.values(n.tags).map((function(e){var t=e.name,r=e.link,n=e.slug;return Object(o.createElement)("li",{key:"tag-list-item-".concat(n)},Object(o.createElement)("a",{href:r},t))}))))}))},542:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(0),a=r(1),i=(r(2),r(7)),s=r.n(i),u=r(45),l=r(73),b=(r(561),function(e){return Object(a.sprintf)(Object(a.__)("%d left in stock","woo-gutenberg-products-block"),e)}),p=function(e,t){return t?Object(a.__)("Available on backorder","woo-gutenberg-products-block"):e?Object(a.__)("In Stock","woo-gutenberg-products-block"):Object(a.__)("Out of Stock","woo-gutenberg-products-block")};t.default=Object(l.withProductDataContext)((function(e){var t,r=e.className,n=Object(u.useInnerBlockLayoutContext)().parentClassName,a=Object(u.useProductDataContext)().product;if(!a.id||!a.is_purchasable)return null;var i=!!a.is_in_stock,l=a.low_stock_remaining,d=a.is_on_backorder;return Object(o.createElement)("div",{className:s()(r,"wc-block-components-product-stock-indicator",(t={},c()(t,"".concat(n,"__stock-indicator"),n),c()(t,"wc-block-components-product-stock-indicator--in-stock",i),c()(t,"wc-block-components-product-stock-indicator--out-of-stock",!i),c()(t,"wc-block-components-product-stock-indicator--low-stock",!!l),c()(t,"wc-block-components-product-stock-indicator--available-on-backorder",!!d),t))},l?b(l):p(i,d))}))},55:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(27),s=r.n(i),u=r(0),l=r(184),b=r(7),p=r.n(b);r(194);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.a=function(e){var t=e.className,r=e.value,n=e.currency,o=e.onValueChange,a=s()(e,["className","value","currency","onValueChange"]);if("-"===r)return null;var i=r/Math.pow(10,n.minorUnit);if(!Number.isFinite(i))return null;var b=p()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),d=f(f(f({displayType:"text"},a),function(e){return{thousandSeparator:e.thousandSeparator,decimalSeparator:e.decimalSeparator,decimalScale:e.minorUnit,fixedDecimalScale:!0,prefix:e.prefix,suffix:e.suffix,isNumericString:!0}}(n)),{},{value:void 0,currency:void 0,onValueChange:void 0}),m=o?function(e){var t=e.value*Math.pow(10,n.minorUnit);o(t)}:function(){};return Object(u.createElement)(l.a,c()({className:b},d,{value:i,onValueChange:m}))}},552:function(e,t){},553:function(e,t){},554:function(e,t){},555:function(e,t){},556:function(e,t){},557:function(e,t){},558:function(e,t){},559:function(e,t){},56:function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},560:function(e,t){},561:function(e,t){},562:function(e,t){},563:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),Object(n.createElement)("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}));t.a=o},58:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),c=r(43),o=r.n(c),a=function(e){var t=Object(n.useRef)();return o()(e,t.current)||(t.current=e),t.current}},6:function(e,t){!function(){e.exports=this.lodash}()},61:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(27),a=r.n(o),i=r(9);r(2);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.srcElement,r=e.size,n=void 0===r?24:r,o=a()(e,["srcElement","size"]);return Object(i.isValidElement)(t)&&Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({width:n,height:n},o))}},73:function(e,t){!function(){e.exports=this.wc.wcSharedHocs}()},74:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(22),a=r.n(o),i=r(25),s=r.n(i),u=r(19),l=r.n(u),b=r(23),p=r.n(b),d=r(24),f=r.n(d),m=r(12),O=r.n(m),g=r(0),j=r(6),v=r(7),h=r.n(v),y=r(4),w=r(26);r(122);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O()(e);if(t){var c=O()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return f()(this,r)}}var _=function(e){p()(r,e);var t=E(r);function r(){var e;return a()(this,r),(e=t.apply(this,arguments)).onClick=e.onClick.bind(l()(e)),e}return s()(r,[{key:"onClick",value:function(e){this.props.onChange&&this.props.onChange(e.target.value)}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.label,o=r.checked,a=r.instanceId,i=r.className,s=r.help,u=r.options,l=r.value,b="inspector-toggle-button-control-".concat(a);return s&&(e=Object(j.isFunction)(s)?s(o):s),Object(g.createElement)(y.BaseControl,{id:b,help:e,className:h()("components-toggle-button-control",i)},Object(g.createElement)("label",{id:b+"__label",htmlFor:b,className:"components-toggle-button-control__label"},n),Object(g.createElement)(y.ButtonGroup,{"aria-labelledby":b+"__label"},u.map((function(e,r){var o={};return l===e.value?(o.isPrimary=!0,o["aria-pressed"]=!0):(o.isDefault=!0,o["aria-pressed"]=!1),Object(g.createElement)(y.Button,c()({key:"".concat(e.label,"-").concat(e.value,"-").concat(r),value:e.value,onClick:t.onClick,"aria-label":n+": "+e.label},o),e.label)}))))}}]),r}(g.Component);t.a=Object(w.withInstanceId)(_)},75:function(e,t){!function(){e.exports=this.wp.hooks}()},77:function(e,t){!function(){e.exports=this.ReactDOM}()},78:function(e,t){!function(){e.exports=this.wp.dom}()},81:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(6),a=(r(2),r(4)),i=r(5);t.a=function(e){var t=e.columns,r=e.rows,s=e.setAttributes,u=e.alignButtons;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(a.RangeControl,{label:Object(c.__)("Columns","woo-gutenberg-products-block"),value:t,onChange:function(e){var t=Object(o.clamp)(e,i.C,i.A);s({columns:Object(o.isNaN)(t)?"":t})},min:i.C,max:i.A}),Object(n.createElement)(a.RangeControl,{label:Object(c.__)("Rows","woo-gutenberg-products-block"),value:r,onChange:function(e){var t=Object(o.clamp)(e,i.E,i.B);s({rows:Object(o.isNaN)(t)?"":t})},min:i.E,max:i.B}),Object(n.createElement)(a.ToggleControl,{label:Object(c.__)("Align Last Block","woo-gutenberg-products-block"),help:u?Object(c.__)("The last inner block will be aligned vertically.","woo-gutenberg-products-block"):Object(c.__)("The last inner block will follow other content.","woo-gutenberg-products-block"),checked:u,onChange:function(){return s({alignButtons:!u})}}))}},811:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}));t.a=o},818:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM13 20.01L4 11V4h7v-.01l9 9-7 7.02z"}),Object(n.createElement)("circle",{cx:"6.5",cy:"6.5",r:"1.5"}),Object(n.createElement)("path",{d:"M8.9 12.55c0 .57.23 1.07.6 1.45l3.5 3.5 3.5-3.5c.37-.37.6-.89.6-1.45 0-1.13-.92-2.05-2.05-2.05-.57 0-1.08.23-1.45.6l-.6.6-.6-.59c-.37-.38-.89-.61-1.45-.61-1.13 0-2.05.92-2.05 2.05z"}));t.a=o},826:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}));t.a=o},827:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),c=r(5),o=[{id:1,name:"WordPress Pennant",variation:"",permalink:"https://example.org",sku:"wp-pennant",short_description:Object(n.__)("Fly your WordPress banner with this beauty! Deck out your office space or add it to your kids walls. This banner will spruce up any space it’s hung!","woo-gutenberg-products-block"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",price:"7.99",price_html:'<span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>7.99</span>',images:[{id:1,src:c.U+"img/pennant.jpg",thumbnail:c.U+"img/pennant.jpg",name:"pennant-1.jpg",alt:"WordPress Pennant",srcset:"",sizes:""}],average_rating:5,review_count:1,prices:{currency_code:"GBP",decimal_separator:".",thousand_separator:",",decimals:2,price_prefix:"£",price_suffix:"",price:"7.99",regular_price:"9.99",sale_price:"7.99",price_range:null},add_to_cart:{text:Object(n.__)("Add to cart","woo-gutenberg-products-block"),description:Object(n.__)("Add to cart","woo-gutenberg-products-block")},has_options:!1,is_purchasable:!0,is_in_stock:!0,on_sale:!0}]},83:function(e,t){!function(){e.exports=this.wp.viewport}()},832:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}));t.a=o},839:function(e,t,r){e.exports=r(899)},840:function(e,t){},841:function(e,t){},842:function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(11),c=r.n(n),o=r(0),a=r(36),i=r(134),s=r(41),u=r(33),l=r(140),b=function(e,t){var r=e.find((function(e){return e.id===t}));return r?r.quantity:0},p=function(e){var t=Object(a.useDispatch)(s.CART_STORE_KEY).addItemToCart,r=Object(i.a)(),n=r.cartItems,p=r.cartIsLoading,d=Object(l.a)(),f=d.addErrorNotice,m=d.removeNotice,O=Object(o.useState)(!1),g=c()(O,2),j=g[0],v=g[1],h=Object(o.useRef)(b(n,e));return Object(o.useEffect)((function(){var t=b(n,e);t!==h.current&&(h.current=t)}),[n,e]),{cartQuantity:Number.isFinite(h.current)?h.current:0,addingToCart:j,cartIsLoading:p,addToCart:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;v(!0),t(e,r).then((function(e){!0===e&&m("add-to-cart")})).catch((function(e){f(Object(u.decodeEntities)(e.message),{context:"wc/all-products",id:"add-to-cart",isDismissible:!0})})).finally((function(){v(!1)}))}}}},844:function(e,t,r){"use strict";var n=r(0),c=r(57),o=Object(n.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"}));t.a=o},845:function(e,t){},846:function(e,t){},847:function(e,t){},848:function(e,t){},86:function(e,t,r){"use strict";r.d(t,"b",(function(){return f})),r.d(t,"a",(function(){return m}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=r(6),u=r(43),l=r.n(u);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d=Object(i.createContext)({getValidationError:function(){return""},setValidationErrors:function(e){},clearValidationError:function(e){},clearAllValidationErrors:function(){},hideValidationError:function(){},showValidationError:function(){},showAllValidationErrors:function(){},hasValidationErrors:!1,getValidationErrorId:function(e){return e}}),f=function(){return Object(i.useContext)(d)},m=function(e){var t=e.children,r=Object(i.useState)({}),n=a()(r,2),o=n[0],u=n[1],b=Object(i.useCallback)((function(e){return o[e]}),[o]),f=Object(i.useCallback)((function(e){var t=o[e];return!t||t.hidden?"":"validate-error-".concat(e)}),[o]),m=Object(i.useCallback)((function(e){u((function(t){return t[e]?Object(s.omit)(t,[e]):t}))}),[]),O=Object(i.useCallback)((function(){u({})}),[]),g=Object(i.useCallback)((function(e){e&&u((function(t){return e=Object(s.pickBy)(e,(function(e,r){return"string"==typeof e.message&&(!t.hasOwnProperty(r)||!l()(t[r],e))})),0===Object.values(e).length?t:p(p({},t),e)}))}),[]),j=Object(i.useCallback)((function(e,t){u((function(r){if(!r.hasOwnProperty(e))return r;var n=p(p({},r[e]),t);return l()(r[e],n)?r:p(p({},r),{},c()({},e,n))}))}),[]),v={getValidationError:b,setValidationErrors:g,clearValidationError:m,clearAllValidationErrors:O,hideValidationError:Object(i.useCallback)((function(e){j(e,{hidden:!0})}),[j]),showValidationError:Object(i.useCallback)((function(e){j(e,{hidden:!1})}),[j]),showAllValidationErrors:Object(i.useCallback)((function(){u((function(e){var t={};return Object.keys(e).forEach((function(r){e[r].hidden&&(t[r]=p(p({},e[r]),{},{hidden:!1}))})),0===Object.values(t).length?e:p(p({},e),t)}))}),[]),hasValidationErrors:Object.keys(o).length>0,getValidationErrorId:f};return Object(i.createElement)(d.Provider,{value:v},t)}},87:function(e,t){!function(){e.exports=this.wp.a11y}()},899:function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),o=r(10),a=r.n(o),i=r(0),s=r(1),u=r(14),l=r(17),b=r(61),p=r(57),d=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(i.createElement)("path",{d:"M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"})),f=r(5),m=r(7),O=r.n(m),g=function(e){var t=e.attributes;return Object(i.createElement)("div",{className:O()("is-loading",t.className)})},j={category:"woocommerce-product-elements",keywords:[Object(s.__)("WooCommerce","woo-gutenberg-products-block")],icon:{src:Object(i.createElement)(b.a,{srcElement:d}),foreground:"#96588a"},supports:{html:!1},parent:Object(f.W)()?null:["@woocommerce/all-products","@woocommerce/single-product"],save:g,deprecated:[{save:function(){}}]},v=r(392),h=r(4),y=r(26),w=r(152),E=r(400),_=r(11),k=r.n(_),P=r(143),C=r(27),S=r.n(C);r(841);var N=function(e){var t=e.className,r=void 0===t?"":t,n=S()(e,["className"]),c=O()("wc-block-text-toolbar-button",r);return Object(i.createElement)(h.Button,a()({className:c},n))},x=r(45),D=(r(840),function(e){return function(t){return function(r){var n=Object(x.useProductDataContext)(),c=r.attributes,o=r.setAttributes,a=c.productId,l=Object(i.useState)(!a),b=k()(l,2),p=b[0],d=b[1];return n.hasContext?Object(i.createElement)(t,r):Object(i.createElement)(i.Fragment,null,p?Object(i.createElement)(h.Placeholder,{icon:e.icon||"",label:e.label||"",className:"wc-atomic-blocks-product"},!!e.description&&Object(i.createElement)("div",null,e.description),Object(i.createElement)("div",{className:"wc-atomic-blocks-product__selection"},Object(i.createElement)(P.a,{selected:a||0,showVariations:!0,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o({productId:e[0]?e[0].id:0})}}),Object(i.createElement)(h.Button,{isDefault:!0,disabled:!a,onClick:function(){d(!1)}},Object(s.__)("Done","woo-gutenberg-products-block")))):Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(h.Toolbar,null,Object(i.createElement)(N,{onClick:function(){return d(!0)}},Object(s.__)("Switch product…","woo-gutenberg-products-block")))),Object(i.createElement)(t,r)))}}}),B=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),Object(i.createElement)("path",{d:"M17 3H7a2 2 0 00-2 2v16l7-3 7 3V5a2 2 0 00-2-2z"})),z=Object(s.__)("Product Title","woo-gutenberg-products-block"),R=Object(i.createElement)(b.a,{srcElement:B}),T=Object(s.__)("Display the title of a product.","woo-gutenberg-products-block"),I=function(e){var t=e.color,r=e.fontSize,n=e.setFontSize,c=e.setColor,o=e.attributes,a=e.setAttributes,l=o.headingLevel,b=o.productLink,p=o.align;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(w.a,{isCollapsed:!0,minLevel:1,maxLevel:7,selectedLevel:l,onChange:function(e){return a({headingLevel:e})}}),Object(f.X)()&&Object(i.createElement)(u.AlignmentToolbar,{value:p,onChange:function(e){a({align:e})}})),Object(i.createElement)(u.InspectorControls,null,Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Content","woo-gutenberg-products-block")},Object(i.createElement)(h.ToggleControl,{label:Object(s.__)("Link to Product Page","woo-gutenberg-products-block"),help:Object(s.__)("Links the image to the single product listing.","woo-gutenberg-products-block"),checked:b,onChange:function(){return a({productLink:!b})}})),Object(f.X)()&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Text settings","woo-gutenberg-products-block")},Object(i.createElement)(u.FontSizePicker,{value:r.size,onChange:n})),Object(i.createElement)(u.PanelColorSettings,{title:Object(s.__)("Color settings","woo-gutenberg-products-block"),colorSettings:[{value:t.color,onChange:c,label:Object(s.__)("Text color","woo-gutenberg-products-block")}]}))),Object(i.createElement)(h.Disabled,null,Object(i.createElement)(E.a,o)))},L=Object(f.X)()?Object(y.compose)([Object(u.withFontSizes)("fontSize"),Object(u.withColors)("color",{textColor:"color"}),D({icon:R,label:z,description:Object(s.__)("Choose a product to display its title.","woo-gutenberg-products-block")})])(I):I;function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var F={title:z,description:T,icon:{src:R,foreground:"#874FB9"},attributes:v.a,edit:L};Object(l.registerBlockType)("woocommerce/product-title",V(V({},j),F));var M=r(534),H=r(362),q=Object(s.__)("Product Price","woo-gutenberg-products-block"),U=Object(i.createElement)(b.a,{srcElement:H.a}),Q=Object(s.__)("Display the price of a product.","woo-gutenberg-products-block"),Y=function(e){var t=e.fontSize,r=e.setFontSize,n=e.color,c=e.setColor,o=e.colorLabel;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.FontSizePicker,{value:t.size,onChange:r}),Object(i.createElement)(h.BaseControl,{label:o},Object(i.createElement)(u.ColorPalette,{value:n.color,onChange:c,label:Object(s.__)("Color")})))},W=function(e){var t=e.fontSize,r=e.saleFontSize,n=e.setFontSize,c=e.setSaleFontSize,o=e.color,a=e.saleColor,l=e.setColor,b=e.setSaleColor,p=e.attributes,d=e.setAttributes,m=p.align;return Object(i.createElement)(i.Fragment,null,Object(f.X)()&&Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(u.AlignmentToolbar,{value:m,onChange:function(e){d({align:e})}})),Object(i.createElement)(u.InspectorControls,null,Object(f.X)()&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Price","woo-gutenberg-products-block")},Object(i.createElement)(Y,{color:o,setColor:l,fontSize:t,setFontSize:n,colorLabel:Object(s.__)("Color","woo-gutenberg-products-block")})),Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Sale price","woo-gutenberg-products-block")},Object(i.createElement)(Y,{color:a,setColor:b,fontSize:r,setFontSize:c,colorLabel:Object(s.__)("Color","woo-gutenberg-products-block")})))),Object(i.createElement)(M.default,p))},X=Object(f.X)()?Object(y.compose)([Object(u.withFontSizes)("fontSize"),Object(u.withFontSizes)("saleFontSize"),Object(u.withFontSizes)("originalFontSize"),Object(u.withColors)("color",{textColor:"color"}),Object(u.withColors)("saleColor",{textColor:"saleColor"}),Object(u.withColors)("originalColor",{textColor:"originalColor"}),D({icon:U,label:q,description:Object(s.__)("Choose a product to display its price.","woo-gutenberg-products-block")})])(W):W;function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $={productId:{type:"number",default:0}};function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Object(f.X)()&&($=K(K({},$),{},{align:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},saleFontSize:{type:"string"},customSaleFontSize:{type:"number"},color:{type:"string"},saleColor:{type:"string"},customColor:{type:"string"},customSaleColor:{type:"string"}}));var ee={title:q,description:Q,icon:{src:U,foreground:"#874FB9"},attributes:$,edit:X};Object(l.registerBlockType)("woocommerce/product-price",Z(Z({},j),ee));var te=r(393),re=r(192),ne=r(74),ce=r(3),oe=r(394),ae=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(i.createElement)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"})),ie=Object(s.__)("Product Image","woo-gutenberg-products-block"),se=Object(i.createElement)(b.a,{srcElement:ae}),ue=Object(s.__)("Display the main product image","woo-gutenberg-products-block"),le=D({icon:se,label:ie,description:Object(s.__)("Choose a product to display its image.","woo-gutenberg-products-block")})((function(e){var t=e.attributes,r=e.setAttributes,n=t.productLink,c=t.imageSizing,o=t.showSaleBadge,a=t.saleBadgeAlign;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.InspectorControls,null,Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Content","woo-gutenberg-products-block")},Object(i.createElement)(h.ToggleControl,{label:Object(s.__)("Link to Product Page","woo-gutenberg-products-block"),help:Object(s.__)("Links the image to the single product listing.","woo-gutenberg-products-block"),checked:n,onChange:function(){return r({productLink:!n})}}),Object(i.createElement)(h.ToggleControl,{label:Object(s.__)("Show On-Sale Badge","woo-gutenberg-products-block"),help:Object(s.__)('Overlay a "sale" badge if the product is on-sale.',"woo-gutenberg-products-block"),checked:o,onChange:function(){return r({showSaleBadge:!o})}}),o&&Object(i.createElement)(ne.a,{label:Object(s.__)("Sale Badge Alignment","woo-gutenberg-products-block"),value:a,options:[{label:Object(s.__)("Left","woo-gutenberg-products-block"),value:"left"},{label:Object(s.__)("Center","woo-gutenberg-products-block"),value:"center"},{label:Object(s.__)("Right","woo-gutenberg-products-block"),value:"right"}],onChange:function(e){return r({saleBadgeAlign:e})}}),Object(i.createElement)(ne.a,{label:Object(s.__)("Image Sizing","woo-gutenberg-products-block"),help:Object(re.a)(Object(s.__)("Product image cropping can be modified in the <a>Customizer</a>.","woo-gutenberg-products-block"),{a:Object(i.createElement)("a",{href:"".concat(Object(ce.getAdminLink)("customize.php"),"?autofocus[panel]=woocommerce&autofocus[section]=woocommerce_product_images"),target:"_blank",rel:"noopener noreferrer"})}),value:c,options:[{label:Object(s.__)("Full Size","woo-gutenberg-products-block"),value:"full-size"},{label:Object(s.__)("Cropped","woo-gutenberg-products-block"),value:"cropped"}],onChange:function(e){return r({imageSizing:e})}}))),Object(i.createElement)(h.Disabled,null,Object(i.createElement)(oe.a,t)))}));function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var de={title:ie,description:ue,icon:{src:se,foreground:"#874FB9"},attributes:te.a,edit:le};Object(l.registerBlockType)("woocommerce/product-image",pe(pe({},j),de));var fe={productId:{type:"number",default:0}},me=r(535),Oe=r(826),ge=Object(s.__)("Product Rating","woo-gutenberg-products-block"),je=Object(i.createElement)(b.a,{srcElement:Oe.a});function ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ye={title:ge,description:Object(s.__)("Display the average rating of a product.","woo-gutenberg-products-block"),icon:{src:je,foreground:"#874FB9"},attributes:fe,edit:D({icon:je,label:ge,description:Object(s.__)("Choose a product to display its rating.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(me.default,t)}))};Object(l.registerBlockType)("woocommerce/product-rating",he(he({},j),ye));var we={productId:{type:"number",default:0}},Ee=r(536),_e=r(844),ke=Object(s.__)("Add to Cart Button","woo-gutenberg-products-block"),Pe=Object(i.createElement)(b.a,{srcElement:_e.a});function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ne={title:ke,description:Object(s.__)("Display a call to action button which either adds the product to the cart, or links to the product page.","woo-gutenberg-products-block"),icon:{src:Pe,foreground:"#874FB9"},attributes:we,edit:D({icon:Pe,label:ke,description:Object(s.__)("Choose a product to display its add to cart button.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(h.Disabled,null,Object(i.createElement)(Ee.default,t))}))};Object(l.registerBlockType)("woocommerce/product-button",Se(Se({},j),Ne));var xe={productId:{type:"number",default:0}},De=r(538),Be=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(i.createElement)("path",{d:"M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"})),ze=Object(s.__)("Product Summary","woo-gutenberg-products-block"),Re=Object(i.createElement)(b.a,{srcElement:Be});function Te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Le={title:ze,description:Object(s.__)("Display a short description about a product.","woo-gutenberg-products-block"),icon:{src:Re,foreground:"#874FB9"},attributes:xe,edit:D({icon:Re,label:ze,description:Object(s.__)("Choose a product to display its short description.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(De.default,t)}))};Object(l.registerBlockType)("woocommerce/product-summary",Ie(Ie({},j),Le));var Ae={productId:{type:"number",default:0}},Ve=r(267),Fe=r(818),Me=Object(s.__)("On-Sale Badge","woo-gutenberg-products-block"),He=Object(i.createElement)(b.a,{srcElement:Fe.a});function qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Qe={title:Me,description:Object(s.__)("Displays an on-sale badge if the product is on-sale.","woo-gutenberg-products-block"),icon:{src:He,foreground:"#874FB9"},supports:{html:!1},attributes:Ae,edit:D({icon:He,label:Me,description:Object(s.__)("Choose a product to display its sale-badge.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(Ve.default,t)}))};Object(l.registerBlockType)("woocommerce/product-sale-badge",Ue(Ue({},j),Qe));var Ye={productId:{type:"number",default:0}},We=r(135),Xe=r(539),Ge=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{d:"M2 6h2v12H2V6m3 0h1v12H5V6m2 0h3v12H7V6m4 0h1v12h-1V6m3 0h2v12h-2V6m3 0h3v12h-3V6m4 0h1v12h-1V6z"})),Ke=Object(s.__)("Product SKU","woo-gutenberg-products-block"),$e=Object(i.createElement)(b.a,{srcElement:Ge});function Je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var et={title:Ke,description:Object(s.__)("Display the SKU of a product.","woo-gutenberg-products-block"),icon:{src:$e,foreground:"#874FB9"},attributes:Ye,edit:D({icon:$e,label:Ke,description:Object(s.__)("Choose a product to display its SKU.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(We.a,null),Object(i.createElement)(Xe.default,t))}))};Object(f.Y)("woocommerce/product-sku",Ze(Ze({},j),et));var tt={productId:{type:"number",default:0}},rt=r(540),nt=r(811),ct=Object(s.__)("Product Category List","woo-gutenberg-products-block"),ot=Object(i.createElement)(b.a,{srcElement:nt.a});function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?at(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var st={title:ct,description:Object(s.__)("Display a list of categories belonging to a product.","woo-gutenberg-products-block"),icon:{src:ot,foreground:"#874FB9"},attributes:tt,edit:D({icon:ot,label:ct,description:Object(s.__)("Choose a product to display its categories.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(We.a,null),Object(i.createElement)(h.Disabled,null,Object(i.createElement)(rt.default,t)))}))};Object(f.Y)("woocommerce/product-category-list",it(it({},j),st));var ut={productId:{type:"number",default:0}},lt=r(541),bt=Object(s.__)("Product Tag List","woo-gutenberg-products-block"),pt=Object(i.createElement)(b.a,{srcElement:Fe.a});function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var mt={title:bt,description:Object(s.__)("Display a list of tags belonging to a product.","woo-gutenberg-products-block"),icon:{src:pt,foreground:"#874FB9"},attributes:ut,edit:D({icon:pt,label:bt,description:Object(s.__)("Choose a product to display its tags.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(We.a,null),Object(i.createElement)(h.Disabled,null,Object(i.createElement)(lt.default,t)))}))};Object(f.Y)("woocommerce/product-tag-list",ft(ft({},j),mt));var Ot={productId:{type:"number",default:0}},gt=r(542),jt=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("g",{fillRule:"evenodd"},Object(i.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}),Object(i.createElement)("path",{fillRule:"nonzero",d:"M20.5 5.2l-1.4-1.7C19 3.3 18.5 3 18 3H6c-.5 0-.9.2-1.2.5L3.5 5.3A2 2 0 003 6.5V19c0 1.1.9 2 2 2h14a2 2 0 002-2V6.5c0-.5-.2-1-.5-1.3zM6.2 5h11.6l.8 1H5.4l.8-1zM5 19V8h14v11H5z"}))),vt=Object(s.__)("Product Stock Indicator","woo-gutenberg-products-block"),ht=Object(i.createElement)(b.a,{srcElement:jt});function yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Et={title:vt,description:Object(s.__)("Display product stock status.","woo-gutenberg-products-block"),icon:{src:ht,foreground:"#874FB9"},attributes:Ot,edit:D({icon:ht,label:vt,description:Object(s.__)("Choose a product to display its stock.","woo-gutenberg-products-block")})((function(e){var t=e.attributes;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(We.a,null),Object(i.createElement)(gt.default,t))}))};Object(f.Y)("woocommerce/product-stock-indicator",wt(wt({},j),Et));var _t=r(929),kt=(r(391),r(399)),Pt=Object(s.__)("Add to Cart","woo-gutenberg-products-block"),Ct=Object(i.createElement)(b.a,{srcElement:_e.a});function St(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?St(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xt={title:Pt,description:Object(s.__)("Displays an add to cart button. Optionally displays other add to cart form elements.","woo-gutenberg-products-block"),icon:{src:Ct,foreground:"#874FB9"},edit:D({icon:Ct,label:Pt,description:Object(s.__)("Choose a product to display its add to cart form.","woo-gutenberg-products-block")})((function(e){var t=e.attributes,r=e.setAttributes,n=Object(x.useProductDataContext)().product,c=t.className,o=t.showFormElements;return Object(i.createElement)("div",{className:O()(c,"wc-block-components-product-add-to-cart")},Object(i.createElement)(We.a,{productId:n.id}),Object(i.createElement)(u.InspectorControls,null,Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Layout","woo-gutenberg-products-block")},Object(_t.b)(n)?Object(i.createElement)(h.ToggleControl,{label:Object(s.__)("Display form elements","woo-gutenberg-products-block"),help:Object(s.__)("Depending on product type, allow customers to select a quantity, variations etc.","woo-gutenberg-products-block"),checked:o,onChange:function(){return r({showFormElements:!o})}}):Object(i.createElement)(h.Notice,{className:"wc-block-components-product-add-to-cart-notice",isDismissible:!1,status:"info"},Object(s.__)("This product does not support the block based add to cart form. A link to the product page will be shown instead.","woo-gutenberg-products-block")))),Object(i.createElement)(h.Disabled,null,Object(i.createElement)(kt.a,t)))})),attributes:r(398).a};Object(f.Y)("woocommerce/product-add-to-cart",Nt(Nt({},j),xt));var Dt=r(22),Bt=r.n(Dt),zt=r(19),Rt=r.n(zt),Tt=r(23),It=r.n(Tt),Lt=r(24),At=r.n(Lt),Vt=r(12),Ft=r.n(Vt),Mt=r(36),Ht=(r(2),r(81)),qt=r(927),Ut=r(827),Qt=r(167),Yt=function(e,t){var r=t.className,n=t.contentVisibility;return O()(e,r,{"has-image":n&&n.image,"has-title":n&&n.title,"has-rating":n&&n.rating,"has-price":n&&n.price,"has-button":n&&n.button})},Wt=function(e,t){return Object(i.createElement)(h.Placeholder,{className:"wc-block-products",icon:t,label:e},Object(i.createElement)("p",null,Object(s.__)("You haven't published any products to list here yet.","woo-gutenberg-products-block")),Object(i.createElement)(h.Button,{className:"wc-block-products__add-product-button",isDefault:!0,isLarge:!0,href:ce.ADMIN_URL+"post-new.php?post_type=product"},Object(s.__)("Add new product","woo-gutenberg-products-block")+" ",Object(i.createElement)(b.a,{srcElement:Qt.a})),Object(i.createElement)(h.Button,{className:"wc-block-products__read_more_button",isTertiary:!0,href:"https://docs.woocommerce.com/document/managing-products/"},Object(s.__)("Learn more","woo-gutenberg-products-block")))},Xt=function(e,t){return Object(i.createElement)(h.Placeholder,{className:"wc-block-products",icon:t,label:e},Object(s.__)("The content for this block is hidden due to block settings.","woo-gutenberg-products-block"))};function Gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $t=[["woocommerce/product-image"],["woocommerce/product-title"],["woocommerce/product-price"],["woocommerce/product-rating"],["woocommerce/product-button"]],Jt=function e(t){return t&&0!==t.length?t.map((function(t){return[t.name,Kt(Kt({},t.attributes),{},{product:void 0,children:t.innerBlocks.length>0?e(t.innerBlocks):[]})]})):[]};r(845);function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var tr=function(e,t){var r=e.contentVisibility;return Object(i.createElement)(h.ToggleControl,{label:Object(s.__)("Show Sorting Dropdown","woo-gutenberg-products-block"),checked:r.orderBy,onChange:function(){return t({contentVisibility:er(er({},r),{},{orderBy:!r.orderBy})})}})},rr=function(e,t){return Object(i.createElement)(h.SelectControl,{label:Object(s.__)("Order Products By","woo-gutenberg-products-block"),value:e.orderby,options:[{label:Object(s.__)("Default sorting (menu order)","woo-gutenberg-products-block"),value:"menu_order"},{label:Object(s.__)("Popularity","woo-gutenberg-products-block"),value:"popularity"},{label:Object(s.__)("Average rating","woo-gutenberg-products-block"),value:"rating"},{label:Object(s.__)("Latest","woo-gutenberg-products-block"),value:"date"},{label:Object(s.__)("Price: low to high","woo-gutenberg-products-block"),value:"price"},{label:Object(s.__)("Price: high to low","woo-gutenberg-products-block"),value:"price-desc"}],onChange:function(e){return t({orderby:e})}})},nr=r(25),cr=r.n(nr),or=r(9),ar=r(6),ir=r(48),sr=(r(848),function(e){var t=e.currentPage,r=e.displayFirstAndLastPages,n=e.displayNextAndPreviousArrows,c=e.pagesToDisplay,o=e.onPageChange,a=e.totalPages,u=function(e,t,r){if(r<=2)return{minIndex:null,maxIndex:null};var n=e-1,c=Math.max(Math.floor(t-n/2),2),o=Math.min(Math.ceil(t+(n-(t-c))),r-1);return{minIndex:Math.max(Math.floor(t-(n-(o-t))),2),maxIndex:o}}(c,t,a),l=u.minIndex,b=u.maxIndex,p=r&&Boolean(1!==l),d=r&&Boolean(b!==a),f=r&&Boolean(l>3),m=r&&Boolean(b<a-2);p&&3===l&&(l-=1),d&&b===a-2&&(b+=1);var g=[];if(l&&b)for(var j=l;j<=b;j++)g.push(j);return Object(i.createElement)("div",{className:"wc-block-pagination wc-block-components-pagination"},Object(i.createElement)(ir.a,{screenReaderLabel:Object(s.__)("Navigate to another page","woo-gutenberg-products-block")}),n&&Object(i.createElement)("button",{className:"wc-block-pagination-page wc-block-components-pagination__page",onClick:function(){return o(t-1)},title:Object(s.__)("Previous page","woo-gutenberg-products-block"),disabled:t<=1},Object(i.createElement)(ir.a,{label:"<",screenReaderLabel:Object(s.__)("Previous page","woo-gutenberg-products-block")})),p&&Object(i.createElement)("button",{className:O()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":1===t,"wc-block-components-pagination__page--active":1===t}),onClick:function(){return o(1)},disabled:1===t},Object(i.createElement)(ir.a,{label:1,screenReaderLabel:Object(s.sprintf)(Object(s.__)("Page %d","woo-gutenberg-products-block"),1)})),f&&Object(i.createElement)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true"},Object(s.__)("…","woo-gutenberg-products-block")),g.map((function(e){return Object(i.createElement)("button",{key:e,className:O()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":t===e,"wc-block-components-pagination__page--active":t===e}),onClick:t===e?null:function(){return o(e)},disabled:t===e},Object(i.createElement)(ir.a,{label:e,screenReaderLabel:Object(s.sprintf)(Object(s.__)("Page %d","woo-gutenberg-products-block"),e)}))})),m&&Object(i.createElement)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true"},Object(s.__)("…","woo-gutenberg-products-block")),d&&Object(i.createElement)("button",{className:O()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":t===a,"wc-block-components-pagination__page--active":t===a}),onClick:function(){return o(a)},disabled:t===a},Object(i.createElement)(ir.a,{label:a,screenReaderLabel:Object(s.sprintf)(Object(s.__)("Page %d","woo-gutenberg-products-block"),a)})),n&&Object(i.createElement)("button",{className:"wc-block-pagination-page wc-block-components-pagination__page",onClick:function(){return o(t+1)},title:Object(s.__)("Next page","woo-gutenberg-products-block"),disabled:t>=a},Object(i.createElement)(ir.a,{label:">",screenReaderLabel:Object(s.__)("Next page","woo-gutenberg-products-block")})))});sr.defaultProps={displayFirstAndLastPages:!0,displayNextAndPreviousArrows:!0,pagesToDisplay:3};var ur=sr,lr=r(149),br=(r(847),function(e){var t=e.defaultValue,r=e.onChange,n=e.readOnly,c=e.value;return Object(i.createElement)(lr.a,{className:"wc-block-product-sort-select wc-block-components-product-sort-select",defaultValue:t,name:"orderby",onChange:r,options:[{key:"menu_order",label:Object(s.__)("Default sorting","woo-gutenberg-products-block")},{key:"popularity",label:Object(s.__)("Popularity","woo-gutenberg-products-block")},{key:"rating",label:Object(s.__)("Average rating","woo-gutenberg-products-block")},{key:"date",label:Object(s.__)("Latest","woo-gutenberg-products-block")},{key:"price",label:Object(s.__)("Price: low to high","woo-gutenberg-products-block")},{key:"price-desc",label:Object(s.__)("Price: high to low","woo-gutenberg-products-block")}],readOnly:n,screenReaderLabel:Object(s.__)("Order products by","woo-gutenberg-products-block"),value:c})}),pr=r(193),dr=Object(pr.a)((function(e){var t=e.product,r=e.attributes,n=e.instanceId,c=r.layoutConfig,o=Object(x.useInnerBlockLayoutContext)(),s=o.parentClassName,u=o.parentName,l=0===Object.keys(t).length,b=O()("".concat(s,"__product"),"wc-block-layout",{"is-loading":l});return Object(i.createElement)("li",{className:b,"aria-hidden":l},function e(t,r,n,c){if(n){var o=Object(qt.a)(t);return n.map((function(n,s){var u=k()(n,2),l=u[0],b=u[1],p=void 0===b?{}:b,d=[];p.children&&p.children.length>0&&(d=e(t,r,p.children,c));var f=o[l];if(!f)return null;var m=r.id||0,O=["layout",l,s,c,m];return Object(i.createElement)(i.Suspense,{key:O.join("_"),fallback:Object(i.createElement)("div",{className:"wc-block-placeholder"})},Object(i.createElement)(f,a()({},p,{children:d,product:r})))}))}}(u,t,c,n))})),fr=r(172),mr=r(207),Or=r(41),gr=r(58);function jr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var hr=function(e){var t={namespace:"/wc/store",resourceName:"products"},r=Object(mr.a)(vr(vr({},t),{},{query:e})),n=r.results,c=r.isLoading,o=function(e,t){var r=t.namespace,n=t.resourceName,c=t.resourceValues,o=void 0===c?[]:c,a=t.query,i=void 0===a?{}:a;if(!r||!n)throw new Error("The options object must have valid values for the namespace and the resource name properties.");var s=Object(gr.a)(i),u=Object(gr.a)(o),l=Object(Mt.useSelect)((function(t){var c=t(Or.COLLECTIONS_STORE_KEY),o=[e,r,n,s,u];return{value:c.getCollectionHeader.apply(c,o),isLoading:c.hasFinishedResolution("getCollectionHeader",o)}}),[e,r,n,u,s]),b=l.value,p=l.isLoading;return{value:b,isLoading:void 0===p||p}}("x-wp-total",vr(vr({},t),{},{query:e})).value;return{products:n,totalProducts:parseInt(o,10),productsLoading:c}},yr=r(168),wr=r(185),Er=r(87),_r=(r(846),r(144)),kr=function(){var e=Object(x.useInnerBlockLayoutContext)().parentClassName;return Object(i.createElement)("div",{className:"".concat(e,"__no-products")},Object(i.createElement)(b.a,{className:"".concat(e,"__no-products-image"),alt:"",srcElement:_r.a,size:100}),Object(i.createElement)("strong",{className:"".concat(e,"__no-products-title")},Object(s.__)("No products","woo-gutenberg-products-block")),Object(i.createElement)("p",{className:"".concat(e,"__no-products-description")},Object(s.__)("There are currently no products available to display.","woo-gutenberg-products-block")))},Pr=r(832),Cr=function(e){var t=e.resetCallback,r=void 0===t?function(){}:t,n=Object(x.useInnerBlockLayoutContext)().parentClassName;return Object(i.createElement)("div",{className:"".concat(n,"__no-products")},Object(i.createElement)(b.a,{className:"".concat(n,"__no-products-image"),alt:"",srcElement:Pr.a,size:100}),Object(i.createElement)("strong",{className:"".concat(n,"__no-products-title")},Object(s.__)("No products found","woo-gutenberg-products-block")),Object(i.createElement)("p",{className:"".concat(n,"__no-products-description")},Object(s.__)("We were unable to find any results based on your search.","woo-gutenberg-products-block")),Object(i.createElement)("button",{onClick:r},Object(s.__)("Reset Search","woo-gutenberg-products-block")))};function Sr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xr=function(e){var t=e.totalQuery,r=e.totalProducts,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=n.totalQuery;return!Object(ar.isEqual)(t,c)&&Number.isFinite(r)},Dr=Object(wr.a)((function(e){var t=e.attributes,r=e.currentPage,n=e.onPageChange,c=e.onSortChange,o=e.sortValue,a=e.scrollToTop,u=Object(fr.c)(function(e){var t=e.sortValue,r=e.currentPage,n=e.attributes,c=n.columns,o=n.rows;return Nr(Nr({},function(e){switch(e){case"menu_order":case"popularity":case"rating":case"price":return{orderby:e,order:"asc"};case"price-desc":return{orderby:"price",order:"desc"};case"date":return{orderby:"date",order:"desc"}}}(t)),{},{catalog_visibility:"catalog",per_page:c*o,page:r})}({attributes:t,sortValue:o,currentPage:r})),l=k()(u,1)[0],b=hr(l),p=b.products,d=b.totalProducts,f=b.productsLoading,m=Object(x.useInnerBlockLayoutContext)().parentClassName,g=function(e){e.order,e.orderby,e.page,e.per_page;return S()(e,["order","orderby","page","per_page"])||{}}(l),j=Object(fr.b)("attributes",[]),v=k()(j,2),h=v[0],y=v[1],w=Object(fr.b)("min_price"),E=k()(w,2),_=E[0],P=E[1],C=Object(fr.b)("max_price"),N=k()(C,2),D=N[0],B=N[1],z=Object(yr.a)({totalQuery:g,totalProducts:d},xr);Object(i.useEffect)((function(){Object(ar.isEqual)(g,null==z?void 0:z.totalQuery)||(n(1),(null==z?void 0:z.totalQuery)&&function(e){Number.isFinite(e)&&(0===e?Object(Er.speak)(Object(s.__)("No products found","woo-gutenberg-products-block")):Object(Er.speak)(Object(s.sprintf)(Object(s._n)("%d product found","%d products found",e,"woo-gutenberg-products-block"),e)))}(d))}),[null==z?void 0:z.totalQuery,d,n,g]);var R,T,I,L,A,V=t.contentVisibility,F=t.columns*t.rows,M=!Number.isFinite(d)&&Number.isFinite(null==z?void 0:z.totalProducts)&&Object(ar.isEqual)(g,null==z?void 0:z.totalQuery)?Math.ceil(z.totalProducts/F):Math.ceil(d/F),H=p.length?p:Array.from({length:F}),q=0!==p.length||f,U=h.length>0||Number.isFinite(_)||Number.isFinite(D);return Object(i.createElement)("div",{className:(R=t.columns,T=t.rows,I=t.alignButtons,L=t.align,A=void 0!==L?"align"+L:"",O()(m,A,"has-"+R+"-columns",{"has-multiple-rows":T>1,"has-aligned-buttons":I}))},V.orderBy&&q&&Object(i.createElement)(br,{onChange:c,value:o}),!q&&U&&Object(i.createElement)(Cr,{resetCallback:function(){y([]),P(null),B(null)}}),!q&&!U&&Object(i.createElement)(kr,null),q&&Object(i.createElement)("ul",{className:"".concat(m,"__products")},H.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return Object(i.createElement)(dr,{key:e.id||r,attributes:t,product:e})}))),M>1&&Object(i.createElement)(ur,{currentPage:r,onPageChange:function(e){a({focusableSelector:"a, button"}),n(e)},totalPages:M}))})),Br=function(e){var t=e.attributes,r=Object(i.useState)(1),n=k()(r,2),c=n[0],o=n[1],a=Object(i.useState)(t.orderby),s=k()(a,2),u=s[0],l=s[1];Object(i.useEffect)((function(){l(t.orderby)}),[t.orderby]);return Object(i.createElement)(Dr,{attributes:t,currentPage:c,onPageChange:function(e){o(e)},onSortChange:function(e){var t=e.target.value;l(t),o(1)},sortValue:u})},zr=r(176);function Rr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ft()(e);if(t){var c=Ft()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return At()(this,r)}}var Tr=function(e){It()(r,e);var t=Rr(r);function r(){return Bt()(this,r),t.apply(this,arguments)}return cr()(r,[{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.urlParameterSuffix;return t.isPreview?zr.a:Object(i.createElement)(x.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},Object(i.createElement)(Br,{attributes:t,urlParameterSuffix:r}))}}]),r}(or.Component);function Ir(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ft()(e);if(t){var c=Ft()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return At()(this,r)}}var Lr=function(e){It()(r,e);var t=Ir(r);function r(){var e;Bt()(this,r);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),c()(Rt()(e),"state",{isEditing:!1,innerBlocks:[]}),c()(Rt()(e),"blockMap",Object(qt.a)("woocommerce/all-products")),c()(Rt()(e),"componentDidMount",(function(){var t=e.props.block;e.setState({innerBlocks:t.innerBlocks})})),c()(Rt()(e),"getTitle",(function(){return Object(s.__)("All Products","woo-gutenberg-products-block")})),c()(Rt()(e),"getIcon",(function(){return Object(i.createElement)(b.a,{srcElement:d})})),c()(Rt()(e),"togglePreview",(function(){var t=e.props.debouncedSpeak;e.setState({isEditing:!e.state.isEditing}),e.state.isEditing||t(Object(s.__)("Showing All Products block preview.","woo-gutenberg-products-block"))})),c()(Rt()(e),"getInspectorControls",(function(){var t=e.props,r=t.attributes,n=t.setAttributes,c=r.columns,o=r.rows,a=r.alignButtons;return Object(i.createElement)(u.InspectorControls,{key:"inspector"},Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Layout Settings","woo-gutenberg-products-block"),initialOpen:!0},Object(i.createElement)(Ht.a,{columns:c,rows:o,alignButtons:a,setAttributes:n})),Object(i.createElement)(h.PanelBody,{title:Object(s.__)("Content Settings","woo-gutenberg-products-block")},tr(r,n),rr(r,n)))})),c()(Rt()(e),"getBlockControls",(function(){var t=e.state.isEditing;return Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(h.Toolbar,{controls:[{icon:"edit",title:Object(s.__)("Edit","woo-gutenberg-products-block"),onClick:function(){return e.togglePreview()},isActive:t}]}))})),c()(Rt()(e),"renderEditMode",(function(){var t={template:e.props.attributes.layoutConfig,templateLock:!1,allowedBlocks:Object.keys(e.blockMap)};return 0!==e.props.attributes.layoutConfig.length&&(t.renderAppender=!1),Object(i.createElement)(h.Placeholder,{icon:e.getIcon(),label:e.getTitle()},Object(s.__)("Display all products from your store as a grid.","woo-gutenberg-products-block"),Object(i.createElement)("div",{className:"wc-block-all-products-grid-item-template"},Object(i.createElement)(h.Tip,null,Object(s.__)("Edit the blocks inside the preview below to change the content displayed for each product within the product grid.","woo-gutenberg-products-block")),Object(i.createElement)(x.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},Object(i.createElement)("div",{className:"wc-block-grid wc-block-layout has-1-columns"},Object(i.createElement)("ul",{className:"wc-block-grid__products"},Object(i.createElement)("li",{className:"wc-block-grid__product"},Object(i.createElement)(x.ProductDataContextProvider,{product:Ut.a[0]},Object(i.createElement)(u.InnerBlocks,t)))))),Object(i.createElement)("div",{className:"wc-block-all-products__actions"},Object(i.createElement)(h.Button,{className:"wc-block-all-products__done-button",isPrimary:!0,isLarge:!0,onClick:function(){var t=e.props,r=t.block;(0,t.setAttributes)({layoutConfig:Jt(r.innerBlocks)}),e.setState({innerBlocks:r.innerBlocks}),e.togglePreview()}},Object(s.__)("Done","woo-gutenberg-products-block")),Object(i.createElement)(h.Button,{className:"wc-block-all-products__cancel-button",isTertiary:!0,onClick:function(){var t=e.props,r=t.block,n=t.replaceInnerBlocks,c=e.state.innerBlocks;n(r.clientId,c,!1),e.togglePreview()}},Object(s.__)("Cancel","woo-gutenberg-products-block")),Object(i.createElement)(h.IconButton,{className:"wc-block-all-products__reset-button",icon:Object(i.createElement)(b.a,{srcElement:d}),label:Object(s.__)("Reset layout to default","woo-gutenberg-products-block"),onClick:function(){var t=e.props,r=t.block,n=t.replaceInnerBlocks,c=[];$t.map((function(e){var t=k()(e,2),r=t[0],n=t[1];return c.push(Object(l.createBlock)(r,n)),!0})),n(r.clientId,c,!1),e.setState({innerBlocks:r.innerBlocks})}},Object(s.__)("Reset Layout","woo-gutenberg-products-block")))))})),c()(Rt()(e),"renderViewMode",(function(){var t=e.props.attributes,r=t.layoutConfig,n=r&&0!==r.length,c=e.getTitle(),o=e.getIcon();return n?Object(i.createElement)(h.Disabled,null,Object(i.createElement)(Tr,{attributes:t})):Xt(c,o)})),c()(Rt()(e),"render",(function(){var t=e.props.attributes,r=e.state.isEditing,n=e.getTitle(),c=e.getIcon();return f.s?Object(i.createElement)("div",{className:Yt("wc-block-all-products",t)},e.getBlockControls(),e.getInspectorControls(),r?e.renderEditMode():e.renderViewMode()):Wt(n,c)})),e}return r}(i.Component),Ar=Object(y.compose)(h.withSpokenMessages,Object(Mt.withSelect)((function(e,t){var r=t.clientId;return{block:(0,e("core/block-editor").getBlock)(r)}})),Object(Mt.withDispatch)((function(e){return{replaceInnerBlocks:e("core/block-editor").replaceInnerBlocks}})))(Lr),Vr={columns:f.m,rows:f.o,alignButtons:!1,contentVisibility:{orderBy:!0},orderby:"date",layoutConfig:$t,isPreview:!1};function Fr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Hr={title:Object(s.__)("All Products","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:d}),foreground:"#96588a"},category:"woocommerce",keywords:[Object(s.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(s.__)("Display products from your store in a grid layout.","woo-gutenberg-products-block"),supports:{align:["wide","full"],html:!1,multiple:!1},example:{attributes:{isPreview:!0}},attributes:{columns:{type:"number"},rows:{type:"number"},alignButtons:{type:"boolean"},contentVisibility:{type:"object"},orderby:{type:"string"},layoutConfig:{type:"array"},isPreview:{type:"boolean",default:!1}},defaults:Vr,edit:function(e){return Object(i.createElement)(Ar,e)},save:function(e){var t=e.attributes,r={};Object.keys(t).sort().forEach((function(e){r[e]=t[e]}));var n={"data-attributes":JSON.stringify(r)};return Object(i.createElement)("div",a()({className:Yt("wc-block-all-products",t)},n),Object(i.createElement)(u.InnerBlocks.Content,null))}};Object(l.registerBlockType)("woocommerce/all-products",Mr(Mr({},Hr),{},{deprecated:[{attributes:Object.assign({},Hr.attributes,{rows:{type:"number",default:1}}),save:function(e){var t=e.attributes,r={"data-attributes":JSON.stringify(t)};return Object(i.createElement)("div",a()({className:Yt("wc-block-all-products",t)},r),Object(i.createElement)(u.InnerBlocks.Content,null))}}]}))},9:function(e,t){!function(){e.exports=this.React}()},927:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(56),c=r(0),o=r(5);r.p=o.V,Object(n.registerBlockComponent)({blockName:"woocommerce/product-price",component:Object(c.lazy)((function(){return Promise.all([r.e(0),r.e(11)]).then(r.bind(null,534))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-image",component:Object(c.lazy)((function(){return Promise.all([r.e(1),r.e(3),r.e(10)]).then(r.bind(null,947))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-title",component:Object(c.lazy)((function(){return Promise.all([r.e(1),r.e(17)]).then(r.bind(null,948))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-rating",component:Object(c.lazy)((function(){return r.e(12).then(r.bind(null,535))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-button",component:Object(c.lazy)((function(){return Promise.all([r.e(0),r.e(2),r.e(8)]).then(r.bind(null,536))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-summary",component:Object(c.lazy)((function(){return r.e(15).then(r.bind(null,538))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-sale-badge",component:Object(c.lazy)((function(){return r.e(3).then(r.bind(null,267))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-sku",component:Object(c.lazy)((function(){return r.e(13).then(r.bind(null,539))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-category-list",component:Object(c.lazy)((function(){return r.e(9).then(r.bind(null,540))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-tag-list",component:Object(c.lazy)((function(){return r.e(16).then(r.bind(null,541))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-stock-indicator",component:Object(c.lazy)((function(){return r.e(14).then(r.bind(null,542))}))}),Object(n.registerBlockComponent)({blockName:"woocommerce/product-add-to-cart",component:Object(c.lazy)((function(){return Promise.all([r.e(0),r.e(1),r.e(2),r.e(7)]).then(r.bind(null,949))}))});var a=function(e){return Object(n.getRegisteredBlockComponents)(e)}},929:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return c}));var n=function(e){return e.is_purchasable||!1},c=function(e){return["simple","variable"].includes(e.type||"simple")}},94:function(e,t){!function(){e.exports=this.wp.date}()},95:function(e,t){!function(){e.exports=this.wp.autop}()},99:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(27),a=r.n(o),i=r(0),s=r(280),u=(r(2),r(7)),l=r.n(u);r(239);t.a=function(e){var t=e.className,r=e.showSpinner,n=void 0!==r&&r,o=e.children,u=a()(e,["className","showSpinner","children"]),b=l()("wc-block-components-button",t,{"wc-block-components-button--loading":n});return Object(i.createElement)(s.a,c()({className:b},u),n&&Object(i.createElement)("span",{className:"wc-block-components-button__spinner","aria-hidden":"true"}),Object(i.createElement)("span",{className:"wc-block-components-button__text"},o))}}});
build/atomic-block-components/{add-to-cart~atomic-block-components → add-to-cart--atomic-block-components}/button.js RENAMED
File without changes
build/atomic-block-components/{add-to-cart~atomic-block-components/image~atomic-block-components → add-to-cart--atomic-block-components/image--atomic-block-components}/title.js RENAMED
File without changes
build/attribute-filter-frontend.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-settings', 'wp-a11y', 'wp-blocks', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => '9226577280fbac8a364e234ed16a8255');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-settings', 'wp-a11y', 'wp-blocks', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => '3d8334570d6660f1fa85891f25db1c9f');
build/cart-frontend.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wp-a11y', 'wp-autop', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-wordcount'), 'version' => '47fea1c07fce8574cb621adc75811e8c');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wp-a11y', 'wp-autop', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-wordcount'), 'version' => '4a672ffda88a8efcaf6c9e1e26b035a6');
build/cart-frontend.js CHANGED
@@ -3,7 +3,7 @@
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t,n){"use strict";n.d(t,"j",(function(){return o})),n.d(t,"w",(function(){return c})),n.d(t,"A",(function(){return a})),n.d(t,"t",(function(){return i})),n.d(t,"n",(function(){return s})),n.d(t,"q",(function(){return u})),n.d(t,"i",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"k",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"o",(function(){return g})),n.d(t,"p",(function(){return h})),n.d(t,"E",(function(){return y})),n.d(t,"F",(function(){return O})),n.d(t,"x",(function(){return E})),n.d(t,"a",(function(){return j})),n.d(t,"y",(function(){return w})),n.d(t,"b",(function(){return _})),n.d(t,"s",(function(){return k})),n.d(t,"g",(function(){return S})),n.d(t,"z",(function(){return C})),n.d(t,"h",(function(){return x})),n.d(t,"v",(function(){return N})),n.d(t,"u",(function(){return I})),n.d(t,"D",(function(){return T})),n.d(t,"C",(function(){return M})),n.d(t,"d",(function(){return A})),n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return L})),n.d(t,"r",(function(){return F})),n.d(t,"G",(function(){return V}));var r=n(3),o=Object(r.getSetting)("currentUserIsAdmin",!1),c=Object(r.getSetting)("reviewRatingsEnabled",!0),a=Object(r.getSetting)("showAvatars",!0),i=(Object(r.getSetting)("max_columns",6),Object(r.getSetting)("min_columns",1),Object(r.getSetting)("default_columns",3),Object(r.getSetting)("max_rows",6),Object(r.getSetting)("min_rows",1),Object(r.getSetting)("default_rows",3),Object(r.getSetting)("min_height",500),Object(r.getSetting)("default_height",500),Object(r.getSetting)("placeholderImgSrc","")),s=(Object(r.getSetting)("thumbnail_size",300),Object(r.getSetting)("isLargeCatalog")),u=Object(r.getSetting)("limitTags"),l=(Object(r.getSetting)("hasProducts",!0),Object(r.getSetting)("hasTags",!0),Object(r.getSetting)("homeUrl",""),Object(r.getSetting)("couponsEnabled",!0)),p=(Object(r.getSetting)("shippingEnabled",!0),Object(r.getSetting)("taxesEnabled",!0)),d=Object(r.getSetting)("displayItemizedTaxes",!1),f=Object(r.getSetting)("hasDarkEditorStyleSupport",!1),m=(Object(r.getSetting)("displayShopPricesIncludingTax",!1),Object(r.getSetting)("displayCartPricesIncludingTax",!1)),b=(Object(r.getSetting)("productCount",0),Object(r.getSetting)("attributes",[])),g=Object(r.getSetting)("isShippingCalculatorEnabled",!0),h=Object(r.getSetting)("isShippingCostHidden",!1),v=Object(r.getSetting)("woocommerceBlocksPhase",1),y=Object(r.getSetting)("wcBlocksAssetUrl",""),O=Object(r.getSetting)("wcBlocksBuildUrl",""),E=Object(r.getSetting)("shippingCountries",{}),j=Object(r.getSetting)("allowedCountries",{}),w=Object(r.getSetting)("shippingStates",{}),_=Object(r.getSetting)("allowedStates",{}),k=(Object(r.getSetting)("shippingMethodsExist",!1),Object(r.getSetting)("paymentGatewaySortOrder",[])),S=Object(r.getSetting)("checkoutShowLoginReminder",!0),R={id:0,title:"",permalink:""},P=Object(r.getSetting)("storePages",{shop:R,cart:R,checkout:R,privacy:R,terms:R}),C=P.shop.permalink,x=(P.checkout.id,P.checkout.permalink),N=P.privacy.permalink,I=P.privacy.title,T=P.terms.permalink,M=P.terms.title,A=(P.cart.id,P.cart.permalink),D=Object(r.getSetting)("checkoutAllowsGuest",!1),L=Object(r.getSetting)("checkoutAllowsSignup",!1),F=Object(r.getSetting)("loginUrl","/wp-login.php"),V=(n(39),function(){return v>1})},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(71),o=n(72),c=n(54),a=n(73);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||a()}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(56);e.exports=function(e,t){if(null==e)return{};var n,o,c=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},,function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(40);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Object(r.a)(e,t,n[t])}))}return e}},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(53);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(26);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(60);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(25),o=n(18);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){"use strict";var r=n(6),o=n.n(r),c=(n(4),n(2)),a=n(5),i=n.n(a);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t,n=e.label,r=e.screenReaderLabel,o=e.wrapperElement,a=e.wrapperProps,s=void 0===a?{}:a,l=null!=n,p=null!=r;return!l&&p?(t=o||"span",s=u(u({},s),{},{className:i()(s.className,"screen-reader-text")}),React.createElement(t,s,r)):(t=o||c.Fragment,l&&p&&n!==r?React.createElement(t,s,React.createElement("span",{"aria-hidden":"true"},n),React.createElement("span",{className:"screen-reader-text"},r)):React.createElement(t,s,n))}},function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(27),c=n.n(o),a=function(e){var t=Object(r.useRef)();return c()(e,t.current)||(t.current=e),t.current}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(46);var o=n(53);function c(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(6),a=n.n(c),i=n(14),s=n.n(i),u=n(101),l=n(5),p=n.n(l);n(123);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.className,n=e.value,r=e.currency,c=e.onValueChange,a=s()(e,["className","value","currency","onValueChange"]);if("-"===n)return null;var i=n/Math.pow(10,r.minorUnit);if(!Number.isFinite(i))return null;var l=p()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),d=f(f(f({displayType:"text"},a),function(e){return{thousandSeparator:e.thousandSeparator,decimalSeparator:e.decimalSeparator,decimalScale:e.minorUnit,fixedDecimalScale:!0,prefix:e.prefix,suffix:e.suffix,isNumericString:!0}}(r)),{},{value:void 0,currency:void 0,onValueChange:void 0}),m=c?function(e){var t=e.value*Math.pow(10,r.minorUnit);c(t)}:function(){};return React.createElement(u.a,o()({className:l},d,{value:i,onValueChange:m}))}},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n(4);var r=n(5),o=n.n(r),c=n(0),a=n(38);n(164);t.a=function(e){var t=e.className,n=e.currency,r=e.label,i=e.value,s=e.description;return React.createElement("div",{className:o()("wc-block-components-totals-item",t)},React.createElement("span",{className:"wc-block-components-totals-item__label"},r),Object(c.isValidElement)(i)?React.createElement("div",{className:"wc-block-components-totals-item__value"},i):React.createElement(a.a,{className:"wc-block-components-totals-item__value",currency:n,displayType:"text",value:i}),React.createElement("div",{className:"wc-block-components-totals-item__description"},s))}},function(e,t,n){var r=n(91),o=n(92),c=n(54),a=n(93);e.exports=function(e){return r(e)||o(e)||c(e)||a()}},,function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){"use strict";var r=n(30),o=n.n(r),c=n(31),a=n.n(c),i=n(18),s=n.n(i),u=n(32),l=n.n(u),p=n(33),d=n.n(p),f=n(20),m=n.n(f),b=n(6),g=n.n(b),h=(n(4),n(2)),v=n(1),y=n(8),O=function(e){var t=e.imageUrl,n=void 0===t?"".concat(y.E,"img/block-error.svg"):t,r=e.header,o=void 0===r?Object(v.__)("Oops!","woo-gutenberg-products-block"):r,c=e.text,a=void 0===c?Object(v.__)("There was an error loading the content.","woo-gutenberg-products-block"):c,i=e.errorMessage,s=e.errorMessagePrefix,u=void 0===s?Object(v.__)("Error:","woo-gutenberg-products-block"):s;return React.createElement("div",{className:"wc-block-error wc-block-components-error"},n&&React.createElement("img",{className:"wc-block-error__image wc-block-components-error__image",src:n,alt:""}),React.createElement("div",{className:"wc-block-error__content wc-block-components-error__content"},o&&React.createElement("p",{className:"wc-block-error__header wc-block-components-error__header"},o),a&&React.createElement("p",{className:"wc-block-error__text wc-block-components-error__text"},a),i&&React.createElement("p",{className:"wc-block-error__message wc-block-components-error__message"},u?u+" ":"",i)))};n(63);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d()(this,n)}}var j=function(e){l()(n,e);var t=E(n);function n(){var e;o()(this,n);for(var r=arguments.length,c=new Array(r),a=0;a<r;a++)c[a]=arguments[a];return e=t.call.apply(t,[this].concat(c)),g()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.header,n=e.imageUrl,r=e.showErrorMessage,o=e.text,c=e.errorMessagePrefix,a=this.state,i=a.errorMessage;return a.hasError?React.createElement(O,{errorMessage:r?i:null,header:t,imageUrl:n,text:o,errorMessagePrefix:c}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:React.createElement(h.Fragment,null,React.createElement("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}}]),n}(h.Component);j.defaultProps={showErrorMessage:!0};t.a=j},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.dom}()},,function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(22),o=n(7),c=n(0),a=function(e){var t=Object(r.a)({},e,{role:"img","aria-hidden":"true",focusable:"false"});return Object(c.createElement)("svg",Object(o.omit)(t,"__unstableActive"))}},function(e,t){function n(e,t,n,r,o,c,a){try{var i=e[c](a),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var a=e.apply(t,r);function i(e){n(a,o,c,i,s,"next",e)}function s(e){n(a,o,c,i,s,"throw",e)}i(void 0)}))}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(46);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){var r=n(55);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=n(0),s=n(7),u=n(27),l=n.n(u);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=Object(i.createContext)({getValidationError:function(){return""},setValidationErrors:function(e){},clearValidationError:function(e){},clearAllValidationErrors:function(){},hideValidationError:function(){},showValidationError:function(){},showAllValidationErrors:function(){},hasValidationErrors:!1,getValidationErrorId:function(e){return e}}),m=function(){return Object(i.useContext)(f)},b=function(e){var t=e.children,n=Object(i.useState)({}),r=a()(n,2),c=r[0],u=r[1],p=Object(i.useCallback)((function(e){return c[e]}),[c]),m=Object(i.useCallback)((function(e){var t=c[e];return!t||t.hidden?"":"validate-error-".concat(e)}),[c]),b=Object(i.useCallback)((function(e){u((function(t){return t[e]?Object(s.omit)(t,[e]):t}))}),[]),g=Object(i.useCallback)((function(){u({})}),[]),h=Object(i.useCallback)((function(e){e&&u((function(t){return e=Object(s.pickBy)(e,(function(e,n){return"string"==typeof e.message&&(!t.hasOwnProperty(n)||!l()(t[n],e))})),0===Object.values(e).length?t:d(d({},t),e)}))}),[]),v=Object(i.useCallback)((function(e,t){u((function(n){if(!n.hasOwnProperty(e))return n;var r=d(d({},n[e]),t);return l()(n[e],r)?n:d(d({},n),{},o()({},e,r))}))}),[]),y={getValidationError:p,setValidationErrors:h,clearValidationError:b,clearAllValidationErrors:g,hideValidationError:Object(i.useCallback)((function(e){v(e,{hidden:!0})}),[v]),showValidationError:Object(i.useCallback)((function(e){v(e,{hidden:!1})}),[v]),showAllValidationErrors:Object(i.useCallback)((function(){u((function(e){var t={};return Object.keys(e).forEach((function(n){e[n].hidden&&(t[n]=d(d({},e[n]),{},{hidden:!1}))})),0===Object.values(t).length?e:d(d({},e),t)}))}),[]),hasValidationErrors:Object.keys(c).length>0,getValidationErrorId:m};return React.createElement(f.Provider,{value:y},t)}},,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(62);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,a){if(a!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){},function(e,t,n){"use strict";var r=n(10),o=n.n(r),c=n(2),a=(n(4),n(5)),i=n.n(a),s=n(0),u=n(34),l=(n(135),Object(c.forwardRef)((function(e,t){var n=e.className,r=e.id,c=e.type,a=void 0===c?"text":c,l=e.ariaLabel,p=e.ariaDescribedBy,d=e.label,f=e.screenReaderLabel,m=e.disabled,b=e.help,g=e.autoCapitalize,h=void 0===g?"off":g,v=e.autoComplete,y=void 0===v?"off":v,O=e.value,E=void 0===O?"":O,j=e.onChange,w=e.required,_=void 0!==w&&w,k=e.onBlur,S=void 0===k?function(){}:k,R=e.feedback,P=Object(s.useState)(!1),C=o()(P,2),x=C[0],N=C[1];return React.createElement("div",{className:i()("wc-block-components-text-input",n,{"is-active":x||E})},React.createElement("input",{type:a,id:r,value:E,ref:t,autoCapitalize:h,autoComplete:y,onChange:function(e){j(e.target.value)},onFocus:function(){return N(!0)},onBlur:function(){S(),N(!1)},"aria-label":l||d,disabled:m,"aria-describedby":b&&!p?r+"__help":p,required:_}),React.createElement(u.a,{label:d,screenReaderLabel:f||d,wrapperElement:"label",wrapperProps:{htmlFor:r},htmlFor:r}),!!b&&React.createElement("p",{id:r+"__help",className:"wc-block-components-text-input__help"},b),R)})));t.a=l},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1),o=(n(4),n(5)),c=n.n(o),a=n(0);function i(){return Object(a.createElement)("span",{className:"components-spinner"})}n(158),t.a=function(e){var t=e.children,n=e.className,o=e.screenReaderLabel,a=e.showSpinner,s=void 0!==a&&a,u=e.isLoading;return void 0===u||u?React.createElement("div",{className:c()(n,"wc-block-components-loading-mask")},s&&React.createElement(i,null),React.createElement("div",{className:"wc-block-components-loading-mask__children","aria-hidden":!0},t),React.createElement("span",{className:"screen-reader-text"},o||Object(r.__)("Loading…","woo-gutenberg-products-block"))):t}},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(11)),c=r(n(56)),a=n(2),i=r(a),s=r(n(110)),u=r(n(18)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function p(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function d(e,t){return l.und(e)||l.nul(e)?t:e}function f(e){return l.und(e)?[]:l.arr(e)?e:[e]}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.fun(e)?e.apply(void 0,n):e}function b(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(l.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var c;return l.und(t[r])?o({},n,((c={})[r]=e[r],c)):n}),{});return o({to:t},n)}var g,h,v=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.addChild(u(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(u(t))}))},t}return s(t,e),t}(v),O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.addChild(u(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(u(t))}))},t}s(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof v)&&(t[n]=r instanceof v?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(v);function E(e,t){g={fn:e,transform:t}}function j(e){h=e}var w,_=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},k=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){w=e}var R,P=function(){return Date.now()};function C(e){R=e}var x,N,I=function(e){return e.current};function T(e){x=e}var M=Object.freeze({get applyAnimatedValues(){return g},injectApplyAnimatedValues:E,get colorNames(){return h},injectColorNames:j,get requestFrame(){return _},get cancelFrame(){return k},injectFrame:function(e,t){_=e,k=t},get interpolation(){return w},injectStringInterpolator:S,get now(){return P},injectNow:function(e){P=e},get defaultElement(){return R},injectDefaultElement:C,get animatedApi(){return I},injectAnimatedApi:function(e){I=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:T,get manualFrameloop(){return N},injectManualFrameloop:function(e){N=e}}),A=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:x(t.style)}):t,r.update=n,r.attach(),r}return s(t,e),t}(O),D=!1,L=new Set,F=function e(){if(!D)return!1;var t=P(),n=L,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var c;if(r){if(o>=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var a=c,i=!1,s=0;s<a.configs.length;s++){for(var u=a.configs[s],l=void 0,p=void 0,d=0;d<u.animatedValues.length;d++){var f=u.animatedValues[d];if(!f.done){var m=u.fromValues[d],b=u.toValues[d],g=f.lastPosition,h=b instanceof v,y=Array.isArray(u.initialVelocity)?u.initialVelocity[d]:u.initialVelocity;if(h&&(b=b.getValue()),u.immediate)f.setValue(b),f.done=!0;else if("string"!=typeof m&&"string"!=typeof b){if(void 0!==u.duration)g=m+u.easing((t-f.startTime)/u.duration)*(b-m),l=t>=f.startTime+u.duration;else if(u.decay)g=m+y/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(l=Math.abs(f.lastPosition-g)<.1)&&(b=g);else{p=void 0!==f.lastTime?f.lastTime:t,y=void 0!==f.lastVelocity?f.lastVelocity:u.initialVelocity,t>p+64&&(p=t);for(var O=Math.floor(t-p),E=0;E<O;++E){g+=1*(y+=1*((-u.tension*(g-b)+-u.friction*y)/u.mass)/1e3)/1e3}var j=!(!u.clamp||0===u.tension)&&(m<b?g>b:g<b),w=Math.abs(y)<=u.precision,k=0===u.tension||Math.abs(b-g)<=u.precision;l=j||w&&k,f.lastVelocity=y,f.lastTime=t}h&&!u.toValues[d].done&&(l=!1),l?(f.value!==b&&(g=b),f.done=!0):i=!0,f.setValue(g),f.lastPosition=g}else f.setValue(b),f.done=!0}}a.props.onFrame&&(a.values[u.name]=u.interpolation.getValue())}a.props.onFrame&&a.props.onFrame(a.values),i||(L.delete(a),a.stop(!0))}return L.size?N?N():_(e):D=!1,D};function V(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return V({range:e,output:t,extrapolate:n});if(w&&"string"==typeof e.output[0])return w(e);var r=e,o=r.output,c=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",i=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,a,i,s){var u=s?s(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===i)return u;"clamp"===i&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=c(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,c[t],c[t+1],o[t],o[t+1],s,a,i,r.map)}}var B=function(e){function t(n,r,o,c){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof y&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=V(r,o,c),a}s(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=V(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(y);var U=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}s(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(v),H=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new U(e)})),n}s(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(y),q=0,z=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=q++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=b(e),n=t.delay,r=void 0===n?0:n,a=t.to,i=c(t,["delay","to"]);if(l.arr(a)||l.fun(a))this.queue.push(o({},i,{delay:r,to:a}));else if(a){var s={};Object.entries(a).forEach((function(e){var t,n=e[0],c=e[1],a=o({to:(t={},t[n]=c,t),delay:m(r,n)},i),u=s[a.delay]&&s[a.delay].to;s[a.delay]=o({},s[a.delay],a,{to:o({},u,a.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(i),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,c=e.to,a=void 0===c?{}:c;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var i=t.delay,s=c(t,["delay"]),u=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},p=l.arr(s.to)||l.fun(s.to);i?setTimeout((function(){r===n.guid&&(p?n.runAsync(s,u):n.diff(s).start(u))}),i):p?n.runAsync(s,u):n.diff(s).start(u)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,L.has(t)||L.add(t),D||(D=!0,_(N||F));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,L.has(t)&&L.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),a=this.local,i=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,c=o({},r,b(r.to[t]));l.arr(c.config)&&(c.config=c.config[t]),i=i.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},u=0;u<r.to.length;u++)s(u);else if(l.fun(r.to)){var p,d=0;i=i.then((function(){return r.to((function(e){var t=o({},r,b(e));if(l.arr(t.config)&&(t.config=t.config[d]),d++,a===n.guid)return p=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return p}))}))}i.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,c=void 0===r?{}:r,a=n.to,i=void 0===a?{}:a,s=n.config,u=void 0===s?{}:s,p=n.reverse,b=n.attach,g=n.reset,v=n.immediate;if(p){var y=[i,c];c=y[0],i=y[1]}this.merged=o({},c,this.merged,i),this.hasChanged=!1;var O=b&&b(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],a=n[1],i=e[r]||{},s=l.num(a),p=l.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!h[a],b=l.arr(a),y=!s&&!b&&!p,E=l.und(c[r])?a:c[r],j=s||b||p?a:1,_=m(u,r);O&&(j=O.animations[r].parent);var k,S=i.parent,R=i.interpolation,C=f(O?j.getPayload():j),x=a;y&&(x=w({range:[0,1],output:[a,a]})(1));var N,I=R&&R.getValue(),T=!l.und(S)&&i.animatedValues.some((function(e){return!e.done})),M=!l.equ(x,I),A=!l.equ(x,i.previous),D=!l.equ(_,i.config);if(g||A&&M||D){var L;if(s||p)S=R=i.parent||new U(E);else if(b)S=R=i.parent||new H(E);else if(y){var F=i.interpolation&&i.interpolation.calc(i.parent.value);F=void 0===F||g?E:F,i.parent?(S=i.parent).setValue(0,!1):S=new U(0);var V={output:[F,a]};i.interpolation?(R=i.interpolation,i.interpolation.updateConfig(V)):R=S.interpolate(V)}return C=f(O?j.getPayload():j),k=f(S.getPayload()),g&&!y&&S.setValue(E,!1),t.hasChanged=!0,k.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=T?e.lastVelocity:void 0,e.lastTime=T?e.lastTime:void 0,e.startTime=P(),e.done=!1,e.animatedStyles.clear()})),m(v,r)&&S.setValue(y?j:a,!1),o({},e,((L={})[r]=o({},i,{name:r,parent:S,interpolation:R,animatedValues:k,toValues:C,previous:x,config:_,fromValues:f(S.getValue()),immediate:m(v,r),initialVelocity:d(_.velocity,0),clamp:d(_.clamp,!1),precision:d(_.precision,.01),tension:d(_.tension,170),friction:d(_.friction,26),mass:d(_.mass,1),duration:_.duration,easing:d(_.easing,(function(e){return e})),decay:_.decay}),L))}return M?e:(y&&(S.setValue(1,!1),R.updateConfig({output:[x,x]})),S.done=!0,t.hasChanged=!0,o({},e,((N={})[r]=o({},e[r],{previous:x}),N)))}),this.animations),this.hasChanged)for(var E in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[E]=this.animations[E].interpolation,this.values[E]=this.animations[E].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),W=function(e,t){var n=a.useRef(!1),r=a.useRef(),o=l.fun(t),c=a.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var c=new z,a=o?m(t,r,c):t[r];return 0===r&&(n=a.ref),c.update(a),n||c.start(),c})),n]}),[e]),i=c[0],s=c[1];r.current=i;a.useImperativeHandle(s,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var u=a.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?m(e,n,t):e[n]),s||t.start()}))}}),[e]);a.useEffect((function(){n.current?o||u(t):s||r.current.forEach((function(e){return e.start()}))})),a.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var p=r.current.map((function(e){return e.getValues()}));return o?[p,u,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:p},K=0,Y=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},G=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,a=c(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:Y(t,r)},a)};function $(e,t){var n=function(){if(o){if(c>=r.length)return"break";a=r[c++]}else{if((c=r.next()).done)return"break";a=c.value}var n=a.key,i=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(i),e.current.deleted=e.current.deleted.filter(i))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var Q=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=g.transform(t)),n.payload=t,n}return s(t,e),t}(O),X={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Z="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(Z,Z,Z)),te=new RegExp("rgba"+J(Z,Z,Z,Z)),ne=new RegExp("hsl"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,ie=/^#([0-9a-fA-F]{8})$/;function se(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=se(o,r,e+1/3),a=se(o,r,e),i=se(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*a)<<16|Math.round(255*i)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function pe(e){return(parseFloat(e)%360+360)%360/360}function de(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:X.hasOwnProperty(t)?X[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|de(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ie.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|ue(pe(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(ue(pe(n[1]),fe(n[2]),fe(n[3]))|de(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var be=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ge=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,he=new RegExp("("+Object.keys(X).join("|")+")","g"),ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}ve=Object.keys(ve).reduce((function(e,t){return ye.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ve);var Ee={};T((function(e){return new Q(e)})),C("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ge,me)})).map((function(e){return e.replace(he,me)})),n=t[0].match(be).map((function(){return[]}));t.forEach((function(e){e.match(be).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(be).map((function(t,r){return V(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(be,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),j(X),E((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,i=c(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),p=Oe(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,p):e.style[u]=p}for(var d in i){var f=s?d:Ee[d]||(Ee[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,i[d])}}),(function(e){return e}));var je,we,_e=(je=function(e){return a.forwardRef((function(t,n){var r=p(),s=a.useRef(!0),u=a.useRef(null),d=a.useRef(null),f=a.useCallback((function(e){var t=u.current;u.current=new A(e,(function(){var e=!1;d.current&&(e=g.fn(d.current,u.current.getAnimatedValue())),d.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return I(d,s,r)})),f(t);var m,b=u.current.getValue(),h=(b.scrollTop,b.scrollLeft,c(b,["scrollTop","scrollLeft"])),v=(m=e,!l.fun(m)||m.prototype instanceof i.Component?function(e){return d.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return i.createElement(e,o({},h,{ref:v}))}))},void 0===(we=!1)&&(we=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=we?t[0].toLowerCase()+t.substring(1):t;return e[n]=je(n),e}),je)}),ke=_e(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=_e,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=F,t.animated=ke,t.a=ke,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=M,t.useSpring=function(e){var t=l.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=a.useRef(!1),r=l.fun(t),c=m(t),i=a.useRef(),s=W(e,(function(e,t){return 0===e&&(i.current=[]),i.current.push(t),o({},c,{config:m(c.config,e),attach:e>0&&function(){return i.current[e-1]}})})),u=s[0],p=s[1],d=s[2],f=a.useMemo((function(){return function(e){return p((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=i.current[r];return o({},e,{config:m(e.config||c.config,t),attach:a&&function(){return a}})}))}}),[e,c.reverse]);return a.useEffect((function(){n.current&&!r&&f(t)})),a.useEffect((function(){n.current=!0}),[]),r?[u,f,d]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),i=G(r),s=i.lazy,u=void 0!==s&&s,l=(i.unique,i.reset),d=void 0!==l&&l,f=(i.enter,i.leave,i.update,i.onDestroyed),b=(i.keys,i.items,i.onFrame),g=i.onRest,h=i.onStart,v=i.ref,y=c(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=p(),E=a.useRef(!1),j=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!E.current&&new Map,forceUpdate:O});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(j.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(j.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(j.current.instances).map((function(e){return e[1]}))}}})),j.current=function(e,t){var n=e.first,r=e.prevProps,a=c(e,["first","prevProps"]),i=G(t),s=i.items,u=i.keys,l=i.initial,p=i.from,d=i.enter,f=i.leave,b=i.update,g=i.trail,h=void 0===g?0:g,v=i.unique,y=i.config,O=i.order,E=void 0===O?["enter","leave","update"]:O,j=G(r),w=j.keys,_=j.items,k=o({},a.current),S=[].concat(a.deleted),R=Object.keys(k),P=new Set(R),C=new Set(u),x=u.filter((function(e){return!P.has(e)})),N=a.transitions.filter((function(e){return!e.destroyed&&!C.has(e.originalKey)})).map((function(e){return e.originalKey})),I=u.filter((function(e){return P.has(e)})),T=-h;for(;E.length;){switch(E.shift()){case"enter":x.forEach((function(e,t){v&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),o=s[r],c=n&&void 0!==l?"initial":"enter";k[e]={slot:c,originalKey:e,key:v?String(e):K++,item:o,trail:T+=h,config:m(y,o,c),from:m(n&&void 0!==l?l||{}:p,o),to:m(d,o)}}));break;case"leave":N.forEach((function(e){var t=w.indexOf(e),n=_[t];S.unshift(o({},k[e],{slot:"leave",destroyed:!0,left:w[Math.max(0,t-1)],right:w[Math.min(w.length,t+1)],trail:T+=h,config:m(y,n,"leave"),to:m(f,n)})),delete k[e]}));break;case"update":I.forEach((function(e){var t=u.indexOf(e),n=s[t];k[e]=o({},k[e],{item:n,slot:"update",trail:T+=h,config:m(y,n,"update"),to:m(b,n)})}))}}var M=u.map((function(e){return k[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=M.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),M=[].concat(M.slice(0,t),[r],M.slice(t))})),o({},a,{changed:x.length||N.length||I.length,first:n&&0===x.length,transitions:M,current:k,deleted:S,prevProps:t})}(j.current,r),j.current.changed&&j.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,a=e.trail,i=e.key,s=e.item;j.current.instances.has(i)||j.current.instances.set(i,new z);var l=j.current.instances.get(i),p=o({},y,{to:r,from:n,config:c,ref:v,onRest:function(n){j.current.mounted&&(e.destroyed&&(v||u||$(j,i),f&&f(s)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(v||u)&&j.current.deleted.length>0&&$(j),g&&g(s,t,n))},onStart:h&&function(){return h(s,t)},onFrame:b&&function(e){return b(s,t,e)},delay:a,reset:d&&"enter"===t});l.update(p),j.current.paused||l.start()})),a.useEffect((function(){return j.current.mounted=E.current=!0,function(){j.current.mounted=E.current=!1,Array.from(j.current.instances).map((function(e){return e[1].destroy()})),j.current.instances.clear()}}),[]),j.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:j.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var a=c.controllers;if(a.length){var i=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+i})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(14),a=n.n(c),i=n(50),s=function(e){var t=e.className,n=e.size,r=void 0===n?20:n,c=a()(e,["className","size"]);return React.createElement(i.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:r,height:r},c),React.createElement("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},u=React.createElement(s,null),l=n(126),p=n(0);t.a=function(e){let t;switch(e.icon){case"arrow-down-alt2":t=u;break;case"no-alt":t=l.a}return t?Object(p.cloneElement)(t,{size:e.size||20,className:e.className}):null}},,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(14),a=n.n(c),i=n(76),s=(n(4),n(5)),u=n.n(s);n(152);t.a=function(e){var t=e.className,n=e.showSpinner,r=void 0!==n&&n,c=e.children,s=a()(e,["className","showSpinner","children"]),l=u()("wc-block-components-button",t,{"wc-block-components-button--loading":r});return React.createElement(i.a,o()({className:l},s),r&&React.createElement("span",{className:"wc-block-components-button__spinner","aria-hidden":"true"}),React.createElement("span",{className:"wc-block-components-button__text"},c))}},function(e,t,n){"use strict";var r=n(22),o=n(9),c=n(29),a=n(0),i=n(68),s=n(50);t.a=function(e){var t=e.icon,n=void 0===t?null:t,u=e.size,l=Object(c.a)(e,["icon","size"]),p=u||20;if("string"==typeof n)return Object(a.createElement)(i.a,Object(o.a)({icon:n,size:p},l));if(n&&i.a===n.type)return Object(a.cloneElement)(n,Object(r.a)({size:p},l));var d=u||24;if("function"==typeof n)return n.prototype instanceof a.Component?Object(a.createElement)(n,Object(r.a)({size:d},l)):n(Object(r.a)({size:d},l));if(n&&("svg"===n.type||n.type===s.a)){var f=Object(r.a)({width:d,height:d},n.props,l);return Object(a.createElement)(s.a,f)}return Object(a.isValidElement)(n)?Object(a.cloneElement)(n,Object(r.a)({size:d},l)):n}},function(e,t,n){"use strict";var r=n(22),o=n(29),c=n(5),a=n.n(c),i=n(0);t.a=Object(i.forwardRef)((function(e,t){var n=e.href,c=e.target,s=e.isPrimary,u=e.isLarge,l=e.isSmall,p=e.isTertiary,d=e.isToggled,f=e.isBusy,m=e.isDefault,b=e.isLink,g=e.isDestructive,h=e.className,v=e.disabled,y=Object(o.a)(e,["href","target","isPrimary","isLarge","isSmall","isTertiary","isToggled","isBusy","isDefault","isLink","isDestructive","className","disabled"]),O=a()("components-button",h,{"is-button":m||s||u||l,"is-default":m||!s&&(u||l),"is-primary":s,"is-large":u,"is-small":l,"is-tertiary":p,"is-toggled":d,"is-busy":f,"is-link":b,"is-destructive":g}),E=void 0===n||v?"button":"a",j="a"===E?{href:n,target:c}:{type:"button",disabled:v};return Object(i.createElement)(E,Object(r.a)({},j,y,{className:O,ref:t}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e,t,n){void 0===n&&(n={});var o=n.maxWait,c=Object(r.useRef)(null),a=Object(r.useRef)([]),i=n.leading,s=void 0===n.trailing||n.trailing,u=Object(r.useRef)(!1),l=Object(r.useRef)(null),p=Object(r.useRef)(!1),d=Object(r.useRef)(e);d.current=e;var f=Object(r.useCallback)((function(){clearTimeout(l.current),clearTimeout(c.current),c.current=null,a.current=[],l.current=null,u.current=!1}),[]);Object(r.useEffect)((function(){return p.current=!1,function(){p.current=!0}}),[]);var m=Object(r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];a.current=e,clearTimeout(l.current),u.current&&(u.current=!1),l.current||!i||u.current||(d.current.apply(d,e),u.current=!0),l.current=setTimeout((function(){var t=!0;i&&u.current&&(t=!1),f(),!p.current&&s&&t&&d.current.apply(d,e)}),t),o&&!c.current&&s&&(c.current=setTimeout((function(){var e=a.current;f(),p.current||d.current.apply(null,e)}),o))}),[o,t,f,i,s]),b=Object(r.useCallback)((function(){l.current&&(d.current.apply(null,a.current),f())}),[f]);return[m,f,b]}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(14),a=n.n(c),i=n(5),s=n.n(i);n(4),n(160);t.a=function(e){var t=e.children,n=e.className,r=e.headingLevel,c=a()(e,["children","className","headingLevel"]),i=s()("wc-block-components-title",n),u="h".concat(r);return React.createElement(u,o()({className:i},c),t)}},function(e,t){!function(){e.exports=this.wp.autop}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(6),o=n.n(r),c=n(88),a=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(){var e=Object(c.b)(),t=e.notices,n=e.createNotice,r=e.removeNotice,o=e.createSnackbarNotice,i=e.setIsSuppressed,u=Object(a.useRef)(t);Object(a.useEffect)((function(){u.current=t}),[t]);var l=Object(a.useMemo)((function(){return{hasNoticesOfType:function(e){return u.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u.current.forEach((function(t){null!==e&&t.status!==e||r(t.id)}))},removeNotice:r}}),[r]),p=Object(a.useMemo)((function(){return{addDefaultNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("default",e,s({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("error",e,s({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("warning",e,s({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("info",e,s({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("success",e,s({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(e,t)}}}),[n,o]);return s(s(s({notices:t},l),p),{},{setIsSuppressed:i})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(15),o=n(12),c=n(118),a=n(17),i=n(7),s={cartCoupons:[],cartItems:[],cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:[],cartTotals:{},cartIsLoading:!0,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:[],shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:function(){}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(c.a)(),n=t.isEditor,u=t.previewData,l=(null==u?void 0:u.previewCart)||{},p=e.shouldSelect,d=Object(o.useSelect)((function(e,t){var o=t.dispatch;if(!p)return s;if(n)return{cartCoupons:l.coupons,cartItems:l.items,cartItemsCount:l.items_count,cartItemsWeight:l.items_weight,cartNeedsPayment:l.needs_payment,cartNeedsShipping:l.needs_shipping,cartItemErrors:[],cartTotals:l.totals,cartIsLoading:!1,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:l.shipping_rates,shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:"function"==typeof(null==l?void 0:l.receiveCart)?l.receiveCart:function(){}};var c=e(r.CART_STORE_KEY),u=c.getCartData(),d=c.getCartErrors(),f=c.getCartTotals(),m=!c.hasFinishedResolution("getCartData"),b=c.areShippingRatesLoading(),g=o(r.CART_STORE_KEY).receiveCart,h=Object(i.mapValues)(u.shippingAddress,(function(e){return Object(a.decodeEntities)(e)}));return{cartCoupons:u.coupons,cartItems:u.items||[],cartItemsCount:u.itemsCount,cartItemsWeight:u.itemsWeight,cartNeedsPayment:u.needsPayment,cartNeedsShipping:u.needsShipping,cartItemErrors:u.errors||[],cartTotals:f,cartIsLoading:m,cartErrors:d,shippingAddress:h,shippingRates:u.shippingRates||[],shippingRatesLoading:b,hasShippingAddress:!!h.country,receiveCart:g}}),[p]);return d}},function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";var r=n(5),o=n.n(r);n(4),n(162);t.a=function(e){var t=e.children,n=e.className;return React.createElement("div",{className:o()("wc-block-components-product-badge",n)},t)}},function(e,t,n){"use strict";var r=n(10),o=n.n(r),c=n(0),a=n(5),i=n.n(a),s=(n(4),n(127)),u=n(50),l=React.createElement(u.a,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"})),p=React.createElement(u.a,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));n(170),t.a=function(e){var t=e.children,n=e.className,r=e.initialOpen,a=void 0!==r&&r,u=e.hasBorder,d=void 0!==u&&u,f=e.title,m=e.titleTag,b=void 0===m?"div":m,g=Object(c.useState)(a),h=o()(g,2),v=h[0],y=h[1];return React.createElement("div",{className:i()(n,"wc-blocks-components-panel",{"has-border":d})},React.createElement(b,null,React.createElement("button",{"aria-expanded":v,className:"wc-blocks-components-panel__button",onClick:function(){return y(!v)}},React.createElement(s.a,{"aria-hidden":"true",className:"wc-blocks-components-panel__button-icon",srcElement:v?l:p}),f)),React.createElement("div",{className:"wc-blocks-components-panel__content",hidden:!v},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(10),o=n.n(r),c=n(0),a=function(){var e=Object(c.useState)(),t=o()(e,2)[1];return function(e){return t((function(){throw e}))}}},function(e,t,n){"use strict";e.exports=n(130)},function(e,t,n){"use strict";n.d(t,"b",(function(){return M})),n.d(t,"a",(function(){return A}));var r=n(10),o=n.n(r),c=n(0),a=n(81),i=n(12),s=n(27),u=n.n(s),l=n(140),p=n(15),d=n(17),f=n(80),m=function(e){return{country:e.country,state:e.state,city:e.city,postcode:e.postcode.replace(" ","").toUpperCase()}},b=function(){var e=Object(a.a)().shippingAddress,t=Object(c.useState)(e),n=o()(t,2),r=n[0],s=n[1],b=Object(l.a)(r,400),g=o()(b,1)[0],h=Object(i.useDispatch)(p.CART_STORE_KEY).updateShippingAddress,v=Object(f.a)().addErrorNotice,y=Object(c.useRef)(e);Object(c.useEffect)((function(){var e,t;g.country&&(e=y.current,t=g,!u()(m(e),m(t)))&&h(g).then((function(){y.current=g})).catch((function(e){v(e.message,{id:"shipping-form"})}))}),[g,h,v]);var O={};return Object.keys(r).forEach((function(e){O[e]=Object(d.decodeEntities)(r[e])})),{shippingAddress:O,setShippingAddress:s}},g=n(220),h=n(98),v={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},y={INVALID_COUNTRY:"woocommerce_rest_cart_shipping_rates_invalid_country",MISSING_COUNTRY:"woocommerce_rest_cart_shipping_rates_missing_country",INVALID_STATE:"woocommerce_rest_cart_shipping_rates_invalid_state"},O={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:function(){return null},shippingErrorTypes:v,shippingRates:[],setShippingRates:function(){return null},shippingRatesLoading:!1,selectedRates:[],setSelectedRates:function(){return null},shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},setShippingAddress:function(){return null},onShippingRateSuccess:function(){return null},onShippingRateFail:function(){return null},onShippingRateSelectSuccess:function(){return null},onShippingRateSelectFail:function(){return null},needsShipping:!1},E=n(113),j=n(195),w="shipping_rates_success",_="shipping_rates_fail",k="shipping_rate_select_success",S="shipping_rate_select_fail",R=function(e){return{onSuccess:Object(j.a)(w,e),onFail:Object(j.a)(_,e),onSelectSuccess:Object(j.a)(k,e),onSelectFail:Object(j.a)(S,e)}},P=n(196),C=v.NONE,x=v.INVALID_ADDRESS,N=v.UNKNOWN,I=function(e,t){var n=t.type;return Object.values(v).includes(n)?n:e},T=Object(c.createContext)(O),M=function(){return Object(c.useContext)(T)},A=function(e){var t=e.children,n=Object(h.b)().dispatchActions,r=Object(a.a)(),i=r.cartNeedsShipping,s=r.shippingRates,u=r.shippingRatesLoading,l=r.cartErrors,p=Object(c.useReducer)(I,C),d=o()(p,2),f=d[0],m=d[1],O=Object(c.useReducer)(E.b,{}),j=o()(O,2),M=j[0],A=j[1],D=b(),L=D.shippingAddress,F=D.setShippingAddress,V=Object(c.useRef)(M),B=Object(g.a)(s),U=B.selectShippingRate,H=B.selectedShippingRates,q=B.isSelectingRate,z=Object(c.useMemo)((function(){return{onShippingRateSuccess:R(A).onSuccess,onShippingRateFail:R(A).onFail,onShippingRateSelectSuccess:R(A).onSelectSuccess,onShippingRateSelectFail:R(A).onSelectFail}}),[A]);Object(c.useEffect)((function(){V.current=M}),[M]),Object(c.useEffect)((function(){u?n.incrementCalculating():n.decrementCalculating()}),[u,n]),Object(c.useEffect)((function(){q?n.incrementCalculating():n.decrementCalculating()}),[q,n]),Object(c.useEffect)((function(){l.length>0&&l.some((function(e){return!(!e.code||!Object.values(y).includes(e.code))}))?m({type:x}):m({type:C})}),[l]);var W=Object(c.useMemo)((function(){return{isPristine:f===C,isValid:f===C,hasInvalidAddress:f===x,hasError:f===N||f===x}}),[f]);Object(c.useEffect)((function(){u||0!==s.length&&!W.hasError||Object(P.a)(V.current,_,{hasInvalidAddress:W.hasInvalidAddress,hasError:W.hasError})}),[s,u,W.hasError,W.hasInvalidAddress]),Object(c.useEffect)((function(){!u&&s.length>0&&!W.hasError&&Object(P.a)(V.current,w,s)}),[s,u,W.hasError]),Object(c.useEffect)((function(){!q&&W.hasError&&Object(P.a)(V.current,S,{hasError:W.hasError,hasInvalidAddress:W.hasInvalidAddress})}),[H,q,W.hasError,W.hasInvalidAddress]),Object(c.useEffect)((function(){q||!H||W.hasError||Object(P.a)(V.current,k,H)}),[H,q,W.hasError]);var K={shippingErrorStatus:W,dispatchErrorStatus:m,shippingErrorTypes:v,shippingRates:s,setShippingRates:U,shippingRatesLoading:u,selectedRates:H,setSelectedRates:U,isSelectingRate:q,shippingAddress:L,setShippingAddress:F,onShippingRateSuccess:z.onShippingRateSuccess,onShippingRateFail:z.onShippingRateFail,onShippingRateSelectSuccess:z.onShippingRateSelectSuccess,onShippingRateSelectFail:z.onShippingRateSelectFail,needsShipping:i};return React.createElement(React.Fragment,null,React.createElement(T.Provider,{value:K},t))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return N})),n.d(t,"a",(function(){return I}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=(n(4),n(0)),s=n(12),u=n(139),l=n(9),p=n(23),d=n.n(p);function f(e,t,n,r,o,c,a){try{var i=e[c](a),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var c=e.apply(t,n);function a(e){f(c,r,o,a,i,"next",e)}function i(e){f(c,r,o,a,i,"throw",e)}a(void 0)}))}}var b=n(24),g=n(5),h=n.n(g),v=n(7),y=n(67),O=n(28),E=n(1),j=n(76);var w=Object(i.forwardRef)((function(e,t){var n=e.className,r=e.children,o=e.actions,c=void 0===o?[]:o,a=e.onRemove,s=void 0===a?v.noop:a;Object(i.useEffect)((function(){var e=setTimeout((function(){s()}),1e4);return function(){return clearTimeout(e)}}),[]);var u=h()(n,"components-snackbar");return c&&c.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),c=[c[0]]),Object(i.createElement)("div",{ref:t,className:u,onClick:s,tabIndex:"0",role:"button",onKeyPress:s,label:Object(E.__)("Dismiss this notice")},Object(i.createElement)("div",{className:"components-snackbar__content"},r,c.map((function(e,t){var n=e.label,r=e.onClick,o=e.url;return Object(i.createElement)(j.a,{key:t,href:o,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))}));var _=function(e){var t=e.notices,n=e.className,r=e.children,o=e.onRemove,c=void 0===o?v.noop:o,a=Object(O.useReducedMotion)(),s=Object(i.useState)((function(){return new WeakMap})),u=Object(b.a)(s,1)[0],p=Object(y.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=m(d.a.mark((function t(n){return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:u.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=m(d.a.mark((function e(t){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:a});n=h()("components-snackbar-list",n);var f=function(e){return function(){return c(e.id)}};return Object(i.createElement)("div",{className:n},r,p.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(i.createElement)(y.animated.div,{key:n,style:r},Object(i.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&u.set(t,e)}},Object(i.createElement)(w,Object(l.a)({},Object(v.omit)(t,["content"]),{onRemove:f(t)}),t.content)))})))},k=n(80),S=n(118),R=function(){var e=Object(S.a)().isEditor,t=Object(k.a)(),n=t.notices,r=t.removeNotice;if(e)return null;var o=n.filter((function(e){return"snackbar"===e.type}));return React.createElement(_,{notices:o,className:"wc-block-components-notices__snackbar",onRemove:r})};function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=Object(i.createContext)({notices:[],createNotice:function(e,t,n){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),N=function(){return Object(i.useContext)(x)},I=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.createNoticeContainer,c=void 0===o||o,l=e.context,p=void 0===l?"wc/core":l,d=Object(s.useDispatch)("core/notices"),f=d.createNotice,m=d.removeNotice,b=Object(i.useState)(!1),g=a()(b,2),h=g[0],v=g[1],y=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};f(e,t,C(C({},n),{},{context:n.context||p}))}),[f,p]),O=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;m(e,t)}),[m,p]),E=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y("default",e,C(C({},t),{},{type:"snackbar"}))}),[y]),j={notices:Object(s.useSelect)((function(e){return{notices:e("core/notices").getNotices(p)}}),[p]).notices,createNotice:y,createSnackbarNotice:E,removeNotice:O,context:p,setIsSuppressed:v},w=h?null:React.createElement(u.a,{className:r,notices:j.notices}),_=h?null:React.createElement(R,null);return React.createElement(x.Provider,{value:j},c&&w,t,_)}},,function(e,t,n){"use strict";var r=n(1),o={first_name:{label:Object(r.__)("First name","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("First name (optional)","woo-gutenberg-products-block"),autocomplete:"given-name",autocapitalize:"sentences",required:!0,hidden:!1,index:1},last_name:{label:Object(r.__)("Last name","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Last name (optional)","woo-gutenberg-products-block"),autocomplete:"family-name",autocapitalize:"sentences",required:!0,hidden:!1,index:2},company:{label:Object(r.__)("Company","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Company (optional)","woo-gutenberg-products-block"),autocomplete:"organization",autocapitalize:"sentences",required:!1,hidden:!1,index:3},address_1:{label:Object(r.__)("Address","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Address (optional)","woo-gutenberg-products-block"),autocomplete:"address-line1",autocapitalize:"sentences",required:!0,hidden:!1,index:4},address_2:{label:Object(r.__)("Apartment, suite, etc.","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Apartment, suite, etc. (optional)","woo-gutenberg-products-block"),autocomplete:"address-line2",autocapitalize:"sentences",required:!1,hidden:!1,index:5},country:{label:Object(r.__)("Country/Region","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Country/Region (optional)","woo-gutenberg-products-block"),autocomplete:"country",required:!0,hidden:!1,index:6},city:{label:Object(r.__)("City","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("City (optional)","woo-gutenberg-products-block"),autocomplete:"address-level2",autocapitalize:"sentences",required:!0,hidden:!1,index:7},state:{label:Object(r.__)("State/County","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("State/County (optional)","woo-gutenberg-products-block"),autocomplete:"address-level1",autocapitalize:"sentences",required:!0,hidden:!1,index:8},postcode:{label:Object(r.__)("Postal code","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Postal code (optional)","woo-gutenberg-products-block"),autocomplete:"postal-code",autocapitalize:"characters",required:!0,hidden:!1,index:9}};t.a=o},function(e,t,n){var r=n(55);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";t.a=function(e){var t=e.label,n=e.secondaryLabel,r=e.description,o=e.secondaryDescription,c=e.id;return React.createElement("div",{className:"wc-block-components-radio-control__option-layout"},React.createElement("div",{className:"wc-block-components-radio-control__label-group"},t&&React.createElement("span",{id:c?"".concat(c,"__label"):null,className:"wc-block-components-radio-control__label"},t),n&&React.createElement("span",{id:c?"".concat(c,"__secondary-label"):null,className:"wc-block-components-radio-control__secondary-label"},n)),React.createElement("div",{className:"wc-block-components-radio-control__description-group"},r&&React.createElement("span",{id:c?"".concat(c,"__description"):null,className:"wc-block-components-radio-control__description"},r),o&&React.createElement("span",{id:c?"".concat(c,"__secondary-description"):null,className:"wc-block-components-radio-control__secondary-description"},o)))}},function(e,t){!function(){e.exports=this.wp.wordcount}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),o=function(e,t){var n=Object(r.useRef)();return Object(r.useEffect)((function(){n.current===e||t&&!t(e,n.current)||(n.current=e)}),[e,t]),n.current}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(6),a=n.n(c),i=n(10),s=n.n(i),u=n(14),l=n.n(u),p=n(1),d=n(2),f=(n(4),n(5)),m=n.n(f),b=n(58),g=n(148),h=n(100),v=n(64);n(135);t.a=Object(h.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,c=e.ariaDescribedBy,i=e.errorId,u=e.validateOnMount,f=void 0===u||u,h=e.focusOnMount,y=void 0!==h&&h,O=e.onChange,E=e.showError,j=void 0===E||E,w=l()(e,["className","instanceId","id","ariaDescribedBy","errorId","validateOnMount","focusOnMount","onChange","showError"]),_=Object(d.useState)(!0),k=s()(_,2),S=k[0],R=k[1],P=Object(d.useRef)(),C=Object(b.b)(),x=C.getValidationError,N=C.hideValidationError,I=C.setValidationErrors,T=C.clearValidationError,M=C.getValidationErrorId,A=r||"textinput-"+n;i=i||A;var D=Object(d.useCallback)((function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];P.current.checkValidity()?T(i):I(a()({},i,{message:P.current.validationMessage||Object(p.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}))}),[T,i,I]);Object(d.useEffect)((function(){S&&(y&&P.current.focus(),R(!1))}),[y,S,R]),Object(d.useEffect)((function(){S&&(f&&D(),R(!1))}),[S,R,f,D]),Object(d.useEffect)((function(){return function(){T(i)}}),[T,i]);var L=x(i)||{},F=L.message&&!L.hidden,V=j&&F&&M(i)?M(i):c;return React.createElement(v.a,o()({className:m()(t,{"has-error":F}),id:A,onBlur:function(){D(!1)},feedback:j&&React.createElement(g.a,{propertyName:i}),ref:P,onChange:function(e){N(i),O(e)},ariaDescribedBy:V},w))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return Te})),n.d(t,"a",(function(){return Me}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=n(0),s=n(1),u=n(80),l=n(194),p=n(12),d=n(96),f=n(3),m="pristine",b="idle",g="processing",h="complete",v="before_processing",y="after_processing",O=Object(f.getSetting)("checkoutData",{order_id:0,customer_id:0}),E={redirectUrl:"",status:m,hasError:!1,calculatingCount:0,orderId:O.order_id,orderNotes:"",customerId:O.customer_id,shouldCreateAccount:!1,processingResponse:null},j={SET_IDLE:"set_idle",SET_PRISTINE:"set_pristine",SET_REDIRECT_URL:"set_redirect_url",SET_COMPLETE:"set_checkout_complete",SET_BEFORE_PROCESSING:"set_before_processing",SET_AFTER_PROCESSING:"set_after_processing",SET_PROCESSING_RESPONSE:"set_processing_response",SET_PROCESSING:"set_checkout_is_processing",SET_HAS_ERROR:"set_checkout_has_error",SET_NO_ERROR:"set_checkout_no_error",SET_ORDER_ID:"set_checkout_order_id",SET_ORDER_NOTES:"set_checkout_order_notes",INCREMENT_CALCULATING:"increment_calculating",DECREMENT_CALCULATING:"decrement_calculating"},w=j.SET_PRISTINE,_=j.SET_IDLE,k=j.SET_PROCESSING,S=j.SET_BEFORE_PROCESSING,R=j.SET_AFTER_PROCESSING,P=j.SET_PROCESSING_RESPONSE,C=j.SET_REDIRECT_URL,x=j.SET_COMPLETE,N=j.SET_HAS_ERROR,I=j.SET_NO_ERROR,T=j.INCREMENT_CALCULATING,M=j.DECREMENT_CALCULATING,A=j.SET_ORDER_ID,D=j.SET_SHOULD_CREATE_ACCOUNT,L=j.SET_ORDER_NOTES,F=function(){return{type:w}},V=function(){return{type:_}},B=function(){return{type:k}},U=function(e){return{type:C,url:e}},H=function(e){return{type:P,data:e}},q=function(e){return{type:x,data:e}},z=function(){return{type:S}},W=function(){return{type:R}},K=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?N:I;return{type:t}},Y=function(){return{type:T}},G=function(){return{type:M}},$=function(e){return{type:A,orderId:e}},Q=function(e){return{type:D,shouldCreateAccount:e}},X=function(e){return{type:L,orderNotes:e}};function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee=j.SET_PRISTINE,te=j.SET_IDLE,ne=j.SET_PROCESSING,re=j.SET_BEFORE_PROCESSING,oe=j.SET_AFTER_PROCESSING,ce=j.SET_PROCESSING_RESPONSE,ae=j.SET_REDIRECT_URL,ie=j.SET_COMPLETE,se=j.SET_HAS_ERROR,ue=j.SET_NO_ERROR,le=j.INCREMENT_CALCULATING,pe=j.DECREMENT_CALCULATING,de=j.SET_ORDER_ID,fe=j.SET_ORDER_NOTES,me=j.SET_SHOULD_CREATE_ACCOUNT,be=m,ge=b,he=g,ve=v,ye=y,Oe=h,Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0,n=t.url,r=t.type,o=t.orderId,c=t.orderNotes,a=t.shouldCreateAccount,i=t.data,s=e;switch(r){case ee:s=E;break;case te:s=e.status!==ge?J(J({},e),{},{status:ge}):e;break;case ae:s=n!==e.url?J(J({},e),{},{redirectUrl:n}):e;break;case ce:s=J(J({},e),{},{processingResponse:i});break;case ie:s=e.status!==Oe?J(J({},e),{},{status:Oe,redirectUrl:(null==i?void 0:i.redirectUrl)||e.redirectUrl}):e;break;case ne:s=!1===(s=e.status!==he?J(J({},e),{},{status:he,hasError:!1}):e).hasError?s:J(J({},s),{},{hasError:!1});break;case re:s=e.status!==ve?J(J({},e),{},{status:ve,hasError:!1}):e;break;case oe:s=e.status!==ye?J(J({},e),{},{status:ye}):e;break;case se:s=e.hasError?e:J(J({},e),{},{hasError:!0}),s=e.status===he||e.status===ve?J(J({},s),{},{status:ge}):s;break;case ue:s=e.hasError?J(J({},e),{},{hasError:!1}):e;break;case le:s=J(J({},e),{},{calculatingCount:e.calculatingCount+1});break;case pe:s=J(J({},e),{},{calculatingCount:Math.max(0,e.calculatingCount-1)});break;case de:s=J(J({},e),{},{orderId:o});break;case me:a!==e.shouldCreateAccount&&(s=J(J({},e),{},{shouldCreateAccount:a}));break;case fe:e.orderNotes!==c&&(s=J(J({},e),{},{orderNotes:c}))}return s!==e&&r!==ee&&s.status===be&&(s.status=ge),s},je=n(113),we=n(195),_e="checkout_before_processing",ke="checkout_after_processing_with_success",Se="checkout_after_processing_with_error",Re=function(e){return{onCheckoutAfterProcessingWithSuccess:Object(we.a)(ke,e),onCheckoutAfterProcessingWithError:Object(we.a)(Se,e),onCheckoutBeforeProcessing:Object(we.a)(_e,e)}},Pe=n(196),Ce=n(58);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie=Object(i.createContext)({isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,orderNotes:"",customerId:0,onSubmit:function(){},onCheckoutAfterProcessingWithSuccess:function(e){},onCheckoutAfterProcessingWithError:function(e){},onCheckoutBeforeProcessing:function(e){},dispatchActions:{resetCheckout:function(){},setRedirectUrl:function(e){},setHasError:function(e){},setAfterProcessing:function(e){},incrementCalculating:function(){},decrementCalculating:function(){},setOrderId:function(e){},setOrderNotes:function(e){}},hasOrder:!1,isCart:!1}),Te=function(){return Object(i.useContext)(Ie)},Me=function(e){var t=e.children,n=e.redirectUrl,r=e.isCart,o=void 0!==r&&r;E.redirectUrl=n;var c,f=Object(i.useReducer)(Ee,E),m=a()(f,2),O=m[0],j=m[1],w=Object(i.useReducer)(je.b,{}),_=a()(w,2),k=_[0],S=_[1],R=Object(i.useRef)(k),P=Object(Ce.b)().setValidationErrors,C=Object(u.a)(),x=C.addErrorNotice,N=C.removeNotices,I=O.calculatingCount>0,T=Object(l.a)(),M=T.isSuccessResponse,A=T.isErrorResponse,D=T.isFailResponse,L=T.shouldRetry,Z=(c=Object(l.a)().noticeContexts,{checkoutNotices:Object(p.useSelect)((function(e){return e("core/notices").getNotices("wc/checkout")}),[]),expressPaymentNotices:Object(p.useSelect)((function(e){return e("core/notices").getNotices(c.EXPRESS_PAYMENTS)}),[c.EXPRESS_PAYMENTS]),paymentNotices:Object(p.useSelect)((function(e){return e("core/notices").getNotices(c.PAYMENTS)}),[c.PAYMENTS])}),J=Z.checkoutNotices,ee=Z.paymentNotices,te=Z.expressPaymentNotices;Object(i.useEffect)((function(){R.current=k}),[k]);var ne=Object(i.useMemo)((function(){return Re(S).onCheckoutAfterProcessingWithSuccess}),[S]),re=Object(i.useMemo)((function(){return Re(S).onCheckoutAfterProcessingWithError}),[S]),oe=Object(i.useMemo)((function(){return Re(S).onCheckoutBeforeProcessing}),[S]),ce=Object(i.useMemo)((function(){return{resetCheckout:function(){j(F())},setRedirectUrl:function(e){j(U(e))},setHasError:function(e){j(K(e))},incrementCalculating:function(){j(Y())},decrementCalculating:function(){j(G())},setOrderId:function(e){j($(e))},setOrderNotes:function(e){j(X(e))},setAfterProcessing:function(e){var t,n,r,o;(!e.payment_result&&e.message&&200!==(null==e||null===(t=e.data)||void 0===t?void 0:t.status)&&(e.payment_result=Ne(Ne({},e.payment_result),{},{message:e.message})),e.payment_result)&&((null===(n=e.payment_result)||void 0===n?void 0:n.redirect_url)&&j(U(e.payment_result.redirect_url)),j(H((r=e.payment_result,o={message:(null==r?void 0:r.message)||"",paymentStatus:r.payment_status,paymentDetails:{}},Array.isArray(r.payment_details)&&r.payment_details.forEach((function(e){var t=e.key,n=e.value;o.paymentDetails[t]=n})),o))));j(W())}}}),[]);Object(i.useEffect)((function(){O.status===v&&(N("error"),Object(Pe.a)(R.current,_e,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,n=e.validationErrors;x(t),P(n)})),j(V())):j(B())})))}),[O.status,P,x,N,j]);var ae=Object(d.a)(O.status),ie=Object(d.a)(O.hasError);Object(i.useEffect)((function(){if((O.status!==ae||O.hasError!==ie)&&O.status===y){var e={redirectUrl:O.redirectUrl,orderId:O.orderId,customerId:O.customerId,customerNote:O.customerNote,processingResponse:O.processingResponse};O.hasError?Object(Pe.b)(R.current,Se,e).then((function(t){if(A(t)||D(t)){if(t.message){var n=t.messageContext?{context:t.messageContext}:void 0;x(t.message,n)}L(t)?j(V()):j(q(t))}else{if(!(J.some((function(e){return"error"===e.status}))||te.some((function(e){return"error"===e.status}))||ee.some((function(e){return"error"===e.status})))){var r,o=(null===(r=e.processingResponse)||void 0===r?void 0:r.message)||Object(s.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");x(o,{id:"checkout"})}j(V())}})):Object(Pe.b)(R.current,ke,e).then((function(e){if(M(e))j(q(e));else if(A(e)||D(e)){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;x(e.message,t)}L(e)?j(K(!0)):j(q(e))}else j(q())}))}}),[O.status,O.hasError,O.redirectUrl,O.orderId,O.customerId,O.customerNote,O.processingResponse,ae,ie,ce,x,A,D,M,L,J,te,ee]);var se={onSubmit:Object(i.useCallback)((function(){j(z())}),[]),isComplete:O.status===h,isIdle:O.status===b,isCalculating:I,isProcessing:O.status===g,isBeforeProcessing:O.status===v,isAfterProcessing:O.status===y,hasError:O.hasError,redirectUrl:O.redirectUrl,onCheckoutAfterProcessingWithSuccess:ne,onCheckoutAfterProcessingWithError:re,onCheckoutBeforeProcessing:oe,dispatchActions:ce,isCart:o,orderId:O.orderId,hasOrder:!!O.orderId,customerId:O.customerId,orderNotes:O.orderNotes,shouldCreateAccount:O.shouldCreateAccount,setShouldCreateAccount:function(e){return j(Q(e))}};return React.createElement(Ie.Provider,{value:se},t)}},,function(e,t,n){"use strict";var r=n(9),o=n(0),c=n(7);var a=function(e,t){return function(n){var r=e(n),o=n.displayName,a=void 0===o?n.name||"Component":o;return r.displayName="".concat(Object(c.upperFirst)(Object(c.camelCase)(t)),"(").concat(a,")"),r}},i=new WeakMap;function s(e,t){return Object(o.useMemo)((function(){var n=function(e){var t=i.get(e)||0;return i.set(e,t+1),t}(e);return t?"".concat(t,"-").concat(n):n}),[e])}t.a=a((function(e){return function(t){var n=s(e);return Object(o.createElement)(e,Object(r.a)({},t,{instanceId:n}))}}),"withInstanceId")},function(e,t,n){"use strict";var r=n(2),o=n.n(r);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(){}function p(){}p.resetWarningCache=l;var d=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,r,o,c){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==c){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:p,resetWarningCache:l};return n.PropTypes=n,n}()}));function f(){}function m(e){return!!(e||"").match(/\d/)}function b(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function g(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split("."),c=o[0],a=o[1]||"";return{beforeDecimal:c,afterDecimal:a,hasNagation:n,addNegation:r}}function h(e,t,n){for(var r="",o=n?"0":"",c=0;c<=t-1;c++)r+=e[c]||o;return r}function v(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function y(e,t,n){return Math.min(Math.max(e,t),n)}function O(e){return Math.max(e.selectionStart,e.selectionEnd)}var E={thousandSeparator:d.oneOfType([d.string,d.oneOf([!0])]),decimalSeparator:d.string,allowedDecimalSeparators:d.arrayOf(d.string),thousandsGroupStyle:d.oneOf(["thousand","lakh","wan"]),decimalScale:d.number,fixedDecimalScale:d.bool,displayType:d.oneOf(["input","text"]),prefix:d.string,suffix:d.string,format:d.oneOfType([d.string,d.func]),removeFormatting:d.func,mask:d.oneOfType([d.string,d.arrayOf(d.string)]),value:d.oneOfType([d.number,d.string]),defaultValue:d.oneOfType([d.number,d.string]),isNumericString:d.bool,customInput:d.elementType,allowNegative:d.bool,allowEmptyFormatting:d.bool,allowLeadingZeros:d.bool,onValueChange:d.func,onKeyDown:d.func,onMouseUp:d.func,onChange:d.func,onFocus:d.func,onBlur:d.func,type:d.oneOf(["text","tel","password"]),isAllowed:d.func,renderText:d.func,getInputRef:d.oneOfType([d.func,d.shape({current:d.any})])},j={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:f,onChange:f,onKeyDown:f,onMouseUp:f,onFocus:f,onBlur:f,isAllowed:function(){return!0}},w=function(e){function t(e){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,n=!(o=i(t).call(this,e))||"object"!=typeof o&&"function"!=typeof o?u(r):o;var c=e.defaultValue;n.validateProps();var a=n.formatValueProp(c);return n.state={value:a,numAsString:n.removeFormatting(a)},n.selectionBeforeInput={selectionStart:0,selectionEnd:0},n.onChange=n.onChange.bind(u(n)),n.onKeyDown=n.onKeyDown.bind(u(n)),n.onMouseUp=n.onMouseUp.bind(u(n)),n.onFocus=n.onFocus.bind(u(n)),n.onBlur=n.onBlur.bind(u(n)),n}var n,r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,(r=[{key:"componentDidUpdate",value:function(e){this.updateValueIfRequired(e)}},{key:"updateValueIfRequired",value:function(e){var t=this.props,n=this.state,r=this.focusedElm,o=n.value,c=n.numAsString,a=void 0===c?"":c;if(e!==t){this.validateProps();var i=this.formatNumString(a),s=void 0===t.value?i:this.formatValueProp(),u=this.removeFormatting(s),l=parseFloat(u),p=parseFloat(a);(isNaN(l)&&isNaN(p)||l===p)&&i===o&&(null!==r||s===o)||this.updateValue({formattedValue:s,numAsString:u,input:r})}}},{key:"getFloatString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.decimalScale,n=this.getSeparators(),r=n.decimalSeparator,o=this.getNumberRegex(!0),c="-"===e[0];c&&(e=e.replace("-","")),r&&0===t&&(e=e.split(r)[0]);var a=(e=(e.match(o)||[]).join("").replace(r,".")).indexOf(".");return-1!==a&&(e="".concat(e.substring(0,a),".").concat(e.substring(a+1,e.length).replace(new RegExp(b(r),"g"),""))),c&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var n=this.props,r=n.format,o=n.decimalScale,c=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!c||0===o||t||r?"":"|"+b(c)),e?"g":void 0)}},{key:"getSeparators",value:function(){var e=this.props.decimalSeparator,t=this.props,n=t.thousandSeparator,r=t.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:r}}},{key:"getMaskAtIndex",value:function(e){var t=this.props.mask,n=void 0===t?" ":t;return"string"==typeof n?n:n[e]||" "}},{key:"getValueObject",value:function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}}},{key:"validateProps",value:function(){var e=this.props.mask,t=this.getSeparators(),n=t.decimalSeparator,r=t.thousandSeparator;if(n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: ".concat(r,' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: ').concat(n," (default value for decimalSeparator is .)\n "));if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n Mask ".concat(e," should not contain numeric character;\n "))}},{key:"setPatchedCaretPosition",value:function(e,t,n){v(e,t),setTimeout((function(){e.value===n&&v(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,n){var r=this.props,o=r.prefix,c=r.suffix,a=r.format;if(""===e)return 0;if(t=y(t,0,e.length),!a){var i="-"===e[0];return y(t,o.length+(i?1:0),e.length-c.length)}if("function"==typeof a)return t;if("#"===a[t]&&m(e[t]))return t;if("#"===a[t-1]&&m(e[t-1]))return t;var s=a.indexOf("#");t=y(t,s,a.lastIndexOf("#")+1);for(var u=a.substring(t,a.length).indexOf("#"),l=t,p=t+(-1===u?0:u);l>s&&("#"!==a[l]||!m(e[l]));)l-=1;return!m(e[p])||"left"===n&&t!==s||t-l<p-t?m(e[l])?l+1:l:p}},{key:"getCaretPosition",value:function(e,t,n){var r,o,c=this.props.format,a=this.state.value,i=this.getNumberRegex(!0),s=(e.match(i)||[]).join(""),u=(t.match(i)||[]).join("");for(r=0,o=0;o<n;o++){var l=e[o]||"",p=t[r]||"";if((l.match(i)||l===p)&&("0"!==l||!p.match(i)||"0"===p||s.length===u.length)){for(;l!==t[r]&&r<t.length;)r++;r++}}return"string"!=typeof c||a||(r=t.length),r=this.correctCaretPosition(t,r)}},{key:"removePrefixAndSuffix",value:function(e){var t=this.props,n=t.format,r=t.prefix,o=t.suffix;if(!n&&e){var c="-"===e[0];c&&(e=e.substring(1,e.length));var a=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==a&&a===e.length-o.length?e.substring(0,a):e,c&&(e="-"+e)}return e}},{key:"removePatternFormatting",value:function(e){for(var t=this.props.format.split("#").filter((function(e){return""!==e})),n=0,r="",o=0,c=t.length;o<=c;o++){var a=t[o]||"",i=o===c?e.length:e.indexOf(a,n);if(-1===i){r=e;break}r+=e.substring(n,i),n=i+a.length}return(r.match(/\d/g)||[]).join("")}},{key:"removeFormatting",value:function(e){var t=this.props,n=t.format,r=t.removeFormatting;return e?(n?e="string"==typeof n?this.removePatternFormatting(e):"function"==typeof r?r(e):(e.match(/\d/g)||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e):e}},{key:"formatWithPattern",value:function(e){for(var t=this.props.format,n=0,r=t.split(""),o=0,c=t.length;o<c;o++)"#"===t[o]&&(r[o]=e[n]||this.getMaskAtIndex(n),n+=1);return r.join("")}},{key:"formatAsNumber",value:function(e){var t=this.props,n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix,c=t.suffix,a=t.allowNegative,i=t.thousandsGroupStyle,s=this.getSeparators(),u=s.thousandSeparator,l=s.decimalSeparator,p=-1!==e.indexOf(".")||n&&r,d=g(e,a),f=d.beforeDecimal,m=d.afterDecimal,b=d.addNegation;return void 0!==n&&(m=h(m,n,r)),u&&(f=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(f,u,i)),o&&(f=o+f),c&&(m+=c),b&&(f="-"+f),e=f+(p&&l||"")+m}},{key:"formatNumString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.format,r=t.allowEmptyFormatting,o=e;return o=""!==e||r?"-"!==e||n?"string"==typeof n?this.formatWithPattern(o):"function"==typeof n?n(o):this.formatAsNumber(o):"-":""}},{key:"formatValueProp",value:function(e){var t=this.props,n=t.format,r=t.decimalScale,o=t.fixedDecimalScale,c=t.allowEmptyFormatting,a=this.props,i=a.value,s=void 0===i?e:i,u=a.isNumericString,l=!s&&0!==s;return l&&c&&(s=""),l&&!c?"":("number"==typeof s&&(s=s.toString(),u=!0),"Infinity"===s&&u&&(s=""),u&&!n&&"number"==typeof r&&(s=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=-1!==e.indexOf(".")&&t,o=g(e),c=o.beforeDecimal,a=o.afterDecimal,i=o.hasNagation,s=parseFloat("0.".concat(a||"0")).toFixed(t).split("."),u=c.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),s[0]),l=h(s[1]||"",Math.min(t,a.length),n),p=r?".":"";return"".concat(i?"-":"").concat(u).concat(p).concat(l)}(s,r,o)),u?this.formatNumString(s):this.formatInput(s))}},{key:"formatNegation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.allowNegative,n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),c=r.test(e);return e=e.replace(/-/g,""),o&&!c&&t&&(e="-"+e),e}},{key:"formatInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.format;return t||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)}},{key:"isCharacterAFormat",value:function(e,t){var n=this.props,r=n.format,o=n.prefix,c=n.suffix,a=n.decimalScale,i=n.fixedDecimalScale,s=this.getSeparators().decimalSeparator;return"string"==typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-c.length||a&&i&&t[e]===s))}},{key:"checkIfFormatGotDeleted",value:function(e,t,n){for(var r=e;r<t;r++)if(this.isCharacterAFormat(r,n))return!0;return!1}},{key:"correctInputValue",value:function(e,t,n){var r=this.props,o=r.format,c=r.allowNegative,a=r.prefix,i=r.suffix,s=r.decimalScale,u=this.getSeparators(),l=u.allowedDecimalSeparators,p=u.decimalSeparator,d=this.state.numAsString||"",f=this.selectionBeforeInput,m=f.selectionStart,b=f.selectionEnd,h=function(e,t){for(var n=0,r=0,o=e.length,c=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[c-1-r]&&c-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),v=h.start,y=h.end;if(!o&&v===y&&-1!==l.indexOf(n[m])){var O=0===s?"":p;return n.substr(0,m)+O+n.substr(m+1,n.length)}var E=o?0:a.length,j=t.length-(o?0:i.length);if(n.length>t.length||!n.length||v===y||0===m&&b===t.length||m===E&&b===j)return n;if(this.checkIfFormatGotDeleted(v,y,t)&&(n=t),!o){var w=this.removeFormatting(n),_=g(w,c),k=_.beforeDecimal,S=_.afterDecimal,R=_.addNegation,P=e<n.indexOf(p)+1;if(w.length<d.length&&P&&""===k&&!parseFloat(S))return R?"-":""}return n}},{key:"updateValue",value:function(e){var t=e.formattedValue,n=e.input,r=e.setCaretPosition,o=void 0===r||r,c=e.numAsString,a=e.caretPos,i=this.props.onValueChange,s=this.state.value;if(n)if(o){if(!a){var u=e.inputValue||n.value,l=O(n);n.value=t,a=this.getCaretPosition(u,t,l)}this.setPatchedCaretPosition(n,a,t)}else n.value=t;void 0===c&&(c=this.removeFormatting(t)),t!==s&&(this.setState({value:t,numAsString:c}),i(this.getValueObject(t,c)))}},{key:"onChange",value:function(e){var t=e.target,n=t.value,r=this.state,o=this.props,c=o.isAllowed,a=r.value||"",i=O(t);n=this.correctInputValue(i,a,n);var s=this.formatInput(n)||"",u=this.removeFormatting(s);c(this.getValueObject(s,u))||(s=a),this.updateValue({formattedValue:s,numAsString:u,inputValue:n,input:t}),o.onChange(e)}},{key:"onBlur",value:function(e){var t=this.props,n=this.state,r=t.format,o=t.onBlur,c=t.allowLeadingZeros,a=n.numAsString,i=n.value;if(this.focusedElm=null,this.focusTimeout&&clearTimeout(this.focusTimeout),!r){isNaN(parseFloat(a))&&(a=""),c||(a=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return"".concat(t?"-":"").concat(r).concat(o?".".concat(o):"")}(a));var s=this.formatNumString(a);if(s!==i)return this.updateValue({formattedValue:s,numAsString:a,input:e.target,setCaretPosition:!1}),void o(e)}o(e)}},{key:"onKeyDown",value:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,c=n.selectionEnd,a=n.value,i=void 0===a?"":a,s=this.props,u=s.decimalScale,l=s.fixedDecimalScale,p=s.prefix,d=s.suffix,f=s.format,m=s.onKeyDown,b=void 0!==u&&l,g=this.getNumberRegex(!1,b),h=new RegExp("-"),v="string"==typeof f;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:c},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===c){var y=t,O=v?f.indexOf("#"):p.length,E=v?f.lastIndexOf("#")+1:i.length-d.length;if("ArrowLeft"===r||"ArrowRight"===r){var j="ArrowLeft"===r?"left":"right";y=this.correctCaretPosition(i,t,j)}else if("Delete"!==r||g.test(i[t])||h.test(i[t])){if("Backspace"===r&&!g.test(i[t]))if(o<=O+1&&"-"===i[0]&&void 0===f){var w=i.substring(1);this.updateValue({formattedValue:w,caretPos:y,input:n})}else if(!h.test(i[t])){for(;!g.test(i[y-1])&&y>O;)y--;y=this.correctCaretPosition(i,y,"left")}}else for(;!g.test(i[y])&&y<E;)y++;(y!==t||t<O||t>E)&&(e.preventDefault(),this.setPatchedCaretPosition(n,y,i)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,y,i),m(e)}else m(e)}},{key:"onMouseUp",value:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value,c=void 0===o?"":o;if(n===r){var a=this.correctCaretPosition(c,n);a!==n&&this.setPatchedCaretPosition(t,a,c)}this.props.onMouseUp(e)}},{key:"onFocus",value:function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout((function(){var n=e.target,r=n.selectionStart,o=n.selectionEnd,c=n.value,a=void 0===c?"":c,i=t.correctCaretPosition(a,r);i===r||0===r&&o===a.length||t.setPatchedCaretPosition(n,i,a),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,n,r=this.props,c=r.type,i=r.displayType,s=r.customInput,u=r.renderText,l=r.getInputRef,p=this.state.value,d=(e=this.props,t=E,n={},Object.keys(e).forEach((function(r){t[r]||(n[r]=e[r])})),n),f=a({inputMode:"numeric"},d,{type:c,value:p,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===i)return u?u(p)||null:o.a.createElement("span",a({},d,{ref:l}),p);if(s){var m=s;return o.a.createElement(m,a({},f,{ref:l}))}return o.a.createElement("input",a({},f,{ref:l}))}}])&&c(n.prototype,r),l&&c(n,l),t}(o.a.Component);w.propTypes=E,w.defaultProps=j,t.a=w},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(30),a=n.n(c),i=n(31),s=n.n(i),u=n(18),l=n.n(u),p=n(32),d=n.n(p),f=n(33),m=n.n(f),b=n(20),g=n.n(b),h=n(6),v=n.n(h),y=n(2);n(128);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}t.a=function(e){var t=function(t){d()(r,t);var n=O(r);function r(){var e;return a()(this,r),e=n.call(this),v()(l()(e),"scrollToTopIfNeeded",(function(){var t=e.scrollPointRef.current.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollPointRef.current.scrollIntoView()})),v()(l()(e),"moveFocusToTop",(function(t){var n=e.scrollPointRef.current.parentElement.querySelectorAll(t);n.length&&n[0].focus()})),v()(l()(e),"scrollToTop",(function(t){window&&Number.isFinite(window.innerHeight)&&(e.scrollToTopIfNeeded(),t&&t.focusableSelector&&e.moveFocusToTop(t.focusableSelector))})),e.scrollPointRef=Object(y.createRef)(),e}return s()(r,[{key:"render",value:function(){return React.createElement(y.Fragment,null,React.createElement("div",{className:"with-scroll-to-top__scroll-point",ref:this.scrollPointRef,"aria-hidden":!0}),React.createElement(e,o()({},this.props,{scrollToTop:this.scrollToTop})))}}]),r}(y.Component);return t.displayName="withScrollToTop",t}},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function o(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function c(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return o(n.overflowY,t)||o(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function a(e,t,n,r,o,c,a,i){return c<e&&a>t||c>e&&a<t?0:c<=e&&i<=n||a>=t&&i>=n?c-e-r:a>t&&i<n||c<e&&i>n?a-t+o:0}t.a=function(e,t){var n=window,o=t.scrollMode,i=t.block,s=t.inline,u=t.boundary,l=t.skipOverflowHiddenElements,p="function"==typeof u?u:function(e){return e!==u};if(!r(e))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,f=[],m=e;r(m)&&p(m);){if((m=m.parentNode)===d){f.push(m);break}m===document.body&&c(m)&&!c(document.documentElement)||c(m,l)&&f.push(m)}for(var b=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),O=y.height,E=y.width,j=y.top,w=y.right,_=y.bottom,k=y.left,S="start"===i||"nearest"===i?j:"end"===i?_:j+O/2,R="center"===s?k+E/2:"end"===s?w:k,P=[],C=0;C<f.length;C++){var x=f[C],N=x.getBoundingClientRect(),I=N.height,T=N.width,M=N.top,A=N.right,D=N.bottom,L=N.left;if("if-needed"===o&&j>=0&&k>=0&&_<=g&&w<=b&&j>=M&&_<=D&&k>=L&&w<=A)return P;var F=getComputedStyle(x),V=parseInt(F.borderLeftWidth,10),B=parseInt(F.borderTopWidth,10),U=parseInt(F.borderRightWidth,10),H=parseInt(F.borderBottomWidth,10),q=0,z=0,W="offsetWidth"in x?x.offsetWidth-x.clientWidth-V-U:0,K="offsetHeight"in x?x.offsetHeight-x.clientHeight-B-H:0;if(d===x)q="start"===i?S:"end"===i?S-g:"nearest"===i?a(v,v+g,g,B,H,v+S,v+S+O,O):S-g/2,z="start"===s?R:"center"===s?R-b/2:"end"===s?R-b:a(h,h+b,b,V,U,h+R,h+R+E,E),q=Math.max(0,q+v),z=Math.max(0,z+h);else{q="start"===i?S-M-B:"end"===i?S-D+H+K:"nearest"===i?a(M,D,I,B,H+K,S,S+O,O):S-(M+I/2)+K/2,z="start"===s?R-L-V:"center"===s?R-(L+T/2)+W/2:"end"===s?R-A+U+W:a(L,A,T,V,U+W,R,R+E,E);var Y=x.scrollLeft,G=x.scrollTop;S+=G-(q=Math.max(0,Math.min(G+q,x.scrollHeight-I+K))),R+=Y-(z=Math.max(0,Math.min(Y+z,x.scrollWidth-T+W)))}P.push({el:x,top:q,left:z})}return P}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(11),o=n.n(r),c=n(6),a=n.n(c),i=n(0),s=n(45);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=[".wp-block-woocommerce-cart"],d=function(e){var t=e.Block,n=e.containers,r=e.getProps,c=void 0===r?function(){}:r,a=e.getErrorBoundaryProps,u=void 0===a?function(){}:a;0!==n.length&&Array.prototype.forEach.call(n,(function(e,n){var r=c(e,n),a=u(e,n),p=l(l({},e.dataset),r.attributes);e.classList.remove("is-loading"),Object(i.render)(React.createElement(s.a,a,React.createElement(i.Suspense,{fallback:React.createElement("div",{className:"wc-block-placeholder"})},React.createElement(t,o()({},r,{attributes:p})))),e)}))},f=function(e){var t=e.Block,n=e.getProps,r=e.getErrorBoundaryProps,o=e.selector,c=e.wrappers,a=document.body.querySelectorAll(o);c.length>0&&Array.prototype.filter.call(a,(function(e){return!function(e,t){return Array.prototype.some.call(t,(function(t){return t.contains(e)&&!t.isSameNode(e)}))}(e,c)})),d({Block:t,containers:a,getProps:n,getErrorBoundaryProps:r})},m=function(e){var t=document.body.querySelectorAll(p.join(","));f(l(l({},e),{},{wrappers:t})),Array.prototype.forEach.call(t,(function(t){t.addEventListener("wc-blocks_render_blocks_frontend",(function(){var n,r,o,c,a,i;n=l(l({},e),{},{wrapper:t}),r=n.Block,o=n.getProps,c=n.getErrorBoundaryProps,a=n.selector,i=n.wrapper.querySelectorAll(a),d({Block:r,containers:i,getProps:o,getErrorBoundaryProps:c})}))}))}},function(e,t){},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return p}));var r=n(6),o=n.n(r),c=n(7);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s="add_event_callback",u="remove_event_callback",l={addEventCallback:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:Object(c.uniqueId)(),type:s,eventType:e,callback:t,priority:n}},removeEventCallback:function(e,t){return{id:t,type:u,eventType:e}}},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.eventType,c=t.id,a=t.callback,l=t.priority,p=new Map(e[r]);switch(n){case s:return p.set(c,{priority:l,callback:a}),i(i({},e),{},o()({},r,p));case u:return p.delete(c),i(i({},e),{},o()({},r,p))}return e}},,function(e,t,n){"use strict";var r=n(30),o=n.n(r),c=n(31),a=n.n(c),i=n(18),s=n.n(i),u=n(32),l=n.n(u),p=n(33),d=n.n(p),f=n(20),m=n.n(f),b=n(6),g=n.n(b),h=n(1),v=n(2),y=n(139),O=(n(4),n(8));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d()(this,n)}}var j=function(e){l()(n,e);var t=E(n);function n(){var e;o()(this,n);for(var r=arguments.length,c=new Array(r),a=0;a<r;a++)c[a]=arguments[a];return e=t.call.apply(t,[this].concat(c)),g()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(n,[{key:"render",value:function(){var e=this.state,t=e.hasError,n=e.errorMessage,r=this.props.isEditor;if(t){var o=Object(h.__)("This site is experiencing difficulties with this payment method. Please contact the owner of the site for assistance.","woo-gutenberg-products-block");(r||O.j)&&(o=n||Object(h.__)("There was an error with this payment method. Please verify it's configured correctly.","woo-gutenberg-products-block"));var c=[{id:"0",content:o,isDismissible:!1,status:"error"}];return React.createElement(y.a,{notices:c})}return this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{errorMessage:e.message,hasError:!0}}}]),n}(v.Component);j.defaultProps={isEditor:!1},t.a=j},function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return j}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=n(0),s=n(3),u=n(7),l=n(17);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=Object(s.getSetting)("checkoutData",{}),m={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},b=Object(u.mapValues)(f.billing_address,(function(e){return Object(l.decodeEntities)(e)})),g=d(d({},m),b),h={billingData:m,setBillingData:function(){return null}};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=Object(i.createContext)(h),E=function(){return Object(i.useContext)(O)},j=function(e){var t=e.children,n=Object(i.useState)(g),r=a()(n,2),o=r[0],c=r[1],s={billingData:o,setBillingData:Object(i.useCallback)((function(e){c((function(t){return y(y({},t),e)}))}),[])};return React.createElement(O.Provider,{value:s},t)}},function(e,t,n){"use strict";var r=n(5),o=n.n(r),c=n(100),a=n(6),i=n.n(a),s=n(94),u=function(e){var t,n=e.checked,r=e.name,c=e.onChange,a=e.option,u=a.value,l=a.label,p=a.description,d=a.secondaryLabel,f=a.secondaryDescription;return React.createElement("label",{className:"wc-block-components-radio-control__option",htmlFor:"".concat(r,"-").concat(u)},React.createElement("input",{id:"".concat(r,"-").concat(u),className:"wc-block-components-radio-control__input",type:"radio",name:r,value:u,onChange:function(e){return c(e.target.value)},checked:n,"aria-describedby":o()((t={},i()(t,"".concat(r,"-").concat(u,"__label"),l),i()(t,"".concat(r,"-").concat(u,"__secondary-label"),d),i()(t,"".concat(r,"-").concat(u,"__description"),p),i()(t,"".concat(r,"-").concat(u,"__secondary-description"),f),t))}),React.createElement(s.a,{id:"".concat(r,"-").concat(u),label:l,secondaryLabel:d,description:p,secondaryDescription:f}))};n(169),t.a=Object(c.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,c=e.selected,a=e.onChange,i=e.options,s=void 0===i?[]:i,l=r||n;return s.length&&React.createElement("div",{className:o()("wc-block-components-radio-control",t)},s.map((function(e){return React.createElement(u,{key:e.value,name:"radio-control-".concat(l),checked:e.value===c,option:e,onChange:function(t){a(t),"function"==typeof e.onChange&&e.onChange(t)}})})))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=(n(12),Object(r.createContext)({isEditor:!1,currentPostId:0,previewData:{}})),c=function(){return Object(r.useContext)(o)}},function(e,t,n){"use strict";var r=n(0),o=n(7),c=n(5),a=n.n(c),i=n(1),s=n(76),u=n(9),l=n(29);function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}var m=n(65),b=n(13);function g(e,t){return!t||"object"!==Object(m.a)(t)&&"function"!=typeof t?Object(b.a)(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}var O=n(24),E=n(47),j=n(49),w=n(82),_=n.n(w),k=n(28),S=n(22),R=function(){return"rtl"===document.documentElement.dir};function P(e,t,n,r){var o=t.width;"left"===n&&R()?n="right":"right"===n&&R()&&(n="left");var c,a=Math.round(e.left+e.width/2),i={popoverLeft:a,contentWidth:(a-o/2>0?o/2:a)+(a+o/2>window.innerWidth?window.innerWidth-a:o/2)},s="middle"===r?e.left:a,u={popoverLeft:s,contentWidth:s-o>0?o:s},l="middle"===r?e.right:a,p={popoverLeft:l,contentWidth:l+o>window.innerWidth?window.innerWidth-l:o},d=null;if("center"===n&&i.contentWidth===o)c="center";else if("left"===n&&u.contentWidth===o)c="left";else if("right"===n&&p.contentWidth===o)c="right";else{var f="left"===(c=u.contentWidth>p.contentWidth?"left":"right")?u.contentWidth:p.contentWidth;d=f!==o?f:null}return{xAxis:c,popoverLeft:"center"===c?i.popoverLeft:"left"===c?u.popoverLeft:p.popoverLeft,contentWidth:d}}function C(e,t,n){var r,o=t.height,c=e.top+e.height/2,a={popoverTop:c,contentHeight:(c-o/2>0?o/2:c)+(c+o/2>window.innerHeight?window.innerHeight-c:o/2)},i={popoverTop:e.top,contentHeight:e.top-10-o>0?o:e.top-10},s={popoverTop:e.bottom,contentHeight:e.bottom+10+o>window.innerHeight?window.innerHeight-10-e.bottom:o},u=null;if("middle"===n&&a.contentHeight===o)r="middle";else if("top"===n&&i.contentHeight===o)r="top";else if("bottom"===n&&s.contentHeight===o)r="bottom";else{var l="top"===(r=i.contentHeight>s.contentHeight?"top":"bottom")?i.contentHeight:s.contentHeight;u=l!==o?l:null}return{yAxis:r,popoverTop:"middle"===r?a.popoverTop:"top"===r?i.popoverTop:s.popoverTop,contentHeight:u}}var x=n(37),N=Object(r.createContext)({focusHistory:[]}),I=N.Provider,T=N.Consumer;I.displayName="FocusReturnProvider",T.displayName="FocusReturnConsumer";r.Component;var M=Object(k.createHigherOrderComponent)((function e(t){if((c=t)instanceof r.Component||"function"==typeof c){var n=t;return e({})(n)}var c,a=t.onFocusReturn,i=void 0===a?o.stubTrue:a;return function(e){var t=function(t){function n(){var e;return p(this,n),(e=g(this,h(n).apply(this,arguments))).ownFocusedElements=new Set,e.activeElementOnMount=document.activeElement,e.setIsFocusedFalse=function(){return e.isFocused=!1},e.setIsFocusedTrue=function(t){e.ownFocusedElements.add(t.target),e.isFocused=!0},e}return y(n,t),f(n,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==i())for(var r,c=[].concat(Object(x.a)(o.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(x.a)(n)))),[e]);r=c.pop();)if(document.body.contains(r))return void r.focus()}},{key:"render",value:function(){return Object(r.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(r.createElement)(e,this.props.childProps))}}]),n}(r.Component);return function(e){return Object(r.createElement)(T,null,(function(n){return Object(r.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn"),A=Object(k.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return p(this,n),(e=g(this,h(n).apply(this,arguments))).focusContainRef=Object(r.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(b.a)(e)),e}return y(n,t),f(n,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===j.TAB){var t=E.focus.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],r=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),r.focus()):(e.shiftKey||e.target!==r)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return Object(r.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(r.createElement)(e,this.props))}}]),n}(r.Component)}),"withConstrainedTabbing"),D=["button","submit"];var L=Object(k.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return p(this,n),(e=g(this,h(n).apply(this,arguments))).bindNode=e.bindNode.bind(Object(b.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(b.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(b.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(b.a)(e)),e}return y(n,t),f(n,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(o.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(o.includes)(D,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(r.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(r.createElement)(e,Object(u.a)({ref:this.bindNode},this.props)))}}]),n}(r.Component)}),"withFocusOutside")(function(e){function t(){return p(this,t),g(this,h(t).apply(this,arguments))}return y(t,e),f(t,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),t}(r.Component));var F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,o=e.className,c=void 0===o?"lockscroll":o,a=0,i=0;function s(e){var t=n.scrollingElement||n.body;e&&(i=t.scrollTop);var r=e?"add":"remove";t.classList[r](c),n.documentElement.classList[r](c),e||(t.scrollTop=i)}function u(){0===a&&s(!0),++a}function l(){1===a&&s(!1),--a}return function(e){function t(){return p(this,t),g(this,h(t).apply(this,arguments))}return y(t,e),f(t,[{key:"componentDidMount",value:function(){u()}},{key:"componentWillUnmount",value:function(){l()}},{key:"render",value:function(){return null}}]),t}(r.Component)}();function V(e){e.stopPropagation()}var B=Object(r.forwardRef)((function(e,t){var n=e.children,o=Object(l.a)(e,["children"]);return Object(r.createElement)("div",Object(u.a)({},o,{ref:t,onMouseDown:V}),n)})),U=Object(r.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),H=U.Provider,q=U.Consumer,z=(r.Component,0);function W(e){var t=e.name,n=e.children,c=e.registerFill,a=e.unregisterFill,i=function(e){var t=Object(r.useContext)(U),n=t.getSlot,o=t.subscribe,c=Object(r.useState)(n(e)),a=Object(O.a)(c,2),i=a[0],s=a[1];return Object(r.useEffect)((function(){return s(n(e)),o((function(){s(n(e))}))}),[e]),i}(t),s=Object(r.useRef)({name:t,children:n});return s.current.occurrence||(s.current.occurrence=++z),Object(r.useLayoutEffect)((function(){return c(t,s.current),function(){return a(t,s.current)}}),[]),Object(r.useLayoutEffect)((function(){s.current.children=n,i&&!i.props.bubblesVirtually&&i.forceUpdate()}),[n]),Object(r.useLayoutEffect)((function(){t!==s.current.name&&(a(s.current.name,s.current),s.current.name=t,c(t,s.current))}),[t]),i&&i.node&&i.props.bubblesVirtually?(Object(o.isFunction)(n)&&(n=n(i.props.fillProps)),Object(r.createPortal)(n,i.node)):null}var K=function(e){return Object(r.createElement)(q,null,(function(t){var n=t.registerFill,o=t.unregisterFill;return Object(r.createElement)(W,Object(u.a)({},e,{registerFill:n,unregisterFill:o}))}))},Y=function(e){function t(){var e;return p(this,t),(e=g(this,h(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(b.a)(e)),e}return y(t,e),f(t,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterSlot)(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,c=e.bubblesVirtually,a=void 0!==c&&c,i=e.fillProps,s=void 0===i?{}:i,u=e.getFills,l=e.className;if(a)return Object(r.createElement)("div",{ref:this.bindNode,className:l});var p=Object(o.map)(u(n,this),(function(e){var t=e.occurrence,n=Object(o.isFunction)(e.children)?e.children(s):e.children;return r.Children.map(n,(function(e,n){if(!e||Object(o.isString)(e))return e;var c="".concat(t,"---").concat(e.key||n);return Object(r.cloneElement)(e,{key:c})}))})).filter(Object(o.negate)(r.isEmptyElement));return Object(r.createElement)(r.Fragment,null,Object(o.isFunction)(t)?t(p):p)}}]),t}(r.Component),G=function(e){return Object(r.createElement)(q,null,(function(t){var n=t.registerSlot,o=t.unregisterSlot,c=t.getFills;return Object(r.createElement)(Y,Object(u.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:c}))}))},$=n(40);var Q=function(e){var t=e.type,n=e.options,r=void 0===n?{}:n,o=e.children;if("appear"===t){var c,i=r.origin,s=(void 0===i?"top":i).split(" "),u=Object(O.a)(s,2),l=u[0],p=u[1],d=void 0===p?"center":p;return o({className:a()("components-animate__appear",(c={},Object($.a)(c,"is-from-"+d,"center"!==d),Object($.a)(c,"is-from-"+l,"middle"!==l),c))})}if("slide-in"===t){var f=r.origin,m=void 0===f?"left":f;return o({className:a()("components-animate__slide-in","is-from-"+m)})}return o("loading"===t?{className:a()("components-animate__loading")}:{})},X=A(M((function(e){return e.children})));function Z(e,t){var n=window.getComputedStyle(t),r=n.paddingTop,o=n.paddingBottom,c=n.paddingLeft,a=n.paddingRight,i=r?parseInt(r,10):0,s=o?parseInt(o,10):0,u=c?parseInt(c,10):0,l=a?parseInt(a,10):0;return{x:e.left+u,y:e.top+i,width:e.width-u-l,height:e.height-i-s,left:e.left+u,right:e.right-l,top:e.top+i,bottom:e.bottom-s}}function J(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function te(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var ne=function(e){var t=e.headerTitle,n=e.onClose,o=e.onKeyDown,c=e.children,i=e.className,s=e.noArrow,p=void 0!==s&&s,d=e.position,f=void 0===d?"top":d,m=(e.range,e.focusOnMount),b=void 0===m?"firstElement":m,g=e.anchorRef,h=e.shouldAnchorIncludePadding,v=e.anchorVerticalBuffer,y=e.anchorHorizontalBuffer,w=e.anchorRect,R=e.getAnchorRect,x=e.expandOnMobile,N=e.animate,I=void 0===N||N,T=e.onClickOutside,M=e.onFocusOutside,A=Object(l.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorVerticalBuffer","anchorHorizontalBuffer","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside"]),D=Object(r.useRef)(null),V=Object(r.useRef)(null),U=Object(r.useRef)(),H=Object(r.useRef)(),z=Object(k.useViewportMatch)("medium","<"),W=Object(r.useState)(),Y=Object(O.a)(W,2),G=Y[0],$=Y[1],ne=x&&z;p=ne||p,Object(r.useEffect)((function(){var e=U.current,t=V.current;if(ne)return te(e,"is-without-arrow",p),J(e,"data-x-axis"),J(e,"data-y-axis"),ee(e,"top"),ee(e,"left"),ee(t,"maxHeight"),void ee(t,"maxWidth");var n=function(){var n=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!r)return;if(r instanceof window.Range)return Object(E.getRectangleFromRange)(r);var c=r.getBoundingClientRect();return o?c:Z(c,r)}if(e.current){var a=e.current.parentNode,i=a.getBoundingClientRect();return o?i:Z(i,a)}}(D,w,R,g,h);if(n){n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{x:e.left-n,y:e.top-t,width:e.width+2*n,height:e.height+2*t,left:e.left-n,right:e.right+n,top:e.top-t,bottom:e.bottom+t}}(n,v,y),H.current||(H.current=t.getBoundingClientRect());var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=n.split(" "),o=Object(O.a)(r,2),c=o[0],a=o[1],i=void 0===a?"center":a,s=C(e,t,c),u=P(e,t,i,s.yAxis);return Object(S.a)({},u,s)}(n,H.current,f),o=r.popoverTop,c=r.popoverLeft,a=r.xAxis,i=r.yAxis,s=r.contentHeight,u=r.contentWidth;te(e,"is-without-arrow",p||"center"===a&&"middle"===i),J(e,"data-x-axis",a),J(e,"data-y-axis",i),ee(e,"top","number"==typeof o?o+"px":""),ee(e,"left","number"==typeof c?c+"px":""),ee(t,"maxHeight","number"==typeof s?s+"px":""),ee(t,"maxWidth","number"==typeof u?u+"px":"");$(({left:"right",right:"left"}[a]||"center")+" "+({top:"bottom",bottom:"top"}[i]||"middle"))}},r=window.setTimeout(n),o=window.setInterval(n,500);return window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),function(){window.clearTimeout(r),window.clearInterval(o),window.removeEventListener("resize",n),window.removeEventListener("scroll",n,!0)}}),[ne,w,R,g,h,v,y,f]),function(e,t){Object(r.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=E.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(b,V);var re=function(e){e.keyCode===j.ESCAPE&&n&&(e.stopPropagation(),n()),o&&o(e)};var oe=Object(r.createElement)(L,{onFocusOutside:function(e){if(M)M(e);else if(T){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),_()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),T(t)}else n&&n()}},Object(r.createElement)(Q,{type:I&&G?"appear":null,options:{origin:G}},(function(e){var o=e.className;return Object(r.createElement)(B,Object(u.a)({className:a()("components-popover",i,o,{"is-expanded":ne,"is-without-arrow":p})},A,{onKeyDown:re,ref:U}),ne&&Object(r.createElement)("div",{className:"components-popover__header"},Object(r.createElement)("span",{className:"components-popover__header-title"},t),Object(r.createElement)(ie,{className:"components-popover__close",icon:"no-alt",onClick:n})),Object(r.createElement)("div",{ref:V,className:"components-popover__content",tabIndex:"-1"},c))})));return b&&(oe=Object(r.createElement)(X,null,oe)),Object(r.createElement)(q,null,(function(e){var t=e.getSlot;return t&&t("Popover")&&(oe=Object(r.createElement)(K,{name:"Popover"},oe)),Object(r.createElement)("span",{ref:D},oe,z&&x&&Object(r.createElement)(F,null))}))};ne.Slot=function(){return Object(r.createElement)(G,{bubblesVirtually:!0,name:"Popover"})};var re=ne;var oe=function(e){var t,n,c=e.shortcut,a=e.className;return c?(Object(o.isString)(c)&&(t=c),Object(o.isObject)(c)&&(t=c.display,n=c.ariaLabel),Object(r.createElement)("span",{className:a,"aria-label":n},t)):null},ce=function(e){function t(){var e;return p(this,t),(e=g(this,h(t).apply(this,arguments))).delayedSetIsOver=Object(o.debounce)((function(t){return e.setState({isOver:t})}),700),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return y(t,e),f(t,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===r.Children.count(n)){var o=r.Children.only(n);"function"==typeof o.props[e]&&o.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var c=Object(o.includes)(["focus","mouseenter"],r.type);c!==n.state.isOver&&(t?n.delayedSetIsOver(c):n.setState({isOver:c}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,o=e.text,c=e.shortcut;if(1!==r.Children.count(t))return t;var a=r.Children.only(t),i=this.state.isOver;return Object(r.cloneElement)(a,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(r.concatChildren)(a.props.children,i&&Object(r.createElement)(re,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1},o,Object(r.createElement)(oe,{className:"components-tooltip__shortcut",shortcut:c})))})}}]),t}(r.Component),ae=n(75);var ie=Object(r.forwardRef)((function(e,t){var n=e.icon,c=e.children,i=e.label,p=e.className,d=e.tooltip,f=e.shortcut,m=e.labelPosition,b=e.size,g=Object(l.a)(e,["icon","children","label","className","tooltip","shortcut","labelPosition","size"]),h=a()("components-icon-button",p,{"has-text":c}),v=d||i,y=!g.disabled&&(d||f||!!i&&(!c||Object(o.isArray)(c)&&!c.length)&&!1!==d),O=Object(r.createElement)(s.a,Object(u.a)({"aria-label":i},g,{className:h,ref:t}),Object(r.createElement)(ae.a,{icon:n,size:b}),c);return y&&(O=Object(r.createElement)(ce,{text:v,shortcut:f,position:m},O)),O}));t.a=function(e){var t=e.className,n=e.status,c=e.children,u=e.onRemove,l=void 0===u?o.noop:u,p=e.isDismissible,d=void 0===p||p,f=e.actions,m=void 0===f?[]:f,b=e.__unstableHTML,g=a()(t,"components-notice","is-"+n,{"is-dismissible":d});return b&&(c=Object(r.createElement)(r.RawHTML,null,c)),Object(r.createElement)("div",{className:g},Object(r.createElement)("div",{className:"components-notice__content"},c,m.map((function(e,t){var n=e.className,o=e.label,c=e.noDefaultClasses,i=void 0!==c&&c,u=e.onClick,l=e.url;return Object(r.createElement)(s.a,{key:t,href:l,isDefault:!i&&!l,isLink:!i&&!!l,onClick:l?void 0:u,className:a()("components-notice__action",n)},o)}))),d&&Object(r.createElement)(ie,{className:"components-notice__dismiss",icon:"no-alt",label:Object(i.__)("Dismiss this notice"),onClick:l,tooltip:!1}))}},,,function(e,t,n){"use strict";var r={globalLocale:"en-US",globalFormat:"$0,0.00",globalRoundingMode:"HALF_EVEN",globalFormatRoundingMode:"HALF_AWAY_FROM_ZERO",globalExchangeRatesApi:{endpoint:void 0,headers:void 0,propertyPath:void 0}};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i={normalizePrecision:function(e){var t=e.reduce((function(e,t){return Math.max(e.getPrecision(),t.getPrecision())}));return e.map((function(e){return e.getPrecision()!==t?e.convertPrecision(t):e}))},minimum:function(e){var t=c(e),n=t[0],r=t.slice(1),o=n;return r.forEach((function(e){o=o.lessThan(e)?o:e})),o},maximum:function(e){var t=c(e),n=t[0],r=t.slice(1),o=n;return r.forEach((function(e){o=o.greaterThan(e)?o:e})),o}};function s(e){return!isNaN(parseInt(e))&&isFinite(e)}function u(e){return e%2==0}function l(e){return s(e)&&!Number.isInteger(e)}function p(e){return Math.abs(e)%1==.5}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t)e.setRequestHeader(n,t[n]);return e}function f(e){return void 0===e}function m(){var e=function(e,t){var n=function(e){return Math.pow(10,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e.toString();if(t.indexOf("e-")>0)return parseInt(t.split("e-")[1]);var n=t.split(".")[1];return n?n.length:0}(e))},r=Math.max(n(e),n(t));return Math.round(e*r)*Math.round(t*r)/(r*r)},t={HALF_ODD:function(e){var t=Math.round(e);return p(e)&&u(t)?t-1:t},HALF_EVEN:function(e){var t=Math.round(e);return p(e)?u(t)?t:t-1:t},HALF_UP:function(e){return Math.round(e)},HALF_DOWN:function(e){return p(e)?Math.floor(e):Math.round(e)},HALF_TOWARDS_ZERO:function(e){return p(e)?Math.sign(e)*Math.floor(Math.abs(e)):Math.round(e)},HALF_AWAY_FROM_ZERO:function(e){return p(e)?Math.sign(e)*Math.ceil(Math.abs(e)):Math.round(e)},DOWN:function(e){return Math.floor(e)}};return{add:function(e,t){return e+t},subtract:function(e,t){return e-t},multiply:function(t,n){return l(t)||l(n)?e(t,n):t*n},divide:function(e,t){return e/t},modulo:function(e,t){return e%t},round:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HALF_EVEN";return t[n](e)}}}var b=m();function g(e){var t=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(e);return{getMatches:function(){return null!==t?t.slice(1).filter((function(e){return!f(e)})):[]},getMinimumFractionDigits:function(){var e=function(e){return"."===e};return f(this.getMatches().find(e))?0:this.getMatches()[b.add(this.getMatches().findIndex(e),1)].split("").length},getCurrencyDisplay:function(){return{USD:"code",dollar:"name",$:"symbol"}[this.getMatches().find((function(e){return"USD"===e||"dollar"===e||"$"===e}))]},getStyle:function(){return f(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!f(this.getMatches().find((function(e){return","===e})))}}}function h(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;for(var n in t)e=e.replace("{{".concat(n,"}}"),t[n]);return e},n=function(n,r){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){var o=Object.assign(new XMLHttpRequest,{onreadystatechange:function(){4===o.readyState&&(o.status>=200&&o.status<400?n(JSON.parse(o.responseText)):r(new Error(o.statusText)))},onerror:function(){r(new Error("Network error"))}});o.open("GET",e,!0),d(o,t.headers),o.send()}))}(t(e.endpoint,{from:n,to:r}),{headers:e.headers})};return{getExchangeRate:function(r,c){return(a=e.endpoint,!Boolean(a)||"object"!==o(a)&&"function"!=typeof a||"function"!=typeof a.then?n(r,c):e.endpoint).then((function(n){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",r={};return Object.entries(t).forEach((function(t){if("object"===o(t[1])){var c=e(t[1]);Object.entries(c).forEach((function(e){r[t[0]+n+e[0]]=e[1]}))}else r[t[0]]=t[1]})),r}(n)[t(e.propertyPath,{from:r,to:c})]}));var a}}}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Error;if(!e)throw new n(t)}function y(e){v(function(e){return s(e)&&e<=100&&e>=0}(e),"You must provide a numeric value between 0 and 100.",RangeError)}function O(e){v(Number.isInteger(e),"You must provide an integer.",TypeError)}var E=m(),j=Object.assign((function e(t){var n=Object.assign({},{amount:e.defaultAmount,currency:e.defaultCurrency,precision:e.defaultPrecision},t),r=n.amount,o=n.currency,c=n.precision;O(r),O(c);var a=e.globalLocale,i=e.globalFormat,s=e.globalRoundingMode,u=e.globalFormatRoundingMode,l=Object.assign({},e.globalExchangeRatesApi),p=function(t){var n=Object.assign({},Object.assign({},{amount:r,currency:o,precision:c},t),Object.assign({},{locale:this.locale},t));return Object.assign(e({amount:n.amount,currency:n.currency,precision:n.precision}),{locale:n.locale})},d=function(e){v(this.hasSameCurrency(e),"You must provide a Dinero instance with the same currency.",TypeError)};return{getAmount:function(){return r},getCurrency:function(){return o},getLocale:function(){return this.locale||a},setLocale:function(e){return p.call(this,{locale:e})},getPrecision:function(){return c},convertPrecision:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return O(e),p.call(this,{amount:E.round(E.multiply(this.getAmount(),Math.pow(10,E.subtract(e,this.getPrecision()))),t),precision:e})},add:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return p.call(this,{amount:E.add(n[0].getAmount(),n[1].getAmount()),precision:n[0].getPrecision()})},subtract:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return p.call(this,{amount:E.subtract(n[0].getAmount(),n[1].getAmount()),precision:n[0].getPrecision()})},multiply:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return p.call(this,{amount:E.round(E.multiply(this.getAmount(),e),t)})},divide:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return p.call(this,{amount:E.round(E.divide(this.getAmount(),e),t)})},percentage:function(e){return y(e),this.multiply(E.divide(e,100))},allocate:function(e){var t=this;!function(e){v(function(e){return e.length>0&&e.every((function(e){return e>=0}))&&e.some((function(e){return e>0}))}(e),"You must provide a non-empty array of numeric values greater than 0.",TypeError)}(e);for(var n=e.reduce((function(e,t){return E.add(e,t)})),r=this.getAmount(),o=e.map((function(e){var o=Math.floor(E.divide(E.multiply(t.getAmount(),e),n));return r=E.subtract(r,o),p.call(t,{amount:o})})),c=0;r>0;)e[c]>0&&(o[c]=o[c].add(p.call(this,{amount:1})),r=E.subtract(r,1)),c+=1;return o},convert:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.endpoint,o=void 0===r?l.endpoint:r,c=n.propertyPath,a=void 0===c?l.propertyPath||"rates.{{to}}":c,i=n.headers,u=void 0===i?l.headers:i,d=n.roundingMode,m=void 0===d?s:d,b=Object.assign({},{endpoint:o,propertyPath:a,headers:u,roundingMode:m});return h(b).getExchangeRate(this.getCurrency(),e).then((function(n){return v(!f(n),'No rate was found for the destination currency "'.concat(e,'".'),TypeError),p.call(t,{amount:E.round(E.multiply(t.getAmount(),parseFloat(n)),b.roundingMode),currency:e})}))},equalsTo:function(e){return this.hasSameAmount(e)&&this.hasSameCurrency(e)},lessThan:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()<n[1].getAmount()},lessThanOrEqual:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()<=n[1].getAmount()},greaterThan:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()>n[1].getAmount()},greaterThanOrEqual:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()>=n[1].getAmount()},isZero:function(){return 0===this.getAmount()},isPositive:function(){return this.getAmount()>=0},isNegative:function(){return this.getAmount()<0},hasSubUnits:function(){return 0!==E.modulo(this.getAmount(),Math.pow(10,c))},hasCents:function(){return 0!==E.modulo(this.getAmount(),Math.pow(10,c))},hasSameCurrency:function(e){return this.getCurrency()===e.getCurrency()},hasSameAmount:function(t){var n=e.normalizePrecision([this,t]);return n[0].getAmount()===n[1].getAmount()},toFormat:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=g(e);return this.toRoundedUnit(n.getMinimumFractionDigits(),t).toLocaleString(this.getLocale(),{currencyDisplay:n.getCurrencyDisplay(),useGrouping:n.getUseGrouping(),minimumFractionDigits:n.getMinimumFractionDigits(),style:n.getStyle(),currency:this.getCurrency()})},toUnit:function(){return E.divide(this.getAmount(),Math.pow(10,c))},toRoundedUnit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=Math.pow(10,e);return E.divide(E.round(E.multiply(this.toUnit(),n),t),n)},toObject:function(){return{amount:r,currency:o,precision:c}},toJSON:function(){return this.toObject()}}}),{defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2},r,i);t.a=j},function(e,t){},,,function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(14),a=n.n(c),i=n(50),s=function(e){var t=e.className,n=e.size,r=a()(e,["className","size"]);return React.createElement(i.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:n,height:n},r),React.createElement("path",{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))},u=React.createElement(s,null);t.a=u},function(e,t,n){"use strict";var r=n(6),o=n.n(r),c=n(14),a=n.n(c),i=n(2);n(4);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.srcElement,n=e.size,r=void 0===n?24:n,c=a()(e,["srcElement","size"]);return Object(i.isValidElement)(t)&&Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},c))}},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=n(3),c=n(15),a=n(12);t.a=function(e){return function(t){var n;return n=Object(r.useRef)(Object(o.getSetting)("restApiRoutes")),Object(a.useSelect)((function(e,t){if(n.current){var r=e(c.SCHEMA_STORE_KEY),o=r.isResolving,a=r.hasFinishedResolution,i=t.dispatch(c.SCHEMA_STORE_KEY),s=i.receiveRoutes,u=i.startResolution,l=i.finishResolution;Object.keys(n.current).forEach((function(e){var t=n.current[e];o("getRoutes",[e])||a("getRoutes",[e])||(u("getRoutes",[e]),s(t,[e]),l("getRoutes",[e]))}))}}),[]),React.createElement(e,t)}}},function(e,t,n){"use strict";
7
  /** @license React v16.13.1
8
  * react-is.production.min.js
9
  *
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t,n){"use strict";n.d(t,"j",(function(){return o})),n.d(t,"w",(function(){return c})),n.d(t,"A",(function(){return a})),n.d(t,"t",(function(){return i})),n.d(t,"n",(function(){return s})),n.d(t,"q",(function(){return u})),n.d(t,"i",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"k",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"o",(function(){return g})),n.d(t,"p",(function(){return h})),n.d(t,"E",(function(){return y})),n.d(t,"F",(function(){return O})),n.d(t,"x",(function(){return E})),n.d(t,"a",(function(){return j})),n.d(t,"y",(function(){return w})),n.d(t,"b",(function(){return _})),n.d(t,"s",(function(){return k})),n.d(t,"g",(function(){return S})),n.d(t,"z",(function(){return C})),n.d(t,"h",(function(){return x})),n.d(t,"v",(function(){return N})),n.d(t,"u",(function(){return I})),n.d(t,"D",(function(){return T})),n.d(t,"C",(function(){return M})),n.d(t,"d",(function(){return A})),n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return L})),n.d(t,"r",(function(){return F})),n.d(t,"G",(function(){return V}));var r=n(3),o=Object(r.getSetting)("currentUserIsAdmin",!1),c=Object(r.getSetting)("reviewRatingsEnabled",!0),a=Object(r.getSetting)("showAvatars",!0),i=(Object(r.getSetting)("max_columns",6),Object(r.getSetting)("min_columns",1),Object(r.getSetting)("default_columns",3),Object(r.getSetting)("max_rows",6),Object(r.getSetting)("min_rows",1),Object(r.getSetting)("default_rows",3),Object(r.getSetting)("min_height",500),Object(r.getSetting)("default_height",500),Object(r.getSetting)("placeholderImgSrc","")),s=(Object(r.getSetting)("thumbnail_size",300),Object(r.getSetting)("isLargeCatalog")),u=Object(r.getSetting)("limitTags"),l=(Object(r.getSetting)("hasProducts",!0),Object(r.getSetting)("hasTags",!0),Object(r.getSetting)("homeUrl",""),Object(r.getSetting)("couponsEnabled",!0)),p=(Object(r.getSetting)("shippingEnabled",!0),Object(r.getSetting)("taxesEnabled",!0)),d=Object(r.getSetting)("displayItemizedTaxes",!1),f=Object(r.getSetting)("hasDarkEditorStyleSupport",!1),m=(Object(r.getSetting)("displayShopPricesIncludingTax",!1),Object(r.getSetting)("displayCartPricesIncludingTax",!1)),b=(Object(r.getSetting)("productCount",0),Object(r.getSetting)("attributes",[])),g=Object(r.getSetting)("isShippingCalculatorEnabled",!0),h=Object(r.getSetting)("isShippingCostHidden",!1),v=Object(r.getSetting)("woocommerceBlocksPhase",1),y=Object(r.getSetting)("wcBlocksAssetUrl",""),O=Object(r.getSetting)("wcBlocksBuildUrl",""),E=Object(r.getSetting)("shippingCountries",{}),j=Object(r.getSetting)("allowedCountries",{}),w=Object(r.getSetting)("shippingStates",{}),_=Object(r.getSetting)("allowedStates",{}),k=(Object(r.getSetting)("shippingMethodsExist",!1),Object(r.getSetting)("paymentGatewaySortOrder",[])),S=Object(r.getSetting)("checkoutShowLoginReminder",!0),R={id:0,title:"",permalink:""},P=Object(r.getSetting)("storePages",{shop:R,cart:R,checkout:R,privacy:R,terms:R}),C=P.shop.permalink,x=(P.checkout.id,P.checkout.permalink),N=P.privacy.permalink,I=P.privacy.title,T=P.terms.permalink,M=P.terms.title,A=(P.cart.id,P.cart.permalink),D=Object(r.getSetting)("checkoutAllowsGuest",!1),L=Object(r.getSetting)("checkoutAllowsSignup",!1),F=Object(r.getSetting)("loginUrl","/wp-login.php"),V=(n(39),function(){return v>1})},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(71),o=n(72),c=n(54),a=n(73);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||a()}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(56);e.exports=function(e,t){if(null==e)return{};var n,o,c=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},,function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(40);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Object(r.a)(e,t,n[t])}))}return e}},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(53);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(26);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(60);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(25),o=n(18);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){"use strict";var r=n(6),o=n.n(r),c=(n(4),n(2)),a=n(5),i=n.n(a);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t,n=e.label,r=e.screenReaderLabel,o=e.wrapperElement,a=e.wrapperProps,s=void 0===a?{}:a,l=null!=n,p=null!=r;return!l&&p?(t=o||"span",s=u(u({},s),{},{className:i()(s.className,"screen-reader-text")}),React.createElement(t,s,r)):(t=o||c.Fragment,l&&p&&n!==r?React.createElement(t,s,React.createElement("span",{"aria-hidden":"true"},n),React.createElement("span",{className:"screen-reader-text"},r)):React.createElement(t,s,n))}},function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(27),c=n.n(o),a=function(e){var t=Object(r.useRef)();return c()(e,t.current)||(t.current=e),t.current}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(46);var o=n(53);function c(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(6),a=n.n(c),i=n(14),s=n.n(i),u=n(101),l=n(5),p=n.n(l);n(123);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.className,n=e.value,r=e.currency,c=e.onValueChange,a=s()(e,["className","value","currency","onValueChange"]);if("-"===n)return null;var i=n/Math.pow(10,r.minorUnit);if(!Number.isFinite(i))return null;var l=p()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),d=f(f(f({displayType:"text"},a),function(e){return{thousandSeparator:e.thousandSeparator,decimalSeparator:e.decimalSeparator,decimalScale:e.minorUnit,fixedDecimalScale:!0,prefix:e.prefix,suffix:e.suffix,isNumericString:!0}}(r)),{},{value:void 0,currency:void 0,onValueChange:void 0}),m=c?function(e){var t=e.value*Math.pow(10,r.minorUnit);c(t)}:function(){};return React.createElement(u.a,o()({className:l},d,{value:i,onValueChange:m}))}},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n(4);var r=n(5),o=n.n(r),c=n(0),a=n(38);n(164);t.a=function(e){var t=e.className,n=e.currency,r=e.label,i=e.value,s=e.description;return React.createElement("div",{className:o()("wc-block-components-totals-item",t)},React.createElement("span",{className:"wc-block-components-totals-item__label"},r),Object(c.isValidElement)(i)?React.createElement("div",{className:"wc-block-components-totals-item__value"},i):React.createElement(a.a,{className:"wc-block-components-totals-item__value",currency:n,displayType:"text",value:i}),React.createElement("div",{className:"wc-block-components-totals-item__description"},s))}},function(e,t,n){var r=n(91),o=n(92),c=n(54),a=n(93);e.exports=function(e){return r(e)||o(e)||c(e)||a()}},,function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){"use strict";var r=n(30),o=n.n(r),c=n(31),a=n.n(c),i=n(18),s=n.n(i),u=n(32),l=n.n(u),p=n(33),d=n.n(p),f=n(20),m=n.n(f),b=n(6),g=n.n(b),h=(n(4),n(2)),v=n(1),y=n(8),O=function(e){var t=e.imageUrl,n=void 0===t?"".concat(y.E,"img/block-error.svg"):t,r=e.header,o=void 0===r?Object(v.__)("Oops!","woo-gutenberg-products-block"):r,c=e.text,a=void 0===c?Object(v.__)("There was an error loading the content.","woo-gutenberg-products-block"):c,i=e.errorMessage,s=e.errorMessagePrefix,u=void 0===s?Object(v.__)("Error:","woo-gutenberg-products-block"):s;return React.createElement("div",{className:"wc-block-error wc-block-components-error"},n&&React.createElement("img",{className:"wc-block-error__image wc-block-components-error__image",src:n,alt:""}),React.createElement("div",{className:"wc-block-error__content wc-block-components-error__content"},o&&React.createElement("p",{className:"wc-block-error__header wc-block-components-error__header"},o),a&&React.createElement("p",{className:"wc-block-error__text wc-block-components-error__text"},a),i&&React.createElement("p",{className:"wc-block-error__message wc-block-components-error__message"},u?u+" ":"",i)))};n(63);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d()(this,n)}}var j=function(e){l()(n,e);var t=E(n);function n(){var e;o()(this,n);for(var r=arguments.length,c=new Array(r),a=0;a<r;a++)c[a]=arguments[a];return e=t.call.apply(t,[this].concat(c)),g()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.header,n=e.imageUrl,r=e.showErrorMessage,o=e.text,c=e.errorMessagePrefix,a=this.state,i=a.errorMessage;return a.hasError?React.createElement(O,{errorMessage:r?i:null,header:t,imageUrl:n,text:o,errorMessagePrefix:c}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:React.createElement(h.Fragment,null,React.createElement("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}}]),n}(h.Component);j.defaultProps={showErrorMessage:!0};t.a=j},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.dom}()},,function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(22),o=n(7),c=n(0),a=function(e){var t=Object(r.a)({},e,{role:"img","aria-hidden":"true",focusable:"false"});return Object(c.createElement)("svg",Object(o.omit)(t,"__unstableActive"))}},function(e,t){function n(e,t,n,r,o,c,a){try{var i=e[c](a),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var a=e.apply(t,r);function i(e){n(a,o,c,i,s,"next",e)}function s(e){n(a,o,c,i,s,"throw",e)}i(void 0)}))}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(46);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){var r=n(55);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=n(0),s=n(7),u=n(27),l=n.n(u);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=Object(i.createContext)({getValidationError:function(){return""},setValidationErrors:function(e){},clearValidationError:function(e){},clearAllValidationErrors:function(){},hideValidationError:function(){},showValidationError:function(){},showAllValidationErrors:function(){},hasValidationErrors:!1,getValidationErrorId:function(e){return e}}),m=function(){return Object(i.useContext)(f)},b=function(e){var t=e.children,n=Object(i.useState)({}),r=a()(n,2),c=r[0],u=r[1],p=Object(i.useCallback)((function(e){return c[e]}),[c]),m=Object(i.useCallback)((function(e){var t=c[e];return!t||t.hidden?"":"validate-error-".concat(e)}),[c]),b=Object(i.useCallback)((function(e){u((function(t){return t[e]?Object(s.omit)(t,[e]):t}))}),[]),g=Object(i.useCallback)((function(){u({})}),[]),h=Object(i.useCallback)((function(e){e&&u((function(t){return e=Object(s.pickBy)(e,(function(e,n){return"string"==typeof e.message&&(!t.hasOwnProperty(n)||!l()(t[n],e))})),0===Object.values(e).length?t:d(d({},t),e)}))}),[]),v=Object(i.useCallback)((function(e,t){u((function(n){if(!n.hasOwnProperty(e))return n;var r=d(d({},n[e]),t);return l()(n[e],r)?n:d(d({},n),{},o()({},e,r))}))}),[]),y={getValidationError:p,setValidationErrors:h,clearValidationError:b,clearAllValidationErrors:g,hideValidationError:Object(i.useCallback)((function(e){v(e,{hidden:!0})}),[v]),showValidationError:Object(i.useCallback)((function(e){v(e,{hidden:!1})}),[v]),showAllValidationErrors:Object(i.useCallback)((function(){u((function(e){var t={};return Object.keys(e).forEach((function(n){e[n].hidden&&(t[n]=d(d({},e[n]),{},{hidden:!1}))})),0===Object.values(t).length?e:d(d({},e),t)}))}),[]),hasValidationErrors:Object.keys(c).length>0,getValidationErrorId:m};return React.createElement(f.Provider,{value:y},t)}},,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(62);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,a){if(a!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){},function(e,t,n){"use strict";var r=n(10),o=n.n(r),c=n(2),a=(n(4),n(5)),i=n.n(a),s=n(0),u=n(34),l=(n(135),Object(c.forwardRef)((function(e,t){var n=e.className,r=e.id,c=e.type,a=void 0===c?"text":c,l=e.ariaLabel,p=e.ariaDescribedBy,d=e.label,f=e.screenReaderLabel,m=e.disabled,b=e.help,g=e.autoCapitalize,h=void 0===g?"off":g,v=e.autoComplete,y=void 0===v?"off":v,O=e.value,E=void 0===O?"":O,j=e.onChange,w=e.required,_=void 0!==w&&w,k=e.onBlur,S=void 0===k?function(){}:k,R=e.feedback,P=Object(s.useState)(!1),C=o()(P,2),x=C[0],N=C[1];return React.createElement("div",{className:i()("wc-block-components-text-input",n,{"is-active":x||E})},React.createElement("input",{type:a,id:r,value:E,ref:t,autoCapitalize:h,autoComplete:y,onChange:function(e){j(e.target.value)},onFocus:function(){return N(!0)},onBlur:function(){S(),N(!1)},"aria-label":l||d,disabled:m,"aria-describedby":b&&!p?r+"__help":p,required:_}),React.createElement(u.a,{label:d,screenReaderLabel:f||d,wrapperElement:"label",wrapperProps:{htmlFor:r},htmlFor:r}),!!b&&React.createElement("p",{id:r+"__help",className:"wc-block-components-text-input__help"},b),R)})));t.a=l},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1),o=(n(4),n(5)),c=n.n(o),a=n(0);function i(){return Object(a.createElement)("span",{className:"components-spinner"})}n(158),t.a=function(e){var t=e.children,n=e.className,o=e.screenReaderLabel,a=e.showSpinner,s=void 0!==a&&a,u=e.isLoading;return void 0===u||u?React.createElement("div",{className:c()(n,"wc-block-components-loading-mask")},s&&React.createElement(i,null),React.createElement("div",{className:"wc-block-components-loading-mask__children","aria-hidden":!0},t),React.createElement("span",{className:"screen-reader-text"},o||Object(r.__)("Loading…","woo-gutenberg-products-block"))):t}},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(11)),c=r(n(56)),a=n(2),i=r(a),s=r(n(110)),u=r(n(18)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function p(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function d(e,t){return l.und(e)||l.nul(e)?t:e}function f(e){return l.und(e)?[]:l.arr(e)?e:[e]}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.fun(e)?e.apply(void 0,n):e}function b(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(l.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var c;return l.und(t[r])?o({},n,((c={})[r]=e[r],c)):n}),{});return o({to:t},n)}var g,h,v=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.addChild(u(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(u(t))}))},t}return s(t,e),t}(v),O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.addChild(u(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(u(t))}))},t}s(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof v)&&(t[n]=r instanceof v?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(v);function E(e,t){g={fn:e,transform:t}}function j(e){h=e}var w,_=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},k=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){w=e}var R,P=function(){return Date.now()};function C(e){R=e}var x,N,I=function(e){return e.current};function T(e){x=e}var M=Object.freeze({get applyAnimatedValues(){return g},injectApplyAnimatedValues:E,get colorNames(){return h},injectColorNames:j,get requestFrame(){return _},get cancelFrame(){return k},injectFrame:function(e,t){_=e,k=t},get interpolation(){return w},injectStringInterpolator:S,get now(){return P},injectNow:function(e){P=e},get defaultElement(){return R},injectDefaultElement:C,get animatedApi(){return I},injectAnimatedApi:function(e){I=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:T,get manualFrameloop(){return N},injectManualFrameloop:function(e){N=e}}),A=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:x(t.style)}):t,r.update=n,r.attach(),r}return s(t,e),t}(O),D=!1,L=new Set,F=function e(){if(!D)return!1;var t=P(),n=L,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var c;if(r){if(o>=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var a=c,i=!1,s=0;s<a.configs.length;s++){for(var u=a.configs[s],l=void 0,p=void 0,d=0;d<u.animatedValues.length;d++){var f=u.animatedValues[d];if(!f.done){var m=u.fromValues[d],b=u.toValues[d],g=f.lastPosition,h=b instanceof v,y=Array.isArray(u.initialVelocity)?u.initialVelocity[d]:u.initialVelocity;if(h&&(b=b.getValue()),u.immediate)f.setValue(b),f.done=!0;else if("string"!=typeof m&&"string"!=typeof b){if(void 0!==u.duration)g=m+u.easing((t-f.startTime)/u.duration)*(b-m),l=t>=f.startTime+u.duration;else if(u.decay)g=m+y/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(l=Math.abs(f.lastPosition-g)<.1)&&(b=g);else{p=void 0!==f.lastTime?f.lastTime:t,y=void 0!==f.lastVelocity?f.lastVelocity:u.initialVelocity,t>p+64&&(p=t);for(var O=Math.floor(t-p),E=0;E<O;++E){g+=1*(y+=1*((-u.tension*(g-b)+-u.friction*y)/u.mass)/1e3)/1e3}var j=!(!u.clamp||0===u.tension)&&(m<b?g>b:g<b),w=Math.abs(y)<=u.precision,k=0===u.tension||Math.abs(b-g)<=u.precision;l=j||w&&k,f.lastVelocity=y,f.lastTime=t}h&&!u.toValues[d].done&&(l=!1),l?(f.value!==b&&(g=b),f.done=!0):i=!0,f.setValue(g),f.lastPosition=g}else f.setValue(b),f.done=!0}}a.props.onFrame&&(a.values[u.name]=u.interpolation.getValue())}a.props.onFrame&&a.props.onFrame(a.values),i||(L.delete(a),a.stop(!0))}return L.size?N?N():_(e):D=!1,D};function V(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return V({range:e,output:t,extrapolate:n});if(w&&"string"==typeof e.output[0])return w(e);var r=e,o=r.output,c=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",i=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,a,i,s){var u=s?s(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===i)return u;"clamp"===i&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=c(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,c[t],c[t+1],o[t],o[t+1],s,a,i,r.map)}}var B=function(e){function t(n,r,o,c){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof y&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=V(r,o,c),a}s(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=V(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(y);var U=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}s(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(v),H=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new U(e)})),n}s(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(y),q=0,z=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=q++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=b(e),n=t.delay,r=void 0===n?0:n,a=t.to,i=c(t,["delay","to"]);if(l.arr(a)||l.fun(a))this.queue.push(o({},i,{delay:r,to:a}));else if(a){var s={};Object.entries(a).forEach((function(e){var t,n=e[0],c=e[1],a=o({to:(t={},t[n]=c,t),delay:m(r,n)},i),u=s[a.delay]&&s[a.delay].to;s[a.delay]=o({},s[a.delay],a,{to:o({},u,a.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(i),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,c=e.to,a=void 0===c?{}:c;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var i=t.delay,s=c(t,["delay"]),u=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},p=l.arr(s.to)||l.fun(s.to);i?setTimeout((function(){r===n.guid&&(p?n.runAsync(s,u):n.diff(s).start(u))}),i):p?n.runAsync(s,u):n.diff(s).start(u)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,L.has(t)||L.add(t),D||(D=!0,_(N||F));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,L.has(t)&&L.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),a=this.local,i=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,c=o({},r,b(r.to[t]));l.arr(c.config)&&(c.config=c.config[t]),i=i.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},u=0;u<r.to.length;u++)s(u);else if(l.fun(r.to)){var p,d=0;i=i.then((function(){return r.to((function(e){var t=o({},r,b(e));if(l.arr(t.config)&&(t.config=t.config[d]),d++,a===n.guid)return p=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return p}))}))}i.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,c=void 0===r?{}:r,a=n.to,i=void 0===a?{}:a,s=n.config,u=void 0===s?{}:s,p=n.reverse,b=n.attach,g=n.reset,v=n.immediate;if(p){var y=[i,c];c=y[0],i=y[1]}this.merged=o({},c,this.merged,i),this.hasChanged=!1;var O=b&&b(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],a=n[1],i=e[r]||{},s=l.num(a),p=l.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!h[a],b=l.arr(a),y=!s&&!b&&!p,E=l.und(c[r])?a:c[r],j=s||b||p?a:1,_=m(u,r);O&&(j=O.animations[r].parent);var k,S=i.parent,R=i.interpolation,C=f(O?j.getPayload():j),x=a;y&&(x=w({range:[0,1],output:[a,a]})(1));var N,I=R&&R.getValue(),T=!l.und(S)&&i.animatedValues.some((function(e){return!e.done})),M=!l.equ(x,I),A=!l.equ(x,i.previous),D=!l.equ(_,i.config);if(g||A&&M||D){var L;if(s||p)S=R=i.parent||new U(E);else if(b)S=R=i.parent||new H(E);else if(y){var F=i.interpolation&&i.interpolation.calc(i.parent.value);F=void 0===F||g?E:F,i.parent?(S=i.parent).setValue(0,!1):S=new U(0);var V={output:[F,a]};i.interpolation?(R=i.interpolation,i.interpolation.updateConfig(V)):R=S.interpolate(V)}return C=f(O?j.getPayload():j),k=f(S.getPayload()),g&&!y&&S.setValue(E,!1),t.hasChanged=!0,k.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=T?e.lastVelocity:void 0,e.lastTime=T?e.lastTime:void 0,e.startTime=P(),e.done=!1,e.animatedStyles.clear()})),m(v,r)&&S.setValue(y?j:a,!1),o({},e,((L={})[r]=o({},i,{name:r,parent:S,interpolation:R,animatedValues:k,toValues:C,previous:x,config:_,fromValues:f(S.getValue()),immediate:m(v,r),initialVelocity:d(_.velocity,0),clamp:d(_.clamp,!1),precision:d(_.precision,.01),tension:d(_.tension,170),friction:d(_.friction,26),mass:d(_.mass,1),duration:_.duration,easing:d(_.easing,(function(e){return e})),decay:_.decay}),L))}return M?e:(y&&(S.setValue(1,!1),R.updateConfig({output:[x,x]})),S.done=!0,t.hasChanged=!0,o({},e,((N={})[r]=o({},e[r],{previous:x}),N)))}),this.animations),this.hasChanged)for(var E in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[E]=this.animations[E].interpolation,this.values[E]=this.animations[E].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),W=function(e,t){var n=a.useRef(!1),r=a.useRef(),o=l.fun(t),c=a.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var c=new z,a=o?m(t,r,c):t[r];return 0===r&&(n=a.ref),c.update(a),n||c.start(),c})),n]}),[e]),i=c[0],s=c[1];r.current=i;a.useImperativeHandle(s,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var u=a.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?m(e,n,t):e[n]),s||t.start()}))}}),[e]);a.useEffect((function(){n.current?o||u(t):s||r.current.forEach((function(e){return e.start()}))})),a.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var p=r.current.map((function(e){return e.getValues()}));return o?[p,u,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:p},K=0,Y=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},G=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,a=c(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:Y(t,r)},a)};function $(e,t){var n=function(){if(o){if(c>=r.length)return"break";a=r[c++]}else{if((c=r.next()).done)return"break";a=c.value}var n=a.key,i=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(i),e.current.deleted=e.current.deleted.filter(i))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var Q=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=g.transform(t)),n.payload=t,n}return s(t,e),t}(O),X={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Z="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(Z,Z,Z)),te=new RegExp("rgba"+J(Z,Z,Z,Z)),ne=new RegExp("hsl"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,ie=/^#([0-9a-fA-F]{8})$/;function se(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=se(o,r,e+1/3),a=se(o,r,e),i=se(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*a)<<16|Math.round(255*i)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function pe(e){return(parseFloat(e)%360+360)%360/360}function de(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:X.hasOwnProperty(t)?X[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|de(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ie.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|ue(pe(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(ue(pe(n[1]),fe(n[2]),fe(n[3]))|de(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var be=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ge=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,he=new RegExp("("+Object.keys(X).join("|")+")","g"),ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}ve=Object.keys(ve).reduce((function(e,t){return ye.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ve);var Ee={};T((function(e){return new Q(e)})),C("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ge,me)})).map((function(e){return e.replace(he,me)})),n=t[0].match(be).map((function(){return[]}));t.forEach((function(e){e.match(be).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(be).map((function(t,r){return V(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(be,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),j(X),E((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,i=c(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),p=Oe(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,p):e.style[u]=p}for(var d in i){var f=s?d:Ee[d]||(Ee[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,i[d])}}),(function(e){return e}));var je,we,_e=(je=function(e){return a.forwardRef((function(t,n){var r=p(),s=a.useRef(!0),u=a.useRef(null),d=a.useRef(null),f=a.useCallback((function(e){var t=u.current;u.current=new A(e,(function(){var e=!1;d.current&&(e=g.fn(d.current,u.current.getAnimatedValue())),d.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return I(d,s,r)})),f(t);var m,b=u.current.getValue(),h=(b.scrollTop,b.scrollLeft,c(b,["scrollTop","scrollLeft"])),v=(m=e,!l.fun(m)||m.prototype instanceof i.Component?function(e){return d.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return i.createElement(e,o({},h,{ref:v}))}))},void 0===(we=!1)&&(we=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=we?t[0].toLowerCase()+t.substring(1):t;return e[n]=je(n),e}),je)}),ke=_e(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=_e,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=F,t.animated=ke,t.a=ke,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=M,t.useSpring=function(e){var t=l.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=a.useRef(!1),r=l.fun(t),c=m(t),i=a.useRef(),s=W(e,(function(e,t){return 0===e&&(i.current=[]),i.current.push(t),o({},c,{config:m(c.config,e),attach:e>0&&function(){return i.current[e-1]}})})),u=s[0],p=s[1],d=s[2],f=a.useMemo((function(){return function(e){return p((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=i.current[r];return o({},e,{config:m(e.config||c.config,t),attach:a&&function(){return a}})}))}}),[e,c.reverse]);return a.useEffect((function(){n.current&&!r&&f(t)})),a.useEffect((function(){n.current=!0}),[]),r?[u,f,d]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),i=G(r),s=i.lazy,u=void 0!==s&&s,l=(i.unique,i.reset),d=void 0!==l&&l,f=(i.enter,i.leave,i.update,i.onDestroyed),b=(i.keys,i.items,i.onFrame),g=i.onRest,h=i.onStart,v=i.ref,y=c(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=p(),E=a.useRef(!1),j=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!E.current&&new Map,forceUpdate:O});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(j.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(j.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(j.current.instances).map((function(e){return e[1]}))}}})),j.current=function(e,t){var n=e.first,r=e.prevProps,a=c(e,["first","prevProps"]),i=G(t),s=i.items,u=i.keys,l=i.initial,p=i.from,d=i.enter,f=i.leave,b=i.update,g=i.trail,h=void 0===g?0:g,v=i.unique,y=i.config,O=i.order,E=void 0===O?["enter","leave","update"]:O,j=G(r),w=j.keys,_=j.items,k=o({},a.current),S=[].concat(a.deleted),R=Object.keys(k),P=new Set(R),C=new Set(u),x=u.filter((function(e){return!P.has(e)})),N=a.transitions.filter((function(e){return!e.destroyed&&!C.has(e.originalKey)})).map((function(e){return e.originalKey})),I=u.filter((function(e){return P.has(e)})),T=-h;for(;E.length;){switch(E.shift()){case"enter":x.forEach((function(e,t){v&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),o=s[r],c=n&&void 0!==l?"initial":"enter";k[e]={slot:c,originalKey:e,key:v?String(e):K++,item:o,trail:T+=h,config:m(y,o,c),from:m(n&&void 0!==l?l||{}:p,o),to:m(d,o)}}));break;case"leave":N.forEach((function(e){var t=w.indexOf(e),n=_[t];S.unshift(o({},k[e],{slot:"leave",destroyed:!0,left:w[Math.max(0,t-1)],right:w[Math.min(w.length,t+1)],trail:T+=h,config:m(y,n,"leave"),to:m(f,n)})),delete k[e]}));break;case"update":I.forEach((function(e){var t=u.indexOf(e),n=s[t];k[e]=o({},k[e],{item:n,slot:"update",trail:T+=h,config:m(y,n,"update"),to:m(b,n)})}))}}var M=u.map((function(e){return k[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=M.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),M=[].concat(M.slice(0,t),[r],M.slice(t))})),o({},a,{changed:x.length||N.length||I.length,first:n&&0===x.length,transitions:M,current:k,deleted:S,prevProps:t})}(j.current,r),j.current.changed&&j.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,a=e.trail,i=e.key,s=e.item;j.current.instances.has(i)||j.current.instances.set(i,new z);var l=j.current.instances.get(i),p=o({},y,{to:r,from:n,config:c,ref:v,onRest:function(n){j.current.mounted&&(e.destroyed&&(v||u||$(j,i),f&&f(s)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(v||u)&&j.current.deleted.length>0&&$(j),g&&g(s,t,n))},onStart:h&&function(){return h(s,t)},onFrame:b&&function(e){return b(s,t,e)},delay:a,reset:d&&"enter"===t});l.update(p),j.current.paused||l.start()})),a.useEffect((function(){return j.current.mounted=E.current=!0,function(){j.current.mounted=E.current=!1,Array.from(j.current.instances).map((function(e){return e[1].destroy()})),j.current.instances.clear()}}),[]),j.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:j.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var a=c.controllers;if(a.length){var i=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+i})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(14),a=n.n(c),i=n(50),s=function(e){var t=e.className,n=e.size,r=void 0===n?20:n,c=a()(e,["className","size"]);return React.createElement(i.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:r,height:r},c),React.createElement("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},u=React.createElement(s,null),l=n(126),p=n(0);t.a=function(e){let t;switch(e.icon){case"arrow-down-alt2":t=u;break;case"no-alt":t=l.a}return t?Object(p.cloneElement)(t,{size:e.size||20,className:e.className}):null}},,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(14),a=n.n(c),i=n(76),s=(n(4),n(5)),u=n.n(s);n(152);t.a=function(e){var t=e.className,n=e.showSpinner,r=void 0!==n&&n,c=e.children,s=a()(e,["className","showSpinner","children"]),l=u()("wc-block-components-button",t,{"wc-block-components-button--loading":r});return React.createElement(i.a,o()({className:l},s),r&&React.createElement("span",{className:"wc-block-components-button__spinner","aria-hidden":"true"}),React.createElement("span",{className:"wc-block-components-button__text"},c))}},function(e,t,n){"use strict";var r=n(22),o=n(9),c=n(29),a=n(0),i=n(68),s=n(50);t.a=function(e){var t=e.icon,n=void 0===t?null:t,u=e.size,l=Object(c.a)(e,["icon","size"]),p=u||20;if("string"==typeof n)return Object(a.createElement)(i.a,Object(o.a)({icon:n,size:p},l));if(n&&i.a===n.type)return Object(a.cloneElement)(n,Object(r.a)({size:p},l));var d=u||24;if("function"==typeof n)return n.prototype instanceof a.Component?Object(a.createElement)(n,Object(r.a)({size:d},l)):n(Object(r.a)({size:d},l));if(n&&("svg"===n.type||n.type===s.a)){var f=Object(r.a)({width:d,height:d},n.props,l);return Object(a.createElement)(s.a,f)}return Object(a.isValidElement)(n)?Object(a.cloneElement)(n,Object(r.a)({size:d},l)):n}},function(e,t,n){"use strict";var r=n(22),o=n(29),c=n(5),a=n.n(c),i=n(0);t.a=Object(i.forwardRef)((function(e,t){var n=e.href,c=e.target,s=e.isPrimary,u=e.isLarge,l=e.isSmall,p=e.isTertiary,d=e.isToggled,f=e.isBusy,m=e.isDefault,b=e.isLink,g=e.isDestructive,h=e.className,v=e.disabled,y=Object(o.a)(e,["href","target","isPrimary","isLarge","isSmall","isTertiary","isToggled","isBusy","isDefault","isLink","isDestructive","className","disabled"]),O=a()("components-button",h,{"is-button":m||s||u||l,"is-default":m||!s&&(u||l),"is-primary":s,"is-large":u,"is-small":l,"is-tertiary":p,"is-toggled":d,"is-busy":f,"is-link":b,"is-destructive":g}),E=void 0===n||v?"button":"a",j="a"===E?{href:n,target:c}:{type:"button",disabled:v};return Object(i.createElement)(E,Object(r.a)({},j,y,{className:O,ref:t}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e,t,n){void 0===n&&(n={});var o=n.maxWait,c=Object(r.useRef)(null),a=Object(r.useRef)([]),i=n.leading,s=void 0===n.trailing||n.trailing,u=Object(r.useRef)(!1),l=Object(r.useRef)(null),p=Object(r.useRef)(!1),d=Object(r.useRef)(e);d.current=e;var f=Object(r.useCallback)((function(){clearTimeout(l.current),clearTimeout(c.current),c.current=null,a.current=[],l.current=null,u.current=!1}),[]);Object(r.useEffect)((function(){return p.current=!1,function(){p.current=!0}}),[]);var m=Object(r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];a.current=e,clearTimeout(l.current),u.current&&(u.current=!1),l.current||!i||u.current||(d.current.apply(d,e),u.current=!0),l.current=setTimeout((function(){var t=!0;i&&u.current&&(t=!1),f(),!p.current&&s&&t&&d.current.apply(d,e)}),t),o&&!c.current&&s&&(c.current=setTimeout((function(){var e=a.current;f(),p.current||d.current.apply(null,e)}),o))}),[o,t,f,i,s]),b=Object(r.useCallback)((function(){l.current&&(d.current.apply(null,a.current),f())}),[f]);return[m,f,b]}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(14),a=n.n(c),i=n(5),s=n.n(i);n(4),n(160);t.a=function(e){var t=e.children,n=e.className,r=e.headingLevel,c=a()(e,["children","className","headingLevel"]),i=s()("wc-block-components-title",n),u="h".concat(r);return React.createElement(u,o()({className:i},c),t)}},function(e,t){!function(){e.exports=this.wp.autop}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(6),o=n.n(r),c=n(88),a=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(){var e=Object(c.b)(),t=e.notices,n=e.createNotice,r=e.removeNotice,o=e.createSnackbarNotice,i=e.setIsSuppressed,u=Object(a.useRef)(t);Object(a.useEffect)((function(){u.current=t}),[t]);var l=Object(a.useMemo)((function(){return{hasNoticesOfType:function(e){return u.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u.current.forEach((function(t){null!==e&&t.status!==e||r(t.id)}))},removeNotice:r}}),[r]),p=Object(a.useMemo)((function(){return{addDefaultNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("default",e,s({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("error",e,s({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("warning",e,s({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("info",e,s({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("success",e,s({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(e,t)}}}),[n,o]);return s(s(s({notices:t},l),p),{},{setIsSuppressed:i})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(15),o=n(12),c=n(118),a=n(17),i=n(7),s={cartCoupons:[],cartItems:[],cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:[],cartTotals:{},cartIsLoading:!0,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:[],shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:function(){}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(c.a)(),n=t.isEditor,u=t.previewData,l=(null==u?void 0:u.previewCart)||{},p=e.shouldSelect,d=Object(o.useSelect)((function(e,t){var o=t.dispatch;if(!p)return s;if(n)return{cartCoupons:l.coupons,cartItems:l.items,cartItemsCount:l.items_count,cartItemsWeight:l.items_weight,cartNeedsPayment:l.needs_payment,cartNeedsShipping:l.needs_shipping,cartItemErrors:[],cartTotals:l.totals,cartIsLoading:!1,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:l.shipping_rates,shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:"function"==typeof(null==l?void 0:l.receiveCart)?l.receiveCart:function(){}};var c=e(r.CART_STORE_KEY),u=c.getCartData(),d=c.getCartErrors(),f=c.getCartTotals(),m=!c.hasFinishedResolution("getCartData"),b=c.areShippingRatesLoading(),g=o(r.CART_STORE_KEY).receiveCart,h=Object(i.mapValues)(u.shippingAddress,(function(e){return Object(a.decodeEntities)(e)}));return{cartCoupons:u.coupons,cartItems:u.items||[],cartItemsCount:u.itemsCount,cartItemsWeight:u.itemsWeight,cartNeedsPayment:u.needsPayment,cartNeedsShipping:u.needsShipping,cartItemErrors:u.errors||[],cartTotals:f,cartIsLoading:m,cartErrors:d,shippingAddress:h,shippingRates:u.shippingRates||[],shippingRatesLoading:b,hasShippingAddress:!!h.country,receiveCart:g}}),[p]);return d}},function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";var r=n(5),o=n.n(r);n(4),n(162);t.a=function(e){var t=e.children,n=e.className;return React.createElement("div",{className:o()("wc-block-components-product-badge",n)},t)}},function(e,t,n){"use strict";var r=n(10),o=n.n(r),c=n(0),a=n(5),i=n.n(a),s=(n(4),n(127)),u=n(50),l=React.createElement(u.a,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"})),p=React.createElement(u.a,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));n(170),t.a=function(e){var t=e.children,n=e.className,r=e.initialOpen,a=void 0!==r&&r,u=e.hasBorder,d=void 0!==u&&u,f=e.title,m=e.titleTag,b=void 0===m?"div":m,g=Object(c.useState)(a),h=o()(g,2),v=h[0],y=h[1];return React.createElement("div",{className:i()(n,"wc-blocks-components-panel",{"has-border":d})},React.createElement(b,null,React.createElement("button",{"aria-expanded":v,className:"wc-blocks-components-panel__button",onClick:function(){return y(!v)}},React.createElement(s.a,{"aria-hidden":"true",className:"wc-blocks-components-panel__button-icon",srcElement:v?l:p}),f)),React.createElement("div",{className:"wc-blocks-components-panel__content",hidden:!v},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(10),o=n.n(r),c=n(0),a=function(){var e=Object(c.useState)(),t=o()(e,2)[1];return function(e){return t((function(){throw e}))}}},function(e,t,n){"use strict";e.exports=n(130)},function(e,t,n){"use strict";n.d(t,"b",(function(){return M})),n.d(t,"a",(function(){return A}));var r=n(10),o=n.n(r),c=n(0),a=n(81),i=n(12),s=n(27),u=n.n(s),l=n(140),p=n(15),d=n(17),f=n(80),m=function(e){return{country:e.country,state:e.state,city:e.city,postcode:e.postcode.replace(" ","").toUpperCase()}},b=function(){var e=Object(a.a)().shippingAddress,t=Object(c.useState)(e),n=o()(t,2),r=n[0],s=n[1],b=Object(l.a)(r,400),g=o()(b,1)[0],h=Object(i.useDispatch)(p.CART_STORE_KEY).updateShippingAddress,v=Object(f.a)().addErrorNotice,y=Object(c.useRef)(e);Object(c.useEffect)((function(){var e,t;g.country&&(e=y.current,t=g,!u()(m(e),m(t)))&&h(g).then((function(){y.current=g})).catch((function(e){v(e.message,{id:"shipping-form"})}))}),[g,h,v]);var O={};return Object.keys(r).forEach((function(e){O[e]=Object(d.decodeEntities)(r[e])})),{shippingAddress:O,setShippingAddress:s}},g=n(220),h=n(98),v={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},y={INVALID_COUNTRY:"woocommerce_rest_cart_shipping_rates_invalid_country",MISSING_COUNTRY:"woocommerce_rest_cart_shipping_rates_missing_country",INVALID_STATE:"woocommerce_rest_cart_shipping_rates_invalid_state"},O={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:function(){return null},shippingErrorTypes:v,shippingRates:[],setShippingRates:function(){return null},shippingRatesLoading:!1,selectedRates:[],setSelectedRates:function(){return null},shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},setShippingAddress:function(){return null},onShippingRateSuccess:function(){return null},onShippingRateFail:function(){return null},onShippingRateSelectSuccess:function(){return null},onShippingRateSelectFail:function(){return null},needsShipping:!1},E=n(113),j=n(195),w="shipping_rates_success",_="shipping_rates_fail",k="shipping_rate_select_success",S="shipping_rate_select_fail",R=function(e){return{onSuccess:Object(j.a)(w,e),onFail:Object(j.a)(_,e),onSelectSuccess:Object(j.a)(k,e),onSelectFail:Object(j.a)(S,e)}},P=n(196),C=v.NONE,x=v.INVALID_ADDRESS,N=v.UNKNOWN,I=function(e,t){var n=t.type;return Object.values(v).includes(n)?n:e},T=Object(c.createContext)(O),M=function(){return Object(c.useContext)(T)},A=function(e){var t=e.children,n=Object(h.b)().dispatchActions,r=Object(a.a)(),i=r.cartNeedsShipping,s=r.shippingRates,u=r.shippingRatesLoading,l=r.cartErrors,p=Object(c.useReducer)(I,C),d=o()(p,2),f=d[0],m=d[1],O=Object(c.useReducer)(E.b,{}),j=o()(O,2),M=j[0],A=j[1],D=b(),L=D.shippingAddress,F=D.setShippingAddress,V=Object(c.useRef)(M),B=Object(g.a)(s),U=B.selectShippingRate,H=B.selectedShippingRates,q=B.isSelectingRate,z=Object(c.useMemo)((function(){return{onShippingRateSuccess:R(A).onSuccess,onShippingRateFail:R(A).onFail,onShippingRateSelectSuccess:R(A).onSelectSuccess,onShippingRateSelectFail:R(A).onSelectFail}}),[A]);Object(c.useEffect)((function(){V.current=M}),[M]),Object(c.useEffect)((function(){u?n.incrementCalculating():n.decrementCalculating()}),[u,n]),Object(c.useEffect)((function(){q?n.incrementCalculating():n.decrementCalculating()}),[q,n]),Object(c.useEffect)((function(){l.length>0&&l.some((function(e){return!(!e.code||!Object.values(y).includes(e.code))}))?m({type:x}):m({type:C})}),[l]);var W=Object(c.useMemo)((function(){return{isPristine:f===C,isValid:f===C,hasInvalidAddress:f===x,hasError:f===N||f===x}}),[f]);Object(c.useEffect)((function(){u||0!==s.length&&!W.hasError||Object(P.a)(V.current,_,{hasInvalidAddress:W.hasInvalidAddress,hasError:W.hasError})}),[s,u,W.hasError,W.hasInvalidAddress]),Object(c.useEffect)((function(){!u&&s.length>0&&!W.hasError&&Object(P.a)(V.current,w,s)}),[s,u,W.hasError]),Object(c.useEffect)((function(){!q&&W.hasError&&Object(P.a)(V.current,S,{hasError:W.hasError,hasInvalidAddress:W.hasInvalidAddress})}),[H,q,W.hasError,W.hasInvalidAddress]),Object(c.useEffect)((function(){q||!H||W.hasError||Object(P.a)(V.current,k,H)}),[H,q,W.hasError]);var K={shippingErrorStatus:W,dispatchErrorStatus:m,shippingErrorTypes:v,shippingRates:s,setShippingRates:U,shippingRatesLoading:u,selectedRates:H,setSelectedRates:U,isSelectingRate:q,shippingAddress:L,setShippingAddress:F,onShippingRateSuccess:z.onShippingRateSuccess,onShippingRateFail:z.onShippingRateFail,onShippingRateSelectSuccess:z.onShippingRateSelectSuccess,onShippingRateSelectFail:z.onShippingRateSelectFail,needsShipping:i};return React.createElement(React.Fragment,null,React.createElement(T.Provider,{value:K},t))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return N})),n.d(t,"a",(function(){return I}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=(n(4),n(0)),s=n(12),u=n(139),l=n(9),p=n(23),d=n.n(p);function f(e,t,n,r,o,c,a){try{var i=e[c](a),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var c=e.apply(t,n);function a(e){f(c,r,o,a,i,"next",e)}function i(e){f(c,r,o,a,i,"throw",e)}a(void 0)}))}}var b=n(24),g=n(5),h=n.n(g),v=n(7),y=n(67),O=n(28),E=n(1),j=n(76);var w=Object(i.forwardRef)((function(e,t){var n=e.className,r=e.children,o=e.actions,c=void 0===o?[]:o,a=e.onRemove,s=void 0===a?v.noop:a;Object(i.useEffect)((function(){var e=setTimeout((function(){s()}),1e4);return function(){return clearTimeout(e)}}),[]);var u=h()(n,"components-snackbar");return c&&c.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),c=[c[0]]),Object(i.createElement)("div",{ref:t,className:u,onClick:s,tabIndex:"0",role:"button",onKeyPress:s,label:Object(E.__)("Dismiss this notice")},Object(i.createElement)("div",{className:"components-snackbar__content"},r,c.map((function(e,t){var n=e.label,r=e.onClick,o=e.url;return Object(i.createElement)(j.a,{key:t,href:o,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))}));var _=function(e){var t=e.notices,n=e.className,r=e.children,o=e.onRemove,c=void 0===o?v.noop:o,a=Object(O.useReducedMotion)(),s=Object(i.useState)((function(){return new WeakMap})),u=Object(b.a)(s,1)[0],p=Object(y.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=m(d.a.mark((function t(n){return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:u.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=m(d.a.mark((function e(t){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:a});n=h()("components-snackbar-list",n);var f=function(e){return function(){return c(e.id)}};return Object(i.createElement)("div",{className:n},r,p.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(i.createElement)(y.animated.div,{key:n,style:r},Object(i.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&u.set(t,e)}},Object(i.createElement)(w,Object(l.a)({},Object(v.omit)(t,["content"]),{onRemove:f(t)}),t.content)))})))},k=n(80),S=n(118),R=function(){var e=Object(S.a)().isEditor,t=Object(k.a)(),n=t.notices,r=t.removeNotice;if(e)return null;var o=n.filter((function(e){return"snackbar"===e.type}));return React.createElement(_,{notices:o,className:"wc-block-components-notices__snackbar",onRemove:r})};function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=Object(i.createContext)({notices:[],createNotice:function(e,t,n){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),N=function(){return Object(i.useContext)(x)},I=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.createNoticeContainer,c=void 0===o||o,l=e.context,p=void 0===l?"wc/core":l,d=Object(s.useDispatch)("core/notices"),f=d.createNotice,m=d.removeNotice,b=Object(i.useState)(!1),g=a()(b,2),h=g[0],v=g[1],y=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};f(e,t,C(C({},n),{},{context:n.context||p}))}),[f,p]),O=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;m(e,t)}),[m,p]),E=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y("default",e,C(C({},t),{},{type:"snackbar"}))}),[y]),j={notices:Object(s.useSelect)((function(e){return{notices:e("core/notices").getNotices(p)}}),[p]).notices,createNotice:y,createSnackbarNotice:E,removeNotice:O,context:p,setIsSuppressed:v},w=h?null:React.createElement(u.a,{className:r,notices:j.notices}),_=h?null:React.createElement(R,null);return React.createElement(x.Provider,{value:j},c&&w,t,_)}},,function(e,t,n){"use strict";var r=n(1),o={first_name:{label:Object(r.__)("First name","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("First name (optional)","woo-gutenberg-products-block"),autocomplete:"given-name",autocapitalize:"sentences",required:!0,hidden:!1,index:1},last_name:{label:Object(r.__)("Last name","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Last name (optional)","woo-gutenberg-products-block"),autocomplete:"family-name",autocapitalize:"sentences",required:!0,hidden:!1,index:2},company:{label:Object(r.__)("Company","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Company (optional)","woo-gutenberg-products-block"),autocomplete:"organization",autocapitalize:"sentences",required:!1,hidden:!1,index:3},address_1:{label:Object(r.__)("Address","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Address (optional)","woo-gutenberg-products-block"),autocomplete:"address-line1",autocapitalize:"sentences",required:!0,hidden:!1,index:4},address_2:{label:Object(r.__)("Apartment, suite, etc.","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Apartment, suite, etc. (optional)","woo-gutenberg-products-block"),autocomplete:"address-line2",autocapitalize:"sentences",required:!1,hidden:!1,index:5},country:{label:Object(r.__)("Country/Region","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Country/Region (optional)","woo-gutenberg-products-block"),autocomplete:"country",required:!0,hidden:!1,index:6},city:{label:Object(r.__)("City","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("City (optional)","woo-gutenberg-products-block"),autocomplete:"address-level2",autocapitalize:"sentences",required:!0,hidden:!1,index:7},state:{label:Object(r.__)("State/County","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("State/County (optional)","woo-gutenberg-products-block"),autocomplete:"address-level1",autocapitalize:"sentences",required:!0,hidden:!1,index:8},postcode:{label:Object(r.__)("Postal code","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Postal code (optional)","woo-gutenberg-products-block"),autocomplete:"postal-code",autocapitalize:"characters",required:!0,hidden:!1,index:9}};t.a=o},function(e,t,n){var r=n(55);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";t.a=function(e){var t=e.label,n=e.secondaryLabel,r=e.description,o=e.secondaryDescription,c=e.id;return React.createElement("div",{className:"wc-block-components-radio-control__option-layout"},React.createElement("div",{className:"wc-block-components-radio-control__label-group"},t&&React.createElement("span",{id:c?"".concat(c,"__label"):null,className:"wc-block-components-radio-control__label"},t),n&&React.createElement("span",{id:c?"".concat(c,"__secondary-label"):null,className:"wc-block-components-radio-control__secondary-label"},n)),React.createElement("div",{className:"wc-block-components-radio-control__description-group"},r&&React.createElement("span",{id:c?"".concat(c,"__description"):null,className:"wc-block-components-radio-control__description"},r),o&&React.createElement("span",{id:c?"".concat(c,"__secondary-description"):null,className:"wc-block-components-radio-control__secondary-description"},o)))}},function(e,t){!function(){e.exports=this.wp.wordcount}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),o=function(e,t){var n=Object(r.useRef)();return Object(r.useEffect)((function(){n.current===e||t&&!t(e,n.current)||(n.current=e)}),[e,t]),n.current}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(6),a=n.n(c),i=n(10),s=n.n(i),u=n(14),l=n.n(u),p=n(1),d=n(2),f=(n(4),n(5)),m=n.n(f),b=n(58),g=n(148),h=n(100),v=n(64);n(135);t.a=Object(h.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,c=e.ariaDescribedBy,i=e.errorId,u=e.validateOnMount,f=void 0===u||u,h=e.focusOnMount,y=void 0!==h&&h,O=e.onChange,E=e.showError,j=void 0===E||E,w=l()(e,["className","instanceId","id","ariaDescribedBy","errorId","validateOnMount","focusOnMount","onChange","showError"]),_=Object(d.useState)(!0),k=s()(_,2),S=k[0],R=k[1],P=Object(d.useRef)(),C=Object(b.b)(),x=C.getValidationError,N=C.hideValidationError,I=C.setValidationErrors,T=C.clearValidationError,M=C.getValidationErrorId,A=r||"textinput-"+n;i=i||A;var D=Object(d.useCallback)((function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];P.current.checkValidity()?T(i):I(a()({},i,{message:P.current.validationMessage||Object(p.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}))}),[T,i,I]);Object(d.useEffect)((function(){S&&(y&&P.current.focus(),R(!1))}),[y,S,R]),Object(d.useEffect)((function(){S&&(f&&D(),R(!1))}),[S,R,f,D]),Object(d.useEffect)((function(){return function(){T(i)}}),[T,i]);var L=x(i)||{},F=L.message&&!L.hidden,V=j&&F&&M(i)?M(i):c;return React.createElement(v.a,o()({className:m()(t,{"has-error":F}),id:A,onBlur:function(){D(!1)},feedback:j&&React.createElement(g.a,{propertyName:i}),ref:P,onChange:function(e){N(i),O(e)},ariaDescribedBy:V},w))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return Te})),n.d(t,"a",(function(){return Me}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=n(0),s=n(1),u=n(80),l=n(194),p=n(12),d=n(96),f=n(3),m="pristine",b="idle",g="processing",h="complete",v="before_processing",y="after_processing",O=Object(f.getSetting)("checkoutData",{order_id:0,customer_id:0}),E={redirectUrl:"",status:m,hasError:!1,calculatingCount:0,orderId:O.order_id,orderNotes:"",customerId:O.customer_id,shouldCreateAccount:!1,processingResponse:null},j={SET_IDLE:"set_idle",SET_PRISTINE:"set_pristine",SET_REDIRECT_URL:"set_redirect_url",SET_COMPLETE:"set_checkout_complete",SET_BEFORE_PROCESSING:"set_before_processing",SET_AFTER_PROCESSING:"set_after_processing",SET_PROCESSING_RESPONSE:"set_processing_response",SET_PROCESSING:"set_checkout_is_processing",SET_HAS_ERROR:"set_checkout_has_error",SET_NO_ERROR:"set_checkout_no_error",SET_ORDER_ID:"set_checkout_order_id",SET_ORDER_NOTES:"set_checkout_order_notes",INCREMENT_CALCULATING:"increment_calculating",DECREMENT_CALCULATING:"decrement_calculating"},w=j.SET_PRISTINE,_=j.SET_IDLE,k=j.SET_PROCESSING,S=j.SET_BEFORE_PROCESSING,R=j.SET_AFTER_PROCESSING,P=j.SET_PROCESSING_RESPONSE,C=j.SET_REDIRECT_URL,x=j.SET_COMPLETE,N=j.SET_HAS_ERROR,I=j.SET_NO_ERROR,T=j.INCREMENT_CALCULATING,M=j.DECREMENT_CALCULATING,A=j.SET_ORDER_ID,D=j.SET_SHOULD_CREATE_ACCOUNT,L=j.SET_ORDER_NOTES,F=function(){return{type:w}},V=function(){return{type:_}},B=function(){return{type:k}},U=function(e){return{type:C,url:e}},H=function(e){return{type:P,data:e}},q=function(e){return{type:x,data:e}},z=function(){return{type:S}},W=function(){return{type:R}},K=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?N:I;return{type:t}},Y=function(){return{type:T}},G=function(){return{type:M}},$=function(e){return{type:A,orderId:e}},Q=function(e){return{type:D,shouldCreateAccount:e}},X=function(e){return{type:L,orderNotes:e}};function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee=j.SET_PRISTINE,te=j.SET_IDLE,ne=j.SET_PROCESSING,re=j.SET_BEFORE_PROCESSING,oe=j.SET_AFTER_PROCESSING,ce=j.SET_PROCESSING_RESPONSE,ae=j.SET_REDIRECT_URL,ie=j.SET_COMPLETE,se=j.SET_HAS_ERROR,ue=j.SET_NO_ERROR,le=j.INCREMENT_CALCULATING,pe=j.DECREMENT_CALCULATING,de=j.SET_ORDER_ID,fe=j.SET_ORDER_NOTES,me=j.SET_SHOULD_CREATE_ACCOUNT,be=m,ge=b,he=g,ve=v,ye=y,Oe=h,Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0,n=t.url,r=t.type,o=t.orderId,c=t.orderNotes,a=t.shouldCreateAccount,i=t.data,s=e;switch(r){case ee:s=E;break;case te:s=e.status!==ge?J(J({},e),{},{status:ge}):e;break;case ae:s=n!==e.url?J(J({},e),{},{redirectUrl:n}):e;break;case ce:s=J(J({},e),{},{processingResponse:i});break;case ie:s=e.status!==Oe?J(J({},e),{},{status:Oe,redirectUrl:(null==i?void 0:i.redirectUrl)||e.redirectUrl}):e;break;case ne:s=!1===(s=e.status!==he?J(J({},e),{},{status:he,hasError:!1}):e).hasError?s:J(J({},s),{},{hasError:!1});break;case re:s=e.status!==ve?J(J({},e),{},{status:ve,hasError:!1}):e;break;case oe:s=e.status!==ye?J(J({},e),{},{status:ye}):e;break;case se:s=e.hasError?e:J(J({},e),{},{hasError:!0}),s=e.status===he||e.status===ve?J(J({},s),{},{status:ge}):s;break;case ue:s=e.hasError?J(J({},e),{},{hasError:!1}):e;break;case le:s=J(J({},e),{},{calculatingCount:e.calculatingCount+1});break;case pe:s=J(J({},e),{},{calculatingCount:Math.max(0,e.calculatingCount-1)});break;case de:s=J(J({},e),{},{orderId:o});break;case me:a!==e.shouldCreateAccount&&(s=J(J({},e),{},{shouldCreateAccount:a}));break;case fe:e.orderNotes!==c&&(s=J(J({},e),{},{orderNotes:c}))}return s!==e&&r!==ee&&s.status===be&&(s.status=ge),s},je=n(113),we=n(195),_e="checkout_before_processing",ke="checkout_after_processing_with_success",Se="checkout_after_processing_with_error",Re=function(e){return{onCheckoutAfterProcessingWithSuccess:Object(we.a)(ke,e),onCheckoutAfterProcessingWithError:Object(we.a)(Se,e),onCheckoutBeforeProcessing:Object(we.a)(_e,e)}},Pe=n(196),Ce=n(58);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie=Object(i.createContext)({isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,orderNotes:"",customerId:0,onSubmit:function(){},onCheckoutAfterProcessingWithSuccess:function(e){},onCheckoutAfterProcessingWithError:function(e){},onCheckoutBeforeProcessing:function(e){},dispatchActions:{resetCheckout:function(){},setRedirectUrl:function(e){},setHasError:function(e){},setAfterProcessing:function(e){},incrementCalculating:function(){},decrementCalculating:function(){},setOrderId:function(e){},setOrderNotes:function(e){}},hasOrder:!1,isCart:!1,shouldCreateAccount:!1,setShouldCreateAccount:function(e){}}),Te=function(){return Object(i.useContext)(Ie)},Me=function(e){var t=e.children,n=e.redirectUrl,r=e.isCart,o=void 0!==r&&r;E.redirectUrl=n;var c,f=Object(i.useReducer)(Ee,E),m=a()(f,2),O=m[0],j=m[1],w=Object(i.useReducer)(je.b,{}),_=a()(w,2),k=_[0],S=_[1],R=Object(i.useRef)(k),P=Object(Ce.b)().setValidationErrors,C=Object(u.a)(),x=C.addErrorNotice,N=C.removeNotices,I=O.calculatingCount>0,T=Object(l.a)(),M=T.isSuccessResponse,A=T.isErrorResponse,D=T.isFailResponse,L=T.shouldRetry,Z=(c=Object(l.a)().noticeContexts,{checkoutNotices:Object(p.useSelect)((function(e){return e("core/notices").getNotices("wc/checkout")}),[]),expressPaymentNotices:Object(p.useSelect)((function(e){return e("core/notices").getNotices(c.EXPRESS_PAYMENTS)}),[c.EXPRESS_PAYMENTS]),paymentNotices:Object(p.useSelect)((function(e){return e("core/notices").getNotices(c.PAYMENTS)}),[c.PAYMENTS])}),J=Z.checkoutNotices,ee=Z.paymentNotices,te=Z.expressPaymentNotices;Object(i.useEffect)((function(){R.current=k}),[k]);var ne=Object(i.useMemo)((function(){return Re(S).onCheckoutAfterProcessingWithSuccess}),[S]),re=Object(i.useMemo)((function(){return Re(S).onCheckoutAfterProcessingWithError}),[S]),oe=Object(i.useMemo)((function(){return Re(S).onCheckoutBeforeProcessing}),[S]),ce=Object(i.useMemo)((function(){return{resetCheckout:function(){j(F())},setRedirectUrl:function(e){j(U(e))},setHasError:function(e){j(K(e))},incrementCalculating:function(){j(Y())},decrementCalculating:function(){j(G())},setOrderId:function(e){j($(e))},setOrderNotes:function(e){j(X(e))},setAfterProcessing:function(e){var t,n,r,o;(!e.payment_result&&e.message&&200!==(null==e||null===(t=e.data)||void 0===t?void 0:t.status)&&(e.payment_result=Ne(Ne({},e.payment_result),{},{message:e.message})),e.payment_result)&&((null===(n=e.payment_result)||void 0===n?void 0:n.redirect_url)&&j(U(e.payment_result.redirect_url)),j(H((r=e.payment_result,o={message:(null==r?void 0:r.message)||"",paymentStatus:r.payment_status,paymentDetails:{}},Array.isArray(r.payment_details)&&r.payment_details.forEach((function(e){var t=e.key,n=e.value;o.paymentDetails[t]=n})),o))));j(W())}}}),[]);Object(i.useEffect)((function(){O.status===v&&(N("error"),Object(Pe.a)(R.current,_e,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,n=e.validationErrors;x(t),P(n)})),j(V())):j(B())})))}),[O.status,P,x,N,j]);var ae=Object(d.a)(O.status),ie=Object(d.a)(O.hasError);Object(i.useEffect)((function(){if((O.status!==ae||O.hasError!==ie)&&O.status===y){var e={redirectUrl:O.redirectUrl,orderId:O.orderId,customerId:O.customerId,customerNote:O.customerNote,processingResponse:O.processingResponse};O.hasError?Object(Pe.b)(R.current,Se,e).then((function(t){if(A(t)||D(t)){if(t.message){var n=t.messageContext?{context:t.messageContext}:void 0;x(t.message,n)}L(t)?j(V()):j(q(t))}else{if(!(J.some((function(e){return"error"===e.status}))||te.some((function(e){return"error"===e.status}))||ee.some((function(e){return"error"===e.status})))){var r,o=(null===(r=e.processingResponse)||void 0===r?void 0:r.message)||Object(s.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");x(o,{id:"checkout"})}j(V())}})):Object(Pe.b)(R.current,ke,e).then((function(e){if(M(e))j(q(e));else if(A(e)||D(e)){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;x(e.message,t)}L(e)?j(K(!0)):j(q(e))}else j(q())}))}}),[O.status,O.hasError,O.redirectUrl,O.orderId,O.customerId,O.customerNote,O.processingResponse,ae,ie,ce,x,A,D,M,L,J,te,ee]);var se={onSubmit:Object(i.useCallback)((function(){j(z())}),[]),isComplete:O.status===h,isIdle:O.status===b,isCalculating:I,isProcessing:O.status===g,isBeforeProcessing:O.status===v,isAfterProcessing:O.status===y,hasError:O.hasError,redirectUrl:O.redirectUrl,onCheckoutAfterProcessingWithSuccess:ne,onCheckoutAfterProcessingWithError:re,onCheckoutBeforeProcessing:oe,dispatchActions:ce,isCart:o,orderId:O.orderId,hasOrder:!!O.orderId,customerId:O.customerId,orderNotes:O.orderNotes,shouldCreateAccount:O.shouldCreateAccount,setShouldCreateAccount:function(e){return j(Q(e))}};return React.createElement(Ie.Provider,{value:se},t)}},,function(e,t,n){"use strict";var r=n(9),o=n(0),c=n(7);var a=function(e,t){return function(n){var r=e(n),o=n.displayName,a=void 0===o?n.name||"Component":o;return r.displayName="".concat(Object(c.upperFirst)(Object(c.camelCase)(t)),"(").concat(a,")"),r}},i=new WeakMap;function s(e,t){return Object(o.useMemo)((function(){var n=function(e){var t=i.get(e)||0;return i.set(e,t+1),t}(e);return t?"".concat(t,"-").concat(n):n}),[e])}t.a=a((function(e){return function(t){var n=s(e);return Object(o.createElement)(e,Object(r.a)({},t,{instanceId:n}))}}),"withInstanceId")},function(e,t,n){"use strict";var r=n(2),o=n.n(r);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(){}function p(){}p.resetWarningCache=l;var d=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,r,o,c){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==c){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:p,resetWarningCache:l};return n.PropTypes=n,n}()}));function f(){}function m(e){return!!(e||"").match(/\d/)}function b(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function g(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split("."),c=o[0],a=o[1]||"";return{beforeDecimal:c,afterDecimal:a,hasNagation:n,addNegation:r}}function h(e,t,n){for(var r="",o=n?"0":"",c=0;c<=t-1;c++)r+=e[c]||o;return r}function v(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function y(e,t,n){return Math.min(Math.max(e,t),n)}function O(e){return Math.max(e.selectionStart,e.selectionEnd)}var E={thousandSeparator:d.oneOfType([d.string,d.oneOf([!0])]),decimalSeparator:d.string,allowedDecimalSeparators:d.arrayOf(d.string),thousandsGroupStyle:d.oneOf(["thousand","lakh","wan"]),decimalScale:d.number,fixedDecimalScale:d.bool,displayType:d.oneOf(["input","text"]),prefix:d.string,suffix:d.string,format:d.oneOfType([d.string,d.func]),removeFormatting:d.func,mask:d.oneOfType([d.string,d.arrayOf(d.string)]),value:d.oneOfType([d.number,d.string]),defaultValue:d.oneOfType([d.number,d.string]),isNumericString:d.bool,customInput:d.elementType,allowNegative:d.bool,allowEmptyFormatting:d.bool,allowLeadingZeros:d.bool,onValueChange:d.func,onKeyDown:d.func,onMouseUp:d.func,onChange:d.func,onFocus:d.func,onBlur:d.func,type:d.oneOf(["text","tel","password"]),isAllowed:d.func,renderText:d.func,getInputRef:d.oneOfType([d.func,d.shape({current:d.any})])},j={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:f,onChange:f,onKeyDown:f,onMouseUp:f,onFocus:f,onBlur:f,isAllowed:function(){return!0}},w=function(e){function t(e){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,n=!(o=i(t).call(this,e))||"object"!=typeof o&&"function"!=typeof o?u(r):o;var c=e.defaultValue;n.validateProps();var a=n.formatValueProp(c);return n.state={value:a,numAsString:n.removeFormatting(a)},n.selectionBeforeInput={selectionStart:0,selectionEnd:0},n.onChange=n.onChange.bind(u(n)),n.onKeyDown=n.onKeyDown.bind(u(n)),n.onMouseUp=n.onMouseUp.bind(u(n)),n.onFocus=n.onFocus.bind(u(n)),n.onBlur=n.onBlur.bind(u(n)),n}var n,r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,(r=[{key:"componentDidUpdate",value:function(e){this.updateValueIfRequired(e)}},{key:"updateValueIfRequired",value:function(e){var t=this.props,n=this.state,r=this.focusedElm,o=n.value,c=n.numAsString,a=void 0===c?"":c;if(e!==t){this.validateProps();var i=this.formatNumString(a),s=void 0===t.value?i:this.formatValueProp(),u=this.removeFormatting(s),l=parseFloat(u),p=parseFloat(a);(isNaN(l)&&isNaN(p)||l===p)&&i===o&&(null!==r||s===o)||this.updateValue({formattedValue:s,numAsString:u,input:r})}}},{key:"getFloatString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.decimalScale,n=this.getSeparators(),r=n.decimalSeparator,o=this.getNumberRegex(!0),c="-"===e[0];c&&(e=e.replace("-","")),r&&0===t&&(e=e.split(r)[0]);var a=(e=(e.match(o)||[]).join("").replace(r,".")).indexOf(".");return-1!==a&&(e="".concat(e.substring(0,a),".").concat(e.substring(a+1,e.length).replace(new RegExp(b(r),"g"),""))),c&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var n=this.props,r=n.format,o=n.decimalScale,c=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!c||0===o||t||r?"":"|"+b(c)),e?"g":void 0)}},{key:"getSeparators",value:function(){var e=this.props.decimalSeparator,t=this.props,n=t.thousandSeparator,r=t.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:r}}},{key:"getMaskAtIndex",value:function(e){var t=this.props.mask,n=void 0===t?" ":t;return"string"==typeof n?n:n[e]||" "}},{key:"getValueObject",value:function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}}},{key:"validateProps",value:function(){var e=this.props.mask,t=this.getSeparators(),n=t.decimalSeparator,r=t.thousandSeparator;if(n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: ".concat(r,' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: ').concat(n," (default value for decimalSeparator is .)\n "));if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n Mask ".concat(e," should not contain numeric character;\n "))}},{key:"setPatchedCaretPosition",value:function(e,t,n){v(e,t),setTimeout((function(){e.value===n&&v(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,n){var r=this.props,o=r.prefix,c=r.suffix,a=r.format;if(""===e)return 0;if(t=y(t,0,e.length),!a){var i="-"===e[0];return y(t,o.length+(i?1:0),e.length-c.length)}if("function"==typeof a)return t;if("#"===a[t]&&m(e[t]))return t;if("#"===a[t-1]&&m(e[t-1]))return t;var s=a.indexOf("#");t=y(t,s,a.lastIndexOf("#")+1);for(var u=a.substring(t,a.length).indexOf("#"),l=t,p=t+(-1===u?0:u);l>s&&("#"!==a[l]||!m(e[l]));)l-=1;return!m(e[p])||"left"===n&&t!==s||t-l<p-t?m(e[l])?l+1:l:p}},{key:"getCaretPosition",value:function(e,t,n){var r,o,c=this.props.format,a=this.state.value,i=this.getNumberRegex(!0),s=(e.match(i)||[]).join(""),u=(t.match(i)||[]).join("");for(r=0,o=0;o<n;o++){var l=e[o]||"",p=t[r]||"";if((l.match(i)||l===p)&&("0"!==l||!p.match(i)||"0"===p||s.length===u.length)){for(;l!==t[r]&&r<t.length;)r++;r++}}return"string"!=typeof c||a||(r=t.length),r=this.correctCaretPosition(t,r)}},{key:"removePrefixAndSuffix",value:function(e){var t=this.props,n=t.format,r=t.prefix,o=t.suffix;if(!n&&e){var c="-"===e[0];c&&(e=e.substring(1,e.length));var a=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==a&&a===e.length-o.length?e.substring(0,a):e,c&&(e="-"+e)}return e}},{key:"removePatternFormatting",value:function(e){for(var t=this.props.format.split("#").filter((function(e){return""!==e})),n=0,r="",o=0,c=t.length;o<=c;o++){var a=t[o]||"",i=o===c?e.length:e.indexOf(a,n);if(-1===i){r=e;break}r+=e.substring(n,i),n=i+a.length}return(r.match(/\d/g)||[]).join("")}},{key:"removeFormatting",value:function(e){var t=this.props,n=t.format,r=t.removeFormatting;return e?(n?e="string"==typeof n?this.removePatternFormatting(e):"function"==typeof r?r(e):(e.match(/\d/g)||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e):e}},{key:"formatWithPattern",value:function(e){for(var t=this.props.format,n=0,r=t.split(""),o=0,c=t.length;o<c;o++)"#"===t[o]&&(r[o]=e[n]||this.getMaskAtIndex(n),n+=1);return r.join("")}},{key:"formatAsNumber",value:function(e){var t=this.props,n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix,c=t.suffix,a=t.allowNegative,i=t.thousandsGroupStyle,s=this.getSeparators(),u=s.thousandSeparator,l=s.decimalSeparator,p=-1!==e.indexOf(".")||n&&r,d=g(e,a),f=d.beforeDecimal,m=d.afterDecimal,b=d.addNegation;return void 0!==n&&(m=h(m,n,r)),u&&(f=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(f,u,i)),o&&(f=o+f),c&&(m+=c),b&&(f="-"+f),e=f+(p&&l||"")+m}},{key:"formatNumString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.format,r=t.allowEmptyFormatting,o=e;return o=""!==e||r?"-"!==e||n?"string"==typeof n?this.formatWithPattern(o):"function"==typeof n?n(o):this.formatAsNumber(o):"-":""}},{key:"formatValueProp",value:function(e){var t=this.props,n=t.format,r=t.decimalScale,o=t.fixedDecimalScale,c=t.allowEmptyFormatting,a=this.props,i=a.value,s=void 0===i?e:i,u=a.isNumericString,l=!s&&0!==s;return l&&c&&(s=""),l&&!c?"":("number"==typeof s&&(s=s.toString(),u=!0),"Infinity"===s&&u&&(s=""),u&&!n&&"number"==typeof r&&(s=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=-1!==e.indexOf(".")&&t,o=g(e),c=o.beforeDecimal,a=o.afterDecimal,i=o.hasNagation,s=parseFloat("0.".concat(a||"0")).toFixed(t).split("."),u=c.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),s[0]),l=h(s[1]||"",Math.min(t,a.length),n),p=r?".":"";return"".concat(i?"-":"").concat(u).concat(p).concat(l)}(s,r,o)),u?this.formatNumString(s):this.formatInput(s))}},{key:"formatNegation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.allowNegative,n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),c=r.test(e);return e=e.replace(/-/g,""),o&&!c&&t&&(e="-"+e),e}},{key:"formatInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.format;return t||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)}},{key:"isCharacterAFormat",value:function(e,t){var n=this.props,r=n.format,o=n.prefix,c=n.suffix,a=n.decimalScale,i=n.fixedDecimalScale,s=this.getSeparators().decimalSeparator;return"string"==typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-c.length||a&&i&&t[e]===s))}},{key:"checkIfFormatGotDeleted",value:function(e,t,n){for(var r=e;r<t;r++)if(this.isCharacterAFormat(r,n))return!0;return!1}},{key:"correctInputValue",value:function(e,t,n){var r=this.props,o=r.format,c=r.allowNegative,a=r.prefix,i=r.suffix,s=r.decimalScale,u=this.getSeparators(),l=u.allowedDecimalSeparators,p=u.decimalSeparator,d=this.state.numAsString||"",f=this.selectionBeforeInput,m=f.selectionStart,b=f.selectionEnd,h=function(e,t){for(var n=0,r=0,o=e.length,c=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[c-1-r]&&c-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),v=h.start,y=h.end;if(!o&&v===y&&-1!==l.indexOf(n[m])){var O=0===s?"":p;return n.substr(0,m)+O+n.substr(m+1,n.length)}var E=o?0:a.length,j=t.length-(o?0:i.length);if(n.length>t.length||!n.length||v===y||0===m&&b===t.length||m===E&&b===j)return n;if(this.checkIfFormatGotDeleted(v,y,t)&&(n=t),!o){var w=this.removeFormatting(n),_=g(w,c),k=_.beforeDecimal,S=_.afterDecimal,R=_.addNegation,P=e<n.indexOf(p)+1;if(w.length<d.length&&P&&""===k&&!parseFloat(S))return R?"-":""}return n}},{key:"updateValue",value:function(e){var t=e.formattedValue,n=e.input,r=e.setCaretPosition,o=void 0===r||r,c=e.numAsString,a=e.caretPos,i=this.props.onValueChange,s=this.state.value;if(n)if(o){if(!a){var u=e.inputValue||n.value,l=O(n);n.value=t,a=this.getCaretPosition(u,t,l)}this.setPatchedCaretPosition(n,a,t)}else n.value=t;void 0===c&&(c=this.removeFormatting(t)),t!==s&&(this.setState({value:t,numAsString:c}),i(this.getValueObject(t,c)))}},{key:"onChange",value:function(e){var t=e.target,n=t.value,r=this.state,o=this.props,c=o.isAllowed,a=r.value||"",i=O(t);n=this.correctInputValue(i,a,n);var s=this.formatInput(n)||"",u=this.removeFormatting(s);c(this.getValueObject(s,u))||(s=a),this.updateValue({formattedValue:s,numAsString:u,inputValue:n,input:t}),o.onChange(e)}},{key:"onBlur",value:function(e){var t=this.props,n=this.state,r=t.format,o=t.onBlur,c=t.allowLeadingZeros,a=n.numAsString,i=n.value;if(this.focusedElm=null,this.focusTimeout&&clearTimeout(this.focusTimeout),!r){isNaN(parseFloat(a))&&(a=""),c||(a=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return"".concat(t?"-":"").concat(r).concat(o?".".concat(o):"")}(a));var s=this.formatNumString(a);if(s!==i)return this.updateValue({formattedValue:s,numAsString:a,input:e.target,setCaretPosition:!1}),void o(e)}o(e)}},{key:"onKeyDown",value:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,c=n.selectionEnd,a=n.value,i=void 0===a?"":a,s=this.props,u=s.decimalScale,l=s.fixedDecimalScale,p=s.prefix,d=s.suffix,f=s.format,m=s.onKeyDown,b=void 0!==u&&l,g=this.getNumberRegex(!1,b),h=new RegExp("-"),v="string"==typeof f;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:c},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===c){var y=t,O=v?f.indexOf("#"):p.length,E=v?f.lastIndexOf("#")+1:i.length-d.length;if("ArrowLeft"===r||"ArrowRight"===r){var j="ArrowLeft"===r?"left":"right";y=this.correctCaretPosition(i,t,j)}else if("Delete"!==r||g.test(i[t])||h.test(i[t])){if("Backspace"===r&&!g.test(i[t]))if(o<=O+1&&"-"===i[0]&&void 0===f){var w=i.substring(1);this.updateValue({formattedValue:w,caretPos:y,input:n})}else if(!h.test(i[t])){for(;!g.test(i[y-1])&&y>O;)y--;y=this.correctCaretPosition(i,y,"left")}}else for(;!g.test(i[y])&&y<E;)y++;(y!==t||t<O||t>E)&&(e.preventDefault(),this.setPatchedCaretPosition(n,y,i)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,y,i),m(e)}else m(e)}},{key:"onMouseUp",value:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value,c=void 0===o?"":o;if(n===r){var a=this.correctCaretPosition(c,n);a!==n&&this.setPatchedCaretPosition(t,a,c)}this.props.onMouseUp(e)}},{key:"onFocus",value:function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout((function(){var n=e.target,r=n.selectionStart,o=n.selectionEnd,c=n.value,a=void 0===c?"":c,i=t.correctCaretPosition(a,r);i===r||0===r&&o===a.length||t.setPatchedCaretPosition(n,i,a),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,n,r=this.props,c=r.type,i=r.displayType,s=r.customInput,u=r.renderText,l=r.getInputRef,p=this.state.value,d=(e=this.props,t=E,n={},Object.keys(e).forEach((function(r){t[r]||(n[r]=e[r])})),n),f=a({inputMode:"numeric"},d,{type:c,value:p,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===i)return u?u(p)||null:o.a.createElement("span",a({},d,{ref:l}),p);if(s){var m=s;return o.a.createElement(m,a({},f,{ref:l}))}return o.a.createElement("input",a({},f,{ref:l}))}}])&&c(n.prototype,r),l&&c(n,l),t}(o.a.Component);w.propTypes=E,w.defaultProps=j,t.a=w},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(30),a=n.n(c),i=n(31),s=n.n(i),u=n(18),l=n.n(u),p=n(32),d=n.n(p),f=n(33),m=n.n(f),b=n(20),g=n.n(b),h=n(6),v=n.n(h),y=n(2);n(128);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}t.a=function(e){var t=function(t){d()(r,t);var n=O(r);function r(){var e;return a()(this,r),e=n.call(this),v()(l()(e),"scrollToTopIfNeeded",(function(){var t=e.scrollPointRef.current.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollPointRef.current.scrollIntoView()})),v()(l()(e),"moveFocusToTop",(function(t){var n=e.scrollPointRef.current.parentElement.querySelectorAll(t);n.length&&n[0].focus()})),v()(l()(e),"scrollToTop",(function(t){window&&Number.isFinite(window.innerHeight)&&(e.scrollToTopIfNeeded(),t&&t.focusableSelector&&e.moveFocusToTop(t.focusableSelector))})),e.scrollPointRef=Object(y.createRef)(),e}return s()(r,[{key:"render",value:function(){return React.createElement(y.Fragment,null,React.createElement("div",{className:"with-scroll-to-top__scroll-point",ref:this.scrollPointRef,"aria-hidden":!0}),React.createElement(e,o()({},this.props,{scrollToTop:this.scrollToTop})))}}]),r}(y.Component);return t.displayName="withScrollToTop",t}},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function o(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function c(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return o(n.overflowY,t)||o(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function a(e,t,n,r,o,c,a,i){return c<e&&a>t||c>e&&a<t?0:c<=e&&i<=n||a>=t&&i>=n?c-e-r:a>t&&i<n||c<e&&i>n?a-t+o:0}t.a=function(e,t){var n=window,o=t.scrollMode,i=t.block,s=t.inline,u=t.boundary,l=t.skipOverflowHiddenElements,p="function"==typeof u?u:function(e){return e!==u};if(!r(e))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,f=[],m=e;r(m)&&p(m);){if((m=m.parentNode)===d){f.push(m);break}m===document.body&&c(m)&&!c(document.documentElement)||c(m,l)&&f.push(m)}for(var b=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),O=y.height,E=y.width,j=y.top,w=y.right,_=y.bottom,k=y.left,S="start"===i||"nearest"===i?j:"end"===i?_:j+O/2,R="center"===s?k+E/2:"end"===s?w:k,P=[],C=0;C<f.length;C++){var x=f[C],N=x.getBoundingClientRect(),I=N.height,T=N.width,M=N.top,A=N.right,D=N.bottom,L=N.left;if("if-needed"===o&&j>=0&&k>=0&&_<=g&&w<=b&&j>=M&&_<=D&&k>=L&&w<=A)return P;var F=getComputedStyle(x),V=parseInt(F.borderLeftWidth,10),B=parseInt(F.borderTopWidth,10),U=parseInt(F.borderRightWidth,10),H=parseInt(F.borderBottomWidth,10),q=0,z=0,W="offsetWidth"in x?x.offsetWidth-x.clientWidth-V-U:0,K="offsetHeight"in x?x.offsetHeight-x.clientHeight-B-H:0;if(d===x)q="start"===i?S:"end"===i?S-g:"nearest"===i?a(v,v+g,g,B,H,v+S,v+S+O,O):S-g/2,z="start"===s?R:"center"===s?R-b/2:"end"===s?R-b:a(h,h+b,b,V,U,h+R,h+R+E,E),q=Math.max(0,q+v),z=Math.max(0,z+h);else{q="start"===i?S-M-B:"end"===i?S-D+H+K:"nearest"===i?a(M,D,I,B,H+K,S,S+O,O):S-(M+I/2)+K/2,z="start"===s?R-L-V:"center"===s?R-(L+T/2)+W/2:"end"===s?R-A+U+W:a(L,A,T,V,U+W,R,R+E,E);var Y=x.scrollLeft,G=x.scrollTop;S+=G-(q=Math.max(0,Math.min(G+q,x.scrollHeight-I+K))),R+=Y-(z=Math.max(0,Math.min(Y+z,x.scrollWidth-T+W)))}P.push({el:x,top:q,left:z})}return P}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(11),o=n.n(r),c=n(6),a=n.n(c),i=n(0),s=n(45);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=[".wp-block-woocommerce-cart"],d=function(e){var t=e.Block,n=e.containers,r=e.getProps,c=void 0===r?function(){}:r,a=e.getErrorBoundaryProps,u=void 0===a?function(){}:a;0!==n.length&&Array.prototype.forEach.call(n,(function(e,n){var r=c(e,n),a=u(e,n),p=l(l({},e.dataset),r.attributes);e.classList.remove("is-loading"),Object(i.render)(React.createElement(s.a,a,React.createElement(i.Suspense,{fallback:React.createElement("div",{className:"wc-block-placeholder"})},React.createElement(t,o()({},r,{attributes:p})))),e)}))},f=function(e){var t=e.Block,n=e.getProps,r=e.getErrorBoundaryProps,o=e.selector,c=e.wrappers,a=document.body.querySelectorAll(o);c.length>0&&Array.prototype.filter.call(a,(function(e){return!function(e,t){return Array.prototype.some.call(t,(function(t){return t.contains(e)&&!t.isSameNode(e)}))}(e,c)})),d({Block:t,containers:a,getProps:n,getErrorBoundaryProps:r})},m=function(e){var t=document.body.querySelectorAll(p.join(","));f(l(l({},e),{},{wrappers:t})),Array.prototype.forEach.call(t,(function(t){t.addEventListener("wc-blocks_render_blocks_frontend",(function(){var n,r,o,c,a,i;n=l(l({},e),{},{wrapper:t}),r=n.Block,o=n.getProps,c=n.getErrorBoundaryProps,a=n.selector,i=n.wrapper.querySelectorAll(a),d({Block:r,containers:i,getProps:o,getErrorBoundaryProps:c})}))}))}},function(e,t){},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return p}));var r=n(6),o=n.n(r),c=n(7);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s="add_event_callback",u="remove_event_callback",l={addEventCallback:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:Object(c.uniqueId)(),type:s,eventType:e,callback:t,priority:n}},removeEventCallback:function(e,t){return{id:t,type:u,eventType:e}}},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.eventType,c=t.id,a=t.callback,l=t.priority,p=new Map(e[r]);switch(n){case s:return p.set(c,{priority:l,callback:a}),i(i({},e),{},o()({},r,p));case u:return p.delete(c),i(i({},e),{},o()({},r,p))}return e}},,function(e,t,n){"use strict";var r=n(30),o=n.n(r),c=n(31),a=n.n(c),i=n(18),s=n.n(i),u=n(32),l=n.n(u),p=n(33),d=n.n(p),f=n(20),m=n.n(f),b=n(6),g=n.n(b),h=n(1),v=n(2),y=n(139),O=(n(4),n(8));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d()(this,n)}}var j=function(e){l()(n,e);var t=E(n);function n(){var e;o()(this,n);for(var r=arguments.length,c=new Array(r),a=0;a<r;a++)c[a]=arguments[a];return e=t.call.apply(t,[this].concat(c)),g()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(n,[{key:"render",value:function(){var e=this.state,t=e.hasError,n=e.errorMessage,r=this.props.isEditor;if(t){var o=Object(h.__)("This site is experiencing difficulties with this payment method. Please contact the owner of the site for assistance.","woo-gutenberg-products-block");(r||O.j)&&(o=n||Object(h.__)("There was an error with this payment method. Please verify it's configured correctly.","woo-gutenberg-products-block"));var c=[{id:"0",content:o,isDismissible:!1,status:"error"}];return React.createElement(y.a,{notices:c})}return this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{errorMessage:e.message,hasError:!0}}}]),n}(v.Component);j.defaultProps={isEditor:!1},t.a=j},function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return j}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=n(0),s=n(3),u=n(7),l=n(17);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=Object(s.getSetting)("checkoutData",{}),m={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},b=Object(u.mapValues)(f.billing_address,(function(e){return Object(l.decodeEntities)(e)})),g=d(d({},m),b),h={billingData:m,setBillingData:function(){return null}};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=Object(i.createContext)(h),E=function(){return Object(i.useContext)(O)},j=function(e){var t=e.children,n=Object(i.useState)(g),r=a()(n,2),o=r[0],c=r[1],s={billingData:o,setBillingData:Object(i.useCallback)((function(e){c((function(t){return y(y({},t),e)}))}),[])};return React.createElement(O.Provider,{value:s},t)}},function(e,t,n){"use strict";var r=n(5),o=n.n(r),c=n(100),a=n(6),i=n.n(a),s=n(94),u=function(e){var t,n=e.checked,r=e.name,c=e.onChange,a=e.option,u=a.value,l=a.label,p=a.description,d=a.secondaryLabel,f=a.secondaryDescription;return React.createElement("label",{className:"wc-block-components-radio-control__option",htmlFor:"".concat(r,"-").concat(u)},React.createElement("input",{id:"".concat(r,"-").concat(u),className:"wc-block-components-radio-control__input",type:"radio",name:r,value:u,onChange:function(e){return c(e.target.value)},checked:n,"aria-describedby":o()((t={},i()(t,"".concat(r,"-").concat(u,"__label"),l),i()(t,"".concat(r,"-").concat(u,"__secondary-label"),d),i()(t,"".concat(r,"-").concat(u,"__description"),p),i()(t,"".concat(r,"-").concat(u,"__secondary-description"),f),t))}),React.createElement(s.a,{id:"".concat(r,"-").concat(u),label:l,secondaryLabel:d,description:p,secondaryDescription:f}))};n(169),t.a=Object(c.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,c=e.selected,a=e.onChange,i=e.options,s=void 0===i?[]:i,l=r||n;return s.length&&React.createElement("div",{className:o()("wc-block-components-radio-control",t)},s.map((function(e){return React.createElement(u,{key:e.value,name:"radio-control-".concat(l),checked:e.value===c,option:e,onChange:function(t){a(t),"function"==typeof e.onChange&&e.onChange(t)}})})))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=(n(12),Object(r.createContext)({isEditor:!1,currentPostId:0,previewData:{}})),c=function(){return Object(r.useContext)(o)}},function(e,t,n){"use strict";var r=n(0),o=n(7),c=n(5),a=n.n(c),i=n(1),s=n(76),u=n(9),l=n(29);function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}var m=n(65),b=n(13);function g(e,t){return!t||"object"!==Object(m.a)(t)&&"function"!=typeof t?Object(b.a)(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}var O=n(24),E=n(47),j=n(49),w=n(82),_=n.n(w),k=n(28),S=n(22),R=function(){return"rtl"===document.documentElement.dir};function P(e,t,n,r){var o=t.width;"left"===n&&R()?n="right":"right"===n&&R()&&(n="left");var c,a=Math.round(e.left+e.width/2),i={popoverLeft:a,contentWidth:(a-o/2>0?o/2:a)+(a+o/2>window.innerWidth?window.innerWidth-a:o/2)},s="middle"===r?e.left:a,u={popoverLeft:s,contentWidth:s-o>0?o:s},l="middle"===r?e.right:a,p={popoverLeft:l,contentWidth:l+o>window.innerWidth?window.innerWidth-l:o},d=null;if("center"===n&&i.contentWidth===o)c="center";else if("left"===n&&u.contentWidth===o)c="left";else if("right"===n&&p.contentWidth===o)c="right";else{var f="left"===(c=u.contentWidth>p.contentWidth?"left":"right")?u.contentWidth:p.contentWidth;d=f!==o?f:null}return{xAxis:c,popoverLeft:"center"===c?i.popoverLeft:"left"===c?u.popoverLeft:p.popoverLeft,contentWidth:d}}function C(e,t,n){var r,o=t.height,c=e.top+e.height/2,a={popoverTop:c,contentHeight:(c-o/2>0?o/2:c)+(c+o/2>window.innerHeight?window.innerHeight-c:o/2)},i={popoverTop:e.top,contentHeight:e.top-10-o>0?o:e.top-10},s={popoverTop:e.bottom,contentHeight:e.bottom+10+o>window.innerHeight?window.innerHeight-10-e.bottom:o},u=null;if("middle"===n&&a.contentHeight===o)r="middle";else if("top"===n&&i.contentHeight===o)r="top";else if("bottom"===n&&s.contentHeight===o)r="bottom";else{var l="top"===(r=i.contentHeight>s.contentHeight?"top":"bottom")?i.contentHeight:s.contentHeight;u=l!==o?l:null}return{yAxis:r,popoverTop:"middle"===r?a.popoverTop:"top"===r?i.popoverTop:s.popoverTop,contentHeight:u}}var x=n(37),N=Object(r.createContext)({focusHistory:[]}),I=N.Provider,T=N.Consumer;I.displayName="FocusReturnProvider",T.displayName="FocusReturnConsumer";r.Component;var M=Object(k.createHigherOrderComponent)((function e(t){if((c=t)instanceof r.Component||"function"==typeof c){var n=t;return e({})(n)}var c,a=t.onFocusReturn,i=void 0===a?o.stubTrue:a;return function(e){var t=function(t){function n(){var e;return p(this,n),(e=g(this,h(n).apply(this,arguments))).ownFocusedElements=new Set,e.activeElementOnMount=document.activeElement,e.setIsFocusedFalse=function(){return e.isFocused=!1},e.setIsFocusedTrue=function(t){e.ownFocusedElements.add(t.target),e.isFocused=!0},e}return y(n,t),f(n,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==i())for(var r,c=[].concat(Object(x.a)(o.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(x.a)(n)))),[e]);r=c.pop();)if(document.body.contains(r))return void r.focus()}},{key:"render",value:function(){return Object(r.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(r.createElement)(e,this.props.childProps))}}]),n}(r.Component);return function(e){return Object(r.createElement)(T,null,(function(n){return Object(r.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn"),A=Object(k.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return p(this,n),(e=g(this,h(n).apply(this,arguments))).focusContainRef=Object(r.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(b.a)(e)),e}return y(n,t),f(n,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===j.TAB){var t=E.focus.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],r=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),r.focus()):(e.shiftKey||e.target!==r)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return Object(r.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(r.createElement)(e,this.props))}}]),n}(r.Component)}),"withConstrainedTabbing"),D=["button","submit"];var L=Object(k.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return p(this,n),(e=g(this,h(n).apply(this,arguments))).bindNode=e.bindNode.bind(Object(b.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(b.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(b.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(b.a)(e)),e}return y(n,t),f(n,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(o.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(o.includes)(D,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(r.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(r.createElement)(e,Object(u.a)({ref:this.bindNode},this.props)))}}]),n}(r.Component)}),"withFocusOutside")(function(e){function t(){return p(this,t),g(this,h(t).apply(this,arguments))}return y(t,e),f(t,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),t}(r.Component));var F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,o=e.className,c=void 0===o?"lockscroll":o,a=0,i=0;function s(e){var t=n.scrollingElement||n.body;e&&(i=t.scrollTop);var r=e?"add":"remove";t.classList[r](c),n.documentElement.classList[r](c),e||(t.scrollTop=i)}function u(){0===a&&s(!0),++a}function l(){1===a&&s(!1),--a}return function(e){function t(){return p(this,t),g(this,h(t).apply(this,arguments))}return y(t,e),f(t,[{key:"componentDidMount",value:function(){u()}},{key:"componentWillUnmount",value:function(){l()}},{key:"render",value:function(){return null}}]),t}(r.Component)}();function V(e){e.stopPropagation()}var B=Object(r.forwardRef)((function(e,t){var n=e.children,o=Object(l.a)(e,["children"]);return Object(r.createElement)("div",Object(u.a)({},o,{ref:t,onMouseDown:V}),n)})),U=Object(r.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),H=U.Provider,q=U.Consumer,z=(r.Component,0);function W(e){var t=e.name,n=e.children,c=e.registerFill,a=e.unregisterFill,i=function(e){var t=Object(r.useContext)(U),n=t.getSlot,o=t.subscribe,c=Object(r.useState)(n(e)),a=Object(O.a)(c,2),i=a[0],s=a[1];return Object(r.useEffect)((function(){return s(n(e)),o((function(){s(n(e))}))}),[e]),i}(t),s=Object(r.useRef)({name:t,children:n});return s.current.occurrence||(s.current.occurrence=++z),Object(r.useLayoutEffect)((function(){return c(t,s.current),function(){return a(t,s.current)}}),[]),Object(r.useLayoutEffect)((function(){s.current.children=n,i&&!i.props.bubblesVirtually&&i.forceUpdate()}),[n]),Object(r.useLayoutEffect)((function(){t!==s.current.name&&(a(s.current.name,s.current),s.current.name=t,c(t,s.current))}),[t]),i&&i.node&&i.props.bubblesVirtually?(Object(o.isFunction)(n)&&(n=n(i.props.fillProps)),Object(r.createPortal)(n,i.node)):null}var K=function(e){return Object(r.createElement)(q,null,(function(t){var n=t.registerFill,o=t.unregisterFill;return Object(r.createElement)(W,Object(u.a)({},e,{registerFill:n,unregisterFill:o}))}))},Y=function(e){function t(){var e;return p(this,t),(e=g(this,h(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(b.a)(e)),e}return y(t,e),f(t,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterSlot)(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,c=e.bubblesVirtually,a=void 0!==c&&c,i=e.fillProps,s=void 0===i?{}:i,u=e.getFills,l=e.className;if(a)return Object(r.createElement)("div",{ref:this.bindNode,className:l});var p=Object(o.map)(u(n,this),(function(e){var t=e.occurrence,n=Object(o.isFunction)(e.children)?e.children(s):e.children;return r.Children.map(n,(function(e,n){if(!e||Object(o.isString)(e))return e;var c="".concat(t,"---").concat(e.key||n);return Object(r.cloneElement)(e,{key:c})}))})).filter(Object(o.negate)(r.isEmptyElement));return Object(r.createElement)(r.Fragment,null,Object(o.isFunction)(t)?t(p):p)}}]),t}(r.Component),G=function(e){return Object(r.createElement)(q,null,(function(t){var n=t.registerSlot,o=t.unregisterSlot,c=t.getFills;return Object(r.createElement)(Y,Object(u.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:c}))}))},$=n(40);var Q=function(e){var t=e.type,n=e.options,r=void 0===n?{}:n,o=e.children;if("appear"===t){var c,i=r.origin,s=(void 0===i?"top":i).split(" "),u=Object(O.a)(s,2),l=u[0],p=u[1],d=void 0===p?"center":p;return o({className:a()("components-animate__appear",(c={},Object($.a)(c,"is-from-"+d,"center"!==d),Object($.a)(c,"is-from-"+l,"middle"!==l),c))})}if("slide-in"===t){var f=r.origin,m=void 0===f?"left":f;return o({className:a()("components-animate__slide-in","is-from-"+m)})}return o("loading"===t?{className:a()("components-animate__loading")}:{})},X=A(M((function(e){return e.children})));function Z(e,t){var n=window.getComputedStyle(t),r=n.paddingTop,o=n.paddingBottom,c=n.paddingLeft,a=n.paddingRight,i=r?parseInt(r,10):0,s=o?parseInt(o,10):0,u=c?parseInt(c,10):0,l=a?parseInt(a,10):0;return{x:e.left+u,y:e.top+i,width:e.width-u-l,height:e.height-i-s,left:e.left+u,right:e.right-l,top:e.top+i,bottom:e.bottom-s}}function J(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function te(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var ne=function(e){var t=e.headerTitle,n=e.onClose,o=e.onKeyDown,c=e.children,i=e.className,s=e.noArrow,p=void 0!==s&&s,d=e.position,f=void 0===d?"top":d,m=(e.range,e.focusOnMount),b=void 0===m?"firstElement":m,g=e.anchorRef,h=e.shouldAnchorIncludePadding,v=e.anchorVerticalBuffer,y=e.anchorHorizontalBuffer,w=e.anchorRect,R=e.getAnchorRect,x=e.expandOnMobile,N=e.animate,I=void 0===N||N,T=e.onClickOutside,M=e.onFocusOutside,A=Object(l.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorVerticalBuffer","anchorHorizontalBuffer","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside"]),D=Object(r.useRef)(null),V=Object(r.useRef)(null),U=Object(r.useRef)(),H=Object(r.useRef)(),z=Object(k.useViewportMatch)("medium","<"),W=Object(r.useState)(),Y=Object(O.a)(W,2),G=Y[0],$=Y[1],ne=x&&z;p=ne||p,Object(r.useEffect)((function(){var e=U.current,t=V.current;if(ne)return te(e,"is-without-arrow",p),J(e,"data-x-axis"),J(e,"data-y-axis"),ee(e,"top"),ee(e,"left"),ee(t,"maxHeight"),void ee(t,"maxWidth");var n=function(){var n=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!r)return;if(r instanceof window.Range)return Object(E.getRectangleFromRange)(r);var c=r.getBoundingClientRect();return o?c:Z(c,r)}if(e.current){var a=e.current.parentNode,i=a.getBoundingClientRect();return o?i:Z(i,a)}}(D,w,R,g,h);if(n){n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{x:e.left-n,y:e.top-t,width:e.width+2*n,height:e.height+2*t,left:e.left-n,right:e.right+n,top:e.top-t,bottom:e.bottom+t}}(n,v,y),H.current||(H.current=t.getBoundingClientRect());var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=n.split(" "),o=Object(O.a)(r,2),c=o[0],a=o[1],i=void 0===a?"center":a,s=C(e,t,c),u=P(e,t,i,s.yAxis);return Object(S.a)({},u,s)}(n,H.current,f),o=r.popoverTop,c=r.popoverLeft,a=r.xAxis,i=r.yAxis,s=r.contentHeight,u=r.contentWidth;te(e,"is-without-arrow",p||"center"===a&&"middle"===i),J(e,"data-x-axis",a),J(e,"data-y-axis",i),ee(e,"top","number"==typeof o?o+"px":""),ee(e,"left","number"==typeof c?c+"px":""),ee(t,"maxHeight","number"==typeof s?s+"px":""),ee(t,"maxWidth","number"==typeof u?u+"px":"");$(({left:"right",right:"left"}[a]||"center")+" "+({top:"bottom",bottom:"top"}[i]||"middle"))}},r=window.setTimeout(n),o=window.setInterval(n,500);return window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),function(){window.clearTimeout(r),window.clearInterval(o),window.removeEventListener("resize",n),window.removeEventListener("scroll",n,!0)}}),[ne,w,R,g,h,v,y,f]),function(e,t){Object(r.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=E.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(b,V);var re=function(e){e.keyCode===j.ESCAPE&&n&&(e.stopPropagation(),n()),o&&o(e)};var oe=Object(r.createElement)(L,{onFocusOutside:function(e){if(M)M(e);else if(T){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),_()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),T(t)}else n&&n()}},Object(r.createElement)(Q,{type:I&&G?"appear":null,options:{origin:G}},(function(e){var o=e.className;return Object(r.createElement)(B,Object(u.a)({className:a()("components-popover",i,o,{"is-expanded":ne,"is-without-arrow":p})},A,{onKeyDown:re,ref:U}),ne&&Object(r.createElement)("div",{className:"components-popover__header"},Object(r.createElement)("span",{className:"components-popover__header-title"},t),Object(r.createElement)(ie,{className:"components-popover__close",icon:"no-alt",onClick:n})),Object(r.createElement)("div",{ref:V,className:"components-popover__content",tabIndex:"-1"},c))})));return b&&(oe=Object(r.createElement)(X,null,oe)),Object(r.createElement)(q,null,(function(e){var t=e.getSlot;return t&&t("Popover")&&(oe=Object(r.createElement)(K,{name:"Popover"},oe)),Object(r.createElement)("span",{ref:D},oe,z&&x&&Object(r.createElement)(F,null))}))};ne.Slot=function(){return Object(r.createElement)(G,{bubblesVirtually:!0,name:"Popover"})};var re=ne;var oe=function(e){var t,n,c=e.shortcut,a=e.className;return c?(Object(o.isString)(c)&&(t=c),Object(o.isObject)(c)&&(t=c.display,n=c.ariaLabel),Object(r.createElement)("span",{className:a,"aria-label":n},t)):null},ce=function(e){function t(){var e;return p(this,t),(e=g(this,h(t).apply(this,arguments))).delayedSetIsOver=Object(o.debounce)((function(t){return e.setState({isOver:t})}),700),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return y(t,e),f(t,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===r.Children.count(n)){var o=r.Children.only(n);"function"==typeof o.props[e]&&o.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var c=Object(o.includes)(["focus","mouseenter"],r.type);c!==n.state.isOver&&(t?n.delayedSetIsOver(c):n.setState({isOver:c}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,o=e.text,c=e.shortcut;if(1!==r.Children.count(t))return t;var a=r.Children.only(t),i=this.state.isOver;return Object(r.cloneElement)(a,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(r.concatChildren)(a.props.children,i&&Object(r.createElement)(re,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1},o,Object(r.createElement)(oe,{className:"components-tooltip__shortcut",shortcut:c})))})}}]),t}(r.Component),ae=n(75);var ie=Object(r.forwardRef)((function(e,t){var n=e.icon,c=e.children,i=e.label,p=e.className,d=e.tooltip,f=e.shortcut,m=e.labelPosition,b=e.size,g=Object(l.a)(e,["icon","children","label","className","tooltip","shortcut","labelPosition","size"]),h=a()("components-icon-button",p,{"has-text":c}),v=d||i,y=!g.disabled&&(d||f||!!i&&(!c||Object(o.isArray)(c)&&!c.length)&&!1!==d),O=Object(r.createElement)(s.a,Object(u.a)({"aria-label":i},g,{className:h,ref:t}),Object(r.createElement)(ae.a,{icon:n,size:b}),c);return y&&(O=Object(r.createElement)(ce,{text:v,shortcut:f,position:m},O)),O}));t.a=function(e){var t=e.className,n=e.status,c=e.children,u=e.onRemove,l=void 0===u?o.noop:u,p=e.isDismissible,d=void 0===p||p,f=e.actions,m=void 0===f?[]:f,b=e.__unstableHTML,g=a()(t,"components-notice","is-"+n,{"is-dismissible":d});return b&&(c=Object(r.createElement)(r.RawHTML,null,c)),Object(r.createElement)("div",{className:g},Object(r.createElement)("div",{className:"components-notice__content"},c,m.map((function(e,t){var n=e.className,o=e.label,c=e.noDefaultClasses,i=void 0!==c&&c,u=e.onClick,l=e.url;return Object(r.createElement)(s.a,{key:t,href:l,isDefault:!i&&!l,isLink:!i&&!!l,onClick:l?void 0:u,className:a()("components-notice__action",n)},o)}))),d&&Object(r.createElement)(ie,{className:"components-notice__dismiss",icon:"no-alt",label:Object(i.__)("Dismiss this notice"),onClick:l,tooltip:!1}))}},,,function(e,t,n){"use strict";var r={globalLocale:"en-US",globalFormat:"$0,0.00",globalRoundingMode:"HALF_EVEN",globalFormatRoundingMode:"HALF_AWAY_FROM_ZERO",globalExchangeRatesApi:{endpoint:void 0,headers:void 0,propertyPath:void 0}};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i={normalizePrecision:function(e){var t=e.reduce((function(e,t){return Math.max(e.getPrecision(),t.getPrecision())}));return e.map((function(e){return e.getPrecision()!==t?e.convertPrecision(t):e}))},minimum:function(e){var t=c(e),n=t[0],r=t.slice(1),o=n;return r.forEach((function(e){o=o.lessThan(e)?o:e})),o},maximum:function(e){var t=c(e),n=t[0],r=t.slice(1),o=n;return r.forEach((function(e){o=o.greaterThan(e)?o:e})),o}};function s(e){return!isNaN(parseInt(e))&&isFinite(e)}function u(e){return e%2==0}function l(e){return s(e)&&!Number.isInteger(e)}function p(e){return Math.abs(e)%1==.5}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t)e.setRequestHeader(n,t[n]);return e}function f(e){return void 0===e}function m(){var e=function(e,t){var n=function(e){return Math.pow(10,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e.toString();if(t.indexOf("e-")>0)return parseInt(t.split("e-")[1]);var n=t.split(".")[1];return n?n.length:0}(e))},r=Math.max(n(e),n(t));return Math.round(e*r)*Math.round(t*r)/(r*r)},t={HALF_ODD:function(e){var t=Math.round(e);return p(e)&&u(t)?t-1:t},HALF_EVEN:function(e){var t=Math.round(e);return p(e)?u(t)?t:t-1:t},HALF_UP:function(e){return Math.round(e)},HALF_DOWN:function(e){return p(e)?Math.floor(e):Math.round(e)},HALF_TOWARDS_ZERO:function(e){return p(e)?Math.sign(e)*Math.floor(Math.abs(e)):Math.round(e)},HALF_AWAY_FROM_ZERO:function(e){return p(e)?Math.sign(e)*Math.ceil(Math.abs(e)):Math.round(e)},DOWN:function(e){return Math.floor(e)}};return{add:function(e,t){return e+t},subtract:function(e,t){return e-t},multiply:function(t,n){return l(t)||l(n)?e(t,n):t*n},divide:function(e,t){return e/t},modulo:function(e,t){return e%t},round:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HALF_EVEN";return t[n](e)}}}var b=m();function g(e){var t=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(e);return{getMatches:function(){return null!==t?t.slice(1).filter((function(e){return!f(e)})):[]},getMinimumFractionDigits:function(){var e=function(e){return"."===e};return f(this.getMatches().find(e))?0:this.getMatches()[b.add(this.getMatches().findIndex(e),1)].split("").length},getCurrencyDisplay:function(){return{USD:"code",dollar:"name",$:"symbol"}[this.getMatches().find((function(e){return"USD"===e||"dollar"===e||"$"===e}))]},getStyle:function(){return f(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!f(this.getMatches().find((function(e){return","===e})))}}}function h(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;for(var n in t)e=e.replace("{{".concat(n,"}}"),t[n]);return e},n=function(n,r){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){var o=Object.assign(new XMLHttpRequest,{onreadystatechange:function(){4===o.readyState&&(o.status>=200&&o.status<400?n(JSON.parse(o.responseText)):r(new Error(o.statusText)))},onerror:function(){r(new Error("Network error"))}});o.open("GET",e,!0),d(o,t.headers),o.send()}))}(t(e.endpoint,{from:n,to:r}),{headers:e.headers})};return{getExchangeRate:function(r,c){return(a=e.endpoint,!Boolean(a)||"object"!==o(a)&&"function"!=typeof a||"function"!=typeof a.then?n(r,c):e.endpoint).then((function(n){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",r={};return Object.entries(t).forEach((function(t){if("object"===o(t[1])){var c=e(t[1]);Object.entries(c).forEach((function(e){r[t[0]+n+e[0]]=e[1]}))}else r[t[0]]=t[1]})),r}(n)[t(e.propertyPath,{from:r,to:c})]}));var a}}}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Error;if(!e)throw new n(t)}function y(e){v(function(e){return s(e)&&e<=100&&e>=0}(e),"You must provide a numeric value between 0 and 100.",RangeError)}function O(e){v(Number.isInteger(e),"You must provide an integer.",TypeError)}var E=m(),j=Object.assign((function e(t){var n=Object.assign({},{amount:e.defaultAmount,currency:e.defaultCurrency,precision:e.defaultPrecision},t),r=n.amount,o=n.currency,c=n.precision;O(r),O(c);var a=e.globalLocale,i=e.globalFormat,s=e.globalRoundingMode,u=e.globalFormatRoundingMode,l=Object.assign({},e.globalExchangeRatesApi),p=function(t){var n=Object.assign({},Object.assign({},{amount:r,currency:o,precision:c},t),Object.assign({},{locale:this.locale},t));return Object.assign(e({amount:n.amount,currency:n.currency,precision:n.precision}),{locale:n.locale})},d=function(e){v(this.hasSameCurrency(e),"You must provide a Dinero instance with the same currency.",TypeError)};return{getAmount:function(){return r},getCurrency:function(){return o},getLocale:function(){return this.locale||a},setLocale:function(e){return p.call(this,{locale:e})},getPrecision:function(){return c},convertPrecision:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return O(e),p.call(this,{amount:E.round(E.multiply(this.getAmount(),Math.pow(10,E.subtract(e,this.getPrecision()))),t),precision:e})},add:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return p.call(this,{amount:E.add(n[0].getAmount(),n[1].getAmount()),precision:n[0].getPrecision()})},subtract:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return p.call(this,{amount:E.subtract(n[0].getAmount(),n[1].getAmount()),precision:n[0].getPrecision()})},multiply:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return p.call(this,{amount:E.round(E.multiply(this.getAmount(),e),t)})},divide:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return p.call(this,{amount:E.round(E.divide(this.getAmount(),e),t)})},percentage:function(e){return y(e),this.multiply(E.divide(e,100))},allocate:function(e){var t=this;!function(e){v(function(e){return e.length>0&&e.every((function(e){return e>=0}))&&e.some((function(e){return e>0}))}(e),"You must provide a non-empty array of numeric values greater than 0.",TypeError)}(e);for(var n=e.reduce((function(e,t){return E.add(e,t)})),r=this.getAmount(),o=e.map((function(e){var o=Math.floor(E.divide(E.multiply(t.getAmount(),e),n));return r=E.subtract(r,o),p.call(t,{amount:o})})),c=0;r>0;)e[c]>0&&(o[c]=o[c].add(p.call(this,{amount:1})),r=E.subtract(r,1)),c+=1;return o},convert:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.endpoint,o=void 0===r?l.endpoint:r,c=n.propertyPath,a=void 0===c?l.propertyPath||"rates.{{to}}":c,i=n.headers,u=void 0===i?l.headers:i,d=n.roundingMode,m=void 0===d?s:d,b=Object.assign({},{endpoint:o,propertyPath:a,headers:u,roundingMode:m});return h(b).getExchangeRate(this.getCurrency(),e).then((function(n){return v(!f(n),'No rate was found for the destination currency "'.concat(e,'".'),TypeError),p.call(t,{amount:E.round(E.multiply(t.getAmount(),parseFloat(n)),b.roundingMode),currency:e})}))},equalsTo:function(e){return this.hasSameAmount(e)&&this.hasSameCurrency(e)},lessThan:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()<n[1].getAmount()},lessThanOrEqual:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()<=n[1].getAmount()},greaterThan:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()>n[1].getAmount()},greaterThanOrEqual:function(t){d.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()>=n[1].getAmount()},isZero:function(){return 0===this.getAmount()},isPositive:function(){return this.getAmount()>=0},isNegative:function(){return this.getAmount()<0},hasSubUnits:function(){return 0!==E.modulo(this.getAmount(),Math.pow(10,c))},hasCents:function(){return 0!==E.modulo(this.getAmount(),Math.pow(10,c))},hasSameCurrency:function(e){return this.getCurrency()===e.getCurrency()},hasSameAmount:function(t){var n=e.normalizePrecision([this,t]);return n[0].getAmount()===n[1].getAmount()},toFormat:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=g(e);return this.toRoundedUnit(n.getMinimumFractionDigits(),t).toLocaleString(this.getLocale(),{currencyDisplay:n.getCurrencyDisplay(),useGrouping:n.getUseGrouping(),minimumFractionDigits:n.getMinimumFractionDigits(),style:n.getStyle(),currency:this.getCurrency()})},toUnit:function(){return E.divide(this.getAmount(),Math.pow(10,c))},toRoundedUnit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=Math.pow(10,e);return E.divide(E.round(E.multiply(this.toUnit(),n),t),n)},toObject:function(){return{amount:r,currency:o,precision:c}},toJSON:function(){return this.toObject()}}}),{defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2},r,i);t.a=j},function(e,t){},,,function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(14),a=n.n(c),i=n(50),s=function(e){var t=e.className,n=e.size,r=a()(e,["className","size"]);return React.createElement(i.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:n,height:n},r),React.createElement("path",{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))},u=React.createElement(s,null);t.a=u},function(e,t,n){"use strict";var r=n(6),o=n.n(r),c=n(14),a=n.n(c),i=n(2);n(4);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.srcElement,n=e.size,r=void 0===n?24:n,c=a()(e,["srcElement","size"]);return Object(i.isValidElement)(t)&&Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},c))}},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=n(3),c=n(15),a=n(12);t.a=function(e){return function(t){var n;return n=Object(r.useRef)(Object(o.getSetting)("restApiRoutes")),Object(a.useSelect)((function(e,t){if(n.current){var r=e(c.SCHEMA_STORE_KEY),o=r.isResolving,a=r.hasFinishedResolution,i=t.dispatch(c.SCHEMA_STORE_KEY),s=i.receiveRoutes,u=i.startResolution,l=i.finishResolution;Object.keys(n.current).forEach((function(e){var t=n.current[e];o("getRoutes",[e])||a("getRoutes",[e])||(u("getRoutes",[e]),s(t,[e]),l("getRoutes",[e]))}))}}),[]),React.createElement(e,t)}}},function(e,t,n){"use strict";
7
  /** @license React v16.13.1
8
  * react-is.production.min.js
9
  *
build/cart.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-url', 'wp-wordcount'), 'version' => '81ee144d015a1daa0215dfd0e48cb2b9');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-url', 'wp-wordcount'), 'version' => 'dabf67bcf8351c6451ac497453d7a251');
build/cart.js CHANGED
@@ -1 +1 @@
1
- this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks.cart=function(e){function t(t){for(var r,a,i=t[0],s=t[1],u=t[2],b=0,p=[];b<i.length;b++)a=i[b],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&p.push(c[a][0]),c[a]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(l&&l(t);p.length;)p.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,i=1;i<n.length;i++){var s=n[i];0!==c[s]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},c={20:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var l=s;return o.push([860,0]),n()}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},123:function(e,t,n){"use strict";var r=n(11),c=n.n(r),o=n(0),a=n(9),i=(n(2),n(7)),s=n.n(i),u=n(48),l=(n(266),Object(a.forwardRef)((function(e,t){var n=e.className,r=e.id,a=e.type,i=void 0===a?"text":a,l=e.ariaLabel,b=e.ariaDescribedBy,p=e.label,d=e.screenReaderLabel,m=e.disabled,g=e.help,f=e.autoCapitalize,O=void 0===f?"off":f,j=e.autoComplete,h=void 0===j?"off":j,v=e.value,_=void 0===v?"":v,y=e.onChange,E=e.required,w=void 0!==E&&E,k=e.onBlur,S=void 0===k?function(){}:k,N=e.feedback,P=Object(o.useState)(!1),C=c()(P,2),M=C[0],R=C[1];return Object(o.createElement)("div",{className:s()("wc-block-components-text-input",n,{"is-active":M||_})},Object(o.createElement)("input",{type:i,id:r,value:_,ref:t,autoCapitalize:O,autoComplete:h,onChange:function(e){y(e.target.value)},onFocus:function(){return R(!0)},onBlur:function(){S(),R(!1)},"aria-label":l||p,disabled:m,"aria-describedby":g&&!b?r+"__help":b,required:w}),Object(o.createElement)(u.a,{label:p,screenReaderLabel:d||p,wrapperElement:"label",wrapperProps:{htmlFor:r},htmlFor:r}),!!g&&Object(o.createElement)("p",{id:r+"__help",className:"wc-block-components-text-input__help"},g),N)})));t.a=l},125:function(e,t,n){"use strict";var r=n(0),c=n(1),o=(n(2),n(7)),a=n.n(o),i=n(551);n(365);t.a=function(e){var t=e.children,n=e.className,o=e.screenReaderLabel,s=e.showSpinner,u=void 0!==s&&s,l=e.isLoading;return void 0===l||l?Object(r.createElement)("div",{className:a()(n,"wc-block-components-loading-mask")},u&&Object(r.createElement)(i.a,null),Object(r.createElement)("div",{className:"wc-block-components-loading-mask__children","aria-hidden":!0},t),Object(r.createElement)("span",{className:"screen-reader-text"},o||Object(c.__)("Loading…","woo-gutenberg-products-block"))):t}},13:function(e,t){!function(){e.exports=this.wp.apiFetch}()},134:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(41),c=n(36),o=n(212),a=n(33),i=n(6),s={cartCoupons:[],cartItems:[],cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:[],cartTotals:{},cartIsLoading:!0,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:[],shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:function(){}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(o.b)(),n=t.isEditor,u=t.previewData,l=(null==u?void 0:u.previewCart)||{},b=e.shouldSelect,p=Object(c.useSelect)((function(e,t){var c=t.dispatch;if(!b)return s;if(n)return{cartCoupons:l.coupons,cartItems:l.items,cartItemsCount:l.items_count,cartItemsWeight:l.items_weight,cartNeedsPayment:l.needs_payment,cartNeedsShipping:l.needs_shipping,cartItemErrors:[],cartTotals:l.totals,cartIsLoading:!1,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:l.shipping_rates,shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:"function"==typeof(null==l?void 0:l.receiveCart)?l.receiveCart:function(){}};var o=e(r.CART_STORE_KEY),u=o.getCartData(),p=o.getCartErrors(),d=o.getCartTotals(),m=!o.hasFinishedResolution("getCartData"),g=o.areShippingRatesLoading(),f=c(r.CART_STORE_KEY).receiveCart,O=Object(i.mapValues)(u.shippingAddress,(function(e){return Object(a.decodeEntities)(e)}));return{cartCoupons:u.coupons,cartItems:u.items||[],cartItemsCount:u.itemsCount,cartItemsWeight:u.itemsWeight,cartNeedsPayment:u.needsPayment,cartNeedsShipping:u.needsShipping,cartItemErrors:u.errors||[],cartTotals:d,cartIsLoading:m,cartErrors:p,shippingAddress:O,shippingRates:u.shippingRates||[],shippingRatesLoading:g,hasShippingAddress:!!O.country,receiveCart:f}}),[b]);return p}},136:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(27),a=n.n(o),i=n(0),s=n(7),u=n.n(s);n(2),n(367);t.a=function(e){var t=e.children,n=e.className,r=e.headingLevel,o=a()(e,["children","className","headingLevel"]),s=u()("wc-block-components-title",n),l="h".concat(r);return Object(i.createElement)(l,c()({className:s},o),t)}},14:function(e,t){!function(){e.exports=this.wp.blockEditor}()},140:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(8),c=n.n(r),o=n(191),a=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(){var e=Object(o.b)(),t=e.notices,n=e.createNotice,r=e.removeNotice,c=e.createSnackbarNotice,i=e.setIsSuppressed,u=Object(a.useRef)(t);Object(a.useEffect)((function(){u.current=t}),[t]);var l=Object(a.useMemo)((function(){return{hasNoticesOfType:function(e){return u.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u.current.forEach((function(t){null!==e&&t.status!==e||r(t.id)}))},removeNotice:r}}),[r]),b=Object(a.useMemo)((function(){return{addDefaultNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("default",e,s({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("error",e,s({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("warning",e,s({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("info",e,s({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("success",e,s({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(e,t)}}}),[n,c]);return s(s(s({notices:t},l),b),{},{setIsSuppressed:i})}},142:function(e,t){!function(){e.exports=this.wp.wordcount}()},15:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},150:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return b}));var r=n(8),c=n.n(r),o=n(6);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s="add_event_callback",u="remove_event_callback",l={addEventCallback:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:Object(o.uniqueId)(),type:s,eventType:e,callback:t,priority:n}},removeEventCallback:function(e,t){return{id:t,type:u,eventType:e}}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.eventType,o=t.id,a=t.callback,l=t.priority,b=new Map(e[r]);switch(n){case s:return b.set(o,{priority:l,callback:a}),i(i({},e),{},c()({},r,b));case u:return b.delete(o),i(i({},e),{},c()({},r,b))}return e}},153:function(e,t,n){"use strict";var r=n(0),c=n(7),o=n.n(c);n(2),n(369);t.a=function(e){var t=e.children,n=e.className;return Object(r.createElement)("div",{className:o()("wc-block-components-product-badge",n)},t)}},154:function(e,t,n){"use strict";var r=n(11),c=n.n(r),o=n(0),a=n(7),i=n.n(a),s=(n(2),n(61)),u=n(57),l=Object(o.createElement)(u.a,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"})),b=Object(o.createElement)(u.a,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));n(377),t.a=function(e){var t=e.children,n=e.className,r=e.initialOpen,a=void 0!==r&&r,u=e.hasBorder,p=void 0!==u&&u,d=e.title,m=e.titleTag,g=void 0===m?"div":m,f=Object(o.useState)(a),O=c()(f,2),j=O[0],h=O[1];return Object(o.createElement)("div",{className:i()(n,"wc-blocks-components-panel",{"has-border":p})},Object(o.createElement)(g,null,Object(o.createElement)("button",{"aria-expanded":j,className:"wc-blocks-components-panel__button",onClick:function(){return h(!j)}},Object(o.createElement)(s.a,{"aria-hidden":"true",className:"wc-blocks-components-panel__button-icon",srcElement:j?l:b}),d)),Object(o.createElement)("div",{className:"wc-blocks-components-panel__content",hidden:!j},t))}},155:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(11),c=n.n(r),o=n(0),a=function(){var e=Object(o.useState)(),t=c()(e,2)[1];return function(e){return t((function(){throw e}))}}},156:function(e,t,n){"use strict";n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return T}));var r=n(11),c=n.n(r),o=n(0),a=n(134),i=n(36),s=n(43),u=n.n(s),l=n(550),b=n(41),p=n(33),d=n(140),m=function(e){return{country:e.country,state:e.state,city:e.city,postcode:e.postcode.replace(" ","").toUpperCase()}},g=function(){var e=Object(a.a)().shippingAddress,t=Object(o.useState)(e),n=c()(t,2),r=n[0],s=n[1],g=Object(l.a)(r,400),f=c()(g,1)[0],O=Object(i.useDispatch)(b.CART_STORE_KEY).updateShippingAddress,j=Object(d.a)().addErrorNotice,h=Object(o.useRef)(e);Object(o.useEffect)((function(){var e,t;f.country&&(e=h.current,t=f,!u()(m(e),m(t)))&&O(f).then((function(){h.current=f})).catch((function(e){j(e.message,{id:"shipping-form"})}))}),[f,O,j]);var v={};return Object.keys(r).forEach((function(e){v[e]=Object(p.decodeEntities)(r[e])})),{shippingAddress:v,setShippingAddress:s}},f=n(864),O=n(170),j={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},h={INVALID_COUNTRY:"woocommerce_rest_cart_shipping_rates_invalid_country",MISSING_COUNTRY:"woocommerce_rest_cart_shipping_rates_missing_country",INVALID_STATE:"woocommerce_rest_cart_shipping_rates_invalid_state"},v={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:function(){return null},shippingErrorTypes:j,shippingRates:[],setShippingRates:function(){return null},shippingRatesLoading:!1,selectedRates:[],setSelectedRates:function(){return null},shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},setShippingAddress:function(){return null},onShippingRateSuccess:function(){return null},onShippingRateFail:function(){return null},onShippingRateSelectSuccess:function(){return null},onShippingRateSelectFail:function(){return null},needsShipping:!1},_=n(150),y=n(396),E="shipping_rates_success",w="shipping_rates_fail",k="shipping_rate_select_success",S="shipping_rate_select_fail",N=function(e){return{onSuccess:Object(y.a)(E,e),onFail:Object(y.a)(w,e),onSelectSuccess:Object(y.a)(k,e),onSelectFail:Object(y.a)(S,e)}},P=n(397),C=j.NONE,M=j.INVALID_ADDRESS,R=j.UNKNOWN,I=function(e,t){var n=t.type;return Object.values(j).includes(n)?n:e},D=Object(o.createContext)(v),x=function(){return Object(o.useContext)(D)},T=function(e){var t=e.children,n=Object(O.b)().dispatchActions,r=Object(a.a)(),i=r.cartNeedsShipping,s=r.shippingRates,u=r.shippingRatesLoading,l=r.cartErrors,b=Object(o.useReducer)(I,C),p=c()(b,2),d=p[0],m=p[1],v=Object(o.useReducer)(_.b,{}),y=c()(v,2),x=y[0],T=y[1],A=g(),L=A.shippingAddress,z=A.setShippingAddress,U=Object(o.useRef)(x),V=Object(f.a)(s),F=V.selectShippingRate,q=V.selectedShippingRates,B=V.isSelectingRate,Y=Object(o.useMemo)((function(){return{onShippingRateSuccess:N(T).onSuccess,onShippingRateFail:N(T).onFail,onShippingRateSelectSuccess:N(T).onSelectSuccess,onShippingRateSelectFail:N(T).onSelectFail}}),[T]);Object(o.useEffect)((function(){U.current=x}),[x]),Object(o.useEffect)((function(){u?n.incrementCalculating():n.decrementCalculating()}),[u,n]),Object(o.useEffect)((function(){B?n.incrementCalculating():n.decrementCalculating()}),[B,n]),Object(o.useEffect)((function(){l.length>0&&l.some((function(e){return!(!e.code||!Object.values(h).includes(e.code))}))?m({type:M}):m({type:C})}),[l]);var H=Object(o.useMemo)((function(){return{isPristine:d===C,isValid:d===C,hasInvalidAddress:d===M,hasError:d===R||d===M}}),[d]);Object(o.useEffect)((function(){u||0!==s.length&&!H.hasError||Object(P.a)(U.current,w,{hasInvalidAddress:H.hasInvalidAddress,hasError:H.hasError})}),[s,u,H.hasError,H.hasInvalidAddress]),Object(o.useEffect)((function(){!u&&s.length>0&&!H.hasError&&Object(P.a)(U.current,E,s)}),[s,u,H.hasError]),Object(o.useEffect)((function(){!B&&H.hasError&&Object(P.a)(U.current,S,{hasError:H.hasError,hasInvalidAddress:H.hasInvalidAddress})}),[q,B,H.hasError,H.hasInvalidAddress]),Object(o.useEffect)((function(){B||!q||H.hasError||Object(P.a)(U.current,k,q)}),[q,B,H.hasError]);var G={shippingErrorStatus:H,dispatchErrorStatus:m,shippingErrorTypes:j,shippingRates:s,setShippingRates:F,shippingRatesLoading:u,selectedRates:q,setSelectedRates:F,isSelectingRate:B,shippingAddress:L,setShippingAddress:z,onShippingRateSuccess:Y.onShippingRateSuccess,onShippingRateFail:Y.onShippingRateFail,onShippingRateSelectSuccess:Y.onShippingRateSelectSuccess,onShippingRateSelectFail:Y.onShippingRateSelectFail,needsShipping:i};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(D.Provider,{value:G},t))}},159:function(e,t,n){"use strict";var r=n(1),c={first_name:{label:Object(r.__)("First name","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("First name (optional)","woo-gutenberg-products-block"),autocomplete:"given-name",autocapitalize:"sentences",required:!0,hidden:!1,index:1},last_name:{label:Object(r.__)("Last name","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Last name (optional)","woo-gutenberg-products-block"),autocomplete:"family-name",autocapitalize:"sentences",required:!0,hidden:!1,index:2},company:{label:Object(r.__)("Company","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Company (optional)","woo-gutenberg-products-block"),autocomplete:"organization",autocapitalize:"sentences",required:!1,hidden:!1,index:3},address_1:{label:Object(r.__)("Address","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Address (optional)","woo-gutenberg-products-block"),autocomplete:"address-line1",autocapitalize:"sentences",required:!0,hidden:!1,index:4},address_2:{label:Object(r.__)("Apartment, suite, etc.","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Apartment, suite, etc. (optional)","woo-gutenberg-products-block"),autocomplete:"address-line2",autocapitalize:"sentences",required:!1,hidden:!1,index:5},country:{label:Object(r.__)("Country/Region","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Country/Region (optional)","woo-gutenberg-products-block"),autocomplete:"country",required:!0,hidden:!1,index:6},city:{label:Object(r.__)("City","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("City (optional)","woo-gutenberg-products-block"),autocomplete:"address-level2",autocapitalize:"sentences",required:!0,hidden:!1,index:7},state:{label:Object(r.__)("State/County","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("State/County (optional)","woo-gutenberg-products-block"),autocomplete:"address-level1",autocapitalize:"sentences",required:!0,hidden:!1,index:8},postcode:{label:Object(r.__)("Postal code","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Postal code (optional)","woo-gutenberg-products-block"),autocomplete:"postal-code",autocapitalize:"characters",required:!0,hidden:!1,index:9}};t.a=c},164:function(e,t,n){"use strict";var r=n(8),c=n.n(r),o=n(0),a=n(1),i=n(55),s=n(7),u=n.n(s),l=(n(2),n(237),function(e){var t=e.className,n=e.currency,r=e.maxPrice,c=e.minPrice,a=e.priceClassName,s=e.priceStyle;return Object(o.createElement)("span",{className:t},Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",a),currency:n,value:c,style:s})," — ",Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",a),currency:n,value:r,style:s}))}),b=function(e){var t=e.className,n=e.currency,r=e.regularPriceClassName,c=e.regularPriceStyle,s=e.regularPrice,l=e.priceClassName,b=e.priceStyle,p=e.price;return Object(o.createElement)("span",{className:t},Object(o.createElement)("span",{className:"screen-reader-text"},Object(a.__)("Previous price:","woo-gutenberg-products-block")),Object(o.createElement)(i.a,{currency:n,renderText:function(e){return Object(o.createElement)("del",{className:u()("wc-block-components-product-price__regular",r),style:c},e)},value:s}),Object(o.createElement)("span",{className:"screen-reader-text"},Object(a.__)("Discounted price:","woo-gutenberg-products-block")),Object(o.createElement)(i.a,{currency:n,renderText:function(e){return Object(o.createElement)("ins",{className:u()("wc-block-components-product-price__value","is-discounted",l),style:b},e)},value:p}))};t.a=function(e){var t=e.align,n=e.className,r=e.currency,a=e.maxPrice,s=void 0===a?null:a,p=e.minPrice,d=void 0===p?null:p,m=e.price,g=void 0===m?null:m,f=e.priceClassName,O=e.priceStyle,j=e.regularPrice,h=e.regularPriceClassName,v=e.regularPriceStyle,_=u()(n,"price","wc-block-components-product-price",c()({},"wc-block-components-product-price--align-".concat(t),t));return j&&g!==j?Object(o.createElement)(b,{className:_,currency:r,price:g,priceClassName:f,priceStyle:O,regularPrice:j,regularPriceClassName:h,regularPriceStyle:v}):null!==d&&null!==s?Object(o.createElement)(l,{className:_,currency:r,maxPrice:s,minPrice:d,priceClassName:f,priceStyle:O}):null!==g?Object(o.createElement)("span",{className:_},Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",f),currency:r,value:g,style:O})):Object(o.createElement)("span",{className:_},Object(o.createElement)("span",{className:u()("wc-block-components-product-price__value",f)}))}},165:function(e,t,n){"use strict";var r=n(0);t.a=function(e){var t=e.label,n=e.secondaryLabel,c=e.description,o=e.secondaryDescription,a=e.id;return Object(r.createElement)("div",{className:"wc-block-components-radio-control__option-layout"},Object(r.createElement)("div",{className:"wc-block-components-radio-control__label-group"},t&&Object(r.createElement)("span",{id:a?"".concat(a,"__label"):null,className:"wc-block-components-radio-control__label"},t),n&&Object(r.createElement)("span",{id:a?"".concat(a,"__secondary-label"):null,className:"wc-block-components-radio-control__secondary-label"},n)),Object(r.createElement)("div",{className:"wc-block-components-radio-control__description-group"},c&&Object(r.createElement)("span",{id:a?"".concat(a,"__description"):null,className:"wc-block-components-radio-control__description"},c),o&&Object(r.createElement)("span",{id:a?"".concat(a,"__secondary-description"):null,className:"wc-block-components-radio-control__secondary-description"},o)))}},167:function(e,t,n){"use strict";var r=n(0),c=n(57),o=Object(r.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("mask",{id:"external-mask",width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},Object(r.createElement)("path",{fill:"#fff",d:"M6.3431 6.3431v1.994l7.8984.0072-8.6055 8.6054 1.4142 1.4143 8.6055-8.6055.0071 7.8984h1.994V6.3431H6.3431z"})),Object(r.createElement)("g",{mask:"url(#external-mask)"},Object(r.createElement)("path",{d:"M0 0h24v24H0z"})));t.a=o},168:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(9),c=function(e,t){var n=Object(r.useRef)();return Object(r.useEffect)((function(){n.current===e||t&&!t(e,n.current)||(n.current=e)}),[e,t]),n.current}},169:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(8),a=n.n(o),i=n(11),s=n.n(i),u=n(27),l=n.n(u),b=n(0),p=n(1),d=n(9),m=(n(2),n(7)),g=n.n(m),f=n(86),O=n(233),j=n(193),h=n(123);n(266);t.a=Object(j.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,o=e.ariaDescribedBy,i=e.errorId,u=e.validateOnMount,m=void 0===u||u,j=e.focusOnMount,v=void 0!==j&&j,_=e.onChange,y=e.showError,E=void 0===y||y,w=l()(e,["className","instanceId","id","ariaDescribedBy","errorId","validateOnMount","focusOnMount","onChange","showError"]),k=Object(d.useState)(!0),S=s()(k,2),N=S[0],P=S[1],C=Object(d.useRef)(),M=Object(f.b)(),R=M.getValidationError,I=M.hideValidationError,D=M.setValidationErrors,x=M.clearValidationError,T=M.getValidationErrorId,A=r||"textinput-"+n;i=i||A;var L=Object(d.useCallback)((function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];C.current.checkValidity()?x(i):D(a()({},i,{message:C.current.validationMessage||Object(p.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}))}),[x,i,D]);Object(d.useEffect)((function(){N&&(v&&C.current.focus(),P(!1))}),[v,N,P]),Object(d.useEffect)((function(){N&&(m&&L(),P(!1))}),[N,P,m,L]),Object(d.useEffect)((function(){return function(){x(i)}}),[x,i]);var z=R(i)||{},U=z.message&&!z.hidden,V=E&&U&&T(i)?T(i):o;return Object(b.createElement)(h.a,c()({className:g()(t,{"has-error":U}),id:A,onBlur:function(){L(!1)},feedback:E&&Object(b.createElement)(O.a,{propertyName:i}),ref:C,onChange:function(e){I(i),_(e)},ariaDescribedBy:V},w))}))},17:function(e,t){!function(){e.exports=this.wp.blocks}()},170:function(e,t,n){"use strict";n.d(t,"b",(function(){return De})),n.d(t,"a",(function(){return xe}));var r=n(8),c=n.n(r),o=n(11),a=n.n(o),i=n(0),s=n(1),u=n(140),l=n(395),b=n(36),p=n(168),d=n(3),m="pristine",g="idle",f="processing",O="complete",j="before_processing",h="after_processing",v=Object(d.getSetting)("checkoutData",{order_id:0,customer_id:0}),_={redirectUrl:"",status:m,hasError:!1,calculatingCount:0,orderId:v.order_id,orderNotes:"",customerId:v.customer_id,shouldCreateAccount:!1,processingResponse:null},y={SET_IDLE:"set_idle",SET_PRISTINE:"set_pristine",SET_REDIRECT_URL:"set_redirect_url",SET_COMPLETE:"set_checkout_complete",SET_BEFORE_PROCESSING:"set_before_processing",SET_AFTER_PROCESSING:"set_after_processing",SET_PROCESSING_RESPONSE:"set_processing_response",SET_PROCESSING:"set_checkout_is_processing",SET_HAS_ERROR:"set_checkout_has_error",SET_NO_ERROR:"set_checkout_no_error",SET_ORDER_ID:"set_checkout_order_id",SET_ORDER_NOTES:"set_checkout_order_notes",INCREMENT_CALCULATING:"increment_calculating",DECREMENT_CALCULATING:"decrement_calculating"},E=y.SET_PRISTINE,w=y.SET_IDLE,k=y.SET_PROCESSING,S=y.SET_BEFORE_PROCESSING,N=y.SET_AFTER_PROCESSING,P=y.SET_PROCESSING_RESPONSE,C=y.SET_REDIRECT_URL,M=y.SET_COMPLETE,R=y.SET_HAS_ERROR,I=y.SET_NO_ERROR,D=y.INCREMENT_CALCULATING,x=y.DECREMENT_CALCULATING,T=y.SET_ORDER_ID,A=y.SET_SHOULD_CREATE_ACCOUNT,L=y.SET_ORDER_NOTES,z=function(){return{type:E}},U=function(){return{type:w}},V=function(){return{type:k}},F=function(e){return{type:C,url:e}},q=function(e){return{type:P,data:e}},B=function(e){return{type:M,data:e}},Y=function(){return{type:S}},H=function(){return{type:N}},G=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?R:I;return{type:t}},Q=function(){return{type:D}},W=function(){return{type:x}},$=function(e){return{type:T,orderId:e}},K=function(e){return{type:A,shouldCreateAccount:e}},Z=function(e){return{type:L,orderNotes:e}};function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee=y.SET_PRISTINE,te=y.SET_IDLE,ne=y.SET_PROCESSING,re=y.SET_BEFORE_PROCESSING,ce=y.SET_AFTER_PROCESSING,oe=y.SET_PROCESSING_RESPONSE,ae=y.SET_REDIRECT_URL,ie=y.SET_COMPLETE,se=y.SET_HAS_ERROR,ue=y.SET_NO_ERROR,le=y.INCREMENT_CALCULATING,be=y.DECREMENT_CALCULATING,pe=y.SET_ORDER_ID,de=y.SET_ORDER_NOTES,me=y.SET_SHOULD_CREATE_ACCOUNT,ge=m,fe=g,Oe=f,je=j,he=h,ve=O,_e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1?arguments[1]:void 0,n=t.url,r=t.type,c=t.orderId,o=t.orderNotes,a=t.shouldCreateAccount,i=t.data,s=e;switch(r){case ee:s=_;break;case te:s=e.status!==fe?J(J({},e),{},{status:fe}):e;break;case ae:s=n!==e.url?J(J({},e),{},{redirectUrl:n}):e;break;case oe:s=J(J({},e),{},{processingResponse:i});break;case ie:s=e.status!==ve?J(J({},e),{},{status:ve,redirectUrl:(null==i?void 0:i.redirectUrl)||e.redirectUrl}):e;break;case ne:s=!1===(s=e.status!==Oe?J(J({},e),{},{status:Oe,hasError:!1}):e).hasError?s:J(J({},s),{},{hasError:!1});break;case re:s=e.status!==je?J(J({},e),{},{status:je,hasError:!1}):e;break;case ce:s=e.status!==he?J(J({},e),{},{status:he}):e;break;case se:s=e.hasError?e:J(J({},e),{},{hasError:!0}),s=e.status===Oe||e.status===je?J(J({},s),{},{status:fe}):s;break;case ue:s=e.hasError?J(J({},e),{},{hasError:!1}):e;break;case le:s=J(J({},e),{},{calculatingCount:e.calculatingCount+1});break;case be:s=J(J({},e),{},{calculatingCount:Math.max(0,e.calculatingCount-1)});break;case pe:s=J(J({},e),{},{orderId:c});break;case me:a!==e.shouldCreateAccount&&(s=J(J({},e),{},{shouldCreateAccount:a}));break;case de:e.orderNotes!==o&&(s=J(J({},e),{},{orderNotes:o}))}return s!==e&&r!==ee&&s.status===ge&&(s.status=fe),s},ye=n(150),Ee=n(396),we="checkout_before_processing",ke="checkout_after_processing_with_success",Se="checkout_after_processing_with_error",Ne=function(e){return{onCheckoutAfterProcessingWithSuccess:Object(Ee.a)(ke,e),onCheckoutAfterProcessingWithError:Object(Ee.a)(Se,e),onCheckoutBeforeProcessing:Object(Ee.a)(we,e)}},Pe=n(397),Ce=n(86);function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie=Object(i.createContext)({isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,orderNotes:"",customerId:0,onSubmit:function(){},onCheckoutAfterProcessingWithSuccess:function(e){},onCheckoutAfterProcessingWithError:function(e){},onCheckoutBeforeProcessing:function(e){},dispatchActions:{resetCheckout:function(){},setRedirectUrl:function(e){},setHasError:function(e){},setAfterProcessing:function(e){},incrementCalculating:function(){},decrementCalculating:function(){},setOrderId:function(e){},setOrderNotes:function(e){}},hasOrder:!1,isCart:!1}),De=function(){return Object(i.useContext)(Ie)},xe=function(e){var t=e.children,n=e.redirectUrl,r=e.isCart,c=void 0!==r&&r;_.redirectUrl=n;var o,d=Object(i.useReducer)(_e,_),m=a()(d,2),v=m[0],y=m[1],E=Object(i.useReducer)(ye.b,{}),w=a()(E,2),k=w[0],S=w[1],N=Object(i.useRef)(k),P=Object(Ce.b)().setValidationErrors,C=Object(u.a)(),M=C.addErrorNotice,R=C.removeNotices,I=v.calculatingCount>0,D=Object(l.a)(),x=D.isSuccessResponse,T=D.isErrorResponse,A=D.isFailResponse,L=D.shouldRetry,X=(o=Object(l.a)().noticeContexts,{checkoutNotices:Object(b.useSelect)((function(e){return e("core/notices").getNotices("wc/checkout")}),[]),expressPaymentNotices:Object(b.useSelect)((function(e){return e("core/notices").getNotices(o.EXPRESS_PAYMENTS)}),[o.EXPRESS_PAYMENTS]),paymentNotices:Object(b.useSelect)((function(e){return e("core/notices").getNotices(o.PAYMENTS)}),[o.PAYMENTS])}),J=X.checkoutNotices,ee=X.paymentNotices,te=X.expressPaymentNotices;Object(i.useEffect)((function(){N.current=k}),[k]);var ne=Object(i.useMemo)((function(){return Ne(S).onCheckoutAfterProcessingWithSuccess}),[S]),re=Object(i.useMemo)((function(){return Ne(S).onCheckoutAfterProcessingWithError}),[S]),ce=Object(i.useMemo)((function(){return Ne(S).onCheckoutBeforeProcessing}),[S]),oe=Object(i.useMemo)((function(){return{resetCheckout:function(){y(z())},setRedirectUrl:function(e){y(F(e))},setHasError:function(e){y(G(e))},incrementCalculating:function(){y(Q())},decrementCalculating:function(){y(W())},setOrderId:function(e){y($(e))},setOrderNotes:function(e){y(Z(e))},setAfterProcessing:function(e){var t,n,r,c;(!e.payment_result&&e.message&&200!==(null==e||null===(t=e.data)||void 0===t?void 0:t.status)&&(e.payment_result=Re(Re({},e.payment_result),{},{message:e.message})),e.payment_result)&&((null===(n=e.payment_result)||void 0===n?void 0:n.redirect_url)&&y(F(e.payment_result.redirect_url)),y(q((r=e.payment_result,c={message:(null==r?void 0:r.message)||"",paymentStatus:r.payment_status,paymentDetails:{}},Array.isArray(r.payment_details)&&r.payment_details.forEach((function(e){var t=e.key,n=e.value;c.paymentDetails[t]=n})),c))));y(H())}}}),[]);Object(i.useEffect)((function(){v.status===j&&(R("error"),Object(Pe.a)(N.current,we,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,n=e.validationErrors;M(t),P(n)})),y(U())):y(V())})))}),[v.status,P,M,R,y]);var ae=Object(p.a)(v.status),ie=Object(p.a)(v.hasError);Object(i.useEffect)((function(){if((v.status!==ae||v.hasError!==ie)&&v.status===h){var e={redirectUrl:v.redirectUrl,orderId:v.orderId,customerId:v.customerId,customerNote:v.customerNote,processingResponse:v.processingResponse};v.hasError?Object(Pe.b)(N.current,Se,e).then((function(t){if(T(t)||A(t)){if(t.message){var n=t.messageContext?{context:t.messageContext}:void 0;M(t.message,n)}L(t)?y(U()):y(B(t))}else{if(!(J.some((function(e){return"error"===e.status}))||te.some((function(e){return"error"===e.status}))||ee.some((function(e){return"error"===e.status})))){var r,c=(null===(r=e.processingResponse)||void 0===r?void 0:r.message)||Object(s.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");M(c,{id:"checkout"})}y(U())}})):Object(Pe.b)(N.current,ke,e).then((function(e){if(x(e))y(B(e));else if(T(e)||A(e)){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;M(e.message,t)}L(e)?y(G(!0)):y(B(e))}else y(B())}))}}),[v.status,v.hasError,v.redirectUrl,v.orderId,v.customerId,v.customerNote,v.processingResponse,ae,ie,oe,M,T,A,x,L,J,te,ee]);var se={onSubmit:Object(i.useCallback)((function(){y(Y())}),[]),isComplete:v.status===O,isIdle:v.status===g,isCalculating:I,isProcessing:v.status===f,isBeforeProcessing:v.status===j,isAfterProcessing:v.status===h,hasError:v.hasError,redirectUrl:v.redirectUrl,onCheckoutAfterProcessingWithSuccess:ne,onCheckoutAfterProcessingWithError:re,onCheckoutBeforeProcessing:ce,dispatchActions:oe,isCart:c,orderId:v.orderId,hasOrder:!!v.orderId,customerId:v.customerId,orderNotes:v.orderNotes,shouldCreateAccount:v.shouldCreateAccount,setShouldCreateAccount:function(e){return y(K(e))}};return Object(i.createElement)(Ie.Provider,{value:se},t)}},177:function(e,t,n){"use strict";var r=n(0),c=n(142),o=n(95),a=function(e){var t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)},i=function(e){return e.replace(/<\/?[a-z][^>]*?>/gi,"")},s=function(e,t){return e.replace(/[\s|\.\,]+$/i,"")+t},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"&hellip;",r=i(e),c=r.split(" ").splice(0,t).join(" ");return Object(o.autop)(s(c,n))},l=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&hellip;",c=i(e),a=c.slice(0,t);if(n)return Object(o.autop)(s(a,r));var u=a.match(/([\s]+)/g),l=u?u.length:0,b=c.slice(0,t+l);return Object(o.autop)(s(b,r))};t.a=function(e){var t=e.source,n=e.maxLength,i=void 0===n?15:n,s=e.countType,b=void 0===s?"words":s,p=e.className,d=void 0===p?"":p,m=Object(r.useMemo)((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"words",r=Object(o.autop)(e),i=Object(c.count)(r,n);if(i<=t)return r;var s=a(r),b=Object(c.count)(s,n);return b<=t?s:"words"===n?u(s,t):l(s,t,"characters_including_spaces"===n)}(t,i,b)}),[t,i,b]);return Object(r.createElement)(r.RawHTML,{className:d},m)}},18:function(e,t){!function(){e.exports=this.wp.url}()},185:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(22),a=n.n(o),i=n(25),s=n.n(i),u=n(19),l=n.n(u),b=n(23),p=n.n(b),d=n(24),m=n.n(d),g=n(12),f=n.n(g),O=n(8),j=n.n(O),h=n(0),v=n(9);n(260);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var c=f()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return m()(this,n)}}t.a=function(e){var t=function(t){p()(r,t);var n=_(r);function r(){var e;return a()(this,r),e=n.call(this),j()(l()(e),"scrollToTopIfNeeded",(function(){var t=e.scrollPointRef.current.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollPointRef.current.scrollIntoView()})),j()(l()(e),"moveFocusToTop",(function(t){var n=e.scrollPointRef.current.parentElement.querySelectorAll(t);n.length&&n[0].focus()})),j()(l()(e),"scrollToTop",(function(t){window&&Number.isFinite(window.innerHeight)&&(e.scrollToTopIfNeeded(),t&&t.focusableSelector&&e.moveFocusToTop(t.focusableSelector))})),e.scrollPointRef=Object(v.createRef)(),e}return s()(r,[{key:"render",value:function(){return Object(h.createElement)(v.Fragment,null,Object(h.createElement)("div",{className:"with-scroll-to-top__scroll-point",ref:this.scrollPointRef,"aria-hidden":!0}),Object(h.createElement)(e,c()({},this.props,{scrollToTop:this.scrollToTop})))}}]),r}(v.Component);return t.displayName="withScrollToTop",t}},189:function(e,t,n){"use strict";var r=n(22),c=n.n(r),o=n(25),a=n.n(o),i=n(19),s=n.n(i),u=n(23),l=n.n(u),b=n(24),p=n.n(b),d=n(12),m=n.n(d),g=n(8),f=n.n(g),O=n(0),j=(n(2),n(9)),h=n(1),v=n(5),_=function(e){var t=e.imageUrl,n=void 0===t?"".concat(v.U,"img/block-error.svg"):t,r=e.header,c=void 0===r?Object(h.__)("Oops!","woo-gutenberg-products-block"):r,o=e.text,a=void 0===o?Object(h.__)("There was an error loading the content.","woo-gutenberg-products-block"):o,i=e.errorMessage,s=e.errorMessagePrefix,u=void 0===s?Object(h.__)("Error:","woo-gutenberg-products-block"):s;return Object(O.createElement)("div",{className:"wc-block-error wc-block-components-error"},n&&Object(O.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:n,alt:""}),Object(O.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},c&&Object(O.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},c),a&&Object(O.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},a),i&&Object(O.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},u?u+" ":"",i)))};n(262);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var c=m()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return p()(this,n)}}var E=function(e){l()(n,e);var t=y(n);function n(){var e;c()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),f()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.header,n=e.imageUrl,r=e.showErrorMessage,c=e.text,o=e.errorMessagePrefix,a=this.state,i=a.errorMessage;return a.hasError?Object(O.createElement)(_,{errorMessage:r?i:null,header:t,imageUrl:n,text:c,errorMessagePrefix:o}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:Object(O.createElement)(j.Fragment,null,Object(O.createElement)("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}}]),n}(j.Component);E.defaultProps={showErrorMessage:!0};t.a=E},191:function(e,t,n){"use strict";n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return j}));var r=n(8),c=n.n(r),o=n(11),a=n.n(o),i=n(0),s=(n(2),n(36)),u=n(303),l=n(944),b=n(140),p=n(212),d=function(){var e=Object(p.b)().isEditor,t=Object(b.a)(),n=t.notices,r=t.removeNotice;if(e)return null;var c=n.filter((function(e){return"snackbar"===e.type}));return Object(i.createElement)(l.a,{notices:c,className:"wc-block-components-notices__snackbar",onRemove:r})};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=Object(i.createContext)({notices:[],createNotice:function(e,t,n){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),O=function(){return Object(i.useContext)(f)},j=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,c=e.createNoticeContainer,o=void 0===c||c,l=e.context,b=void 0===l?"wc/core":l,p=Object(s.useDispatch)("core/notices"),m=p.createNotice,O=p.removeNotice,j=Object(i.useState)(!1),h=a()(j,2),v=h[0],_=h[1],y=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};m(e,t,g(g({},n),{},{context:n.context||b}))}),[m,b]),E=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;O(e,t)}),[O,b]),w=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y("default",e,g(g({},t),{},{type:"snackbar"}))}),[y]),k={notices:Object(s.useSelect)((function(e){return{notices:e("core/notices").getNotices(b)}}),[b]).notices,createNotice:y,createSnackbarNotice:w,removeNotice:E,context:b,setIsSuppressed:_},S=v?null:Object(i.createElement)(u.a,{className:r,notices:k.notices}),N=v?null:Object(i.createElement)(d,null);return Object(i.createElement)(f.Provider,{value:k},o&&S,t,N)}},194:function(e,t){},203:function(e,t){},204:function(e,t){},208:function(e,t,n){"use strict";var r=n(22),c=n.n(r),o=n(25),a=n.n(o),i=n(19),s=n.n(i),u=n(23),l=n.n(u),b=n(24),p=n.n(b),d=n(12),m=n.n(d),g=n(8),f=n.n(g),O=n(0),j=n(1),h=n(9),v=n(303),_=(n(2),n(5));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var c=m()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return p()(this,n)}}var E=function(e){l()(n,e);var t=y(n);function n(){var e;c()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),f()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(n,[{key:"render",value:function(){var e=this.state,t=e.hasError,n=e.errorMessage,r=this.props.isEditor;if(t){var c=Object(j.__)("This site is experiencing difficulties with this payment method. Please contact the owner of the site for assistance.","woo-gutenberg-products-block");(r||_.l)&&(c=n||Object(j.__)("There was an error with this payment method. Please verify it's configured correctly.","woo-gutenberg-products-block"));var o=[{id:"0",content:c,isDismissible:!1,status:"error"}];return Object(O.createElement)(v.a,{notices:o})}return this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{errorMessage:e.message,hasError:!0}}}]),n}(h.Component);E.defaultProps={isEditor:!1},t.a=E},209:function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return y}));var r=n(8),c=n.n(r),o=n(11),a=n.n(o),i=n(0),s=n(3),u=n(6),l=n(33);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=Object(s.getSetting)("checkoutData",{}),m={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},g=Object(u.mapValues)(d.billing_address,(function(e){return Object(l.decodeEntities)(e)})),f=p(p({},m),g),O={billingData:m,setBillingData:function(){return null}};function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=Object(i.createContext)(O),_=function(){return Object(i.useContext)(v)},y=function(e){var t=e.children,n=Object(i.useState)(f),r=a()(n,2),c=r[0],o=r[1],s={billingData:c,setBillingData:Object(i.useCallback)((function(e){o((function(t){return h(h({},t),e)}))}),[])};return Object(i.createElement)(v.Provider,{value:s},t)}},210:function(e,t,n){"use strict";var r=n(0),c=n(7),o=n.n(c),a=n(193),i=n(8),s=n.n(i),u=n(165),l=function(e){var t,n=e.checked,c=e.name,a=e.onChange,i=e.option,l=i.value,b=i.label,p=i.description,d=i.secondaryLabel,m=i.secondaryDescription;return Object(r.createElement)("label",{className:"wc-block-components-radio-control__option",htmlFor:"".concat(c,"-").concat(l)},Object(r.createElement)("input",{id:"".concat(c,"-").concat(l),className:"wc-block-components-radio-control__input",type:"radio",name:c,value:l,onChange:function(e){return a(e.target.value)},checked:n,"aria-describedby":o()((t={},s()(t,"".concat(c,"-").concat(l,"__label"),b),s()(t,"".concat(c,"-").concat(l,"__secondary-label"),d),s()(t,"".concat(c,"-").concat(l,"__description"),p),s()(t,"".concat(c,"-").concat(l,"__secondary-description"),m),t))}),Object(r.createElement)(u.a,{id:"".concat(c,"-").concat(l),label:b,secondaryLabel:d,description:p,secondaryDescription:m}))};n(376),t.a=Object(a.a)((function(e){var t=e.className,n=e.instanceId,c=e.id,a=e.selected,i=e.onChange,s=e.options,u=void 0===s?[]:s,b=c||n;return u.length&&Object(r.createElement)("div",{className:o()("wc-block-components-radio-control",t)},u.map((function(e){return Object(r.createElement)(l,{key:e.value,name:"radio-control-".concat(b),checked:e.value===a,option:e,onChange:function(t){i(t),"function"==typeof e.onChange&&e.onChange(t)}})})))}))},212:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n(0),c=n(36),o=Object(r.createContext)({isEditor:!1,currentPostId:0,previewData:{}}),a=function(){return Object(r.useContext)(o)},i=function(e){var t=e.children,n=e.currentPostId,a=void 0===n?0:n,i=e.previewData,s=void 0===i?{}:i,u={isEditor:!0,currentPostId:Object(c.useSelect)((function(e){return a||e("core/editor").getCurrentPostId()}),[a]),previewData:s};return Object(r.createElement)(o.Provider,{value:u},t)}},233:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),c=n(86),o=(n(2),n(240),function(e){var t=e.errorMessage,n=void 0===t?"":t,o=e.propertyName,a=void 0===o?"":o,i=e.elementId,s=void 0===i?"":i,u=Object(c.b)(),l=u.getValidationError,b=u.getValidationErrorId;if(!n){var p=l(a)||{};if(!p.message||p.hidden)return null;n=p.message}return Object(r.createElement)("div",{className:"wc-block-components-validation-error",role:"alert"},Object(r.createElement)("p",{id:b(s)},n))})},237:function(e,t){},238:function(e,t){},239:function(e,t){},240:function(e,t){},259:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g}));var r=n(8),c=n.n(r),o=n(60),a=n.n(o),i=n(3);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l,b,p={code:i.CURRENCY.code,symbol:i.CURRENCY.symbol,thousandSeparator:i.CURRENCY.thousandSeparator,decimalSeparator:i.CURRENCY.decimalSeparator,minorUnit:i.CURRENCY.precision,prefix:(l=i.CURRENCY.symbol,b=i.CURRENCY.symbolPosition,{left:l,left_space:" "+l,right:"",right_space:""}[b]||""),suffix:function(e,t){return{left:"",left_space:"",right:e,right_space:" "+e}[t]||""}(i.CURRENCY.symbol,i.CURRENCY.symbolPosition)},d=function(e){if(!e||"object"!==a()(e))return p;var t=e.currency_code,n=e.currency_symbol,r=e.currency_thousand_separator,c=e.currency_decimal_separator,o=e.currency_minor_unit,i=e.currency_prefix,s=e.currency_suffix;return{code:t||"USD",symbol:n||"$",thousandSeparator:"string"==typeof r?r:",",decimalSeparator:"string"==typeof c?c:".",minorUnit:Number.isFinite(o)?o:2,prefix:"string"==typeof i?i:"$",suffix:"string"==typeof s?s:""}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(u({},p),e)},g=function(e,t){if(""===e||void 0===e)return"";var n=parseInt(e,10);if(!Number.isFinite(n))return"";var r=m(t),c=n/Math.pow(10,r.minorUnit),o=r.prefix+c+r.suffix,a=document.createElement("textarea");return a.innerHTML=o,a.value}},26:function(e,t){!function(){e.exports=this.wp.compose}()},260:function(e,t){},262:function(e,t){},263:function(e,t){},264:function(e,t){},265:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(11),a=n.n(o),i=n(27),s=n.n(i),u=n(0),l=n(169),b=n(58),p=n(310);n(2);t.a=function(e){var t=e.onChange,n=e.value,r=void 0===n?"":n,o=s()(e,["onChange","value"]),i=Object(u.useState)(r),d=a()(i,2),m=d[0],g=d[1],f=Object(p.a)((function(e){t(e)}),400),O=a()(f,1)[0],j=Object(b.a)(O);return Object(u.useEffect)((function(){j(m)}),[j,m]),Object(u.createElement)(l.a,c()({onChange:g,value:m},o))}},266:function(e,t){},268:function(e,t){!function(){e.exports=this.wp.deprecated}()},269:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(27),a=n.n(o),i=n(0),s=n(57),u=Object(i.createElement)((function(e){var t=e.className,n=e.size,r=void 0===n?20:n,o=a()(e,["className","size"]);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:r,height:r},o),Object(i.createElement)("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))}),null),l=n(284);t.a=function(e){let t;switch(e.icon){case"arrow-down-alt2":t=u;break;case"no-alt":t=l.a}return t?Object(i.cloneElement)(t,{size:e.size||20,className:e.className}):null}},273:function(e,t,n){"use strict";var r=n(51),c=n.n(r),o=n(0),a=n(1),i=n(4),s=n(36),u=n(40);t.a=function(e){var t=e.setPageId,n=e.pageId,r=e.labels,l=Object(s.useSelect)((function(e){return e("core").getEntityRecords("postType","page",{status:"publish",orderby:"title",order:"asc",per_page:100})}),[])||null;return l?Object(o.createElement)(i.PanelBody,{title:r.title},Object(o.createElement)(i.SelectControl,{label:Object(a.__)("Link to","woo-gutenberg-products-block"),value:n,options:[{label:r.default,value:0}].concat(c()(l.map((function(e){return{label:Object(u.a)(e,l),value:parseInt(e.id,10)}})))),onChange:function(e){return t(parseInt(e,10))}})):null}},274:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),c=n(1),o=(n(2),n(61)),a=n(305),i=n(167),s=(n(364),function(e){var t=e.text,n=e.url,s=void 0===n?"https://ideas.woocommerce.com/forums/133476-woocommerce?category_id=384565":n;return Object(r.createElement)("div",{className:"wc-block-feedback-prompt"},Object(r.createElement)(o.a,{srcElement:a.a}),Object(r.createElement)("h2",{className:"wc-block-feedback-prompt__title"},Object(c.__)("Feedback?","woo-gutenberg-products-block")),Object(r.createElement)("p",{className:"wc-block-feedback-prompt__text"},t),Object(r.createElement)("a",{href:s,className:"wc-block-feedback-prompt__link",rel:"noreferrer noopener",target:"_blank"},Object(c.__)("Give us your feedback.","woo-gutenberg-products-block"),Object(r.createElement)(o.a,{srcElement:i.a,size:16})))}),u=function(){return Object(r.createElement)(s,{text:Object(c.__)("We are currently working on improving our cart and checkout blocks to provide merchants with the tools and customization options they need.","woo-gutenberg-products-block"),url:"https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/new?template=--cart-checkout-feedback.md"})}},275:function(e,t,n){"use strict";var r=n(8),c=n.n(r),o=n(0),a=n(388),i=n(387),s=n(212),u=n(281),l=n(208);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(){var e=Object(s.b)().isEditor,t=Object(u.b)(),n=t.setActivePaymentMethod,r=t.activePaymentMethod,c=t.paymentMethodData,b=t.setPaymentStatus,d=Object(a.a)(),m=Object(i.a)().paymentMethods,g=Object(o.useRef)(r),f=Object(o.useRef)(c),O=Object(o.useCallback)((function(e){return function(){g.current=r,f.current=c,b().started(),n(e)}}),[r,c,n,b]),j=Object(o.useCallback)((function(){n(g.current),f.current.isSavedToken&&b().success(f.current)}),[n,b]),h=Object.keys(m),v=h.length>0?h.map((function(t){var n=e?m[t].edit:m[t].content;return Object(o.isValidElement)(n)?Object(o.createElement)("li",{key:t,id:"express-payment-method-".concat(t)},Object(o.cloneElement)(n,p(p({},d),{},{onClick:O(t),onClose:j}))):null})):Object(o.createElement)("li",{key:"noneRegistered"},"No registered Payment Methods");return Object(o.createElement)(l.a,{isEditor:e},Object(o.createElement)("ul",{className:"wc-block-components-express-payment__event-buttons"},v))}},277:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(27),a=n.n(o),i=n(0),s=(n(2),n(7)),u=n.n(s),l=n(1),b=n(61),p=n(284),d=(n(203),function(e){var t=e.text,n=e.screenReaderText,r=void 0===n?"":n,o=e.element,s=void 0===o?"li":o,l=e.className,b=void 0===l?"":l,p=e.radius,d=void 0===p?"small":p,m=e.children,g=void 0===m?null:m,f=a()(e,["text","screenReaderText","element","className","radius","children"]),O=s,j=u()(b,"wc-block-components-chip","wc-block-components-chip--radius-"+d),h=Boolean(r&&r!==t);return Object(i.createElement)(O,c()({className:j},f),Object(i.createElement)("span",{"aria-hidden":h,className:"wc-block-components-chip__text"},t),h&&Object(i.createElement)("span",{className:"screen-reader-text"},r),g)});t.a=function(e){var t=e.ariaLabel,n=void 0===t?"":t,r=e.className,o=void 0===r?"":r,s=e.disabled,m=void 0!==s&&s,g=e.onRemove,f=void 0===g?function(){}:g,O=e.removeOnAnyClick,j=void 0!==O&&O,h=e.text,v=e.screenReaderText,_=void 0===v?"":v,y=a()(e,["ariaLabel","className","disabled","onRemove","removeOnAnyClick","text","screenReaderText"]),E=j?"span":"button";if(!n){var w=_&&"string"==typeof _?_:h;n="string"!=typeof w?Object(l.__)("Remove","woo-gutenberg-products-block"):Object(l.sprintf)(Object(l.__)('Remove "%s"',"woo-gutenberg-products-block"),w)}var k={"aria-label":n,disabled:m,onClick:f,onKeyDown:function(e){"Backspace"!==e.key&&"Delete"!==e.key||f()}},S=j?k:{},N=j?{"aria-hidden":!0}:k;return Object(i.createElement)(d,c()({},y,S,{className:u()(o,"is-removable"),element:j?"button":y.element,screenReaderText:_,text:h}),Object(i.createElement)(E,c()({className:"wc-block-components-chip__remove"},N),Object(i.createElement)(b.a,{className:"wc-block-components-chip__remove-icon",srcElement:p.a,size:16})))}},281:function(e,t,n){"use strict";n.d(t,"b",(function(){return he})),n.d(t,"a",(function(){return ve}));var r=n(51),c=n.n(r),o=n(11),a=n.n(o),i=n(0),s=n(3),u=n(395),l=n(140),b=n(212),p=n(8),d=n.n(p);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={PRISTINE:"pristine",STARTED:"started",PROCESSING:"processing",ERROR:"has_error",FAILED:"failed",SUCCESS:"success",COMPLETE:"complete"},O=g(g({},f),{},{SET_REGISTERED_PAYMENT_METHODS:"set_registered_payment_methods",SET_REGISTERED_EXPRESS_PAYMENT_METHODS:"set_registered_express_payment_methods",SET_SHOULD_SAVE_PAYMENT_METHOD:"set_should_save_payment_method"}),j={currentStatus:f.PRISTINE,shouldSavePaymentMethod:!1,paymentMethodData:{payment_method:""},hasSavedToken:!1,errorMessage:"",paymentMethods:{},expressPaymentMethods:{}},h={setPaymentStatus:function(){return{started:function(){},processing:function(){},completed:function(){},error:function(e){},failed:function(e,t){},success:function(e,t){}}},currentStatus:{isPristine:!0,isStarted:!1,isProcessing:!1,isFinished:!1,hasError:!1,hasFailed:!1,isSuccessful:!1},paymentStatuses:f,paymentMethodData:{},errorMessage:"",activePaymentMethod:"",setActivePaymentMethod:function(){},customerPaymentMethods:{},paymentMethods:{},expressPaymentMethods:{},paymentMethodsInitialized:!1,expressPaymentMethodsInitialized:!1,onPaymentProcessing:function(){},onPaymentSuccess:function(){},onPaymentFail:function(){}},v=n(60),_=n.n(v);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=O.STARTED,k=O.ERROR,S=O.FAILED,N=O.SUCCESS,P=O.PROCESSING,C=O.PRISTINE,M=O.COMPLETE,R=O.SET_REGISTERED_PAYMENT_METHODS,I=O.SET_REGISTERED_EXPRESS_PAYMENT_METHODS,D=O.SET_SHOULD_SAVE_PAYMENT_METHOD,x=function(e){return!("object"!==_()(e)||!e.isSavedToken)},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.paymentMethodData,c=t.shouldSavePaymentMethod,o=t.errorMessage,a=t.paymentMethods;switch(n){case w:return e.currentStatus!==w?E(E({},e),{},{currentStatus:w}):e;case k:return e.currentStatus!==k?E(E({},e),{},{currentStatus:k,errorMessage:o||e.errorMessage}):e;case S:return e.currentStatus!==S?E(E({},e),{},{currentStatus:S,paymentMethodData:r||e.paymentMethodData,errorMessage:o||e.errorMessage}):e;case N:return e.currentStatus!==N?E(E({},e),{},{currentStatus:N,paymentMethodData:r||e.paymentMethodData,hasSavedToken:x(r)}):e;case P:return e.currentStatus!==P?E(E({},e),{},{currentStatus:P,errorMessage:""}):e;case M:return e.currentStatus!==M?E(E({},e),{},{currentStatus:M}):e;case C:return E(E({},j),{},{currentStatus:C,paymentMethods:E({},e.paymentMethods),expressPaymentMethods:E({},e.expressPaymentMethods),shouldSavePaymentMethod:e.shouldSavePaymentMethod});case R:return E(E({},e),{},{paymentMethods:a});case I:return E(E({},e),{},{expressPaymentMethods:E(E({},e.expressPaymentMethods),a)});case D:return E(E({},e),{},{shouldSavePaymentMethod:c})}return e},A=O.ERROR,L=O.FAILED,z=O.SUCCESS,U=O.SET_REGISTERED_PAYMENT_METHODS,V=O.SET_REGISTERED_EXPRESS_PAYMENT_METHODS,F=O.SET_SHOULD_SAVE_PAYMENT_METHOD,q=function(e){return{type:e}},B=function(e){var t=e.errorMessage,n=e.paymentMethodData;return{type:L,errorMessage:t,paymentMethodData:n}},Y=function(e){var t=e.paymentMethodData;return{type:z,paymentMethodData:t}},H=n(15),G=n.n(H),Q=n(37),W=n.n(Q),$=n(1),K=n(56),Z=n(156),X=n(58),J=n(134),ee=n(5);function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=function(e,t,n,r){var c=Object(i.useState)(!1),o=a()(c,2),s=o[0],u=o[1],p=Object(b.b)().isEditor,m=Object(Z.b)(),g=m.selectedRates,f=m.shippingAddress,O=Object(X.a)(g),j=Object(X.a)(n),h=Object(J.a)(),v=h.cartTotals,_=h.cartNeedsShipping,y=Object(i.useRef)({cartTotals:v,cartNeedsShipping:_,shippingAddress:f,selectedShippingMethods:O}),E=Object(l.a)().addErrorNotice;Object(i.useEffect)((function(){y.current={cartTotals:v,cartNeedsShipping:_,shippingAddress:f,selectedShippingMethods:O}}),[v,_,f,O]);var w=Object(i.useCallback)(W()(G.a.mark((function n(){var c,o,a,i,s,l,b;return G.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:c={},o=function(e){c=ne(ne({},c),{},d()({},e.name,e))},a=0;case 3:if(!(a<j.length)){n.next=24;break}if(i=j[a],s=t[i]){n.next=8;break}return n.abrupt("continue",21);case 8:return n.prev=8,n.next=11,Promise.resolve(s.canMakePayment(y.current));case 11:if(!(l=n.sent)){n.next=16;break}if(!l.error){n.next=15;break}throw new Error(l.error.message);case 15:o(s);case 16:n.next=21;break;case 18:n.prev=18,n.t0=n.catch(8),(ee.l||p)&&(b=Object($.sprintf)(Object($.__)("There was an error registering the payment method with id '%s': ","woo-gutenberg-products-block"),s.paymentMethodId),E("".concat(b," ").concat(n.t0),{context:r,id:"wc-".concat(s.paymentMethodId,"-registration-error")}));case 21:a++,n.next=3;break;case 24:e(c),u(!0);case 26:case"end":return n.stop()}}),n,null,[[8,18]])}))),[E,e,p,r,j,t]);return Object(i.useEffect)((function(){w()}),[w,O]),s},ce=n(209),oe=n(170),ae=n(150),ie=n(396),se="payment_processing",ue=n(397),le=n(86),be=f.STARTED,pe=f.PROCESSING,de=f.COMPLETE,me=f.PRISTINE,ge=f.ERROR,fe=f.FAILED,Oe=f.SUCCESS,je=Object(i.createContext)(h),he=function(){return Object(i.useContext)(je)},ve=function(e){var t=e.children,n=Object(ce.b)().setBillingData,r=Object(oe.b)(),o=r.isProcessing,p=r.isIdle,d=r.isCalculating,m=r.hasError,g=Object(u.a)(),O=g.isSuccessResponse,h=g.isErrorResponse,v=g.isFailResponse,_=g.noticeContexts,y=Object(i.useState)(""),E=a()(y,2),w=E[0],k=E[1],S=Object(i.useReducer)(ae.b,{}),N=a()(S,2),P=N[0],C=N[1],M=Object(i.useRef)(P),R=Object(b.b)(),I=R.isEditor,D=R.previewData,x=Object(i.useReducer)(T,j),L=a()(x,2),z=L[0],H=L[1],G=Object(i.useCallback)((function(e){k(e),H(q(me))}),[k,H]),Q=Object(i.useCallback)((function(e){H(function(e){return{type:U,paymentMethods:e}}(e))}),[H]),W=Object(i.useCallback)((function(e){H(function(e){return{type:V,paymentMethods:e}}(e))}),[H]),$=function(e){var t=Object(K.getPaymentMethods)(),n=Object(u.a)().noticeContexts,r=new Set([].concat(c()(ee.F),c()(Object.keys(t))));return re(e,t,Array.from(r),n.PAYMENTS)}(Q),X=function(e){var t=Object(K.getExpressPaymentMethods)(),n=Object(u.a)().noticeContexts;return re(e,t,Object.keys(t),n.EXPRESS_PAYMENTS)}(W),J=Object(le.b)().setValidationErrors,te=Object(l.a)(),ne=te.addErrorNotice,he=te.removeNotice,ve=Object(Z.b)().setShippingAddress,_e=Object(i.useCallback)((function(e){H({type:F,shouldSavePaymentMethod:e})}),[H]),ye=Object(i.useMemo)((function(){return I&&D.previewSavedPaymentMethods?D.previewSavedPaymentMethods:$&&0!==z.paymentMethods.length?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Object(s.getSetting)("customerPaymentMethods",{}),n=Object.keys(t);if(0===n.length)return{};var r={};return n.forEach((function(n){r[n]=t[n].filter((function(t){return Object.keys(e).includes(t.method.gateway)}))})),r}(z.paymentMethods):{}}),[I,D.previewSavedPaymentMethods,$,z.paymentMethods]),Ee=Object(i.useCallback)((function(e){e?ne(e,{context:_.EXPRESS_PAYMENTS,id:"wc-express-payment-error"}):he("wc-express-payment-error",_.EXPRESS_PAYMENTS)}),[ne,_.EXPRESS_PAYMENTS,he]);Object(i.useEffect)((function(){M.current=P}),[P]);var we=Object(i.useMemo)((function(){return(e=C,{onPaymentProcessing:Object(ie.a)(se,e)}).onPaymentProcessing;var e}),[C]),ke=Object(i.useMemo)((function(){return{isPristine:z.currentStatus===me,isStarted:z.currentStatus===be,isProcessing:z.currentStatus===pe,isFinished:[ge,fe,Oe].includes(z.currentStatus),hasError:z.currentStatus===ge,hasFailed:z.currentStatus===fe,isSuccessful:z.currentStatus===Oe}}),[z.currentStatus]),Se=Object(i.useCallback)((function(){return{started:function(){return H(q(be))},processing:function(){return H(q(pe))},completed:function(){return H(q(de))},error:function(e){return H(function(e){return{type:A,errorMessage:e}}(e))},failed:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;r&&n(r),H(B({errorMessage:e,paymentMethodData:t}))},success:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t&&n(t),null!==r&&(null==r?void 0:r.address)&&ve(r.address),H(Y({paymentMethodData:e}))}}}),[H,n,ve]);Object(i.useEffect)((function(){!o||m||d||ke.isFinished||Se().processing()}),[o,m,d,ke.isFinished,Se]),Object(i.useEffect)((function(){p&&!ke.isSuccessful&&H(q(me))}),[p,ke.isSuccessful]),Object(i.useEffect)((function(){m&&ke.isSuccessful&&!z.hasSavedToken&&H(q(me))}),[m,ke.isSuccessful,z.hasSavedToken]),Object(i.useEffect)((function(){var e=Object.keys(z.paymentMethods),t=[].concat(c()(e),c()(Object.keys(z.expressPaymentMethods)));$&&e.length&&k((function(e){return e&&t.includes(e)?e:(H(q(me)),Object.keys(z.paymentMethods)[0])}))}),[$,z.paymentMethods,z.expressPaymentMethods,k]),Object(i.useEffect)((function(){ke.isProcessing&&(he("wc-payment-error",_.PAYMENTS),Object(ue.b)(M.current,se,{}).then((function(e){var t,n,r;if(O(e))Se().success(null==e||null===(t=e.meta)||void 0===t?void 0:t.paymentMethodData,null==e||null===(n=e.meta)||void 0===n?void 0:n.billingData,null==e||null===(r=e.meta)||void 0===r?void 0:r.shippingData);else if(v(e)){var c,o;e.message&&e.message.length&&ne(e.message,{id:"wc-payment-error",isDismissible:!1,context:(null==e?void 0:e.messageContext)||_.PAYMENTS}),Se().failed(null==e?void 0:e.message,null==e||null===(c=e.meta)||void 0===c?void 0:c.paymentMethodData,null==e||null===(o=e.meta)||void 0===o?void 0:o.billingData)}else h(e)?(e.message&&e.message.length&&ne(e.message,{id:"wc-payment-error",isDismissible:!1,context:(null==e?void 0:e.messageContext)||_.PAYMENTS}),Se().error(e.message),J(null==e?void 0:e.validationErrors)):Se().success()})))}),[ke.isProcessing,J,Se,he,_.PAYMENTS,O,v,h,ne]);var Ne={setPaymentStatus:Se,currentStatus:ke,paymentStatuses:f,paymentMethodData:z.paymentMethodData,errorMessage:z.errorMessage,activePaymentMethod:w,setActivePaymentMethod:G,onPaymentProcessing:we,customerPaymentMethods:ye,paymentMethods:z.paymentMethods,expressPaymentMethods:z.expressPaymentMethods,paymentMethodsInitialized:$,expressPaymentMethodsInitialized:X,setExpressPaymentError:Ee,shouldSavePayment:z.shouldSavePaymentMethod,setShouldSavePayment:_e};return Object(i.createElement)(je.Provider,{value:Ne},t)}},284:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(27),a=n.n(o),i=n(0),s=n(57),u=Object(i.createElement)((function(e){var t=e.className,n=e.size,r=a()(e,["className","size"]);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:n,height:n},r),Object(i.createElement)("path",{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))}),null);t.a=u},3:function(e,t){!function(){e.exports=this.wc.wcSettings}()},303:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(0),a=(n(2),n(7)),i=n.n(a),s=n(390),u=n(191),l=(n(238),function(e){var t=e.status;switch(void 0===t?"default":t){case"error":return"woocommerce-error";case"success":return"woocommerce-success";case"info":case"warning":return"woocommerce-info"}return""});t.a=function(e){var t=e.className,n=e.notices,r=Object(u.b)().removeNotice,a=n.filter((function(e){return"snackbar"!==e.type}));if(!a.length)return null;var b=i()(t,"wc-block-components-notices");return Object(o.createElement)("div",{className:b},a.map((function(e){return Object(o.createElement)(s.a,c()({key:"store-notice-"+e.id},e,{className:i()("wc-block-components-notices__notice","woocommerce-message",l(e)),onRemove:function(){e.isDismissible&&r(e.id)}}),e.content)})))}},305:function(e,t,n){"use strict";var r=n(0),c=n(57),o=Object(r.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"}));t.a=o},33:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},36:function(e,t){!function(){e.exports=this.wp.data}()},362:function(e,t,n){"use strict";var r=n(0),c=n(57),o=Object(r.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4V6h16v12z"}));t.a=o},364:function(e,t){},365:function(e,t){},366:function(e,t){},367:function(e,t){},368:function(e,t){},369:function(e,t){},370:function(e,t){},371:function(e,t){},372:function(e,t){},373:function(e,t){},374:function(e,t){},375:function(e,t){},376:function(e,t){},377:function(e,t){},378:function(e,t){},379:function(e,t){},380:function(e,t){},381:function(e,t){},382:function(e,t){},383:function(e,t){},387:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(281),c=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object(r.b)(),n=t.paymentMethods,c=t.expressPaymentMethods,o=t.paymentMethodsInitialized,a=t.expressPaymentMethodsInitialized;return e?{paymentMethods:c,isInitialized:a}:{paymentMethods:n,isInitialized:o}},o=function(){return c()},a=function(){return c(!0)}},388:function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var r=n(170),c=n(281),o=n(156),a=n(209),i=n(1),s=n(259),u=n(0),l=n(5),b=n(233),p=n(395),d=n(917),m=n(7),g=n.n(m),f=n(57),O=Object(u.createElement)(f.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),Object(u.createElement)("path",{d:"M4 10h3v7H4zM10.5 10h3v7h-3zM2 19h20v3H2zM17 10h3v7h-3zM12 1L2 6v2h20V6z"})),j=n(362),h=n(882),v=Object(u.createElement)(f.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)("g",{fill:"none",fillRule:"evenodd"},Object(u.createElement)("path",{d:"M0 0h24v24H0z"}),Object(u.createElement)("path",{fill:"#000",fillRule:"nonzero",d:"M17.3 8v1c1 .2 1.4.9 1.4 1.7h-1c0-.6-.3-1-1-1-.8 0-1.3.4-1.3.9 0 .4.3.6 1.4 1 1 .2 2 .6 2 1.9 0 .9-.6 1.4-1.5 1.5v1H16v-1c-.9-.1-1.6-.7-1.7-1.7h1c0 .6.4 1 1.3 1 1 0 1.2-.5 1.2-.8 0-.4-.2-.8-1.3-1.1-1.3-.3-2.1-.8-2.1-1.8 0-.9.7-1.5 1.6-1.6V8h1.3zM12 10v1H6v-1h6zm2-2v1H6V8h8zM2 4v16h20V4H2zm2 14V6h16v12H4z"}),Object(u.createElement)("path",{stroke:"#000",strokeLinecap:"round",d:"M6 16c2.6 0 3.9-3 1.7-3-2 0-1 3 1.5 3 1 0 1-.8 2.8-.8"}))),_=n(61),y=(n(383),{bank:O,bill:j.a,card:h.a,checkPayment:v}),E=function(e){var t=e.icon,n=void 0===t?"":t,r=e.text,c=void 0===r?"":r,o=!!n,a=o&&"string"==typeof n&&y[n],i=g()("wc-block-components-payment-method-label",{"wc-block-components-payment-method-label--with-icon":o});return Object(u.createElement)("span",{className:i},a?Object(u.createElement)(_.a,{srcElement:y[n]}):n,c)},w=n(134),k=n(866),S=function(e,t){var n=[],r=function(t,n){var r=parseInt(e[n],10);return{label:t,value:r,valueWithTax:r+parseInt(e[n+"_tax"],10)}};return n.push(r(Object(i.__)("Subtotal:","woo-gutenberg-products-block"),"total_items")),n.push(r(Object(i.__)("Fees:","woo-gutenberg-products-block"),"total_fees")),n.push(r(Object(i.__)("Discount:","woo-gutenberg-products-block"),"total_discount")),n.push({label:Object(i.__)("Taxes:","woo-gutenberg-products-block"),value:parseInt(e.total_tax,10),valueWithTax:parseInt(e.total_tax,10)}),t&&n.push(r(Object(i.__)("Shipping:","woo-gutenberg-products-block"),"total_shipping")),n},N=function(){var e=Object(r.b)(),t=e.isCalculating,n=e.isComplete,m=e.isIdle,g=e.isProcessing,f=e.onCheckoutAfterProcessingWithSuccess,O=e.onCheckoutAfterProcessingWithError,j=e.onCheckoutBeforeProcessing,h=e.onSubmit,v=e.customerId,_=Object(c.b)(),y=_.currentStatus,N=_.activePaymentMethod,P=_.onPaymentProcessing,C=_.setExpressPaymentError,M=Object(o.b)(),R=M.shippingErrorStatus,I=M.shippingErrorTypes,D=M.shippingRates,x=M.shippingRatesLoading,T=M.selectedRates,A=M.setSelectedRates,L=M.isSelectingRate,z=M.shippingAddress,U=M.setShippingAddress,V=M.onShippingRateSuccess,F=M.onShippingRateFail,q=M.onShippingRateSelectSuccess,B=M.onShippingRateSelectFail,Y=M.needsShipping,H=Object(a.b)().billingData,G=Object(w.a)().cartTotals,Q=Object(k.a)().appliedCoupons,W=Object(p.a)(),$=W.noticeContexts,K=W.responseTypes,Z=Object(u.useRef)(S(G,Y)),X=Object(u.useRef)({label:Object(i.__)("Total","woo-gutenberg-products-block"),value:parseInt(G.total_price,10)});return Object(u.useEffect)((function(){Z.current=S(G,Y),X.current={label:Object(i.__)("Total","woo-gutenberg-products-block"),value:parseInt(G.total_price,10)}}),[G,Y]),{checkoutStatus:{isCalculating:t,isComplete:n,isIdle:m,isProcessing:g},paymentStatus:y,shippingStatus:{shippingErrorStatus:R,shippingErrorTypes:I},shippingData:{shippingRates:D,shippingRatesLoading:x,selectedRates:T,setSelectedRates:A,isSelectingRate:L,shippingAddress:z,setShippingAddress:U,needsShipping:Y},billing:{billingData:H,cartTotal:X.current,currency:Object(s.c)(G),cartTotalItems:Z.current,displayPricesIncludingTax:l.p,appliedCoupons:Q,customerId:v},eventRegistration:{onCheckoutAfterProcessingWithSuccess:f,onCheckoutAfterProcessingWithError:O,onCheckoutBeforeProcessing:j,onShippingRateSuccess:V,onShippingRateFail:F,onShippingRateSelectSuccess:q,onShippingRateSelectFail:B,onPaymentProcessing:P},components:{ValidationInputError:b.a,PaymentMethodIcons:d.a,PaymentMethodLabel:E},emitResponse:{noticeContexts:$,responseTypes:K},onSubmit:h,activePaymentMethod:N,setExpressPaymentError:C}}},389:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return b}));var r=n(11),c=n.n(r),o=n(0),a=(n(2),n(938)),i=n(7),s=n.n(i),u=Object(o.createContext)({hasContainerWidth:!1,containerClassName:"",isMobile:!1,isSmall:!1,isMedium:!1,isLarge:!1}),l=function(){return Object(o.useContext)(u)},b=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,i=function(){var e=Object(a.a)(),t=c()(e,2),n=t[0],r=t[1].width,o="";return r>700?o="is-large":r>520?o="is-medium":r>400?o="is-small":r&&(o="is-mobile"),[n,o]}(),l=c()(i,2),b=l[0],p=l[1],d={hasContainerWidth:""!==p,containerClassName:p,isMobile:"is-mobile"===p,isSmall:"is-small"===p,isMedium:"is-medium"===p,isLarge:"is-large"===p};return Object(o.createElement)(u.Provider,{value:d},Object(o.createElement)("div",{className:s()(r,p)},b,t))}},395:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=function(e,t){return!!e.type&&e.type===t},c={SUCCESS:"success",FAIL:"failure",ERROR:"error"},o={PAYMENTS:"wc/payment-area",EXPRESS_PAYMENTS:"wc/express-payment-area"},a=function(e){return r(e,c.SUCCESS)},i=function(e){return r(e,c.ERROR)},s=function(e){return r(e,c.FAIL)},u=function(e){return void 0===e.retry||!0===e.retry},l=function(){return{responseTypes:c,noticeContexts:o,shouldRetry:u,isSuccessResponse:a,isErrorResponse:i,isFailResponse:s}}},396:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(150),c=function(e,t){return function(n){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,o=r.a.addEventCallback(e,n,c);return t(o),function(){t(r.a.removeEventCallback(e,o.id))}}}},397:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r=n(15),c=n.n(r),o=n(60),a=n.n(o),i=n(37),s=n.n(i);function u(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,c=function(){};return{s:c,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=function(e,t){return e[t]?Array.from(e[t].values()).sort((function(e,t){return e.priority-t.priority})):[]},p=function(){var e=s()(c.a.mark((function e(t,n,r){var o,i,s,l,p,d;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=b(t,n),i=[],s=u(o),e.prev=3,s.s();case 5:if((l=s.n()).done){e.next=19;break}return p=l.value,e.prev=7,e.next=10,Promise.resolve(p.callback(r));case 10:d=e.sent,"object"===a()(d)&&i.push(d),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),console.error(e.t0);case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(3),s.e(e.t1);case 24:return e.prev=24,s.f(),e.finish(24);case 27:return e.abrupt("return",!i.length||i);case 28:case"end":return e.stop()}}),e,null,[[3,21,24,27],[7,14]])})));return function(t,n,r){return e.apply(this,arguments)}}(),d=function(){var e=s()(c.a.mark((function e(t,n,r){var o,i,s,l,p;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=b(t,n),i=u(o),e.prev=2,i.s();case 4:if((s=i.n()).done){e.next=23;break}return l=s.value,e.prev=6,e.next=9,Promise.resolve(l.callback(r));case 9:if(p=e.sent,"object"===a()(p)){e.next=12;break}return e.abrupt("continue",21);case 12:if(void 0!==p.type){e.next=14;break}throw new Error("If you want to abort event emitter processing, your observer must return an object with a type property");case 14:return e.abrupt("return",p);case 17:return e.prev=17,e.t0=e.catch(6),console.error(e.t0),e.abrupt("return",{type:"error"});case 21:e.next=4;break;case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(2),i.e(e.t1);case 28:return e.prev=28,i.f(),e.finish(28);case 31:return e.abrupt("return",!0);case 32:case"end":return e.stop()}}),e,null,[[2,25,28,31],[6,17]])})));return function(t,n,r){return e.apply(this,arguments)}}()},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t,n){"use strict";n.d(t,"h",(function(){return p})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"i",(function(){return g})),n.d(t,"f",(function(){return f})),n.d(t,"c",(function(){return O})),n.d(t,"d",(function(){return j})),n.d(t,"g",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(8),c=n.n(r),o=n(18),a=n(13),i=n.n(a),s=n(6),u=n(5);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e){var t=e.selected,n=void 0===t?[]:t,r=e.search,c=void 0===r?"":r,a=e.queryArgs,l=function(e){var t=e.selected,n=void 0===t?[]:t,r=e.search,c=void 0===r?"":r,a=e.queryArgs,i=void 0===a?[]:a,s={per_page:u.v?100:0,catalog_visibility:"any",search:c,orderby:"title",order:"asc"},l=[Object(o.addQueryArgs)("/wc/store/products",b(b({},s),i))];return u.v&&n.length&&l.push(Object(o.addQueryArgs)("/wc/store/products",{catalog_visibility:"any",include:n})),l}({selected:n,search:c,queryArgs:void 0===a?[]:a});return Promise.all(l.map((function(e){return i()({path:e})}))).then((function(e){return Object(s.uniqBy)(Object(s.flatten)(e),"id").map((function(e){return b(b({},e),{},{parent:0})}))})).catch((function(e){throw e}))},d=function(e){return i()({path:"/wc/store/products/".concat(e)})},m=function(){return i()({path:"wc/store/products/attributes"})},g=function(e){return i()({path:"wc/store/products/attributes/".concat(e,"/terms")})},f=function(e){var t=e.selected,n=function(e){var t=e.selected,n=void 0===t?[]:t,r=e.search,c=[Object(o.addQueryArgs)("wc/store/products/tags",{per_page:u.y?100:0,orderby:u.y?"count":"name",order:u.y?"desc":"asc",search:r})];return u.y&&n.length&&c.push(Object(o.addQueryArgs)("wc/store/products/tags",{include:n})),c}({selected:void 0===t?[]:t,search:e.search});return Promise.all(n.map((function(e){return i()({path:e})}))).then((function(e){return Object(s.uniqBy)(Object(s.flatten)(e),"id")}))},O=function(e){return i()({path:Object(o.addQueryArgs)("wc/store/products/categories",b({per_page:0},e))})},j=function(e){return i()({path:"wc/store/products/categories/".concat(e)})},h=function(e){return i()({path:Object(o.addQueryArgs)("wc/store/products",{per_page:0,type:"variation",parent:e})})},v=function(e,t){if(!e.title.raw)return e.slug;var n=1===t.filter((function(t){return t.title.raw===e.title.raw})).length;return e.title.raw+(n?"":" - ".concat(e.slug))}},41:function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},43:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},48:function(e,t,n){"use strict";var r=n(8),c=n.n(r),o=n(0),a=(n(2),n(9)),i=n(7),s=n.n(i);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t,n=e.label,r=e.screenReaderLabel,c=e.wrapperElement,i=e.wrapperProps,u=void 0===i?{}:i,b=null!=n,p=null!=r;return!b&&p?(t=c||"span",u=l(l({},u),{},{className:s()(u.className,"screen-reader-text")}),Object(o.createElement)(t,u,r)):(t=c||a.Fragment,b&&p&&n!==r?Object(o.createElement)(t,u,Object(o.createElement)("span",{"aria-hidden":"true"},n),Object(o.createElement)("span",{className:"screen-reader-text"},r)):Object(o.createElement)(t,u,n))}},5:function(e,t,n){"use strict";n.d(t,"l",(function(){return c})),n.d(t,"K",(function(){return o})),n.d(t,"Q",(function(){return a})),n.d(t,"A",(function(){return i})),n.d(t,"C",(function(){return s})),n.d(t,"m",(function(){return u})),n.d(t,"B",(function(){return l})),n.d(t,"E",(function(){return b})),n.d(t,"o",(function(){return p})),n.d(t,"D",(function(){return d})),n.d(t,"n",(function(){return m})),n.d(t,"G",(function(){return g})),n.d(t,"v",(function(){return f})),n.d(t,"y",(function(){return O})),n.d(t,"s",(function(){return j})),n.d(t,"t",(function(){return h})),n.d(t,"u",(function(){return v})),n.d(t,"k",(function(){return _})),n.d(t,"M",(function(){return y})),n.d(t,"R",(function(){return E})),n.d(t,"q",(function(){return w})),n.d(t,"r",(function(){return k})),n.d(t,"p",(function(){return S})),n.d(t,"J",(function(){return N})),n.d(t,"c",(function(){return P})),n.d(t,"w",(function(){return C})),n.d(t,"x",(function(){return M})),n.d(t,"U",(function(){return I})),n.d(t,"V",(function(){return D})),n.d(t,"L",(function(){return x})),n.d(t,"a",(function(){return T})),n.d(t,"O",(function(){return A})),n.d(t,"b",(function(){return L})),n.d(t,"N",(function(){return z})),n.d(t,"F",(function(){return U})),n.d(t,"i",(function(){return V})),n.d(t,"P",(function(){return B})),n.d(t,"h",(function(){return Y})),n.d(t,"j",(function(){return H})),n.d(t,"I",(function(){return G})),n.d(t,"H",(function(){return Q})),n.d(t,"T",(function(){return W})),n.d(t,"S",(function(){return $})),n.d(t,"d",(function(){return K})),n.d(t,"e",(function(){return Z})),n.d(t,"f",(function(){return X})),n.d(t,"g",(function(){return J})),n.d(t,"z",(function(){return ee})),n.d(t,"Y",(function(){return ne})),n.d(t,"Z",(function(){return re})),n.d(t,"W",(function(){return ce})),n.d(t,"X",(function(){return oe}));var r=n(3),c=Object(r.getSetting)("currentUserIsAdmin",!1),o=Object(r.getSetting)("reviewRatingsEnabled",!0),a=Object(r.getSetting)("showAvatars",!0),i=Object(r.getSetting)("max_columns",6),s=Object(r.getSetting)("min_columns",1),u=Object(r.getSetting)("default_columns",3),l=Object(r.getSetting)("max_rows",6),b=Object(r.getSetting)("min_rows",1),p=Object(r.getSetting)("default_rows",3),d=Object(r.getSetting)("min_height",500),m=Object(r.getSetting)("default_height",500),g=Object(r.getSetting)("placeholderImgSrc",""),f=(Object(r.getSetting)("thumbnail_size",300),Object(r.getSetting)("isLargeCatalog")),O=Object(r.getSetting)("limitTags"),j=Object(r.getSetting)("hasProducts",!0),h=Object(r.getSetting)("hasTags",!0),v=Object(r.getSetting)("homeUrl",""),_=Object(r.getSetting)("couponsEnabled",!0),y=Object(r.getSetting)("shippingEnabled",!0),E=Object(r.getSetting)("taxesEnabled",!0),w=Object(r.getSetting)("displayItemizedTaxes",!1),k=Object(r.getSetting)("hasDarkEditorStyleSupport",!1),S=(Object(r.getSetting)("displayShopPricesIncludingTax",!1),Object(r.getSetting)("displayCartPricesIncludingTax",!1)),N=Object(r.getSetting)("productCount",0),P=Object(r.getSetting)("attributes",[]),C=Object(r.getSetting)("isShippingCalculatorEnabled",!0),M=Object(r.getSetting)("isShippingCostHidden",!1),R=Object(r.getSetting)("woocommerceBlocksPhase",1),I=Object(r.getSetting)("wcBlocksAssetUrl",""),D=Object(r.getSetting)("wcBlocksBuildUrl",""),x=Object(r.getSetting)("shippingCountries",{}),T=Object(r.getSetting)("allowedCountries",{}),A=Object(r.getSetting)("shippingStates",{}),L=Object(r.getSetting)("allowedStates",{}),z=Object(r.getSetting)("shippingMethodsExist",!1),U=Object(r.getSetting)("paymentGatewaySortOrder",[]),V=Object(r.getSetting)("checkoutShowLoginReminder",!0),F={id:0,title:"",permalink:""},q=Object(r.getSetting)("storePages",{shop:F,cart:F,checkout:F,privacy:F,terms:F}),B=q.shop.permalink,Y=q.checkout.id,H=q.checkout.permalink,G=q.privacy.permalink,Q=q.privacy.title,W=q.terms.permalink,$=q.terms.title,K=q.cart.id,Z=q.cart.permalink,X=Object(r.getSetting)("checkoutAllowsGuest",!1),J=Object(r.getSetting)("checkoutAllowsSignup",!1),ee=Object(r.getSetting)("loginUrl","/wp-login.php"),te=n(17),ne=function(e,t){if(R>2)return Object(te.registerBlockType)(e,t)},re=function(e,t){if(R>1)return Object(te.registerBlockType)(e,t)},ce=function(){return R>2},oe=function(){return R>1}},537:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a}));var r=window.Event||null,c=function(e,t){var n=t.bubbles,c=void 0!==n&&n,o=t.cancelable,a=void 0!==o&&o,i=t.element;if(i||(i=document.body),"function"==typeof r){var s=new r(e,{bubbles:c,cancelable:a});i.dispatchEvent(s)}else{var u=document.createEvent("Event");u.initEvent(e,c,a),i.dispatchEvent(u)}},o=function(){c("wc_fragment_refresh",{bubbles:!0,cancelable:!0})},a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"!=typeof jQuery)return function(){};var o=function(){c(t,{bubbles:n,cancelable:r})};return jQuery(document).on(e,o),function(){return jQuery(document).off(e,o)}}},54:function(e,t){!function(){e.exports=this.wp.keycodes}()},55:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(8),a=n.n(o),i=n(27),s=n.n(i),u=n(0),l=n(184),b=n(7),p=n.n(b);n(194);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.className,n=e.value,r=e.currency,o=e.onValueChange,a=s()(e,["className","value","currency","onValueChange"]);if("-"===n)return null;var i=n/Math.pow(10,r.minorUnit);if(!Number.isFinite(i))return null;var b=p()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),d=m(m(m({displayType:"text"},a),function(e){return{thousandSeparator:e.thousandSeparator,decimalSeparator:e.decimalSeparator,decimalScale:e.minorUnit,fixedDecimalScale:!0,prefix:e.prefix,suffix:e.suffix,isNumericString:!0}}(r)),{},{value:void 0,currency:void 0,onValueChange:void 0}),g=o?function(e){var t=e.value*Math.pow(10,r.minorUnit);o(t)}:function(){};return Object(u.createElement)(l.a,c()({className:b},d,{value:i,onValueChange:g}))}},56:function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),c=n(43),o=n.n(c),a=function(e){var t=Object(r.useRef)();return o()(e,t.current)||(t.current=e),t.current}},6:function(e,t){!function(){e.exports=this.lodash}()},61:function(e,t,n){"use strict";var r=n(8),c=n.n(r),o=n(27),a=n.n(o),i=n(9);n(2);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.srcElement,n=e.size,r=void 0===n?24:n,o=a()(e,["srcElement","size"]);return Object(i.isValidElement)(t)&&Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},o))}},65:function(e,t,n){"use strict";var r=n(0),c=(n(2),n(7)),o=n.n(c),a=n(55);n(371);t.a=function(e){var t=e.className,n=e.currency,c=e.label,i=e.value,s=e.description;return Object(r.createElement)("div",{className:o()("wc-block-components-totals-item",t)},Object(r.createElement)("span",{className:"wc-block-components-totals-item__label"},c),Object(r.isValidElement)(i)?Object(r.createElement)("div",{className:"wc-block-components-totals-item__value"},i):Object(r.createElement)(a.a,{className:"wc-block-components-totals-item__value",currency:n,displayType:"text",value:i}),Object(r.createElement)("div",{className:"wc-block-components-totals-item__description"},s))}},78:function(e,t){!function(){e.exports=this.wp.dom}()},844:function(e,t,n){"use strict";var r=n(0),c=n(57),o=Object(r.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"}));t.a=o},86:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g}));var r=n(8),c=n.n(r),o=n(11),a=n.n(o),i=n(0),s=n(6),u=n(43),l=n.n(u);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=Object(i.createContext)({getValidationError:function(){return""},setValidationErrors:function(e){},clearValidationError:function(e){},clearAllValidationErrors:function(){},hideValidationError:function(){},showValidationError:function(){},showAllValidationErrors:function(){},hasValidationErrors:!1,getValidationErrorId:function(e){return e}}),m=function(){return Object(i.useContext)(d)},g=function(e){var t=e.children,n=Object(i.useState)({}),r=a()(n,2),o=r[0],u=r[1],b=Object(i.useCallback)((function(e){return o[e]}),[o]),m=Object(i.useCallback)((function(e){var t=o[e];return!t||t.hidden?"":"validate-error-".concat(e)}),[o]),g=Object(i.useCallback)((function(e){u((function(t){return t[e]?Object(s.omit)(t,[e]):t}))}),[]),f=Object(i.useCallback)((function(){u({})}),[]),O=Object(i.useCallback)((function(e){e&&u((function(t){return e=Object(s.pickBy)(e,(function(e,n){return"string"==typeof e.message&&(!t.hasOwnProperty(n)||!l()(t[n],e))})),0===Object.values(e).length?t:p(p({},t),e)}))}),[]),j=Object(i.useCallback)((function(e,t){u((function(n){if(!n.hasOwnProperty(e))return n;var r=p(p({},n[e]),t);return l()(n[e],r)?n:p(p({},n),{},c()({},e,r))}))}),[]),h={getValidationError:b,setValidationErrors:O,clearValidationError:g,clearAllValidationErrors:f,hideValidationError:Object(i.useCallback)((function(e){j(e,{hidden:!0})}),[j]),showValidationError:Object(i.useCallback)((function(e){j(e,{hidden:!1})}),[j]),showAllValidationErrors:Object(i.useCallback)((function(){u((function(e){var t={};return Object.keys(e).forEach((function(n){e[n].hidden&&(t[n]=p(p({},e[n]),{},{hidden:!1}))})),0===Object.values(t).length?e:p(p({},e),t)}))}),[]),hasValidationErrors:Object.keys(o).length>0,getValidationErrorId:m};return Object(i.createElement)(d.Provider,{value:h},t)}},860:function(e,t,n){e.exports=n(901)},861:function(e,t){},862:function(e,t){},863:function(e,t){},864:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(8),c=n.n(r),o=n(11),a=n.n(o),i=n(36),s=n(0),u=n(41),l=n(155);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=Object(l.a)(),n=Object(s.useMemo)((function(){return e.map((function(e){var t;return[e.package_id,null===(t=e.shipping_rates.find((function(e){return e.selected})))||void 0===t?void 0:t.rate_id]})).reduce((function(e,t){var n=a()(t,2),r=n[0],c=n[1];return c&&(e[r]=c),e}),{})}),[e]),r=Object(s.useState)(n),o=a()(r,2),b=o[0],d=o[1];Object(s.useEffect)((function(){d(n)}),[n]);var m=Object(i.useDispatch)(u.CART_STORE_KEY).selectShippingRate,g=Object(i.useSelect)((function(e){return e(u.CART_STORE_KEY).isShippingRateBeingSelected()}),[]);return{selectShippingRate:function(e,n){d(p(p({},b),{},c()({},n,e))),m(e,n).catch((function(e){t(e)}))},selectedShippingRates:b,isSelectingRate:g}}},865:function(e,t){},866:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(8),c=n.n(r),o=n(1),a=n(36),i=n(41),s=n(86),u=n(33),l=n(134),b=n(140);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var d=function(){var e=Object(l.a)(),t=e.cartCoupons,n=e.cartIsLoading,r=Object(b.a)(),d=r.addErrorNotice,m=r.addSnackbarNotice,g=Object(s.b)().setValidationErrors;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({appliedCoupons:t,isLoading:n},Object(a.useSelect)((function(e,t){var n=t.dispatch,r=e(i.CART_STORE_KEY),c=r.isApplyingCoupon(),a=r.isRemovingCoupon(),s=n(i.CART_STORE_KEY),l=s.applyCoupon,b=s.removeCoupon,p=s.receiveApplyingCoupon;return{applyCoupon:function(e){l(e).then((function(t){!0===t&&m(Object(o.sprintf)(Object(o.__)('Coupon code "%s" has been applied to your cart.',"woo-gutenberg-products-block"),e),{id:"coupon-form"})})).catch((function(e){g({coupon:{message:Object(u.decodeEntities)(e.message),hidden:!1}}),p("")}))},removeCoupon:function(e){b(e).then((function(t){!0===t&&m(Object(o.sprintf)(Object(o.__)('Coupon code "%s" has been removed from your cart.',"woo-gutenberg-products-block"),e),{id:"coupon-form"})})).catch((function(e){d(e.message,{id:"coupon-form"}),p("")}))},isApplyingCoupon:c,isRemovingCoupon:a}}),[d,m]))}},867:function(e,t,n){"use strict";var r=n(0),c=n(7),o=n.n(c),a=(n(2),n(389));n(366);t.a=function(e){var t=e.children,n=e.className;return Object(r.createElement)(a.a,{className:o()("wc-block-components-sidebar-layout",n)},t)}},868:function(e,t,n){"use strict";var r=n(0),c=n(7),o=n.n(c);n(2);t.a=function(e){var t=e.children,n=e.className;return Object(r.createElement)("div",{className:o()("wc-block-components-main",n)},t)}},869:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(0),a=n(33),i=n(5);n(2);t.a=function(e){var t=e.image,n=void 0===t?{}:t,r={src:n.thumbnail||i.G,alt:Object(a.decodeEntities)(n.alt)||""};return Object(o.createElement)("img",c()({},r,{alt:r.alt}))}},87:function(e,t){!function(){e.exports=this.wp.a11y}()},870:function(e,t,n){"use strict";var r=n(0),c=(n(2),n(33));n(368);t.a=function(e){var t=e.name,n=e.permalink,o=e.disabled,a=void 0!==o&&o;return Object(r.createElement)("a",{className:"wc-block-components-product-name",href:n,tabIndex:a?-1:0},Object(c.decodeEntities)(t))}},871:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(153);t.a=function(){return Object(r.createElement)(o.a,{className:"wc-block-components-product-backorder-badge"},Object(c.__)("Available on backorder","woo-gutenberg-products-block"))}},872:function(e,t,n){"use strict";var r=n(0),c=n(1),o=(n(2),n(153));t.a=function(e){var t=e.lowStockRemaining;return t?Object(r.createElement)(o.a,{className:"wc-block-components-product-low-stock-badge"},Object(c.sprintf)(Object(c.__)("%d left in stock","woo-gutenberg-products-block"),t)):null}},873:function(e,t){},874:function(e,t,n){"use strict";var r=n(0),c=n(7),o=n.n(c);n(2);t.a=function(e){var t=e.children,n=e.className;return Object(r.createElement)("div",{className:o()("wc-block-components-sidebar",n)},t)}},875:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(5),a=(n(2),n(65));t.a=function(e){var t=e.currency,n=e.values,i=n.total_items,s=n.total_items_tax,u=parseInt(i,10),l=parseInt(s,10);return Object(r.createElement)(a.a,{currency:t,label:Object(c.__)("Subtotal","woo-gutenberg-products-block"),value:o.p?u+l:u})}},876:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(5),a=n(156),i=(n(2),n(65));t.a=function(e){var t=e.currency,n=e.values;if(!Object(a.b)().needsShipping)return null;var s=n.total_fees,u=n.total_fees_tax,l=parseInt(s,10);if(!l)return null;var b=parseInt(u,10);return Object(r.createElement)(i.a,{className:"wc-block-components-totals-fees",currency:t,label:Object(c.__)("Fees","woo-gutenberg-products-block"),value:o.p?l+b:l})}},877:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(5),a=n(125),i=n(277),s=(n(2),n(65));n(372);t.a=function(e){var t=e.cartCoupons,n=void 0===t?[]:t,u=e.currency,l=e.isRemovingCoupon,b=e.removeCoupon,p=e.values,d=p.total_discount,m=p.total_discount_tax,g=parseInt(d,10);if(!g&&0===n.length)return null;var f=parseInt(m,10),O=o.p?g+f:g;return Object(r.createElement)(s.a,{className:"wc-block-components-totals-discount",currency:u,description:0!==n.length&&Object(r.createElement)(a.a,{screenReaderLabel:Object(c.__)("Removing coupon…","woo-gutenberg-products-block"),isLoading:l,showSpinner:!1},Object(r.createElement)("ul",{className:"wc-block-components-totals-discount__coupon-list"},n.map((function(e){return Object(r.createElement)(i.a,{key:"coupon-"+e.code,className:"wc-block-components-totals-discount__coupon-list-item",text:e.code,screenReaderText:Object(c.sprintf)(Object(c.__)("Coupon: %s","woo-gutenberg-products-block"),e.code),disabled:l,onRemove:function(){b(e.code)},radius:"large",ariaLabel:Object(c.sprintf)(Object(c.__)('Remove coupon "%s"',"woo-gutenberg-products-block"),e.code)})})))),label:O?Object(c.__)("Discount","woo-gutenberg-products-block"):Object(c.__)("Coupons","woo-gutenberg-products-block"),value:O?-1*O:"-"})}},878:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var r=function(e){return e.length},c=function(e){return e.reduce((function(e,t){return e+t.shipping_rates.length}),0)}},879:function(e,t,n){"use strict";var r=n(0),c=n(1),o=(n(2),n(5)),a=n(65);n(378);t.a=function(e){var t=e.currency,n=e.values,i=n.total_tax,s=n.tax_lines;return o.R?o.q?Object(r.createElement)(r.Fragment,null,s.map((function(e,n){var c=e.name,o=e.price;return Object(r.createElement)(a.a,{key:"tax-line-".concat(n),className:"wc-block-components-totals-taxes",currency:t,label:c,value:parseInt(o,10)})}))," "):Object(r.createElement)(a.a,{className:"wc-block-components-totals-taxes",currency:t,label:Object(c.__)("Taxes","woo-gutenberg-products-block"),value:parseInt(i,10)}):null}},880:function(e,t,n){"use strict";var r=n(11),c=n.n(r),o=n(0),a=n(1),i=n(99),s=n(169),u=n(48),l=n(233),b=n(125),p=(n(2),n(193)),d=n(86),m=n(154);n(379);t.a=Object(p.a)((function(e){var t=e.instanceId,n=e.isLoading,r=void 0!==n&&n,p=e.initialOpen,g=void 0!==p&&p,f=e.onSubmit,O=void 0===f?function(){}:f,j=Object(o.useState)(""),h=c()(j,2),v=h[0],_=h[1],y=Object(o.useRef)(!1),E=Object(d.b)(),w=E.getValidationError,k=E.getValidationErrorId,S=w("coupon");Object(o.useEffect)((function(){y.current!==r&&(r||!v||S||_(""),y.current=r)}),[r,v,S]);var N="wc-block-components-totals-coupon__input-".concat(t);return Object(o.createElement)(m.a,{className:"wc-block-components-totals-coupon",hasBorder:!0,initialOpen:g,title:Object(o.createElement)(u.a,{label:Object(a.__)("Coupon Code?","woo-gutenberg-products-block"),screenReaderLabel:Object(a.__)("Introduce Coupon Code","woo-gutenberg-products-block"),htmlFor:N}),titleTag:"h2"},Object(o.createElement)(b.a,{screenReaderLabel:Object(a.__)("Applying coupon…","woo-gutenberg-products-block"),isLoading:r,showSpinner:!1},Object(o.createElement)("div",{className:"wc-block-components-totals-coupon__content"},Object(o.createElement)("form",{className:"wc-block-components-totals-coupon__form"},Object(o.createElement)(s.a,{id:N,errorId:"coupon",className:"wc-block-components-totals-coupon__input",label:Object(a.__)("Enter code","woo-gutenberg-products-block"),value:v,ariaDescribedBy:k(N),onChange:function(e){_(e)},validateOnMount:!1,focusOnMount:!0,showError:!1}),Object(o.createElement)(i.a,{className:"wc-block-components-totals-coupon__button",disabled:r||!v,showSpinner:r,onClick:function(e){e.preventDefault(),O(v)},type:"submit"},Object(a.__)("Apply","woo-gutenberg-products-block"))),Object(o.createElement)(l.a,{propertyName:"coupon",elementId:N}))))}))},881:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(5),a=n(192),i=n(55),s=(n(2),n(65)),u=(n(380),o.R&&o.p);t.a=function(e){var t=e.currency,n=e.values,o=n.total_price,l=n.total_tax;return Object(r.createElement)(s.a,{className:"wc-block-components-totals-footer-item",currency:t,label:Object(c.__)("Total","woo-gutenberg-products-block"),value:parseInt(o,10),description:u&&Object(r.createElement)("p",{className:"wc-block-components-totals-footer-item-tax"},Object(a.a)(Object(c.__)("Including <TaxAmount/> in taxes","woo-gutenberg-products-block"),{TaxAmount:Object(r.createElement)(i.a,{className:"wc-block-components-totals-footer-item-tax-value",currency:t,displayType:"text",value:parseInt(l,10)})}))})}},882:function(e,t,n){"use strict";var r=n(0),c=n(57),o=Object(r.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"}));t.a=o},883:function(e,t){},884:function(e,t){},9:function(e,t){!function(){e.exports=this.React}()},901:function(e,t,n){"use strict";n.r(t);var r=n(0),c=n(1),o=n(14),a=n(61),i=n(844),s=n(7),u=n.n(s),l=n(5),b=n(274),p=n(4),d=(n(2),n(11)),m=n.n(d),g=n(26),f=(n(863),Object(g.withInstanceId)((function(e){var t=e.className,n=e.label,o=void 0===n?Object(c.__)("View","woo-gutenberg-products-block"):n,a=e.views,i=e.defaultView,s=e.instanceId,l=e.render,b=Object(r.useState)(i),d=m()(b,2),g=d[0],f=d[1],O=u()(t,"wc-block-view-switch-control"),j="wc-block-view-switch-control-"+s;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:O},Object(r.createElement)("label",{htmlFor:j,className:"wc-block-view-switch-control__label"},o+": "),Object(r.createElement)(p.ButtonGroup,{id:j},a.map((function(e){return Object(r.createElement)(p.Button,{key:e.value,isPrimary:g===e.value,isLarge:!0,"aria-pressed":g===e.value,onMouseDown:function(){g!==e.value&&f(e.value)},onClick:function(){g!==e.value&&f(e.value)}},e.name)})))),l(g))}))),O=n(273),j=n(189),h=n(212),v=n(156),_=n(170),y=n(281),E=function(e){var t=e.children,n=e.redirectUrl;return Object(r.createElement)(_.a,{redirectUrl:n,isCart:!0},Object(r.createElement)(v.a,null,Object(r.createElement)(y.a,null,t)))},w=n(192),k=n(3),S=n(928),N=n(41),P=n(36),C=n(134),M=n(125),R=n(86),I=n(537),D=n(185),x=n(875),T=n(876),A=n(877),L=n(908),z=n(879),U=n(880),V=n(881),F=n(259),q=n(387),B=n(395),Y=n(191),H=n(275),G=(n(381),function(){var e=Object(q.a)(),t=e.paymentMethods,n=e.isInitialized,o=Object(B.a)().noticeContexts;return!n||n&&0===Object.keys(t).length?null:Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"wc-block-components-express-payment wc-block-components-express-payment--cart"},Object(r.createElement)("div",{className:"wc-block-components-express-payment__content"},Object(r.createElement)(Y.a,{context:o.EXPRESS_PAYMENTS},Object(r.createElement)(H.a,null)))),Object(r.createElement)("div",{className:"wc-block-components-express-payment-continue-rule wc-block-components-express-payment-continue-rule--cart"},Object(c.__)("Or","woo-gutenberg-products-block")))}),Q=n(866),W=n(140),$=n(867),K=n(868),Z=n(874),X=n(136),J=n(33),ee=n(917),te=n(99),ne={bottom:0,left:0,opacity:0,pointerEvents:"none",position:"absolute",right:0,top:0,zIndex:-1},re=function(){var e,t,n=Object(r.useState)(""),c=m()(n,2),o=c[0],a=c[1],i=Object(r.useRef)(null),s=Object(r.useRef)((e=function(e){e[0].isIntersecting?a("visible"):a(e[0].boundingClientRect.top>0?"below":"above")},t={threshold:1},"function"!=typeof IntersectionObserver?{observe:function(){},unobserve:function(){}}:new IntersectionObserver(e,t)));return Object(r.useLayoutEffect)((function(){var e=i.current,t=s.current;return e&&t.observe(e),function(){t.unobserve(e)}}),[]),[Object(r.createElement)("div",{"aria-hidden":!0,ref:i,style:ne}),o]},ce=(n(883),function(e){return Object.values(e).reduce((function(e,t){return null!==t.icons&&(e=e.concat(t.icons)),e}),[])}),oe=function(e){var t=e.link,n=Object(_.b)().isCalculating,o=re(),a=m()(o,2),i=a[0],s=a[1],u=Object(r.useState)(!1),b=m()(u,2),p=b[0],d=b[1],g=Object(q.b)().paymentMethods,f=Object(r.createElement)(r.Fragment,null,Object(r.createElement)(te.a,{className:"wc-block-cart__submit-button",href:t||l.j,disabled:n,onClick:function(){return d(!0)},showSpinner:p},Object(c.__)("Proceed to Checkout","woo-gutenberg-products-block")),Object(r.createElement)(ee.a,{icons:ce(g)}));return Object(r.createElement)("div",{className:"wc-block-cart__submit"},i,Object(r.createElement)("div",{className:"wc-block-cart__submit-container"},f),"below"===s&&Object(r.createElement)("div",{className:"wc-block-cart__submit-container wc-block-cart__submit-container--sticky"},f))},ae=function(e){var t=e.itemCount,n=void 0===t?1:t;return Object(r.createElement)(X.a,{headingLevel:"2"},Object(c.sprintf)(Object(c._n)("Your cart (%d item)","Your cart (%d items)",n,"woo-gutenberg-products-block"),n))},ie=n(51),se=n.n(ie),ue=n(60),le=n.n(ue),be=n(87),pe=n(54),de=(n(873),function(e){var t=e.className,n=e.quantity,o=void 0===n?1:n,a=e.minimum,i=void 0===a?1:a,s=e.maximum,l=e.onChange,b=void 0===l?function(){return null}:l,p=e.itemName,d=void 0===p?"":p,m=e.disabled,g=u()("wc-block-components-quantity-selector",t),f=void 0!==s,O=o>i,j=!f||o<s,h=Object(r.useCallback)((function(e){var t=void 0!==le()(e.key)?"ArrowDown"===e.key:e.keyCode===pe.DOWN,n=void 0!==le()(e.key)?"ArrowUp"===e.key:e.keyCode===pe.UP;t&&O&&(e.preventDefault(),b(o-1)),n&&j&&(e.preventDefault(),b(o+1))}),[o,b,j,O]);return Object(r.createElement)("div",{className:g},Object(r.createElement)("input",{className:"wc-block-components-quantity-selector__input",disabled:m,type:"number",step:"1",min:"0",value:o,onKeyDown:h,onChange:function(e){var t=isNaN(e.target.value)||!e.target.value?0:parseInt(e.target.value,10);f&&(t=Math.min(t,s)),(t=Math.max(t,i))!==o&&b(t)},"aria-label":Object(c.sprintf)(Object(c.__)("Quantity of %s in your cart.","woo-gutenberg-products-block"),d)}),Object(r.createElement)("button",{"aria-label":Object(c.__)("Reduce quantity","woo-gutenberg-products-block"),className:"wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--minus",disabled:m||!O,onClick:function(){var e=o-1;b(e),Object(be.speak)(Object(c.sprintf)(Object(c.__)("Quantity reduced to %s.","woo-gutenberg-products-block"),e))}},"-"),Object(r.createElement)("button",{"aria-label":Object(c.__)("Increase quantity","woo-gutenberg-products-block"),disabled:m||!j,className:"wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--plus",onClick:function(){var e=o+1;b(e),Object(be.speak)(Object(c.sprintf)(Object(c.__)("Quantity increased to %s.","woo-gutenberg-products-block"),e))}},"+"))}),me=n(164),ge=n(168),fe=n(550),Oe=n(57),je=Object(r.createElement)(Oe.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"}),Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"})),he=n(869),ve=n(870),_e=n(871),ye=n(872),Ee=n(924),we=n(55),ke=n(153),Se=function(e){var t=e.currency,n=e.saleAmount;return!n||n<=0?null:Object(r.createElement)(ke.a,{className:"wc-block-components-sale-badge"},Object(w.a)(Object(c.__)("Save <price/>","woo-gutenberg-products-block"),{price:Object(r.createElement)(we.a,{currency:t,value:n})}))},Ne=n(279),Pe=function(e,t){return e.convertPrecision(t.minorUnit).getAmount()},Ce=function(e){var t=e.lineItem,n=void 0===t?{}:t,o=n.name,i=void 0===o?"":o,s=n.short_description,l=void 0===s?"":s,b=n.description,p=void 0===b?"":b,d=n.low_stock_remaining,g=void 0===d?null:d,f=n.show_backorder_badge,O=void 0!==f&&f,j=n.quantity_limit,h=void 0===j?99:j,v=n.permalink,y=void 0===v?"":v,E=n.images,w=void 0===E?[]:E,k=n.variation,S=void 0===k?[]:k,M=n.prices,R=void 0===M?{currency_code:"USD",currency_minor_unit:2,currency_symbol:"$",currency_prefix:"$",currency_suffix:"",currency_decimal_separator:".",currency_thousand_separator:",",price:"0",regular_price:"0",sale_price:"0",price_range:null,raw_prices:{precision:6,price:"0",regular_price:"0",sale_price:"0"}}:M,D=function(e){var t=e.key,n=void 0===t?"":t,c=e.quantity,o=void 0===c?1:c,a=Object(C.a)().cartErrors,i=Object(_.b)().dispatchActions,s=Object(r.useState)(o),u=m()(s,2),l=u[0],b=u[1],p=Object(fe.a)(l,400),d=m()(p,1)[0],g=Object(ge.a)(d),f=Object(P.useDispatch)(N.CART_STORE_KEY),O=f.removeItemFromCart,j=f.changeCartItemQuantity,h=Object(P.useSelect)((function(e){return!!n&&e(N.CART_STORE_KEY).isItemPendingQuantity(n)}),[n]),v=Object(ge.a)(h),y=Object(P.useSelect)((function(e){return!!n&&e(N.CART_STORE_KEY).isItemPendingDelete(n)}),[n]),E=Object(ge.a)(y);return Object(r.useEffect)((function(){n&&Number.isFinite(g)&&g!==d&&j(n,d).then(I.c)}),[n,j,d,g]),Object(r.useEffect)((function(){v!==h&&(h?i.incrementCalculating():i.decrementCalculating())}),[i,h,v]),Object(r.useEffect)((function(){return E!==y&&(y?i.incrementCalculating():i.decrementCalculating()),function(){y&&i.decrementCalculating()}}),[i,y,E]),{isPendingDelete:y,quantity:l,changeQuantity:b,removeItem:function(){return!!n&&O(n).then((function(){Object(I.c)()}))},cartItemQuantityErrors:a}}(n),x=D.quantity,T=D.changeQuantity,A=D.removeItem,L=D.isPendingDelete,z=Object(F.b)(R),U=Object(Ne.a)({amount:parseInt(R.raw_prices.regular_price,10),precision:parseInt(R.raw_prices.precision,10)}).multiply(x),V=Object(Ne.a)({amount:parseInt(R.raw_prices.price,10),precision:parseInt(R.raw_prices.precision,10)}).multiply(x),q=U.subtract(V),B=w.length?w[0]:{};return Object(r.createElement)("tr",{className:u()("wc-block-cart-items__row",{"is-disabled":L})},Object(r.createElement)("td",{className:"wc-block-cart-item__image","aria-hidden":!B.alt},Object(r.createElement)("a",{href:y,tabIndex:-1},Object(r.createElement)(he.a,{image:B}))),Object(r.createElement)("td",{className:"wc-block-cart-item__product"},Object(r.createElement)(ve.a,{permalink:y,name:i,disabled:L}),O?Object(r.createElement)(_e.a,null):!!g&&Object(r.createElement)(ye.a,{lowStockRemaining:g}),Object(r.createElement)(Ee.a,{shortDescription:l,fullDescription:p,variation:S})),Object(r.createElement)("td",{className:"wc-block-cart-item__quantity"},Object(r.createElement)(de,{disabled:L,quantity:x,maximum:h,onChange:T,itemName:i}),Object(r.createElement)("button",{className:"wc-block-cart-item__remove-link",onClick:A,disabled:L},Object(c.__)("Remove item","woo-gutenberg-products-block")),Object(r.createElement)("button",{className:"wc-block-cart-item__remove-icon",onClick:A},Object(r.createElement)("span",{className:"screen-reader-text"},Object(c.__)("Remove item","woo-gutenberg-products-block")),Object(r.createElement)(a.a,{srcElement:je}))),Object(r.createElement)("td",{className:"wc-block-cart-item__total"},Object(r.createElement)(me.a,{currency:z,regularPrice:Pe(U,z),price:Pe(V,z)}),Object(r.createElement)(Se,{currency:z,saleAmount:Pe(q,z)})))},Me=se()(Array(3)).map((function(e,t){return Object(r.createElement)(Ce,{key:t})})),Re=function(e){var t=e.lineItems,n=void 0===t?[]:t,o=e.isLoading,a=void 0!==o&&o?Me:n.map((function(e){return Object(r.createElement)(Ce,{key:e.key,lineItem:e})}));return Object(r.createElement)("table",{className:"wc-block-cart-items"},Object(r.createElement)("thead",null,Object(r.createElement)("tr",{className:"wc-block-cart-items__header"},Object(r.createElement)("th",{className:"wc-block-cart-items__header-image"},Object(r.createElement)("span",null,Object(c.__)("Product","woo-gutenberg-products-block"))),Object(r.createElement)("th",{className:"wc-block-cart-items__header-product"},Object(r.createElement)("span",null,Object(c.__)("Details","woo-gutenberg-products-block"))),Object(r.createElement)("th",{className:"wc-block-cart-items__header-quantity"},Object(r.createElement)("span",null,Object(c.__)("Quantity","woo-gutenberg-products-block"))),Object(r.createElement)("th",{className:"wc-block-cart-items__header-total"},Object(r.createElement)("span",null,Object(c.__)("Total","woo-gutenberg-products-block"))))),Object(r.createElement)("tbody",null,a))},Ie=(n(865),function(e){var t=e.attributes,n=t.isShippingCalculatorEnabled,o=t.isShippingCostHidden,a=t.hasDarkControls,i=Object(C.a)(),s=i.cartItems,b=i.cartTotals,p=i.cartIsLoading,d=i.cartItemsCount,m=i.cartItemErrors,g=i.cartNeedsPayment,f=i.cartNeedsShipping,O=Object(Q.a)(),j=O.applyCoupon,h=O.removeCoupon,v=O.isApplyingCoupon,_=O.isRemovingCoupon,y=O.appliedCoupons,E=Object(W.a)().addErrorNotice;Object(r.useEffect)((function(){m.forEach((function(e){E(Object(J.decodeEntities)(e.message),{isDismissible:!0,id:e.code})}))}),[E,m]);var w=Object(F.c)(b),S=u()("wc-block-cart",{"wc-block-cart--is-loading":p,"has-dark-controls":a});return Object(r.createElement)($.a,{className:S},Object(r.createElement)(K.a,{className:"wc-block-cart__main"},Object(r.createElement)(ae,{itemCount:d}),Object(r.createElement)(Re,{lineItems:s,isLoading:p})),Object(r.createElement)(Z.a,{className:"wc-block-cart__sidebar"},Object(r.createElement)(X.a,{headingLevel:"2",className:"wc-block-cart__totals-title"},Object(c.__)("Cart totals","woo-gutenberg-products-block")),Object(r.createElement)(x.a,{currency:w,values:b}),Object(r.createElement)(T.a,{currency:w,values:b}),Object(r.createElement)(A.a,{cartCoupons:y,currency:w,isRemovingCoupon:_,removeCoupon:h,values:b}),f&&Object(r.createElement)(L.a,{showCalculator:n,showRatesWithoutAddress:!o,values:b,currency:w}),!l.p&&Object(r.createElement)(z.a,{currency:w,values:b}),l.k&&Object(r.createElement)(U.a,{onSubmit:j,isLoading:v}),Object(r.createElement)(V.a,{currency:w,values:b}),Object(r.createElement)("div",{className:"wc-block-cart__payment-options"},g&&Object(r.createElement)(G,null),Object(r.createElement)(oe,{link:Object(k.getSetting)("page-"+(null==t?void 0:t.checkoutPageId),!1)}))))}),De=function(e){var t=e.content;return Object(r.useEffect)((function(){Object(I.a)("wc-blocks_render_blocks_frontend",{element:document.body.querySelector(".wp-block-woocommerce-cart")})}),[]),Object(r.createElement)(r.RawHTML,null,t)},xe=Object(D.a)((function(e){var t=e.emptyCart,n=e.attributes,c=e.scrollToTop,o=Object(C.a)(),a=o.cartItems,i=o.cartIsLoading;return Object(r.useEffect)((function(){var e=function(){Object(P.dispatch)(N.CART_STORE_KEY).invalidateResolutionForStore(),c()},t=Object(I.b)("added_to_cart","wc-blocks_added_to_cart"),n=Object(I.b)("removed_from_cart","wc-blocks_removed_from_cart");return document.body.addEventListener("wc-blocks_added_to_cart",e),document.body.addEventListener("wc-blocks_removed_from_cart",e),function(){t(),n(),document.body.removeEventListener("wc-blocks_added_to_cart",e),document.body.removeEventListener("wc-blocks_removed_from_cart",e)}}),[c]),Object(r.createElement)(r.Fragment,null,i||0!==a.length?Object(r.createElement)(M.a,{showSpinner:!0,isLoading:i},Object(r.createElement)(R.a,null,Object(r.createElement)(E,null,Object(r.createElement)(Ie,{attributes:n})))):Object(r.createElement)(De,{content:t}))})),Te=(n(884),function(e){var t=e.hidden,n=void 0!==t&&t;return Object(r.createElement)("div",{hidden:n},Object(r.createElement)(o.InnerBlocks,{templateInsertUpdatesSelection:!1,template:[["core/image",{align:"center",url:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHZpZXdCb3g9IjAgMCAzOCAzOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5IDBDOC41MDQwMyAwIDAgOC41MDQwMyAwIDE5QzAgMjkuNDk2IDguNTA0MDMgMzggMTkgMzhDMjkuNDk2IDM4IDM4IDI5LjQ5NiAzOCAxOUMzOCA4LjUwNDAzIDI5LjQ5NiAwIDE5IDBaTTI1LjEyOSAxMi44NzFDMjYuNDg1MSAxMi44NzEgMjcuNTgwNiAxMy45NjY1IDI3LjU4MDYgMTUuMzIyNkMyNy41ODA2IDE2LjY3ODYgMjYuNDg1MSAxNy43NzQyIDI1LjEyOSAxNy43NzQyQzIzLjc3MyAxNy43NzQyIDIyLjY3NzQgMTYuNjc4NiAyMi42Nzc0IDE1LjMyMjZDMjIuNjc3NCAxMy45NjY1IDIzLjc3MyAxMi44NzEgMjUuMTI5IDEyLjg3MVpNMTEuNjQ1MiAzMS4yNTgxQzkuNjE0OTIgMzEuMjU4MSA3Ljk2Nzc0IDI5LjY0OTIgNy45Njc3NCAyNy42NTczQzcuOTY3NzQgMjYuMTI1IDEwLjE1MTIgMjMuMDI5OCAxMS4xNTQ4IDIxLjY5NjhDMTEuNCAyMS4zNjczIDExLjg5MDMgMjEuMzY3MyAxMi4xMzU1IDIxLjY5NjhDMTMuMTM5MSAyMy4wMjk4IDE1LjMyMjYgMjYuMTI1IDE1LjMyMjYgMjcuNjU3M0MxNS4zMjI2IDI5LjY0OTIgMTMuNjc1NCAzMS4yNTgxIDExLjY0NTIgMzEuMjU4MVpNMTIuODcxIDE3Ljc3NDJDMTEuNTE0OSAxNy43NzQyIDEwLjQxOTQgMTYuNjc4NiAxMC40MTk0IDE1LjMyMjZDMTAuNDE5NCAxMy45NjY1IDExLjUxNDkgMTIuODcxIDEyLjg3MSAxMi44NzFDMTQuMjI3IDEyLjg3MSAxNS4zMjI2IDEzLjk2NjUgMTUuMzIyNiAxNS4zMjI2QzE1LjMyMjYgMTYuNjc4NiAxNC4yMjcgMTcuNzc0MiAxMi44NzEgMTcuNzc0MlpNMjUuOTEwNSAyOS41ODc5QzI0LjE5NDQgMjcuNTM0NyAyMS42NzM4IDI2LjM1NDggMTkgMjYuMzU0OEMxNy4zNzU4IDI2LjM1NDggMTcuMzc1OCAyMy45MDMyIDE5IDIzLjkwMzJDMjIuNDAxNiAyMy45MDMyIDI1LjYxMTcgMjUuNDA0OCAyNy43ODc1IDI4LjAyNUMyOC44NDQ4IDI5LjI4MTUgMjYuOTI5NCAzMC44MjE0IDI1LjkxMDUgMjkuNTg3OVoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=",sizeSlug:"small"}],["core/heading",{align:"center",content:Object(c.__)("Your cart is currently empty!","woo-gutenberg-products-block"),level:2,className:"wc-block-cart__empty-cart__title"}],["core/paragraph",{align:"center",content:Object(c.sprintf)(Object(c.__)('<a href="%s">Browse store</a>.',"woo-gutenberg-products-block"),l.P),dropCap:!1}],["core/separator",{className:"is-style-dots"}],["core/heading",{align:"center",content:Object(c.__)("New in store","woo-gutenberg-products-block"),level:2}],["woocommerce/product-new",{columns:3,rows:1}]]}))}),Ae=(n(862),function(e){var t=e.attributes,n=e.setAttributes,a=t.isShippingCalculatorEnabled,i=t.isShippingCostHidden,s=t.checkoutPageId,u=t.hasDarkControls,d=Object(h.b)().currentPostId,m=Object(r.useRef)(s).current;return Object(r.createElement)(o.InspectorControls,null,d!==l.d&&Object(r.createElement)(p.Notice,{className:"wc-block-cart__page-notice",isDismissible:!1,status:"warning"},Object(w.a)(Object(c.__)("If you would like to use this block as your default cart you must update your <a>page settings in WooCommerce</a>.","woo-gutenberg-products-block"),{a:Object(r.createElement)("a",{href:Object(k.getAdminLink)("admin.php?page=wc-settings&tab=advanced"),target:"_blank",rel:"noopener noreferrer"})})),l.M&&Object(r.createElement)(p.PanelBody,{title:Object(c.__)("Shipping rates","woo-gutenberg-products-block")},Object(r.createElement)(p.ToggleControl,{label:Object(c.__)("Shipping calculator","woo-gutenberg-products-block"),help:Object(c.__)("Allow customers to estimate shipping by entering their address.","woo-gutenberg-products-block"),checked:a,onChange:function(){return n({isShippingCalculatorEnabled:!a})}}),Object(r.createElement)(p.ToggleControl,{label:Object(c.__)("Hide shipping costs until an address is entered","woo-gutenberg-products-block"),help:Object(c.__)("If checked, shipping rates will be hidden until the customer uses the shipping calculator or enters their address during checkout.","woo-gutenberg-products-block"),checked:i,onChange:function(){return n({isShippingCostHidden:!i})}})),!(d===l.d&&0===m)&&Object(r.createElement)(O.a,{pageId:s,setPageId:function(e){return n({checkoutPageId:e})},labels:{title:Object(c.__)("Proceed to Checkout button","woo-gutenberg-products-block"),default:Object(c.__)("WooCommerce Checkout Page","woo-gutenberg-products-block")}}),Object(r.createElement)(p.PanelBody,{title:Object(c.__)("Style","woo-gutenberg-products-block")},Object(r.createElement)(p.ToggleControl,{label:Object(c.__)("Dark mode inputs","woo-gutenberg-products-block"),help:Object(c.__)("Inputs styled specifically for use on dark background colors.","woo-gutenberg-products-block"),checked:u,onChange:function(){return n({hasDarkControls:!u})}})),Object(r.createElement)(b.a,null))}),Le=function(e){var t=e.className,n=e.attributes,o=e.setAttributes;return Object(r.createElement)("div",{className:u()(t,"wp-block-woocommerce-cart",{"is-editor-preview":n.isPreview})},Object(r.createElement)(f,{label:Object(c.__)("Edit","woo-gutenberg-products-block"),views:[{value:"full",name:Object(c.__)("Full Cart","woo-gutenberg-products-block")},{value:"empty",name:Object(c.__)("Empty Cart","woo-gutenberg-products-block")}],defaultView:"full",render:function(e){return Object(r.createElement)(j.a,{header:Object(c.__)("Cart Block Error","woo-gutenberg-products-block"),text:Object(c.__)("There was an error whilst rendering the cart block. If this problem continues, try re-creating the block.","woo-gutenberg-products-block"),showErrorMessage:!0,errorMessagePrefix:Object(c.__)("Error message:","woo-gutenberg-products-block")},"full"===e&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(h.a,{previewData:{previewCart:S.a}},Object(r.createElement)(Ae,{attributes:n,setAttributes:o}),Object(r.createElement)(p.Disabled,null,Object(r.createElement)(E,null,Object(r.createElement)(xe,{attributes:n})))),Object(r.createElement)(Te,{hidden:!0})),"empty"===e&&Object(r.createElement)(Te,null))}}))},ze=(n(861),{isPreview:{type:"boolean",default:!1,save:!1},isShippingCalculatorEnabled:{type:"boolean",default:l.w},isShippingCostHidden:{type:"boolean",default:l.x},checkoutPageId:{type:"number",default:0},hasDarkControls:{type:"boolean",default:l.r}}),Ue={title:Object(c.__)("Cart","woo-gutenberg-products-block"),icon:{src:Object(r.createElement)(a.a,{srcElement:i.a}),foreground:"#96588a"},category:"woocommerce",keywords:[Object(c.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(c.__)("Shopping cart.","woo-gutenberg-products-block"),supports:{align:["wide","full"],html:!1,multiple:!1},example:{attributes:{isPreview:!0}},attributes:ze,edit:Le,save:function(e){var t=e.attributes;return Object(r.createElement)("div",{className:u()("is-loading",t.className)},Object(r.createElement)(o.InnerBlocks.Content,null))}};Object(l.Z)("woocommerce/cart",Ue)},904:function(e,t,n){"use strict";var r=n(8),c=n.n(r),o=n(0),a=(n(2),n(265)),i=n(10),s=n.n(i),u=n(5),l=n(1),b=n(33),p=n(7),d=n.n(p),m=n(27),g=n.n(m),f=n(9),O=n(86),j=n(58),h=n(193),v=n(233),_=n(945),y=(n(264),function(e){var t=e.className,n=e.feedback,r=e.id,c=e.label,a=e.onChange,i=e.options,s=e.value;return Object(o.createElement)("div",{id:r,className:d()("wc-block-components-select",t,{"is-active":s})},Object(o.createElement)(_.a,{label:c,onChange:function(e){var t=e.selectedItem;a(t.key)},options:i,value:s}),n)}),E=Object(h.a)((function(e){var t=e.className,n=e.id,r=e.value,a=e.instanceId,i=e.required,u=e.errorId,b=e.errorMessage,p=void 0===b?Object(l.__)("Please select a value.","woo-gutenberg-products-block"):b,m=g()(e,["className","id","value","instanceId","required","errorId","errorMessage"]),h=n||"select-"+a;u=u||h;var _=Object(j.a)(r),E=Object(O.b)(),w=E.getValidationError,k=E.setValidationErrors,S=E.clearValidationError;Object(f.useEffect)((function(){!i||_?S(u):k(c()({},u,{message:p,hidden:!0}))}),[S,_,u,p,i,k]),Object(f.useEffect)((function(){return function(){S(u)}}),[S,u]);var N=w(u)||{};return Object(o.createElement)(y,s()({id:h,className:d()(t,{"has-error":N.message&&!N.hidden}),feedback:Object(o.createElement)(v.a,{propertyName:u}),value:_},m))})),w=(n(374),function(e){var t=e.className,n=e.countries,r=e.id,c=e.label,a=e.onChange,i=e.value,s=void 0===i?"":i,u=e.autoComplete,p=void 0===u?"off":u,m=e.required,g=void 0!==m&&m,f=e.errorId,O=e.errorMessage,j=void 0===O?Object(l.__)("Please select a country.","woo-gutenberg-products-block"):O,h=Object(o.useMemo)((function(){return Object.keys(n).map((function(e){return{key:e,name:Object(b.decodeEntities)(n[e])}}))}),[n]);return Object(o.createElement)("div",{className:d()(t,"wc-block-components-country-input")},Object(o.createElement)(E,{id:r,label:c,onChange:a,options:h,value:h.find((function(e){return e.key===s})),errorId:f,errorMessage:j,required:g}),"off"!==p&&Object(o.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:p,value:s,onChange:function(e){var t=e.target.value,n=h.find((function(e){return e.key===t}));a(n?n.key:"")},style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1}))}),k=function(e){return Object(o.createElement)(w,s()({countries:u.L},e))},S=function(e){return Object(o.createElement)(w,s()({countries:u.a},e))},N=(n(375),function(e){var t=e.className,n=e.id,r=e.states,c=e.country,i=e.label,s=e.onChange,u=e.autoComplete,p=void 0===u?"off":u,m=e.value,g=void 0===m?"":m,f=e.required,O=void 0!==f&&f,j=r[c],h=Object(o.useMemo)((function(){return j?Object.keys(j).map((function(e){return{key:e,name:Object(b.decodeEntities)(j[e])}})):[]}),[j]),v=Object(o.useCallback)((function(e){if(h.length>0){var t=h.find((function(t){return t.key===e||t.name===e}));s(t?t.key:"")}else s(e)}),[s,h]);return h.length>0?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E,{className:d()(t,"wc-block-components-state-input"),id:n,label:i,onChange:v,options:h,value:h.find((function(e){return e.key===g})),errorMessage:Object(l.__)("Please select a state.","woo-gutenberg-products-block"),required:O}),"off"!==p&&Object(o.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:p,value:g,onChange:function(e){return v(e.target.value)},style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1})):Object(o.createElement)(a.a,{className:t,id:n,label:i,onChange:v,autoComplete:p,value:g,required:O})}),P=function(e){return Object(o.createElement)(N,s()({states:u.O},e))},C=function(e){return Object(o.createElement)(N,s()({states:u.b},e))},M=n(159);function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D={city:{index:9},postcode:{index:7}},x={state:{required:!1}},T={state:{required:!1,hidden:!0}},A={postcode:{required:!1,hidden:!0}},L={AE:I(I({},A),x),AF:T,AO:I(I({},A),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),AT:I(I({},D),T),AU:{city:{label:Object(l.__)("Suburb","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Suburb (optional)","woo-gutenberg-products-block")},postcode:{label:Object(l.__)("Postcode","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Postcode (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}},AX:I(I({},D),T),BD:{postcode:{required:!1},state:{label:Object(l.__)("District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("District (optional)","woo-gutenberg-products-block")}},BE:I(I({},D),T),BH:I({postcode:{required:!1}},T),BI:T,BO:A,BS:A,CA:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},CH:I(I({},D),{},{state:{label:Object(l.__)("Canton","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Canton (optional)","woo-gutenberg-products-block"),required:!1}}),CL:{city:{require:!0},postcode:{required:!1},state:{label:Object(l.__)("Region","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Region (optional)","woo-gutenberg-products-block")}},CN:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},CO:{postcode:{required:!1}},CZ:T,DE:I(I({},D),T),DK:I(I({},D),T),EE:I(I({},D),T),ES:I(I({},D),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),FI:I(I({},D),T),FR:I(I({},D),T),GB:{postcode:{label:Object(l.__)("Postcode","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Postcode (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("County","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("County (optional)","woo-gutenberg-products-block")}},GP:T,GF:T,GR:x,HK:{postcode:{required:!1},city:{label:Object(l.__)("Town/District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Town/District (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("Region","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Region (optional)","woo-gutenberg-products-block")}},HU:{state:{label:Object(l.__)("County","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("County (optional)","woo-gutenberg-products-block")}},ID:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},IE:{postcode:{label:Object(l.__)("Eircode","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Eircode (optional)","woo-gutenberg-products-block"),required:!1},state:{label:Object(l.__)("County","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("County (optional)","woo-gutenberg-products-block")}},IS:I(I({},D),T),IL:I(I({},D),T),IM:T,IT:I(I({},D),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),JP:{first_name:{index:2},last_name:{index:1},address_1:{index:7},address_2:{index:8},postcode:{index:4},city:{index:6},state:{label:Object(l.__)("Prefecture","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Prefecture (optional)","woo-gutenberg-products-block"),index:5}},KR:T,KW:T,LB:T,LI:I(I({},D),{},{state:{label:Object(l.__)("Municipality","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Municipality (optional)","woo-gutenberg-products-block"),required:!1}}),LK:T,LU:T,LV:{state:{label:Object(l.__)("Municipality","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Municipality (optional)","woo-gutenberg-products-block"),required:!1}},MQ:T,MT:T,MZ:I(I({},A),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),NL:I(I({},D),T),NG:I(I({},A),{},{state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}}),NO:I(I({},D),T),NP:{postcode:{required:!1},state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}},NZ:{postcode:{label:Object(l.__)("Postcode","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Postcode (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("Region","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Region (optional)","woo-gutenberg-products-block")}},PL:I(I({},D),T),PT:T,RE:T,RO:{state:{label:Object(l.__)("County","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("County (optional)","woo-gutenberg-products-block")}},RS:T,SE:I(I({},D),T),SG:I({city:{required:!1}},T),SK:I(I({},D),T),SI:I(I({},D),T),SR:I({},A),ST:I(I({},A),{},{state:{label:Object(l.__)("District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("District (optional)","woo-gutenberg-products-block")}}),MD:{state:{label:Object(l.__)("Municipality/District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Municipality/District (optional)","woo-gutenberg-products-block")}},TR:I(I({},D),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),UG:I(I({},A),{},{city:{label:Object(l.__)("Town/Village","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Town/Village (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("District (optional)","woo-gutenberg-products-block")}}),US:{postcode:{label:Object(l.__)("ZIP","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("ZIP (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}},VN:I({city:{index:8},postcode:{index:7,required:!1}},T),WS:A,YT:T,ZA:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},ZW:A};function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=Object(h.a)((function(e){var t=e.id,n=e.fields,r=void 0===n?Object.keys(M.a):n,i=e.fieldConfig,s=void 0===i?{}:i,u=e.instanceId,b=e.onChange,p=e.type,d=void 0===p?"shipping":p,m=e.values,g=Object(O.b)(),f=g.getValidationError,j=g.setValidationErrors,h=g.clearValidationError,v=L[m.country]||{},_=r.map((function(e){return U(U(U({key:e},M.a[e]),v[e]),s[e])})).sort((function(e,t){return e.index-t.index})),y=f("shipping-missing-country")||{};return Object(o.useEffect)((function(){"shipping"===d&&function(e,t,n,r){r||e.country||!(e.city||e.state||e.postcode)||t({"shipping-missing-country":{message:Object(l.__)("Please select a country to calculate rates.","woo-gutenberg-products-block"),hidden:!1}}),r&&e.country&&n("shipping-missing-country")}(m,j,h,y.message&&!y.hidden)}),[m,y.message,y.hidden,j,h,d]),t=t||u,Object(o.createElement)("div",{id:t,className:"wc-block-components-address-form"},_.map((function(e){if(e.hidden)return null;if("country"===e.key){var n="shipping"===d?k:S;return Object(o.createElement)(n,{key:e.key,id:"".concat(t,"-").concat(e.key),label:e.required?e.label:e.optionalLabel,value:m.country,autoComplete:e.autocomplete,onChange:function(e){return b(U(U({},m),{},{country:e,state:"",city:"",postcode:""}))},errorId:"shipping"===d?"shipping-missing-country":null,errorMessage:e.errorMessage,required:e.required})}if("state"===e.key){var r="shipping"===d?P:C;return Object(o.createElement)(r,{key:e.key,id:"".concat(t,"-").concat(e.key),country:m.country,label:e.required?e.label:e.optionalLabel,value:m.state,autoComplete:e.autocomplete,onChange:function(e){return b(U(U({},m),{},{state:e}))},errorMessage:e.errorMessage,required:e.required})}return Object(o.createElement)(a.a,{key:e.key,id:"".concat(t,"-").concat(e.key),className:"wc-block-components-address-form__".concat(e.key),label:e.required?e.label:e.optionalLabel,value:m[e.key],autoCapitalize:e.autocapitalize,autoComplete:e.autocomplete,onChange:function(t){return b(U(U({},m),{},c()({},e.key,t)))},errorMessage:e.errorMessage,required:e.required})})))}))},908:function(e,t,n){"use strict";var r=n(11),c=n.n(r),o=n(0),a=n(1),i=n(5),s=(n(2),n(156)),u=n(8),l=n.n(u),b=n(904),p=n(99),d=n(43),m=n.n(d),g=n(86);n(263);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=function(e){var t=e.address,n=e.onUpdate,r=e.addressFields,i=Object(o.useState)(t),s=c()(i,2),u=s[0],l=s[1],d=Object(g.b)(),f=d.hasValidationErrors,j=d.showAllValidationErrors,h={};return r.forEach((function(e){h[e]=O(O({},h[e]),{},"country"===e?{errorMessage:Object(a.__)("Please select a country to calculate rates.","woo-gutenberg-products-block"),required:!0}:{required:!1})})),Object(o.createElement)("form",{className:"wc-block-components-shipping-calculator-address"},Object(o.createElement)(b.a,{fields:r,fieldConfig:h,onChange:l,values:u}),Object(o.createElement)(p.a,{className:"wc-block-components-shipping-calculator-address__button",disabled:m()(u,t),onClick:function(e){if(e.preventDefault(),j(),!f)return n(u)},type:"submit"},Object(a.__)("Update","woo-gutenberg-products-block")))},h=function(e){var t=e.onUpdate,n=void 0===t?function(){}:t,r=e.addressFields,c=void 0===r?["country","state","city","postcode"]:r,a=Object(s.b)(),i=a.shippingAddress,u=a.setShippingAddress;return Object(o.createElement)("div",{className:"wc-block-components-shipping-calculator"},Object(o.createElement)(j,{address:i,addressFields:c,onUpdate:function(e){u(e),n(e)}}))},v=n(60),_=n.n(v),y=n(33),E=function(e){var t=e.address;if(0===Object.values(t).length)return null;var n="string"==typeof i.L[t.country]?Object(y.decodeEntities)(i.L[t.country]):"",r="object"===_()(i.O[t.country])&&"string"==typeof i.O[t.country][t.state]?Object(y.decodeEntities)(i.O[t.country][t.state]):t.state,c=[];c.push(t.postcode.toUpperCase()),c.push(t.city),c.push(r),c.push(n);var s=c.filter(Boolean).join(", ");return s&&Object(o.createElement)("span",{className:"wc-block-components-shipping-address"},Object(a.sprintf)(Object(a.__)("Shipping to %s","woo-gutenberg-products-block"),s)+" ")},w=n(134),k=n(65),S=n(55),N=n(259),P=n(916),C=function(e){var t=i.p?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:Object(y.decodeEntities)(e.name),value:e.rate_id,description:Object(o.createElement)(o.Fragment,null,Number.isFinite(t)&&Object(o.createElement)(S.a,{currency:Object(N.c)(e),value:t}),Number.isFinite(t)&&e.delivery_time?" — ":null,Object(y.decodeEntities)(e.delivery_time))}},M=function(e){var t=e.hasRates,n=e.shippingRates,r=e.shippingRatesLoading;return Object(o.createElement)("fieldset",{className:"wc-block-components-totals-shipping__fieldset"},Object(o.createElement)("legend",{className:"screen-reader-text"},t?Object(a.__)("Shipping options","woo-gutenberg-products-block"):Object(a.__)("Choose a shipping option","woo-gutenberg-products-block")),Object(o.createElement)(P.a,{className:"wc-block-components-totals-shipping__options",collapsibleWhenMultiple:!0,noResultsMessage:Object(a.__)("No shipping options were found.","woo-gutenberg-products-block"),renderOption:C,shippingRates:n,shippingRatesLoading:r}))},R=function(e){return e.some((function(e){return e.shipping_rates.length}))};n(373),t.a=function(e){var t=e.currency,n=e.values,r=e.isCheckout,s=void 0!==r&&r,u=e.showCalculator,l=void 0===u||u,b=e.showRatesWithoutAddress,p=void 0!==b&&b,d=Object(o.useState)(!1),m=c()(d,2),g=m[0],f=m[1],O=Object(w.a)(),j=O.shippingRates,v=O.shippingRatesLoading,_=O.hasShippingAddress,y=O.shippingAddress,S=i.p?parseInt(n.total_shipping,10)+parseInt(n.total_shipping_tax,10):parseInt(n.total_shipping,10),N=R(j)||S,P=p||_;return N||_||s?Object(o.createElement)("div",{className:"wc-block-components-totals-shipping"},Object(o.createElement)(k.a,{label:Object(a.__)("Shipping","woo-gutenberg-products-block"),value:S||"",description:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E,{address:y})," ",l&&Object(o.createElement)("button",{className:"wc-block-components-totals-shipping__change-address-button",onClick:function(){f(!g)},"aria-expanded":g},Object(a.__)("(change address)","woo-gutenberg-products-block"))),currency:t}),l&&g&&Object(o.createElement)(h,{onUpdate:function(){f(!1)}}),!s&&P&&Object(o.createElement)(M,{hasRates:N,shippingRates:j,shippingRatesLoading:v})):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(k.a,{className:"wc-block-components-totals-shipping",label:Object(a.__)("Shipping","woo-gutenberg-products-block"),value:l?Object(o.createElement)("button",{className:"wc-block-components-totals-shipping__change-address-button",onClick:function(){f(!g)}},Object(a.__)("Calculate","woo-gutenberg-products-block")):Object(o.createElement)("em",null,Object(a.__)("Calculated during checkout","woo-gutenberg-products-block"))}),l&&g&&Object(o.createElement)(h,{onUpdate:function(){f(!1)}}))}},916:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(9),a=(n(2),n(87)),i=n(125),s=n(878),u=n(27),l=n.n(u),b=n(864),p=n(33),d=n(48),m=n(136),g=n(154),f=n(7),O=n.n(f),j=n(210),h=n(165),v=n(390),_=function(e){var t=e.className,n=e.noResultsMessage,c=e.onChange,o=e.options,a=e.renderOption,i=e.selected;if(0===o.length)return Object(r.createElement)(v.a,{isDismissible:!1,className:O()("wc-block-components-shipping-rates-control__no-results-notice","woocommerce-message","woocommerce-info")},n);if(o.length>1)return Object(r.createElement)(j.a,{className:t,onChange:c,selected:i,options:o.map(a)});var s=a(o[0]),u=s.label,l=s.secondaryLabel,b=s.description,p=s.secondaryDescription;return Object(r.createElement)(h.a,{label:u,secondaryLabel:l,description:b,secondaryDescription:p})},y=(n(204),function(e){var t=e.className,n=e.collapsible,o=void 0!==n&&n,a=e.noResultsMessage,i=e.onChange,s=e.renderOption,u=e.selected,l=e.shippingRate,b=e.showItems,f=e.title,j=Object(r.createElement)(r.Fragment,null,f&&Object(r.createElement)(m.a,{className:"wc-block-components-shipping-rates-control__package-title",headingLevel:"3"},f),b&&Object(r.createElement)("ul",{className:"wc-block-components-shipping-rates-control__package-items"},Object.values(l.items).map((function(e){var t=Object(p.decodeEntities)(e.name),n=e.quantity;return Object(r.createElement)("li",{key:t,className:"wc-block-components-shipping-rates-control__package-item"},Object(r.createElement)(d.a,{label:"".concat(t," ×").concat(n),screenReaderLabel:Object(c.sprintf)(Object(c._n)("%1$s (%2$d unit)","%1$s (%2$d units)",n,"woo-gutenberg-products-block"),t,n)}))})))),h=Object(r.createElement)(_,{className:t,noResultsMessage:a,onChange:i,options:l.shipping_rates,renderOption:s,selected:u});return o?Object(r.createElement)(g.a,{className:"wc-block-components-shipping-rates-control__package",hasBorder:!0,initialOpen:!0,title:j},h):Object(r.createElement)("div",{className:O()("wc-block-components-shipping-rates-control__package",t)},j,h)}),E=function(e){var t=e.className,n=e.collapsible,c=void 0!==n&&n,o=e.noResultsMessage,a=e.renderOption,i=e.shippingRates,s=void 0===i?[]:i,u=Object(b.a)(s),p=u.selectShippingRate,d=u.selectedShippingRates;return Object(r.createElement)("div",{className:"wc-block-components-shipping-rates-control"},s.map((function(e){var n=e.package_id,i=l()(e,["package_id"]);return Object(r.createElement)(y,{key:n,className:t,collapsible:c,noResultsMessage:o,onChange:function(e){p(e,n)},renderOption:a,selected:d[n],shippingRate:i,showItems:s.length>1,title:s.length>1?i.name:null})})))};t.a=function(e){var t=e.shippingRates,n=e.shippingRatesLoading,u=e.className,l=e.collapsibleWhenMultiple,b=void 0!==l&&l,p=e.noResultsMessage,d=e.renderOption;return Object(o.useEffect)((function(){if(!n){var e=Object(s.a)(t),r=Object(s.b)(t);0===r?Object(a.speak)(Object(c.__)("No shipping options were found.","woo-gutenberg-products-block")):1===e?Object(a.speak)(Object(c.sprintf)(Object(c._n)("%d shipping option was found.","%d shipping options were found.",r,"woo-gutenberg-products-block"),r)):Object(a.speak)(Object(c.sprintf)(Object(c._n)("Shipping option searched for %d package.","Shipping options searched for %d packages.",e,"woo-gutenberg-products-block"),e)+" "+Object(c.sprintf)(Object(c._n)("%d shipping option was found","%d shipping options were found",r,"woo-gutenberg-products-block"),r))}}),[n,t]),Object(r.createElement)(i.a,{isLoading:n,screenReaderLabel:Object(c.__)("Loading shipping rates…","woo-gutenberg-products-block"),showSpinner:!0},Object(r.createElement)(E,{className:u,collapsible:t.length>1&&b,noResultsMessage:p,renderOption:d,shippingRates:t}))}},917:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(8),a=n.n(o),i=n(0),s=n(7),u=n.n(s),l=function(e){return"wc-block-components-payment-method-icon wc-block-components-payment-method-icon--".concat(e)},b=function(e){var t=e.id,n=e.src,r=void 0===n?null:n,c=e.alt,o=void 0===c?"":c;return r?Object(i.createElement)("img",{className:l(t),src:r,alt:o}):null},p=n(5),d=[{id:"alipay",alt:"Alipay",src:p.U+"img/payment-methods/alipay.svg"},{id:"amex",alt:"American Express",src:p.U+"img/payment-methods/amex.svg"},{id:"bancontact",alt:"Bancontact",src:p.U+"img/payment-methods/bancontact.svg"},{id:"diners",alt:"Diners Club",src:p.U+"img/payment-methods/diners.svg"},{id:"discover",alt:"Discover",src:p.U+"img/payment-methods/discover.svg"},{id:"eps",alt:"EPS",src:p.U+"img/payment-methods/eps.svg"},{id:"giropay",alt:"Giropay",src:p.U+"img/payment-methods/giropay.svg"},{id:"ideal",alt:"iDeal",src:p.U+"img/payment-methods/ideal.svg"},{id:"jcb",alt:"JCB",src:p.U+"img/payment-methods/jcb.svg"},{id:"laser",alt:"Laser",src:p.U+"img/payment-methods/laser.svg"},{id:"maestro",alt:"Maestro",src:p.U+"img/payment-methods/maestro.svg"},{id:"mastercard",alt:"Mastercard",src:p.U+"img/payment-methods/mastercard.svg"},{id:"multibanco",alt:"Multibanco",src:p.U+"img/payment-methods/multibanco.svg"},{id:"p24",alt:"Przelewy24",src:p.U+"img/payment-methods/p24.svg"},{id:"sepa",alt:"Sepa",src:p.U+"img/payment-methods/sepa.svg"},{id:"sofort",alt:"Sofort",src:p.U+"img/payment-methods/sofort.svg"},{id:"unionpay",alt:"Union Pay",src:p.U+"img/payment-methods/unionpay.svg"},{id:"visa",alt:"Visa",src:p.U+"img/payment-methods/visa.svg"},{id:"wechat",alt:"WeChat",src:p.U+"img/payment-methods/wechat.svg"}],m=n(60),g=n.n(m);n(382);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.icons,n=void 0===t?[]:t,r=e.align,o=void 0===r?"center":r,a=function(e){var t={};return e.forEach((function(e){var n={};"string"==typeof e&&(n={id:e,alt:e,src:null}),"object"===g()(e)&&(n={id:e.id||"",alt:e.alt||"",src:e.src||null}),n.id&&!t[n.id]&&(t[n.id]=n)})),Object.values(t)}(n);if(0===a.length)return null;var s=u()("wc-block-components-payment-method-icons",{"wc-block-components-payment-method-icons--align-left":"left"===o,"wc-block-components-payment-method-icons--align-right":"right"===o});return Object(i.createElement)("div",{className:s},a.map((function(e){var t,n=O(O({},e),(t=e.id,d.find((function(e){return e.id===t}))||{}));return Object(i.createElement)(b,c()({key:"payment-method-icon-"+e.id},n))})))}},924:function(e,t,n){"use strict";var r=n(0),c=(n(2),n(33)),o=n(7),a=n.n(o),i=function(e){var t=e.className,n=e.variation,o=void 0===n?[]:n;if(!o||0===o.length)return null;var i=o.map((function(e){return e.attribute?"".concat(Object(c.decodeEntities)(e.attribute),": ").concat(Object(c.decodeEntities)(e.value)):"".concat(Object(c.decodeEntities)(e.value))})).join(" / ");return Object(r.createElement)("div",{className:a()("wc-block-components-product-variation-data",t)},i)},s=n(177),u=n(3),l=function(e){var t=e.className,n=e.shortDescription,c=void 0===n?"":n,o=e.fullDescription,a=c||(void 0===o?"":o);return a?Object(r.createElement)(s.a,{className:t,source:a,maxLength:15,countType:Object(u.getSetting)("wordCountType","words")}):null};n(370),t.a=function(e){var t=e.shortDescription,n=void 0===t?"":t,c=e.fullDescription,o=void 0===c?"":c,a=e.variation,s=void 0===a?[]:a;return Object(r.createElement)("div",{className:"wc-block-components-product-metadata"},Object(r.createElement)(l,{className:"wc-block-components-product-metadata__description",shortDescription:n,fullDescription:o}),Object(r.createElement)(i,{className:"wc-block-components-product-metadata__variation-data",variation:s}))}},928:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),c=n(5),o=[{destination:{},package_id:0,name:Object(r.__)("Shipping","woo-gutenberg-products-block"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:Object(r._x)("Beanie with Logo","example product in Cart Block","woo-gutenberg-products-block"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:Object(r._x)("Beanie","example product in Cart Block","woo-gutenberg-products-block"),quantity:1}],shipping_rates:[{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:Object(r.__)("Free shipping","woo-gutenberg-products-block"),description:"",delivery_time:"",price:"000",rate_id:"free_shipping:1",method_id:"flat_rate",selected:!0},{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:Object(r.__)("Local pickup","woo-gutenberg-products-block"),description:"",delivery_time:"",price:"200",rate_id:"local_pickup:1",method_id:"local_pickup",selected:!1}]}],a={coupons:[],shipping_rates:c.N?o:[],items:[{key:"1",id:1,quantity:2,name:Object(r.__)("Beanie","woo-gutenberg-products-block"),short_description:Object(r.__)("Warm hat for winter","woo-gutenberg-products-block"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-beanie",permalink:"https://example.org",low_stock_remaining:2,backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,images:[{id:10,src:c.U+"img/beanie.jpg",thumbnail:c.U+"img/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(r.__)("Color","woo-gutenberg-products-block"),value:Object(r.__)("Yellow","woo-gutenberg-products-block")},{attribute:Object(r.__)("Size","woo-gutenberg-products-block"),value:Object(r.__)("Small","woo-gutenberg-products-block")}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:"800",regular_price:"800",sale_price:"800",raw_prices:{precision:6,price:"8000000",regular_price:"8000000",sale_price:"8000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"1600",line_subtotal_tax:"0",line_total:"1600",line_total_tax:"0"}},{key:"2",id:2,quantity:1,name:Object(r.__)("Cap","woo-gutenberg-products-block"),short_description:Object(r.__)("Lightweight baseball cap","woo-gutenberg-products-block"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-cap",permalink:"https://example.org",backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,images:[{id:11,src:c.U+"img/cap.jpg",thumbnail:c.U+"img/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(r.__)("Color","woo-gutenberg-products-block"),value:Object(r.__)("Orange","woo-gutenberg-products-block")}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:"1400",regular_price:"1600",sale_price:"1400",raw_prices:{precision:6,price:"14000000",regular_price:"16000000",sale_price:"14000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"1400",line_subtotal_tax:"0",line_total:"1400",line_total_tax:"0"}}],items_count:3,items_weight:0,needs_payment:!0,needs_shipping:c.M,totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",total_items:"3000",total_items_tax:"0",total_fees:"0",total_fees_tax:"0",total_discount:"0",total_discount_tax:"0",total_shipping:"200",total_shipping_tax:"0",total_tax:"0",total_price:"3200",tax_lines:[]}}},95:function(e,t){!function(){e.exports=this.wp.autop}()},99:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(27),a=n.n(o),i=n(0),s=n(280),u=(n(2),n(7)),l=n.n(u);n(239);t.a=function(e){var t=e.className,n=e.showSpinner,r=void 0!==n&&n,o=e.children,u=a()(e,["className","showSpinner","children"]),b=l()("wc-block-components-button",t,{"wc-block-components-button--loading":r});return Object(i.createElement)(s.a,c()({className:b},u),r&&Object(i.createElement)("span",{className:"wc-block-components-button__spinner","aria-hidden":"true"}),Object(i.createElement)("span",{className:"wc-block-components-button__text"},o))}}});
1
+ this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks.cart=function(e){function t(t){for(var r,a,i=t[0],s=t[1],u=t[2],b=0,p=[];b<i.length;b++)a=i[b],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&p.push(c[a][0]),c[a]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(l&&l(t);p.length;)p.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,i=1;i<n.length;i++){var s=n[i];0!==c[s]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},c={20:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var l=s;return o.push([860,0]),n()}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},123:function(e,t,n){"use strict";var r=n(11),c=n.n(r),o=n(0),a=n(9),i=(n(2),n(7)),s=n.n(i),u=n(48),l=(n(266),Object(a.forwardRef)((function(e,t){var n=e.className,r=e.id,a=e.type,i=void 0===a?"text":a,l=e.ariaLabel,b=e.ariaDescribedBy,p=e.label,d=e.screenReaderLabel,m=e.disabled,g=e.help,f=e.autoCapitalize,O=void 0===f?"off":f,j=e.autoComplete,h=void 0===j?"off":j,v=e.value,_=void 0===v?"":v,y=e.onChange,E=e.required,w=void 0!==E&&E,k=e.onBlur,S=void 0===k?function(){}:k,N=e.feedback,P=Object(o.useState)(!1),C=c()(P,2),M=C[0],R=C[1];return Object(o.createElement)("div",{className:s()("wc-block-components-text-input",n,{"is-active":M||_})},Object(o.createElement)("input",{type:i,id:r,value:_,ref:t,autoCapitalize:O,autoComplete:h,onChange:function(e){y(e.target.value)},onFocus:function(){return R(!0)},onBlur:function(){S(),R(!1)},"aria-label":l||p,disabled:m,"aria-describedby":g&&!b?r+"__help":b,required:w}),Object(o.createElement)(u.a,{label:p,screenReaderLabel:d||p,wrapperElement:"label",wrapperProps:{htmlFor:r},htmlFor:r}),!!g&&Object(o.createElement)("p",{id:r+"__help",className:"wc-block-components-text-input__help"},g),N)})));t.a=l},125:function(e,t,n){"use strict";var r=n(0),c=n(1),o=(n(2),n(7)),a=n.n(o),i=n(551);n(365);t.a=function(e){var t=e.children,n=e.className,o=e.screenReaderLabel,s=e.showSpinner,u=void 0!==s&&s,l=e.isLoading;return void 0===l||l?Object(r.createElement)("div",{className:a()(n,"wc-block-components-loading-mask")},u&&Object(r.createElement)(i.a,null),Object(r.createElement)("div",{className:"wc-block-components-loading-mask__children","aria-hidden":!0},t),Object(r.createElement)("span",{className:"screen-reader-text"},o||Object(c.__)("Loading…","woo-gutenberg-products-block"))):t}},13:function(e,t){!function(){e.exports=this.wp.apiFetch}()},134:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(41),c=n(36),o=n(212),a=n(33),i=n(6),s={cartCoupons:[],cartItems:[],cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:[],cartTotals:{},cartIsLoading:!0,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:[],shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:function(){}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(o.b)(),n=t.isEditor,u=t.previewData,l=(null==u?void 0:u.previewCart)||{},b=e.shouldSelect,p=Object(c.useSelect)((function(e,t){var c=t.dispatch;if(!b)return s;if(n)return{cartCoupons:l.coupons,cartItems:l.items,cartItemsCount:l.items_count,cartItemsWeight:l.items_weight,cartNeedsPayment:l.needs_payment,cartNeedsShipping:l.needs_shipping,cartItemErrors:[],cartTotals:l.totals,cartIsLoading:!1,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:l.shipping_rates,shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:"function"==typeof(null==l?void 0:l.receiveCart)?l.receiveCart:function(){}};var o=e(r.CART_STORE_KEY),u=o.getCartData(),p=o.getCartErrors(),d=o.getCartTotals(),m=!o.hasFinishedResolution("getCartData"),g=o.areShippingRatesLoading(),f=c(r.CART_STORE_KEY).receiveCart,O=Object(i.mapValues)(u.shippingAddress,(function(e){return Object(a.decodeEntities)(e)}));return{cartCoupons:u.coupons,cartItems:u.items||[],cartItemsCount:u.itemsCount,cartItemsWeight:u.itemsWeight,cartNeedsPayment:u.needsPayment,cartNeedsShipping:u.needsShipping,cartItemErrors:u.errors||[],cartTotals:d,cartIsLoading:m,cartErrors:p,shippingAddress:O,shippingRates:u.shippingRates||[],shippingRatesLoading:g,hasShippingAddress:!!O.country,receiveCart:f}}),[b]);return p}},136:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(27),a=n.n(o),i=n(0),s=n(7),u=n.n(s);n(2),n(367);t.a=function(e){var t=e.children,n=e.className,r=e.headingLevel,o=a()(e,["children","className","headingLevel"]),s=u()("wc-block-components-title",n),l="h".concat(r);return Object(i.createElement)(l,c()({className:s},o),t)}},14:function(e,t){!function(){e.exports=this.wp.blockEditor}()},140:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(8),c=n.n(r),o=n(191),a=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(){var e=Object(o.b)(),t=e.notices,n=e.createNotice,r=e.removeNotice,c=e.createSnackbarNotice,i=e.setIsSuppressed,u=Object(a.useRef)(t);Object(a.useEffect)((function(){u.current=t}),[t]);var l=Object(a.useMemo)((function(){return{hasNoticesOfType:function(e){return u.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u.current.forEach((function(t){null!==e&&t.status!==e||r(t.id)}))},removeNotice:r}}),[r]),b=Object(a.useMemo)((function(){return{addDefaultNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("default",e,s({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("error",e,s({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("warning",e,s({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("info",e,s({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("success",e,s({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(e,t)}}}),[n,c]);return s(s(s({notices:t},l),b),{},{setIsSuppressed:i})}},142:function(e,t){!function(){e.exports=this.wp.wordcount}()},15:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},150:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return b}));var r=n(8),c=n.n(r),o=n(6);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s="add_event_callback",u="remove_event_callback",l={addEventCallback:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:Object(o.uniqueId)(),type:s,eventType:e,callback:t,priority:n}},removeEventCallback:function(e,t){return{id:t,type:u,eventType:e}}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.eventType,o=t.id,a=t.callback,l=t.priority,b=new Map(e[r]);switch(n){case s:return b.set(o,{priority:l,callback:a}),i(i({},e),{},c()({},r,b));case u:return b.delete(o),i(i({},e),{},c()({},r,b))}return e}},153:function(e,t,n){"use strict";var r=n(0),c=n(7),o=n.n(c);n(2),n(369);t.a=function(e){var t=e.children,n=e.className;return Object(r.createElement)("div",{className:o()("wc-block-components-product-badge",n)},t)}},154:function(e,t,n){"use strict";var r=n(11),c=n.n(r),o=n(0),a=n(7),i=n.n(a),s=(n(2),n(61)),u=n(57),l=Object(o.createElement)(u.a,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"})),b=Object(o.createElement)(u.a,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));n(377),t.a=function(e){var t=e.children,n=e.className,r=e.initialOpen,a=void 0!==r&&r,u=e.hasBorder,p=void 0!==u&&u,d=e.title,m=e.titleTag,g=void 0===m?"div":m,f=Object(o.useState)(a),O=c()(f,2),j=O[0],h=O[1];return Object(o.createElement)("div",{className:i()(n,"wc-blocks-components-panel",{"has-border":p})},Object(o.createElement)(g,null,Object(o.createElement)("button",{"aria-expanded":j,className:"wc-blocks-components-panel__button",onClick:function(){return h(!j)}},Object(o.createElement)(s.a,{"aria-hidden":"true",className:"wc-blocks-components-panel__button-icon",srcElement:j?l:b}),d)),Object(o.createElement)("div",{className:"wc-blocks-components-panel__content",hidden:!j},t))}},155:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(11),c=n.n(r),o=n(0),a=function(){var e=Object(o.useState)(),t=c()(e,2)[1];return function(e){return t((function(){throw e}))}}},156:function(e,t,n){"use strict";n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return T}));var r=n(11),c=n.n(r),o=n(0),a=n(134),i=n(36),s=n(43),u=n.n(s),l=n(550),b=n(41),p=n(33),d=n(140),m=function(e){return{country:e.country,state:e.state,city:e.city,postcode:e.postcode.replace(" ","").toUpperCase()}},g=function(){var e=Object(a.a)().shippingAddress,t=Object(o.useState)(e),n=c()(t,2),r=n[0],s=n[1],g=Object(l.a)(r,400),f=c()(g,1)[0],O=Object(i.useDispatch)(b.CART_STORE_KEY).updateShippingAddress,j=Object(d.a)().addErrorNotice,h=Object(o.useRef)(e);Object(o.useEffect)((function(){var e,t;f.country&&(e=h.current,t=f,!u()(m(e),m(t)))&&O(f).then((function(){h.current=f})).catch((function(e){j(e.message,{id:"shipping-form"})}))}),[f,O,j]);var v={};return Object.keys(r).forEach((function(e){v[e]=Object(p.decodeEntities)(r[e])})),{shippingAddress:v,setShippingAddress:s}},f=n(864),O=n(170),j={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},h={INVALID_COUNTRY:"woocommerce_rest_cart_shipping_rates_invalid_country",MISSING_COUNTRY:"woocommerce_rest_cart_shipping_rates_missing_country",INVALID_STATE:"woocommerce_rest_cart_shipping_rates_invalid_state"},v={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:function(){return null},shippingErrorTypes:j,shippingRates:[],setShippingRates:function(){return null},shippingRatesLoading:!1,selectedRates:[],setSelectedRates:function(){return null},shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},setShippingAddress:function(){return null},onShippingRateSuccess:function(){return null},onShippingRateFail:function(){return null},onShippingRateSelectSuccess:function(){return null},onShippingRateSelectFail:function(){return null},needsShipping:!1},_=n(150),y=n(396),E="shipping_rates_success",w="shipping_rates_fail",k="shipping_rate_select_success",S="shipping_rate_select_fail",N=function(e){return{onSuccess:Object(y.a)(E,e),onFail:Object(y.a)(w,e),onSelectSuccess:Object(y.a)(k,e),onSelectFail:Object(y.a)(S,e)}},P=n(397),C=j.NONE,M=j.INVALID_ADDRESS,R=j.UNKNOWN,I=function(e,t){var n=t.type;return Object.values(j).includes(n)?n:e},D=Object(o.createContext)(v),x=function(){return Object(o.useContext)(D)},T=function(e){var t=e.children,n=Object(O.b)().dispatchActions,r=Object(a.a)(),i=r.cartNeedsShipping,s=r.shippingRates,u=r.shippingRatesLoading,l=r.cartErrors,b=Object(o.useReducer)(I,C),p=c()(b,2),d=p[0],m=p[1],v=Object(o.useReducer)(_.b,{}),y=c()(v,2),x=y[0],T=y[1],A=g(),L=A.shippingAddress,z=A.setShippingAddress,U=Object(o.useRef)(x),V=Object(f.a)(s),F=V.selectShippingRate,q=V.selectedShippingRates,B=V.isSelectingRate,Y=Object(o.useMemo)((function(){return{onShippingRateSuccess:N(T).onSuccess,onShippingRateFail:N(T).onFail,onShippingRateSelectSuccess:N(T).onSelectSuccess,onShippingRateSelectFail:N(T).onSelectFail}}),[T]);Object(o.useEffect)((function(){U.current=x}),[x]),Object(o.useEffect)((function(){u?n.incrementCalculating():n.decrementCalculating()}),[u,n]),Object(o.useEffect)((function(){B?n.incrementCalculating():n.decrementCalculating()}),[B,n]),Object(o.useEffect)((function(){l.length>0&&l.some((function(e){return!(!e.code||!Object.values(h).includes(e.code))}))?m({type:M}):m({type:C})}),[l]);var H=Object(o.useMemo)((function(){return{isPristine:d===C,isValid:d===C,hasInvalidAddress:d===M,hasError:d===R||d===M}}),[d]);Object(o.useEffect)((function(){u||0!==s.length&&!H.hasError||Object(P.a)(U.current,w,{hasInvalidAddress:H.hasInvalidAddress,hasError:H.hasError})}),[s,u,H.hasError,H.hasInvalidAddress]),Object(o.useEffect)((function(){!u&&s.length>0&&!H.hasError&&Object(P.a)(U.current,E,s)}),[s,u,H.hasError]),Object(o.useEffect)((function(){!B&&H.hasError&&Object(P.a)(U.current,S,{hasError:H.hasError,hasInvalidAddress:H.hasInvalidAddress})}),[q,B,H.hasError,H.hasInvalidAddress]),Object(o.useEffect)((function(){B||!q||H.hasError||Object(P.a)(U.current,k,q)}),[q,B,H.hasError]);var G={shippingErrorStatus:H,dispatchErrorStatus:m,shippingErrorTypes:j,shippingRates:s,setShippingRates:F,shippingRatesLoading:u,selectedRates:q,setSelectedRates:F,isSelectingRate:B,shippingAddress:L,setShippingAddress:z,onShippingRateSuccess:Y.onShippingRateSuccess,onShippingRateFail:Y.onShippingRateFail,onShippingRateSelectSuccess:Y.onShippingRateSelectSuccess,onShippingRateSelectFail:Y.onShippingRateSelectFail,needsShipping:i};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(D.Provider,{value:G},t))}},159:function(e,t,n){"use strict";var r=n(1),c={first_name:{label:Object(r.__)("First name","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("First name (optional)","woo-gutenberg-products-block"),autocomplete:"given-name",autocapitalize:"sentences",required:!0,hidden:!1,index:1},last_name:{label:Object(r.__)("Last name","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Last name (optional)","woo-gutenberg-products-block"),autocomplete:"family-name",autocapitalize:"sentences",required:!0,hidden:!1,index:2},company:{label:Object(r.__)("Company","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Company (optional)","woo-gutenberg-products-block"),autocomplete:"organization",autocapitalize:"sentences",required:!1,hidden:!1,index:3},address_1:{label:Object(r.__)("Address","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Address (optional)","woo-gutenberg-products-block"),autocomplete:"address-line1",autocapitalize:"sentences",required:!0,hidden:!1,index:4},address_2:{label:Object(r.__)("Apartment, suite, etc.","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Apartment, suite, etc. (optional)","woo-gutenberg-products-block"),autocomplete:"address-line2",autocapitalize:"sentences",required:!1,hidden:!1,index:5},country:{label:Object(r.__)("Country/Region","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Country/Region (optional)","woo-gutenberg-products-block"),autocomplete:"country",required:!0,hidden:!1,index:6},city:{label:Object(r.__)("City","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("City (optional)","woo-gutenberg-products-block"),autocomplete:"address-level2",autocapitalize:"sentences",required:!0,hidden:!1,index:7},state:{label:Object(r.__)("State/County","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("State/County (optional)","woo-gutenberg-products-block"),autocomplete:"address-level1",autocapitalize:"sentences",required:!0,hidden:!1,index:8},postcode:{label:Object(r.__)("Postal code","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Postal code (optional)","woo-gutenberg-products-block"),autocomplete:"postal-code",autocapitalize:"characters",required:!0,hidden:!1,index:9}};t.a=c},164:function(e,t,n){"use strict";var r=n(8),c=n.n(r),o=n(0),a=n(1),i=n(55),s=n(7),u=n.n(s),l=(n(2),n(237),function(e){var t=e.className,n=e.currency,r=e.maxPrice,c=e.minPrice,a=e.priceClassName,s=e.priceStyle;return Object(o.createElement)("span",{className:t},Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",a),currency:n,value:c,style:s})," — ",Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",a),currency:n,value:r,style:s}))}),b=function(e){var t=e.className,n=e.currency,r=e.regularPriceClassName,c=e.regularPriceStyle,s=e.regularPrice,l=e.priceClassName,b=e.priceStyle,p=e.price;return Object(o.createElement)("span",{className:t},Object(o.createElement)("span",{className:"screen-reader-text"},Object(a.__)("Previous price:","woo-gutenberg-products-block")),Object(o.createElement)(i.a,{currency:n,renderText:function(e){return Object(o.createElement)("del",{className:u()("wc-block-components-product-price__regular",r),style:c},e)},value:s}),Object(o.createElement)("span",{className:"screen-reader-text"},Object(a.__)("Discounted price:","woo-gutenberg-products-block")),Object(o.createElement)(i.a,{currency:n,renderText:function(e){return Object(o.createElement)("ins",{className:u()("wc-block-components-product-price__value","is-discounted",l),style:b},e)},value:p}))};t.a=function(e){var t=e.align,n=e.className,r=e.currency,a=e.maxPrice,s=void 0===a?null:a,p=e.minPrice,d=void 0===p?null:p,m=e.price,g=void 0===m?null:m,f=e.priceClassName,O=e.priceStyle,j=e.regularPrice,h=e.regularPriceClassName,v=e.regularPriceStyle,_=u()(n,"price","wc-block-components-product-price",c()({},"wc-block-components-product-price--align-".concat(t),t));return j&&g!==j?Object(o.createElement)(b,{className:_,currency:r,price:g,priceClassName:f,priceStyle:O,regularPrice:j,regularPriceClassName:h,regularPriceStyle:v}):null!==d&&null!==s?Object(o.createElement)(l,{className:_,currency:r,maxPrice:s,minPrice:d,priceClassName:f,priceStyle:O}):null!==g?Object(o.createElement)("span",{className:_},Object(o.createElement)(i.a,{className:u()("wc-block-components-product-price__value",f),currency:r,value:g,style:O})):Object(o.createElement)("span",{className:_},Object(o.createElement)("span",{className:u()("wc-block-components-product-price__value",f)}))}},165:function(e,t,n){"use strict";var r=n(0);t.a=function(e){var t=e.label,n=e.secondaryLabel,c=e.description,o=e.secondaryDescription,a=e.id;return Object(r.createElement)("div",{className:"wc-block-components-radio-control__option-layout"},Object(r.createElement)("div",{className:"wc-block-components-radio-control__label-group"},t&&Object(r.createElement)("span",{id:a?"".concat(a,"__label"):null,className:"wc-block-components-radio-control__label"},t),n&&Object(r.createElement)("span",{id:a?"".concat(a,"__secondary-label"):null,className:"wc-block-components-radio-control__secondary-label"},n)),Object(r.createElement)("div",{className:"wc-block-components-radio-control__description-group"},c&&Object(r.createElement)("span",{id:a?"".concat(a,"__description"):null,className:"wc-block-components-radio-control__description"},c),o&&Object(r.createElement)("span",{id:a?"".concat(a,"__secondary-description"):null,className:"wc-block-components-radio-control__secondary-description"},o)))}},167:function(e,t,n){"use strict";var r=n(0),c=n(57),o=Object(r.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("mask",{id:"external-mask",width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},Object(r.createElement)("path",{fill:"#fff",d:"M6.3431 6.3431v1.994l7.8984.0072-8.6055 8.6054 1.4142 1.4143 8.6055-8.6055.0071 7.8984h1.994V6.3431H6.3431z"})),Object(r.createElement)("g",{mask:"url(#external-mask)"},Object(r.createElement)("path",{d:"M0 0h24v24H0z"})));t.a=o},168:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(9),c=function(e,t){var n=Object(r.useRef)();return Object(r.useEffect)((function(){n.current===e||t&&!t(e,n.current)||(n.current=e)}),[e,t]),n.current}},169:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(8),a=n.n(o),i=n(11),s=n.n(i),u=n(27),l=n.n(u),b=n(0),p=n(1),d=n(9),m=(n(2),n(7)),g=n.n(m),f=n(86),O=n(233),j=n(193),h=n(123);n(266);t.a=Object(j.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,o=e.ariaDescribedBy,i=e.errorId,u=e.validateOnMount,m=void 0===u||u,j=e.focusOnMount,v=void 0!==j&&j,_=e.onChange,y=e.showError,E=void 0===y||y,w=l()(e,["className","instanceId","id","ariaDescribedBy","errorId","validateOnMount","focusOnMount","onChange","showError"]),k=Object(d.useState)(!0),S=s()(k,2),N=S[0],P=S[1],C=Object(d.useRef)(),M=Object(f.b)(),R=M.getValidationError,I=M.hideValidationError,D=M.setValidationErrors,x=M.clearValidationError,T=M.getValidationErrorId,A=r||"textinput-"+n;i=i||A;var L=Object(d.useCallback)((function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];C.current.checkValidity()?x(i):D(a()({},i,{message:C.current.validationMessage||Object(p.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}))}),[x,i,D]);Object(d.useEffect)((function(){N&&(v&&C.current.focus(),P(!1))}),[v,N,P]),Object(d.useEffect)((function(){N&&(m&&L(),P(!1))}),[N,P,m,L]),Object(d.useEffect)((function(){return function(){x(i)}}),[x,i]);var z=R(i)||{},U=z.message&&!z.hidden,V=E&&U&&T(i)?T(i):o;return Object(b.createElement)(h.a,c()({className:g()(t,{"has-error":U}),id:A,onBlur:function(){L(!1)},feedback:E&&Object(b.createElement)(O.a,{propertyName:i}),ref:C,onChange:function(e){I(i),_(e)},ariaDescribedBy:V},w))}))},17:function(e,t){!function(){e.exports=this.wp.blocks}()},170:function(e,t,n){"use strict";n.d(t,"b",(function(){return De})),n.d(t,"a",(function(){return xe}));var r=n(8),c=n.n(r),o=n(11),a=n.n(o),i=n(0),s=n(1),u=n(140),l=n(395),b=n(36),p=n(168),d=n(3),m="pristine",g="idle",f="processing",O="complete",j="before_processing",h="after_processing",v=Object(d.getSetting)("checkoutData",{order_id:0,customer_id:0}),_={redirectUrl:"",status:m,hasError:!1,calculatingCount:0,orderId:v.order_id,orderNotes:"",customerId:v.customer_id,shouldCreateAccount:!1,processingResponse:null},y={SET_IDLE:"set_idle",SET_PRISTINE:"set_pristine",SET_REDIRECT_URL:"set_redirect_url",SET_COMPLETE:"set_checkout_complete",SET_BEFORE_PROCESSING:"set_before_processing",SET_AFTER_PROCESSING:"set_after_processing",SET_PROCESSING_RESPONSE:"set_processing_response",SET_PROCESSING:"set_checkout_is_processing",SET_HAS_ERROR:"set_checkout_has_error",SET_NO_ERROR:"set_checkout_no_error",SET_ORDER_ID:"set_checkout_order_id",SET_ORDER_NOTES:"set_checkout_order_notes",INCREMENT_CALCULATING:"increment_calculating",DECREMENT_CALCULATING:"decrement_calculating"},E=y.SET_PRISTINE,w=y.SET_IDLE,k=y.SET_PROCESSING,S=y.SET_BEFORE_PROCESSING,N=y.SET_AFTER_PROCESSING,P=y.SET_PROCESSING_RESPONSE,C=y.SET_REDIRECT_URL,M=y.SET_COMPLETE,R=y.SET_HAS_ERROR,I=y.SET_NO_ERROR,D=y.INCREMENT_CALCULATING,x=y.DECREMENT_CALCULATING,T=y.SET_ORDER_ID,A=y.SET_SHOULD_CREATE_ACCOUNT,L=y.SET_ORDER_NOTES,z=function(){return{type:E}},U=function(){return{type:w}},V=function(){return{type:k}},F=function(e){return{type:C,url:e}},q=function(e){return{type:P,data:e}},B=function(e){return{type:M,data:e}},Y=function(){return{type:S}},H=function(){return{type:N}},G=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?R:I;return{type:t}},Q=function(){return{type:D}},W=function(){return{type:x}},$=function(e){return{type:T,orderId:e}},K=function(e){return{type:A,shouldCreateAccount:e}},Z=function(e){return{type:L,orderNotes:e}};function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee=y.SET_PRISTINE,te=y.SET_IDLE,ne=y.SET_PROCESSING,re=y.SET_BEFORE_PROCESSING,ce=y.SET_AFTER_PROCESSING,oe=y.SET_PROCESSING_RESPONSE,ae=y.SET_REDIRECT_URL,ie=y.SET_COMPLETE,se=y.SET_HAS_ERROR,ue=y.SET_NO_ERROR,le=y.INCREMENT_CALCULATING,be=y.DECREMENT_CALCULATING,pe=y.SET_ORDER_ID,de=y.SET_ORDER_NOTES,me=y.SET_SHOULD_CREATE_ACCOUNT,ge=m,fe=g,Oe=f,je=j,he=h,ve=O,_e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1?arguments[1]:void 0,n=t.url,r=t.type,c=t.orderId,o=t.orderNotes,a=t.shouldCreateAccount,i=t.data,s=e;switch(r){case ee:s=_;break;case te:s=e.status!==fe?J(J({},e),{},{status:fe}):e;break;case ae:s=n!==e.url?J(J({},e),{},{redirectUrl:n}):e;break;case oe:s=J(J({},e),{},{processingResponse:i});break;case ie:s=e.status!==ve?J(J({},e),{},{status:ve,redirectUrl:(null==i?void 0:i.redirectUrl)||e.redirectUrl}):e;break;case ne:s=!1===(s=e.status!==Oe?J(J({},e),{},{status:Oe,hasError:!1}):e).hasError?s:J(J({},s),{},{hasError:!1});break;case re:s=e.status!==je?J(J({},e),{},{status:je,hasError:!1}):e;break;case ce:s=e.status!==he?J(J({},e),{},{status:he}):e;break;case se:s=e.hasError?e:J(J({},e),{},{hasError:!0}),s=e.status===Oe||e.status===je?J(J({},s),{},{status:fe}):s;break;case ue:s=e.hasError?J(J({},e),{},{hasError:!1}):e;break;case le:s=J(J({},e),{},{calculatingCount:e.calculatingCount+1});break;case be:s=J(J({},e),{},{calculatingCount:Math.max(0,e.calculatingCount-1)});break;case pe:s=J(J({},e),{},{orderId:c});break;case me:a!==e.shouldCreateAccount&&(s=J(J({},e),{},{shouldCreateAccount:a}));break;case de:e.orderNotes!==o&&(s=J(J({},e),{},{orderNotes:o}))}return s!==e&&r!==ee&&s.status===ge&&(s.status=fe),s},ye=n(150),Ee=n(396),we="checkout_before_processing",ke="checkout_after_processing_with_success",Se="checkout_after_processing_with_error",Ne=function(e){return{onCheckoutAfterProcessingWithSuccess:Object(Ee.a)(ke,e),onCheckoutAfterProcessingWithError:Object(Ee.a)(Se,e),onCheckoutBeforeProcessing:Object(Ee.a)(we,e)}},Pe=n(397),Ce=n(86);function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie=Object(i.createContext)({isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,orderNotes:"",customerId:0,onSubmit:function(){},onCheckoutAfterProcessingWithSuccess:function(e){},onCheckoutAfterProcessingWithError:function(e){},onCheckoutBeforeProcessing:function(e){},dispatchActions:{resetCheckout:function(){},setRedirectUrl:function(e){},setHasError:function(e){},setAfterProcessing:function(e){},incrementCalculating:function(){},decrementCalculating:function(){},setOrderId:function(e){},setOrderNotes:function(e){}},hasOrder:!1,isCart:!1,shouldCreateAccount:!1,setShouldCreateAccount:function(e){}}),De=function(){return Object(i.useContext)(Ie)},xe=function(e){var t=e.children,n=e.redirectUrl,r=e.isCart,c=void 0!==r&&r;_.redirectUrl=n;var o,d=Object(i.useReducer)(_e,_),m=a()(d,2),v=m[0],y=m[1],E=Object(i.useReducer)(ye.b,{}),w=a()(E,2),k=w[0],S=w[1],N=Object(i.useRef)(k),P=Object(Ce.b)().setValidationErrors,C=Object(u.a)(),M=C.addErrorNotice,R=C.removeNotices,I=v.calculatingCount>0,D=Object(l.a)(),x=D.isSuccessResponse,T=D.isErrorResponse,A=D.isFailResponse,L=D.shouldRetry,X=(o=Object(l.a)().noticeContexts,{checkoutNotices:Object(b.useSelect)((function(e){return e("core/notices").getNotices("wc/checkout")}),[]),expressPaymentNotices:Object(b.useSelect)((function(e){return e("core/notices").getNotices(o.EXPRESS_PAYMENTS)}),[o.EXPRESS_PAYMENTS]),paymentNotices:Object(b.useSelect)((function(e){return e("core/notices").getNotices(o.PAYMENTS)}),[o.PAYMENTS])}),J=X.checkoutNotices,ee=X.paymentNotices,te=X.expressPaymentNotices;Object(i.useEffect)((function(){N.current=k}),[k]);var ne=Object(i.useMemo)((function(){return Ne(S).onCheckoutAfterProcessingWithSuccess}),[S]),re=Object(i.useMemo)((function(){return Ne(S).onCheckoutAfterProcessingWithError}),[S]),ce=Object(i.useMemo)((function(){return Ne(S).onCheckoutBeforeProcessing}),[S]),oe=Object(i.useMemo)((function(){return{resetCheckout:function(){y(z())},setRedirectUrl:function(e){y(F(e))},setHasError:function(e){y(G(e))},incrementCalculating:function(){y(Q())},decrementCalculating:function(){y(W())},setOrderId:function(e){y($(e))},setOrderNotes:function(e){y(Z(e))},setAfterProcessing:function(e){var t,n,r,c;(!e.payment_result&&e.message&&200!==(null==e||null===(t=e.data)||void 0===t?void 0:t.status)&&(e.payment_result=Re(Re({},e.payment_result),{},{message:e.message})),e.payment_result)&&((null===(n=e.payment_result)||void 0===n?void 0:n.redirect_url)&&y(F(e.payment_result.redirect_url)),y(q((r=e.payment_result,c={message:(null==r?void 0:r.message)||"",paymentStatus:r.payment_status,paymentDetails:{}},Array.isArray(r.payment_details)&&r.payment_details.forEach((function(e){var t=e.key,n=e.value;c.paymentDetails[t]=n})),c))));y(H())}}}),[]);Object(i.useEffect)((function(){v.status===j&&(R("error"),Object(Pe.a)(N.current,we,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,n=e.validationErrors;M(t),P(n)})),y(U())):y(V())})))}),[v.status,P,M,R,y]);var ae=Object(p.a)(v.status),ie=Object(p.a)(v.hasError);Object(i.useEffect)((function(){if((v.status!==ae||v.hasError!==ie)&&v.status===h){var e={redirectUrl:v.redirectUrl,orderId:v.orderId,customerId:v.customerId,customerNote:v.customerNote,processingResponse:v.processingResponse};v.hasError?Object(Pe.b)(N.current,Se,e).then((function(t){if(T(t)||A(t)){if(t.message){var n=t.messageContext?{context:t.messageContext}:void 0;M(t.message,n)}L(t)?y(U()):y(B(t))}else{if(!(J.some((function(e){return"error"===e.status}))||te.some((function(e){return"error"===e.status}))||ee.some((function(e){return"error"===e.status})))){var r,c=(null===(r=e.processingResponse)||void 0===r?void 0:r.message)||Object(s.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");M(c,{id:"checkout"})}y(U())}})):Object(Pe.b)(N.current,ke,e).then((function(e){if(x(e))y(B(e));else if(T(e)||A(e)){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;M(e.message,t)}L(e)?y(G(!0)):y(B(e))}else y(B())}))}}),[v.status,v.hasError,v.redirectUrl,v.orderId,v.customerId,v.customerNote,v.processingResponse,ae,ie,oe,M,T,A,x,L,J,te,ee]);var se={onSubmit:Object(i.useCallback)((function(){y(Y())}),[]),isComplete:v.status===O,isIdle:v.status===g,isCalculating:I,isProcessing:v.status===f,isBeforeProcessing:v.status===j,isAfterProcessing:v.status===h,hasError:v.hasError,redirectUrl:v.redirectUrl,onCheckoutAfterProcessingWithSuccess:ne,onCheckoutAfterProcessingWithError:re,onCheckoutBeforeProcessing:ce,dispatchActions:oe,isCart:c,orderId:v.orderId,hasOrder:!!v.orderId,customerId:v.customerId,orderNotes:v.orderNotes,shouldCreateAccount:v.shouldCreateAccount,setShouldCreateAccount:function(e){return y(K(e))}};return Object(i.createElement)(Ie.Provider,{value:se},t)}},177:function(e,t,n){"use strict";var r=n(0),c=n(142),o=n(95),a=function(e){var t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)},i=function(e){return e.replace(/<\/?[a-z][^>]*?>/gi,"")},s=function(e,t){return e.replace(/[\s|\.\,]+$/i,"")+t},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"&hellip;",r=i(e),c=r.split(" ").splice(0,t).join(" ");return Object(o.autop)(s(c,n))},l=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&hellip;",c=i(e),a=c.slice(0,t);if(n)return Object(o.autop)(s(a,r));var u=a.match(/([\s]+)/g),l=u?u.length:0,b=c.slice(0,t+l);return Object(o.autop)(s(b,r))};t.a=function(e){var t=e.source,n=e.maxLength,i=void 0===n?15:n,s=e.countType,b=void 0===s?"words":s,p=e.className,d=void 0===p?"":p,m=Object(r.useMemo)((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"words",r=Object(o.autop)(e),i=Object(c.count)(r,n);if(i<=t)return r;var s=a(r),b=Object(c.count)(s,n);return b<=t?s:"words"===n?u(s,t):l(s,t,"characters_including_spaces"===n)}(t,i,b)}),[t,i,b]);return Object(r.createElement)(r.RawHTML,{className:d},m)}},18:function(e,t){!function(){e.exports=this.wp.url}()},185:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(22),a=n.n(o),i=n(25),s=n.n(i),u=n(19),l=n.n(u),b=n(23),p=n.n(b),d=n(24),m=n.n(d),g=n(12),f=n.n(g),O=n(8),j=n.n(O),h=n(0),v=n(9);n(260);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var c=f()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return m()(this,n)}}t.a=function(e){var t=function(t){p()(r,t);var n=_(r);function r(){var e;return a()(this,r),e=n.call(this),j()(l()(e),"scrollToTopIfNeeded",(function(){var t=e.scrollPointRef.current.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollPointRef.current.scrollIntoView()})),j()(l()(e),"moveFocusToTop",(function(t){var n=e.scrollPointRef.current.parentElement.querySelectorAll(t);n.length&&n[0].focus()})),j()(l()(e),"scrollToTop",(function(t){window&&Number.isFinite(window.innerHeight)&&(e.scrollToTopIfNeeded(),t&&t.focusableSelector&&e.moveFocusToTop(t.focusableSelector))})),e.scrollPointRef=Object(v.createRef)(),e}return s()(r,[{key:"render",value:function(){return Object(h.createElement)(v.Fragment,null,Object(h.createElement)("div",{className:"with-scroll-to-top__scroll-point",ref:this.scrollPointRef,"aria-hidden":!0}),Object(h.createElement)(e,c()({},this.props,{scrollToTop:this.scrollToTop})))}}]),r}(v.Component);return t.displayName="withScrollToTop",t}},189:function(e,t,n){"use strict";var r=n(22),c=n.n(r),o=n(25),a=n.n(o),i=n(19),s=n.n(i),u=n(23),l=n.n(u),b=n(24),p=n.n(b),d=n(12),m=n.n(d),g=n(8),f=n.n(g),O=n(0),j=(n(2),n(9)),h=n(1),v=n(5),_=function(e){var t=e.imageUrl,n=void 0===t?"".concat(v.U,"img/block-error.svg"):t,r=e.header,c=void 0===r?Object(h.__)("Oops!","woo-gutenberg-products-block"):r,o=e.text,a=void 0===o?Object(h.__)("There was an error loading the content.","woo-gutenberg-products-block"):o,i=e.errorMessage,s=e.errorMessagePrefix,u=void 0===s?Object(h.__)("Error:","woo-gutenberg-products-block"):s;return Object(O.createElement)("div",{className:"wc-block-error wc-block-components-error"},n&&Object(O.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:n,alt:""}),Object(O.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},c&&Object(O.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},c),a&&Object(O.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},a),i&&Object(O.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},u?u+" ":"",i)))};n(262);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var c=m()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return p()(this,n)}}var E=function(e){l()(n,e);var t=y(n);function n(){var e;c()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),f()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.header,n=e.imageUrl,r=e.showErrorMessage,c=e.text,o=e.errorMessagePrefix,a=this.state,i=a.errorMessage;return a.hasError?Object(O.createElement)(_,{errorMessage:r?i:null,header:t,imageUrl:n,text:c,errorMessagePrefix:o}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:Object(O.createElement)(j.Fragment,null,Object(O.createElement)("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}}]),n}(j.Component);E.defaultProps={showErrorMessage:!0};t.a=E},191:function(e,t,n){"use strict";n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return j}));var r=n(8),c=n.n(r),o=n(11),a=n.n(o),i=n(0),s=(n(2),n(36)),u=n(303),l=n(944),b=n(140),p=n(212),d=function(){var e=Object(p.b)().isEditor,t=Object(b.a)(),n=t.notices,r=t.removeNotice;if(e)return null;var c=n.filter((function(e){return"snackbar"===e.type}));return Object(i.createElement)(l.a,{notices:c,className:"wc-block-components-notices__snackbar",onRemove:r})};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=Object(i.createContext)({notices:[],createNotice:function(e,t,n){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),O=function(){return Object(i.useContext)(f)},j=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,c=e.createNoticeContainer,o=void 0===c||c,l=e.context,b=void 0===l?"wc/core":l,p=Object(s.useDispatch)("core/notices"),m=p.createNotice,O=p.removeNotice,j=Object(i.useState)(!1),h=a()(j,2),v=h[0],_=h[1],y=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};m(e,t,g(g({},n),{},{context:n.context||b}))}),[m,b]),E=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;O(e,t)}),[O,b]),w=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y("default",e,g(g({},t),{},{type:"snackbar"}))}),[y]),k={notices:Object(s.useSelect)((function(e){return{notices:e("core/notices").getNotices(b)}}),[b]).notices,createNotice:y,createSnackbarNotice:w,removeNotice:E,context:b,setIsSuppressed:_},S=v?null:Object(i.createElement)(u.a,{className:r,notices:k.notices}),N=v?null:Object(i.createElement)(d,null);return Object(i.createElement)(f.Provider,{value:k},o&&S,t,N)}},194:function(e,t){},203:function(e,t){},204:function(e,t){},208:function(e,t,n){"use strict";var r=n(22),c=n.n(r),o=n(25),a=n.n(o),i=n(19),s=n.n(i),u=n(23),l=n.n(u),b=n(24),p=n.n(b),d=n(12),m=n.n(d),g=n(8),f=n.n(g),O=n(0),j=n(1),h=n(9),v=n(303),_=(n(2),n(5));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var c=m()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return p()(this,n)}}var E=function(e){l()(n,e);var t=y(n);function n(){var e;c()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),f()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(n,[{key:"render",value:function(){var e=this.state,t=e.hasError,n=e.errorMessage,r=this.props.isEditor;if(t){var c=Object(j.__)("This site is experiencing difficulties with this payment method. Please contact the owner of the site for assistance.","woo-gutenberg-products-block");(r||_.l)&&(c=n||Object(j.__)("There was an error with this payment method. Please verify it's configured correctly.","woo-gutenberg-products-block"));var o=[{id:"0",content:c,isDismissible:!1,status:"error"}];return Object(O.createElement)(v.a,{notices:o})}return this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{errorMessage:e.message,hasError:!0}}}]),n}(h.Component);E.defaultProps={isEditor:!1},t.a=E},209:function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return y}));var r=n(8),c=n.n(r),o=n(11),a=n.n(o),i=n(0),s=n(3),u=n(6),l=n(33);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=Object(s.getSetting)("checkoutData",{}),m={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},g=Object(u.mapValues)(d.billing_address,(function(e){return Object(l.decodeEntities)(e)})),f=p(p({},m),g),O={billingData:m,setBillingData:function(){return null}};function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=Object(i.createContext)(O),_=function(){return Object(i.useContext)(v)},y=function(e){var t=e.children,n=Object(i.useState)(f),r=a()(n,2),c=r[0],o=r[1],s={billingData:c,setBillingData:Object(i.useCallback)((function(e){o((function(t){return h(h({},t),e)}))}),[])};return Object(i.createElement)(v.Provider,{value:s},t)}},210:function(e,t,n){"use strict";var r=n(0),c=n(7),o=n.n(c),a=n(193),i=n(8),s=n.n(i),u=n(165),l=function(e){var t,n=e.checked,c=e.name,a=e.onChange,i=e.option,l=i.value,b=i.label,p=i.description,d=i.secondaryLabel,m=i.secondaryDescription;return Object(r.createElement)("label",{className:"wc-block-components-radio-control__option",htmlFor:"".concat(c,"-").concat(l)},Object(r.createElement)("input",{id:"".concat(c,"-").concat(l),className:"wc-block-components-radio-control__input",type:"radio",name:c,value:l,onChange:function(e){return a(e.target.value)},checked:n,"aria-describedby":o()((t={},s()(t,"".concat(c,"-").concat(l,"__label"),b),s()(t,"".concat(c,"-").concat(l,"__secondary-label"),d),s()(t,"".concat(c,"-").concat(l,"__description"),p),s()(t,"".concat(c,"-").concat(l,"__secondary-description"),m),t))}),Object(r.createElement)(u.a,{id:"".concat(c,"-").concat(l),label:b,secondaryLabel:d,description:p,secondaryDescription:m}))};n(376),t.a=Object(a.a)((function(e){var t=e.className,n=e.instanceId,c=e.id,a=e.selected,i=e.onChange,s=e.options,u=void 0===s?[]:s,b=c||n;return u.length&&Object(r.createElement)("div",{className:o()("wc-block-components-radio-control",t)},u.map((function(e){return Object(r.createElement)(l,{key:e.value,name:"radio-control-".concat(b),checked:e.value===a,option:e,onChange:function(t){i(t),"function"==typeof e.onChange&&e.onChange(t)}})})))}))},212:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n(0),c=n(36),o=Object(r.createContext)({isEditor:!1,currentPostId:0,previewData:{}}),a=function(){return Object(r.useContext)(o)},i=function(e){var t=e.children,n=e.currentPostId,a=void 0===n?0:n,i=e.previewData,s=void 0===i?{}:i,u={isEditor:!0,currentPostId:Object(c.useSelect)((function(e){return a||e("core/editor").getCurrentPostId()}),[a]),previewData:s};return Object(r.createElement)(o.Provider,{value:u},t)}},233:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),c=n(86),o=(n(2),n(240),function(e){var t=e.errorMessage,n=void 0===t?"":t,o=e.propertyName,a=void 0===o?"":o,i=e.elementId,s=void 0===i?"":i,u=Object(c.b)(),l=u.getValidationError,b=u.getValidationErrorId;if(!n){var p=l(a)||{};if(!p.message||p.hidden)return null;n=p.message}return Object(r.createElement)("div",{className:"wc-block-components-validation-error",role:"alert"},Object(r.createElement)("p",{id:b(s)},n))})},237:function(e,t){},238:function(e,t){},239:function(e,t){},240:function(e,t){},259:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g}));var r=n(8),c=n.n(r),o=n(60),a=n.n(o),i=n(3);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l,b,p={code:i.CURRENCY.code,symbol:i.CURRENCY.symbol,thousandSeparator:i.CURRENCY.thousandSeparator,decimalSeparator:i.CURRENCY.decimalSeparator,minorUnit:i.CURRENCY.precision,prefix:(l=i.CURRENCY.symbol,b=i.CURRENCY.symbolPosition,{left:l,left_space:" "+l,right:"",right_space:""}[b]||""),suffix:function(e,t){return{left:"",left_space:"",right:e,right_space:" "+e}[t]||""}(i.CURRENCY.symbol,i.CURRENCY.symbolPosition)},d=function(e){if(!e||"object"!==a()(e))return p;var t=e.currency_code,n=e.currency_symbol,r=e.currency_thousand_separator,c=e.currency_decimal_separator,o=e.currency_minor_unit,i=e.currency_prefix,s=e.currency_suffix;return{code:t||"USD",symbol:n||"$",thousandSeparator:"string"==typeof r?r:",",decimalSeparator:"string"==typeof c?c:".",minorUnit:Number.isFinite(o)?o:2,prefix:"string"==typeof i?i:"$",suffix:"string"==typeof s?s:""}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(u({},p),e)},g=function(e,t){if(""===e||void 0===e)return"";var n=parseInt(e,10);if(!Number.isFinite(n))return"";var r=m(t),c=n/Math.pow(10,r.minorUnit),o=r.prefix+c+r.suffix,a=document.createElement("textarea");return a.innerHTML=o,a.value}},26:function(e,t){!function(){e.exports=this.wp.compose}()},260:function(e,t){},262:function(e,t){},263:function(e,t){},264:function(e,t){},265:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(11),a=n.n(o),i=n(27),s=n.n(i),u=n(0),l=n(169),b=n(58),p=n(310);n(2);t.a=function(e){var t=e.onChange,n=e.value,r=void 0===n?"":n,o=s()(e,["onChange","value"]),i=Object(u.useState)(r),d=a()(i,2),m=d[0],g=d[1],f=Object(p.a)((function(e){t(e)}),400),O=a()(f,1)[0],j=Object(b.a)(O);return Object(u.useEffect)((function(){j(m)}),[j,m]),Object(u.createElement)(l.a,c()({onChange:g,value:m},o))}},266:function(e,t){},268:function(e,t){!function(){e.exports=this.wp.deprecated}()},269:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(27),a=n.n(o),i=n(0),s=n(57),u=Object(i.createElement)((function(e){var t=e.className,n=e.size,r=void 0===n?20:n,o=a()(e,["className","size"]);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:r,height:r},o),Object(i.createElement)("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))}),null),l=n(284);t.a=function(e){let t;switch(e.icon){case"arrow-down-alt2":t=u;break;case"no-alt":t=l.a}return t?Object(i.cloneElement)(t,{size:e.size||20,className:e.className}):null}},273:function(e,t,n){"use strict";var r=n(51),c=n.n(r),o=n(0),a=n(1),i=n(4),s=n(36),u=n(40);t.a=function(e){var t=e.setPageId,n=e.pageId,r=e.labels,l=Object(s.useSelect)((function(e){return e("core").getEntityRecords("postType","page",{status:"publish",orderby:"title",order:"asc",per_page:100})}),[])||null;return l?Object(o.createElement)(i.PanelBody,{title:r.title},Object(o.createElement)(i.SelectControl,{label:Object(a.__)("Link to","woo-gutenberg-products-block"),value:n,options:[{label:r.default,value:0}].concat(c()(l.map((function(e){return{label:Object(u.a)(e,l),value:parseInt(e.id,10)}})))),onChange:function(e){return t(parseInt(e,10))}})):null}},274:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),c=n(1),o=(n(2),n(61)),a=n(305),i=n(167),s=(n(364),function(e){var t=e.text,n=e.url,s=void 0===n?"https://ideas.woocommerce.com/forums/133476-woocommerce?category_id=384565":n;return Object(r.createElement)("div",{className:"wc-block-feedback-prompt"},Object(r.createElement)(o.a,{srcElement:a.a}),Object(r.createElement)("h2",{className:"wc-block-feedback-prompt__title"},Object(c.__)("Feedback?","woo-gutenberg-products-block")),Object(r.createElement)("p",{className:"wc-block-feedback-prompt__text"},t),Object(r.createElement)("a",{href:s,className:"wc-block-feedback-prompt__link",rel:"noreferrer noopener",target:"_blank"},Object(c.__)("Give us your feedback.","woo-gutenberg-products-block"),Object(r.createElement)(o.a,{srcElement:i.a,size:16})))}),u=function(){return Object(r.createElement)(s,{text:Object(c.__)("We are currently working on improving our cart and checkout blocks to provide merchants with the tools and customization options they need.","woo-gutenberg-products-block"),url:"https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/new?template=--cart-checkout-feedback.md"})}},275:function(e,t,n){"use strict";var r=n(8),c=n.n(r),o=n(0),a=n(388),i=n(387),s=n(212),u=n(281),l=n(208);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(){var e=Object(s.b)().isEditor,t=Object(u.b)(),n=t.setActivePaymentMethod,r=t.activePaymentMethod,c=t.paymentMethodData,b=t.setPaymentStatus,d=Object(a.a)(),m=Object(i.a)().paymentMethods,g=Object(o.useRef)(r),f=Object(o.useRef)(c),O=Object(o.useCallback)((function(e){return function(){g.current=r,f.current=c,b().started(),n(e)}}),[r,c,n,b]),j=Object(o.useCallback)((function(){n(g.current),f.current.isSavedToken&&b().success(f.current)}),[n,b]),h=Object.keys(m),v=h.length>0?h.map((function(t){var n=e?m[t].edit:m[t].content;return Object(o.isValidElement)(n)?Object(o.createElement)("li",{key:t,id:"express-payment-method-".concat(t)},Object(o.cloneElement)(n,p(p({},d),{},{onClick:O(t),onClose:j}))):null})):Object(o.createElement)("li",{key:"noneRegistered"},"No registered Payment Methods");return Object(o.createElement)(l.a,{isEditor:e},Object(o.createElement)("ul",{className:"wc-block-components-express-payment__event-buttons"},v))}},277:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(27),a=n.n(o),i=n(0),s=(n(2),n(7)),u=n.n(s),l=n(1),b=n(61),p=n(284),d=(n(203),function(e){var t=e.text,n=e.screenReaderText,r=void 0===n?"":n,o=e.element,s=void 0===o?"li":o,l=e.className,b=void 0===l?"":l,p=e.radius,d=void 0===p?"small":p,m=e.children,g=void 0===m?null:m,f=a()(e,["text","screenReaderText","element","className","radius","children"]),O=s,j=u()(b,"wc-block-components-chip","wc-block-components-chip--radius-"+d),h=Boolean(r&&r!==t);return Object(i.createElement)(O,c()({className:j},f),Object(i.createElement)("span",{"aria-hidden":h,className:"wc-block-components-chip__text"},t),h&&Object(i.createElement)("span",{className:"screen-reader-text"},r),g)});t.a=function(e){var t=e.ariaLabel,n=void 0===t?"":t,r=e.className,o=void 0===r?"":r,s=e.disabled,m=void 0!==s&&s,g=e.onRemove,f=void 0===g?function(){}:g,O=e.removeOnAnyClick,j=void 0!==O&&O,h=e.text,v=e.screenReaderText,_=void 0===v?"":v,y=a()(e,["ariaLabel","className","disabled","onRemove","removeOnAnyClick","text","screenReaderText"]),E=j?"span":"button";if(!n){var w=_&&"string"==typeof _?_:h;n="string"!=typeof w?Object(l.__)("Remove","woo-gutenberg-products-block"):Object(l.sprintf)(Object(l.__)('Remove "%s"',"woo-gutenberg-products-block"),w)}var k={"aria-label":n,disabled:m,onClick:f,onKeyDown:function(e){"Backspace"!==e.key&&"Delete"!==e.key||f()}},S=j?k:{},N=j?{"aria-hidden":!0}:k;return Object(i.createElement)(d,c()({},y,S,{className:u()(o,"is-removable"),element:j?"button":y.element,screenReaderText:_,text:h}),Object(i.createElement)(E,c()({className:"wc-block-components-chip__remove"},N),Object(i.createElement)(b.a,{className:"wc-block-components-chip__remove-icon",srcElement:p.a,size:16})))}},281:function(e,t,n){"use strict";n.d(t,"b",(function(){return he})),n.d(t,"a",(function(){return ve}));var r=n(51),c=n.n(r),o=n(11),a=n.n(o),i=n(0),s=n(3),u=n(395),l=n(140),b=n(212),p=n(8),d=n.n(p);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={PRISTINE:"pristine",STARTED:"started",PROCESSING:"processing",ERROR:"has_error",FAILED:"failed",SUCCESS:"success",COMPLETE:"complete"},O=g(g({},f),{},{SET_REGISTERED_PAYMENT_METHODS:"set_registered_payment_methods",SET_REGISTERED_EXPRESS_PAYMENT_METHODS:"set_registered_express_payment_methods",SET_SHOULD_SAVE_PAYMENT_METHOD:"set_should_save_payment_method"}),j={currentStatus:f.PRISTINE,shouldSavePaymentMethod:!1,paymentMethodData:{payment_method:""},hasSavedToken:!1,errorMessage:"",paymentMethods:{},expressPaymentMethods:{}},h={setPaymentStatus:function(){return{started:function(){},processing:function(){},completed:function(){},error:function(e){},failed:function(e,t){},success:function(e,t){}}},currentStatus:{isPristine:!0,isStarted:!1,isProcessing:!1,isFinished:!1,hasError:!1,hasFailed:!1,isSuccessful:!1},paymentStatuses:f,paymentMethodData:{},errorMessage:"",activePaymentMethod:"",setActivePaymentMethod:function(){},customerPaymentMethods:{},paymentMethods:{},expressPaymentMethods:{},paymentMethodsInitialized:!1,expressPaymentMethodsInitialized:!1,onPaymentProcessing:function(){},onPaymentSuccess:function(){},onPaymentFail:function(){}},v=n(60),_=n.n(v);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=O.STARTED,k=O.ERROR,S=O.FAILED,N=O.SUCCESS,P=O.PROCESSING,C=O.PRISTINE,M=O.COMPLETE,R=O.SET_REGISTERED_PAYMENT_METHODS,I=O.SET_REGISTERED_EXPRESS_PAYMENT_METHODS,D=O.SET_SHOULD_SAVE_PAYMENT_METHOD,x=function(e){return!("object"!==_()(e)||!e.isSavedToken)},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.paymentMethodData,c=t.shouldSavePaymentMethod,o=t.errorMessage,a=t.paymentMethods;switch(n){case w:return e.currentStatus!==w?E(E({},e),{},{currentStatus:w}):e;case k:return e.currentStatus!==k?E(E({},e),{},{currentStatus:k,errorMessage:o||e.errorMessage}):e;case S:return e.currentStatus!==S?E(E({},e),{},{currentStatus:S,paymentMethodData:r||e.paymentMethodData,errorMessage:o||e.errorMessage}):e;case N:return e.currentStatus!==N?E(E({},e),{},{currentStatus:N,paymentMethodData:r||e.paymentMethodData,hasSavedToken:x(r)}):e;case P:return e.currentStatus!==P?E(E({},e),{},{currentStatus:P,errorMessage:""}):e;case M:return e.currentStatus!==M?E(E({},e),{},{currentStatus:M}):e;case C:return E(E({},j),{},{currentStatus:C,paymentMethods:E({},e.paymentMethods),expressPaymentMethods:E({},e.expressPaymentMethods),shouldSavePaymentMethod:e.shouldSavePaymentMethod});case R:return E(E({},e),{},{paymentMethods:a});case I:return E(E({},e),{},{expressPaymentMethods:E(E({},e.expressPaymentMethods),a)});case D:return E(E({},e),{},{shouldSavePaymentMethod:c})}return e},A=O.ERROR,L=O.FAILED,z=O.SUCCESS,U=O.SET_REGISTERED_PAYMENT_METHODS,V=O.SET_REGISTERED_EXPRESS_PAYMENT_METHODS,F=O.SET_SHOULD_SAVE_PAYMENT_METHOD,q=function(e){return{type:e}},B=function(e){var t=e.errorMessage,n=e.paymentMethodData;return{type:L,errorMessage:t,paymentMethodData:n}},Y=function(e){var t=e.paymentMethodData;return{type:z,paymentMethodData:t}},H=n(15),G=n.n(H),Q=n(37),W=n.n(Q),$=n(1),K=n(56),Z=n(156),X=n(58),J=n(134),ee=n(5);function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=function(e,t,n,r){var c=Object(i.useState)(!1),o=a()(c,2),s=o[0],u=o[1],p=Object(b.b)().isEditor,m=Object(Z.b)(),g=m.selectedRates,f=m.shippingAddress,O=Object(X.a)(g),j=Object(X.a)(n),h=Object(J.a)(),v=h.cartTotals,_=h.cartNeedsShipping,y=Object(i.useRef)({cartTotals:v,cartNeedsShipping:_,shippingAddress:f,selectedShippingMethods:O}),E=Object(l.a)().addErrorNotice;Object(i.useEffect)((function(){y.current={cartTotals:v,cartNeedsShipping:_,shippingAddress:f,selectedShippingMethods:O}}),[v,_,f,O]);var w=Object(i.useCallback)(W()(G.a.mark((function n(){var c,o,a,i,s,l,b;return G.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:c={},o=function(e){c=ne(ne({},c),{},d()({},e.name,e))},a=0;case 3:if(!(a<j.length)){n.next=24;break}if(i=j[a],s=t[i]){n.next=8;break}return n.abrupt("continue",21);case 8:return n.prev=8,n.next=11,Promise.resolve(s.canMakePayment(y.current));case 11:if(!(l=n.sent)){n.next=16;break}if(!l.error){n.next=15;break}throw new Error(l.error.message);case 15:o(s);case 16:n.next=21;break;case 18:n.prev=18,n.t0=n.catch(8),(ee.l||p)&&(b=Object($.sprintf)(Object($.__)("There was an error registering the payment method with id '%s': ","woo-gutenberg-products-block"),s.paymentMethodId),E("".concat(b," ").concat(n.t0),{context:r,id:"wc-".concat(s.paymentMethodId,"-registration-error")}));case 21:a++,n.next=3;break;case 24:e(c),u(!0);case 26:case"end":return n.stop()}}),n,null,[[8,18]])}))),[E,e,p,r,j,t]);return Object(i.useEffect)((function(){w()}),[w,O]),s},ce=n(209),oe=n(170),ae=n(150),ie=n(396),se="payment_processing",ue=n(397),le=n(86),be=f.STARTED,pe=f.PROCESSING,de=f.COMPLETE,me=f.PRISTINE,ge=f.ERROR,fe=f.FAILED,Oe=f.SUCCESS,je=Object(i.createContext)(h),he=function(){return Object(i.useContext)(je)},ve=function(e){var t=e.children,n=Object(ce.b)().setBillingData,r=Object(oe.b)(),o=r.isProcessing,p=r.isIdle,d=r.isCalculating,m=r.hasError,g=Object(u.a)(),O=g.isSuccessResponse,h=g.isErrorResponse,v=g.isFailResponse,_=g.noticeContexts,y=Object(i.useState)(""),E=a()(y,2),w=E[0],k=E[1],S=Object(i.useReducer)(ae.b,{}),N=a()(S,2),P=N[0],C=N[1],M=Object(i.useRef)(P),R=Object(b.b)(),I=R.isEditor,D=R.previewData,x=Object(i.useReducer)(T,j),L=a()(x,2),z=L[0],H=L[1],G=Object(i.useCallback)((function(e){k(e),H(q(me))}),[k,H]),Q=Object(i.useCallback)((function(e){H(function(e){return{type:U,paymentMethods:e}}(e))}),[H]),W=Object(i.useCallback)((function(e){H(function(e){return{type:V,paymentMethods:e}}(e))}),[H]),$=function(e){var t=Object(K.getPaymentMethods)(),n=Object(u.a)().noticeContexts,r=new Set([].concat(c()(ee.F),c()(Object.keys(t))));return re(e,t,Array.from(r),n.PAYMENTS)}(Q),X=function(e){var t=Object(K.getExpressPaymentMethods)(),n=Object(u.a)().noticeContexts;return re(e,t,Object.keys(t),n.EXPRESS_PAYMENTS)}(W),J=Object(le.b)().setValidationErrors,te=Object(l.a)(),ne=te.addErrorNotice,he=te.removeNotice,ve=Object(Z.b)().setShippingAddress,_e=Object(i.useCallback)((function(e){H({type:F,shouldSavePaymentMethod:e})}),[H]),ye=Object(i.useMemo)((function(){return I&&D.previewSavedPaymentMethods?D.previewSavedPaymentMethods:$&&0!==z.paymentMethods.length?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Object(s.getSetting)("customerPaymentMethods",{}),n=Object.keys(t);if(0===n.length)return{};var r={};return n.forEach((function(n){r[n]=t[n].filter((function(t){return Object.keys(e).includes(t.method.gateway)}))})),r}(z.paymentMethods):{}}),[I,D.previewSavedPaymentMethods,$,z.paymentMethods]),Ee=Object(i.useCallback)((function(e){e?ne(e,{context:_.EXPRESS_PAYMENTS,id:"wc-express-payment-error"}):he("wc-express-payment-error",_.EXPRESS_PAYMENTS)}),[ne,_.EXPRESS_PAYMENTS,he]);Object(i.useEffect)((function(){M.current=P}),[P]);var we=Object(i.useMemo)((function(){return(e=C,{onPaymentProcessing:Object(ie.a)(se,e)}).onPaymentProcessing;var e}),[C]),ke=Object(i.useMemo)((function(){return{isPristine:z.currentStatus===me,isStarted:z.currentStatus===be,isProcessing:z.currentStatus===pe,isFinished:[ge,fe,Oe].includes(z.currentStatus),hasError:z.currentStatus===ge,hasFailed:z.currentStatus===fe,isSuccessful:z.currentStatus===Oe}}),[z.currentStatus]),Se=Object(i.useCallback)((function(){return{started:function(){return H(q(be))},processing:function(){return H(q(pe))},completed:function(){return H(q(de))},error:function(e){return H(function(e){return{type:A,errorMessage:e}}(e))},failed:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;r&&n(r),H(B({errorMessage:e,paymentMethodData:t}))},success:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t&&n(t),null!==r&&(null==r?void 0:r.address)&&ve(r.address),H(Y({paymentMethodData:e}))}}}),[H,n,ve]);Object(i.useEffect)((function(){!o||m||d||ke.isFinished||Se().processing()}),[o,m,d,ke.isFinished,Se]),Object(i.useEffect)((function(){p&&!ke.isSuccessful&&H(q(me))}),[p,ke.isSuccessful]),Object(i.useEffect)((function(){m&&ke.isSuccessful&&!z.hasSavedToken&&H(q(me))}),[m,ke.isSuccessful,z.hasSavedToken]),Object(i.useEffect)((function(){var e=Object.keys(z.paymentMethods),t=[].concat(c()(e),c()(Object.keys(z.expressPaymentMethods)));$&&e.length&&k((function(e){return e&&t.includes(e)?e:(H(q(me)),Object.keys(z.paymentMethods)[0])}))}),[$,z.paymentMethods,z.expressPaymentMethods,k]),Object(i.useEffect)((function(){ke.isProcessing&&(he("wc-payment-error",_.PAYMENTS),Object(ue.b)(M.current,se,{}).then((function(e){var t,n,r;if(O(e))Se().success(null==e||null===(t=e.meta)||void 0===t?void 0:t.paymentMethodData,null==e||null===(n=e.meta)||void 0===n?void 0:n.billingData,null==e||null===(r=e.meta)||void 0===r?void 0:r.shippingData);else if(v(e)){var c,o;e.message&&e.message.length&&ne(e.message,{id:"wc-payment-error",isDismissible:!1,context:(null==e?void 0:e.messageContext)||_.PAYMENTS}),Se().failed(null==e?void 0:e.message,null==e||null===(c=e.meta)||void 0===c?void 0:c.paymentMethodData,null==e||null===(o=e.meta)||void 0===o?void 0:o.billingData)}else h(e)?(e.message&&e.message.length&&ne(e.message,{id:"wc-payment-error",isDismissible:!1,context:(null==e?void 0:e.messageContext)||_.PAYMENTS}),Se().error(e.message),J(null==e?void 0:e.validationErrors)):Se().success()})))}),[ke.isProcessing,J,Se,he,_.PAYMENTS,O,v,h,ne]);var Ne={setPaymentStatus:Se,currentStatus:ke,paymentStatuses:f,paymentMethodData:z.paymentMethodData,errorMessage:z.errorMessage,activePaymentMethod:w,setActivePaymentMethod:G,onPaymentProcessing:we,customerPaymentMethods:ye,paymentMethods:z.paymentMethods,expressPaymentMethods:z.expressPaymentMethods,paymentMethodsInitialized:$,expressPaymentMethodsInitialized:X,setExpressPaymentError:Ee,shouldSavePayment:z.shouldSavePaymentMethod,setShouldSavePayment:_e};return Object(i.createElement)(je.Provider,{value:Ne},t)}},284:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(27),a=n.n(o),i=n(0),s=n(57),u=Object(i.createElement)((function(e){var t=e.className,n=e.size,r=a()(e,["className","size"]);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:n,height:n},r),Object(i.createElement)("path",{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))}),null);t.a=u},3:function(e,t){!function(){e.exports=this.wc.wcSettings}()},303:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(0),a=(n(2),n(7)),i=n.n(a),s=n(390),u=n(191),l=(n(238),function(e){var t=e.status;switch(void 0===t?"default":t){case"error":return"woocommerce-error";case"success":return"woocommerce-success";case"info":case"warning":return"woocommerce-info"}return""});t.a=function(e){var t=e.className,n=e.notices,r=Object(u.b)().removeNotice,a=n.filter((function(e){return"snackbar"!==e.type}));if(!a.length)return null;var b=i()(t,"wc-block-components-notices");return Object(o.createElement)("div",{className:b},a.map((function(e){return Object(o.createElement)(s.a,c()({key:"store-notice-"+e.id},e,{className:i()("wc-block-components-notices__notice","woocommerce-message",l(e)),onRemove:function(){e.isDismissible&&r(e.id)}}),e.content)})))}},305:function(e,t,n){"use strict";var r=n(0),c=n(57),o=Object(r.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"}));t.a=o},33:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},36:function(e,t){!function(){e.exports=this.wp.data}()},362:function(e,t,n){"use strict";var r=n(0),c=n(57),o=Object(r.createElement)(c.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4V6h16v12z"}));t.a=o},364:function(e,t){},365:function(e,t){},366:function(e,t){},367:function(e,t){},368:function(e,t){},369:function(e,t){},370:function(e,t){},371:function(e,t){},372:function(e,t){},373:function(e,t){},374:function(e,t){},375:function(e,t){},376:function(e,t){},377:function(e,t){},378:function(e,t){},379:function(e,t){},380:function(e,t){},381:function(e,t){},382:function(e,t){},383:function(e,t){},387:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(281),c=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object(r.b)(),n=t.paymentMethods,c=t.expressPaymentMethods,o=t.paymentMethodsInitialized,a=t.expressPaymentMethodsInitialized;return e?{paymentMethods:c,isInitialized:a}:{paymentMethods:n,isInitialized:o}},o=function(){return c()},a=function(){return c(!0)}},388:function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var r=n(170),c=n(281),o=n(156),a=n(209),i=n(1),s=n(259),u=n(0),l=n(5),b=n(233),p=n(395),d=n(917),m=n(7),g=n.n(m),f=n(57),O=Object(u.createElement)(f.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),Object(u.createElement)("path",{d:"M4 10h3v7H4zM10.5 10h3v7h-3zM2 19h20v3H2zM17 10h3v7h-3zM12 1L2 6v2h20V6z"})),j=n(362),h=n(882),v=Object(u.createElement)(f.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)("g",{fill:"none",fillRule:"evenodd"},Object(u.createElement)("path",{d:"M0 0h24v24H0z"}),Object(u.createElement)("path",{fill:"#000",fillRule:"nonzero",d:"M17.3 8v1c1 .2 1.4.9 1.4 1.7h-1c0-.6-.3-1-1-1-.8 0-1.3.4-1.3.9 0 .4.3.6 1.4 1 1 .2 2 .6 2 1.9 0 .9-.6 1.4-1.5 1.5v1H16v-1c-.9-.1-1.6-.7-1.7-1.7h1c0 .6.4 1 1.3 1 1 0 1.2-.5 1.2-.8 0-.4-.2-.8-1.3-1.1-1.3-.3-2.1-.8-2.1-1.8 0-.9.7-1.5 1.6-1.6V8h1.3zM12 10v1H6v-1h6zm2-2v1H6V8h8zM2 4v16h20V4H2zm2 14V6h16v12H4z"}),Object(u.createElement)("path",{stroke:"#000",strokeLinecap:"round",d:"M6 16c2.6 0 3.9-3 1.7-3-2 0-1 3 1.5 3 1 0 1-.8 2.8-.8"}))),_=n(61),y=(n(383),{bank:O,bill:j.a,card:h.a,checkPayment:v}),E=function(e){var t=e.icon,n=void 0===t?"":t,r=e.text,c=void 0===r?"":r,o=!!n,a=o&&"string"==typeof n&&y[n],i=g()("wc-block-components-payment-method-label",{"wc-block-components-payment-method-label--with-icon":o});return Object(u.createElement)("span",{className:i},a?Object(u.createElement)(_.a,{srcElement:y[n]}):n,c)},w=n(134),k=n(866),S=function(e,t){var n=[],r=function(t,n){var r=parseInt(e[n],10);return{label:t,value:r,valueWithTax:r+parseInt(e[n+"_tax"],10)}};return n.push(r(Object(i.__)("Subtotal:","woo-gutenberg-products-block"),"total_items")),n.push(r(Object(i.__)("Fees:","woo-gutenberg-products-block"),"total_fees")),n.push(r(Object(i.__)("Discount:","woo-gutenberg-products-block"),"total_discount")),n.push({label:Object(i.__)("Taxes:","woo-gutenberg-products-block"),value:parseInt(e.total_tax,10),valueWithTax:parseInt(e.total_tax,10)}),t&&n.push(r(Object(i.__)("Shipping:","woo-gutenberg-products-block"),"total_shipping")),n},N=function(){var e=Object(r.b)(),t=e.isCalculating,n=e.isComplete,m=e.isIdle,g=e.isProcessing,f=e.onCheckoutAfterProcessingWithSuccess,O=e.onCheckoutAfterProcessingWithError,j=e.onCheckoutBeforeProcessing,h=e.onSubmit,v=e.customerId,_=Object(c.b)(),y=_.currentStatus,N=_.activePaymentMethod,P=_.onPaymentProcessing,C=_.setExpressPaymentError,M=Object(o.b)(),R=M.shippingErrorStatus,I=M.shippingErrorTypes,D=M.shippingRates,x=M.shippingRatesLoading,T=M.selectedRates,A=M.setSelectedRates,L=M.isSelectingRate,z=M.shippingAddress,U=M.setShippingAddress,V=M.onShippingRateSuccess,F=M.onShippingRateFail,q=M.onShippingRateSelectSuccess,B=M.onShippingRateSelectFail,Y=M.needsShipping,H=Object(a.b)().billingData,G=Object(w.a)().cartTotals,Q=Object(k.a)().appliedCoupons,W=Object(p.a)(),$=W.noticeContexts,K=W.responseTypes,Z=Object(u.useRef)(S(G,Y)),X=Object(u.useRef)({label:Object(i.__)("Total","woo-gutenberg-products-block"),value:parseInt(G.total_price,10)});return Object(u.useEffect)((function(){Z.current=S(G,Y),X.current={label:Object(i.__)("Total","woo-gutenberg-products-block"),value:parseInt(G.total_price,10)}}),[G,Y]),{checkoutStatus:{isCalculating:t,isComplete:n,isIdle:m,isProcessing:g},paymentStatus:y,shippingStatus:{shippingErrorStatus:R,shippingErrorTypes:I},shippingData:{shippingRates:D,shippingRatesLoading:x,selectedRates:T,setSelectedRates:A,isSelectingRate:L,shippingAddress:z,setShippingAddress:U,needsShipping:Y},billing:{billingData:H,cartTotal:X.current,currency:Object(s.c)(G),cartTotalItems:Z.current,displayPricesIncludingTax:l.p,appliedCoupons:Q,customerId:v},eventRegistration:{onCheckoutAfterProcessingWithSuccess:f,onCheckoutAfterProcessingWithError:O,onCheckoutBeforeProcessing:j,onShippingRateSuccess:V,onShippingRateFail:F,onShippingRateSelectSuccess:q,onShippingRateSelectFail:B,onPaymentProcessing:P},components:{ValidationInputError:b.a,PaymentMethodIcons:d.a,PaymentMethodLabel:E},emitResponse:{noticeContexts:$,responseTypes:K},onSubmit:h,activePaymentMethod:N,setExpressPaymentError:C}}},389:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return b}));var r=n(11),c=n.n(r),o=n(0),a=(n(2),n(938)),i=n(7),s=n.n(i),u=Object(o.createContext)({hasContainerWidth:!1,containerClassName:"",isMobile:!1,isSmall:!1,isMedium:!1,isLarge:!1}),l=function(){return Object(o.useContext)(u)},b=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,i=function(){var e=Object(a.a)(),t=c()(e,2),n=t[0],r=t[1].width,o="";return r>700?o="is-large":r>520?o="is-medium":r>400?o="is-small":r&&(o="is-mobile"),[n,o]}(),l=c()(i,2),b=l[0],p=l[1],d={hasContainerWidth:""!==p,containerClassName:p,isMobile:"is-mobile"===p,isSmall:"is-small"===p,isMedium:"is-medium"===p,isLarge:"is-large"===p};return Object(o.createElement)(u.Provider,{value:d},Object(o.createElement)("div",{className:s()(r,p)},b,t))}},395:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=function(e,t){return!!e.type&&e.type===t},c={SUCCESS:"success",FAIL:"failure",ERROR:"error"},o={PAYMENTS:"wc/payment-area",EXPRESS_PAYMENTS:"wc/express-payment-area"},a=function(e){return r(e,c.SUCCESS)},i=function(e){return r(e,c.ERROR)},s=function(e){return r(e,c.FAIL)},u=function(e){return void 0===e.retry||!0===e.retry},l=function(){return{responseTypes:c,noticeContexts:o,shouldRetry:u,isSuccessResponse:a,isErrorResponse:i,isFailResponse:s}}},396:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(150),c=function(e,t){return function(n){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,o=r.a.addEventCallback(e,n,c);return t(o),function(){t(r.a.removeEventCallback(e,o.id))}}}},397:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r=n(15),c=n.n(r),o=n(60),a=n.n(o),i=n(37),s=n.n(i);function u(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,c=function(){};return{s:c,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=function(e,t){return e[t]?Array.from(e[t].values()).sort((function(e,t){return e.priority-t.priority})):[]},p=function(){var e=s()(c.a.mark((function e(t,n,r){var o,i,s,l,p,d;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=b(t,n),i=[],s=u(o),e.prev=3,s.s();case 5:if((l=s.n()).done){e.next=19;break}return p=l.value,e.prev=7,e.next=10,Promise.resolve(p.callback(r));case 10:d=e.sent,"object"===a()(d)&&i.push(d),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),console.error(e.t0);case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(3),s.e(e.t1);case 24:return e.prev=24,s.f(),e.finish(24);case 27:return e.abrupt("return",!i.length||i);case 28:case"end":return e.stop()}}),e,null,[[3,21,24,27],[7,14]])})));return function(t,n,r){return e.apply(this,arguments)}}(),d=function(){var e=s()(c.a.mark((function e(t,n,r){var o,i,s,l,p;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=b(t,n),i=u(o),e.prev=2,i.s();case 4:if((s=i.n()).done){e.next=23;break}return l=s.value,e.prev=6,e.next=9,Promise.resolve(l.callback(r));case 9:if(p=e.sent,"object"===a()(p)){e.next=12;break}return e.abrupt("continue",21);case 12:if(void 0!==p.type){e.next=14;break}throw new Error("If you want to abort event emitter processing, your observer must return an object with a type property");case 14:return e.abrupt("return",p);case 17:return e.prev=17,e.t0=e.catch(6),console.error(e.t0),e.abrupt("return",{type:"error"});case 21:e.next=4;break;case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(2),i.e(e.t1);case 28:return e.prev=28,i.f(),e.finish(28);case 31:return e.abrupt("return",!0);case 32:case"end":return e.stop()}}),e,null,[[2,25,28,31],[6,17]])})));return function(t,n,r){return e.apply(this,arguments)}}()},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t,n){"use strict";n.d(t,"h",(function(){return p})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"i",(function(){return g})),n.d(t,"f",(function(){return f})),n.d(t,"c",(function(){return O})),n.d(t,"d",(function(){return j})),n.d(t,"g",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(8),c=n.n(r),o=n(18),a=n(13),i=n.n(a),s=n(6),u=n(5);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e){var t=e.selected,n=void 0===t?[]:t,r=e.search,c=void 0===r?"":r,a=e.queryArgs,l=function(e){var t=e.selected,n=void 0===t?[]:t,r=e.search,c=void 0===r?"":r,a=e.queryArgs,i=void 0===a?[]:a,s={per_page:u.v?100:0,catalog_visibility:"any",search:c,orderby:"title",order:"asc"},l=[Object(o.addQueryArgs)("/wc/store/products",b(b({},s),i))];return u.v&&n.length&&l.push(Object(o.addQueryArgs)("/wc/store/products",{catalog_visibility:"any",include:n})),l}({selected:n,search:c,queryArgs:void 0===a?[]:a});return Promise.all(l.map((function(e){return i()({path:e})}))).then((function(e){return Object(s.uniqBy)(Object(s.flatten)(e),"id").map((function(e){return b(b({},e),{},{parent:0})}))})).catch((function(e){throw e}))},d=function(e){return i()({path:"/wc/store/products/".concat(e)})},m=function(){return i()({path:"wc/store/products/attributes"})},g=function(e){return i()({path:"wc/store/products/attributes/".concat(e,"/terms")})},f=function(e){var t=e.selected,n=function(e){var t=e.selected,n=void 0===t?[]:t,r=e.search,c=[Object(o.addQueryArgs)("wc/store/products/tags",{per_page:u.y?100:0,orderby:u.y?"count":"name",order:u.y?"desc":"asc",search:r})];return u.y&&n.length&&c.push(Object(o.addQueryArgs)("wc/store/products/tags",{include:n})),c}({selected:void 0===t?[]:t,search:e.search});return Promise.all(n.map((function(e){return i()({path:e})}))).then((function(e){return Object(s.uniqBy)(Object(s.flatten)(e),"id")}))},O=function(e){return i()({path:Object(o.addQueryArgs)("wc/store/products/categories",b({per_page:0},e))})},j=function(e){return i()({path:"wc/store/products/categories/".concat(e)})},h=function(e){return i()({path:Object(o.addQueryArgs)("wc/store/products",{per_page:0,type:"variation",parent:e})})},v=function(e,t){if(!e.title.raw)return e.slug;var n=1===t.filter((function(t){return t.title.raw===e.title.raw})).length;return e.title.raw+(n?"":" - ".concat(e.slug))}},41:function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},43:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},48:function(e,t,n){"use strict";var r=n(8),c=n.n(r),o=n(0),a=(n(2),n(9)),i=n(7),s=n.n(i);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t,n=e.label,r=e.screenReaderLabel,c=e.wrapperElement,i=e.wrapperProps,u=void 0===i?{}:i,b=null!=n,p=null!=r;return!b&&p?(t=c||"span",u=l(l({},u),{},{className:s()(u.className,"screen-reader-text")}),Object(o.createElement)(t,u,r)):(t=c||a.Fragment,b&&p&&n!==r?Object(o.createElement)(t,u,Object(o.createElement)("span",{"aria-hidden":"true"},n),Object(o.createElement)("span",{className:"screen-reader-text"},r)):Object(o.createElement)(t,u,n))}},5:function(e,t,n){"use strict";n.d(t,"l",(function(){return c})),n.d(t,"K",(function(){return o})),n.d(t,"Q",(function(){return a})),n.d(t,"A",(function(){return i})),n.d(t,"C",(function(){return s})),n.d(t,"m",(function(){return u})),n.d(t,"B",(function(){return l})),n.d(t,"E",(function(){return b})),n.d(t,"o",(function(){return p})),n.d(t,"D",(function(){return d})),n.d(t,"n",(function(){return m})),n.d(t,"G",(function(){return g})),n.d(t,"v",(function(){return f})),n.d(t,"y",(function(){return O})),n.d(t,"s",(function(){return j})),n.d(t,"t",(function(){return h})),n.d(t,"u",(function(){return v})),n.d(t,"k",(function(){return _})),n.d(t,"M",(function(){return y})),n.d(t,"R",(function(){return E})),n.d(t,"q",(function(){return w})),n.d(t,"r",(function(){return k})),n.d(t,"p",(function(){return S})),n.d(t,"J",(function(){return N})),n.d(t,"c",(function(){return P})),n.d(t,"w",(function(){return C})),n.d(t,"x",(function(){return M})),n.d(t,"U",(function(){return I})),n.d(t,"V",(function(){return D})),n.d(t,"L",(function(){return x})),n.d(t,"a",(function(){return T})),n.d(t,"O",(function(){return A})),n.d(t,"b",(function(){return L})),n.d(t,"N",(function(){return z})),n.d(t,"F",(function(){return U})),n.d(t,"i",(function(){return V})),n.d(t,"P",(function(){return B})),n.d(t,"h",(function(){return Y})),n.d(t,"j",(function(){return H})),n.d(t,"I",(function(){return G})),n.d(t,"H",(function(){return Q})),n.d(t,"T",(function(){return W})),n.d(t,"S",(function(){return $})),n.d(t,"d",(function(){return K})),n.d(t,"e",(function(){return Z})),n.d(t,"f",(function(){return X})),n.d(t,"g",(function(){return J})),n.d(t,"z",(function(){return ee})),n.d(t,"Y",(function(){return ne})),n.d(t,"Z",(function(){return re})),n.d(t,"W",(function(){return ce})),n.d(t,"X",(function(){return oe}));var r=n(3),c=Object(r.getSetting)("currentUserIsAdmin",!1),o=Object(r.getSetting)("reviewRatingsEnabled",!0),a=Object(r.getSetting)("showAvatars",!0),i=Object(r.getSetting)("max_columns",6),s=Object(r.getSetting)("min_columns",1),u=Object(r.getSetting)("default_columns",3),l=Object(r.getSetting)("max_rows",6),b=Object(r.getSetting)("min_rows",1),p=Object(r.getSetting)("default_rows",3),d=Object(r.getSetting)("min_height",500),m=Object(r.getSetting)("default_height",500),g=Object(r.getSetting)("placeholderImgSrc",""),f=(Object(r.getSetting)("thumbnail_size",300),Object(r.getSetting)("isLargeCatalog")),O=Object(r.getSetting)("limitTags"),j=Object(r.getSetting)("hasProducts",!0),h=Object(r.getSetting)("hasTags",!0),v=Object(r.getSetting)("homeUrl",""),_=Object(r.getSetting)("couponsEnabled",!0),y=Object(r.getSetting)("shippingEnabled",!0),E=Object(r.getSetting)("taxesEnabled",!0),w=Object(r.getSetting)("displayItemizedTaxes",!1),k=Object(r.getSetting)("hasDarkEditorStyleSupport",!1),S=(Object(r.getSetting)("displayShopPricesIncludingTax",!1),Object(r.getSetting)("displayCartPricesIncludingTax",!1)),N=Object(r.getSetting)("productCount",0),P=Object(r.getSetting)("attributes",[]),C=Object(r.getSetting)("isShippingCalculatorEnabled",!0),M=Object(r.getSetting)("isShippingCostHidden",!1),R=Object(r.getSetting)("woocommerceBlocksPhase",1),I=Object(r.getSetting)("wcBlocksAssetUrl",""),D=Object(r.getSetting)("wcBlocksBuildUrl",""),x=Object(r.getSetting)("shippingCountries",{}),T=Object(r.getSetting)("allowedCountries",{}),A=Object(r.getSetting)("shippingStates",{}),L=Object(r.getSetting)("allowedStates",{}),z=Object(r.getSetting)("shippingMethodsExist",!1),U=Object(r.getSetting)("paymentGatewaySortOrder",[]),V=Object(r.getSetting)("checkoutShowLoginReminder",!0),F={id:0,title:"",permalink:""},q=Object(r.getSetting)("storePages",{shop:F,cart:F,checkout:F,privacy:F,terms:F}),B=q.shop.permalink,Y=q.checkout.id,H=q.checkout.permalink,G=q.privacy.permalink,Q=q.privacy.title,W=q.terms.permalink,$=q.terms.title,K=q.cart.id,Z=q.cart.permalink,X=Object(r.getSetting)("checkoutAllowsGuest",!1),J=Object(r.getSetting)("checkoutAllowsSignup",!1),ee=Object(r.getSetting)("loginUrl","/wp-login.php"),te=n(17),ne=function(e,t){if(R>2)return Object(te.registerBlockType)(e,t)},re=function(e,t){if(R>1)return Object(te.registerBlockType)(e,t)},ce=function(){return R>2},oe=function(){return R>1}},537:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a}));var r=window.Event||null,c=function(e,t){var n=t.bubbles,c=void 0!==n&&n,o=t.cancelable,a=void 0!==o&&o,i=t.element;if(i||(i=document.body),"function"==typeof r){var s=new r(e,{bubbles:c,cancelable:a});i.dispatchEvent(s)}else{var u=document.createEvent("Event");u.initEvent(e,c,a),i.dispatchEvent(u)}},o=function(){c("wc_fragment_refresh",{bubbles:!0,cancelable:!0})},a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"!=typeof jQuery)return function(){};var o=function(){c(t,{bubbles:n,cancelable:r})};return jQuery(document).on(e,o),function(){return jQuery(document).off(e,o)}}},54:function(e,t){!function(){e.exports=this.wp.keycodes}()},55:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(8),a=n.n(o),i=n(27),s=n.n(i),u=n(0),l=n(184),b=n(7),p=n.n(b);n(194);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.className,n=e.value,r=e.currency,o=e.onValueChange,a=s()(e,["className","value","currency","onValueChange"]);if("-"===n)return null;var i=n/Math.pow(10,r.minorUnit);if(!Number.isFinite(i))return null;var b=p()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),d=m(m(m({displayType:"text"},a),function(e){return{thousandSeparator:e.thousandSeparator,decimalSeparator:e.decimalSeparator,decimalScale:e.minorUnit,fixedDecimalScale:!0,prefix:e.prefix,suffix:e.suffix,isNumericString:!0}}(r)),{},{value:void 0,currency:void 0,onValueChange:void 0}),g=o?function(e){var t=e.value*Math.pow(10,r.minorUnit);o(t)}:function(){};return Object(u.createElement)(l.a,c()({className:b},d,{value:i,onValueChange:g}))}},56:function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),c=n(43),o=n.n(c),a=function(e){var t=Object(r.useRef)();return o()(e,t.current)||(t.current=e),t.current}},6:function(e,t){!function(){e.exports=this.lodash}()},61:function(e,t,n){"use strict";var r=n(8),c=n.n(r),o=n(27),a=n.n(o),i=n(9);n(2);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.srcElement,n=e.size,r=void 0===n?24:n,o=a()(e,["srcElement","size"]);return Object(i.isValidElement)(t)&&Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},o))}},65:function(e,t,n){"use strict";var r=n(0),c=(n(2),n(7)),o=n.n(c),a=n(55);n(371);t.a=function(e){var t=e.className,n=e.currency,c=e.label,i=e.value,s=e.description;return Object(r.createElement)("div",{className:o()("wc-block-components-totals-item",t)},Object(r.createElement)("span",{className:"wc-block-components-totals-item__label"},c),Object(r.isValidElement)(i)?Object(r.createElement)("div",{className:"wc-block-components-totals-item__value"},i):Object(r.createElement)(a.a,{className:"wc-block-components-totals-item__value",currency:n,displayType:"text",value:i}),Object(r.createElement)("div",{className:"wc-block-components-totals-item__description"},s))}},78:function(e,t){!function(){e.exports=this.wp.dom}()},844:function(e,t,n){"use strict";var r=n(0),c=n(57),o=Object(r.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"}));t.a=o},86:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g}));var r=n(8),c=n.n(r),o=n(11),a=n.n(o),i=n(0),s=n(6),u=n(43),l=n.n(u);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=Object(i.createContext)({getValidationError:function(){return""},setValidationErrors:function(e){},clearValidationError:function(e){},clearAllValidationErrors:function(){},hideValidationError:function(){},showValidationError:function(){},showAllValidationErrors:function(){},hasValidationErrors:!1,getValidationErrorId:function(e){return e}}),m=function(){return Object(i.useContext)(d)},g=function(e){var t=e.children,n=Object(i.useState)({}),r=a()(n,2),o=r[0],u=r[1],b=Object(i.useCallback)((function(e){return o[e]}),[o]),m=Object(i.useCallback)((function(e){var t=o[e];return!t||t.hidden?"":"validate-error-".concat(e)}),[o]),g=Object(i.useCallback)((function(e){u((function(t){return t[e]?Object(s.omit)(t,[e]):t}))}),[]),f=Object(i.useCallback)((function(){u({})}),[]),O=Object(i.useCallback)((function(e){e&&u((function(t){return e=Object(s.pickBy)(e,(function(e,n){return"string"==typeof e.message&&(!t.hasOwnProperty(n)||!l()(t[n],e))})),0===Object.values(e).length?t:p(p({},t),e)}))}),[]),j=Object(i.useCallback)((function(e,t){u((function(n){if(!n.hasOwnProperty(e))return n;var r=p(p({},n[e]),t);return l()(n[e],r)?n:p(p({},n),{},c()({},e,r))}))}),[]),h={getValidationError:b,setValidationErrors:O,clearValidationError:g,clearAllValidationErrors:f,hideValidationError:Object(i.useCallback)((function(e){j(e,{hidden:!0})}),[j]),showValidationError:Object(i.useCallback)((function(e){j(e,{hidden:!1})}),[j]),showAllValidationErrors:Object(i.useCallback)((function(){u((function(e){var t={};return Object.keys(e).forEach((function(n){e[n].hidden&&(t[n]=p(p({},e[n]),{},{hidden:!1}))})),0===Object.values(t).length?e:p(p({},e),t)}))}),[]),hasValidationErrors:Object.keys(o).length>0,getValidationErrorId:m};return Object(i.createElement)(d.Provider,{value:h},t)}},860:function(e,t,n){e.exports=n(901)},861:function(e,t){},862:function(e,t){},863:function(e,t){},864:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(8),c=n.n(r),o=n(11),a=n.n(o),i=n(36),s=n(0),u=n(41),l=n(155);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=Object(l.a)(),n=Object(s.useMemo)((function(){return e.map((function(e){var t;return[e.package_id,null===(t=e.shipping_rates.find((function(e){return e.selected})))||void 0===t?void 0:t.rate_id]})).reduce((function(e,t){var n=a()(t,2),r=n[0],c=n[1];return c&&(e[r]=c),e}),{})}),[e]),r=Object(s.useState)(n),o=a()(r,2),b=o[0],d=o[1];Object(s.useEffect)((function(){d(n)}),[n]);var m=Object(i.useDispatch)(u.CART_STORE_KEY).selectShippingRate,g=Object(i.useSelect)((function(e){return e(u.CART_STORE_KEY).isShippingRateBeingSelected()}),[]);return{selectShippingRate:function(e,n){d(p(p({},b),{},c()({},n,e))),m(e,n).catch((function(e){t(e)}))},selectedShippingRates:b,isSelectingRate:g}}},865:function(e,t){},866:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(8),c=n.n(r),o=n(1),a=n(36),i=n(41),s=n(86),u=n(33),l=n(134),b=n(140);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var d=function(){var e=Object(l.a)(),t=e.cartCoupons,n=e.cartIsLoading,r=Object(b.a)(),d=r.addErrorNotice,m=r.addSnackbarNotice,g=Object(s.b)().setValidationErrors;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({appliedCoupons:t,isLoading:n},Object(a.useSelect)((function(e,t){var n=t.dispatch,r=e(i.CART_STORE_KEY),c=r.isApplyingCoupon(),a=r.isRemovingCoupon(),s=n(i.CART_STORE_KEY),l=s.applyCoupon,b=s.removeCoupon,p=s.receiveApplyingCoupon;return{applyCoupon:function(e){l(e).then((function(t){!0===t&&m(Object(o.sprintf)(Object(o.__)('Coupon code "%s" has been applied to your cart.',"woo-gutenberg-products-block"),e),{id:"coupon-form"})})).catch((function(e){g({coupon:{message:Object(u.decodeEntities)(e.message),hidden:!1}}),p("")}))},removeCoupon:function(e){b(e).then((function(t){!0===t&&m(Object(o.sprintf)(Object(o.__)('Coupon code "%s" has been removed from your cart.',"woo-gutenberg-products-block"),e),{id:"coupon-form"})})).catch((function(e){d(e.message,{id:"coupon-form"}),p("")}))},isApplyingCoupon:c,isRemovingCoupon:a}}),[d,m]))}},867:function(e,t,n){"use strict";var r=n(0),c=n(7),o=n.n(c),a=(n(2),n(389));n(366);t.a=function(e){var t=e.children,n=e.className;return Object(r.createElement)(a.a,{className:o()("wc-block-components-sidebar-layout",n)},t)}},868:function(e,t,n){"use strict";var r=n(0),c=n(7),o=n.n(c);n(2);t.a=function(e){var t=e.children,n=e.className;return Object(r.createElement)("div",{className:o()("wc-block-components-main",n)},t)}},869:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(0),a=n(33),i=n(5);n(2);t.a=function(e){var t=e.image,n=void 0===t?{}:t,r={src:n.thumbnail||i.G,alt:Object(a.decodeEntities)(n.alt)||""};return Object(o.createElement)("img",c()({},r,{alt:r.alt}))}},87:function(e,t){!function(){e.exports=this.wp.a11y}()},870:function(e,t,n){"use strict";var r=n(0),c=(n(2),n(33));n(368);t.a=function(e){var t=e.name,n=e.permalink,o=e.disabled,a=void 0!==o&&o;return Object(r.createElement)("a",{className:"wc-block-components-product-name",href:n,tabIndex:a?-1:0},Object(c.decodeEntities)(t))}},871:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(153);t.a=function(){return Object(r.createElement)(o.a,{className:"wc-block-components-product-backorder-badge"},Object(c.__)("Available on backorder","woo-gutenberg-products-block"))}},872:function(e,t,n){"use strict";var r=n(0),c=n(1),o=(n(2),n(153));t.a=function(e){var t=e.lowStockRemaining;return t?Object(r.createElement)(o.a,{className:"wc-block-components-product-low-stock-badge"},Object(c.sprintf)(Object(c.__)("%d left in stock","woo-gutenberg-products-block"),t)):null}},873:function(e,t){},874:function(e,t,n){"use strict";var r=n(0),c=n(7),o=n.n(c);n(2);t.a=function(e){var t=e.children,n=e.className;return Object(r.createElement)("div",{className:o()("wc-block-components-sidebar",n)},t)}},875:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(5),a=(n(2),n(65));t.a=function(e){var t=e.currency,n=e.values,i=n.total_items,s=n.total_items_tax,u=parseInt(i,10),l=parseInt(s,10);return Object(r.createElement)(a.a,{currency:t,label:Object(c.__)("Subtotal","woo-gutenberg-products-block"),value:o.p?u+l:u})}},876:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(5),a=n(156),i=(n(2),n(65));t.a=function(e){var t=e.currency,n=e.values;if(!Object(a.b)().needsShipping)return null;var s=n.total_fees,u=n.total_fees_tax,l=parseInt(s,10);if(!l)return null;var b=parseInt(u,10);return Object(r.createElement)(i.a,{className:"wc-block-components-totals-fees",currency:t,label:Object(c.__)("Fees","woo-gutenberg-products-block"),value:o.p?l+b:l})}},877:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(5),a=n(125),i=n(277),s=(n(2),n(65));n(372);t.a=function(e){var t=e.cartCoupons,n=void 0===t?[]:t,u=e.currency,l=e.isRemovingCoupon,b=e.removeCoupon,p=e.values,d=p.total_discount,m=p.total_discount_tax,g=parseInt(d,10);if(!g&&0===n.length)return null;var f=parseInt(m,10),O=o.p?g+f:g;return Object(r.createElement)(s.a,{className:"wc-block-components-totals-discount",currency:u,description:0!==n.length&&Object(r.createElement)(a.a,{screenReaderLabel:Object(c.__)("Removing coupon…","woo-gutenberg-products-block"),isLoading:l,showSpinner:!1},Object(r.createElement)("ul",{className:"wc-block-components-totals-discount__coupon-list"},n.map((function(e){return Object(r.createElement)(i.a,{key:"coupon-"+e.code,className:"wc-block-components-totals-discount__coupon-list-item",text:e.code,screenReaderText:Object(c.sprintf)(Object(c.__)("Coupon: %s","woo-gutenberg-products-block"),e.code),disabled:l,onRemove:function(){b(e.code)},radius:"large",ariaLabel:Object(c.sprintf)(Object(c.__)('Remove coupon "%s"',"woo-gutenberg-products-block"),e.code)})})))),label:O?Object(c.__)("Discount","woo-gutenberg-products-block"):Object(c.__)("Coupons","woo-gutenberg-products-block"),value:O?-1*O:"-"})}},878:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var r=function(e){return e.length},c=function(e){return e.reduce((function(e,t){return e+t.shipping_rates.length}),0)}},879:function(e,t,n){"use strict";var r=n(0),c=n(1),o=(n(2),n(5)),a=n(65);n(378);t.a=function(e){var t=e.currency,n=e.values,i=n.total_tax,s=n.tax_lines;return o.R?o.q?Object(r.createElement)(r.Fragment,null,s.map((function(e,n){var c=e.name,o=e.price;return Object(r.createElement)(a.a,{key:"tax-line-".concat(n),className:"wc-block-components-totals-taxes",currency:t,label:c,value:parseInt(o,10)})}))," "):Object(r.createElement)(a.a,{className:"wc-block-components-totals-taxes",currency:t,label:Object(c.__)("Taxes","woo-gutenberg-products-block"),value:parseInt(i,10)}):null}},880:function(e,t,n){"use strict";var r=n(11),c=n.n(r),o=n(0),a=n(1),i=n(99),s=n(169),u=n(48),l=n(233),b=n(125),p=(n(2),n(193)),d=n(86),m=n(154);n(379);t.a=Object(p.a)((function(e){var t=e.instanceId,n=e.isLoading,r=void 0!==n&&n,p=e.initialOpen,g=void 0!==p&&p,f=e.onSubmit,O=void 0===f?function(){}:f,j=Object(o.useState)(""),h=c()(j,2),v=h[0],_=h[1],y=Object(o.useRef)(!1),E=Object(d.b)(),w=E.getValidationError,k=E.getValidationErrorId,S=w("coupon");Object(o.useEffect)((function(){y.current!==r&&(r||!v||S||_(""),y.current=r)}),[r,v,S]);var N="wc-block-components-totals-coupon__input-".concat(t);return Object(o.createElement)(m.a,{className:"wc-block-components-totals-coupon",hasBorder:!0,initialOpen:g,title:Object(o.createElement)(u.a,{label:Object(a.__)("Coupon Code?","woo-gutenberg-products-block"),screenReaderLabel:Object(a.__)("Introduce Coupon Code","woo-gutenberg-products-block"),htmlFor:N}),titleTag:"h2"},Object(o.createElement)(b.a,{screenReaderLabel:Object(a.__)("Applying coupon…","woo-gutenberg-products-block"),isLoading:r,showSpinner:!1},Object(o.createElement)("div",{className:"wc-block-components-totals-coupon__content"},Object(o.createElement)("form",{className:"wc-block-components-totals-coupon__form"},Object(o.createElement)(s.a,{id:N,errorId:"coupon",className:"wc-block-components-totals-coupon__input",label:Object(a.__)("Enter code","woo-gutenberg-products-block"),value:v,ariaDescribedBy:k(N),onChange:function(e){_(e)},validateOnMount:!1,focusOnMount:!0,showError:!1}),Object(o.createElement)(i.a,{className:"wc-block-components-totals-coupon__button",disabled:r||!v,showSpinner:r,onClick:function(e){e.preventDefault(),O(v)},type:"submit"},Object(a.__)("Apply","woo-gutenberg-products-block"))),Object(o.createElement)(l.a,{propertyName:"coupon",elementId:N}))))}))},881:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(5),a=n(192),i=n(55),s=(n(2),n(65)),u=(n(380),o.R&&o.p);t.a=function(e){var t=e.currency,n=e.values,o=n.total_price,l=n.total_tax;return Object(r.createElement)(s.a,{className:"wc-block-components-totals-footer-item",currency:t,label:Object(c.__)("Total","woo-gutenberg-products-block"),value:parseInt(o,10),description:u&&Object(r.createElement)("p",{className:"wc-block-components-totals-footer-item-tax"},Object(a.a)(Object(c.__)("Including <TaxAmount/> in taxes","woo-gutenberg-products-block"),{TaxAmount:Object(r.createElement)(i.a,{className:"wc-block-components-totals-footer-item-tax-value",currency:t,displayType:"text",value:parseInt(l,10)})}))})}},882:function(e,t,n){"use strict";var r=n(0),c=n(57),o=Object(r.createElement)(c.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"}));t.a=o},883:function(e,t){},884:function(e,t){},9:function(e,t){!function(){e.exports=this.React}()},901:function(e,t,n){"use strict";n.r(t);var r=n(0),c=n(1),o=n(14),a=n(61),i=n(844),s=n(7),u=n.n(s),l=n(5),b=n(274),p=n(4),d=(n(2),n(11)),m=n.n(d),g=n(26),f=(n(863),Object(g.withInstanceId)((function(e){var t=e.className,n=e.label,o=void 0===n?Object(c.__)("View","woo-gutenberg-products-block"):n,a=e.views,i=e.defaultView,s=e.instanceId,l=e.render,b=Object(r.useState)(i),d=m()(b,2),g=d[0],f=d[1],O=u()(t,"wc-block-view-switch-control"),j="wc-block-view-switch-control-"+s;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:O},Object(r.createElement)("label",{htmlFor:j,className:"wc-block-view-switch-control__label"},o+": "),Object(r.createElement)(p.ButtonGroup,{id:j},a.map((function(e){return Object(r.createElement)(p.Button,{key:e.value,isPrimary:g===e.value,isLarge:!0,"aria-pressed":g===e.value,onMouseDown:function(){g!==e.value&&f(e.value)},onClick:function(){g!==e.value&&f(e.value)}},e.name)})))),l(g))}))),O=n(273),j=n(189),h=n(212),v=n(156),_=n(170),y=n(281),E=function(e){var t=e.children,n=e.redirectUrl;return Object(r.createElement)(_.a,{redirectUrl:n,isCart:!0},Object(r.createElement)(v.a,null,Object(r.createElement)(y.a,null,t)))},w=n(192),k=n(3),S=n(928),N=n(41),P=n(36),C=n(134),M=n(125),R=n(86),I=n(537),D=n(185),x=n(875),T=n(876),A=n(877),L=n(908),z=n(879),U=n(880),V=n(881),F=n(259),q=n(387),B=n(395),Y=n(191),H=n(275),G=(n(381),function(){var e=Object(q.a)(),t=e.paymentMethods,n=e.isInitialized,o=Object(B.a)().noticeContexts;return!n||n&&0===Object.keys(t).length?null:Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"wc-block-components-express-payment wc-block-components-express-payment--cart"},Object(r.createElement)("div",{className:"wc-block-components-express-payment__content"},Object(r.createElement)(Y.a,{context:o.EXPRESS_PAYMENTS},Object(r.createElement)(H.a,null)))),Object(r.createElement)("div",{className:"wc-block-components-express-payment-continue-rule wc-block-components-express-payment-continue-rule--cart"},Object(c.__)("Or","woo-gutenberg-products-block")))}),Q=n(866),W=n(140),$=n(867),K=n(868),Z=n(874),X=n(136),J=n(33),ee=n(917),te=n(99),ne={bottom:0,left:0,opacity:0,pointerEvents:"none",position:"absolute",right:0,top:0,zIndex:-1},re=function(){var e,t,n=Object(r.useState)(""),c=m()(n,2),o=c[0],a=c[1],i=Object(r.useRef)(null),s=Object(r.useRef)((e=function(e){e[0].isIntersecting?a("visible"):a(e[0].boundingClientRect.top>0?"below":"above")},t={threshold:1},"function"!=typeof IntersectionObserver?{observe:function(){},unobserve:function(){}}:new IntersectionObserver(e,t)));return Object(r.useLayoutEffect)((function(){var e=i.current,t=s.current;return e&&t.observe(e),function(){t.unobserve(e)}}),[]),[Object(r.createElement)("div",{"aria-hidden":!0,ref:i,style:ne}),o]},ce=(n(883),function(e){return Object.values(e).reduce((function(e,t){return null!==t.icons&&(e=e.concat(t.icons)),e}),[])}),oe=function(e){var t=e.link,n=Object(_.b)().isCalculating,o=re(),a=m()(o,2),i=a[0],s=a[1],u=Object(r.useState)(!1),b=m()(u,2),p=b[0],d=b[1],g=Object(q.b)().paymentMethods,f=Object(r.createElement)(r.Fragment,null,Object(r.createElement)(te.a,{className:"wc-block-cart__submit-button",href:t||l.j,disabled:n,onClick:function(){return d(!0)},showSpinner:p},Object(c.__)("Proceed to Checkout","woo-gutenberg-products-block")),Object(r.createElement)(ee.a,{icons:ce(g)}));return Object(r.createElement)("div",{className:"wc-block-cart__submit"},i,Object(r.createElement)("div",{className:"wc-block-cart__submit-container"},f),"below"===s&&Object(r.createElement)("div",{className:"wc-block-cart__submit-container wc-block-cart__submit-container--sticky"},f))},ae=function(e){var t=e.itemCount,n=void 0===t?1:t;return Object(r.createElement)(X.a,{headingLevel:"2"},Object(c.sprintf)(Object(c._n)("Your cart (%d item)","Your cart (%d items)",n,"woo-gutenberg-products-block"),n))},ie=n(51),se=n.n(ie),ue=n(60),le=n.n(ue),be=n(87),pe=n(54),de=(n(873),function(e){var t=e.className,n=e.quantity,o=void 0===n?1:n,a=e.minimum,i=void 0===a?1:a,s=e.maximum,l=e.onChange,b=void 0===l?function(){return null}:l,p=e.itemName,d=void 0===p?"":p,m=e.disabled,g=u()("wc-block-components-quantity-selector",t),f=void 0!==s,O=o>i,j=!f||o<s,h=Object(r.useCallback)((function(e){var t=void 0!==le()(e.key)?"ArrowDown"===e.key:e.keyCode===pe.DOWN,n=void 0!==le()(e.key)?"ArrowUp"===e.key:e.keyCode===pe.UP;t&&O&&(e.preventDefault(),b(o-1)),n&&j&&(e.preventDefault(),b(o+1))}),[o,b,j,O]);return Object(r.createElement)("div",{className:g},Object(r.createElement)("input",{className:"wc-block-components-quantity-selector__input",disabled:m,type:"number",step:"1",min:"0",value:o,onKeyDown:h,onChange:function(e){var t=isNaN(e.target.value)||!e.target.value?0:parseInt(e.target.value,10);f&&(t=Math.min(t,s)),(t=Math.max(t,i))!==o&&b(t)},"aria-label":Object(c.sprintf)(Object(c.__)("Quantity of %s in your cart.","woo-gutenberg-products-block"),d)}),Object(r.createElement)("button",{"aria-label":Object(c.__)("Reduce quantity","woo-gutenberg-products-block"),className:"wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--minus",disabled:m||!O,onClick:function(){var e=o-1;b(e),Object(be.speak)(Object(c.sprintf)(Object(c.__)("Quantity reduced to %s.","woo-gutenberg-products-block"),e))}},"-"),Object(r.createElement)("button",{"aria-label":Object(c.__)("Increase quantity","woo-gutenberg-products-block"),disabled:m||!j,className:"wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--plus",onClick:function(){var e=o+1;b(e),Object(be.speak)(Object(c.sprintf)(Object(c.__)("Quantity increased to %s.","woo-gutenberg-products-block"),e))}},"+"))}),me=n(164),ge=n(168),fe=n(550),Oe=n(57),je=Object(r.createElement)(Oe.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"}),Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"})),he=n(869),ve=n(870),_e=n(871),ye=n(872),Ee=n(924),we=n(55),ke=n(153),Se=function(e){var t=e.currency,n=e.saleAmount;return!n||n<=0?null:Object(r.createElement)(ke.a,{className:"wc-block-components-sale-badge"},Object(w.a)(Object(c.__)("Save <price/>","woo-gutenberg-products-block"),{price:Object(r.createElement)(we.a,{currency:t,value:n})}))},Ne=n(279),Pe=function(e,t){return e.convertPrecision(t.minorUnit).getAmount()},Ce=function(e){var t=e.lineItem,n=void 0===t?{}:t,o=n.name,i=void 0===o?"":o,s=n.short_description,l=void 0===s?"":s,b=n.description,p=void 0===b?"":b,d=n.low_stock_remaining,g=void 0===d?null:d,f=n.show_backorder_badge,O=void 0!==f&&f,j=n.quantity_limit,h=void 0===j?99:j,v=n.permalink,y=void 0===v?"":v,E=n.images,w=void 0===E?[]:E,k=n.variation,S=void 0===k?[]:k,M=n.prices,R=void 0===M?{currency_code:"USD",currency_minor_unit:2,currency_symbol:"$",currency_prefix:"$",currency_suffix:"",currency_decimal_separator:".",currency_thousand_separator:",",price:"0",regular_price:"0",sale_price:"0",price_range:null,raw_prices:{precision:6,price:"0",regular_price:"0",sale_price:"0"}}:M,D=function(e){var t=e.key,n=void 0===t?"":t,c=e.quantity,o=void 0===c?1:c,a=Object(C.a)().cartErrors,i=Object(_.b)().dispatchActions,s=Object(r.useState)(o),u=m()(s,2),l=u[0],b=u[1],p=Object(fe.a)(l,400),d=m()(p,1)[0],g=Object(ge.a)(d),f=Object(P.useDispatch)(N.CART_STORE_KEY),O=f.removeItemFromCart,j=f.changeCartItemQuantity,h=Object(P.useSelect)((function(e){return!!n&&e(N.CART_STORE_KEY).isItemPendingQuantity(n)}),[n]),v=Object(ge.a)(h),y=Object(P.useSelect)((function(e){return!!n&&e(N.CART_STORE_KEY).isItemPendingDelete(n)}),[n]),E=Object(ge.a)(y);return Object(r.useEffect)((function(){n&&Number.isFinite(g)&&g!==d&&j(n,d).then(I.c)}),[n,j,d,g]),Object(r.useEffect)((function(){v!==h&&(h?i.incrementCalculating():i.decrementCalculating())}),[i,h,v]),Object(r.useEffect)((function(){return E!==y&&(y?i.incrementCalculating():i.decrementCalculating()),function(){y&&i.decrementCalculating()}}),[i,y,E]),{isPendingDelete:y,quantity:l,changeQuantity:b,removeItem:function(){return!!n&&O(n).then((function(){Object(I.c)()}))},cartItemQuantityErrors:a}}(n),x=D.quantity,T=D.changeQuantity,A=D.removeItem,L=D.isPendingDelete,z=Object(F.b)(R),U=Object(Ne.a)({amount:parseInt(R.raw_prices.regular_price,10),precision:parseInt(R.raw_prices.precision,10)}).multiply(x),V=Object(Ne.a)({amount:parseInt(R.raw_prices.price,10),precision:parseInt(R.raw_prices.precision,10)}).multiply(x),q=U.subtract(V),B=w.length?w[0]:{};return Object(r.createElement)("tr",{className:u()("wc-block-cart-items__row",{"is-disabled":L})},Object(r.createElement)("td",{className:"wc-block-cart-item__image","aria-hidden":!B.alt},Object(r.createElement)("a",{href:y,tabIndex:-1},Object(r.createElement)(he.a,{image:B}))),Object(r.createElement)("td",{className:"wc-block-cart-item__product"},Object(r.createElement)(ve.a,{permalink:y,name:i,disabled:L}),O?Object(r.createElement)(_e.a,null):!!g&&Object(r.createElement)(ye.a,{lowStockRemaining:g}),Object(r.createElement)(Ee.a,{shortDescription:l,fullDescription:p,variation:S})),Object(r.createElement)("td",{className:"wc-block-cart-item__quantity"},Object(r.createElement)(de,{disabled:L,quantity:x,maximum:h,onChange:T,itemName:i}),Object(r.createElement)("button",{className:"wc-block-cart-item__remove-link",onClick:A,disabled:L},Object(c.__)("Remove item","woo-gutenberg-products-block")),Object(r.createElement)("button",{className:"wc-block-cart-item__remove-icon",onClick:A},Object(r.createElement)("span",{className:"screen-reader-text"},Object(c.__)("Remove item","woo-gutenberg-products-block")),Object(r.createElement)(a.a,{srcElement:je}))),Object(r.createElement)("td",{className:"wc-block-cart-item__total"},Object(r.createElement)(me.a,{currency:z,regularPrice:Pe(U,z),price:Pe(V,z)}),Object(r.createElement)(Se,{currency:z,saleAmount:Pe(q,z)})))},Me=se()(Array(3)).map((function(e,t){return Object(r.createElement)(Ce,{key:t})})),Re=function(e){var t=e.lineItems,n=void 0===t?[]:t,o=e.isLoading,a=void 0!==o&&o?Me:n.map((function(e){return Object(r.createElement)(Ce,{key:e.key,lineItem:e})}));return Object(r.createElement)("table",{className:"wc-block-cart-items"},Object(r.createElement)("thead",null,Object(r.createElement)("tr",{className:"wc-block-cart-items__header"},Object(r.createElement)("th",{className:"wc-block-cart-items__header-image"},Object(r.createElement)("span",null,Object(c.__)("Product","woo-gutenberg-products-block"))),Object(r.createElement)("th",{className:"wc-block-cart-items__header-product"},Object(r.createElement)("span",null,Object(c.__)("Details","woo-gutenberg-products-block"))),Object(r.createElement)("th",{className:"wc-block-cart-items__header-quantity"},Object(r.createElement)("span",null,Object(c.__)("Quantity","woo-gutenberg-products-block"))),Object(r.createElement)("th",{className:"wc-block-cart-items__header-total"},Object(r.createElement)("span",null,Object(c.__)("Total","woo-gutenberg-products-block"))))),Object(r.createElement)("tbody",null,a))},Ie=(n(865),function(e){var t=e.attributes,n=t.isShippingCalculatorEnabled,o=t.isShippingCostHidden,a=t.hasDarkControls,i=Object(C.a)(),s=i.cartItems,b=i.cartTotals,p=i.cartIsLoading,d=i.cartItemsCount,m=i.cartItemErrors,g=i.cartNeedsPayment,f=i.cartNeedsShipping,O=Object(Q.a)(),j=O.applyCoupon,h=O.removeCoupon,v=O.isApplyingCoupon,_=O.isRemovingCoupon,y=O.appliedCoupons,E=Object(W.a)().addErrorNotice;Object(r.useEffect)((function(){m.forEach((function(e){E(Object(J.decodeEntities)(e.message),{isDismissible:!0,id:e.code})}))}),[E,m]);var w=Object(F.c)(b),S=u()("wc-block-cart",{"wc-block-cart--is-loading":p,"has-dark-controls":a});return Object(r.createElement)($.a,{className:S},Object(r.createElement)(K.a,{className:"wc-block-cart__main"},Object(r.createElement)(ae,{itemCount:d}),Object(r.createElement)(Re,{lineItems:s,isLoading:p})),Object(r.createElement)(Z.a,{className:"wc-block-cart__sidebar"},Object(r.createElement)(X.a,{headingLevel:"2",className:"wc-block-cart__totals-title"},Object(c.__)("Cart totals","woo-gutenberg-products-block")),Object(r.createElement)(x.a,{currency:w,values:b}),Object(r.createElement)(T.a,{currency:w,values:b}),Object(r.createElement)(A.a,{cartCoupons:y,currency:w,isRemovingCoupon:_,removeCoupon:h,values:b}),f&&Object(r.createElement)(L.a,{showCalculator:n,showRatesWithoutAddress:!o,values:b,currency:w}),!l.p&&Object(r.createElement)(z.a,{currency:w,values:b}),l.k&&Object(r.createElement)(U.a,{onSubmit:j,isLoading:v}),Object(r.createElement)(V.a,{currency:w,values:b}),Object(r.createElement)("div",{className:"wc-block-cart__payment-options"},g&&Object(r.createElement)(G,null),Object(r.createElement)(oe,{link:Object(k.getSetting)("page-"+(null==t?void 0:t.checkoutPageId),!1)}))))}),De=function(e){var t=e.content;return Object(r.useEffect)((function(){Object(I.a)("wc-blocks_render_blocks_frontend",{element:document.body.querySelector(".wp-block-woocommerce-cart")})}),[]),Object(r.createElement)(r.RawHTML,null,t)},xe=Object(D.a)((function(e){var t=e.emptyCart,n=e.attributes,c=e.scrollToTop,o=Object(C.a)(),a=o.cartItems,i=o.cartIsLoading;return Object(r.useEffect)((function(){var e=function(){Object(P.dispatch)(N.CART_STORE_KEY).invalidateResolutionForStore(),c()},t=Object(I.b)("added_to_cart","wc-blocks_added_to_cart"),n=Object(I.b)("removed_from_cart","wc-blocks_removed_from_cart");return document.body.addEventListener("wc-blocks_added_to_cart",e),document.body.addEventListener("wc-blocks_removed_from_cart",e),function(){t(),n(),document.body.removeEventListener("wc-blocks_added_to_cart",e),document.body.removeEventListener("wc-blocks_removed_from_cart",e)}}),[c]),Object(r.createElement)(r.Fragment,null,i||0!==a.length?Object(r.createElement)(M.a,{showSpinner:!0,isLoading:i},Object(r.createElement)(R.a,null,Object(r.createElement)(E,null,Object(r.createElement)(Ie,{attributes:n})))):Object(r.createElement)(De,{content:t}))})),Te=(n(884),function(e){var t=e.hidden,n=void 0!==t&&t;return Object(r.createElement)("div",{hidden:n},Object(r.createElement)(o.InnerBlocks,{templateInsertUpdatesSelection:!1,template:[["core/image",{align:"center",url:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHZpZXdCb3g9IjAgMCAzOCAzOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5IDBDOC41MDQwMyAwIDAgOC41MDQwMyAwIDE5QzAgMjkuNDk2IDguNTA0MDMgMzggMTkgMzhDMjkuNDk2IDM4IDM4IDI5LjQ5NiAzOCAxOUMzOCA4LjUwNDAzIDI5LjQ5NiAwIDE5IDBaTTI1LjEyOSAxMi44NzFDMjYuNDg1MSAxMi44NzEgMjcuNTgwNiAxMy45NjY1IDI3LjU4MDYgMTUuMzIyNkMyNy41ODA2IDE2LjY3ODYgMjYuNDg1MSAxNy43NzQyIDI1LjEyOSAxNy43NzQyQzIzLjc3MyAxNy43NzQyIDIyLjY3NzQgMTYuNjc4NiAyMi42Nzc0IDE1LjMyMjZDMjIuNjc3NCAxMy45NjY1IDIzLjc3MyAxMi44NzEgMjUuMTI5IDEyLjg3MVpNMTEuNjQ1MiAzMS4yNTgxQzkuNjE0OTIgMzEuMjU4MSA3Ljk2Nzc0IDI5LjY0OTIgNy45Njc3NCAyNy42NTczQzcuOTY3NzQgMjYuMTI1IDEwLjE1MTIgMjMuMDI5OCAxMS4xNTQ4IDIxLjY5NjhDMTEuNCAyMS4zNjczIDExLjg5MDMgMjEuMzY3MyAxMi4xMzU1IDIxLjY5NjhDMTMuMTM5MSAyMy4wMjk4IDE1LjMyMjYgMjYuMTI1IDE1LjMyMjYgMjcuNjU3M0MxNS4zMjI2IDI5LjY0OTIgMTMuNjc1NCAzMS4yNTgxIDExLjY0NTIgMzEuMjU4MVpNMTIuODcxIDE3Ljc3NDJDMTEuNTE0OSAxNy43NzQyIDEwLjQxOTQgMTYuNjc4NiAxMC40MTk0IDE1LjMyMjZDMTAuNDE5NCAxMy45NjY1IDExLjUxNDkgMTIuODcxIDEyLjg3MSAxMi44NzFDMTQuMjI3IDEyLjg3MSAxNS4zMjI2IDEzLjk2NjUgMTUuMzIyNiAxNS4zMjI2QzE1LjMyMjYgMTYuNjc4NiAxNC4yMjcgMTcuNzc0MiAxMi44NzEgMTcuNzc0MlpNMjUuOTEwNSAyOS41ODc5QzI0LjE5NDQgMjcuNTM0NyAyMS42NzM4IDI2LjM1NDggMTkgMjYuMzU0OEMxNy4zNzU4IDI2LjM1NDggMTcuMzc1OCAyMy45MDMyIDE5IDIzLjkwMzJDMjIuNDAxNiAyMy45MDMyIDI1LjYxMTcgMjUuNDA0OCAyNy43ODc1IDI4LjAyNUMyOC44NDQ4IDI5LjI4MTUgMjYuOTI5NCAzMC44MjE0IDI1LjkxMDUgMjkuNTg3OVoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=",sizeSlug:"small"}],["core/heading",{align:"center",content:Object(c.__)("Your cart is currently empty!","woo-gutenberg-products-block"),level:2,className:"wc-block-cart__empty-cart__title"}],["core/paragraph",{align:"center",content:Object(c.sprintf)(Object(c.__)('<a href="%s">Browse store</a>.',"woo-gutenberg-products-block"),l.P),dropCap:!1}],["core/separator",{className:"is-style-dots"}],["core/heading",{align:"center",content:Object(c.__)("New in store","woo-gutenberg-products-block"),level:2}],["woocommerce/product-new",{columns:3,rows:1}]]}))}),Ae=(n(862),function(e){var t=e.attributes,n=e.setAttributes,a=t.isShippingCalculatorEnabled,i=t.isShippingCostHidden,s=t.checkoutPageId,u=t.hasDarkControls,d=Object(h.b)().currentPostId,m=Object(r.useRef)(s).current;return Object(r.createElement)(o.InspectorControls,null,d!==l.d&&Object(r.createElement)(p.Notice,{className:"wc-block-cart__page-notice",isDismissible:!1,status:"warning"},Object(w.a)(Object(c.__)("If you would like to use this block as your default cart you must update your <a>page settings in WooCommerce</a>.","woo-gutenberg-products-block"),{a:Object(r.createElement)("a",{href:Object(k.getAdminLink)("admin.php?page=wc-settings&tab=advanced"),target:"_blank",rel:"noopener noreferrer"})})),l.M&&Object(r.createElement)(p.PanelBody,{title:Object(c.__)("Shipping rates","woo-gutenberg-products-block")},Object(r.createElement)(p.ToggleControl,{label:Object(c.__)("Shipping calculator","woo-gutenberg-products-block"),help:Object(c.__)("Allow customers to estimate shipping by entering their address.","woo-gutenberg-products-block"),checked:a,onChange:function(){return n({isShippingCalculatorEnabled:!a})}}),Object(r.createElement)(p.ToggleControl,{label:Object(c.__)("Hide shipping costs until an address is entered","woo-gutenberg-products-block"),help:Object(c.__)("If checked, shipping rates will be hidden until the customer uses the shipping calculator or enters their address during checkout.","woo-gutenberg-products-block"),checked:i,onChange:function(){return n({isShippingCostHidden:!i})}})),!(d===l.d&&0===m)&&Object(r.createElement)(O.a,{pageId:s,setPageId:function(e){return n({checkoutPageId:e})},labels:{title:Object(c.__)("Proceed to Checkout button","woo-gutenberg-products-block"),default:Object(c.__)("WooCommerce Checkout Page","woo-gutenberg-products-block")}}),Object(r.createElement)(p.PanelBody,{title:Object(c.__)("Style","woo-gutenberg-products-block")},Object(r.createElement)(p.ToggleControl,{label:Object(c.__)("Dark mode inputs","woo-gutenberg-products-block"),help:Object(c.__)("Inputs styled specifically for use on dark background colors.","woo-gutenberg-products-block"),checked:u,onChange:function(){return n({hasDarkControls:!u})}})),Object(r.createElement)(b.a,null))}),Le=function(e){var t=e.className,n=e.attributes,o=e.setAttributes;return Object(r.createElement)("div",{className:u()(t,"wp-block-woocommerce-cart",{"is-editor-preview":n.isPreview})},Object(r.createElement)(f,{label:Object(c.__)("Edit","woo-gutenberg-products-block"),views:[{value:"full",name:Object(c.__)("Full Cart","woo-gutenberg-products-block")},{value:"empty",name:Object(c.__)("Empty Cart","woo-gutenberg-products-block")}],defaultView:"full",render:function(e){return Object(r.createElement)(j.a,{header:Object(c.__)("Cart Block Error","woo-gutenberg-products-block"),text:Object(c.__)("There was an error whilst rendering the cart block. If this problem continues, try re-creating the block.","woo-gutenberg-products-block"),showErrorMessage:!0,errorMessagePrefix:Object(c.__)("Error message:","woo-gutenberg-products-block")},"full"===e&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(h.a,{previewData:{previewCart:S.a}},Object(r.createElement)(Ae,{attributes:n,setAttributes:o}),Object(r.createElement)(p.Disabled,null,Object(r.createElement)(E,null,Object(r.createElement)(xe,{attributes:n})))),Object(r.createElement)(Te,{hidden:!0})),"empty"===e&&Object(r.createElement)(Te,null))}}))},ze=(n(861),{isPreview:{type:"boolean",default:!1,save:!1},isShippingCalculatorEnabled:{type:"boolean",default:l.w},isShippingCostHidden:{type:"boolean",default:l.x},checkoutPageId:{type:"number",default:0},hasDarkControls:{type:"boolean",default:l.r}}),Ue={title:Object(c.__)("Cart","woo-gutenberg-products-block"),icon:{src:Object(r.createElement)(a.a,{srcElement:i.a}),foreground:"#96588a"},category:"woocommerce",keywords:[Object(c.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(c.__)("Shopping cart.","woo-gutenberg-products-block"),supports:{align:["wide","full"],html:!1,multiple:!1},example:{attributes:{isPreview:!0}},attributes:ze,edit:Le,save:function(e){var t=e.attributes;return Object(r.createElement)("div",{className:u()("is-loading",t.className)},Object(r.createElement)(o.InnerBlocks.Content,null))}};Object(l.Z)("woocommerce/cart",Ue)},904:function(e,t,n){"use strict";var r=n(8),c=n.n(r),o=n(0),a=(n(2),n(265)),i=n(10),s=n.n(i),u=n(5),l=n(1),b=n(33),p=n(7),d=n.n(p),m=n(27),g=n.n(m),f=n(9),O=n(86),j=n(58),h=n(193),v=n(233),_=n(945),y=(n(264),function(e){var t=e.className,n=e.feedback,r=e.id,c=e.label,a=e.onChange,i=e.options,s=e.value;return Object(o.createElement)("div",{id:r,className:d()("wc-block-components-select",t,{"is-active":s})},Object(o.createElement)(_.a,{label:c,onChange:function(e){var t=e.selectedItem;a(t.key)},options:i,value:s}),n)}),E=Object(h.a)((function(e){var t=e.className,n=e.id,r=e.value,a=e.instanceId,i=e.required,u=e.errorId,b=e.errorMessage,p=void 0===b?Object(l.__)("Please select a value.","woo-gutenberg-products-block"):b,m=g()(e,["className","id","value","instanceId","required","errorId","errorMessage"]),h=n||"select-"+a;u=u||h;var _=Object(j.a)(r),E=Object(O.b)(),w=E.getValidationError,k=E.setValidationErrors,S=E.clearValidationError;Object(f.useEffect)((function(){!i||_?S(u):k(c()({},u,{message:p,hidden:!0}))}),[S,_,u,p,i,k]),Object(f.useEffect)((function(){return function(){S(u)}}),[S,u]);var N=w(u)||{};return Object(o.createElement)(y,s()({id:h,className:d()(t,{"has-error":N.message&&!N.hidden}),feedback:Object(o.createElement)(v.a,{propertyName:u}),value:_},m))})),w=(n(374),function(e){var t=e.className,n=e.countries,r=e.id,c=e.label,a=e.onChange,i=e.value,s=void 0===i?"":i,u=e.autoComplete,p=void 0===u?"off":u,m=e.required,g=void 0!==m&&m,f=e.errorId,O=e.errorMessage,j=void 0===O?Object(l.__)("Please select a country.","woo-gutenberg-products-block"):O,h=Object(o.useMemo)((function(){return Object.keys(n).map((function(e){return{key:e,name:Object(b.decodeEntities)(n[e])}}))}),[n]);return Object(o.createElement)("div",{className:d()(t,"wc-block-components-country-input")},Object(o.createElement)(E,{id:r,label:c,onChange:a,options:h,value:h.find((function(e){return e.key===s})),errorId:f,errorMessage:j,required:g}),"off"!==p&&Object(o.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:p,value:s,onChange:function(e){var t=e.target.value,n=h.find((function(e){return e.key===t}));a(n?n.key:"")},style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1}))}),k=function(e){return Object(o.createElement)(w,s()({countries:u.L},e))},S=function(e){return Object(o.createElement)(w,s()({countries:u.a},e))},N=(n(375),function(e){var t=e.className,n=e.id,r=e.states,c=e.country,i=e.label,s=e.onChange,u=e.autoComplete,p=void 0===u?"off":u,m=e.value,g=void 0===m?"":m,f=e.required,O=void 0!==f&&f,j=r[c],h=Object(o.useMemo)((function(){return j?Object.keys(j).map((function(e){return{key:e,name:Object(b.decodeEntities)(j[e])}})):[]}),[j]),v=Object(o.useCallback)((function(e){if(h.length>0){var t=h.find((function(t){return t.key===e||t.name===e}));s(t?t.key:"")}else s(e)}),[s,h]);return h.length>0?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E,{className:d()(t,"wc-block-components-state-input"),id:n,label:i,onChange:v,options:h,value:h.find((function(e){return e.key===g})),errorMessage:Object(l.__)("Please select a state.","woo-gutenberg-products-block"),required:O}),"off"!==p&&Object(o.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:p,value:g,onChange:function(e){return v(e.target.value)},style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1})):Object(o.createElement)(a.a,{className:t,id:n,label:i,onChange:v,autoComplete:p,value:g,required:O})}),P=function(e){return Object(o.createElement)(N,s()({states:u.O},e))},C=function(e){return Object(o.createElement)(N,s()({states:u.b},e))},M=n(159);function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D={city:{index:9},postcode:{index:7}},x={state:{required:!1}},T={state:{required:!1,hidden:!0}},A={postcode:{required:!1,hidden:!0}},L={AE:I(I({},A),x),AF:T,AO:I(I({},A),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),AT:I(I({},D),T),AU:{city:{label:Object(l.__)("Suburb","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Suburb (optional)","woo-gutenberg-products-block")},postcode:{label:Object(l.__)("Postcode","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Postcode (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}},AX:I(I({},D),T),BD:{postcode:{required:!1},state:{label:Object(l.__)("District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("District (optional)","woo-gutenberg-products-block")}},BE:I(I({},D),T),BH:I({postcode:{required:!1}},T),BI:T,BO:A,BS:A,CA:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},CH:I(I({},D),{},{state:{label:Object(l.__)("Canton","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Canton (optional)","woo-gutenberg-products-block"),required:!1}}),CL:{city:{require:!0},postcode:{required:!1},state:{label:Object(l.__)("Region","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Region (optional)","woo-gutenberg-products-block")}},CN:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},CO:{postcode:{required:!1}},CZ:T,DE:I(I({},D),T),DK:I(I({},D),T),EE:I(I({},D),T),ES:I(I({},D),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),FI:I(I({},D),T),FR:I(I({},D),T),GB:{postcode:{label:Object(l.__)("Postcode","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Postcode (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("County","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("County (optional)","woo-gutenberg-products-block")}},GP:T,GF:T,GR:x,HK:{postcode:{required:!1},city:{label:Object(l.__)("Town/District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Town/District (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("Region","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Region (optional)","woo-gutenberg-products-block")}},HU:{state:{label:Object(l.__)("County","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("County (optional)","woo-gutenberg-products-block")}},ID:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},IE:{postcode:{label:Object(l.__)("Eircode","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Eircode (optional)","woo-gutenberg-products-block"),required:!1},state:{label:Object(l.__)("County","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("County (optional)","woo-gutenberg-products-block")}},IS:I(I({},D),T),IL:I(I({},D),T),IM:T,IT:I(I({},D),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),JP:{first_name:{index:2},last_name:{index:1},address_1:{index:7},address_2:{index:8},postcode:{index:4},city:{index:6},state:{label:Object(l.__)("Prefecture","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Prefecture (optional)","woo-gutenberg-products-block"),index:5}},KR:T,KW:T,LB:T,LI:I(I({},D),{},{state:{label:Object(l.__)("Municipality","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Municipality (optional)","woo-gutenberg-products-block"),required:!1}}),LK:T,LU:T,LV:{state:{label:Object(l.__)("Municipality","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Municipality (optional)","woo-gutenberg-products-block"),required:!1}},MQ:T,MT:T,MZ:I(I({},A),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),NL:I(I({},D),T),NG:I(I({},A),{},{state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}}),NO:I(I({},D),T),NP:{postcode:{required:!1},state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}},NZ:{postcode:{label:Object(l.__)("Postcode","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Postcode (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("Region","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Region (optional)","woo-gutenberg-products-block")}},PL:I(I({},D),T),PT:T,RE:T,RO:{state:{label:Object(l.__)("County","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("County (optional)","woo-gutenberg-products-block")}},RS:T,SE:I(I({},D),T),SG:I({city:{required:!1}},T),SK:I(I({},D),T),SI:I(I({},D),T),SR:I({},A),ST:I(I({},A),{},{state:{label:Object(l.__)("District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("District (optional)","woo-gutenberg-products-block")}}),MD:{state:{label:Object(l.__)("Municipality/District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Municipality/District (optional)","woo-gutenberg-products-block")}},TR:I(I({},D),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),UG:I(I({},A),{},{city:{label:Object(l.__)("Town/Village","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Town/Village (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("District (optional)","woo-gutenberg-products-block")}}),US:{postcode:{label:Object(l.__)("ZIP","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("ZIP (optional)","woo-gutenberg-products-block")},state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}},VN:I({city:{index:8},postcode:{index:7,required:!1}},T),WS:A,YT:T,ZA:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},ZW:A};function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=Object(h.a)((function(e){var t=e.id,n=e.fields,r=void 0===n?Object.keys(M.a):n,i=e.fieldConfig,s=void 0===i?{}:i,u=e.instanceId,b=e.onChange,p=e.type,d=void 0===p?"shipping":p,m=e.values,g=Object(O.b)(),f=g.getValidationError,j=g.setValidationErrors,h=g.clearValidationError,v=L[m.country]||{},_=r.map((function(e){return U(U(U({key:e},M.a[e]),v[e]),s[e])})).sort((function(e,t){return e.index-t.index})),y=f("shipping-missing-country")||{};return Object(o.useEffect)((function(){"shipping"===d&&function(e,t,n,r){r||e.country||!(e.city||e.state||e.postcode)||t({"shipping-missing-country":{message:Object(l.__)("Please select a country to calculate rates.","woo-gutenberg-products-block"),hidden:!1}}),r&&e.country&&n("shipping-missing-country")}(m,j,h,y.message&&!y.hidden)}),[m,y.message,y.hidden,j,h,d]),t=t||u,Object(o.createElement)("div",{id:t,className:"wc-block-components-address-form"},_.map((function(e){if(e.hidden)return null;if("country"===e.key){var n="shipping"===d?k:S;return Object(o.createElement)(n,{key:e.key,id:"".concat(t,"-").concat(e.key),label:e.required?e.label:e.optionalLabel,value:m.country,autoComplete:e.autocomplete,onChange:function(e){return b(U(U({},m),{},{country:e,state:"",city:"",postcode:""}))},errorId:"shipping"===d?"shipping-missing-country":null,errorMessage:e.errorMessage,required:e.required})}if("state"===e.key){var r="shipping"===d?P:C;return Object(o.createElement)(r,{key:e.key,id:"".concat(t,"-").concat(e.key),country:m.country,label:e.required?e.label:e.optionalLabel,value:m.state,autoComplete:e.autocomplete,onChange:function(e){return b(U(U({},m),{},{state:e}))},errorMessage:e.errorMessage,required:e.required})}return Object(o.createElement)(a.a,{key:e.key,id:"".concat(t,"-").concat(e.key),className:"wc-block-components-address-form__".concat(e.key),label:e.required?e.label:e.optionalLabel,value:m[e.key],autoCapitalize:e.autocapitalize,autoComplete:e.autocomplete,onChange:function(t){return b(U(U({},m),{},c()({},e.key,t)))},errorMessage:e.errorMessage,required:e.required})})))}))},908:function(e,t,n){"use strict";var r=n(11),c=n.n(r),o=n(0),a=n(1),i=n(5),s=(n(2),n(156)),u=n(8),l=n.n(u),b=n(904),p=n(99),d=n(43),m=n.n(d),g=n(86);n(263);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=function(e){var t=e.address,n=e.onUpdate,r=e.addressFields,i=Object(o.useState)(t),s=c()(i,2),u=s[0],l=s[1],d=Object(g.b)(),f=d.hasValidationErrors,j=d.showAllValidationErrors,h={};return r.forEach((function(e){h[e]=O(O({},h[e]),{},"country"===e?{errorMessage:Object(a.__)("Please select a country to calculate rates.","woo-gutenberg-products-block"),required:!0}:{required:!1})})),Object(o.createElement)("form",{className:"wc-block-components-shipping-calculator-address"},Object(o.createElement)(b.a,{fields:r,fieldConfig:h,onChange:l,values:u}),Object(o.createElement)(p.a,{className:"wc-block-components-shipping-calculator-address__button",disabled:m()(u,t),onClick:function(e){if(e.preventDefault(),j(),!f)return n(u)},type:"submit"},Object(a.__)("Update","woo-gutenberg-products-block")))},h=function(e){var t=e.onUpdate,n=void 0===t?function(){}:t,r=e.addressFields,c=void 0===r?["country","state","city","postcode"]:r,a=Object(s.b)(),i=a.shippingAddress,u=a.setShippingAddress;return Object(o.createElement)("div",{className:"wc-block-components-shipping-calculator"},Object(o.createElement)(j,{address:i,addressFields:c,onUpdate:function(e){u(e),n(e)}}))},v=n(60),_=n.n(v),y=n(33),E=function(e){var t=e.address;if(0===Object.values(t).length)return null;var n="string"==typeof i.L[t.country]?Object(y.decodeEntities)(i.L[t.country]):"",r="object"===_()(i.O[t.country])&&"string"==typeof i.O[t.country][t.state]?Object(y.decodeEntities)(i.O[t.country][t.state]):t.state,c=[];c.push(t.postcode.toUpperCase()),c.push(t.city),c.push(r),c.push(n);var s=c.filter(Boolean).join(", ");return s&&Object(o.createElement)("span",{className:"wc-block-components-shipping-address"},Object(a.sprintf)(Object(a.__)("Shipping to %s","woo-gutenberg-products-block"),s)+" ")},w=n(134),k=n(65),S=n(55),N=n(259),P=n(916),C=function(e){var t=i.p?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:Object(y.decodeEntities)(e.name),value:e.rate_id,description:Object(o.createElement)(o.Fragment,null,Number.isFinite(t)&&Object(o.createElement)(S.a,{currency:Object(N.c)(e),value:t}),Number.isFinite(t)&&e.delivery_time?" — ":null,Object(y.decodeEntities)(e.delivery_time))}},M=function(e){var t=e.hasRates,n=e.shippingRates,r=e.shippingRatesLoading;return Object(o.createElement)("fieldset",{className:"wc-block-components-totals-shipping__fieldset"},Object(o.createElement)("legend",{className:"screen-reader-text"},t?Object(a.__)("Shipping options","woo-gutenberg-products-block"):Object(a.__)("Choose a shipping option","woo-gutenberg-products-block")),Object(o.createElement)(P.a,{className:"wc-block-components-totals-shipping__options",collapsibleWhenMultiple:!0,noResultsMessage:Object(a.__)("No shipping options were found.","woo-gutenberg-products-block"),renderOption:C,shippingRates:n,shippingRatesLoading:r}))},R=function(e){return e.some((function(e){return e.shipping_rates.length}))};n(373),t.a=function(e){var t=e.currency,n=e.values,r=e.isCheckout,s=void 0!==r&&r,u=e.showCalculator,l=void 0===u||u,b=e.showRatesWithoutAddress,p=void 0!==b&&b,d=Object(o.useState)(!1),m=c()(d,2),g=m[0],f=m[1],O=Object(w.a)(),j=O.shippingRates,v=O.shippingRatesLoading,_=O.hasShippingAddress,y=O.shippingAddress,S=i.p?parseInt(n.total_shipping,10)+parseInt(n.total_shipping_tax,10):parseInt(n.total_shipping,10),N=R(j)||S,P=p||_;return N||_||s?Object(o.createElement)("div",{className:"wc-block-components-totals-shipping"},Object(o.createElement)(k.a,{label:Object(a.__)("Shipping","woo-gutenberg-products-block"),value:S||"",description:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E,{address:y})," ",l&&Object(o.createElement)("button",{className:"wc-block-components-totals-shipping__change-address-button",onClick:function(){f(!g)},"aria-expanded":g},Object(a.__)("(change address)","woo-gutenberg-products-block"))),currency:t}),l&&g&&Object(o.createElement)(h,{onUpdate:function(){f(!1)}}),!s&&P&&Object(o.createElement)(M,{hasRates:N,shippingRates:j,shippingRatesLoading:v})):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(k.a,{className:"wc-block-components-totals-shipping",label:Object(a.__)("Shipping","woo-gutenberg-products-block"),value:l?Object(o.createElement)("button",{className:"wc-block-components-totals-shipping__change-address-button",onClick:function(){f(!g)}},Object(a.__)("Calculate","woo-gutenberg-products-block")):Object(o.createElement)("em",null,Object(a.__)("Calculated during checkout","woo-gutenberg-products-block"))}),l&&g&&Object(o.createElement)(h,{onUpdate:function(){f(!1)}}))}},916:function(e,t,n){"use strict";var r=n(0),c=n(1),o=n(9),a=(n(2),n(87)),i=n(125),s=n(878),u=n(27),l=n.n(u),b=n(864),p=n(33),d=n(48),m=n(136),g=n(154),f=n(7),O=n.n(f),j=n(210),h=n(165),v=n(390),_=function(e){var t=e.className,n=e.noResultsMessage,c=e.onChange,o=e.options,a=e.renderOption,i=e.selected;if(0===o.length)return Object(r.createElement)(v.a,{isDismissible:!1,className:O()("wc-block-components-shipping-rates-control__no-results-notice","woocommerce-message","woocommerce-info")},n);if(o.length>1)return Object(r.createElement)(j.a,{className:t,onChange:c,selected:i,options:o.map(a)});var s=a(o[0]),u=s.label,l=s.secondaryLabel,b=s.description,p=s.secondaryDescription;return Object(r.createElement)(h.a,{label:u,secondaryLabel:l,description:b,secondaryDescription:p})},y=(n(204),function(e){var t=e.className,n=e.collapsible,o=void 0!==n&&n,a=e.noResultsMessage,i=e.onChange,s=e.renderOption,u=e.selected,l=e.shippingRate,b=e.showItems,f=e.title,j=Object(r.createElement)(r.Fragment,null,f&&Object(r.createElement)(m.a,{className:"wc-block-components-shipping-rates-control__package-title",headingLevel:"3"},f),b&&Object(r.createElement)("ul",{className:"wc-block-components-shipping-rates-control__package-items"},Object.values(l.items).map((function(e){var t=Object(p.decodeEntities)(e.name),n=e.quantity;return Object(r.createElement)("li",{key:t,className:"wc-block-components-shipping-rates-control__package-item"},Object(r.createElement)(d.a,{label:"".concat(t," ×").concat(n),screenReaderLabel:Object(c.sprintf)(Object(c._n)("%1$s (%2$d unit)","%1$s (%2$d units)",n,"woo-gutenberg-products-block"),t,n)}))})))),h=Object(r.createElement)(_,{className:t,noResultsMessage:a,onChange:i,options:l.shipping_rates,renderOption:s,selected:u});return o?Object(r.createElement)(g.a,{className:"wc-block-components-shipping-rates-control__package",hasBorder:!0,initialOpen:!0,title:j},h):Object(r.createElement)("div",{className:O()("wc-block-components-shipping-rates-control__package",t)},j,h)}),E=function(e){var t=e.className,n=e.collapsible,c=void 0!==n&&n,o=e.noResultsMessage,a=e.renderOption,i=e.shippingRates,s=void 0===i?[]:i,u=Object(b.a)(s),p=u.selectShippingRate,d=u.selectedShippingRates;return Object(r.createElement)("div",{className:"wc-block-components-shipping-rates-control"},s.map((function(e){var n=e.package_id,i=l()(e,["package_id"]);return Object(r.createElement)(y,{key:n,className:t,collapsible:c,noResultsMessage:o,onChange:function(e){p(e,n)},renderOption:a,selected:d[n],shippingRate:i,showItems:s.length>1,title:s.length>1?i.name:null})})))};t.a=function(e){var t=e.shippingRates,n=e.shippingRatesLoading,u=e.className,l=e.collapsibleWhenMultiple,b=void 0!==l&&l,p=e.noResultsMessage,d=e.renderOption;return Object(o.useEffect)((function(){if(!n){var e=Object(s.a)(t),r=Object(s.b)(t);0===r?Object(a.speak)(Object(c.__)("No shipping options were found.","woo-gutenberg-products-block")):1===e?Object(a.speak)(Object(c.sprintf)(Object(c._n)("%d shipping option was found.","%d shipping options were found.",r,"woo-gutenberg-products-block"),r)):Object(a.speak)(Object(c.sprintf)(Object(c._n)("Shipping option searched for %d package.","Shipping options searched for %d packages.",e,"woo-gutenberg-products-block"),e)+" "+Object(c.sprintf)(Object(c._n)("%d shipping option was found","%d shipping options were found",r,"woo-gutenberg-products-block"),r))}}),[n,t]),Object(r.createElement)(i.a,{isLoading:n,screenReaderLabel:Object(c.__)("Loading shipping rates…","woo-gutenberg-products-block"),showSpinner:!0},Object(r.createElement)(E,{className:u,collapsible:t.length>1&&b,noResultsMessage:p,renderOption:d,shippingRates:t}))}},917:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(8),a=n.n(o),i=n(0),s=n(7),u=n.n(s),l=function(e){return"wc-block-components-payment-method-icon wc-block-components-payment-method-icon--".concat(e)},b=function(e){var t=e.id,n=e.src,r=void 0===n?null:n,c=e.alt,o=void 0===c?"":c;return r?Object(i.createElement)("img",{className:l(t),src:r,alt:o}):null},p=n(5),d=[{id:"alipay",alt:"Alipay",src:p.U+"img/payment-methods/alipay.svg"},{id:"amex",alt:"American Express",src:p.U+"img/payment-methods/amex.svg"},{id:"bancontact",alt:"Bancontact",src:p.U+"img/payment-methods/bancontact.svg"},{id:"diners",alt:"Diners Club",src:p.U+"img/payment-methods/diners.svg"},{id:"discover",alt:"Discover",src:p.U+"img/payment-methods/discover.svg"},{id:"eps",alt:"EPS",src:p.U+"img/payment-methods/eps.svg"},{id:"giropay",alt:"Giropay",src:p.U+"img/payment-methods/giropay.svg"},{id:"ideal",alt:"iDeal",src:p.U+"img/payment-methods/ideal.svg"},{id:"jcb",alt:"JCB",src:p.U+"img/payment-methods/jcb.svg"},{id:"laser",alt:"Laser",src:p.U+"img/payment-methods/laser.svg"},{id:"maestro",alt:"Maestro",src:p.U+"img/payment-methods/maestro.svg"},{id:"mastercard",alt:"Mastercard",src:p.U+"img/payment-methods/mastercard.svg"},{id:"multibanco",alt:"Multibanco",src:p.U+"img/payment-methods/multibanco.svg"},{id:"p24",alt:"Przelewy24",src:p.U+"img/payment-methods/p24.svg"},{id:"sepa",alt:"Sepa",src:p.U+"img/payment-methods/sepa.svg"},{id:"sofort",alt:"Sofort",src:p.U+"img/payment-methods/sofort.svg"},{id:"unionpay",alt:"Union Pay",src:p.U+"img/payment-methods/unionpay.svg"},{id:"visa",alt:"Visa",src:p.U+"img/payment-methods/visa.svg"},{id:"wechat",alt:"WeChat",src:p.U+"img/payment-methods/wechat.svg"}],m=n(60),g=n.n(m);n(382);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.icons,n=void 0===t?[]:t,r=e.align,o=void 0===r?"center":r,a=function(e){var t={};return e.forEach((function(e){var n={};"string"==typeof e&&(n={id:e,alt:e,src:null}),"object"===g()(e)&&(n={id:e.id||"",alt:e.alt||"",src:e.src||null}),n.id&&!t[n.id]&&(t[n.id]=n)})),Object.values(t)}(n);if(0===a.length)return null;var s=u()("wc-block-components-payment-method-icons",{"wc-block-components-payment-method-icons--align-left":"left"===o,"wc-block-components-payment-method-icons--align-right":"right"===o});return Object(i.createElement)("div",{className:s},a.map((function(e){var t,n=O(O({},e),(t=e.id,d.find((function(e){return e.id===t}))||{}));return Object(i.createElement)(b,c()({key:"payment-method-icon-"+e.id},n))})))}},924:function(e,t,n){"use strict";var r=n(0),c=(n(2),n(33)),o=n(7),a=n.n(o),i=function(e){var t=e.className,n=e.variation,o=void 0===n?[]:n;if(!o||0===o.length)return null;var i=o.map((function(e){return e.attribute?"".concat(Object(c.decodeEntities)(e.attribute),": ").concat(Object(c.decodeEntities)(e.value)):"".concat(Object(c.decodeEntities)(e.value))})).join(" / ");return Object(r.createElement)("div",{className:a()("wc-block-components-product-variation-data",t)},i)},s=n(177),u=n(3),l=function(e){var t=e.className,n=e.shortDescription,c=void 0===n?"":n,o=e.fullDescription,a=c||(void 0===o?"":o);return a?Object(r.createElement)(s.a,{className:t,source:a,maxLength:15,countType:Object(u.getSetting)("wordCountType","words")}):null};n(370),t.a=function(e){var t=e.shortDescription,n=void 0===t?"":t,c=e.fullDescription,o=void 0===c?"":c,a=e.variation,s=void 0===a?[]:a;return Object(r.createElement)("div",{className:"wc-block-components-product-metadata"},Object(r.createElement)(l,{className:"wc-block-components-product-metadata__description",shortDescription:n,fullDescription:o}),Object(r.createElement)(i,{className:"wc-block-components-product-metadata__variation-data",variation:s}))}},928:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),c=n(5),o=[{destination:{},package_id:0,name:Object(r.__)("Shipping","woo-gutenberg-products-block"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:Object(r._x)("Beanie with Logo","example product in Cart Block","woo-gutenberg-products-block"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:Object(r._x)("Beanie","example product in Cart Block","woo-gutenberg-products-block"),quantity:1}],shipping_rates:[{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:Object(r.__)("Free shipping","woo-gutenberg-products-block"),description:"",delivery_time:"",price:"000",rate_id:"free_shipping:1",method_id:"flat_rate",selected:!0},{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:Object(r.__)("Local pickup","woo-gutenberg-products-block"),description:"",delivery_time:"",price:"200",rate_id:"local_pickup:1",method_id:"local_pickup",selected:!1}]}],a={coupons:[],shipping_rates:c.N?o:[],items:[{key:"1",id:1,quantity:2,name:Object(r.__)("Beanie","woo-gutenberg-products-block"),short_description:Object(r.__)("Warm hat for winter","woo-gutenberg-products-block"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-beanie",permalink:"https://example.org",low_stock_remaining:2,backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,images:[{id:10,src:c.U+"img/beanie.jpg",thumbnail:c.U+"img/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(r.__)("Color","woo-gutenberg-products-block"),value:Object(r.__)("Yellow","woo-gutenberg-products-block")},{attribute:Object(r.__)("Size","woo-gutenberg-products-block"),value:Object(r.__)("Small","woo-gutenberg-products-block")}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:"800",regular_price:"800",sale_price:"800",raw_prices:{precision:6,price:"8000000",regular_price:"8000000",sale_price:"8000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"1600",line_subtotal_tax:"0",line_total:"1600",line_total_tax:"0"}},{key:"2",id:2,quantity:1,name:Object(r.__)("Cap","woo-gutenberg-products-block"),short_description:Object(r.__)("Lightweight baseball cap","woo-gutenberg-products-block"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-cap",permalink:"https://example.org",backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,images:[{id:11,src:c.U+"img/cap.jpg",thumbnail:c.U+"img/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(r.__)("Color","woo-gutenberg-products-block"),value:Object(r.__)("Orange","woo-gutenberg-products-block")}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:"1400",regular_price:"1600",sale_price:"1400",raw_prices:{precision:6,price:"14000000",regular_price:"16000000",sale_price:"14000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"1400",line_subtotal_tax:"0",line_total:"1400",line_total_tax:"0"}}],items_count:3,items_weight:0,needs_payment:!0,needs_shipping:c.M,totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",total_items:"3000",total_items_tax:"0",total_fees:"0",total_fees_tax:"0",total_discount:"0",total_discount_tax:"0",total_shipping:"200",total_shipping_tax:"0",total_tax:"0",total_price:"3200",tax_lines:[]}}},95:function(e,t){!function(){e.exports=this.wp.autop}()},99:function(e,t,n){"use strict";var r=n(10),c=n.n(r),o=n(27),a=n.n(o),i=n(0),s=n(280),u=(n(2),n(7)),l=n.n(u);n(239);t.a=function(e){var t=e.className,n=e.showSpinner,r=void 0!==n&&n,o=e.children,u=a()(e,["className","showSpinner","children"]),b=l()("wc-block-components-button",t,{"wc-block-components-button--loading":r});return Object(i.createElement)(s.a,c()({className:b},u),r&&Object(i.createElement)("span",{className:"wc-block-components-button__spinner","aria-hidden":"true"}),Object(i.createElement)("span",{className:"wc-block-components-button__text"},o))}}});
build/checkout-frontend.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-wordcount'), 'version' => 'c88f7933a6f2254d56bf1ee02c412a27');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-wordcount'), 'version' => '40abd34b30a29acaf73a5e3a6250e30c');
build/checkout-frontend.js CHANGED
@@ -3,7 +3,7 @@
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t,n){"use strict";n.d(t,"j",(function(){return o})),n.d(t,"w",(function(){return c})),n.d(t,"A",(function(){return a})),n.d(t,"t",(function(){return i})),n.d(t,"n",(function(){return s})),n.d(t,"q",(function(){return u})),n.d(t,"i",(function(){return l})),n.d(t,"B",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return f})),n.d(t,"k",(function(){return b})),n.d(t,"c",(function(){return m})),n.d(t,"o",(function(){return g})),n.d(t,"p",(function(){return h})),n.d(t,"E",(function(){return y})),n.d(t,"F",(function(){return O})),n.d(t,"x",(function(){return j})),n.d(t,"a",(function(){return w})),n.d(t,"y",(function(){return E})),n.d(t,"b",(function(){return _})),n.d(t,"s",(function(){return k})),n.d(t,"g",(function(){return S})),n.d(t,"z",(function(){return C})),n.d(t,"h",(function(){return x})),n.d(t,"v",(function(){return N})),n.d(t,"u",(function(){return I})),n.d(t,"D",(function(){return T})),n.d(t,"C",(function(){return A})),n.d(t,"d",(function(){return M})),n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return F})),n.d(t,"r",(function(){return L})),n.d(t,"G",(function(){return V}));var r=n(3),o=Object(r.getSetting)("currentUserIsAdmin",!1),c=Object(r.getSetting)("reviewRatingsEnabled",!0),a=Object(r.getSetting)("showAvatars",!0),i=(Object(r.getSetting)("max_columns",6),Object(r.getSetting)("min_columns",1),Object(r.getSetting)("default_columns",3),Object(r.getSetting)("max_rows",6),Object(r.getSetting)("min_rows",1),Object(r.getSetting)("default_rows",3),Object(r.getSetting)("min_height",500),Object(r.getSetting)("default_height",500),Object(r.getSetting)("placeholderImgSrc","")),s=(Object(r.getSetting)("thumbnail_size",300),Object(r.getSetting)("isLargeCatalog")),u=Object(r.getSetting)("limitTags"),l=(Object(r.getSetting)("hasProducts",!0),Object(r.getSetting)("hasTags",!0),Object(r.getSetting)("homeUrl",""),Object(r.getSetting)("couponsEnabled",!0)),d=(Object(r.getSetting)("shippingEnabled",!0),Object(r.getSetting)("taxesEnabled",!0)),p=Object(r.getSetting)("displayItemizedTaxes",!1),f=Object(r.getSetting)("hasDarkEditorStyleSupport",!1),b=(Object(r.getSetting)("displayShopPricesIncludingTax",!1),Object(r.getSetting)("displayCartPricesIncludingTax",!1)),m=(Object(r.getSetting)("productCount",0),Object(r.getSetting)("attributes",[])),g=Object(r.getSetting)("isShippingCalculatorEnabled",!0),h=Object(r.getSetting)("isShippingCostHidden",!1),v=Object(r.getSetting)("woocommerceBlocksPhase",1),y=Object(r.getSetting)("wcBlocksAssetUrl",""),O=Object(r.getSetting)("wcBlocksBuildUrl",""),j=Object(r.getSetting)("shippingCountries",{}),w=Object(r.getSetting)("allowedCountries",{}),E=Object(r.getSetting)("shippingStates",{}),_=Object(r.getSetting)("allowedStates",{}),k=(Object(r.getSetting)("shippingMethodsExist",!1),Object(r.getSetting)("paymentGatewaySortOrder",[])),S=Object(r.getSetting)("checkoutShowLoginReminder",!0),R={id:0,title:"",permalink:""},P=Object(r.getSetting)("storePages",{shop:R,cart:R,checkout:R,privacy:R,terms:R}),C=P.shop.permalink,x=(P.checkout.id,P.checkout.permalink),N=P.privacy.permalink,I=P.privacy.title,T=P.terms.permalink,A=P.terms.title,M=(P.cart.id,P.cart.permalink),D=Object(r.getSetting)("checkoutAllowsGuest",!1),F=Object(r.getSetting)("checkoutAllowsSignup",!1),L=Object(r.getSetting)("loginUrl","/wp-login.php"),V=(n(39),function(){return v>1})},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(71),o=n(72),c=n(54),a=n(73);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||a()}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(56);e.exports=function(e,t){if(null==e)return{};var n,o,c=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},,function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(40);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Object(r.a)(e,t,n[t])}))}return e}},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(53);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(26);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(60);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(25),o=n(18);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){"use strict";var r=n(6),o=n.n(r),c=(n(4),n(2)),a=n(5),i=n.n(a);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t,n=e.label,r=e.screenReaderLabel,o=e.wrapperElement,a=e.wrapperProps,s=void 0===a?{}:a,l=null!=n,d=null!=r;return!l&&d?(t=o||"span",s=u(u({},s),{},{className:i()(s.className,"screen-reader-text")}),React.createElement(t,s,r)):(t=o||c.Fragment,l&&d&&n!==r?React.createElement(t,s,React.createElement("span",{"aria-hidden":"true"},n),React.createElement("span",{className:"screen-reader-text"},r)):React.createElement(t,s,n))}},function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(27),c=n.n(o),a=function(e){var t=Object(r.useRef)();return c()(e,t.current)||(t.current=e),t.current}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(46);var o=n(53);function c(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(6),a=n.n(c),i=n(14),s=n.n(i),u=n(101),l=n(5),d=n.n(l);n(123);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.className,n=e.value,r=e.currency,c=e.onValueChange,a=s()(e,["className","value","currency","onValueChange"]);if("-"===n)return null;var i=n/Math.pow(10,r.minorUnit);if(!Number.isFinite(i))return null;var l=d()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),p=f(f(f({displayType:"text"},a),function(e){return{thousandSeparator:e.thousandSeparator,decimalSeparator:e.decimalSeparator,decimalScale:e.minorUnit,fixedDecimalScale:!0,prefix:e.prefix,suffix:e.suffix,isNumericString:!0}}(r)),{},{value:void 0,currency:void 0,onValueChange:void 0}),b=c?function(e){var t=e.value*Math.pow(10,r.minorUnit);c(t)}:function(){};return React.createElement(u.a,o()({className:l},p,{value:i,onValueChange:b}))}},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n(4);var r=n(5),o=n.n(r),c=n(0),a=n(38);n(164);t.a=function(e){var t=e.className,n=e.currency,r=e.label,i=e.value,s=e.description;return React.createElement("div",{className:o()("wc-block-components-totals-item",t)},React.createElement("span",{className:"wc-block-components-totals-item__label"},r),Object(c.isValidElement)(i)?React.createElement("div",{className:"wc-block-components-totals-item__value"},i):React.createElement(a.a,{className:"wc-block-components-totals-item__value",currency:n,displayType:"text",value:i}),React.createElement("div",{className:"wc-block-components-totals-item__description"},s))}},function(e,t,n){var r=n(91),o=n(92),c=n(54),a=n(93);e.exports=function(e){return r(e)||o(e)||c(e)||a()}},,function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){"use strict";var r=n(30),o=n.n(r),c=n(31),a=n.n(c),i=n(18),s=n.n(i),u=n(32),l=n.n(u),d=n(33),p=n.n(d),f=n(20),b=n.n(f),m=n(6),g=n.n(m),h=(n(4),n(2)),v=n(1),y=n(8),O=function(e){var t=e.imageUrl,n=void 0===t?"".concat(y.E,"img/block-error.svg"):t,r=e.header,o=void 0===r?Object(v.__)("Oops!","woo-gutenberg-products-block"):r,c=e.text,a=void 0===c?Object(v.__)("There was an error loading the content.","woo-gutenberg-products-block"):c,i=e.errorMessage,s=e.errorMessagePrefix,u=void 0===s?Object(v.__)("Error:","woo-gutenberg-products-block"):s;return React.createElement("div",{className:"wc-block-error wc-block-components-error"},n&&React.createElement("img",{className:"wc-block-error__image wc-block-components-error__image",src:n,alt:""}),React.createElement("div",{className:"wc-block-error__content wc-block-components-error__content"},o&&React.createElement("p",{className:"wc-block-error__header wc-block-components-error__header"},o),a&&React.createElement("p",{className:"wc-block-error__text wc-block-components-error__text"},a),i&&React.createElement("p",{className:"wc-block-error__message wc-block-components-error__message"},u?u+" ":"",i)))};n(63);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var o=b()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var w=function(e){l()(n,e);var t=j(n);function n(){var e;o()(this,n);for(var r=arguments.length,c=new Array(r),a=0;a<r;a++)c[a]=arguments[a];return e=t.call.apply(t,[this].concat(c)),g()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.header,n=e.imageUrl,r=e.showErrorMessage,o=e.text,c=e.errorMessagePrefix,a=this.state,i=a.errorMessage;return a.hasError?React.createElement(O,{errorMessage:r?i:null,header:t,imageUrl:n,text:o,errorMessagePrefix:c}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:React.createElement(h.Fragment,null,React.createElement("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}}]),n}(h.Component);w.defaultProps={showErrorMessage:!0};t.a=w},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.dom}()},,function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(22),o=n(7),c=n(0),a=function(e){var t=Object(r.a)({},e,{role:"img","aria-hidden":"true",focusable:"false"});return Object(c.createElement)("svg",Object(o.omit)(t,"__unstableActive"))}},function(e,t){function n(e,t,n,r,o,c,a){try{var i=e[c](a),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var a=e.apply(t,r);function i(e){n(a,o,c,i,s,"next",e)}function s(e){n(a,o,c,i,s,"throw",e)}i(void 0)}))}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(46);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){var r=n(55);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return m}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=n(0),s=n(7),u=n(27),l=n.n(u);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=Object(i.createContext)({getValidationError:function(){return""},setValidationErrors:function(e){},clearValidationError:function(e){},clearAllValidationErrors:function(){},hideValidationError:function(){},showValidationError:function(){},showAllValidationErrors:function(){},hasValidationErrors:!1,getValidationErrorId:function(e){return e}}),b=function(){return Object(i.useContext)(f)},m=function(e){var t=e.children,n=Object(i.useState)({}),r=a()(n,2),c=r[0],u=r[1],d=Object(i.useCallback)((function(e){return c[e]}),[c]),b=Object(i.useCallback)((function(e){var t=c[e];return!t||t.hidden?"":"validate-error-".concat(e)}),[c]),m=Object(i.useCallback)((function(e){u((function(t){return t[e]?Object(s.omit)(t,[e]):t}))}),[]),g=Object(i.useCallback)((function(){u({})}),[]),h=Object(i.useCallback)((function(e){e&&u((function(t){return e=Object(s.pickBy)(e,(function(e,n){return"string"==typeof e.message&&(!t.hasOwnProperty(n)||!l()(t[n],e))})),0===Object.values(e).length?t:p(p({},t),e)}))}),[]),v=Object(i.useCallback)((function(e,t){u((function(n){if(!n.hasOwnProperty(e))return n;var r=p(p({},n[e]),t);return l()(n[e],r)?n:p(p({},n),{},o()({},e,r))}))}),[]),y={getValidationError:d,setValidationErrors:h,clearValidationError:m,clearAllValidationErrors:g,hideValidationError:Object(i.useCallback)((function(e){v(e,{hidden:!0})}),[v]),showValidationError:Object(i.useCallback)((function(e){v(e,{hidden:!1})}),[v]),showAllValidationErrors:Object(i.useCallback)((function(){u((function(e){var t={};return Object.keys(e).forEach((function(n){e[n].hidden&&(t[n]=p(p({},e[n]),{},{hidden:!1}))})),0===Object.values(t).length?e:p(p({},e),t)}))}),[]),hasValidationErrors:Object.keys(c).length>0,getValidationErrorId:b};return React.createElement(f.Provider,{value:y},t)}},,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(62);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,a){if(a!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){},function(e,t,n){"use strict";var r=n(10),o=n.n(r),c=n(2),a=(n(4),n(5)),i=n.n(a),s=n(0),u=n(34),l=(n(135),Object(c.forwardRef)((function(e,t){var n=e.className,r=e.id,c=e.type,a=void 0===c?"text":c,l=e.ariaLabel,d=e.ariaDescribedBy,p=e.label,f=e.screenReaderLabel,b=e.disabled,m=e.help,g=e.autoCapitalize,h=void 0===g?"off":g,v=e.autoComplete,y=void 0===v?"off":v,O=e.value,j=void 0===O?"":O,w=e.onChange,E=e.required,_=void 0!==E&&E,k=e.onBlur,S=void 0===k?function(){}:k,R=e.feedback,P=Object(s.useState)(!1),C=o()(P,2),x=C[0],N=C[1];return React.createElement("div",{className:i()("wc-block-components-text-input",n,{"is-active":x||j})},React.createElement("input",{type:a,id:r,value:j,ref:t,autoCapitalize:h,autoComplete:y,onChange:function(e){w(e.target.value)},onFocus:function(){return N(!0)},onBlur:function(){S(),N(!1)},"aria-label":l||p,disabled:b,"aria-describedby":m&&!d?r+"__help":d,required:_}),React.createElement(u.a,{label:p,screenReaderLabel:f||p,wrapperElement:"label",wrapperProps:{htmlFor:r},htmlFor:r}),!!m&&React.createElement("p",{id:r+"__help",className:"wc-block-components-text-input__help"},m),R)})));t.a=l},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1),o=(n(4),n(5)),c=n.n(o),a=n(0);function i(){return Object(a.createElement)("span",{className:"components-spinner"})}n(158),t.a=function(e){var t=e.children,n=e.className,o=e.screenReaderLabel,a=e.showSpinner,s=void 0!==a&&a,u=e.isLoading;return void 0===u||u?React.createElement("div",{className:c()(n,"wc-block-components-loading-mask")},s&&React.createElement(i,null),React.createElement("div",{className:"wc-block-components-loading-mask__children","aria-hidden":!0},t),React.createElement("span",{className:"screen-reader-text"},o||Object(r.__)("Loading…","woo-gutenberg-products-block"))):t}},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(11)),c=r(n(56)),a=n(2),i=r(a),s=r(n(110)),u=r(n(18)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function d(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function p(e,t){return l.und(e)||l.nul(e)?t:e}function f(e){return l.und(e)?[]:l.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.fun(e)?e.apply(void 0,n):e}function m(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(l.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var c;return l.und(t[r])?o({},n,((c={})[r]=e[r],c)):n}),{});return o({to:t},n)}var g,h,v=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.addChild(u(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(u(t))}))},t}return s(t,e),t}(v),O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.addChild(u(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(u(t))}))},t}s(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof v)&&(t[n]=r instanceof v?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(v);function j(e,t){g={fn:e,transform:t}}function w(e){h=e}var E,_=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},k=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){E=e}var R,P=function(){return Date.now()};function C(e){R=e}var x,N,I=function(e){return e.current};function T(e){x=e}var A=Object.freeze({get applyAnimatedValues(){return g},injectApplyAnimatedValues:j,get colorNames(){return h},injectColorNames:w,get requestFrame(){return _},get cancelFrame(){return k},injectFrame:function(e,t){_=e,k=t},get interpolation(){return E},injectStringInterpolator:S,get now(){return P},injectNow:function(e){P=e},get defaultElement(){return R},injectDefaultElement:C,get animatedApi(){return I},injectAnimatedApi:function(e){I=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:T,get manualFrameloop(){return N},injectManualFrameloop:function(e){N=e}}),M=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:x(t.style)}):t,r.update=n,r.attach(),r}return s(t,e),t}(O),D=!1,F=new Set,L=function e(){if(!D)return!1;var t=P(),n=F,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var c;if(r){if(o>=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var a=c,i=!1,s=0;s<a.configs.length;s++){for(var u=a.configs[s],l=void 0,d=void 0,p=0;p<u.animatedValues.length;p++){var f=u.animatedValues[p];if(!f.done){var b=u.fromValues[p],m=u.toValues[p],g=f.lastPosition,h=m instanceof v,y=Array.isArray(u.initialVelocity)?u.initialVelocity[p]:u.initialVelocity;if(h&&(m=m.getValue()),u.immediate)f.setValue(m),f.done=!0;else if("string"!=typeof b&&"string"!=typeof m){if(void 0!==u.duration)g=b+u.easing((t-f.startTime)/u.duration)*(m-b),l=t>=f.startTime+u.duration;else if(u.decay)g=b+y/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(l=Math.abs(f.lastPosition-g)<.1)&&(m=g);else{d=void 0!==f.lastTime?f.lastTime:t,y=void 0!==f.lastVelocity?f.lastVelocity:u.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;j<O;++j){g+=1*(y+=1*((-u.tension*(g-m)+-u.friction*y)/u.mass)/1e3)/1e3}var w=!(!u.clamp||0===u.tension)&&(b<m?g>m:g<m),E=Math.abs(y)<=u.precision,k=0===u.tension||Math.abs(m-g)<=u.precision;l=w||E&&k,f.lastVelocity=y,f.lastTime=t}h&&!u.toValues[p].done&&(l=!1),l?(f.value!==m&&(g=m),f.done=!0):i=!0,f.setValue(g),f.lastPosition=g}else f.setValue(m),f.done=!0}}a.props.onFrame&&(a.values[u.name]=u.interpolation.getValue())}a.props.onFrame&&a.props.onFrame(a.values),i||(F.delete(a),a.stop(!0))}return F.size?N?N():_(e):D=!1,D};function V(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return V({range:e,output:t,extrapolate:n});if(E&&"string"==typeof e.output[0])return E(e);var r=e,o=r.output,c=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",i=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,a,i,s){var u=s?s(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===i)return u;"clamp"===i&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=c(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,c[t],c[t+1],o[t],o[t+1],s,a,i,r.map)}}var B=function(e){function t(n,r,o,c){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof y&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=V(r,o,c),a}s(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=V(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(y);var U=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}s(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(v),H=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new U(e)})),n}s(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(y),z=0,q=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=z++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,a=t.to,i=c(t,["delay","to"]);if(l.arr(a)||l.fun(a))this.queue.push(o({},i,{delay:r,to:a}));else if(a){var s={};Object.entries(a).forEach((function(e){var t,n=e[0],c=e[1],a=o({to:(t={},t[n]=c,t),delay:b(r,n)},i),u=s[a.delay]&&s[a.delay].to;s[a.delay]=o({},s[a.delay],a,{to:o({},u,a.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(i),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,c=e.to,a=void 0===c?{}:c;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var i=t.delay,s=c(t,["delay"]),u=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=l.arr(s.to)||l.fun(s.to);i?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,u):n.diff(s).start(u))}),i):d?n.runAsync(s,u):n.diff(s).start(u)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,F.has(t)||F.add(t),D||(D=!0,_(N||L));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,F.has(t)&&F.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),a=this.local,i=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,c=o({},r,m(r.to[t]));l.arr(c.config)&&(c.config=c.config[t]),i=i.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},u=0;u<r.to.length;u++)s(u);else if(l.fun(r.to)){var d,p=0;i=i.then((function(){return r.to((function(e){var t=o({},r,m(e));if(l.arr(t.config)&&(t.config=t.config[p]),p++,a===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}i.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,c=void 0===r?{}:r,a=n.to,i=void 0===a?{}:a,s=n.config,u=void 0===s?{}:s,d=n.reverse,m=n.attach,g=n.reset,v=n.immediate;if(d){var y=[i,c];c=y[0],i=y[1]}this.merged=o({},c,this.merged,i),this.hasChanged=!1;var O=m&&m(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],a=n[1],i=e[r]||{},s=l.num(a),d=l.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!h[a],m=l.arr(a),y=!s&&!m&&!d,j=l.und(c[r])?a:c[r],w=s||m||d?a:1,_=b(u,r);O&&(w=O.animations[r].parent);var k,S=i.parent,R=i.interpolation,C=f(O?w.getPayload():w),x=a;y&&(x=E({range:[0,1],output:[a,a]})(1));var N,I=R&&R.getValue(),T=!l.und(S)&&i.animatedValues.some((function(e){return!e.done})),A=!l.equ(x,I),M=!l.equ(x,i.previous),D=!l.equ(_,i.config);if(g||M&&A||D){var F;if(s||d)S=R=i.parent||new U(j);else if(m)S=R=i.parent||new H(j);else if(y){var L=i.interpolation&&i.interpolation.calc(i.parent.value);L=void 0===L||g?j:L,i.parent?(S=i.parent).setValue(0,!1):S=new U(0);var V={output:[L,a]};i.interpolation?(R=i.interpolation,i.interpolation.updateConfig(V)):R=S.interpolate(V)}return C=f(O?w.getPayload():w),k=f(S.getPayload()),g&&!y&&S.setValue(j,!1),t.hasChanged=!0,k.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=T?e.lastVelocity:void 0,e.lastTime=T?e.lastTime:void 0,e.startTime=P(),e.done=!1,e.animatedStyles.clear()})),b(v,r)&&S.setValue(y?w:a,!1),o({},e,((F={})[r]=o({},i,{name:r,parent:S,interpolation:R,animatedValues:k,toValues:C,previous:x,config:_,fromValues:f(S.getValue()),immediate:b(v,r),initialVelocity:p(_.velocity,0),clamp:p(_.clamp,!1),precision:p(_.precision,.01),tension:p(_.tension,170),friction:p(_.friction,26),mass:p(_.mass,1),duration:_.duration,easing:p(_.easing,(function(e){return e})),decay:_.decay}),F))}return A?e:(y&&(S.setValue(1,!1),R.updateConfig({output:[x,x]})),S.done=!0,t.hasChanged=!0,o({},e,((N={})[r]=o({},e[r],{previous:x}),N)))}),this.animations),this.hasChanged)for(var j in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[j]=this.animations[j].interpolation,this.values[j]=this.animations[j].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),W=function(e,t){var n=a.useRef(!1),r=a.useRef(),o=l.fun(t),c=a.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var c=new q,a=o?b(t,r,c):t[r];return 0===r&&(n=a.ref),c.update(a),n||c.start(),c})),n]}),[e]),i=c[0],s=c[1];r.current=i;a.useImperativeHandle(s,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var u=a.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?b(e,n,t):e[n]),s||t.start()}))}}),[e]);a.useEffect((function(){n.current?o||u(t):s||r.current.forEach((function(e){return e.start()}))})),a.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,u,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},K=0,G=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},Y=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,a=c(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:G(t,r)},a)};function $(e,t){var n=function(){if(o){if(c>=r.length)return"break";a=r[c++]}else{if((c=r.next()).done)return"break";a=c.value}var n=a.key,i=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(i),e.current.deleted=e.current.deleted.filter(i))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=g.transform(t)),n.payload=t,n}return s(t,e),t}(O),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+Q(J,J,J)),te=new RegExp("rgba"+Q(J,J,J,J)),ne=new RegExp("hsl"+Q(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+Q(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",J)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,ie=/^#([0-9a-fA-F]{8})$/;function se(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=se(o,r,e+1/3),a=se(o,r,e),i=se(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*a)<<16|Math.round(255*i)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function pe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|pe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ie.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|ue(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(ue(de(n[1]),fe(n[2]),fe(n[3]))|pe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ge=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,he=new RegExp("("+Object.keys(Z).join("|")+")","g"),ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}ve=Object.keys(ve).reduce((function(e,t){return ye.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ve);var je={};T((function(e){return new X(e)})),C("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ge,be)})).map((function(e){return e.replace(he,be)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return V(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),w(Z),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,i=c(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),d=Oe(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,d):e.style[u]=d}for(var p in i){var f=s?p:je[p]||(je[p]=p.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,i[p])}}),(function(e){return e}));var we,Ee,_e=(we=function(e){return a.forwardRef((function(t,n){var r=d(),s=a.useRef(!0),u=a.useRef(null),p=a.useRef(null),f=a.useCallback((function(e){var t=u.current;u.current=new M(e,(function(){var e=!1;p.current&&(e=g.fn(p.current,u.current.getAnimatedValue())),p.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return I(p,s,r)})),f(t);var b,m=u.current.getValue(),h=(m.scrollTop,m.scrollLeft,c(m,["scrollTop","scrollLeft"])),v=(b=e,!l.fun(b)||b.prototype instanceof i.Component?function(e){return p.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return i.createElement(e,o({},h,{ref:v}))}))},void 0===(Ee=!1)&&(Ee=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ee?t[0].toLowerCase()+t.substring(1):t;return e[n]=we(n),e}),we)}),ke=_e(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=_e,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=L,t.animated=ke,t.a=ke,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=A,t.useSpring=function(e){var t=l.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=a.useRef(!1),r=l.fun(t),c=b(t),i=a.useRef(),s=W(e,(function(e,t){return 0===e&&(i.current=[]),i.current.push(t),o({},c,{config:b(c.config,e),attach:e>0&&function(){return i.current[e-1]}})})),u=s[0],d=s[1],p=s[2],f=a.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=i.current[r];return o({},e,{config:b(e.config||c.config,t),attach:a&&function(){return a}})}))}}),[e,c.reverse]);return a.useEffect((function(){n.current&&!r&&f(t)})),a.useEffect((function(){n.current=!0}),[]),r?[u,f,p]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),i=Y(r),s=i.lazy,u=void 0!==s&&s,l=(i.unique,i.reset),p=void 0!==l&&l,f=(i.enter,i.leave,i.update,i.onDestroyed),m=(i.keys,i.items,i.onFrame),g=i.onRest,h=i.onStart,v=i.ref,y=c(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=a.useRef(!1),w=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(w.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(w.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(w.current.instances).map((function(e){return e[1]}))}}})),w.current=function(e,t){var n=e.first,r=e.prevProps,a=c(e,["first","prevProps"]),i=Y(t),s=i.items,u=i.keys,l=i.initial,d=i.from,p=i.enter,f=i.leave,m=i.update,g=i.trail,h=void 0===g?0:g,v=i.unique,y=i.config,O=i.order,j=void 0===O?["enter","leave","update"]:O,w=Y(r),E=w.keys,_=w.items,k=o({},a.current),S=[].concat(a.deleted),R=Object.keys(k),P=new Set(R),C=new Set(u),x=u.filter((function(e){return!P.has(e)})),N=a.transitions.filter((function(e){return!e.destroyed&&!C.has(e.originalKey)})).map((function(e){return e.originalKey})),I=u.filter((function(e){return P.has(e)})),T=-h;for(;j.length;){switch(j.shift()){case"enter":x.forEach((function(e,t){v&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),o=s[r],c=n&&void 0!==l?"initial":"enter";k[e]={slot:c,originalKey:e,key:v?String(e):K++,item:o,trail:T+=h,config:b(y,o,c),from:b(n&&void 0!==l?l||{}:d,o),to:b(p,o)}}));break;case"leave":N.forEach((function(e){var t=E.indexOf(e),n=_[t];S.unshift(o({},k[e],{slot:"leave",destroyed:!0,left:E[Math.max(0,t-1)],right:E[Math.min(E.length,t+1)],trail:T+=h,config:b(y,n,"leave"),to:b(f,n)})),delete k[e]}));break;case"update":I.forEach((function(e){var t=u.indexOf(e),n=s[t];k[e]=o({},k[e],{item:n,slot:"update",trail:T+=h,config:b(y,n,"update"),to:b(m,n)})}))}}var A=u.map((function(e){return k[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=A.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),A=[].concat(A.slice(0,t),[r],A.slice(t))})),o({},a,{changed:x.length||N.length||I.length,first:n&&0===x.length,transitions:A,current:k,deleted:S,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,a=e.trail,i=e.key,s=e.item;w.current.instances.has(i)||w.current.instances.set(i,new q);var l=w.current.instances.get(i),d=o({},y,{to:r,from:n,config:c,ref:v,onRest:function(n){w.current.mounted&&(e.destroyed&&(v||u||$(w,i),f&&f(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(v||u)&&w.current.deleted.length>0&&$(w),g&&g(s,t,n))},onStart:h&&function(){return h(s,t)},onFrame:m&&function(e){return m(s,t,e)},delay:a,reset:p&&"enter"===t});l.update(d),w.current.paused||l.start()})),a.useEffect((function(){return w.current.mounted=j.current=!0,function(){w.current.mounted=j.current=!1,Array.from(w.current.instances).map((function(e){return e[1].destroy()})),w.current.instances.clear()}}),[]),w.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:w.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var a=c.controllers;if(a.length){var i=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+i})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(14),a=n.n(c),i=n(50),s=function(e){var t=e.className,n=e.size,r=void 0===n?20:n,c=a()(e,["className","size"]);return React.createElement(i.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:r,height:r},c),React.createElement("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},u=React.createElement(s,null),l=n(126),d=n(0);t.a=function(e){let t;switch(e.icon){case"arrow-down-alt2":t=u;break;case"no-alt":t=l.a}return t?Object(d.cloneElement)(t,{size:e.size||20,className:e.className}):null}},,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(14),a=n.n(c),i=n(76),s=(n(4),n(5)),u=n.n(s);n(152);t.a=function(e){var t=e.className,n=e.showSpinner,r=void 0!==n&&n,c=e.children,s=a()(e,["className","showSpinner","children"]),l=u()("wc-block-components-button",t,{"wc-block-components-button--loading":r});return React.createElement(i.a,o()({className:l},s),r&&React.createElement("span",{className:"wc-block-components-button__spinner","aria-hidden":"true"}),React.createElement("span",{className:"wc-block-components-button__text"},c))}},function(e,t,n){"use strict";var r=n(22),o=n(9),c=n(29),a=n(0),i=n(68),s=n(50);t.a=function(e){var t=e.icon,n=void 0===t?null:t,u=e.size,l=Object(c.a)(e,["icon","size"]),d=u||20;if("string"==typeof n)return Object(a.createElement)(i.a,Object(o.a)({icon:n,size:d},l));if(n&&i.a===n.type)return Object(a.cloneElement)(n,Object(r.a)({size:d},l));var p=u||24;if("function"==typeof n)return n.prototype instanceof a.Component?Object(a.createElement)(n,Object(r.a)({size:p},l)):n(Object(r.a)({size:p},l));if(n&&("svg"===n.type||n.type===s.a)){var f=Object(r.a)({width:p,height:p},n.props,l);return Object(a.createElement)(s.a,f)}return Object(a.isValidElement)(n)?Object(a.cloneElement)(n,Object(r.a)({size:p},l)):n}},function(e,t,n){"use strict";var r=n(22),o=n(29),c=n(5),a=n.n(c),i=n(0);t.a=Object(i.forwardRef)((function(e,t){var n=e.href,c=e.target,s=e.isPrimary,u=e.isLarge,l=e.isSmall,d=e.isTertiary,p=e.isToggled,f=e.isBusy,b=e.isDefault,m=e.isLink,g=e.isDestructive,h=e.className,v=e.disabled,y=Object(o.a)(e,["href","target","isPrimary","isLarge","isSmall","isTertiary","isToggled","isBusy","isDefault","isLink","isDestructive","className","disabled"]),O=a()("components-button",h,{"is-button":b||s||u||l,"is-default":b||!s&&(u||l),"is-primary":s,"is-large":u,"is-small":l,"is-tertiary":d,"is-toggled":p,"is-busy":f,"is-link":m,"is-destructive":g}),j=void 0===n||v?"button":"a",w="a"===j?{href:n,target:c}:{type:"button",disabled:v};return Object(i.createElement)(j,Object(r.a)({},w,y,{className:O,ref:t}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e,t,n){void 0===n&&(n={});var o=n.maxWait,c=Object(r.useRef)(null),a=Object(r.useRef)([]),i=n.leading,s=void 0===n.trailing||n.trailing,u=Object(r.useRef)(!1),l=Object(r.useRef)(null),d=Object(r.useRef)(!1),p=Object(r.useRef)(e);p.current=e;var f=Object(r.useCallback)((function(){clearTimeout(l.current),clearTimeout(c.current),c.current=null,a.current=[],l.current=null,u.current=!1}),[]);Object(r.useEffect)((function(){return d.current=!1,function(){d.current=!0}}),[]);var b=Object(r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];a.current=e,clearTimeout(l.current),u.current&&(u.current=!1),l.current||!i||u.current||(p.current.apply(p,e),u.current=!0),l.current=setTimeout((function(){var t=!0;i&&u.current&&(t=!1),f(),!d.current&&s&&t&&p.current.apply(p,e)}),t),o&&!c.current&&s&&(c.current=setTimeout((function(){var e=a.current;f(),d.current||p.current.apply(null,e)}),o))}),[o,t,f,i,s]),m=Object(r.useCallback)((function(){l.current&&(p.current.apply(null,a.current),f())}),[f]);return[b,f,m]}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(14),a=n.n(c),i=n(5),s=n.n(i);n(4),n(160);t.a=function(e){var t=e.children,n=e.className,r=e.headingLevel,c=a()(e,["children","className","headingLevel"]),i=s()("wc-block-components-title",n),u="h".concat(r);return React.createElement(u,o()({className:i},c),t)}},function(e,t){!function(){e.exports=this.wp.autop}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(6),o=n.n(r),c=n(88),a=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(){var e=Object(c.b)(),t=e.notices,n=e.createNotice,r=e.removeNotice,o=e.createSnackbarNotice,i=e.setIsSuppressed,u=Object(a.useRef)(t);Object(a.useEffect)((function(){u.current=t}),[t]);var l=Object(a.useMemo)((function(){return{hasNoticesOfType:function(e){return u.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u.current.forEach((function(t){null!==e&&t.status!==e||r(t.id)}))},removeNotice:r}}),[r]),d=Object(a.useMemo)((function(){return{addDefaultNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("default",e,s({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("error",e,s({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("warning",e,s({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("info",e,s({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("success",e,s({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(e,t)}}}),[n,o]);return s(s(s({notices:t},l),d),{},{setIsSuppressed:i})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(15),o=n(12),c=n(118),a=n(17),i=n(7),s={cartCoupons:[],cartItems:[],cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:[],cartTotals:{},cartIsLoading:!0,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:[],shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:function(){}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(c.a)(),n=t.isEditor,u=t.previewData,l=(null==u?void 0:u.previewCart)||{},d=e.shouldSelect,p=Object(o.useSelect)((function(e,t){var o=t.dispatch;if(!d)return s;if(n)return{cartCoupons:l.coupons,cartItems:l.items,cartItemsCount:l.items_count,cartItemsWeight:l.items_weight,cartNeedsPayment:l.needs_payment,cartNeedsShipping:l.needs_shipping,cartItemErrors:[],cartTotals:l.totals,cartIsLoading:!1,cartErrors:[],shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},shippingRates:l.shipping_rates,shippingRatesLoading:!1,hasShippingAddress:!1,receiveCart:"function"==typeof(null==l?void 0:l.receiveCart)?l.receiveCart:function(){}};var c=e(r.CART_STORE_KEY),u=c.getCartData(),p=c.getCartErrors(),f=c.getCartTotals(),b=!c.hasFinishedResolution("getCartData"),m=c.areShippingRatesLoading(),g=o(r.CART_STORE_KEY).receiveCart,h=Object(i.mapValues)(u.shippingAddress,(function(e){return Object(a.decodeEntities)(e)}));return{cartCoupons:u.coupons,cartItems:u.items||[],cartItemsCount:u.itemsCount,cartItemsWeight:u.itemsWeight,cartNeedsPayment:u.needsPayment,cartNeedsShipping:u.needsShipping,cartItemErrors:u.errors||[],cartTotals:f,cartIsLoading:b,cartErrors:p,shippingAddress:h,shippingRates:u.shippingRates||[],shippingRatesLoading:m,hasShippingAddress:!!h.country,receiveCart:g}}),[d]);return p}},function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";var r=n(5),o=n.n(r);n(4),n(162);t.a=function(e){var t=e.children,n=e.className;return React.createElement("div",{className:o()("wc-block-components-product-badge",n)},t)}},function(e,t,n){"use strict";var r=n(10),o=n.n(r),c=n(0),a=n(5),i=n.n(a),s=(n(4),n(127)),u=n(50),l=React.createElement(u.a,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"})),d=React.createElement(u.a,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));n(170),t.a=function(e){var t=e.children,n=e.className,r=e.initialOpen,a=void 0!==r&&r,u=e.hasBorder,p=void 0!==u&&u,f=e.title,b=e.titleTag,m=void 0===b?"div":b,g=Object(c.useState)(a),h=o()(g,2),v=h[0],y=h[1];return React.createElement("div",{className:i()(n,"wc-blocks-components-panel",{"has-border":p})},React.createElement(m,null,React.createElement("button",{"aria-expanded":v,className:"wc-blocks-components-panel__button",onClick:function(){return y(!v)}},React.createElement(s.a,{"aria-hidden":"true",className:"wc-blocks-components-panel__button-icon",srcElement:v?l:d}),f)),React.createElement("div",{className:"wc-blocks-components-panel__content",hidden:!v},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(10),o=n.n(r),c=n(0),a=function(){var e=Object(c.useState)(),t=o()(e,2)[1];return function(e){return t((function(){throw e}))}}},function(e,t,n){"use strict";e.exports=n(130)},function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return M}));var r=n(10),o=n.n(r),c=n(0),a=n(81),i=n(12),s=n(27),u=n.n(s),l=n(140),d=n(15),p=n(17),f=n(80),b=function(e){return{country:e.country,state:e.state,city:e.city,postcode:e.postcode.replace(" ","").toUpperCase()}},m=function(){var e=Object(a.a)().shippingAddress,t=Object(c.useState)(e),n=o()(t,2),r=n[0],s=n[1],m=Object(l.a)(r,400),g=o()(m,1)[0],h=Object(i.useDispatch)(d.CART_STORE_KEY).updateShippingAddress,v=Object(f.a)().addErrorNotice,y=Object(c.useRef)(e);Object(c.useEffect)((function(){var e,t;g.country&&(e=y.current,t=g,!u()(b(e),b(t)))&&h(g).then((function(){y.current=g})).catch((function(e){v(e.message,{id:"shipping-form"})}))}),[g,h,v]);var O={};return Object.keys(r).forEach((function(e){O[e]=Object(p.decodeEntities)(r[e])})),{shippingAddress:O,setShippingAddress:s}},g=n(220),h=n(98),v={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},y={INVALID_COUNTRY:"woocommerce_rest_cart_shipping_rates_invalid_country",MISSING_COUNTRY:"woocommerce_rest_cart_shipping_rates_missing_country",INVALID_STATE:"woocommerce_rest_cart_shipping_rates_invalid_state"},O={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:function(){return null},shippingErrorTypes:v,shippingRates:[],setShippingRates:function(){return null},shippingRatesLoading:!1,selectedRates:[],setSelectedRates:function(){return null},shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},setShippingAddress:function(){return null},onShippingRateSuccess:function(){return null},onShippingRateFail:function(){return null},onShippingRateSelectSuccess:function(){return null},onShippingRateSelectFail:function(){return null},needsShipping:!1},j=n(113),w=n(195),E="shipping_rates_success",_="shipping_rates_fail",k="shipping_rate_select_success",S="shipping_rate_select_fail",R=function(e){return{onSuccess:Object(w.a)(E,e),onFail:Object(w.a)(_,e),onSelectSuccess:Object(w.a)(k,e),onSelectFail:Object(w.a)(S,e)}},P=n(196),C=v.NONE,x=v.INVALID_ADDRESS,N=v.UNKNOWN,I=function(e,t){var n=t.type;return Object.values(v).includes(n)?n:e},T=Object(c.createContext)(O),A=function(){return Object(c.useContext)(T)},M=function(e){var t=e.children,n=Object(h.b)().dispatchActions,r=Object(a.a)(),i=r.cartNeedsShipping,s=r.shippingRates,u=r.shippingRatesLoading,l=r.cartErrors,d=Object(c.useReducer)(I,C),p=o()(d,2),f=p[0],b=p[1],O=Object(c.useReducer)(j.b,{}),w=o()(O,2),A=w[0],M=w[1],D=m(),F=D.shippingAddress,L=D.setShippingAddress,V=Object(c.useRef)(A),B=Object(g.a)(s),U=B.selectShippingRate,H=B.selectedShippingRates,z=B.isSelectingRate,q=Object(c.useMemo)((function(){return{onShippingRateSuccess:R(M).onSuccess,onShippingRateFail:R(M).onFail,onShippingRateSelectSuccess:R(M).onSelectSuccess,onShippingRateSelectFail:R(M).onSelectFail}}),[M]);Object(c.useEffect)((function(){V.current=A}),[A]),Object(c.useEffect)((function(){u?n.incrementCalculating():n.decrementCalculating()}),[u,n]),Object(c.useEffect)((function(){z?n.incrementCalculating():n.decrementCalculating()}),[z,n]),Object(c.useEffect)((function(){l.length>0&&l.some((function(e){return!(!e.code||!Object.values(y).includes(e.code))}))?b({type:x}):b({type:C})}),[l]);var W=Object(c.useMemo)((function(){return{isPristine:f===C,isValid:f===C,hasInvalidAddress:f===x,hasError:f===N||f===x}}),[f]);Object(c.useEffect)((function(){u||0!==s.length&&!W.hasError||Object(P.a)(V.current,_,{hasInvalidAddress:W.hasInvalidAddress,hasError:W.hasError})}),[s,u,W.hasError,W.hasInvalidAddress]),Object(c.useEffect)((function(){!u&&s.length>0&&!W.hasError&&Object(P.a)(V.current,E,s)}),[s,u,W.hasError]),Object(c.useEffect)((function(){!z&&W.hasError&&Object(P.a)(V.current,S,{hasError:W.hasError,hasInvalidAddress:W.hasInvalidAddress})}),[H,z,W.hasError,W.hasInvalidAddress]),Object(c.useEffect)((function(){z||!H||W.hasError||Object(P.a)(V.current,k,H)}),[H,z,W.hasError]);var K={shippingErrorStatus:W,dispatchErrorStatus:b,shippingErrorTypes:v,shippingRates:s,setShippingRates:U,shippingRatesLoading:u,selectedRates:H,setSelectedRates:U,isSelectingRate:z,shippingAddress:F,setShippingAddress:L,onShippingRateSuccess:q.onShippingRateSuccess,onShippingRateFail:q.onShippingRateFail,onShippingRateSelectSuccess:q.onShippingRateSelectSuccess,onShippingRateSelectFail:q.onShippingRateSelectFail,needsShipping:i};return React.createElement(React.Fragment,null,React.createElement(T.Provider,{value:K},t))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return N})),n.d(t,"a",(function(){return I}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=(n(4),n(0)),s=n(12),u=n(139),l=n(9),d=n(23),p=n.n(d);function f(e,t,n,r,o,c,a){try{var i=e[c](a),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var c=e.apply(t,n);function a(e){f(c,r,o,a,i,"next",e)}function i(e){f(c,r,o,a,i,"throw",e)}a(void 0)}))}}var m=n(24),g=n(5),h=n.n(g),v=n(7),y=n(67),O=n(28),j=n(1),w=n(76);var E=Object(i.forwardRef)((function(e,t){var n=e.className,r=e.children,o=e.actions,c=void 0===o?[]:o,a=e.onRemove,s=void 0===a?v.noop:a;Object(i.useEffect)((function(){var e=setTimeout((function(){s()}),1e4);return function(){return clearTimeout(e)}}),[]);var u=h()(n,"components-snackbar");return c&&c.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),c=[c[0]]),Object(i.createElement)("div",{ref:t,className:u,onClick:s,tabIndex:"0",role:"button",onKeyPress:s,label:Object(j.__)("Dismiss this notice")},Object(i.createElement)("div",{className:"components-snackbar__content"},r,c.map((function(e,t){var n=e.label,r=e.onClick,o=e.url;return Object(i.createElement)(w.a,{key:t,href:o,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))}));var _=function(e){var t=e.notices,n=e.className,r=e.children,o=e.onRemove,c=void 0===o?v.noop:o,a=Object(O.useReducedMotion)(),s=Object(i.useState)((function(){return new WeakMap})),u=Object(m.a)(s,1)[0],d=Object(y.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=b(p.a.mark((function t(n){return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:u.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=b(p.a.mark((function e(t){return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:a});n=h()("components-snackbar-list",n);var f=function(e){return function(){return c(e.id)}};return Object(i.createElement)("div",{className:n},r,d.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(i.createElement)(y.animated.div,{key:n,style:r},Object(i.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&u.set(t,e)}},Object(i.createElement)(E,Object(l.a)({},Object(v.omit)(t,["content"]),{onRemove:f(t)}),t.content)))})))},k=n(80),S=n(118),R=function(){var e=Object(S.a)().isEditor,t=Object(k.a)(),n=t.notices,r=t.removeNotice;if(e)return null;var o=n.filter((function(e){return"snackbar"===e.type}));return React.createElement(_,{notices:o,className:"wc-block-components-notices__snackbar",onRemove:r})};function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=Object(i.createContext)({notices:[],createNotice:function(e,t,n){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),N=function(){return Object(i.useContext)(x)},I=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.createNoticeContainer,c=void 0===o||o,l=e.context,d=void 0===l?"wc/core":l,p=Object(s.useDispatch)("core/notices"),f=p.createNotice,b=p.removeNotice,m=Object(i.useState)(!1),g=a()(m,2),h=g[0],v=g[1],y=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};f(e,t,C(C({},n),{},{context:n.context||d}))}),[f,d]),O=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;b(e,t)}),[b,d]),j=Object(i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y("default",e,C(C({},t),{},{type:"snackbar"}))}),[y]),w={notices:Object(s.useSelect)((function(e){return{notices:e("core/notices").getNotices(d)}}),[d]).notices,createNotice:y,createSnackbarNotice:j,removeNotice:O,context:d,setIsSuppressed:v},E=h?null:React.createElement(u.a,{className:r,notices:w.notices}),_=h?null:React.createElement(R,null);return React.createElement(x.Provider,{value:w},c&&E,t,_)}},,function(e,t,n){"use strict";var r=n(1),o={first_name:{label:Object(r.__)("First name","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("First name (optional)","woo-gutenberg-products-block"),autocomplete:"given-name",autocapitalize:"sentences",required:!0,hidden:!1,index:1},last_name:{label:Object(r.__)("Last name","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Last name (optional)","woo-gutenberg-products-block"),autocomplete:"family-name",autocapitalize:"sentences",required:!0,hidden:!1,index:2},company:{label:Object(r.__)("Company","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Company (optional)","woo-gutenberg-products-block"),autocomplete:"organization",autocapitalize:"sentences",required:!1,hidden:!1,index:3},address_1:{label:Object(r.__)("Address","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Address (optional)","woo-gutenberg-products-block"),autocomplete:"address-line1",autocapitalize:"sentences",required:!0,hidden:!1,index:4},address_2:{label:Object(r.__)("Apartment, suite, etc.","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Apartment, suite, etc. (optional)","woo-gutenberg-products-block"),autocomplete:"address-line2",autocapitalize:"sentences",required:!1,hidden:!1,index:5},country:{label:Object(r.__)("Country/Region","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Country/Region (optional)","woo-gutenberg-products-block"),autocomplete:"country",required:!0,hidden:!1,index:6},city:{label:Object(r.__)("City","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("City (optional)","woo-gutenberg-products-block"),autocomplete:"address-level2",autocapitalize:"sentences",required:!0,hidden:!1,index:7},state:{label:Object(r.__)("State/County","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("State/County (optional)","woo-gutenberg-products-block"),autocomplete:"address-level1",autocapitalize:"sentences",required:!0,hidden:!1,index:8},postcode:{label:Object(r.__)("Postal code","woo-gutenberg-products-block"),optionalLabel:Object(r.__)("Postal code (optional)","woo-gutenberg-products-block"),autocomplete:"postal-code",autocapitalize:"characters",required:!0,hidden:!1,index:9}};t.a=o},function(e,t,n){var r=n(55);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";t.a=function(e){var t=e.label,n=e.secondaryLabel,r=e.description,o=e.secondaryDescription,c=e.id;return React.createElement("div",{className:"wc-block-components-radio-control__option-layout"},React.createElement("div",{className:"wc-block-components-radio-control__label-group"},t&&React.createElement("span",{id:c?"".concat(c,"__label"):null,className:"wc-block-components-radio-control__label"},t),n&&React.createElement("span",{id:c?"".concat(c,"__secondary-label"):null,className:"wc-block-components-radio-control__secondary-label"},n)),React.createElement("div",{className:"wc-block-components-radio-control__description-group"},r&&React.createElement("span",{id:c?"".concat(c,"__description"):null,className:"wc-block-components-radio-control__description"},r),o&&React.createElement("span",{id:c?"".concat(c,"__secondary-description"):null,className:"wc-block-components-radio-control__secondary-description"},o)))}},function(e,t){!function(){e.exports=this.wp.wordcount}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),o=function(e,t){var n=Object(r.useRef)();return Object(r.useEffect)((function(){n.current===e||t&&!t(e,n.current)||(n.current=e)}),[e,t]),n.current}},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(6),a=n.n(c),i=n(10),s=n.n(i),u=n(14),l=n.n(u),d=n(1),p=n(2),f=(n(4),n(5)),b=n.n(f),m=n(58),g=n(148),h=n(100),v=n(64);n(135);t.a=Object(h.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,c=e.ariaDescribedBy,i=e.errorId,u=e.validateOnMount,f=void 0===u||u,h=e.focusOnMount,y=void 0!==h&&h,O=e.onChange,j=e.showError,w=void 0===j||j,E=l()(e,["className","instanceId","id","ariaDescribedBy","errorId","validateOnMount","focusOnMount","onChange","showError"]),_=Object(p.useState)(!0),k=s()(_,2),S=k[0],R=k[1],P=Object(p.useRef)(),C=Object(m.b)(),x=C.getValidationError,N=C.hideValidationError,I=C.setValidationErrors,T=C.clearValidationError,A=C.getValidationErrorId,M=r||"textinput-"+n;i=i||M;var D=Object(p.useCallback)((function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];P.current.checkValidity()?T(i):I(a()({},i,{message:P.current.validationMessage||Object(d.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}))}),[T,i,I]);Object(p.useEffect)((function(){S&&(y&&P.current.focus(),R(!1))}),[y,S,R]),Object(p.useEffect)((function(){S&&(f&&D(),R(!1))}),[S,R,f,D]),Object(p.useEffect)((function(){return function(){T(i)}}),[T,i]);var F=x(i)||{},L=F.message&&!F.hidden,V=w&&L&&A(i)?A(i):c;return React.createElement(v.a,o()({className:b()(t,{"has-error":L}),id:M,onBlur:function(){D(!1)},feedback:w&&React.createElement(g.a,{propertyName:i}),ref:P,onChange:function(e){N(i),O(e)},ariaDescribedBy:V},E))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return Te})),n.d(t,"a",(function(){return Ae}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=n(0),s=n(1),u=n(80),l=n(194),d=n(12),p=n(96),f=n(3),b="pristine",m="idle",g="processing",h="complete",v="before_processing",y="after_processing",O=Object(f.getSetting)("checkoutData",{order_id:0,customer_id:0}),j={redirectUrl:"",status:b,hasError:!1,calculatingCount:0,orderId:O.order_id,orderNotes:"",customerId:O.customer_id,shouldCreateAccount:!1,processingResponse:null},w={SET_IDLE:"set_idle",SET_PRISTINE:"set_pristine",SET_REDIRECT_URL:"set_redirect_url",SET_COMPLETE:"set_checkout_complete",SET_BEFORE_PROCESSING:"set_before_processing",SET_AFTER_PROCESSING:"set_after_processing",SET_PROCESSING_RESPONSE:"set_processing_response",SET_PROCESSING:"set_checkout_is_processing",SET_HAS_ERROR:"set_checkout_has_error",SET_NO_ERROR:"set_checkout_no_error",SET_ORDER_ID:"set_checkout_order_id",SET_ORDER_NOTES:"set_checkout_order_notes",INCREMENT_CALCULATING:"increment_calculating",DECREMENT_CALCULATING:"decrement_calculating"},E=w.SET_PRISTINE,_=w.SET_IDLE,k=w.SET_PROCESSING,S=w.SET_BEFORE_PROCESSING,R=w.SET_AFTER_PROCESSING,P=w.SET_PROCESSING_RESPONSE,C=w.SET_REDIRECT_URL,x=w.SET_COMPLETE,N=w.SET_HAS_ERROR,I=w.SET_NO_ERROR,T=w.INCREMENT_CALCULATING,A=w.DECREMENT_CALCULATING,M=w.SET_ORDER_ID,D=w.SET_SHOULD_CREATE_ACCOUNT,F=w.SET_ORDER_NOTES,L=function(){return{type:E}},V=function(){return{type:_}},B=function(){return{type:k}},U=function(e){return{type:C,url:e}},H=function(e){return{type:P,data:e}},z=function(e){return{type:x,data:e}},q=function(){return{type:S}},W=function(){return{type:R}},K=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?N:I;return{type:t}},G=function(){return{type:T}},Y=function(){return{type:A}},$=function(e){return{type:M,orderId:e}},X=function(e){return{type:D,shouldCreateAccount:e}},Z=function(e){return{type:F,orderNotes:e}};function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee=w.SET_PRISTINE,te=w.SET_IDLE,ne=w.SET_PROCESSING,re=w.SET_BEFORE_PROCESSING,oe=w.SET_AFTER_PROCESSING,ce=w.SET_PROCESSING_RESPONSE,ae=w.SET_REDIRECT_URL,ie=w.SET_COMPLETE,se=w.SET_HAS_ERROR,ue=w.SET_NO_ERROR,le=w.INCREMENT_CALCULATING,de=w.DECREMENT_CALCULATING,pe=w.SET_ORDER_ID,fe=w.SET_ORDER_NOTES,be=w.SET_SHOULD_CREATE_ACCOUNT,me=b,ge=m,he=g,ve=v,ye=y,Oe=h,je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0,n=t.url,r=t.type,o=t.orderId,c=t.orderNotes,a=t.shouldCreateAccount,i=t.data,s=e;switch(r){case ee:s=j;break;case te:s=e.status!==ge?Q(Q({},e),{},{status:ge}):e;break;case ae:s=n!==e.url?Q(Q({},e),{},{redirectUrl:n}):e;break;case ce:s=Q(Q({},e),{},{processingResponse:i});break;case ie:s=e.status!==Oe?Q(Q({},e),{},{status:Oe,redirectUrl:(null==i?void 0:i.redirectUrl)||e.redirectUrl}):e;break;case ne:s=!1===(s=e.status!==he?Q(Q({},e),{},{status:he,hasError:!1}):e).hasError?s:Q(Q({},s),{},{hasError:!1});break;case re:s=e.status!==ve?Q(Q({},e),{},{status:ve,hasError:!1}):e;break;case oe:s=e.status!==ye?Q(Q({},e),{},{status:ye}):e;break;case se:s=e.hasError?e:Q(Q({},e),{},{hasError:!0}),s=e.status===he||e.status===ve?Q(Q({},s),{},{status:ge}):s;break;case ue:s=e.hasError?Q(Q({},e),{},{hasError:!1}):e;break;case le:s=Q(Q({},e),{},{calculatingCount:e.calculatingCount+1});break;case de:s=Q(Q({},e),{},{calculatingCount:Math.max(0,e.calculatingCount-1)});break;case pe:s=Q(Q({},e),{},{orderId:o});break;case be:a!==e.shouldCreateAccount&&(s=Q(Q({},e),{},{shouldCreateAccount:a}));break;case fe:e.orderNotes!==c&&(s=Q(Q({},e),{},{orderNotes:c}))}return s!==e&&r!==ee&&s.status===me&&(s.status=ge),s},we=n(113),Ee=n(195),_e="checkout_before_processing",ke="checkout_after_processing_with_success",Se="checkout_after_processing_with_error",Re=function(e){return{onCheckoutAfterProcessingWithSuccess:Object(Ee.a)(ke,e),onCheckoutAfterProcessingWithError:Object(Ee.a)(Se,e),onCheckoutBeforeProcessing:Object(Ee.a)(_e,e)}},Pe=n(196),Ce=n(58);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie=Object(i.createContext)({isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,orderNotes:"",customerId:0,onSubmit:function(){},onCheckoutAfterProcessingWithSuccess:function(e){},onCheckoutAfterProcessingWithError:function(e){},onCheckoutBeforeProcessing:function(e){},dispatchActions:{resetCheckout:function(){},setRedirectUrl:function(e){},setHasError:function(e){},setAfterProcessing:function(e){},incrementCalculating:function(){},decrementCalculating:function(){},setOrderId:function(e){},setOrderNotes:function(e){}},hasOrder:!1,isCart:!1}),Te=function(){return Object(i.useContext)(Ie)},Ae=function(e){var t=e.children,n=e.redirectUrl,r=e.isCart,o=void 0!==r&&r;j.redirectUrl=n;var c,f=Object(i.useReducer)(je,j),b=a()(f,2),O=b[0],w=b[1],E=Object(i.useReducer)(we.b,{}),_=a()(E,2),k=_[0],S=_[1],R=Object(i.useRef)(k),P=Object(Ce.b)().setValidationErrors,C=Object(u.a)(),x=C.addErrorNotice,N=C.removeNotices,I=O.calculatingCount>0,T=Object(l.a)(),A=T.isSuccessResponse,M=T.isErrorResponse,D=T.isFailResponse,F=T.shouldRetry,J=(c=Object(l.a)().noticeContexts,{checkoutNotices:Object(d.useSelect)((function(e){return e("core/notices").getNotices("wc/checkout")}),[]),expressPaymentNotices:Object(d.useSelect)((function(e){return e("core/notices").getNotices(c.EXPRESS_PAYMENTS)}),[c.EXPRESS_PAYMENTS]),paymentNotices:Object(d.useSelect)((function(e){return e("core/notices").getNotices(c.PAYMENTS)}),[c.PAYMENTS])}),Q=J.checkoutNotices,ee=J.paymentNotices,te=J.expressPaymentNotices;Object(i.useEffect)((function(){R.current=k}),[k]);var ne=Object(i.useMemo)((function(){return Re(S).onCheckoutAfterProcessingWithSuccess}),[S]),re=Object(i.useMemo)((function(){return Re(S).onCheckoutAfterProcessingWithError}),[S]),oe=Object(i.useMemo)((function(){return Re(S).onCheckoutBeforeProcessing}),[S]),ce=Object(i.useMemo)((function(){return{resetCheckout:function(){w(L())},setRedirectUrl:function(e){w(U(e))},setHasError:function(e){w(K(e))},incrementCalculating:function(){w(G())},decrementCalculating:function(){w(Y())},setOrderId:function(e){w($(e))},setOrderNotes:function(e){w(Z(e))},setAfterProcessing:function(e){var t,n,r,o;(!e.payment_result&&e.message&&200!==(null==e||null===(t=e.data)||void 0===t?void 0:t.status)&&(e.payment_result=Ne(Ne({},e.payment_result),{},{message:e.message})),e.payment_result)&&((null===(n=e.payment_result)||void 0===n?void 0:n.redirect_url)&&w(U(e.payment_result.redirect_url)),w(H((r=e.payment_result,o={message:(null==r?void 0:r.message)||"",paymentStatus:r.payment_status,paymentDetails:{}},Array.isArray(r.payment_details)&&r.payment_details.forEach((function(e){var t=e.key,n=e.value;o.paymentDetails[t]=n})),o))));w(W())}}}),[]);Object(i.useEffect)((function(){O.status===v&&(N("error"),Object(Pe.a)(R.current,_e,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,n=e.validationErrors;x(t),P(n)})),w(V())):w(B())})))}),[O.status,P,x,N,w]);var ae=Object(p.a)(O.status),ie=Object(p.a)(O.hasError);Object(i.useEffect)((function(){if((O.status!==ae||O.hasError!==ie)&&O.status===y){var e={redirectUrl:O.redirectUrl,orderId:O.orderId,customerId:O.customerId,customerNote:O.customerNote,processingResponse:O.processingResponse};O.hasError?Object(Pe.b)(R.current,Se,e).then((function(t){if(M(t)||D(t)){if(t.message){var n=t.messageContext?{context:t.messageContext}:void 0;x(t.message,n)}F(t)?w(V()):w(z(t))}else{if(!(Q.some((function(e){return"error"===e.status}))||te.some((function(e){return"error"===e.status}))||ee.some((function(e){return"error"===e.status})))){var r,o=(null===(r=e.processingResponse)||void 0===r?void 0:r.message)||Object(s.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");x(o,{id:"checkout"})}w(V())}})):Object(Pe.b)(R.current,ke,e).then((function(e){if(A(e))w(z(e));else if(M(e)||D(e)){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;x(e.message,t)}F(e)?w(K(!0)):w(z(e))}else w(z())}))}}),[O.status,O.hasError,O.redirectUrl,O.orderId,O.customerId,O.customerNote,O.processingResponse,ae,ie,ce,x,M,D,A,F,Q,te,ee]);var se={onSubmit:Object(i.useCallback)((function(){w(q())}),[]),isComplete:O.status===h,isIdle:O.status===m,isCalculating:I,isProcessing:O.status===g,isBeforeProcessing:O.status===v,isAfterProcessing:O.status===y,hasError:O.hasError,redirectUrl:O.redirectUrl,onCheckoutAfterProcessingWithSuccess:ne,onCheckoutAfterProcessingWithError:re,onCheckoutBeforeProcessing:oe,dispatchActions:ce,isCart:o,orderId:O.orderId,hasOrder:!!O.orderId,customerId:O.customerId,orderNotes:O.orderNotes,shouldCreateAccount:O.shouldCreateAccount,setShouldCreateAccount:function(e){return w(X(e))}};return React.createElement(Ie.Provider,{value:se},t)}},,function(e,t,n){"use strict";var r=n(9),o=n(0),c=n(7);var a=function(e,t){return function(n){var r=e(n),o=n.displayName,a=void 0===o?n.name||"Component":o;return r.displayName="".concat(Object(c.upperFirst)(Object(c.camelCase)(t)),"(").concat(a,")"),r}},i=new WeakMap;function s(e,t){return Object(o.useMemo)((function(){var n=function(e){var t=i.get(e)||0;return i.set(e,t+1),t}(e);return t?"".concat(t,"-").concat(n):n}),[e])}t.a=a((function(e){return function(t){var n=s(e);return Object(o.createElement)(e,Object(r.a)({},t,{instanceId:n}))}}),"withInstanceId")},function(e,t,n){"use strict";var r=n(2),o=n.n(r);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(){}function d(){}d.resetWarningCache=l;var p=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,r,o,c){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==c){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:d,resetWarningCache:l};return n.PropTypes=n,n}()}));function f(){}function b(e){return!!(e||"").match(/\d/)}function m(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function g(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split("."),c=o[0],a=o[1]||"";return{beforeDecimal:c,afterDecimal:a,hasNagation:n,addNegation:r}}function h(e,t,n){for(var r="",o=n?"0":"",c=0;c<=t-1;c++)r+=e[c]||o;return r}function v(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function y(e,t,n){return Math.min(Math.max(e,t),n)}function O(e){return Math.max(e.selectionStart,e.selectionEnd)}var j={thousandSeparator:p.oneOfType([p.string,p.oneOf([!0])]),decimalSeparator:p.string,allowedDecimalSeparators:p.arrayOf(p.string),thousandsGroupStyle:p.oneOf(["thousand","lakh","wan"]),decimalScale:p.number,fixedDecimalScale:p.bool,displayType:p.oneOf(["input","text"]),prefix:p.string,suffix:p.string,format:p.oneOfType([p.string,p.func]),removeFormatting:p.func,mask:p.oneOfType([p.string,p.arrayOf(p.string)]),value:p.oneOfType([p.number,p.string]),defaultValue:p.oneOfType([p.number,p.string]),isNumericString:p.bool,customInput:p.elementType,allowNegative:p.bool,allowEmptyFormatting:p.bool,allowLeadingZeros:p.bool,onValueChange:p.func,onKeyDown:p.func,onMouseUp:p.func,onChange:p.func,onFocus:p.func,onBlur:p.func,type:p.oneOf(["text","tel","password"]),isAllowed:p.func,renderText:p.func,getInputRef:p.oneOfType([p.func,p.shape({current:p.any})])},w={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:f,onChange:f,onKeyDown:f,onMouseUp:f,onFocus:f,onBlur:f,isAllowed:function(){return!0}},E=function(e){function t(e){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,n=!(o=i(t).call(this,e))||"object"!=typeof o&&"function"!=typeof o?u(r):o;var c=e.defaultValue;n.validateProps();var a=n.formatValueProp(c);return n.state={value:a,numAsString:n.removeFormatting(a)},n.selectionBeforeInput={selectionStart:0,selectionEnd:0},n.onChange=n.onChange.bind(u(n)),n.onKeyDown=n.onKeyDown.bind(u(n)),n.onMouseUp=n.onMouseUp.bind(u(n)),n.onFocus=n.onFocus.bind(u(n)),n.onBlur=n.onBlur.bind(u(n)),n}var n,r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,(r=[{key:"componentDidUpdate",value:function(e){this.updateValueIfRequired(e)}},{key:"updateValueIfRequired",value:function(e){var t=this.props,n=this.state,r=this.focusedElm,o=n.value,c=n.numAsString,a=void 0===c?"":c;if(e!==t){this.validateProps();var i=this.formatNumString(a),s=void 0===t.value?i:this.formatValueProp(),u=this.removeFormatting(s),l=parseFloat(u),d=parseFloat(a);(isNaN(l)&&isNaN(d)||l===d)&&i===o&&(null!==r||s===o)||this.updateValue({formattedValue:s,numAsString:u,input:r})}}},{key:"getFloatString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.decimalScale,n=this.getSeparators(),r=n.decimalSeparator,o=this.getNumberRegex(!0),c="-"===e[0];c&&(e=e.replace("-","")),r&&0===t&&(e=e.split(r)[0]);var a=(e=(e.match(o)||[]).join("").replace(r,".")).indexOf(".");return-1!==a&&(e="".concat(e.substring(0,a),".").concat(e.substring(a+1,e.length).replace(new RegExp(m(r),"g"),""))),c&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var n=this.props,r=n.format,o=n.decimalScale,c=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!c||0===o||t||r?"":"|"+m(c)),e?"g":void 0)}},{key:"getSeparators",value:function(){var e=this.props.decimalSeparator,t=this.props,n=t.thousandSeparator,r=t.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:r}}},{key:"getMaskAtIndex",value:function(e){var t=this.props.mask,n=void 0===t?" ":t;return"string"==typeof n?n:n[e]||" "}},{key:"getValueObject",value:function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}}},{key:"validateProps",value:function(){var e=this.props.mask,t=this.getSeparators(),n=t.decimalSeparator,r=t.thousandSeparator;if(n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: ".concat(r,' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: ').concat(n," (default value for decimalSeparator is .)\n "));if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n Mask ".concat(e," should not contain numeric character;\n "))}},{key:"setPatchedCaretPosition",value:function(e,t,n){v(e,t),setTimeout((function(){e.value===n&&v(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,n){var r=this.props,o=r.prefix,c=r.suffix,a=r.format;if(""===e)return 0;if(t=y(t,0,e.length),!a){var i="-"===e[0];return y(t,o.length+(i?1:0),e.length-c.length)}if("function"==typeof a)return t;if("#"===a[t]&&b(e[t]))return t;if("#"===a[t-1]&&b(e[t-1]))return t;var s=a.indexOf("#");t=y(t,s,a.lastIndexOf("#")+1);for(var u=a.substring(t,a.length).indexOf("#"),l=t,d=t+(-1===u?0:u);l>s&&("#"!==a[l]||!b(e[l]));)l-=1;return!b(e[d])||"left"===n&&t!==s||t-l<d-t?b(e[l])?l+1:l:d}},{key:"getCaretPosition",value:function(e,t,n){var r,o,c=this.props.format,a=this.state.value,i=this.getNumberRegex(!0),s=(e.match(i)||[]).join(""),u=(t.match(i)||[]).join("");for(r=0,o=0;o<n;o++){var l=e[o]||"",d=t[r]||"";if((l.match(i)||l===d)&&("0"!==l||!d.match(i)||"0"===d||s.length===u.length)){for(;l!==t[r]&&r<t.length;)r++;r++}}return"string"!=typeof c||a||(r=t.length),r=this.correctCaretPosition(t,r)}},{key:"removePrefixAndSuffix",value:function(e){var t=this.props,n=t.format,r=t.prefix,o=t.suffix;if(!n&&e){var c="-"===e[0];c&&(e=e.substring(1,e.length));var a=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==a&&a===e.length-o.length?e.substring(0,a):e,c&&(e="-"+e)}return e}},{key:"removePatternFormatting",value:function(e){for(var t=this.props.format.split("#").filter((function(e){return""!==e})),n=0,r="",o=0,c=t.length;o<=c;o++){var a=t[o]||"",i=o===c?e.length:e.indexOf(a,n);if(-1===i){r=e;break}r+=e.substring(n,i),n=i+a.length}return(r.match(/\d/g)||[]).join("")}},{key:"removeFormatting",value:function(e){var t=this.props,n=t.format,r=t.removeFormatting;return e?(n?e="string"==typeof n?this.removePatternFormatting(e):"function"==typeof r?r(e):(e.match(/\d/g)||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e):e}},{key:"formatWithPattern",value:function(e){for(var t=this.props.format,n=0,r=t.split(""),o=0,c=t.length;o<c;o++)"#"===t[o]&&(r[o]=e[n]||this.getMaskAtIndex(n),n+=1);return r.join("")}},{key:"formatAsNumber",value:function(e){var t=this.props,n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix,c=t.suffix,a=t.allowNegative,i=t.thousandsGroupStyle,s=this.getSeparators(),u=s.thousandSeparator,l=s.decimalSeparator,d=-1!==e.indexOf(".")||n&&r,p=g(e,a),f=p.beforeDecimal,b=p.afterDecimal,m=p.addNegation;return void 0!==n&&(b=h(b,n,r)),u&&(f=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(f,u,i)),o&&(f=o+f),c&&(b+=c),m&&(f="-"+f),e=f+(d&&l||"")+b}},{key:"formatNumString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.format,r=t.allowEmptyFormatting,o=e;return o=""!==e||r?"-"!==e||n?"string"==typeof n?this.formatWithPattern(o):"function"==typeof n?n(o):this.formatAsNumber(o):"-":""}},{key:"formatValueProp",value:function(e){var t=this.props,n=t.format,r=t.decimalScale,o=t.fixedDecimalScale,c=t.allowEmptyFormatting,a=this.props,i=a.value,s=void 0===i?e:i,u=a.isNumericString,l=!s&&0!==s;return l&&c&&(s=""),l&&!c?"":("number"==typeof s&&(s=s.toString(),u=!0),"Infinity"===s&&u&&(s=""),u&&!n&&"number"==typeof r&&(s=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=-1!==e.indexOf(".")&&t,o=g(e),c=o.beforeDecimal,a=o.afterDecimal,i=o.hasNagation,s=parseFloat("0.".concat(a||"0")).toFixed(t).split("."),u=c.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),s[0]),l=h(s[1]||"",Math.min(t,a.length),n),d=r?".":"";return"".concat(i?"-":"").concat(u).concat(d).concat(l)}(s,r,o)),u?this.formatNumString(s):this.formatInput(s))}},{key:"formatNegation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.allowNegative,n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),c=r.test(e);return e=e.replace(/-/g,""),o&&!c&&t&&(e="-"+e),e}},{key:"formatInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.format;return t||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)}},{key:"isCharacterAFormat",value:function(e,t){var n=this.props,r=n.format,o=n.prefix,c=n.suffix,a=n.decimalScale,i=n.fixedDecimalScale,s=this.getSeparators().decimalSeparator;return"string"==typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-c.length||a&&i&&t[e]===s))}},{key:"checkIfFormatGotDeleted",value:function(e,t,n){for(var r=e;r<t;r++)if(this.isCharacterAFormat(r,n))return!0;return!1}},{key:"correctInputValue",value:function(e,t,n){var r=this.props,o=r.format,c=r.allowNegative,a=r.prefix,i=r.suffix,s=r.decimalScale,u=this.getSeparators(),l=u.allowedDecimalSeparators,d=u.decimalSeparator,p=this.state.numAsString||"",f=this.selectionBeforeInput,b=f.selectionStart,m=f.selectionEnd,h=function(e,t){for(var n=0,r=0,o=e.length,c=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[c-1-r]&&c-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),v=h.start,y=h.end;if(!o&&v===y&&-1!==l.indexOf(n[b])){var O=0===s?"":d;return n.substr(0,b)+O+n.substr(b+1,n.length)}var j=o?0:a.length,w=t.length-(o?0:i.length);if(n.length>t.length||!n.length||v===y||0===b&&m===t.length||b===j&&m===w)return n;if(this.checkIfFormatGotDeleted(v,y,t)&&(n=t),!o){var E=this.removeFormatting(n),_=g(E,c),k=_.beforeDecimal,S=_.afterDecimal,R=_.addNegation,P=e<n.indexOf(d)+1;if(E.length<p.length&&P&&""===k&&!parseFloat(S))return R?"-":""}return n}},{key:"updateValue",value:function(e){var t=e.formattedValue,n=e.input,r=e.setCaretPosition,o=void 0===r||r,c=e.numAsString,a=e.caretPos,i=this.props.onValueChange,s=this.state.value;if(n)if(o){if(!a){var u=e.inputValue||n.value,l=O(n);n.value=t,a=this.getCaretPosition(u,t,l)}this.setPatchedCaretPosition(n,a,t)}else n.value=t;void 0===c&&(c=this.removeFormatting(t)),t!==s&&(this.setState({value:t,numAsString:c}),i(this.getValueObject(t,c)))}},{key:"onChange",value:function(e){var t=e.target,n=t.value,r=this.state,o=this.props,c=o.isAllowed,a=r.value||"",i=O(t);n=this.correctInputValue(i,a,n);var s=this.formatInput(n)||"",u=this.removeFormatting(s);c(this.getValueObject(s,u))||(s=a),this.updateValue({formattedValue:s,numAsString:u,inputValue:n,input:t}),o.onChange(e)}},{key:"onBlur",value:function(e){var t=this.props,n=this.state,r=t.format,o=t.onBlur,c=t.allowLeadingZeros,a=n.numAsString,i=n.value;if(this.focusedElm=null,this.focusTimeout&&clearTimeout(this.focusTimeout),!r){isNaN(parseFloat(a))&&(a=""),c||(a=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return"".concat(t?"-":"").concat(r).concat(o?".".concat(o):"")}(a));var s=this.formatNumString(a);if(s!==i)return this.updateValue({formattedValue:s,numAsString:a,input:e.target,setCaretPosition:!1}),void o(e)}o(e)}},{key:"onKeyDown",value:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,c=n.selectionEnd,a=n.value,i=void 0===a?"":a,s=this.props,u=s.decimalScale,l=s.fixedDecimalScale,d=s.prefix,p=s.suffix,f=s.format,b=s.onKeyDown,m=void 0!==u&&l,g=this.getNumberRegex(!1,m),h=new RegExp("-"),v="string"==typeof f;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:c},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===c){var y=t,O=v?f.indexOf("#"):d.length,j=v?f.lastIndexOf("#")+1:i.length-p.length;if("ArrowLeft"===r||"ArrowRight"===r){var w="ArrowLeft"===r?"left":"right";y=this.correctCaretPosition(i,t,w)}else if("Delete"!==r||g.test(i[t])||h.test(i[t])){if("Backspace"===r&&!g.test(i[t]))if(o<=O+1&&"-"===i[0]&&void 0===f){var E=i.substring(1);this.updateValue({formattedValue:E,caretPos:y,input:n})}else if(!h.test(i[t])){for(;!g.test(i[y-1])&&y>O;)y--;y=this.correctCaretPosition(i,y,"left")}}else for(;!g.test(i[y])&&y<j;)y++;(y!==t||t<O||t>j)&&(e.preventDefault(),this.setPatchedCaretPosition(n,y,i)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,y,i),b(e)}else b(e)}},{key:"onMouseUp",value:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value,c=void 0===o?"":o;if(n===r){var a=this.correctCaretPosition(c,n);a!==n&&this.setPatchedCaretPosition(t,a,c)}this.props.onMouseUp(e)}},{key:"onFocus",value:function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout((function(){var n=e.target,r=n.selectionStart,o=n.selectionEnd,c=n.value,a=void 0===c?"":c,i=t.correctCaretPosition(a,r);i===r||0===r&&o===a.length||t.setPatchedCaretPosition(n,i,a),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,n,r=this.props,c=r.type,i=r.displayType,s=r.customInput,u=r.renderText,l=r.getInputRef,d=this.state.value,p=(e=this.props,t=j,n={},Object.keys(e).forEach((function(r){t[r]||(n[r]=e[r])})),n),f=a({inputMode:"numeric"},p,{type:c,value:d,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===i)return u?u(d)||null:o.a.createElement("span",a({},p,{ref:l}),d);if(s){var b=s;return o.a.createElement(b,a({},f,{ref:l}))}return o.a.createElement("input",a({},f,{ref:l}))}}])&&c(n.prototype,r),l&&c(n,l),t}(o.a.Component);E.propTypes=j,E.defaultProps=w,t.a=E},function(e,t,n){"use strict";var r=n(11),o=n.n(r),c=n(30),a=n.n(c),i=n(31),s=n.n(i),u=n(18),l=n.n(u),d=n(32),p=n.n(d),f=n(33),b=n.n(f),m=n(20),g=n.n(m),h=n(6),v=n.n(h),y=n(2);n(128);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}t.a=function(e){var t=function(t){p()(r,t);var n=O(r);function r(){var e;return a()(this,r),e=n.call(this),v()(l()(e),"scrollToTopIfNeeded",(function(){var t=e.scrollPointRef.current.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollPointRef.current.scrollIntoView()})),v()(l()(e),"moveFocusToTop",(function(t){var n=e.scrollPointRef.current.parentElement.querySelectorAll(t);n.length&&n[0].focus()})),v()(l()(e),"scrollToTop",(function(t){window&&Number.isFinite(window.innerHeight)&&(e.scrollToTopIfNeeded(),t&&t.focusableSelector&&e.moveFocusToTop(t.focusableSelector))})),e.scrollPointRef=Object(y.createRef)(),e}return s()(r,[{key:"render",value:function(){return React.createElement(y.Fragment,null,React.createElement("div",{className:"with-scroll-to-top__scroll-point",ref:this.scrollPointRef,"aria-hidden":!0}),React.createElement(e,o()({},this.props,{scrollToTop:this.scrollToTop})))}}]),r}(y.Component);return t.displayName="withScrollToTop",t}},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function o(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function c(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return o(n.overflowY,t)||o(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function a(e,t,n,r,o,c,a,i){return c<e&&a>t||c>e&&a<t?0:c<=e&&i<=n||a>=t&&i>=n?c-e-r:a>t&&i<n||c<e&&i>n?a-t+o:0}t.a=function(e,t){var n=window,o=t.scrollMode,i=t.block,s=t.inline,u=t.boundary,l=t.skipOverflowHiddenElements,d="function"==typeof u?u:function(e){return e!==u};if(!r(e))throw new TypeError("Invalid target");for(var p=document.scrollingElement||document.documentElement,f=[],b=e;r(b)&&d(b);){if((b=b.parentNode)===p){f.push(b);break}b===document.body&&c(b)&&!c(document.documentElement)||c(b,l)&&f.push(b)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),O=y.height,j=y.width,w=y.top,E=y.right,_=y.bottom,k=y.left,S="start"===i||"nearest"===i?w:"end"===i?_:w+O/2,R="center"===s?k+j/2:"end"===s?E:k,P=[],C=0;C<f.length;C++){var x=f[C],N=x.getBoundingClientRect(),I=N.height,T=N.width,A=N.top,M=N.right,D=N.bottom,F=N.left;if("if-needed"===o&&w>=0&&k>=0&&_<=g&&E<=m&&w>=A&&_<=D&&k>=F&&E<=M)return P;var L=getComputedStyle(x),V=parseInt(L.borderLeftWidth,10),B=parseInt(L.borderTopWidth,10),U=parseInt(L.borderRightWidth,10),H=parseInt(L.borderBottomWidth,10),z=0,q=0,W="offsetWidth"in x?x.offsetWidth-x.clientWidth-V-U:0,K="offsetHeight"in x?x.offsetHeight-x.clientHeight-B-H:0;if(p===x)z="start"===i?S:"end"===i?S-g:"nearest"===i?a(v,v+g,g,B,H,v+S,v+S+O,O):S-g/2,q="start"===s?R:"center"===s?R-m/2:"end"===s?R-m:a(h,h+m,m,V,U,h+R,h+R+j,j),z=Math.max(0,z+v),q=Math.max(0,q+h);else{z="start"===i?S-A-B:"end"===i?S-D+H+K:"nearest"===i?a(A,D,I,B,H+K,S,S+O,O):S-(A+I/2)+K/2,q="start"===s?R-F-V:"center"===s?R-(F+T/2)+W/2:"end"===s?R-M+U+W:a(F,M,T,V,U+W,R,R+j,j);var G=x.scrollLeft,Y=x.scrollTop;S+=Y-(z=Math.max(0,Math.min(Y+z,x.scrollHeight-I+K))),R+=G-(q=Math.max(0,Math.min(G+q,x.scrollWidth-T+W)))}P.push({el:x,top:z,left:q})}return P}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(11),o=n.n(r),c=n(6),a=n.n(c),i=n(0),s=n(45);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=[".wp-block-woocommerce-cart"],p=function(e){var t=e.Block,n=e.containers,r=e.getProps,c=void 0===r?function(){}:r,a=e.getErrorBoundaryProps,u=void 0===a?function(){}:a;0!==n.length&&Array.prototype.forEach.call(n,(function(e,n){var r=c(e,n),a=u(e,n),d=l(l({},e.dataset),r.attributes);e.classList.remove("is-loading"),Object(i.render)(React.createElement(s.a,a,React.createElement(i.Suspense,{fallback:React.createElement("div",{className:"wc-block-placeholder"})},React.createElement(t,o()({},r,{attributes:d})))),e)}))},f=function(e){var t=e.Block,n=e.getProps,r=e.getErrorBoundaryProps,o=e.selector,c=e.wrappers,a=document.body.querySelectorAll(o);c.length>0&&Array.prototype.filter.call(a,(function(e){return!function(e,t){return Array.prototype.some.call(t,(function(t){return t.contains(e)&&!t.isSameNode(e)}))}(e,c)})),p({Block:t,containers:a,getProps:n,getErrorBoundaryProps:r})},b=function(e){var t=document.body.querySelectorAll(d.join(","));f(l(l({},e),{},{wrappers:t})),Array.prototype.forEach.call(t,(function(t){t.addEventListener("wc-blocks_render_blocks_frontend",(function(){var n,r,o,c,a,i;n=l(l({},e),{},{wrapper:t}),r=n.Block,o=n.getProps,c=n.getErrorBoundaryProps,a=n.selector,i=n.wrapper.querySelectorAll(a),p({Block:r,containers:i,getProps:o,getErrorBoundaryProps:c})}))}))}},function(e,t){},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var r=n(6),o=n.n(r),c=n(7);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s="add_event_callback",u="remove_event_callback",l={addEventCallback:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:Object(c.uniqueId)(),type:s,eventType:e,callback:t,priority:n}},removeEventCallback:function(e,t){return{id:t,type:u,eventType:e}}},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.eventType,c=t.id,a=t.callback,l=t.priority,d=new Map(e[r]);switch(n){case s:return d.set(c,{priority:l,callback:a}),i(i({},e),{},o()({},r,d));case u:return d.delete(c),i(i({},e),{},o()({},r,d))}return e}},,function(e,t,n){"use strict";var r=n(30),o=n.n(r),c=n(31),a=n.n(c),i=n(18),s=n.n(i),u=n(32),l=n.n(u),d=n(33),p=n.n(d),f=n(20),b=n.n(f),m=n(6),g=n.n(m),h=n(1),v=n(2),y=n(139),O=(n(4),n(8));function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var o=b()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var w=function(e){l()(n,e);var t=j(n);function n(){var e;o()(this,n);for(var r=arguments.length,c=new Array(r),a=0;a<r;a++)c[a]=arguments[a];return e=t.call.apply(t,[this].concat(c)),g()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(n,[{key:"render",value:function(){var e=this.state,t=e.hasError,n=e.errorMessage,r=this.props.isEditor;if(t){var o=Object(h.__)("This site is experiencing difficulties with this payment method. Please contact the owner of the site for assistance.","woo-gutenberg-products-block");(r||O.j)&&(o=n||Object(h.__)("There was an error with this payment method. Please verify it's configured correctly.","woo-gutenberg-products-block"));var c=[{id:"0",content:o,isDismissible:!1,status:"error"}];return React.createElement(y.a,{notices:c})}return this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{errorMessage:e.message,hasError:!0}}}]),n}(v.Component);w.defaultProps={isEditor:!1},t.a=w},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return w}));var r=n(6),o=n.n(r),c=n(10),a=n.n(c),i=n(0),s=n(3),u=n(7),l=n(17);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=Object(s.getSetting)("checkoutData",{}),b={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},m=Object(u.mapValues)(f.billing_address,(function(e){return Object(l.decodeEntities)(e)})),g=p(p({},b),m),h={billingData:b,setBillingData:function(){return null}};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=Object(i.createContext)(h),j=function(){return Object(i.useContext)(O)},w=function(e){var t=e.children,n=Object(i.useState)(g),r=a()(n,2),o=r[0],c=r[1],s={billingData:o,setBillingData:Object(i.useCallback)((function(e){c((function(t){return y(y({},t),e)}))}),[])};return React.createElement(O.Provider,{value:s},t)}},function(e,t,n){"use strict";var r=n(5),o=n.n(r),c=n(100),a=n(6),i=n.n(a),s=n(94),u=function(e){var t,n=e.checked,r=e.name,c=e.onChange,a=e.option,u=a.value,l=a.label,d=a.description,p=a.secondaryLabel,f=a.secondaryDescription;return React.createElement("label",{className:"wc-block-components-radio-control__option",htmlFor:"".concat(r,"-").concat(u)},React.createElement("input",{id:"".concat(r,"-").concat(u),className:"wc-block-components-radio-control__input",type:"radio",name:r,value:u,onChange:function(e){return c(e.target.value)},checked:n,"aria-describedby":o()((t={},i()(t,"".concat(r,"-").concat(u,"__label"),l),i()(t,"".concat(r,"-").concat(u,"__secondary-label"),p),i()(t,"".concat(r,"-").concat(u,"__description"),d),i()(t,"".concat(r,"-").concat(u,"__secondary-description"),f),t))}),React.createElement(s.a,{id:"".concat(r,"-").concat(u),label:l,secondaryLabel:p,description:d,secondaryDescription:f}))};n(169),t.a=Object(c.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,c=e.selected,a=e.onChange,i=e.options,s=void 0===i?[]:i,l=r||n;return s.length&&React.createElement("div",{className:o()("wc-block-components-radio-control",t)},s.map((function(e){return React.createElement(u,{key:e.value,name:"radio-control-".concat(l),checked:e.value===c,option:e,onChange:function(t){a(t),"function"==typeof e.onChange&&e.onChange(t)}})})))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=(n(12),Object(r.createContext)({isEditor:!1,currentPostId:0,previewData:{}})),c=function(){return Object(r.useContext)(o)}},function(e,t,n){"use strict";var r=n(0),o=n(7),c=n(5),a=n.n(c),i=n(1),s=n(76),u=n(9),l=n(29);function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}var b=n(65),m=n(13);function g(e,t){return!t||"object"!==Object(b.a)(t)&&"function"!=typeof t?Object(m.a)(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}var O=n(24),j=n(47),w=n(49),E=n(82),_=n.n(E),k=n(28),S=n(22),R=function(){return"rtl"===document.documentElement.dir};function P(e,t,n,r){var o=t.width;"left"===n&&R()?n="right":"right"===n&&R()&&(n="left");var c,a=Math.round(e.left+e.width/2),i={popoverLeft:a,contentWidth:(a-o/2>0?o/2:a)+(a+o/2>window.innerWidth?window.innerWidth-a:o/2)},s="middle"===r?e.left:a,u={popoverLeft:s,contentWidth:s-o>0?o:s},l="middle"===r?e.right:a,d={popoverLeft:l,contentWidth:l+o>window.innerWidth?window.innerWidth-l:o},p=null;if("center"===n&&i.contentWidth===o)c="center";else if("left"===n&&u.contentWidth===o)c="left";else if("right"===n&&d.contentWidth===o)c="right";else{var f="left"===(c=u.contentWidth>d.contentWidth?"left":"right")?u.contentWidth:d.contentWidth;p=f!==o?f:null}return{xAxis:c,popoverLeft:"center"===c?i.popoverLeft:"left"===c?u.popoverLeft:d.popoverLeft,contentWidth:p}}function C(e,t,n){var r,o=t.height,c=e.top+e.height/2,a={popoverTop:c,contentHeight:(c-o/2>0?o/2:c)+(c+o/2>window.innerHeight?window.innerHeight-c:o/2)},i={popoverTop:e.top,contentHeight:e.top-10-o>0?o:e.top-10},s={popoverTop:e.bottom,contentHeight:e.bottom+10+o>window.innerHeight?window.innerHeight-10-e.bottom:o},u=null;if("middle"===n&&a.contentHeight===o)r="middle";else if("top"===n&&i.contentHeight===o)r="top";else if("bottom"===n&&s.contentHeight===o)r="bottom";else{var l="top"===(r=i.contentHeight>s.contentHeight?"top":"bottom")?i.contentHeight:s.contentHeight;u=l!==o?l:null}return{yAxis:r,popoverTop:"middle"===r?a.popoverTop:"top"===r?i.popoverTop:s.popoverTop,contentHeight:u}}var x=n(37),N=Object(r.createContext)({focusHistory:[]}),I=N.Provider,T=N.Consumer;I.displayName="FocusReturnProvider",T.displayName="FocusReturnConsumer";r.Component;var A=Object(k.createHigherOrderComponent)((function e(t){if((c=t)instanceof r.Component||"function"==typeof c){var n=t;return e({})(n)}var c,a=t.onFocusReturn,i=void 0===a?o.stubTrue:a;return function(e){var t=function(t){function n(){var e;return d(this,n),(e=g(this,h(n).apply(this,arguments))).ownFocusedElements=new Set,e.activeElementOnMount=document.activeElement,e.setIsFocusedFalse=function(){return e.isFocused=!1},e.setIsFocusedTrue=function(t){e.ownFocusedElements.add(t.target),e.isFocused=!0},e}return y(n,t),f(n,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==i())for(var r,c=[].concat(Object(x.a)(o.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(x.a)(n)))),[e]);r=c.pop();)if(document.body.contains(r))return void r.focus()}},{key:"render",value:function(){return Object(r.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(r.createElement)(e,this.props.childProps))}}]),n}(r.Component);return function(e){return Object(r.createElement)(T,null,(function(n){return Object(r.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn"),M=Object(k.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return d(this,n),(e=g(this,h(n).apply(this,arguments))).focusContainRef=Object(r.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(m.a)(e)),e}return y(n,t),f(n,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===w.TAB){var t=j.focus.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],r=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),r.focus()):(e.shiftKey||e.target!==r)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return Object(r.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(r.createElement)(e,this.props))}}]),n}(r.Component)}),"withConstrainedTabbing"),D=["button","submit"];var F=Object(k.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return d(this,n),(e=g(this,h(n).apply(this,arguments))).bindNode=e.bindNode.bind(Object(m.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(m.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(m.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(m.a)(e)),e}return y(n,t),f(n,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(o.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(o.includes)(D,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(r.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(r.createElement)(e,Object(u.a)({ref:this.bindNode},this.props)))}}]),n}(r.Component)}),"withFocusOutside")(function(e){function t(){return d(this,t),g(this,h(t).apply(this,arguments))}return y(t,e),f(t,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),t}(r.Component));var L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,o=e.className,c=void 0===o?"lockscroll":o,a=0,i=0;function s(e){var t=n.scrollingElement||n.body;e&&(i=t.scrollTop);var r=e?"add":"remove";t.classList[r](c),n.documentElement.classList[r](c),e||(t.scrollTop=i)}function u(){0===a&&s(!0),++a}function l(){1===a&&s(!1),--a}return function(e){function t(){return d(this,t),g(this,h(t).apply(this,arguments))}return y(t,e),f(t,[{key:"componentDidMount",value:function(){u()}},{key:"componentWillUnmount",value:function(){l()}},{key:"render",value:function(){return null}}]),t}(r.Component)}();function V(e){e.stopPropagation()}var B=Object(r.forwardRef)((function(e,t){var n=e.children,o=Object(l.a)(e,["children"]);return Object(r.createElement)("div",Object(u.a)({},o,{ref:t,onMouseDown:V}),n)})),U=Object(r.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),H=U.Provider,z=U.Consumer,q=(r.Component,0);function W(e){var t=e.name,n=e.children,c=e.registerFill,a=e.unregisterFill,i=function(e){var t=Object(r.useContext)(U),n=t.getSlot,o=t.subscribe,c=Object(r.useState)(n(e)),a=Object(O.a)(c,2),i=a[0],s=a[1];return Object(r.useEffect)((function(){return s(n(e)),o((function(){s(n(e))}))}),[e]),i}(t),s=Object(r.useRef)({name:t,children:n});return s.current.occurrence||(s.current.occurrence=++q),Object(r.useLayoutEffect)((function(){return c(t,s.current),function(){return a(t,s.current)}}),[]),Object(r.useLayoutEffect)((function(){s.current.children=n,i&&!i.props.bubblesVirtually&&i.forceUpdate()}),[n]),Object(r.useLayoutEffect)((function(){t!==s.current.name&&(a(s.current.name,s.current),s.current.name=t,c(t,s.current))}),[t]),i&&i.node&&i.props.bubblesVirtually?(Object(o.isFunction)(n)&&(n=n(i.props.fillProps)),Object(r.createPortal)(n,i.node)):null}var K=function(e){return Object(r.createElement)(z,null,(function(t){var n=t.registerFill,o=t.unregisterFill;return Object(r.createElement)(W,Object(u.a)({},e,{registerFill:n,unregisterFill:o}))}))},G=function(e){function t(){var e;return d(this,t),(e=g(this,h(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(m.a)(e)),e}return y(t,e),f(t,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterSlot)(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,c=e.bubblesVirtually,a=void 0!==c&&c,i=e.fillProps,s=void 0===i?{}:i,u=e.getFills,l=e.className;if(a)return Object(r.createElement)("div",{ref:this.bindNode,className:l});var d=Object(o.map)(u(n,this),(function(e){var t=e.occurrence,n=Object(o.isFunction)(e.children)?e.children(s):e.children;return r.Children.map(n,(function(e,n){if(!e||Object(o.isString)(e))return e;var c="".concat(t,"---").concat(e.key||n);return Object(r.cloneElement)(e,{key:c})}))})).filter(Object(o.negate)(r.isEmptyElement));return Object(r.createElement)(r.Fragment,null,Object(o.isFunction)(t)?t(d):d)}}]),t}(r.Component),Y=function(e){return Object(r.createElement)(z,null,(function(t){var n=t.registerSlot,o=t.unregisterSlot,c=t.getFills;return Object(r.createElement)(G,Object(u.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:c}))}))},$=n(40);var X=function(e){var t=e.type,n=e.options,r=void 0===n?{}:n,o=e.children;if("appear"===t){var c,i=r.origin,s=(void 0===i?"top":i).split(" "),u=Object(O.a)(s,2),l=u[0],d=u[1],p=void 0===d?"center":d;return o({className:a()("components-animate__appear",(c={},Object($.a)(c,"is-from-"+p,"center"!==p),Object($.a)(c,"is-from-"+l,"middle"!==l),c))})}if("slide-in"===t){var f=r.origin,b=void 0===f?"left":f;return o({className:a()("components-animate__slide-in","is-from-"+b)})}return o("loading"===t?{className:a()("components-animate__loading")}:{})},Z=M(A((function(e){return e.children})));function J(e,t){var n=window.getComputedStyle(t),r=n.paddingTop,o=n.paddingBottom,c=n.paddingLeft,a=n.paddingRight,i=r?parseInt(r,10):0,s=o?parseInt(o,10):0,u=c?parseInt(c,10):0,l=a?parseInt(a,10):0;return{x:e.left+u,y:e.top+i,width:e.width-u-l,height:e.height-i-s,left:e.left+u,right:e.right-l,top:e.top+i,bottom:e.bottom-s}}function Q(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function te(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var ne=function(e){var t=e.headerTitle,n=e.onClose,o=e.onKeyDown,c=e.children,i=e.className,s=e.noArrow,d=void 0!==s&&s,p=e.position,f=void 0===p?"top":p,b=(e.range,e.focusOnMount),m=void 0===b?"firstElement":b,g=e.anchorRef,h=e.shouldAnchorIncludePadding,v=e.anchorVerticalBuffer,y=e.anchorHorizontalBuffer,E=e.anchorRect,R=e.getAnchorRect,x=e.expandOnMobile,N=e.animate,I=void 0===N||N,T=e.onClickOutside,A=e.onFocusOutside,M=Object(l.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorVerticalBuffer","anchorHorizontalBuffer","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside"]),D=Object(r.useRef)(null),V=Object(r.useRef)(null),U=Object(r.useRef)(),H=Object(r.useRef)(),q=Object(k.useViewportMatch)("medium","<"),W=Object(r.useState)(),G=Object(O.a)(W,2),Y=G[0],$=G[1],ne=x&&q;d=ne||d,Object(r.useEffect)((function(){var e=U.current,t=V.current;if(ne)return te(e,"is-without-arrow",d),Q(e,"data-x-axis"),Q(e,"data-y-axis"),ee(e,"top"),ee(e,"left"),ee(t,"maxHeight"),void ee(t,"maxWidth");var n=function(){var n=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!r)return;if(r instanceof window.Range)return Object(j.getRectangleFromRange)(r);var c=r.getBoundingClientRect();return o?c:J(c,r)}if(e.current){var a=e.current.parentNode,i=a.getBoundingClientRect();return o?i:J(i,a)}}(D,E,R,g,h);if(n){n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{x:e.left-n,y:e.top-t,width:e.width+2*n,height:e.height+2*t,left:e.left-n,right:e.right+n,top:e.top-t,bottom:e.bottom+t}}(n,v,y),H.current||(H.current=t.getBoundingClientRect());var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=n.split(" "),o=Object(O.a)(r,2),c=o[0],a=o[1],i=void 0===a?"center":a,s=C(e,t,c),u=P(e,t,i,s.yAxis);return Object(S.a)({},u,s)}(n,H.current,f),o=r.popoverTop,c=r.popoverLeft,a=r.xAxis,i=r.yAxis,s=r.contentHeight,u=r.contentWidth;te(e,"is-without-arrow",d||"center"===a
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames