Version Description
- 2020-06-16 =
- bug: Use IE11 friendly code for Dashicon component replacement. #2708
- bug: Fix PHP warnings produced by StoreAPI endpoints when variations have no prices. #2722
- bug: Fix missing scoped variable in closure and missing schema definitions. #2724
- bug: Fix undefined index notice for query_type on the product collection data endpoint. #2723
Download this release
Release Info
Developer | aljullu |
Plugin | WooCommerce Gutenberg Products Block |
Version | 2.7.1 |
Comparing to | |
See all releases |
Code changes from version 2.7.0 to 2.7.1
- assets/js/module_replacements/dashicon.js +15 -7
- build/all-products-frontend.asset.php +1 -1
- build/all-products-frontend.js +1 -1
- build/all-products.asset.php +1 -1
- build/all-products.js +1 -1
- build/cart-frontend.asset.php +1 -1
- build/cart-frontend.js +1 -1
- build/cart.asset.php +1 -1
- build/cart.js +1 -1
- build/checkout-frontend.asset.php +1 -1
- build/checkout-frontend.js +0 -1
assets/js/module_replacements/dashicon.js
CHANGED
@@ -7,9 +7,16 @@ import {
|
|
7 |
} from '@woocommerce/icons';
|
8 |
import { createElement } from '@wordpress/element';
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
case 'arrow-down-alt2':
|
14 |
Icon = ArrowDownIcon;
|
15 |
break;
|
@@ -17,7 +24,8 @@ export default ( { icon, size = 20, className, ...extraProps } ) => {
|
|
17 |
Icon = DismissIcon;
|
18 |
break;
|
19 |
}
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
};
|
|
7 |
} from '@woocommerce/icons';
|
8 |
import { createElement } from '@wordpress/element';
|
9 |
|
10 |
+
// Note: Aside from import/export, everything in this file must be IE11 friendly
|
11 |
+
// because currently it does not go through babel transpiling. It is injected
|
12 |
+
// as a replacement for the `@wordpress/component/dashicon` component via
|
13 |
+
// the Webpack NormalModuleReplacementPlugin plugin.
|
14 |
+
|
15 |
+
export default function( props ) {
|
16 |
+
let Icon = function() {
|
17 |
+
return null;
|
18 |
+
};
|
19 |
+
switch ( props.icon ) {
|
20 |
case 'arrow-down-alt2':
|
21 |
Icon = ArrowDownIcon;
|
22 |
break;
|
24 |
Icon = DismissIcon;
|
25 |
break;
|
26 |
}
|
27 |
+
return createElement( Icon, {
|
28 |
+
size: props.size || 20,
|
29 |
+
className: props.className,
|
30 |
+
} );
|
31 |
+
}
|
build/all-products-frontend.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wc-shared-context', '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' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wc-shared-context', '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' => '05ed581cae5a91730b4e143b61a873ad');
|
build/all-products-frontend.js
CHANGED
@@ -3,4 +3,4 @@
|
|
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 a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}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,n){e.exports=n(59)()},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,"i",(function(){return o})),n.d(t,"s",(function(){return a})),n.d(t,"w",(function(){return i})),n.d(t,"p",(function(){return c})),n.d(t,"l",(function(){return u})),n.d(t,"o",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"x",(function(){return f})),n.d(t,"k",(function(){return p})),n.d(t,"j",(function(){return d})),n.d(t,"c",(function(){return m})),n.d(t,"m",(function(){return h})),n.d(t,"n",(function(){return g})),n.d(t,"A",(function(){return b})),n.d(t,"t",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"u",(function(){return O})),n.d(t,"b",(function(){return j})),n.d(t,"f",(function(){return w})),n.d(t,"v",(function(){return S})),n.d(t,"g",(function(){return _})),n.d(t,"r",(function(){return x})),n.d(t,"q",(function(){return R})),n.d(t,"z",(function(){return P})),n.d(t,"y",(function(){return C})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return T}));var r=n(2),o=Object(r.getSetting)("currentUserIsAdmin",!1),a=Object(r.getSetting)("reviewRatingsEnabled",!0),i=Object(r.getSetting)("showAvatars",!0),c=(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","")),u=(Object(r.getSetting)("thumbnail_size",300),Object(r.getSetting)("isLargeCatalog")),s=Object(r.getSetting)("limitTags"),l=(Object(r.getSetting)("hasProducts",!0),Object(r.getSetting)("hasTags",!0),Object(r.getSetting)("homeUrl",""),Object(r.getSetting)("couponsEnabled",!0)),f=(Object(r.getSetting)("shippingEnabled",!0),Object(r.getSetting)("taxesEnabled",!0)),p=Object(r.getSetting)("displayItemizedTaxes",!1),d=(Object(r.getSetting)("displayShopPricesIncludingTax",!1),Object(r.getSetting)("displayCartPricesIncludingTax",!1)),m=(Object(r.getSetting)("productCount",0),Object(r.getSetting)("attributes",[])),h=Object(r.getSetting)("isShippingCalculatorEnabled",!0),g=Object(r.getSetting)("isShippingCostHidden",!1),b=(Object(r.getSetting)("woocommerceBlocksPhase",1),Object(r.getSetting)("wcBlocksAssetUrl","")),v=Object(r.getSetting)("shippingCountries",{}),y=Object(r.getSetting)("allowedCountries",{}),O=Object(r.getSetting)("shippingStates",{}),j=Object(r.getSetting)("allowedStates",{}),w=(Object(r.getSetting)("shippingMethodsExist",!1),Object(r.getSetting)("checkoutShowLoginReminder",!0)),E={id:0,title:"",permalink:""},k=Object(r.getSetting)("storePages",{shop:E,cart:E,checkout:E,privacy:E,terms:E}),S=k.shop.permalink,_=(k.checkout.id,k.checkout.permalink),x=k.privacy.permalink,R=k.privacy.title,P=k.terms.permalink,C=k.terms.title,N=(k.cart.id,k.cart.permalink),T=Object(r.getSetting)("checkoutAllowsGuest",!1);Object(r.getSetting)("checkoutAllowsSignup",!1),n(39)},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(70),o=n(71),a=n(52),i=n(72);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()}},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(73);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},,function(e,t){!function(){e.exports=this.wc.wcSharedContext}()},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"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){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){!function(){e.exports=this.regeneratorRuntime}()},,,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(45);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,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(51);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,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}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,n){"use strict";var r=n(6),o=n.n(r),a=(n(5),n(3)),i=n(4),c=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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e){var t,n=e.label,r=e.screenReaderLabel,o=e.wrapperElement,i=e.wrapperProps,u=null!=n,l=null!=r;return!u&&l?(t=o||"span",i=s(s({},i),{},{className:c()(i.className,"screen-reader-text")}),React.createElement(t,i,r)):(t=o||a.Fragment,u&&l&&n!==r?React.createElement(t,i,React.createElement("span",{"aria-hidden":"true"},n),React.createElement("span",{className:"screen-reader-text"},r)):React.createElement(t,i,n))};l.defaultProps={wrapperProps:{}},t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(30);function o(e,t){if(null==e)return{};var n,o,a=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(6),i=n.n(a),c=n(14),u=n.n(c),s=n(3),l=n.n(s);function f(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 p(){return(p=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 d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){}function b(){}b.resetWarningCache=g;var v=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){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:b,resetWarningCache:g};return n.PropTypes=n,n}()}));function y(){}function O(e){return!!(e||"").match(/\d/)}function j(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function w(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split("."),a=o[0],i=o[1]||"";return{beforeDecimal:a,afterDecimal:i,hasNagation:n,addNegation:r}}function E(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function k(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 S(e,t,n){return Math.min(Math.max(e,t),n)}function _(e){return Math.max(e.selectionStart,e.selectionEnd)}var x={thousandSeparator:v.oneOfType([v.string,v.oneOf([!0])]),decimalSeparator:v.string,allowedDecimalSeparators:v.arrayOf(v.string),thousandsGroupStyle:v.oneOf(["thousand","lakh","wan"]),decimalScale:v.number,fixedDecimalScale:v.bool,displayType:v.oneOf(["input","text"]),prefix:v.string,suffix:v.string,format:v.oneOfType([v.string,v.func]),removeFormatting:v.func,mask:v.oneOfType([v.string,v.arrayOf(v.string)]),value:v.oneOfType([v.number,v.string]),defaultValue:v.oneOfType([v.number,v.string]),isNumericString:v.bool,customInput:v.elementType,allowNegative:v.bool,allowEmptyFormatting:v.bool,allowLeadingZeros:v.bool,onValueChange:v.func,onKeyDown:v.func,onMouseUp:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,type:v.oneOf(["text","tel","password"]),isAllowed:v.func,renderText:v.func,getInputRef:v.oneOfType([v.func,v.shape({current:v.any})])},R={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:y,onChange:y,onKeyDown:y,onMouseUp:y,onFocus:y,onBlur:y,isAllowed:function(){return!0}},P=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=d(t).call(this,e))||"object"!=typeof o&&"function"!=typeof o?h(r):o;var a=e.defaultValue;n.validateProps();var i=n.formatValueProp(a);return n.state={value:i,numAsString:n.removeFormatting(i)},n.selectionBeforeInput={selectionStart:0,selectionEnd:0},n.onChange=n.onChange.bind(h(n)),n.onKeyDown=n.onKeyDown.bind(h(n)),n.onMouseUp=n.onMouseUp.bind(h(n)),n.onFocus=n.onFocus.bind(h(n)),n.onBlur=n.onBlur.bind(h(n)),n}var n,r,o;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&&m(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,a=n.numAsString,i=void 0===a?"":a;if(e!==t){this.validateProps();var c=this.formatNumString(i),u=void 0===t.value?c:this.formatValueProp(),s=this.removeFormatting(u),l=parseFloat(s),f=parseFloat(i);(isNaN(l)&&isNaN(f)||l===f)&&c===o&&(null!==r||u===o)||this.updateValue({formattedValue:u,numAsString:s,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),a="-"===e[0];a&&(e=e.replace("-","")),r&&0===t&&(e=e.split(r)[0]);var i=(e=(e.match(o)||[]).join("").replace(r,".")).indexOf(".");return-1!==i&&(e="".concat(e.substring(0,i),".").concat(e.substring(i+1,e.length).replace(new RegExp(j(r),"g"),""))),a&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var n=this.props,r=n.format,o=n.decimalScale,a=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!a||0===o||t||r?"":"|"+j(a)),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){k(e,t),setTimeout((function(){e.value===n&&k(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,n){var r=this.props,o=r.prefix,a=r.suffix,i=r.format;if(""===e)return 0;if(t=S(t,0,e.length),!i){var c="-"===e[0];return S(t,o.length+(c?1:0),e.length-a.length)}if("function"==typeof i)return t;if("#"===i[t]&&O(e[t]))return t;if("#"===i[t-1]&&O(e[t-1]))return t;var u=i.indexOf("#");t=S(t,u,i.lastIndexOf("#")+1);for(var s=i.substring(t,i.length).indexOf("#"),l=t,f=t+(-1===s?0:s);l>u&&("#"!==i[l]||!O(e[l]));)l-=1;return!O(e[f])||"left"===n&&t!==u||t-l<f-t?O(e[l])?l+1:l:f}},{key:"getCaretPosition",value:function(e,t,n){var r,o,a=this.props.format,i=this.state.value,c=this.getNumberRegex(!0),u=(e.match(c)||[]).join(""),s=(t.match(c)||[]).join("");for(r=0,o=0;o<n;o++){var l=e[o]||"",f=t[r]||"";if((l.match(c)||l===f)&&("0"!==l||!f.match(c)||"0"===f||u.length===s.length)){for(;l!==t[r]&&r<t.length;)r++;r++}}return"string"!=typeof a||i||(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 a="-"===e[0];a&&(e=e.substring(1,e.length));var i=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==i&&i===e.length-o.length?e.substring(0,i):e,a&&(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,a=t.length;o<=a;o++){var i=t[o]||"",c=o===a?e.length:e.indexOf(i,n);if(-1===c){r=e;break}r+=e.substring(n,c),n=c+i.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,a=t.length;o<a;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,a=t.suffix,i=t.allowNegative,c=t.thousandsGroupStyle,u=this.getSeparators(),s=u.thousandSeparator,l=u.decimalSeparator,f=-1!==e.indexOf(".")||n&&r,p=w(e,i),d=p.beforeDecimal,m=p.afterDecimal,h=p.addNegation;return void 0!==n&&(m=E(m,n,r)),s&&(d=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)}(d,s,c)),o&&(d=o+d),a&&(m+=a),h&&(d="-"+d),e=d+(f&&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,a=t.allowEmptyFormatting,i=this.props,c=i.value,u=void 0===c?e:c,s=i.isNumericString,l=!u&&0!==u;return l&&a&&(u=""),l&&!a?"":("number"==typeof u&&(u=u.toString(),s=!0),"Infinity"===u&&s&&(u=""),s&&!n&&"number"==typeof r&&(u=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=-1!==e.indexOf(".")&&t,o=w(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNagation,u=parseFloat("0.".concat(i||"0")).toFixed(t).split("."),s=a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0]),l=E(u[1]||"",Math.min(t,i.length),n),f=r?".":"";return"".concat(c?"-":"").concat(s).concat(f).concat(l)}(u,r,o)),s?this.formatNumString(u):this.formatInput(u))}},{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),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&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,a=n.suffix,i=n.decimalScale,c=n.fixedDecimalScale,u=this.getSeparators().decimalSeparator;return"string"==typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-a.length||i&&c&&t[e]===u))}},{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,a=r.allowNegative,i=r.prefix,c=r.suffix,u=r.decimalScale,s=this.getSeparators(),l=s.allowedDecimalSeparators,f=s.decimalSeparator,p=this.state.numAsString||"",d=this.selectionBeforeInput,m=d.selectionStart,h=d.selectionEnd,g=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),b=g.start,v=g.end;if(!o&&b===v&&-1!==l.indexOf(n[m])){var y=0===u?"":f;return n.substr(0,m)+y+n.substr(m+1,n.length)}var O=o?0:i.length,j=t.length-(o?0:c.length);if(n.length>t.length||!n.length||b===v||0===m&&h===t.length||m===O&&h===j)return n;if(this.checkIfFormatGotDeleted(b,v,t)&&(n=t),!o){var E=this.removeFormatting(n),k=w(E,a),S=k.beforeDecimal,_=k.afterDecimal,x=k.addNegation,R=e<n.indexOf(f)+1;if(E.length<p.length&&R&&""===S&&!parseFloat(_))return x?"-":""}return n}},{key:"updateValue",value:function(e){var t=e.formattedValue,n=e.input,r=e.setCaretPosition,o=void 0===r||r,a=e.numAsString,i=e.caretPos,c=this.props.onValueChange,u=this.state.value;if(n)if(o){if(!i){var s=e.inputValue||n.value,l=_(n);n.value=t,i=this.getCaretPosition(s,t,l)}this.setPatchedCaretPosition(n,i,t)}else n.value=t;void 0===a&&(a=this.removeFormatting(t)),t!==u&&(this.setState({value:t,numAsString:a}),c(this.getValueObject(t,a)))}},{key:"onChange",value:function(e){var t=e.target,n=t.value,r=this.state,o=this.props,a=o.isAllowed,i=r.value||"",c=_(t);n=this.correctInputValue(c,i,n);var u=this.formatInput(n)||"",s=this.removeFormatting(u);a(this.getValueObject(u,s))||(u=i),this.updateValue({formattedValue:u,numAsString:s,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,a=t.allowLeadingZeros,i=n.numAsString,c=n.value;if(this.focusedElm=null,this.focusTimeout&&clearTimeout(this.focusTimeout),!r){isNaN(parseFloat(i))&&(i=""),a||(i=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):"")}(i));var u=this.formatNumString(i);if(u!==c)return this.updateValue({formattedValue:u,numAsString:i,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,a=n.selectionEnd,i=n.value,c=void 0===i?"":i,u=this.props,s=u.decimalScale,l=u.fixedDecimalScale,f=u.prefix,p=u.suffix,d=u.format,m=u.onKeyDown,h=void 0!==s&&l,g=this.getNumberRegex(!1,h),b=new RegExp("-"),v="string"==typeof d;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:a},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===a){var y=t,O=v?d.indexOf("#"):f.length,j=v?d.lastIndexOf("#")+1:c.length-p.length;if("ArrowLeft"===r||"ArrowRight"===r){var w="ArrowLeft"===r?"left":"right";y=this.correctCaretPosition(c,t,w)}else if("Delete"!==r||g.test(c[t])||b.test(c[t])){if("Backspace"===r&&!g.test(c[t]))if(o<=O+1&&"-"===c[0]&&void 0===d){var E=c.substring(1);this.updateValue({formattedValue:E,caretPos:y,input:n})}else if(!b.test(c[t])){for(;!g.test(c[y-1])&&y>O;)y--;y=this.correctCaretPosition(c,y,"left")}}else for(;!g.test(c[y])&&y<j;)y++;(y!==t||t<O||t>j)&&(e.preventDefault(),this.setPatchedCaretPosition(n,y,c)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,y,c),m(e)}else m(e)}},{key:"onMouseUp",value:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value,a=void 0===o?"":o;if(n===r){var i=this.correctCaretPosition(a,n);i!==n&&this.setPatchedCaretPosition(t,i,a)}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,a=n.value,i=void 0===a?"":a,c=t.correctCaretPosition(i,r);c===r||0===r&&o===i.length||t.setPatchedCaretPosition(n,c,i),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.type,a=r.displayType,i=r.customInput,c=r.renderText,u=r.getInputRef,s=this.state.value,f=(e=this.props,t=x,n={},Object.keys(e).forEach((function(r){t[r]||(n[r]=e[r])})),n),d=p({inputMode:"numeric"},f,{type:o,value:s,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===a)return c?c(s)||null:l.a.createElement("span",p({},f,{ref:u}),s);if(i){var m=i;return l.a.createElement(m,p({},d,{ref:u}))}return l.a.createElement("input",p({},d,{ref:u}))}}])&&f(n.prototype,r),o&&f(n,o),t}(l.a.Component);P.propTypes=x,P.defaultProps=R;var C=P,N=n(4),T=n.n(N);n(90);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){i()(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}t.a=function(e){var t=e.className,n=e.value,r=e.currency,a=e.onValueChange,i=u()(e,["className","value","currency","onValueChange"]);if("-"===n)return null;var c=n/Math.pow(10,r.minorUnit);if(!Number.isFinite(c))return null;var s=T()("wc-block-formatted-money-amount",t),l=I(I(I({displayType:"text"},i),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}),f=a?function(e){var t=e.value*Math.pow(10,r.minorUnit);a(t)}:function(){};return React.createElement(C,o()({className:s},l,{value:c,onValueChange:f}))}},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(58);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(20),o=n(19);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(46);var o=n(51);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(37),a=n.n(o),i=function(e){var t=Object(r.useRef)();return a()(e,t.current)||(t.current=e),t.current}},function(e,t){!function(){e.exports=this.wp.blocks}()},,,function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){"use strict";var r=n(32),o=n.n(r),a=n(33),i=n.n(a),c=n(19),u=n.n(c),s=n(34),l=n.n(s),f=n(35),p=n.n(f),d=n(21),m=n.n(d),h=n(6),g=n.n(h),b=(n(5),n(3)),v=n(1),y=n(8),O=function(e){var t=e.imageUrl,n=void 0===t?"".concat(y.A,"img/block-error.svg"):t,r=e.header,o=void 0===r?Object(v.__)("Oops!","woo-gutenberg-products-block"):r,a=e.text,i=void 0===a?Object(v.__)("There was an error loading the content.","woo-gutenberg-products-block"):a,c=e.errorMessage,u=e.errorMessagePrefix,s=void 0===u?Object(v.__)("Error:","woo-gutenberg-products-block"):u;return React.createElement("div",{className:"wc-block-error"},n&&React.createElement("img",{className:"wc-block-error__image",src:n,alt:""}),React.createElement("div",{className:"wc-block-error__content"},o&&React.createElement("p",{className:"wc-block-error__header"},o),i&&React.createElement("p",{className:"wc-block-error__text"},i),c&&React.createElement("p",{className:"wc-block-error__message"},s?s+" ":"",c)))};n(61);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=m()(e);if(t){var o=m()(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,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),g()(u()(e),"state",{errorMessage:"",hasError:!1}),e}return i()(n,[{key:"render",value:function(){var e=this.props,t=e.header,n=e.imageUrl,r=e.showErrorMessage,o=e.text,a=e.errorMessagePrefix,i=this.state,c=i.errorMessage;return i.hasError?React.createElement(O,{errorMessage:r?c:null,header:t,imageUrl:n,text:o,errorMessagePrefix:a}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:React.createElement(b.Fragment,null,React.createElement("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}}]),n}(b.Component);w.defaultProps={showErrorMessage:!0};t.a=w},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(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.autop}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},,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(53);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,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=Object(r.createContext)("page"),a=function(){return Object(r.useContext)(o)};o.Provider},,,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(60);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,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";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";n.d(t,"a",(function(){return s}));var r=n(6),o=n.n(r),a=n(111),i=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=function(){var e=Object(a.b)(),t=e.notices,n=e.createNotice,r=e.removeNotice,o=e.createSnackbarNotice,c=e.setIsSuppressed,s=Object(i.useRef)(t);Object(i.useEffect)((function(){s.current=t}),[t]);var l=Object(i.useMemo)((function(){return{hasNoticesOfType:function(e){return s.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;s.current.map((function(t){return null!==e&&t.status!==e||r(t.id),!0}))},removeNotice:r}}),[r]),f=Object(i.useMemo)((function(){return{addDefaultNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("default",e,u({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("error",e,u({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("warning",e,u({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("info",e,u({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("success",e,u({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(e,t)}}}),[n,o]);return u(u(u({notices:t},l),f),{},{setIsSuppressed:c})}},,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)),a=r(n(73)),i=n(3),c=r(i),u=r(n(100)),s=r(n(19)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function f(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function p(e,t){return l.und(e)||l.nul(e)?t:e}function d(e){return l.und(e)?[]:l.arr(e)?e:[e]}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.fun(e)?e.apply(void 0,n):e}function h(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,a(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 a;return l.und(t[r])?o({},n,((a={})[r]=e[r],a)):n}),{});return o({to:t},n)}var g,b,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(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}return u(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(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}u(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof 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){b=e}var E,k=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},S=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function _(e){E=e}var x,R=function(){return Date.now()};function P(e){x=e}var C,N,T=function(e){return e.current};function A(e){C=e}var I=Object.freeze({get applyAnimatedValues(){return g},injectApplyAnimatedValues:j,get colorNames(){return b},injectColorNames:w,get requestFrame(){return k},get cancelFrame(){return S},injectFrame:function(e,t){k=e,S=t},get interpolation(){return E},injectStringInterpolator:_,get now(){return R},injectNow:function(e){R=e},get defaultElement(){return x},injectDefaultElement:P,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return C},injectCreateAnimatedStyle:A,get manualFrameloop(){return N},injectManualFrameloop:function(e){N=e}}),F=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:C(t.style)}):t,r.update=n,r.attach(),r}return u(t,e),t}(O),D=!1,L=new Set,M=function e(){if(!D)return!1;var t=R(),n=L,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var i=a,c=!1,u=0;u<i.configs.length;u++){for(var s=i.configs[u],l=void 0,f=void 0,p=0;p<s.animatedValues.length;p++){var d=s.animatedValues[p];if(!d.done){var m=s.fromValues[p],h=s.toValues[p],g=d.lastPosition,b=h instanceof v,y=Array.isArray(s.initialVelocity)?s.initialVelocity[p]:s.initialVelocity;if(b&&(h=h.getValue()),s.immediate)d.setValue(h),d.done=!0;else if("string"!=typeof m&&"string"!=typeof h){if(void 0!==s.duration)g=m+s.easing((t-d.startTime)/s.duration)*(h-m),l=t>=d.startTime+s.duration;else if(s.decay)g=m+y/(1-.998)*(1-Math.exp(-(1-.998)*(t-d.startTime))),(l=Math.abs(d.lastPosition-g)<.1)&&(h=g);else{f=void 0!==d.lastTime?d.lastTime:t,y=void 0!==d.lastVelocity?d.lastVelocity:s.initialVelocity,t>f+64&&(f=t);for(var O=Math.floor(t-f),j=0;j<O;++j){g+=1*(y+=1*((-s.tension*(g-h)+-s.friction*y)/s.mass)/1e3)/1e3}var w=!(!s.clamp||0===s.tension)&&(m<h?g>h:g<h),E=Math.abs(y)<=s.precision,S=0===s.tension||Math.abs(h-g)<=s.precision;l=w||E&&S,d.lastVelocity=y,d.lastTime=t}b&&!s.toValues[p].done&&(l=!1),l?(d.value!==h&&(g=h),d.done=!0):c=!0,d.setValue(g),d.lastPosition=g}else d.setValue(h),d.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),c||(L.delete(i),i.stop(!0))}return L.size?N?N():k(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,a=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,c,u){var s=u?u(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){if("identity"===c)return s;"clamp"===c&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=a(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,a[t],a[t+1],o[t],o[t+1],u,i,c,r.map)}}var B=function(e){function t(n,r,o,a){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof y&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=V(r,o,a),i}u(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=V(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(y);var z=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}u(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(v),U=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new z(e)})),n}u(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(y),q=0,H=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=q++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,i=t.to,c=a(t,["delay","to"]);if(l.arr(i)||l.fun(i))this.queue.push(o({},c,{delay:r,to:i}));else if(i){var u={};Object.entries(i).forEach((function(e){var t,n=e[0],a=e[1],i=o({to:(t={},t[n]=a,t),delay:m(r,n)},c),s=u[i.delay]&&u[i.delay].to;u[i.delay]=o({},u[i.delay],i,{to:o({},s,i.to)})})),this.queue=Object.values(u)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,a=e.to,i=void 0===a?{}:a;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var c=t.delay,u=a(t,["delay"]),s=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},f=l.arr(u.to)||l.fun(u.to);c?setTimeout((function(){r===n.guid&&(f?n.runAsync(u,s):n.diff(u).start(s))}),c):f?n.runAsync(u,s):n.diff(u).start(s)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,L.has(t)||L.add(t),D||(D=!0,k(N||M));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,a(e,["delay"])),i=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var u=function(e){var t=e,a=o({},r,h(r.to[t]));l.arr(a.config)&&(a.config=a.config[t]),c=c.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},s=0;s<r.to.length;s++)u(s);else if(l.fun(r.to)){var f,p=0;c=c.then((function(){return r.to((function(e){var t=o({},r,h(e));if(l.arr(t.config)&&(t.config=t.config[p]),p++,i===n.guid)return f=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return f}))}))}c.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,a=void 0===r?{}:r,i=n.to,c=void 0===i?{}:i,u=n.config,s=void 0===u?{}:u,f=n.reverse,h=n.attach,g=n.reset,v=n.immediate;if(f){var y=[c,a];a=y[0],c=y[1]}this.merged=o({},a,this.merged,c),this.hasChanged=!1;var O=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],c=e[r]||{},u=l.num(i),f=l.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!b[i],h=l.arr(i),y=!u&&!h&&!f,j=l.und(a[r])?i:a[r],w=u||h||f?i:1,k=m(s,r);O&&(w=O.animations[r].parent);var S,_=c.parent,x=c.interpolation,P=d(O?w.getPayload():w),C=i;y&&(C=E({range:[0,1],output:[i,i]})(1));var N,T=x&&x.getValue(),A=!l.und(_)&&c.animatedValues.some((function(e){return!e.done})),I=!l.equ(C,T),F=!l.equ(C,c.previous),D=!l.equ(k,c.config);if(g||F&&I||D){var L;if(u||f)_=x=c.parent||new z(j);else if(h)_=x=c.parent||new U(j);else if(y){var M=c.interpolation&&c.interpolation.calc(c.parent.value);M=void 0===M||g?j:M,c.parent?(_=c.parent).setValue(0,!1):_=new z(0);var V={output:[M,i]};c.interpolation?(x=c.interpolation,c.interpolation.updateConfig(V)):x=_.interpolate(V)}return P=d(O?w.getPayload():w),S=d(_.getPayload()),g&&!y&&_.setValue(j,!1),t.hasChanged=!0,S.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=A?e.lastVelocity:void 0,e.lastTime=A?e.lastTime:void 0,e.startTime=R(),e.done=!1,e.animatedStyles.clear()})),m(v,r)&&_.setValue(y?w:i,!1),o({},e,((L={})[r]=o({},c,{name:r,parent:_,interpolation:x,animatedValues:S,toValues:P,previous:C,config:k,fromValues:d(_.getValue()),immediate:m(v,r),initialVelocity:p(k.velocity,0),clamp:p(k.clamp,!1),precision:p(k.precision,.01),tension:p(k.tension,170),friction:p(k.friction,26),mass:p(k.mass,1),duration:k.duration,easing:p(k.easing,(function(e){return e})),decay:k.decay}),L))}return I?e:(y&&(_.setValue(1,!1),x.updateConfig({output:[C,C]})),_.done=!0,t.hasChanged=!0,o({},e,((N={})[r]=o({},e[r],{previous:C}),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=i.useRef(!1),r=i.useRef(),o=l.fun(t),a=i.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 a=new H,i=o?m(t,r,a):t[r];return 0===r&&(n=i.ref),a.update(i),n||a.start(),a})),n]}),[e]),c=a[0],u=a[1];r.current=c;i.useImperativeHandle(u,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=i.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?m(e,n,t):e[n]),u||t.start()}))}}),[e]);i.useEffect((function(){n.current?o||s(t):u||r.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var f=r.current.map((function(e){return e.getValues()}));return o?[f,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:f},K=0,Y=function(e,t){return("function"==typeof t?e.map(t):d(t)).map(String)},Q=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,i=a(e,["items","keys"]);return t=d(void 0!==t?t:null),o({items:t,keys:Y(t,r)},i)};function G(e,t){var n=function(){if(o){if(a>=r.length)return"break";i=r[a++]}else{if((a=r.next()).done)return"break";i=a.value}var n=i.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var $=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 u(t,e),t}(O),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function X(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+X(J,J,J)),te=new RegExp("rgba"+X(J,J,J,J)),ne=new RegExp("hsl"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",J)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{6})$/,ce=/^#([0-9a-fA-F]{8})$/;function ue(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=ue(o,r,e+1/3),i=ue(o,r,e),c=ue(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function fe(e){return(parseFloat(e)%360+360)%360/360}function pe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function de(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|pe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ae.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(fe(n[1]),de(n[2]),de(n[3])))>>>0:(n=re.exec(t))?(se(fe(n[1]),de(n[2]),de(n[3]))|pe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ge=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,be=new RegExp("("+Object.keys(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={};A((function(e){return new $(e)})),P("div"),_((function(e){var t=e.output.map((function(e){return e.replace(ge,me)})).map((function(e){return e.replace(be,me)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return V(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),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,i=t.scrollLeft,c=a(t,["style","children","scrollTop","scrollLeft"]),u="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var l=0===s.indexOf("--"),f=Oe(s,n[s],l);"float"===s&&(s="cssFloat"),l?e.style.setProperty(s,f):e.style[s]=f}for(var p in c){var d=u?p:je[p]||(je[p]=p.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(d)&&e.setAttribute(d,c[p])}}),(function(e){return e}));var we,Ee,ke=(we=function(e){return i.forwardRef((function(t,n){var r=f(),u=i.useRef(!0),s=i.useRef(null),p=i.useRef(null),d=i.useCallback((function(e){var t=s.current;s.current=new F(e,(function(){var e=!1;p.current&&(e=g.fn(p.current,s.current.getAnimatedValue())),p.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){u.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(p,u,r)})),d(t);var m,h=s.current.getValue(),b=(h.scrollTop,h.scrollLeft,a(h,["scrollTop","scrollLeft"])),v=(m=e,!l.fun(m)||m.prototype instanceof c.Component?function(e){return p.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},b,{ref: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)}),Se=ke(["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=ke,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=M,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=I,t.useSpring=function(e){var t=l.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=l.fun(t),a=m(t),c=i.useRef(),u=W(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},a,{config:m(a.config,e),attach:e>0&&function(){return c.current[e-1]}})})),s=u[0],f=u[1],p=u[2],d=i.useMemo((function(){return function(e){return f((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=c.current[r];return o({},e,{config:m(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&d(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,d,p]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=Q(r),u=c.lazy,s=void 0!==u&&u,l=(c.unique,c.reset),p=void 0!==l&&l,d=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),g=c.onRest,b=c.onStart,v=c.ref,y=a(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=f(),j=i.useRef(!1),w=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return i.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,i=a(e,["first","prevProps"]),c=Q(t),u=c.items,s=c.keys,l=c.initial,f=c.from,p=c.enter,d=c.leave,h=c.update,g=c.trail,b=void 0===g?0:g,v=c.unique,y=c.config,O=c.order,j=void 0===O?["enter","leave","update"]:O,w=Q(r),E=w.keys,k=w.items,S=o({},i.current),_=[].concat(i.deleted),x=Object.keys(S),R=new Set(x),P=new Set(s),C=s.filter((function(e){return!R.has(e)})),N=i.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return R.has(e)})),A=-b;for(;j.length;){switch(j.shift()){case"enter":C.forEach((function(e,t){v&&_.find((function(t){return t.originalKey===e}))&&(_=_.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=u[r],a=n&&void 0!==l?"initial":"enter";S[e]={slot:a,originalKey:e,key:v?String(e):K++,item:o,trail:A+=b,config:m(y,o,a),from:m(n&&void 0!==l?l||{}:f,o),to:m(p,o)}}));break;case"leave":N.forEach((function(e){var t=E.indexOf(e),n=k[t];_.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:E[Math.max(0,t-1)],right:E[Math.min(E.length,t+1)],trail:A+=b,config:m(y,n,"leave"),to:m(d,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=u[t];S[e]=o({},S[e],{item:n,slot:"update",trail:A+=b,config:m(y,n,"update"),to:m(h,n)})}))}}var I=s.map((function(e){return S[e]}));return _.forEach((function(e){var t,n=e.left,r=(e.right,a(e,["left","right"]));-1!==(t=I.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),I=[].concat(I.slice(0,t),[r],I.slice(t))})),o({},i,{changed:C.length||N.length||T.length,first:n&&0===C.length,transitions:I,current:S,deleted:_,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,a=e.config,i=e.trail,c=e.key,u=e.item;w.current.instances.has(c)||w.current.instances.set(c,new H);var l=w.current.instances.get(c),f=o({},y,{to:r,from:n,config:a,ref:v,onRest:function(n){w.current.mounted&&(e.destroyed&&(v||s||G(w,c),d&&d(u)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(v||s)&&w.current.deleted.length>0&&G(w),g&&g(u,t,n))},onStart:b&&function(){return b(u,t)},onFrame:h&&function(e){return h(u,t,e)},delay:i,reset:p&&"enter"===t});l.update(f),w.current.paused||l.start()})),i.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=i.useRef();i.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 a=e.current;if(a){var i=a.controllers;if(i.length){var c=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},function(e,t){!function(){e.exports=this.wp.wordcount}()},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(14),i=n.n(a),c=n(88),u=n(4),s=n.n(u),l=function(e){var t=e.className,n=e.size,r=i()(e,["className","size"]),a=s()("dashicon","dashicons-arrow-down-alt2",t);return React.createElement(c.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:a,width:n,height:n},r),React.createElement("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},f=function(e){var t=e.className,n=e.size,r=i()(e,["className","size"]),a=s()("dashicon","dashicons-arrow-down-alt2",t);return React.createElement(c.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:a,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"}))},p=n(0);t.a=({icon:e,size:t=20,className:n,...r})=>{let o=()=>null;switch(e){case"arrow-down-alt2":o=l;break;case"no-alt":o=f}return Object(p.createElement)(o,{size:t,className:n,...r})}},,,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,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}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){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";var r=n(26),o=n(9),a=n(29),i=n(0),c=n(67),u=n(88);t.a=function(e){var t=e.icon,n=void 0===t?null:t,s=e.size,l=Object(a.a)(e,["icon","size"]),f=s||20;if("string"==typeof n)return Object(i.createElement)(c.a,Object(o.a)({icon:n,size:f},l));if(n&&c.a===n.type)return Object(i.cloneElement)(n,Object(r.a)({size:f},l));var p=s||24;if("function"==typeof n)return n.prototype instanceof i.Component?Object(i.createElement)(n,Object(r.a)({size:p},l)):n(Object(r.a)({size:p},l));if(n&&("svg"===n.type||n.type===u.a)){var d=Object(r.a)({width:p,height:p},n.props,l);return Object(i.createElement)(u.a,d)}return Object(i.isValidElement)(n)?Object(i.cloneElement)(n,Object(r.a)({size:p},l)):n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(15),o=n(12),a=n(109),i=n(16),c=n(7),u={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(){}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(a.a)(),n=t.isEditor,s=t.previewData,l=(null==s?void 0:s.previewCart)||{},f=e.shouldSelect,p=Object(o.useSelect)((function(e,t){var o=t.dispatch;if(!f)return u;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 a=e(r.CART_STORE_KEY),s=a.getCartData(),p=a.getCartErrors(),d=a.getCartTotals(),m=!a.hasFinishedResolution("getCartData"),h=a.areShippingRatesLoading(),g=o(r.CART_STORE_KEY).receiveCart,b=Object(c.mapValues)(s.shippingAddress,(function(e){return Object(i.decodeEntities)(e)}));return{cartCoupons:s.coupons,cartItems:s.items,cartItemsCount:s.itemsCount,cartItemsWeight:s.itemsWeight,cartNeedsPayment:s.needsPayment,cartNeedsShipping:s.needsShipping,cartItemErrors:s.errors,cartTotals:d,cartIsLoading:m,cartErrors:p,shippingAddress:b,shippingRates:s.shippingRates,shippingRatesLoading:h,hasShippingAddress:!!b.country,receiveCart:g}}),[f]);return p}},,function(e,t,n){"use strict";var r=n(26),o=n(29),a=n(4),i=n.n(a),c=n(0);t.a=Object(c.forwardRef)((function(e,t){var n=e.href,a=e.target,u=e.isPrimary,s=e.isLarge,l=e.isSmall,f=e.isTertiary,p=e.isToggled,d=e.isBusy,m=e.isDefault,h=e.isLink,g=e.isDestructive,b=e.className,v=e.disabled,y=Object(o.a)(e,["href","target","isPrimary","isLarge","isSmall","isTertiary","isToggled","isBusy","isDefault","isLink","isDestructive","className","disabled"]),O=i()("components-button",b,{"is-button":m||u||s||l,"is-default":m||!u&&(s||l),"is-primary":u,"is-large":s,"is-small":l,"is-tertiary":f,"is-toggled":p,"is-busy":d,"is-link":h,"is-destructive":g}),j=void 0===n||v?"button":"a",w="a"===j?{href:n,target:a}:{type:"button",disabled:v};return Object(c.createElement)(j,Object(r.a)({},w,y,{className:O,ref:t}))}))},function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},,,function(e,t){!function(){e.exports=this.wp.deprecated}()},,function(e,t,n){"use strict";var r=n(0),o=n(66),a=n(48),i=function(e){var t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)},c=function(e){return e.replace(/<\/?[a-z][^>]*?>/gi,"")},u=function(e,t){return e.replace(/[\s|\.\,]+$/i,"")+t},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"…",r=c(e),o=r.split(" ").splice(0,t).join(" ");return Object(a.autop)(u(o,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]:"…",o=c(e),i=o.slice(0,t);if(n)return Object(a.autop)(u(i,r));var s=i.match(/([\s]+)/g),l=s?s.length:0,f=o.slice(0,t+l);return Object(a.autop)(u(f,r))};t.a=function(e){var t=e.source,n=e.maxLength,c=void 0===n?15:n,u=e.countType,f=void 0===u?"words":u,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(a.autop)(e),c=Object(o.count)(r,n);if(c<=t)return r;var u=i(r),f=Object(o.count)(u,n);return f<=t?u:"words"===n?s(u,t):l(u,t,"characters_including_spaces"===n)}(t,c,f)}),[t,c,f]);return React.createElement(r.RawHTML,{className:d},m)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(10),o=n.n(r),a=n(0),i=function(){var e=Object(a.useState)(),t=o()(e,2)[1];return function(e){return t((function(){throw e}))}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(26),o=n(7),a=n(0),i=function(e){var t=Object(r.a)({},e,{role:"img","aria-hidden":"true",focusable:"false"});return Object(a.createElement)("svg",Object(o.omit)(t,"__unstableActive"))}},,function(e,t){},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return d}));var r=n(10),o=n.n(r),a=n(15),i=n(12),c=n(0),u=n(55),s=n(7),l=n(38),f=function(e){var t=Object(u.a)();e=e||t;var n=Object(i.useSelect)((function(t){return t(a.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0)}),[e]),r=Object(i.useDispatch)(a.QUERY_STATE_STORE_KEY).setValueForQueryContext;return[n,Object(c.useCallback)((function(t){r(e,t)}),[e])]},p=function(e,t,n){var r=Object(u.a)();n=n||r;var o=Object(i.useSelect)((function(r){return r(a.QUERY_STATE_STORE_KEY).getValueForQueryKey(n,e,t)}),[n,e]),s=Object(i.useDispatch)(a.QUERY_STATE_STORE_KEY).setQueryValue;return[o,Object(c.useCallback)((function(t){s(n,e,t)}),[n,e])]},d=function(e,t){var n=Object(u.a)(),r=f(t=t||n),a=o()(r,2),i=a[0],p=a[1],d=Object(l.a)(e),m=Object(c.useRef)(!1);return Object(c.useEffect)((function(){p(Object(s.assign)({},i,d)),m.current=!0}),[d]),m.current?[i,p]:[e,p]}},function(e,t,n){"use strict";var r=n(9),o=n(0),a=n(7);var i=function(e,t){return function(n){var r=e(n),o=n.displayName,i=void 0===o?n.name||"Component":o;return r.displayName="".concat(Object(a.upperFirst)(Object(a.camelCase)(t)),"(").concat(i,")"),r}},c=new WeakMap;function u(e){return Object(o.useMemo)((function(){return function(e){var t=c.get(e)||0;return c.set(e,t+1),t}(e)}),[e])}t.a=i((function(e){return function(t){var n=u(e);return Object(o.createElement)(e,Object(r.a)({},t,{instanceId:n}))}}),"withInstanceId")},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(11),o=n.n(r),a=n(6),i=n.n(a),c=n(44),u=n(43);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){var t=e.Block,n=e.selector,r=e.getProps,a=void 0===r?function(){}:r,i=e.getErrorBoundaryProps,s=void 0===i?function(){}:i,f=document.querySelectorAll(n);f.length&&Array.prototype.forEach.call(f,(function(e,n){var r=a(e,n),i=s(e,n),f=l(l({},e.dataset),r.attributes);e.classList.remove("is-loading"),Object(c.render)(React.createElement(u.a,i,React.createElement(t,o()({},r,{attributes:f}))),e)}))}},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,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(15),o=n(12),a=n(0),i=n(85),c=n(38),u=function(e){var t=e.namespace,n=e.resourceName,u=e.resourceValues,s=void 0===u?[]:u,l=e.query,f=void 0===l?{}:l,p=e.shouldSelect,d=void 0===p||p;if(!t||!n)throw new Error("The options object must have valid values for the namespace and the resource properties.");var m=Object(a.useRef)({results:[],isLoading:!0}),h=Object(c.a)(f),g=Object(c.a)(s),b=Object(i.a)(),v=Object(o.useSelect)((function(e){if(!d)return null;var o=e(r.COLLECTIONS_STORE_KEY),a=[t,n,h,g],i=o.getCollectionError.apply(o,a);return i&&b(i),{results:o.getCollection.apply(o,a),isLoading:!o.hasFinishedResolution("getCollection",a)}}),[t,n,g,h,d]);return null!==v&&(m.current=v),m.current}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=(n(12),Object(r.createContext)({isEditor:!1,currentPostId:0,previewData:{}})),a=function(){return Object(r.useContext)(o)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return F})),n.d(t,"a",(function(){return D}));var r=n(6),o=n.n(r),a=n(10),i=n.n(a),c=(n(5),n(0)),u=n(12),s=n(11),l=n.n(s),f=n(4),p=n.n(f),d=n(168),m=(n(99),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""}),h=function(e){var t=e.className,n=e.notices,r=F().removeNotice,o=p()(t,"wc-block-components-notices"),a=n.filter((function(e){return"snackbar"!==e.type}));return a.length?React.createElement("div",{className:o},a.map((function(e){return React.createElement(d.a,l()({key:"store-notice-"+e.id},e,{className:p()("wc-block-components-notices__notice","woocommerce-message",m(e)),onRemove:function(){e.isDismissible&&r(e.id)}}),e.content)}))):null},g=n(9),b=n(22),v=n.n(b);function y(e,t,n,r,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function O(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){y(a,r,o,i,c,"next",e)}function c(e){y(a,r,o,i,c,"throw",e)}i(void 0)}))}}var j=n(27),w=n(7),E=n(65),k=n(25),S=n(1),_=n(77);var x=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.children,o=e.actions,a=void 0===o?[]:o,i=e.onRemove,u=void 0===i?w.noop:i;Object(c.useEffect)((function(){var e=setTimeout((function(){u()}),1e4);return function(){return clearTimeout(e)}}),[]);var s=p()(n,"components-snackbar");return a&&a.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),a=[a[0]]),Object(c.createElement)("div",{ref:t,className:s,onClick:u,tabIndex:"0",role:"button",onKeyPress:u,label:Object(S.__)("Dismiss this notice")},Object(c.createElement)("div",{className:"components-snackbar__content"},r,a.map((function(e,t){var n=e.label,r=e.onClick,o=e.url;return Object(c.createElement)(_.a,{key:t,href:o,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))}));var R=function(e){var t=e.notices,n=e.className,r=e.children,o=e.onRemove,a=void 0===o?w.noop:o,i=Object(k.useReducedMotion)(),u=Object(c.useState)((function(){return new WeakMap})),s=Object(j.a)(u,1)[0],l=Object(E.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=O(v.a.mark((function t(n){return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:s.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=O(v.a.mark((function e(t){return v.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:i});n=p()("components-snackbar-list",n);var f=function(e){return function(){return a(e.id)}};return Object(c.createElement)("div",{className:n},r,l.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(E.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&s.set(t,e)}},Object(c.createElement)(x,Object(g.a)({},Object(w.omit)(t,["content"]),{onRemove:f(t)}),t.content)))})))},P=n(63),C=n(109),N=function(){var e=Object(C.a)().isEditor,t=Object(P.a)(),n=t.notices,r=t.removeNotice,o=n.filter((function(e){return"snackbar"===e.type}));return e?null:React.createElement(R,{notices:o,className:"wc-block-notices__snackbar",onRemove:r})};function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=Object(c.createContext)({notices:[],createNotice:function(e,t,n){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),F=function(){return Object(c.useContext)(I)},D=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.createNoticeContainer,a=void 0===o||o,s=e.context,l=void 0===s?"wc/core":s,f=Object(u.useDispatch)("core/notices"),p=f.createNotice,d=f.removeNotice,m=Object(c.useState)(!1),g=i()(m,2),b=g[0],v=g[1],y=Object(c.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]:{};p(e,t,A(A({},n),{},{context:n.context||l}))}),[p,l]),O=Object(c.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;d(e,t)}),[d,l]),j=Object(c.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,A(A({},t),{},{type:"snackbar"}))}),[y]),w={notices:Object(u.useSelect)((function(e){return{notices:e("core/notices").getNotices(l)}}),[l]).notices,createNotice:y,createSnackbarNotice:j,removeNotice:O,context:l,setIsSuppressed:v},E=b?null:React.createElement(h,{className:r,notices:w.notices}),k=b?null:React.createElement(N,null);return React.createElement(I.Provider,{value:w},a&&E,t,k)}},,,,,,,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 h}));var r=n(6),o=n.n(r),a=n(20),i=n.n(a),c=n(2);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l,f,p={code:c.CURRENCY.code,symbol:c.CURRENCY.symbol,thousandSeparator:c.CURRENCY.thousandSeparator,decimalSeparator:c.CURRENCY.decimalSeparator,minorUnit:c.CURRENCY.precision,prefix:(l=c.CURRENCY.symbol,f=c.CURRENCY.symbolPosition,{left:l,left_space:" "+l,right:"",right_space:""}[f]||""),suffix:function(e,t){return{left:"",left_space:"",right:e,right_space:" "+e}[t]||""}(c.CURRENCY.symbol,c.CURRENCY.symbolPosition)},d=function(e){if(!e||"object"!==i()(e))return p;var t=e.currency_code,n=e.currency_symbol,r=e.currency_thousand_separator,o=e.currency_decimal_separator,a=e.currency_minor_unit,c=e.currency_prefix,u=e.currency_suffix;return{code:t||"USD",symbol:n||"$",thousandSeparator:"string"==typeof r?r:",",decimalSeparator:"string"==typeof o?o:".",minorUnit:Number.isFinite(a)?a:2,prefix:"string"==typeof c?c:"$",suffix:"string"==typeof u?u:""}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(s({},p),e)},h=function(e,t){if(""===e||void 0===e)return"";var n=parseInt(e,10);if(!Number.isFinite(n))return"";var r=m(t),o=n/Math.pow(10,r.minorUnit),a=r.prefix+o+r.suffix,i=document.createElement("textarea");return i.innerHTML=a,i.value}},function(e,t,n){"use strict";var r=n(0),o=n(2),a=n(15),i=n(12);t.a=function(e){return function(t){var n;return n=Object(r.useRef)(Object(o.getSetting)("restApiRoutes")),Object(i.useSelect)((function(e,t){if(n.current){var r=e(a.SCHEMA_STORE_KEY),o=r.isResolving,i=r.hasFinishedResolution,c=t.dispatch(a.SCHEMA_STORE_KEY),u=c.receiveRoutes,s=c.startResolution,l=c.finishResolution;Object.keys(n.current).forEach((function(e){var t=n.current[e];o("getRoutes",[e])||i("getRoutes",[e])||(s("getRoutes",[e]),u(t,[e]),l("getRoutes",[e]))}))}}),[]),React.createElement(e,t)}}},,,,,function(e,t,n){"use strict";n(5);var r=n(4),o=n.n(r),a=n(28),i=n(94);n(137);t.a=Object(i.a)((function(e){var t=e.className,n=e.instanceId,r=e.defaultValue,i=e.label,c=e.onChange,u=e.options,s=e.screenReaderLabel,l=e.readOnly,f=e.value,p="wc-block-sort-select__select-".concat(n);return React.createElement("div",{className:o()("wc-block-sort-select",t)},React.createElement(a.a,{label:i,screenReaderLabel:s,wrapperElement:"label",wrapperProps:{className:"wc-block-sort-select__label",htmlFor:p}}),React.createElement("select",{id:p,className:"wc-block-sort-select__select",defaultValue:r,onChange:c,readOnly:l,value:f},u.map((function(e){return React.createElement("option",{key:e.key,value:e.key},e.label)}))))}))},,function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(32),i=n.n(a),c=n(33),u=n.n(c),s=n(19),l=n.n(s),f=n(34),p=n.n(f),d=n(35),m=n.n(d),h=n(21),g=n.n(h),b=n(6),v=n.n(b),y=n(3);n(148);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){p()(r,t);var n=O(r);function r(){var e;return i()(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 u()(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){},function(e,t,n){"use strict";var r=n(6),o=n.n(r),a=n(14),i=n.n(a),c=n(3);n(5);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}t.a=function(e){var t=e.srcElement,n=e.size,r=void 0===n?24:n,a=i()(e,["srcElement","size"]);return Object(c.isValidElement)(t)&&Object(c.cloneElement)(t,function(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){o()(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}({width:r,height:r},a))}},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){var n=[];return Object.keys(e).forEach((function(r){if(void 0!==t[r])switch(e[r].type){case"boolean":n[r]="false"!==t[r];break;case"number":n[r]=parseInt(t[r],10);break;case"array":case"object":n[r]=JSON.parse(t[r]);break;default:n[r]=t[r]}else n[r]=e[r].default})),n}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),a=n(4),i=n.n(a),c=n(1),u=n(77),s=n(9),l=n(29);function f(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}var m=n(62),h=n(13);function g(e,t){return!t||"object"!==Object(m.a)(t)&&"function"!=typeof t?Object(h.a)(e):t}function b(e){return(b=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(27),j=n(47),w=n(49),E=n(81),k=n.n(E),S=n(25),_=n(26),x=function(){return"rtl"===document.documentElement.dir};function R(e,t,n,r){var o=t.width;"left"===n&&x()?n="right":"right"===n&&x()&&(n="left");var a,i=Math.round(e.left+e.width/2),c={popoverLeft:i,contentWidth:(i-o/2>0?o/2:i)+(i+o/2>window.innerWidth?window.innerWidth-i:o/2)},u="middle"===r?e.left:i,s={popoverLeft:u,contentWidth:u-o>0?o:u},l="middle"===r?e.right:i,f={popoverLeft:l,contentWidth:l+o>window.innerWidth?window.innerWidth-l:o},p=null;if("center"===n&&c.contentWidth===o)a="center";else if("left"===n&&s.contentWidth===o)a="left";else if("right"===n&&f.contentWidth===o)a="right";else{var d="left"===(a=s.contentWidth>f.contentWidth?"left":"right")?s.contentWidth:f.contentWidth;p=d!==o?d:null}return{xAxis:a,popoverLeft:"center"===a?c.popoverLeft:"left"===a?s.popoverLeft:f.popoverLeft,contentWidth:p}}function P(e,t,n){var r,o=t.height,a=e.top+e.height/2,i={popoverTop:a,contentHeight:(a-o/2>0?o/2:a)+(a+o/2>window.innerHeight?window.innerHeight-a:o/2)},c={popoverTop:e.top,contentHeight:e.top-10-o>0?o:e.top-10},u={popoverTop:e.bottom,contentHeight:e.bottom+10+o>window.innerHeight?window.innerHeight-10-e.bottom:o},s=null;if("middle"===n&&i.contentHeight===o)r="middle";else if("top"===n&&c.contentHeight===o)r="top";else if("bottom"===n&&u.contentHeight===o)r="bottom";else{var l="top"===(r=c.contentHeight>u.contentHeight?"top":"bottom")?c.contentHeight:u.contentHeight;s=l!==o?l:null}return{yAxis:r,popoverTop:"middle"===r?i.popoverTop:"top"===r?c.popoverTop:u.popoverTop,contentHeight:s}}var C=n(36),N=Object(r.createContext)({focusHistory:[]}),T=N.Provider,A=N.Consumer;T.displayName="FocusReturnProvider",A.displayName="FocusReturnConsumer";r.Component;var I=Object(S.createHigherOrderComponent)((function e(t){if((a=t)instanceof r.Component||"function"==typeof a){var n=t;return e({})(n)}var a,i=t.onFocusReturn,c=void 0===i?o.stubTrue:i;return function(e){var t=function(t){function n(){var e;return f(this,n),(e=g(this,b(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),d(n,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==c())for(var r,a=[].concat(Object(C.a)(o.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(C.a)(n)))),[e]);r=a.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)(A,null,(function(n){return Object(r.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn"),F=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return f(this,n),(e=g(this,b(n).apply(this,arguments))).focusContainRef=Object(r.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(h.a)(e)),e}return y(n,t),d(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 L=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return f(this,n),(e=g(this,b(n).apply(this,arguments))).bindNode=e.bindNode.bind(Object(h.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(h.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(h.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(h.a)(e)),e}return y(n,t),d(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(s.a)({ref:this.bindNode},this.props)))}}]),n}(r.Component)}),"withFocusOutside")(function(e){function t(){return f(this,t),g(this,b(t).apply(this,arguments))}return y(t,e),d(t,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),t}(r.Component));var M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,o=e.className,a=void 0===o?"lockscroll":o,i=0,c=0;function u(e){var t=n.scrollingElement||n.body;e&&(c=t.scrollTop);var r=e?"add":"remove";t.classList[r](a),n.documentElement.classList[r](a),e||(t.scrollTop=c)}function s(){0===i&&u(!0),++i}function l(){1===i&&u(!1),--i}return function(e){function t(){return f(this,t),g(this,b(t).apply(this,arguments))}return y(t,e),d(t,[{key:"componentDidMount",value:function(){s()}},{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(s.a)({},o,{ref:t,onMouseDown:V}),n)})),z=Object(r.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),U=z.Provider,q=z.Consumer,H=(r.Component,0);function W(e){var t=e.name,n=e.children,a=e.registerFill,i=e.unregisterFill,c=function(e){var t=Object(r.useContext)(z),n=t.getSlot,o=t.subscribe,a=Object(r.useState)(n(e)),i=Object(O.a)(a,2),c=i[0],u=i[1];return Object(r.useEffect)((function(){return u(n(e)),o((function(){u(n(e))}))}),[e]),c}(t),u=Object(r.useRef)({name:t,children:n});return u.current.occurrence||(u.current.occurrence=++H),Object(r.useLayoutEffect)((function(){return a(t,u.current),function(){return i(t,u.current)}}),[]),Object(r.useLayoutEffect)((function(){u.current.children=n,c&&!c.props.bubblesVirtually&&c.forceUpdate()}),[n]),Object(r.useLayoutEffect)((function(){t!==u.current.name&&(i(u.current.name,u.current),u.current.name=t,a(t,u.current))}),[t]),c&&c.node&&c.props.bubblesVirtually?(Object(o.isFunction)(n)&&(n=n(c.props.fillProps)),Object(r.createPortal)(n,c.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(s.a)({},e,{registerFill:n,unregisterFill:o}))}))},Y=function(e){function t(){var e;return f(this,t),(e=g(this,b(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(h.a)(e)),e}return y(t,e),d(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,a=e.bubblesVirtually,i=void 0!==a&&a,c=e.fillProps,u=void 0===c?{}:c,s=e.getFills,l=e.className;if(i)return Object(r.createElement)("div",{ref:this.bindNode,className:l});var f=Object(o.map)(s(n,this),(function(e){var t=e.occurrence,n=Object(o.isFunction)(e.children)?e.children(u):e.children;return r.Children.map(n,(function(e,n){if(!e||Object(o.isString)(e))return e;var a="".concat(t,"---").concat(e.key||n);return Object(r.cloneElement)(e,{key:a})}))})).filter(Object(o.negate)(r.isEmptyElement));return Object(r.createElement)(r.Fragment,null,Object(o.isFunction)(t)?t(f):f)}}]),t}(r.Component),Q=function(e){return Object(r.createElement)(q,null,(function(t){var n=t.registerSlot,o=t.unregisterSlot,a=t.getFills;return Object(r.createElement)(Y,Object(s.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:a}))}))},G=n(45);var $=function(e){var t=e.type,n=e.options,r=void 0===n?{}:n,o=e.children;if("appear"===t){var a,c=r.origin,u=(void 0===c?"top":c).split(" "),s=Object(O.a)(u,2),l=s[0],f=s[1],p=void 0===f?"center":f;return o({className:i()("components-animate__appear",(a={},Object(G.a)(a,"is-from-"+p,"center"!==p),Object(G.a)(a,"is-from-"+l,"middle"!==l),a))})}if("slide-in"===t){var d=r.origin,m=void 0===d?"left":d;return o({className:i()("components-animate__slide-in","is-from-"+m)})}return o("loading"===t?{className:i()("components-animate__loading")}:{})},Z=F(I((function(e){return e.children})));function J(e,t){var n=window.getComputedStyle(t),r=n.paddingTop,o=n.paddingBottom,a=n.paddingLeft,i=n.paddingRight,c=r?parseInt(r,10):0,u=o?parseInt(o,10):0,s=a?parseInt(a,10):0,l=i?parseInt(i,10):0;return{x:e.left+s,y:e.top+c,width:e.width-s-l,height:e.height-c-u,left:e.left+s,right:e.right-l,top:e.top+c,bottom:e.bottom-u}}function X(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,a=e.children,c=e.className,u=e.noArrow,f=void 0!==u&&u,p=e.position,d=void 0===p?"top":p,m=(e.range,e.focusOnMount),h=void 0===m?"firstElement":m,g=e.anchorRef,b=e.shouldAnchorIncludePadding,v=e.anchorVerticalBuffer,y=e.anchorHorizontalBuffer,E=e.anchorRect,x=e.getAnchorRect,C=e.expandOnMobile,N=e.animate,T=void 0===N||N,A=e.onClickOutside,I=e.onFocusOutside,F=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),z=Object(r.useRef)(),U=Object(r.useRef)(),H=Object(S.useViewportMatch)("medium","<"),W=Object(r.useState)(),Y=Object(O.a)(W,2),Q=Y[0],G=Y[1],ne=C&&H;f=ne||f,Object(r.useEffect)((function(){var e=z.current,t=V.current;if(ne)return te(e,"is-without-arrow",f),X(e,"data-x-axis"),X(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 a=r.getBoundingClientRect();return o?a:J(a,r)}if(e.current){var i=e.current.parentNode,c=i.getBoundingClientRect();return o?c:J(c,i)}}(D,E,x,g,b);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),U.current||(U.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),a=o[0],i=o[1],c=void 0===i?"center":i,u=P(e,t,a),s=R(e,t,c,u.yAxis);return Object(_.a)({},s,u)}(n,U.current,d),o=r.popoverTop,a=r.popoverLeft,i=r.xAxis,c=r.yAxis,u=r.contentHeight,s=r.contentWidth;te(e,"is-without-arrow",f||"center"===i&&"middle"===c),X(e,"data-x-axis",i),X(e,"data-y-axis",c),ee(e,"top","number"==typeof o?o+"px":""),ee(e,"left","number"==typeof a?a+"px":""),ee(t,"maxHeight","number"==typeof u?u+"px":""),ee(t,"maxWidth","number"==typeof s?s+"px":"");G(({left:"right",right:"left"}[i]||"center")+" "+({top:"bottom",bottom:"top"}[c]||"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,E,x,g,b,v,y,d]),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=j.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(h,V);var re=function(e){e.keyCode===w.ESCAPE&&n&&(e.stopPropagation(),n()),o&&o(e)};var oe=Object(r.createElement)(L,{onFocusOutside:function(e){if(I)I(e);else if(A){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}}),k()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),A(t)}else n&&n()}},Object(r.createElement)($,{type:T&&Q?"appear":null,options:{origin:Q}},(function(e){var o=e.className;return Object(r.createElement)(B,Object(s.a)({className:i()("components-popover",c,o,{"is-expanded":ne,"is-without-arrow":f})},F,{onKeyDown:re,ref:z}),ne&&Object(r.createElement)("div",{className:"components-popover__header"},Object(r.createElement)("span",{className:"components-popover__header-title"},t),Object(r.createElement)(ce,{className:"components-popover__close",icon:"no-alt",onClick:n})),Object(r.createElement)("div",{ref:V,className:"components-popover__content",tabIndex:"-1"},a))})));return h&&(oe=Object(r.createElement)(Z,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,H&&C&&Object(r.createElement)(M,null))}))};ne.Slot=function(){return Object(r.createElement)(Q,{bubblesVirtually:!0,name:"Popover"})};var re=ne;var oe=function(e){var t,n,a=e.shortcut,i=e.className;return a?(Object(o.isString)(a)&&(t=a),Object(o.isObject)(a)&&(t=a.display,n=a.ariaLabel),Object(r.createElement)("span",{className:i,"aria-label":n},t)):null},ae=function(e){function t(){var e;return f(this,t),(e=g(this,b(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),d(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 a=Object(o.includes)(["focus","mouseenter"],r.type);a!==n.state.isOver&&(t?n.delayedSetIsOver(a):n.setState({isOver:a}))}}}},{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,a=e.shortcut;if(1!==r.Children.count(t))return t;var i=r.Children.only(t),c=this.state.isOver;return Object(r.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(r.concatChildren)(i.props.children,c&&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:a})))})}}]),t}(r.Component),ie=n(74);var ce=Object(r.forwardRef)((function(e,t){var n=e.icon,a=e.children,c=e.label,f=e.className,p=e.tooltip,d=e.shortcut,m=e.labelPosition,h=e.size,g=Object(l.a)(e,["icon","children","label","className","tooltip","shortcut","labelPosition","size"]),b=i()("components-icon-button",f,{"has-text":a}),v=p||c,y=!g.disabled&&(p||d||!!c&&(!a||Object(o.isArray)(a)&&!a.length)&&!1!==p),O=Object(r.createElement)(u.a,Object(s.a)({"aria-label":c},g,{className:b,ref:t}),Object(r.createElement)(ie.a,{icon:n,size:h}),a);return y&&(O=Object(r.createElement)(ae,{text:v,shortcut:d,position:m},O)),O}));t.a=function(e){var t=e.className,n=e.status,a=e.children,s=e.onRemove,l=void 0===s?o.noop:s,f=e.isDismissible,p=void 0===f||f,d=e.actions,m=void 0===d?[]:d,h=e.__unstableHTML,g=i()(t,"components-notice","is-"+n,{"is-dismissible":p});return h&&(a=Object(r.createElement)(r.RawHTML,null,a)),Object(r.createElement)("div",{className:g},Object(r.createElement)("div",{className:"components-notice__content"},a,m.map((function(e,t){var n=e.className,o=e.label,a=e.noDefaultClasses,c=void 0!==a&&a,s=e.onClick,l=e.url;return Object(r.createElement)(u.a,{key:t,href:l,isDefault:!c&&!l,isLink:!c&&!!l,onClick:l?void 0:s,className:i()("components-notice__action",n)},o)}))),p&&Object(r.createElement)(ce,{className:"components-notice__dismiss",icon:"no-alt",label:Object(c.__)("Dismiss this notice"),onClick:l,tooltip:!1}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ee}));var r=n(6),o=n.n(r),a=n(78),i=n(11),c=n.n(i),u=n(14),s=n.n(u),l=(n(5),n(4)),f=n.n(l),p=n(1),d=n(0),m=n(10),h=n.n(m),g=n(12),b=n(75),v=n(15),y=n(16),O=n(63),j=function(e,t){var n=e.find((function(e){return e.id===t}));return n?n.quantity:0},w=n(176),E=n(18),k=(n(139),function(e){var t=e.product,n=Object(d.useRef)(!0),r=t.id,o=t.permalink,a=t.add_to_cart,i=t.has_options,u=t.is_purchasable,s=t.is_in_stock,l=function(e){var t=Object(g.useDispatch)(v.CART_STORE_KEY).addItemToCart,n=Object(b.a)(),r=n.cartItems,o=n.cartIsLoading,a=Object(O.a)(),i=a.addErrorNotice,c=a.removeNotice,u=Object(d.useState)(!1),s=h()(u,2),l=s[0],f=s[1],p=Object(d.useRef)(j(r,e));return Object(d.useEffect)((function(){var t=j(r,e);t!==p.current&&(p.current=t)}),[r,e]),{cartQuantity:p.current,addingToCart:l,cartIsLoading:o,addToCart:function(){f(!0),t(e).then((function(e){!0===e&&c("add-to-cart")})).catch((function(e){i(Object(y.decodeEntities)(e.message),{context:"wc/all-products",id:"add-to-cart",isDismissible:!0})})).finally((function(){f(!1)}))}}}(r),m=l.cartQuantity,E=l.addingToCart,k=l.addToCart;Object(d.useEffect)((function(){n.current?n.current=!1:Object(w.a)()}),[m]);var S=Number.isFinite(m)&&m>0,_=!i&&u&&s,x=Object(y.decodeEntities)((null==a?void 0:a.description)||""),R=S?Object(p.sprintf)(Object(p._n)("%d in cart","%d in cart",m,"woo-gutenberg-products-block"),m):Object(y.decodeEntities)((null==a?void 0:a.text)||Object(p.__)("Add to cart","woo-gutenberg-products-block")),P=_?"button":"a",C={};return _?C.onClick=k:(C.href=o,C.rel="nofollow"),React.createElement(P,c()({"aria-label":x,className:f()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button",{loading:E,added:S}),disabled:E},C),R)}),S=function(){return React.createElement("button",{className:f()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button","wc-block-components-product-button__button--placeholder"),disabled:!0})},_=function(e){var t=e.className,n=s()(e,["className"]),r=Object(E.useInnerBlockLayoutContext)().parentClassName,o=Object(E.useProductDataContext)(),a=n.product||o.product;return React.createElement("div",{className:f()(t,"wp-block-button","wc-block-components-product-button","".concat(r,"__product-add-to-cart"))},a?React.createElement(k,{product:a}):React.createElement(S,null))},x=n(25),R=n(142),P=function(e){return function(t){return function(n){var r=Object(R.a)(e,n);return React.createElement(t,c()({},n,r))}}},C=n(8),N=n(28),T=(n(140),function(e){var t=e.className,n=e.align,r=s()(e,["className","align"]),o=Object(E.useInnerBlockLayoutContext)().parentClassName,a=Object(E.useProductDataContext)(),i=r.product||a.product;if(!i||!i.on_sale)return null;var c="string"==typeof n?"wc-block-components-product-sale-badge--align".concat(n):"";return React.createElement("div",{className:f()("wc-block-components-product-sale-badge",t,c,"".concat(o,"__product-onsale"))},React.createElement(N.a,{label:Object(p.__)("Sale","woo-gutenberg-products-block"),screenReaderLabel:Object(p.__)("Product on sale","woo-gutenberg-products-block")}))}),A=(n(141),function(){return React.createElement("img",{src:C.p,alt:""})}),I=function(e){var t=e.image,n=e.onLoad,r=e.loaded,o=t||{},a=o.thumbnail,i=o.srcset,c=o.sizes,u=o.alt;return React.createElement(React.Fragment,null,React.createElement("img",{src:a,srcSet:i,sizes:c,alt:u,onLoad:n,hidden:!r}),!r&&React.createElement(A,null))},F=function(e){var t=e.className,n=e.productLink,r=void 0===n||n,o=e.showSaleBadge,a=e.saleBadgeAlign,i=void 0===a?"right":a,c=s()(e,["className","productLink","showSaleBadge","saleBadgeAlign"]),u=Object(E.useInnerBlockLayoutContext)().parentClassName,l=Object(E.useProductDataContext)(),p=c.product||l.product,m=Object(d.useState)(!1),g=h()(m,2),b=g[0],v=g[1];if(!p)return React.createElement("div",{className:f()(t,"wc-block-components-product-image","wc-block-components-product-image--placeholder","".concat(u,"__product-image"))},React.createElement(A,null));var y=(null==p?void 0:p.images)&&p.images.length?p.images[0]:null;return React.createElement("div",{className:f()(t,"wc-block-components-product-image","".concat(u,"__product-image"))},r?React.createElement("a",{href:p.permalink,rel:"nofollow"},!!o&&React.createElement(T,{align:i,product:p}),React.createElement(I,{image:y,onLoad:function(){return v(!0)},loaded:b})):React.createElement(React.Fragment,null,!!o&&React.createElement(T,{align:i,product:p}),React.createElement(I,{image:y,onLoad:function(){return v(!0)},loaded:b})))},D={productLink:{type:"boolean",default:!0},showSaleBadge:{type:"boolean",default:!0},saleBadgeAlign:{type:"string",default:"right"}},L=Object(x.compose)(P(D))(F),M=n(31),V=n(118),B=(n(143),function(e){return e.price_range&&e.price_range.min_amount&&e.price_range.max_amount}),z=function(e){var t=e.currency,n=e.minAmount,r=e.maxAmount,o=Object(E.useInnerBlockLayoutContext)().parentClassName;return React.createElement("span",{className:f()("wc-block-components-product-price__value","".concat(o,"__product-price__value"))},React.createElement(M.a,{currency:t,value:n})," — ",React.createElement(M.a,{currency:t,value:r}))},U=function(e){var t=e.currency,n=e.price,r=e.regularPrice,o=Object(E.useInnerBlockLayoutContext)().parentClassName;return React.createElement(React.Fragment,null,r!==n&&React.createElement("del",{className:f()("wc-block-components-product-price__regular","".concat(o,"__product-price__regular"))},React.createElement(M.a,{currency:t,value:r})),React.createElement("span",{className:f()("wc-block-components-product-price__value","".concat(o,"__product-price__value"))},React.createElement(M.a,{currency:t,value:n})))},q=function(e){var t=e.className,n=s()(e,["className"]),r=Object(E.useInnerBlockLayoutContext)().parentClassName,o=Object(E.useProductDataContext)(),a=n.product||o.product;if(!a)return React.createElement("div",{className:f()(t,"price","wc-block-components-product-price","".concat(r,"__product-price"))});var i=a.prices||{},c=Object(V.c)(i);return React.createElement("div",{className:f()(t,"price","wc-block-components-product-price","".concat(r,"__product-price"))},B(i)?React.createElement(z,{currency:c,minAmount:i.price_range.min_amount,maxAmount:i.price_range.max_amount}):React.createElement(U,{currency:c,price:i.price,regularPrice:i.regular_price}))},H=(n(144),function(e){var t=parseFloat((null==e?void 0:e.average_rating)||0);return Number.isFinite(t)&&t>0?t:0}),W=function(e){var t=e.className,n=s()(e,["className"]),r=Object(E.useInnerBlockLayoutContext)().parentClassName,o=Object(E.useProductDataContext)(),a=n.product||o.product,i=H(a);if(!i)return null;var c={width:i/5*100+"%"},u=Object(p.sprintf)(Object(p.__)("Rated %f out of 5","woo-gutenberg-products-block"),i);return React.createElement("div",{className:f()(t,"star-rating","wc-block-components-product-rating","".concat(r,"__product-rating"))},React.createElement("div",{className:f()("wc-block-components-product-rating__stars","".concat(r,"__product-rating__stars")),role:"img","aria-label":u},React.createElement("span",{style:c},u)))},K=n(83),Y=n(2),Q=(n(145),function(e){var t=e.className,n=s()(e,["className"]),r=Object(E.useInnerBlockLayoutContext)().parentClassName,o=(Object(E.useProductDataContext)()||n).product;if(!o)return React.createElement("div",{className:f()(t,"wc-block-components-product-summary")});var a=o.short_description?o.short_description:o.description;if(!a)return null;var i=Object(Y.getSetting)("wordCountType","words");return React.createElement(K.a,{className:f()(t,"wc-block-components-product-summary","".concat(r,"__product-summary")),source:a,maxLength:150,countType:i})}),G=(n(146),function(e){var t=e.className,n=e.headingLevel,r=void 0===n?2:n,o=e.productLink,a=void 0===o||o,i=s()(e,["className","headingLevel","productLink"]),c=Object(E.useInnerBlockLayoutContext)().parentClassName,u=Object(E.useProductDataContext)(),l=i.product||u.product,p="h".concat(r);if(!l)return React.createElement(p,{className:f()(t,"wc-block-components-product-title","".concat(c,"__product-title"))});var d=Object(y.decodeEntities)(l.name);return React.createElement(p,{className:f()(t,"wc-block-components-product-title","".concat(c,"__product-title"))},a?React.createElement("a",{href:l.permalink,rel:"nofollow"},d):d)}),$={headingLevel:{type:"number",default:2},productLink:{type:"boolean",default:!0}},Z=Object(x.compose)(P($))(G),J=(n(147),function(e){var t=e.className,n=s()(e,["className"]),r=Object(E.useInnerBlockLayoutContext)().parentClassName,o=Object(E.useProductDataContext)(),a=(n.product||o.product||{}).sku||"";return a?React.createElement("div",{className:f()(t,"wc-block-components-product-sku","".concat(r,"__product-sku"))},Object(p.__)("SKU:","woo-gutenberg-products-block")," ",React.createElement("strong",null,a)):null});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}var ee=function(e){return function(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){o()(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}({"woocommerce/product-price":q,"woocommerce/product-image":L,"woocommerce/product-title":Z,"woocommerce/product-rating":W,"woocommerce/product-button":_,"woocommerce/product-summary":Q,"woocommerce/product-sale-badge":T,"woocommerce/product-sku":J},Object(a.getRegisteredInnerBlocks)(e))}},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),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,n.current]),n.current}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=window.Event||null,o=function(){if("function"==typeof r){var e=new r("wc_fragment_refresh",{bubbles:!0,cancelable:!0});document.body.dispatchEvent(e)}else{var t=document.createEvent("Event");t.initEvent("wc_fragment_refresh",!0,!0),document.body.dispatchEvent(t)}}},,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(119),o=n(111),a=n(98),i=n(32),c=n.n(i),u=n(33),s=n.n(u),l=n(34),f=n.n(l),p=n(35),d=n.n(p),m=n(21),h=n.n(m),g=n(3),b=(n(5),n(10)),v=n.n(b),y=n(0),O=n(20),j=n.n(O),w=n(14),E=n.n(w),k=n(6),S=n.n(k),_=n(1),x=n(7),R=n(4),P=n.n(R),C=n(28),N=(n(192),function(e){var t=e.currentPage,n=e.displayFirstAndLastPages,r=e.displayNextAndPreviousArrows,o=e.pagesToDisplay,a=e.onPageChange,i=e.totalPages,c=function(e,t,n){if(n<=2)return{minIndex:null,maxIndex:null};var r=e-1,o=Math.max(Math.floor(t-r/2),2),a=Math.min(Math.ceil(t+(r-(t-o))),n-1);return{minIndex:Math.max(Math.floor(t-(r-(a-t))),2),maxIndex:a}}(o,t,i),u=c.minIndex,s=c.maxIndex,l=n&&Boolean(1!==u),f=n&&Boolean(s!==i),p=n&&Boolean(u>3),d=n&&Boolean(s<i-2);l&&3===u&&(u-=1),f&&s===i-2&&(s+=1);var m=[];if(u&&s)for(var h=u;h<=s;h++)m.push(h);return React.createElement("div",{className:"wc-block-pagination"},React.createElement(C.a,{screenReaderLabel:Object(_.__)("Navigate to another page","woo-gutenberg-products-block")}),r&&React.createElement("button",{className:"wc-block-pagination-page",onClick:function(){return a(t-1)},title:Object(_.__)("Previous page","woo-gutenberg-products-block"),disabled:t<=1},React.createElement(C.a,{label:"<",screenReaderLabel:Object(_.__)("Previous page","woo-gutenberg-products-block")})),l&&React.createElement("button",{className:P()("wc-block-pagination-page",{"wc-block-pagination-page--active":1===t}),onClick:function(){return a(1)},disabled:1===t},React.createElement(C.a,{label:1,screenReaderLabel:Object(_.sprintf)(Object(_.__)("Page %d","woo-gutenberg-products-block"),1)})),p&&React.createElement("span",{className:"wc-block-pagination-ellipsis","aria-hidden":"true"},Object(_.__)("…","woo-gutenberg-products-block")),m.map((function(e){return React.createElement("button",{key:e,className:P()("wc-block-pagination-page",{"wc-block-pagination-page--active":t===e}),onClick:t===e?null:function(){return a(e)},disabled:t===e},React.createElement(C.a,{label:e,screenReaderLabel:Object(_.sprintf)(Object(_.__)("Page %d","woo-gutenberg-products-block"),e)}))})),d&&React.createElement("span",{className:"wc-block-pagination-ellipsis","aria-hidden":"true"},Object(_.__)("…","woo-gutenberg-products-block")),f&&React.createElement("button",{className:P()("wc-block-pagination-page",{"wc-block-pagination-page--active":t===i}),onClick:function(){return a(i)},disabled:t===i},React.createElement(C.a,{label:i,screenReaderLabel:Object(_.sprintf)(Object(_.__)("Page %d","woo-gutenberg-products-block"),i)})),r&&React.createElement("button",{className:"wc-block-pagination-page",onClick:function(){return a(t+1)},title:Object(_.__)("Next page","woo-gutenberg-products-block"),disabled:t>=i},React.createElement(C.a,{label:">",screenReaderLabel:Object(_.__)("Next page","woo-gutenberg-products-block")})))});N.defaultProps={displayFirstAndLastPages:!0,displayNextAndPreviousArrows:!0,pagesToDisplay:3};var T=N,A=n(124),I=(n(191),function(e){var t=e.defaultValue,n=e.onChange,r=e.readOnly,o=e.value;return React.createElement(A.a,{className:"wc-block-product-sort-select",defaultValue:t,name:"orderby",onChange:n,options:[{key:"menu_order",label:Object(_.__)("Default sorting","woo-gutenberg-products-block")},{key:"popularity",label:Object(_.__)("Popularity","woo-gutenberg-products-block")},{key:"rating",label:Object(_.__)("Average rating","woo-gutenberg-products-block")},{key:"date",label:Object(_.__)("Latest","woo-gutenberg-products-block")},{key:"price",label:Object(_.__)("Price: low to high","woo-gutenberg-products-block")},{key:"price-desc",label:Object(_.__)("Price: high to low","woo-gutenberg-products-block")}],readOnly:r,screenReaderLabel:Object(_.__)("Order products by","woo-gutenberg-products-block"),value:o})}),F=n(18),D=n(94),L=n(11),M=n.n(L),V=n(169),B=Object(D.a)((function(e){var t=e.product,n=e.attributes,r=e.instanceId,o=n.layoutConfig,a=Object(F.useInnerBlockLayoutContext)(),i=a.parentClassName,c=a.parentName,u=0===Object.keys(t).length,s=P()("".concat(i,"__product"),{"is-loading":u,"wc-block-layout--is-loading":u});return React.createElement("li",{className:s,"aria-hidden":u},function e(t,n,r,o){if(r){var a=Object(V.a)(t);return r.map((function(r,i){var c=v()(r,2),u=c[0],s=c[1],l=void 0===s?{}:s,f=[];l.children&&l.children.length>0&&(f=e(t,n,l.children,o));var p=a[u];if(!p)return null;var d=n.id||0,m=["layout",u,i,o,d];return React.createElement(p,M()({key:m.join("_")},l,{children:f,product:n}))}))}}(c,t,o,r))})),z=n(93),U=n(106),q=n(15),H=n(12),W=n(38);function K(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?K(Object(n),!0).forEach((function(t){S()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=function(e){var t={namespace:"/wc/store",resourceName:"products"},n=Object(U.a)(Y(Y({},t),{},{query:e})),r=n.results,o=n.isLoading,a=function(e,t){var n=t.namespace,r=t.resourceName,o=t.resourceValues,a=void 0===o?[]:o,i=t.query,c=void 0===i?{}:i;if(!n||!r)throw new Error("The options object must have valid values for the namespace and the resource name properties.");var u=Object(W.a)(c),s=Object(W.a)(a),l=Object(H.useSelect)((function(t){var o=t(q.COLLECTIONS_STORE_KEY),a=[e,n,r,u,s];return{value:o.getCollectionHeader.apply(o,a),isLoading:o.hasFinishedResolution("getCollectionHeader",a)}}),[e,n,r,s,u]),f=l.value,p=l.isLoading;return{value:f,isLoading:void 0===p||p}}("x-wp-total",Y(Y({},t),{},{query:e})).value;return{products:r,totalProducts:parseInt(a,10),productsLoading:o}},G=n(175),$=n(126),Z=n(42),J=(n(190),n(138)),X=n(88),ee=React.createElement(X.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.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"})),te=function(){var e=Object(F.useInnerBlockLayoutContext)().parentClassName;return React.createElement("div",{className:"".concat(e,"__no-products")},React.createElement(J.a,{className:"".concat(e,"__no-products-image"),alt:"",srcElement:ee,size:100}),React.createElement("strong",{className:"".concat(e,"__no-products-title")},Object(_.__)("No products","woo-gutenberg-products-block")),React.createElement("p",{className:"".concat(e,"__no-products-description")},Object(_.__)("There are currently no products available to display.","woo-gutenberg-products-block")))},ne=React.createElement(X.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},React.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),React.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"})),re=function(e){var t=e.resetCallback,n=void 0===t?function(){}:t,r=Object(F.useInnerBlockLayoutContext)().parentClassName;return React.createElement("div",{className:"".concat(r,"__no-products")},React.createElement(J.a,{className:"".concat(r,"__no-products-image"),alt:"",srcElement:ne,size:100}),React.createElement("strong",{className:"".concat(r,"__no-products-title")},Object(_.__)("No products found","woo-gutenberg-products-block")),React.createElement("p",{className:"".concat(r,"__no-products-description")},Object(_.__)("We were unable to find any results based on your search.","woo-gutenberg-products-block")),React.createElement("button",{onClick:n},Object(_.__)("Reset Search","woo-gutenberg-products-block")))};function oe(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){S()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie=Object($.a)((function(e){var t=e.attributes,n=e.currentPage,r=e.onPageChange,o=e.onSortChange,a=e.sortValue,i=e.scrollToTop,c=Object(z.c)(function(e){var t=e.sortValue,n=e.currentPage,r=e.attributes,o=r.columns,a=r.rows;return ae(ae({},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:o*a,page:n})}({attributes:t,sortValue:a,currentPage:n})),u=v()(c,1)[0],s=Q(u),l=s.products,f=s.totalProducts,p=s.productsLoading,d=Object(F.useInnerBlockLayoutContext)().parentClassName,m=function(e){e.order,e.orderby,e.page,e.per_page;return E()(e,["order","orderby","page","per_page"])}(u),h=Object(z.b)("attributes",[]),g=v()(h,2),b=g[0],O=g[1],w=Object(z.b)("min_price"),k=v()(w,2),S=k[0],R=k[1],C=Object(z.b)("max_price"),N=v()(C,2),A=N[0],D=N[1],L=Object(G.a)({totalQuery:m,totalProducts:f},(function(e){var t=e.totalQuery,n=e.totalProducts,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.totalQuery;return!Object(x.isEqual)(t,o)&&Number.isFinite(n)})),M="object"===j()(L)&&Object(x.isEqual)(m,L.totalQuery);Object(y.useEffect)((function(){M||(r(1),L&&function(e){Number.isFinite(e)&&(0===e?Object(Z.speak)(Object(_.__)("No products found","woo-gutenberg-products-block")):Object(Z.speak)(Object(_.sprintf)(Object(_._n)("%d product found","%d products found",e,"woo-gutenberg-products-block"),e)))}(f))}),[u]);var V,U,q,H,W,K=t.contentVisibility,Y=t.columns*t.rows,$=!Number.isFinite(f)&&M?Math.ceil(L.totalProducts/Y):Math.ceil(f/Y),J=l.length?l:Array.from({length:Y}),X=0!==l.length||p,ee=b.length>0||Number.isFinite(S)||Number.isFinite(A);return React.createElement("div",{className:(V=t.columns,U=t.rows,q=t.alignButtons,H=t.align,W=void 0!==H?"align"+H:"",P()(d,W,"has-"+V+"-columns",{"has-multiple-rows":U>1,"has-aligned-buttons":q}))},K.orderBy&&X&&React.createElement(I,{onChange:o,value:a}),!X&&ee&&React.createElement(re,{resetCallback:function(){O([]),R(null),D(null)}}),!X&&!ee&&React.createElement(te,null),X&&React.createElement("ul",{className:"".concat(d,"__products")},J.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return React.createElement(B,{key:e.id||n,attributes:t,product:e})}))),$>1&&React.createElement(T,{currentPage:n,onPageChange:function(e){i({focusableSelector:"a, button"}),r(e)},totalPages:$}))})),ce=function(e){var t=e.attributes,n=Object(y.useState)(1),r=v()(n,2),o=r[0],a=r[1],i=Object(y.useState)(t.orderby),c=v()(i,2),u=c[0],s=c[1];Object(y.useEffect)((function(){s(t.orderby)}),[t.orderby]);return React.createElement(ie,{attributes:t,currentPage:o,onPageChange:function(e){a(e)},onSortChange:function(e){var t=e.target.value;s(t),a(1)},sortValue:u})},ue=n(8),se=React.createElement("img",{src:ue.A+"img/grid.svg",alt:"Grid Preview",width:"230",height:"250",style:{width:"100%"}});function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d()(this,n)}}var fe=function(e){f()(n,e);var t=le(n);function n(){return c()(this,n),t.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.urlParameterSuffix;return t.isPreview?se:React.createElement(F.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},React.createElement(ce,{attributes:t,urlParameterSuffix:n}))}}]),n}(g.Component);Object(a.a)({selector:".wp-block-woocommerce-all-products",Block:Object(r.a)((function(e){return React.createElement(o.a,{context:"wc/all-products"},React.createElement(fe,e))})),getProps:function(e){return{attributes:JSON.parse(e.dataset.attributes)}}})}]);
|
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 a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}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,n){e.exports=n(59)()},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,"i",(function(){return o})),n.d(t,"s",(function(){return a})),n.d(t,"w",(function(){return i})),n.d(t,"p",(function(){return c})),n.d(t,"l",(function(){return u})),n.d(t,"o",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"x",(function(){return f})),n.d(t,"k",(function(){return p})),n.d(t,"j",(function(){return d})),n.d(t,"c",(function(){return m})),n.d(t,"m",(function(){return h})),n.d(t,"n",(function(){return g})),n.d(t,"A",(function(){return b})),n.d(t,"t",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"u",(function(){return O})),n.d(t,"b",(function(){return j})),n.d(t,"f",(function(){return w})),n.d(t,"v",(function(){return S})),n.d(t,"g",(function(){return _})),n.d(t,"r",(function(){return x})),n.d(t,"q",(function(){return R})),n.d(t,"z",(function(){return P})),n.d(t,"y",(function(){return C})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return T}));var r=n(2),o=Object(r.getSetting)("currentUserIsAdmin",!1),a=Object(r.getSetting)("reviewRatingsEnabled",!0),i=Object(r.getSetting)("showAvatars",!0),c=(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","")),u=(Object(r.getSetting)("thumbnail_size",300),Object(r.getSetting)("isLargeCatalog")),s=Object(r.getSetting)("limitTags"),l=(Object(r.getSetting)("hasProducts",!0),Object(r.getSetting)("hasTags",!0),Object(r.getSetting)("homeUrl",""),Object(r.getSetting)("couponsEnabled",!0)),f=(Object(r.getSetting)("shippingEnabled",!0),Object(r.getSetting)("taxesEnabled",!0)),p=Object(r.getSetting)("displayItemizedTaxes",!1),d=(Object(r.getSetting)("displayShopPricesIncludingTax",!1),Object(r.getSetting)("displayCartPricesIncludingTax",!1)),m=(Object(r.getSetting)("productCount",0),Object(r.getSetting)("attributes",[])),h=Object(r.getSetting)("isShippingCalculatorEnabled",!0),g=Object(r.getSetting)("isShippingCostHidden",!1),b=(Object(r.getSetting)("woocommerceBlocksPhase",1),Object(r.getSetting)("wcBlocksAssetUrl","")),v=Object(r.getSetting)("shippingCountries",{}),y=Object(r.getSetting)("allowedCountries",{}),O=Object(r.getSetting)("shippingStates",{}),j=Object(r.getSetting)("allowedStates",{}),w=(Object(r.getSetting)("shippingMethodsExist",!1),Object(r.getSetting)("checkoutShowLoginReminder",!0)),E={id:0,title:"",permalink:""},k=Object(r.getSetting)("storePages",{shop:E,cart:E,checkout:E,privacy:E,terms:E}),S=k.shop.permalink,_=(k.checkout.id,k.checkout.permalink),x=k.privacy.permalink,R=k.privacy.title,P=k.terms.permalink,C=k.terms.title,N=(k.cart.id,k.cart.permalink),T=Object(r.getSetting)("checkoutAllowsGuest",!1);Object(r.getSetting)("checkoutAllowsSignup",!1),n(39)},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(70),o=n(71),a=n(52),i=n(72);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()}},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(73);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},,function(e,t){!function(){e.exports=this.wc.wcSharedContext}()},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"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){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){!function(){e.exports=this.regeneratorRuntime}()},,,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(45);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,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(51);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,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}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,n){"use strict";var r=n(6),o=n.n(r),a=(n(5),n(3)),i=n(4),c=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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e){var t,n=e.label,r=e.screenReaderLabel,o=e.wrapperElement,i=e.wrapperProps,u=null!=n,l=null!=r;return!u&&l?(t=o||"span",i=s(s({},i),{},{className:c()(i.className,"screen-reader-text")}),React.createElement(t,i,r)):(t=o||a.Fragment,u&&l&&n!==r?React.createElement(t,i,React.createElement("span",{"aria-hidden":"true"},n),React.createElement("span",{className:"screen-reader-text"},r)):React.createElement(t,i,n))};l.defaultProps={wrapperProps:{}},t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(30);function o(e,t){if(null==e)return{};var n,o,a=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(6),i=n.n(a),c=n(14),u=n.n(c),s=n(3),l=n.n(s);function f(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 p(){return(p=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 d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){}function b(){}b.resetWarningCache=g;var v=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){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:b,resetWarningCache:g};return n.PropTypes=n,n}()}));function y(){}function O(e){return!!(e||"").match(/\d/)}function j(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function w(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split("."),a=o[0],i=o[1]||"";return{beforeDecimal:a,afterDecimal:i,hasNagation:n,addNegation:r}}function E(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function k(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 S(e,t,n){return Math.min(Math.max(e,t),n)}function _(e){return Math.max(e.selectionStart,e.selectionEnd)}var x={thousandSeparator:v.oneOfType([v.string,v.oneOf([!0])]),decimalSeparator:v.string,allowedDecimalSeparators:v.arrayOf(v.string),thousandsGroupStyle:v.oneOf(["thousand","lakh","wan"]),decimalScale:v.number,fixedDecimalScale:v.bool,displayType:v.oneOf(["input","text"]),prefix:v.string,suffix:v.string,format:v.oneOfType([v.string,v.func]),removeFormatting:v.func,mask:v.oneOfType([v.string,v.arrayOf(v.string)]),value:v.oneOfType([v.number,v.string]),defaultValue:v.oneOfType([v.number,v.string]),isNumericString:v.bool,customInput:v.elementType,allowNegative:v.bool,allowEmptyFormatting:v.bool,allowLeadingZeros:v.bool,onValueChange:v.func,onKeyDown:v.func,onMouseUp:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,type:v.oneOf(["text","tel","password"]),isAllowed:v.func,renderText:v.func,getInputRef:v.oneOfType([v.func,v.shape({current:v.any})])},R={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:y,onChange:y,onKeyDown:y,onMouseUp:y,onFocus:y,onBlur:y,isAllowed:function(){return!0}},P=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=d(t).call(this,e))||"object"!=typeof o&&"function"!=typeof o?h(r):o;var a=e.defaultValue;n.validateProps();var i=n.formatValueProp(a);return n.state={value:i,numAsString:n.removeFormatting(i)},n.selectionBeforeInput={selectionStart:0,selectionEnd:0},n.onChange=n.onChange.bind(h(n)),n.onKeyDown=n.onKeyDown.bind(h(n)),n.onMouseUp=n.onMouseUp.bind(h(n)),n.onFocus=n.onFocus.bind(h(n)),n.onBlur=n.onBlur.bind(h(n)),n}var n,r,o;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&&m(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,a=n.numAsString,i=void 0===a?"":a;if(e!==t){this.validateProps();var c=this.formatNumString(i),u=void 0===t.value?c:this.formatValueProp(),s=this.removeFormatting(u),l=parseFloat(s),f=parseFloat(i);(isNaN(l)&&isNaN(f)||l===f)&&c===o&&(null!==r||u===o)||this.updateValue({formattedValue:u,numAsString:s,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),a="-"===e[0];a&&(e=e.replace("-","")),r&&0===t&&(e=e.split(r)[0]);var i=(e=(e.match(o)||[]).join("").replace(r,".")).indexOf(".");return-1!==i&&(e="".concat(e.substring(0,i),".").concat(e.substring(i+1,e.length).replace(new RegExp(j(r),"g"),""))),a&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var n=this.props,r=n.format,o=n.decimalScale,a=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!a||0===o||t||r?"":"|"+j(a)),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){k(e,t),setTimeout((function(){e.value===n&&k(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,n){var r=this.props,o=r.prefix,a=r.suffix,i=r.format;if(""===e)return 0;if(t=S(t,0,e.length),!i){var c="-"===e[0];return S(t,o.length+(c?1:0),e.length-a.length)}if("function"==typeof i)return t;if("#"===i[t]&&O(e[t]))return t;if("#"===i[t-1]&&O(e[t-1]))return t;var u=i.indexOf("#");t=S(t,u,i.lastIndexOf("#")+1);for(var s=i.substring(t,i.length).indexOf("#"),l=t,f=t+(-1===s?0:s);l>u&&("#"!==i[l]||!O(e[l]));)l-=1;return!O(e[f])||"left"===n&&t!==u||t-l<f-t?O(e[l])?l+1:l:f}},{key:"getCaretPosition",value:function(e,t,n){var r,o,a=this.props.format,i=this.state.value,c=this.getNumberRegex(!0),u=(e.match(c)||[]).join(""),s=(t.match(c)||[]).join("");for(r=0,o=0;o<n;o++){var l=e[o]||"",f=t[r]||"";if((l.match(c)||l===f)&&("0"!==l||!f.match(c)||"0"===f||u.length===s.length)){for(;l!==t[r]&&r<t.length;)r++;r++}}return"string"!=typeof a||i||(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 a="-"===e[0];a&&(e=e.substring(1,e.length));var i=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==i&&i===e.length-o.length?e.substring(0,i):e,a&&(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,a=t.length;o<=a;o++){var i=t[o]||"",c=o===a?e.length:e.indexOf(i,n);if(-1===c){r=e;break}r+=e.substring(n,c),n=c+i.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,a=t.length;o<a;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,a=t.suffix,i=t.allowNegative,c=t.thousandsGroupStyle,u=this.getSeparators(),s=u.thousandSeparator,l=u.decimalSeparator,f=-1!==e.indexOf(".")||n&&r,p=w(e,i),d=p.beforeDecimal,m=p.afterDecimal,h=p.addNegation;return void 0!==n&&(m=E(m,n,r)),s&&(d=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)}(d,s,c)),o&&(d=o+d),a&&(m+=a),h&&(d="-"+d),e=d+(f&&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,a=t.allowEmptyFormatting,i=this.props,c=i.value,u=void 0===c?e:c,s=i.isNumericString,l=!u&&0!==u;return l&&a&&(u=""),l&&!a?"":("number"==typeof u&&(u=u.toString(),s=!0),"Infinity"===u&&s&&(u=""),s&&!n&&"number"==typeof r&&(u=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=-1!==e.indexOf(".")&&t,o=w(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNagation,u=parseFloat("0.".concat(i||"0")).toFixed(t).split("."),s=a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0]),l=E(u[1]||"",Math.min(t,i.length),n),f=r?".":"";return"".concat(c?"-":"").concat(s).concat(f).concat(l)}(u,r,o)),s?this.formatNumString(u):this.formatInput(u))}},{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),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&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,a=n.suffix,i=n.decimalScale,c=n.fixedDecimalScale,u=this.getSeparators().decimalSeparator;return"string"==typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-a.length||i&&c&&t[e]===u))}},{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,a=r.allowNegative,i=r.prefix,c=r.suffix,u=r.decimalScale,s=this.getSeparators(),l=s.allowedDecimalSeparators,f=s.decimalSeparator,p=this.state.numAsString||"",d=this.selectionBeforeInput,m=d.selectionStart,h=d.selectionEnd,g=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),b=g.start,v=g.end;if(!o&&b===v&&-1!==l.indexOf(n[m])){var y=0===u?"":f;return n.substr(0,m)+y+n.substr(m+1,n.length)}var O=o?0:i.length,j=t.length-(o?0:c.length);if(n.length>t.length||!n.length||b===v||0===m&&h===t.length||m===O&&h===j)return n;if(this.checkIfFormatGotDeleted(b,v,t)&&(n=t),!o){var E=this.removeFormatting(n),k=w(E,a),S=k.beforeDecimal,_=k.afterDecimal,x=k.addNegation,R=e<n.indexOf(f)+1;if(E.length<p.length&&R&&""===S&&!parseFloat(_))return x?"-":""}return n}},{key:"updateValue",value:function(e){var t=e.formattedValue,n=e.input,r=e.setCaretPosition,o=void 0===r||r,a=e.numAsString,i=e.caretPos,c=this.props.onValueChange,u=this.state.value;if(n)if(o){if(!i){var s=e.inputValue||n.value,l=_(n);n.value=t,i=this.getCaretPosition(s,t,l)}this.setPatchedCaretPosition(n,i,t)}else n.value=t;void 0===a&&(a=this.removeFormatting(t)),t!==u&&(this.setState({value:t,numAsString:a}),c(this.getValueObject(t,a)))}},{key:"onChange",value:function(e){var t=e.target,n=t.value,r=this.state,o=this.props,a=o.isAllowed,i=r.value||"",c=_(t);n=this.correctInputValue(c,i,n);var u=this.formatInput(n)||"",s=this.removeFormatting(u);a(this.getValueObject(u,s))||(u=i),this.updateValue({formattedValue:u,numAsString:s,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,a=t.allowLeadingZeros,i=n.numAsString,c=n.value;if(this.focusedElm=null,this.focusTimeout&&clearTimeout(this.focusTimeout),!r){isNaN(parseFloat(i))&&(i=""),a||(i=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):"")}(i));var u=this.formatNumString(i);if(u!==c)return this.updateValue({formattedValue:u,numAsString:i,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,a=n.selectionEnd,i=n.value,c=void 0===i?"":i,u=this.props,s=u.decimalScale,l=u.fixedDecimalScale,f=u.prefix,p=u.suffix,d=u.format,m=u.onKeyDown,h=void 0!==s&&l,g=this.getNumberRegex(!1,h),b=new RegExp("-"),v="string"==typeof d;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:a},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===a){var y=t,O=v?d.indexOf("#"):f.length,j=v?d.lastIndexOf("#")+1:c.length-p.length;if("ArrowLeft"===r||"ArrowRight"===r){var w="ArrowLeft"===r?"left":"right";y=this.correctCaretPosition(c,t,w)}else if("Delete"!==r||g.test(c[t])||b.test(c[t])){if("Backspace"===r&&!g.test(c[t]))if(o<=O+1&&"-"===c[0]&&void 0===d){var E=c.substring(1);this.updateValue({formattedValue:E,caretPos:y,input:n})}else if(!b.test(c[t])){for(;!g.test(c[y-1])&&y>O;)y--;y=this.correctCaretPosition(c,y,"left")}}else for(;!g.test(c[y])&&y<j;)y++;(y!==t||t<O||t>j)&&(e.preventDefault(),this.setPatchedCaretPosition(n,y,c)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,y,c),m(e)}else m(e)}},{key:"onMouseUp",value:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value,a=void 0===o?"":o;if(n===r){var i=this.correctCaretPosition(a,n);i!==n&&this.setPatchedCaretPosition(t,i,a)}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,a=n.value,i=void 0===a?"":a,c=t.correctCaretPosition(i,r);c===r||0===r&&o===i.length||t.setPatchedCaretPosition(n,c,i),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.type,a=r.displayType,i=r.customInput,c=r.renderText,u=r.getInputRef,s=this.state.value,f=(e=this.props,t=x,n={},Object.keys(e).forEach((function(r){t[r]||(n[r]=e[r])})),n),d=p({inputMode:"numeric"},f,{type:o,value:s,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===a)return c?c(s)||null:l.a.createElement("span",p({},f,{ref:u}),s);if(i){var m=i;return l.a.createElement(m,p({},d,{ref:u}))}return l.a.createElement("input",p({},d,{ref:u}))}}])&&f(n.prototype,r),o&&f(n,o),t}(l.a.Component);P.propTypes=x,P.defaultProps=R;var C=P,N=n(4),T=n.n(N);n(90);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){i()(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}t.a=function(e){var t=e.className,n=e.value,r=e.currency,a=e.onValueChange,i=u()(e,["className","value","currency","onValueChange"]);if("-"===n)return null;var c=n/Math.pow(10,r.minorUnit);if(!Number.isFinite(c))return null;var s=T()("wc-block-formatted-money-amount",t),l=I(I(I({displayType:"text"},i),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}),f=a?function(e){var t=e.value*Math.pow(10,r.minorUnit);a(t)}:function(){};return React.createElement(C,o()({className:s},l,{value:c,onValueChange:f}))}},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(58);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(20),o=n(19);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(46);var o=n(51);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(37),a=n.n(o),i=function(e){var t=Object(r.useRef)();return a()(e,t.current)||(t.current=e),t.current}},function(e,t){!function(){e.exports=this.wp.blocks}()},,,function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){"use strict";var r=n(32),o=n.n(r),a=n(33),i=n.n(a),c=n(19),u=n.n(c),s=n(34),l=n.n(s),f=n(35),p=n.n(f),d=n(21),m=n.n(d),h=n(6),g=n.n(h),b=(n(5),n(3)),v=n(1),y=n(8),O=function(e){var t=e.imageUrl,n=void 0===t?"".concat(y.A,"img/block-error.svg"):t,r=e.header,o=void 0===r?Object(v.__)("Oops!","woo-gutenberg-products-block"):r,a=e.text,i=void 0===a?Object(v.__)("There was an error loading the content.","woo-gutenberg-products-block"):a,c=e.errorMessage,u=e.errorMessagePrefix,s=void 0===u?Object(v.__)("Error:","woo-gutenberg-products-block"):u;return React.createElement("div",{className:"wc-block-error"},n&&React.createElement("img",{className:"wc-block-error__image",src:n,alt:""}),React.createElement("div",{className:"wc-block-error__content"},o&&React.createElement("p",{className:"wc-block-error__header"},o),i&&React.createElement("p",{className:"wc-block-error__text"},i),c&&React.createElement("p",{className:"wc-block-error__message"},s?s+" ":"",c)))};n(61);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=m()(e);if(t){var o=m()(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,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),g()(u()(e),"state",{errorMessage:"",hasError:!1}),e}return i()(n,[{key:"render",value:function(){var e=this.props,t=e.header,n=e.imageUrl,r=e.showErrorMessage,o=e.text,a=e.errorMessagePrefix,i=this.state,c=i.errorMessage;return i.hasError?React.createElement(O,{errorMessage:r?c:null,header:t,imageUrl:n,text:o,errorMessagePrefix:a}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:React.createElement(b.Fragment,null,React.createElement("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}}]),n}(b.Component);w.defaultProps={showErrorMessage:!0};t.a=w},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(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.autop}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},,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(53);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,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=Object(r.createContext)("page"),a=function(){return Object(r.useContext)(o)};o.Provider},,,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(60);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,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";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";n.d(t,"a",(function(){return s}));var r=n(6),o=n.n(r),a=n(111),i=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=function(){var e=Object(a.b)(),t=e.notices,n=e.createNotice,r=e.removeNotice,o=e.createSnackbarNotice,c=e.setIsSuppressed,s=Object(i.useRef)(t);Object(i.useEffect)((function(){s.current=t}),[t]);var l=Object(i.useMemo)((function(){return{hasNoticesOfType:function(e){return s.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;s.current.map((function(t){return null!==e&&t.status!==e||r(t.id),!0}))},removeNotice:r}}),[r]),f=Object(i.useMemo)((function(){return{addDefaultNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("default",e,u({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("error",e,u({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("warning",e,u({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("info",e,u({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("success",e,u({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(e,t)}}}),[n,o]);return u(u(u({notices:t},l),f),{},{setIsSuppressed:c})}},,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)),a=r(n(73)),i=n(3),c=r(i),u=r(n(100)),s=r(n(19)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function f(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function p(e,t){return l.und(e)||l.nul(e)?t:e}function d(e){return l.und(e)?[]:l.arr(e)?e:[e]}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.fun(e)?e.apply(void 0,n):e}function h(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,a(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 a;return l.und(t[r])?o({},n,((a={})[r]=e[r],a)):n}),{});return o({to:t},n)}var g,b,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(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}return u(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(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}u(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof 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){b=e}var E,k=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},S=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function _(e){E=e}var x,R=function(){return Date.now()};function P(e){x=e}var C,N,T=function(e){return e.current};function A(e){C=e}var I=Object.freeze({get applyAnimatedValues(){return g},injectApplyAnimatedValues:j,get colorNames(){return b},injectColorNames:w,get requestFrame(){return k},get cancelFrame(){return S},injectFrame:function(e,t){k=e,S=t},get interpolation(){return E},injectStringInterpolator:_,get now(){return R},injectNow:function(e){R=e},get defaultElement(){return x},injectDefaultElement:P,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return C},injectCreateAnimatedStyle:A,get manualFrameloop(){return N},injectManualFrameloop:function(e){N=e}}),F=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:C(t.style)}):t,r.update=n,r.attach(),r}return u(t,e),t}(O),D=!1,L=new Set,M=function e(){if(!D)return!1;var t=R(),n=L,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var i=a,c=!1,u=0;u<i.configs.length;u++){for(var s=i.configs[u],l=void 0,f=void 0,p=0;p<s.animatedValues.length;p++){var d=s.animatedValues[p];if(!d.done){var m=s.fromValues[p],h=s.toValues[p],g=d.lastPosition,b=h instanceof v,y=Array.isArray(s.initialVelocity)?s.initialVelocity[p]:s.initialVelocity;if(b&&(h=h.getValue()),s.immediate)d.setValue(h),d.done=!0;else if("string"!=typeof m&&"string"!=typeof h){if(void 0!==s.duration)g=m+s.easing((t-d.startTime)/s.duration)*(h-m),l=t>=d.startTime+s.duration;else if(s.decay)g=m+y/(1-.998)*(1-Math.exp(-(1-.998)*(t-d.startTime))),(l=Math.abs(d.lastPosition-g)<.1)&&(h=g);else{f=void 0!==d.lastTime?d.lastTime:t,y=void 0!==d.lastVelocity?d.lastVelocity:s.initialVelocity,t>f+64&&(f=t);for(var O=Math.floor(t-f),j=0;j<O;++j){g+=1*(y+=1*((-s.tension*(g-h)+-s.friction*y)/s.mass)/1e3)/1e3}var w=!(!s.clamp||0===s.tension)&&(m<h?g>h:g<h),E=Math.abs(y)<=s.precision,S=0===s.tension||Math.abs(h-g)<=s.precision;l=w||E&&S,d.lastVelocity=y,d.lastTime=t}b&&!s.toValues[p].done&&(l=!1),l?(d.value!==h&&(g=h),d.done=!0):c=!0,d.setValue(g),d.lastPosition=g}else d.setValue(h),d.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),c||(L.delete(i),i.stop(!0))}return L.size?N?N():k(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,a=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,c,u){var s=u?u(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){if("identity"===c)return s;"clamp"===c&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=a(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,a[t],a[t+1],o[t],o[t+1],u,i,c,r.map)}}var B=function(e){function t(n,r,o,a){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof y&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=V(r,o,a),i}u(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=V(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(y);var z=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}u(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(v),U=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new z(e)})),n}u(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(y),q=0,H=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=q++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,i=t.to,c=a(t,["delay","to"]);if(l.arr(i)||l.fun(i))this.queue.push(o({},c,{delay:r,to:i}));else if(i){var u={};Object.entries(i).forEach((function(e){var t,n=e[0],a=e[1],i=o({to:(t={},t[n]=a,t),delay:m(r,n)},c),s=u[i.delay]&&u[i.delay].to;u[i.delay]=o({},u[i.delay],i,{to:o({},s,i.to)})})),this.queue=Object.values(u)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,a=e.to,i=void 0===a?{}:a;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var c=t.delay,u=a(t,["delay"]),s=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},f=l.arr(u.to)||l.fun(u.to);c?setTimeout((function(){r===n.guid&&(f?n.runAsync(u,s):n.diff(u).start(s))}),c):f?n.runAsync(u,s):n.diff(u).start(s)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,L.has(t)||L.add(t),D||(D=!0,k(N||M));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,a(e,["delay"])),i=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var u=function(e){var t=e,a=o({},r,h(r.to[t]));l.arr(a.config)&&(a.config=a.config[t]),c=c.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},s=0;s<r.to.length;s++)u(s);else if(l.fun(r.to)){var f,p=0;c=c.then((function(){return r.to((function(e){var t=o({},r,h(e));if(l.arr(t.config)&&(t.config=t.config[p]),p++,i===n.guid)return f=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return f}))}))}c.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,a=void 0===r?{}:r,i=n.to,c=void 0===i?{}:i,u=n.config,s=void 0===u?{}:u,f=n.reverse,h=n.attach,g=n.reset,v=n.immediate;if(f){var y=[c,a];a=y[0],c=y[1]}this.merged=o({},a,this.merged,c),this.hasChanged=!1;var O=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],c=e[r]||{},u=l.num(i),f=l.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!b[i],h=l.arr(i),y=!u&&!h&&!f,j=l.und(a[r])?i:a[r],w=u||h||f?i:1,k=m(s,r);O&&(w=O.animations[r].parent);var S,_=c.parent,x=c.interpolation,P=d(O?w.getPayload():w),C=i;y&&(C=E({range:[0,1],output:[i,i]})(1));var N,T=x&&x.getValue(),A=!l.und(_)&&c.animatedValues.some((function(e){return!e.done})),I=!l.equ(C,T),F=!l.equ(C,c.previous),D=!l.equ(k,c.config);if(g||F&&I||D){var L;if(u||f)_=x=c.parent||new z(j);else if(h)_=x=c.parent||new U(j);else if(y){var M=c.interpolation&&c.interpolation.calc(c.parent.value);M=void 0===M||g?j:M,c.parent?(_=c.parent).setValue(0,!1):_=new z(0);var V={output:[M,i]};c.interpolation?(x=c.interpolation,c.interpolation.updateConfig(V)):x=_.interpolate(V)}return P=d(O?w.getPayload():w),S=d(_.getPayload()),g&&!y&&_.setValue(j,!1),t.hasChanged=!0,S.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=A?e.lastVelocity:void 0,e.lastTime=A?e.lastTime:void 0,e.startTime=R(),e.done=!1,e.animatedStyles.clear()})),m(v,r)&&_.setValue(y?w:i,!1),o({},e,((L={})[r]=o({},c,{name:r,parent:_,interpolation:x,animatedValues:S,toValues:P,previous:C,config:k,fromValues:d(_.getValue()),immediate:m(v,r),initialVelocity:p(k.velocity,0),clamp:p(k.clamp,!1),precision:p(k.precision,.01),tension:p(k.tension,170),friction:p(k.friction,26),mass:p(k.mass,1),duration:k.duration,easing:p(k.easing,(function(e){return e})),decay:k.decay}),L))}return I?e:(y&&(_.setValue(1,!1),x.updateConfig({output:[C,C]})),_.done=!0,t.hasChanged=!0,o({},e,((N={})[r]=o({},e[r],{previous:C}),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=i.useRef(!1),r=i.useRef(),o=l.fun(t),a=i.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 a=new H,i=o?m(t,r,a):t[r];return 0===r&&(n=i.ref),a.update(i),n||a.start(),a})),n]}),[e]),c=a[0],u=a[1];r.current=c;i.useImperativeHandle(u,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=i.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?m(e,n,t):e[n]),u||t.start()}))}}),[e]);i.useEffect((function(){n.current?o||s(t):u||r.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var f=r.current.map((function(e){return e.getValues()}));return o?[f,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:f},K=0,Y=function(e,t){return("function"==typeof t?e.map(t):d(t)).map(String)},Q=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,i=a(e,["items","keys"]);return t=d(void 0!==t?t:null),o({items:t,keys:Y(t,r)},i)};function G(e,t){var n=function(){if(o){if(a>=r.length)return"break";i=r[a++]}else{if((a=r.next()).done)return"break";i=a.value}var n=i.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var $=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 u(t,e),t}(O),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function X(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+X(J,J,J)),te=new RegExp("rgba"+X(J,J,J,J)),ne=new RegExp("hsl"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",J)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{6})$/,ce=/^#([0-9a-fA-F]{8})$/;function ue(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=ue(o,r,e+1/3),i=ue(o,r,e),c=ue(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function fe(e){return(parseFloat(e)%360+360)%360/360}function pe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function de(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|pe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ae.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(fe(n[1]),de(n[2]),de(n[3])))>>>0:(n=re.exec(t))?(se(fe(n[1]),de(n[2]),de(n[3]))|pe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ge=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,be=new RegExp("("+Object.keys(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={};A((function(e){return new $(e)})),P("div"),_((function(e){var t=e.output.map((function(e){return e.replace(ge,me)})).map((function(e){return e.replace(be,me)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return V(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),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,i=t.scrollLeft,c=a(t,["style","children","scrollTop","scrollLeft"]),u="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var l=0===s.indexOf("--"),f=Oe(s,n[s],l);"float"===s&&(s="cssFloat"),l?e.style.setProperty(s,f):e.style[s]=f}for(var p in c){var d=u?p:je[p]||(je[p]=p.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(d)&&e.setAttribute(d,c[p])}}),(function(e){return e}));var we,Ee,ke=(we=function(e){return i.forwardRef((function(t,n){var r=f(),u=i.useRef(!0),s=i.useRef(null),p=i.useRef(null),d=i.useCallback((function(e){var t=s.current;s.current=new F(e,(function(){var e=!1;p.current&&(e=g.fn(p.current,s.current.getAnimatedValue())),p.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){u.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(p,u,r)})),d(t);var m,h=s.current.getValue(),b=(h.scrollTop,h.scrollLeft,a(h,["scrollTop","scrollLeft"])),v=(m=e,!l.fun(m)||m.prototype instanceof c.Component?function(e){return p.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},b,{ref: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)}),Se=ke(["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=ke,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=M,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=I,t.useSpring=function(e){var t=l.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=l.fun(t),a=m(t),c=i.useRef(),u=W(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},a,{config:m(a.config,e),attach:e>0&&function(){return c.current[e-1]}})})),s=u[0],f=u[1],p=u[2],d=i.useMemo((function(){return function(e){return f((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=c.current[r];return o({},e,{config:m(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&d(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,d,p]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=Q(r),u=c.lazy,s=void 0!==u&&u,l=(c.unique,c.reset),p=void 0!==l&&l,d=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),g=c.onRest,b=c.onStart,v=c.ref,y=a(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=f(),j=i.useRef(!1),w=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return i.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,i=a(e,["first","prevProps"]),c=Q(t),u=c.items,s=c.keys,l=c.initial,f=c.from,p=c.enter,d=c.leave,h=c.update,g=c.trail,b=void 0===g?0:g,v=c.unique,y=c.config,O=c.order,j=void 0===O?["enter","leave","update"]:O,w=Q(r),E=w.keys,k=w.items,S=o({},i.current),_=[].concat(i.deleted),x=Object.keys(S),R=new Set(x),P=new Set(s),C=s.filter((function(e){return!R.has(e)})),N=i.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return R.has(e)})),A=-b;for(;j.length;){switch(j.shift()){case"enter":C.forEach((function(e,t){v&&_.find((function(t){return t.originalKey===e}))&&(_=_.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=u[r],a=n&&void 0!==l?"initial":"enter";S[e]={slot:a,originalKey:e,key:v?String(e):K++,item:o,trail:A+=b,config:m(y,o,a),from:m(n&&void 0!==l?l||{}:f,o),to:m(p,o)}}));break;case"leave":N.forEach((function(e){var t=E.indexOf(e),n=k[t];_.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:E[Math.max(0,t-1)],right:E[Math.min(E.length,t+1)],trail:A+=b,config:m(y,n,"leave"),to:m(d,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=u[t];S[e]=o({},S[e],{item:n,slot:"update",trail:A+=b,config:m(y,n,"update"),to:m(h,n)})}))}}var I=s.map((function(e){return S[e]}));return _.forEach((function(e){var t,n=e.left,r=(e.right,a(e,["left","right"]));-1!==(t=I.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),I=[].concat(I.slice(0,t),[r],I.slice(t))})),o({},i,{changed:C.length||N.length||T.length,first:n&&0===C.length,transitions:I,current:S,deleted:_,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,a=e.config,i=e.trail,c=e.key,u=e.item;w.current.instances.has(c)||w.current.instances.set(c,new H);var l=w.current.instances.get(c),f=o({},y,{to:r,from:n,config:a,ref:v,onRest:function(n){w.current.mounted&&(e.destroyed&&(v||s||G(w,c),d&&d(u)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(v||s)&&w.current.deleted.length>0&&G(w),g&&g(u,t,n))},onStart:b&&function(){return b(u,t)},onFrame:h&&function(e){return h(u,t,e)},delay:i,reset:p&&"enter"===t});l.update(f),w.current.paused||l.start()})),i.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=i.useRef();i.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 a=e.current;if(a){var i=a.controllers;if(i.length){var c=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},function(e,t){!function(){e.exports=this.wp.wordcount}()},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(14),i=n.n(a),c=n(88),u=n(4),s=n.n(u),l=function(e){var t=e.className,n=e.size,r=i()(e,["className","size"]),a=s()("dashicon","dashicons-arrow-down-alt2",t);return React.createElement(c.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:a,width:n,height:n},r),React.createElement("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},f=function(e){var t=e.className,n=e.size,r=i()(e,["className","size"]),a=s()("dashicon","dashicons-arrow-down-alt2",t);return React.createElement(c.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:a,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"}))},p=n(0);t.a=function(e){let t=function(){return null};switch(e.icon){case"arrow-down-alt2":t=l;break;case"no-alt":t=f}return Object(p.createElement)(t,{size:e.size||20,className:e.className})}},,,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,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}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){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";var r=n(26),o=n(9),a=n(29),i=n(0),c=n(67),u=n(88);t.a=function(e){var t=e.icon,n=void 0===t?null:t,s=e.size,l=Object(a.a)(e,["icon","size"]),f=s||20;if("string"==typeof n)return Object(i.createElement)(c.a,Object(o.a)({icon:n,size:f},l));if(n&&c.a===n.type)return Object(i.cloneElement)(n,Object(r.a)({size:f},l));var p=s||24;if("function"==typeof n)return n.prototype instanceof i.Component?Object(i.createElement)(n,Object(r.a)({size:p},l)):n(Object(r.a)({size:p},l));if(n&&("svg"===n.type||n.type===u.a)){var d=Object(r.a)({width:p,height:p},n.props,l);return Object(i.createElement)(u.a,d)}return Object(i.isValidElement)(n)?Object(i.cloneElement)(n,Object(r.a)({size:p},l)):n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(15),o=n(12),a=n(109),i=n(16),c=n(7),u={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(){}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(a.a)(),n=t.isEditor,s=t.previewData,l=(null==s?void 0:s.previewCart)||{},f=e.shouldSelect,p=Object(o.useSelect)((function(e,t){var o=t.dispatch;if(!f)return u;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 a=e(r.CART_STORE_KEY),s=a.getCartData(),p=a.getCartErrors(),d=a.getCartTotals(),m=!a.hasFinishedResolution("getCartData"),h=a.areShippingRatesLoading(),g=o(r.CART_STORE_KEY).receiveCart,b=Object(c.mapValues)(s.shippingAddress,(function(e){return Object(i.decodeEntities)(e)}));return{cartCoupons:s.coupons,cartItems:s.items,cartItemsCount:s.itemsCount,cartItemsWeight:s.itemsWeight,cartNeedsPayment:s.needsPayment,cartNeedsShipping:s.needsShipping,cartItemErrors:s.errors,cartTotals:d,cartIsLoading:m,cartErrors:p,shippingAddress:b,shippingRates:s.shippingRates,shippingRatesLoading:h,hasShippingAddress:!!b.country,receiveCart:g}}),[f]);return p}},,function(e,t,n){"use strict";var r=n(26),o=n(29),a=n(4),i=n.n(a),c=n(0);t.a=Object(c.forwardRef)((function(e,t){var n=e.href,a=e.target,u=e.isPrimary,s=e.isLarge,l=e.isSmall,f=e.isTertiary,p=e.isToggled,d=e.isBusy,m=e.isDefault,h=e.isLink,g=e.isDestructive,b=e.className,v=e.disabled,y=Object(o.a)(e,["href","target","isPrimary","isLarge","isSmall","isTertiary","isToggled","isBusy","isDefault","isLink","isDestructive","className","disabled"]),O=i()("components-button",b,{"is-button":m||u||s||l,"is-default":m||!u&&(s||l),"is-primary":u,"is-large":s,"is-small":l,"is-tertiary":f,"is-toggled":p,"is-busy":d,"is-link":h,"is-destructive":g}),j=void 0===n||v?"button":"a",w="a"===j?{href:n,target:a}:{type:"button",disabled:v};return Object(c.createElement)(j,Object(r.a)({},w,y,{className:O,ref:t}))}))},function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},,,function(e,t){!function(){e.exports=this.wp.deprecated}()},,function(e,t,n){"use strict";var r=n(0),o=n(66),a=n(48),i=function(e){var t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)},c=function(e){return e.replace(/<\/?[a-z][^>]*?>/gi,"")},u=function(e,t){return e.replace(/[\s|\.\,]+$/i,"")+t},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"…",r=c(e),o=r.split(" ").splice(0,t).join(" ");return Object(a.autop)(u(o,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]:"…",o=c(e),i=o.slice(0,t);if(n)return Object(a.autop)(u(i,r));var s=i.match(/([\s]+)/g),l=s?s.length:0,f=o.slice(0,t+l);return Object(a.autop)(u(f,r))};t.a=function(e){var t=e.source,n=e.maxLength,c=void 0===n?15:n,u=e.countType,f=void 0===u?"words":u,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(a.autop)(e),c=Object(o.count)(r,n);if(c<=t)return r;var u=i(r),f=Object(o.count)(u,n);return f<=t?u:"words"===n?s(u,t):l(u,t,"characters_including_spaces"===n)}(t,c,f)}),[t,c,f]);return React.createElement(r.RawHTML,{className:d},m)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(10),o=n.n(r),a=n(0),i=function(){var e=Object(a.useState)(),t=o()(e,2)[1];return function(e){return t((function(){throw e}))}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(26),o=n(7),a=n(0),i=function(e){var t=Object(r.a)({},e,{role:"img","aria-hidden":"true",focusable:"false"});return Object(a.createElement)("svg",Object(o.omit)(t,"__unstableActive"))}},,function(e,t){},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return d}));var r=n(10),o=n.n(r),a=n(15),i=n(12),c=n(0),u=n(55),s=n(7),l=n(38),f=function(e){var t=Object(u.a)();e=e||t;var n=Object(i.useSelect)((function(t){return t(a.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0)}),[e]),r=Object(i.useDispatch)(a.QUERY_STATE_STORE_KEY).setValueForQueryContext;return[n,Object(c.useCallback)((function(t){r(e,t)}),[e])]},p=function(e,t,n){var r=Object(u.a)();n=n||r;var o=Object(i.useSelect)((function(r){return r(a.QUERY_STATE_STORE_KEY).getValueForQueryKey(n,e,t)}),[n,e]),s=Object(i.useDispatch)(a.QUERY_STATE_STORE_KEY).setQueryValue;return[o,Object(c.useCallback)((function(t){s(n,e,t)}),[n,e])]},d=function(e,t){var n=Object(u.a)(),r=f(t=t||n),a=o()(r,2),i=a[0],p=a[1],d=Object(l.a)(e),m=Object(c.useRef)(!1);return Object(c.useEffect)((function(){p(Object(s.assign)({},i,d)),m.current=!0}),[d]),m.current?[i,p]:[e,p]}},function(e,t,n){"use strict";var r=n(9),o=n(0),a=n(7);var i=function(e,t){return function(n){var r=e(n),o=n.displayName,i=void 0===o?n.name||"Component":o;return r.displayName="".concat(Object(a.upperFirst)(Object(a.camelCase)(t)),"(").concat(i,")"),r}},c=new WeakMap;function u(e){return Object(o.useMemo)((function(){return function(e){var t=c.get(e)||0;return c.set(e,t+1),t}(e)}),[e])}t.a=i((function(e){return function(t){var n=u(e);return Object(o.createElement)(e,Object(r.a)({},t,{instanceId:n}))}}),"withInstanceId")},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(11),o=n.n(r),a=n(6),i=n.n(a),c=n(44),u=n(43);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){var t=e.Block,n=e.selector,r=e.getProps,a=void 0===r?function(){}:r,i=e.getErrorBoundaryProps,s=void 0===i?function(){}:i,f=document.querySelectorAll(n);f.length&&Array.prototype.forEach.call(f,(function(e,n){var r=a(e,n),i=s(e,n),f=l(l({},e.dataset),r.attributes);e.classList.remove("is-loading"),Object(c.render)(React.createElement(u.a,i,React.createElement(t,o()({},r,{attributes:f}))),e)}))}},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,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(15),o=n(12),a=n(0),i=n(85),c=n(38),u=function(e){var t=e.namespace,n=e.resourceName,u=e.resourceValues,s=void 0===u?[]:u,l=e.query,f=void 0===l?{}:l,p=e.shouldSelect,d=void 0===p||p;if(!t||!n)throw new Error("The options object must have valid values for the namespace and the resource properties.");var m=Object(a.useRef)({results:[],isLoading:!0}),h=Object(c.a)(f),g=Object(c.a)(s),b=Object(i.a)(),v=Object(o.useSelect)((function(e){if(!d)return null;var o=e(r.COLLECTIONS_STORE_KEY),a=[t,n,h,g],i=o.getCollectionError.apply(o,a);return i&&b(i),{results:o.getCollection.apply(o,a),isLoading:!o.hasFinishedResolution("getCollection",a)}}),[t,n,g,h,d]);return null!==v&&(m.current=v),m.current}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=(n(12),Object(r.createContext)({isEditor:!1,currentPostId:0,previewData:{}})),a=function(){return Object(r.useContext)(o)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return F})),n.d(t,"a",(function(){return D}));var r=n(6),o=n.n(r),a=n(10),i=n.n(a),c=(n(5),n(0)),u=n(12),s=n(11),l=n.n(s),f=n(4),p=n.n(f),d=n(168),m=(n(99),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""}),h=function(e){var t=e.className,n=e.notices,r=F().removeNotice,o=p()(t,"wc-block-components-notices"),a=n.filter((function(e){return"snackbar"!==e.type}));return a.length?React.createElement("div",{className:o},a.map((function(e){return React.createElement(d.a,l()({key:"store-notice-"+e.id},e,{className:p()("wc-block-components-notices__notice","woocommerce-message",m(e)),onRemove:function(){e.isDismissible&&r(e.id)}}),e.content)}))):null},g=n(9),b=n(22),v=n.n(b);function y(e,t,n,r,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function O(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){y(a,r,o,i,c,"next",e)}function c(e){y(a,r,o,i,c,"throw",e)}i(void 0)}))}}var j=n(27),w=n(7),E=n(65),k=n(25),S=n(1),_=n(77);var x=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.children,o=e.actions,a=void 0===o?[]:o,i=e.onRemove,u=void 0===i?w.noop:i;Object(c.useEffect)((function(){var e=setTimeout((function(){u()}),1e4);return function(){return clearTimeout(e)}}),[]);var s=p()(n,"components-snackbar");return a&&a.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),a=[a[0]]),Object(c.createElement)("div",{ref:t,className:s,onClick:u,tabIndex:"0",role:"button",onKeyPress:u,label:Object(S.__)("Dismiss this notice")},Object(c.createElement)("div",{className:"components-snackbar__content"},r,a.map((function(e,t){var n=e.label,r=e.onClick,o=e.url;return Object(c.createElement)(_.a,{key:t,href:o,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))}));var R=function(e){var t=e.notices,n=e.className,r=e.children,o=e.onRemove,a=void 0===o?w.noop:o,i=Object(k.useReducedMotion)(),u=Object(c.useState)((function(){return new WeakMap})),s=Object(j.a)(u,1)[0],l=Object(E.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=O(v.a.mark((function t(n){return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:s.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=O(v.a.mark((function e(t){return v.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:i});n=p()("components-snackbar-list",n);var f=function(e){return function(){return a(e.id)}};return Object(c.createElement)("div",{className:n},r,l.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(E.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&s.set(t,e)}},Object(c.createElement)(x,Object(g.a)({},Object(w.omit)(t,["content"]),{onRemove:f(t)}),t.content)))})))},P=n(63),C=n(109),N=function(){var e=Object(C.a)().isEditor,t=Object(P.a)(),n=t.notices,r=t.removeNotice,o=n.filter((function(e){return"snackbar"===e.type}));return e?null:React.createElement(R,{notices:o,className:"wc-block-notices__snackbar",onRemove:r})};function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=Object(c.createContext)({notices:[],createNotice:function(e,t,n){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),F=function(){return Object(c.useContext)(I)},D=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.createNoticeContainer,a=void 0===o||o,s=e.context,l=void 0===s?"wc/core":s,f=Object(u.useDispatch)("core/notices"),p=f.createNotice,d=f.removeNotice,m=Object(c.useState)(!1),g=i()(m,2),b=g[0],v=g[1],y=Object(c.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]:{};p(e,t,A(A({},n),{},{context:n.context||l}))}),[p,l]),O=Object(c.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;d(e,t)}),[d,l]),j=Object(c.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,A(A({},t),{},{type:"snackbar"}))}),[y]),w={notices:Object(u.useSelect)((function(e){return{notices:e("core/notices").getNotices(l)}}),[l]).notices,createNotice:y,createSnackbarNotice:j,removeNotice:O,context:l,setIsSuppressed:v},E=b?null:React.createElement(h,{className:r,notices:w.notices}),k=b?null:React.createElement(N,null);return React.createElement(I.Provider,{value:w},a&&E,t,k)}},,,,,,,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 h}));var r=n(6),o=n.n(r),a=n(20),i=n.n(a),c=n(2);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l,f,p={code:c.CURRENCY.code,symbol:c.CURRENCY.symbol,thousandSeparator:c.CURRENCY.thousandSeparator,decimalSeparator:c.CURRENCY.decimalSeparator,minorUnit:c.CURRENCY.precision,prefix:(l=c.CURRENCY.symbol,f=c.CURRENCY.symbolPosition,{left:l,left_space:" "+l,right:"",right_space:""}[f]||""),suffix:function(e,t){return{left:"",left_space:"",right:e,right_space:" "+e}[t]||""}(c.CURRENCY.symbol,c.CURRENCY.symbolPosition)},d=function(e){if(!e||"object"!==i()(e))return p;var t=e.currency_code,n=e.currency_symbol,r=e.currency_thousand_separator,o=e.currency_decimal_separator,a=e.currency_minor_unit,c=e.currency_prefix,u=e.currency_suffix;return{code:t||"USD",symbol:n||"$",thousandSeparator:"string"==typeof r?r:",",decimalSeparator:"string"==typeof o?o:".",minorUnit:Number.isFinite(a)?a:2,prefix:"string"==typeof c?c:"$",suffix:"string"==typeof u?u:""}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(s({},p),e)},h=function(e,t){if(""===e||void 0===e)return"";var n=parseInt(e,10);if(!Number.isFinite(n))return"";var r=m(t),o=n/Math.pow(10,r.minorUnit),a=r.prefix+o+r.suffix,i=document.createElement("textarea");return i.innerHTML=a,i.value}},function(e,t,n){"use strict";var r=n(0),o=n(2),a=n(15),i=n(12);t.a=function(e){return function(t){var n;return n=Object(r.useRef)(Object(o.getSetting)("restApiRoutes")),Object(i.useSelect)((function(e,t){if(n.current){var r=e(a.SCHEMA_STORE_KEY),o=r.isResolving,i=r.hasFinishedResolution,c=t.dispatch(a.SCHEMA_STORE_KEY),u=c.receiveRoutes,s=c.startResolution,l=c.finishResolution;Object.keys(n.current).forEach((function(e){var t=n.current[e];o("getRoutes",[e])||i("getRoutes",[e])||(s("getRoutes",[e]),u(t,[e]),l("getRoutes",[e]))}))}}),[]),React.createElement(e,t)}}},,,,,function(e,t,n){"use strict";n(5);var r=n(4),o=n.n(r),a=n(28),i=n(94);n(137);t.a=Object(i.a)((function(e){var t=e.className,n=e.instanceId,r=e.defaultValue,i=e.label,c=e.onChange,u=e.options,s=e.screenReaderLabel,l=e.readOnly,f=e.value,p="wc-block-sort-select__select-".concat(n);return React.createElement("div",{className:o()("wc-block-sort-select",t)},React.createElement(a.a,{label:i,screenReaderLabel:s,wrapperElement:"label",wrapperProps:{className:"wc-block-sort-select__label",htmlFor:p}}),React.createElement("select",{id:p,className:"wc-block-sort-select__select",defaultValue:r,onChange:c,readOnly:l,value:f},u.map((function(e){return React.createElement("option",{key:e.key,value:e.key},e.label)}))))}))},,function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(32),i=n.n(a),c=n(33),u=n.n(c),s=n(19),l=n.n(s),f=n(34),p=n.n(f),d=n(35),m=n.n(d),h=n(21),g=n.n(h),b=n(6),v=n.n(b),y=n(3);n(148);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){p()(r,t);var n=O(r);function r(){var e;return i()(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 u()(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){},function(e,t,n){"use strict";var r=n(6),o=n.n(r),a=n(14),i=n.n(a),c=n(3);n(5);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}t.a=function(e){var t=e.srcElement,n=e.size,r=void 0===n?24:n,a=i()(e,["srcElement","size"]);return Object(c.isValidElement)(t)&&Object(c.cloneElement)(t,function(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){o()(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}({width:r,height:r},a))}},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){var n=[];return Object.keys(e).forEach((function(r){if(void 0!==t[r])switch(e[r].type){case"boolean":n[r]="false"!==t[r];break;case"number":n[r]=parseInt(t[r],10);break;case"array":case"object":n[r]=JSON.parse(t[r]);break;default:n[r]=t[r]}else n[r]=e[r].default})),n}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),a=n(4),i=n.n(a),c=n(1),u=n(77),s=n(9),l=n(29);function f(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}var m=n(62),h=n(13);function g(e,t){return!t||"object"!==Object(m.a)(t)&&"function"!=typeof t?Object(h.a)(e):t}function b(e){return(b=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(27),j=n(47),w=n(49),E=n(81),k=n.n(E),S=n(25),_=n(26),x=function(){return"rtl"===document.documentElement.dir};function R(e,t,n,r){var o=t.width;"left"===n&&x()?n="right":"right"===n&&x()&&(n="left");var a,i=Math.round(e.left+e.width/2),c={popoverLeft:i,contentWidth:(i-o/2>0?o/2:i)+(i+o/2>window.innerWidth?window.innerWidth-i:o/2)},u="middle"===r?e.left:i,s={popoverLeft:u,contentWidth:u-o>0?o:u},l="middle"===r?e.right:i,f={popoverLeft:l,contentWidth:l+o>window.innerWidth?window.innerWidth-l:o},p=null;if("center"===n&&c.contentWidth===o)a="center";else if("left"===n&&s.contentWidth===o)a="left";else if("right"===n&&f.contentWidth===o)a="right";else{var d="left"===(a=s.contentWidth>f.contentWidth?"left":"right")?s.contentWidth:f.contentWidth;p=d!==o?d:null}return{xAxis:a,popoverLeft:"center"===a?c.popoverLeft:"left"===a?s.popoverLeft:f.popoverLeft,contentWidth:p}}function P(e,t,n){var r,o=t.height,a=e.top+e.height/2,i={popoverTop:a,contentHeight:(a-o/2>0?o/2:a)+(a+o/2>window.innerHeight?window.innerHeight-a:o/2)},c={popoverTop:e.top,contentHeight:e.top-10-o>0?o:e.top-10},u={popoverTop:e.bottom,contentHeight:e.bottom+10+o>window.innerHeight?window.innerHeight-10-e.bottom:o},s=null;if("middle"===n&&i.contentHeight===o)r="middle";else if("top"===n&&c.contentHeight===o)r="top";else if("bottom"===n&&u.contentHeight===o)r="bottom";else{var l="top"===(r=c.contentHeight>u.contentHeight?"top":"bottom")?c.contentHeight:u.contentHeight;s=l!==o?l:null}return{yAxis:r,popoverTop:"middle"===r?i.popoverTop:"top"===r?c.popoverTop:u.popoverTop,contentHeight:s}}var C=n(36),N=Object(r.createContext)({focusHistory:[]}),T=N.Provider,A=N.Consumer;T.displayName="FocusReturnProvider",A.displayName="FocusReturnConsumer";r.Component;var I=Object(S.createHigherOrderComponent)((function e(t){if((a=t)instanceof r.Component||"function"==typeof a){var n=t;return e({})(n)}var a,i=t.onFocusReturn,c=void 0===i?o.stubTrue:i;return function(e){var t=function(t){function n(){var e;return f(this,n),(e=g(this,b(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),d(n,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==c())for(var r,a=[].concat(Object(C.a)(o.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(C.a)(n)))),[e]);r=a.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)(A,null,(function(n){return Object(r.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn"),F=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return f(this,n),(e=g(this,b(n).apply(this,arguments))).focusContainRef=Object(r.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(h.a)(e)),e}return y(n,t),d(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 L=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return f(this,n),(e=g(this,b(n).apply(this,arguments))).bindNode=e.bindNode.bind(Object(h.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(h.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(h.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(h.a)(e)),e}return y(n,t),d(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(s.a)({ref:this.bindNode},this.props)))}}]),n}(r.Component)}),"withFocusOutside")(function(e){function t(){return f(this,t),g(this,b(t).apply(this,arguments))}return y(t,e),d(t,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),t}(r.Component));var M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,o=e.className,a=void 0===o?"lockscroll":o,i=0,c=0;function u(e){var t=n.scrollingElement||n.body;e&&(c=t.scrollTop);var r=e?"add":"remove";t.classList[r](a),n.documentElement.classList[r](a),e||(t.scrollTop=c)}function s(){0===i&&u(!0),++i}function l(){1===i&&u(!1),--i}return function(e){function t(){return f(this,t),g(this,b(t).apply(this,arguments))}return y(t,e),d(t,[{key:"componentDidMount",value:function(){s()}},{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(s.a)({},o,{ref:t,onMouseDown:V}),n)})),z=Object(r.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),U=z.Provider,q=z.Consumer,H=(r.Component,0);function W(e){var t=e.name,n=e.children,a=e.registerFill,i=e.unregisterFill,c=function(e){var t=Object(r.useContext)(z),n=t.getSlot,o=t.subscribe,a=Object(r.useState)(n(e)),i=Object(O.a)(a,2),c=i[0],u=i[1];return Object(r.useEffect)((function(){return u(n(e)),o((function(){u(n(e))}))}),[e]),c}(t),u=Object(r.useRef)({name:t,children:n});return u.current.occurrence||(u.current.occurrence=++H),Object(r.useLayoutEffect)((function(){return a(t,u.current),function(){return i(t,u.current)}}),[]),Object(r.useLayoutEffect)((function(){u.current.children=n,c&&!c.props.bubblesVirtually&&c.forceUpdate()}),[n]),Object(r.useLayoutEffect)((function(){t!==u.current.name&&(i(u.current.name,u.current),u.current.name=t,a(t,u.current))}),[t]),c&&c.node&&c.props.bubblesVirtually?(Object(o.isFunction)(n)&&(n=n(c.props.fillProps)),Object(r.createPortal)(n,c.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(s.a)({},e,{registerFill:n,unregisterFill:o}))}))},Y=function(e){function t(){var e;return f(this,t),(e=g(this,b(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(h.a)(e)),e}return y(t,e),d(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,a=e.bubblesVirtually,i=void 0!==a&&a,c=e.fillProps,u=void 0===c?{}:c,s=e.getFills,l=e.className;if(i)return Object(r.createElement)("div",{ref:this.bindNode,className:l});var f=Object(o.map)(s(n,this),(function(e){var t=e.occurrence,n=Object(o.isFunction)(e.children)?e.children(u):e.children;return r.Children.map(n,(function(e,n){if(!e||Object(o.isString)(e))return e;var a="".concat(t,"---").concat(e.key||n);return Object(r.cloneElement)(e,{key:a})}))})).filter(Object(o.negate)(r.isEmptyElement));return Object(r.createElement)(r.Fragment,null,Object(o.isFunction)(t)?t(f):f)}}]),t}(r.Component),Q=function(e){return Object(r.createElement)(q,null,(function(t){var n=t.registerSlot,o=t.unregisterSlot,a=t.getFills;return Object(r.createElement)(Y,Object(s.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:a}))}))},G=n(45);var $=function(e){var t=e.type,n=e.options,r=void 0===n?{}:n,o=e.children;if("appear"===t){var a,c=r.origin,u=(void 0===c?"top":c).split(" "),s=Object(O.a)(u,2),l=s[0],f=s[1],p=void 0===f?"center":f;return o({className:i()("components-animate__appear",(a={},Object(G.a)(a,"is-from-"+p,"center"!==p),Object(G.a)(a,"is-from-"+l,"middle"!==l),a))})}if("slide-in"===t){var d=r.origin,m=void 0===d?"left":d;return o({className:i()("components-animate__slide-in","is-from-"+m)})}return o("loading"===t?{className:i()("components-animate__loading")}:{})},Z=F(I((function(e){return e.children})));function J(e,t){var n=window.getComputedStyle(t),r=n.paddingTop,o=n.paddingBottom,a=n.paddingLeft,i=n.paddingRight,c=r?parseInt(r,10):0,u=o?parseInt(o,10):0,s=a?parseInt(a,10):0,l=i?parseInt(i,10):0;return{x:e.left+s,y:e.top+c,width:e.width-s-l,height:e.height-c-u,left:e.left+s,right:e.right-l,top:e.top+c,bottom:e.bottom-u}}function X(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,a=e.children,c=e.className,u=e.noArrow,f=void 0!==u&&u,p=e.position,d=void 0===p?"top":p,m=(e.range,e.focusOnMount),h=void 0===m?"firstElement":m,g=e.anchorRef,b=e.shouldAnchorIncludePadding,v=e.anchorVerticalBuffer,y=e.anchorHorizontalBuffer,E=e.anchorRect,x=e.getAnchorRect,C=e.expandOnMobile,N=e.animate,T=void 0===N||N,A=e.onClickOutside,I=e.onFocusOutside,F=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),z=Object(r.useRef)(),U=Object(r.useRef)(),H=Object(S.useViewportMatch)("medium","<"),W=Object(r.useState)(),Y=Object(O.a)(W,2),Q=Y[0],G=Y[1],ne=C&&H;f=ne||f,Object(r.useEffect)((function(){var e=z.current,t=V.current;if(ne)return te(e,"is-without-arrow",f),X(e,"data-x-axis"),X(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 a=r.getBoundingClientRect();return o?a:J(a,r)}if(e.current){var i=e.current.parentNode,c=i.getBoundingClientRect();return o?c:J(c,i)}}(D,E,x,g,b);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),U.current||(U.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),a=o[0],i=o[1],c=void 0===i?"center":i,u=P(e,t,a),s=R(e,t,c,u.yAxis);return Object(_.a)({},s,u)}(n,U.current,d),o=r.popoverTop,a=r.popoverLeft,i=r.xAxis,c=r.yAxis,u=r.contentHeight,s=r.contentWidth;te(e,"is-without-arrow",f||"center"===i&&"middle"===c),X(e,"data-x-axis",i),X(e,"data-y-axis",c),ee(e,"top","number"==typeof o?o+"px":""),ee(e,"left","number"==typeof a?a+"px":""),ee(t,"maxHeight","number"==typeof u?u+"px":""),ee(t,"maxWidth","number"==typeof s?s+"px":"");G(({left:"right",right:"left"}[i]||"center")+" "+({top:"bottom",bottom:"top"}[c]||"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,E,x,g,b,v,y,d]),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=j.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(h,V);var re=function(e){e.keyCode===w.ESCAPE&&n&&(e.stopPropagation(),n()),o&&o(e)};var oe=Object(r.createElement)(L,{onFocusOutside:function(e){if(I)I(e);else if(A){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}}),k()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),A(t)}else n&&n()}},Object(r.createElement)($,{type:T&&Q?"appear":null,options:{origin:Q}},(function(e){var o=e.className;return Object(r.createElement)(B,Object(s.a)({className:i()("components-popover",c,o,{"is-expanded":ne,"is-without-arrow":f})},F,{onKeyDown:re,ref:z}),ne&&Object(r.createElement)("div",{className:"components-popover__header"},Object(r.createElement)("span",{className:"components-popover__header-title"},t),Object(r.createElement)(ce,{className:"components-popover__close",icon:"no-alt",onClick:n})),Object(r.createElement)("div",{ref:V,className:"components-popover__content",tabIndex:"-1"},a))})));return h&&(oe=Object(r.createElement)(Z,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,H&&C&&Object(r.createElement)(M,null))}))};ne.Slot=function(){return Object(r.createElement)(Q,{bubblesVirtually:!0,name:"Popover"})};var re=ne;var oe=function(e){var t,n,a=e.shortcut,i=e.className;return a?(Object(o.isString)(a)&&(t=a),Object(o.isObject)(a)&&(t=a.display,n=a.ariaLabel),Object(r.createElement)("span",{className:i,"aria-label":n},t)):null},ae=function(e){function t(){var e;return f(this,t),(e=g(this,b(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),d(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 a=Object(o.includes)(["focus","mouseenter"],r.type);a!==n.state.isOver&&(t?n.delayedSetIsOver(a):n.setState({isOver:a}))}}}},{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,a=e.shortcut;if(1!==r.Children.count(t))return t;var i=r.Children.only(t),c=this.state.isOver;return Object(r.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(r.concatChildren)(i.props.children,c&&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:a})))})}}]),t}(r.Component),ie=n(74);var ce=Object(r.forwardRef)((function(e,t){var n=e.icon,a=e.children,c=e.label,f=e.className,p=e.tooltip,d=e.shortcut,m=e.labelPosition,h=e.size,g=Object(l.a)(e,["icon","children","label","className","tooltip","shortcut","labelPosition","size"]),b=i()("components-icon-button",f,{"has-text":a}),v=p||c,y=!g.disabled&&(p||d||!!c&&(!a||Object(o.isArray)(a)&&!a.length)&&!1!==p),O=Object(r.createElement)(u.a,Object(s.a)({"aria-label":c},g,{className:b,ref:t}),Object(r.createElement)(ie.a,{icon:n,size:h}),a);return y&&(O=Object(r.createElement)(ae,{text:v,shortcut:d,position:m},O)),O}));t.a=function(e){var t=e.className,n=e.status,a=e.children,s=e.onRemove,l=void 0===s?o.noop:s,f=e.isDismissible,p=void 0===f||f,d=e.actions,m=void 0===d?[]:d,h=e.__unstableHTML,g=i()(t,"components-notice","is-"+n,{"is-dismissible":p});return h&&(a=Object(r.createElement)(r.RawHTML,null,a)),Object(r.createElement)("div",{className:g},Object(r.createElement)("div",{className:"components-notice__content"},a,m.map((function(e,t){var n=e.className,o=e.label,a=e.noDefaultClasses,c=void 0!==a&&a,s=e.onClick,l=e.url;return Object(r.createElement)(u.a,{key:t,href:l,isDefault:!c&&!l,isLink:!c&&!!l,onClick:l?void 0:s,className:i()("components-notice__action",n)},o)}))),p&&Object(r.createElement)(ce,{className:"components-notice__dismiss",icon:"no-alt",label:Object(c.__)("Dismiss this notice"),onClick:l,tooltip:!1}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ee}));var r=n(6),o=n.n(r),a=n(78),i=n(11),c=n.n(i),u=n(14),s=n.n(u),l=(n(5),n(4)),f=n.n(l),p=n(1),d=n(0),m=n(10),h=n.n(m),g=n(12),b=n(75),v=n(15),y=n(16),O=n(63),j=function(e,t){var n=e.find((function(e){return e.id===t}));return n?n.quantity:0},w=n(176),E=n(18),k=(n(139),function(e){var t=e.product,n=Object(d.useRef)(!0),r=t.id,o=t.permalink,a=t.add_to_cart,i=t.has_options,u=t.is_purchasable,s=t.is_in_stock,l=function(e){var t=Object(g.useDispatch)(v.CART_STORE_KEY).addItemToCart,n=Object(b.a)(),r=n.cartItems,o=n.cartIsLoading,a=Object(O.a)(),i=a.addErrorNotice,c=a.removeNotice,u=Object(d.useState)(!1),s=h()(u,2),l=s[0],f=s[1],p=Object(d.useRef)(j(r,e));return Object(d.useEffect)((function(){var t=j(r,e);t!==p.current&&(p.current=t)}),[r,e]),{cartQuantity:p.current,addingToCart:l,cartIsLoading:o,addToCart:function(){f(!0),t(e).then((function(e){!0===e&&c("add-to-cart")})).catch((function(e){i(Object(y.decodeEntities)(e.message),{context:"wc/all-products",id:"add-to-cart",isDismissible:!0})})).finally((function(){f(!1)}))}}}(r),m=l.cartQuantity,E=l.addingToCart,k=l.addToCart;Object(d.useEffect)((function(){n.current?n.current=!1:Object(w.a)()}),[m]);var S=Number.isFinite(m)&&m>0,_=!i&&u&&s,x=Object(y.decodeEntities)((null==a?void 0:a.description)||""),R=S?Object(p.sprintf)(Object(p._n)("%d in cart","%d in cart",m,"woo-gutenberg-products-block"),m):Object(y.decodeEntities)((null==a?void 0:a.text)||Object(p.__)("Add to cart","woo-gutenberg-products-block")),P=_?"button":"a",C={};return _?C.onClick=k:(C.href=o,C.rel="nofollow"),React.createElement(P,c()({"aria-label":x,className:f()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button",{loading:E,added:S}),disabled:E},C),R)}),S=function(){return React.createElement("button",{className:f()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button","wc-block-components-product-button__button--placeholder"),disabled:!0})},_=function(e){var t=e.className,n=s()(e,["className"]),r=Object(E.useInnerBlockLayoutContext)().parentClassName,o=Object(E.useProductDataContext)(),a=n.product||o.product;return React.createElement("div",{className:f()(t,"wp-block-button","wc-block-components-product-button","".concat(r,"__product-add-to-cart"))},a?React.createElement(k,{product:a}):React.createElement(S,null))},x=n(25),R=n(142),P=function(e){return function(t){return function(n){var r=Object(R.a)(e,n);return React.createElement(t,c()({},n,r))}}},C=n(8),N=n(28),T=(n(140),function(e){var t=e.className,n=e.align,r=s()(e,["className","align"]),o=Object(E.useInnerBlockLayoutContext)().parentClassName,a=Object(E.useProductDataContext)(),i=r.product||a.product;if(!i||!i.on_sale)return null;var c="string"==typeof n?"wc-block-components-product-sale-badge--align".concat(n):"";return React.createElement("div",{className:f()("wc-block-components-product-sale-badge",t,c,"".concat(o,"__product-onsale"))},React.createElement(N.a,{label:Object(p.__)("Sale","woo-gutenberg-products-block"),screenReaderLabel:Object(p.__)("Product on sale","woo-gutenberg-products-block")}))}),A=(n(141),function(){return React.createElement("img",{src:C.p,alt:""})}),I=function(e){var t=e.image,n=e.onLoad,r=e.loaded,o=t||{},a=o.thumbnail,i=o.srcset,c=o.sizes,u=o.alt;return React.createElement(React.Fragment,null,React.createElement("img",{src:a,srcSet:i,sizes:c,alt:u,onLoad:n,hidden:!r}),!r&&React.createElement(A,null))},F=function(e){var t=e.className,n=e.productLink,r=void 0===n||n,o=e.showSaleBadge,a=e.saleBadgeAlign,i=void 0===a?"right":a,c=s()(e,["className","productLink","showSaleBadge","saleBadgeAlign"]),u=Object(E.useInnerBlockLayoutContext)().parentClassName,l=Object(E.useProductDataContext)(),p=c.product||l.product,m=Object(d.useState)(!1),g=h()(m,2),b=g[0],v=g[1];if(!p)return React.createElement("div",{className:f()(t,"wc-block-components-product-image","wc-block-components-product-image--placeholder","".concat(u,"__product-image"))},React.createElement(A,null));var y=(null==p?void 0:p.images)&&p.images.length?p.images[0]:null;return React.createElement("div",{className:f()(t,"wc-block-components-product-image","".concat(u,"__product-image"))},r?React.createElement("a",{href:p.permalink,rel:"nofollow"},!!o&&React.createElement(T,{align:i,product:p}),React.createElement(I,{image:y,onLoad:function(){return v(!0)},loaded:b})):React.createElement(React.Fragment,null,!!o&&React.createElement(T,{align:i,product:p}),React.createElement(I,{image:y,onLoad:function(){return v(!0)},loaded:b})))},D={productLink:{type:"boolean",default:!0},showSaleBadge:{type:"boolean",default:!0},saleBadgeAlign:{type:"string",default:"right"}},L=Object(x.compose)(P(D))(F),M=n(31),V=n(118),B=(n(143),function(e){return e.price_range&&e.price_range.min_amount&&e.price_range.max_amount}),z=function(e){var t=e.currency,n=e.minAmount,r=e.maxAmount,o=Object(E.useInnerBlockLayoutContext)().parentClassName;return React.createElement("span",{className:f()("wc-block-components-product-price__value","".concat(o,"__product-price__value"))},React.createElement(M.a,{currency:t,value:n})," — ",React.createElement(M.a,{currency:t,value:r}))},U=function(e){var t=e.currency,n=e.price,r=e.regularPrice,o=Object(E.useInnerBlockLayoutContext)().parentClassName;return React.createElement(React.Fragment,null,r!==n&&React.createElement("del",{className:f()("wc-block-components-product-price__regular","".concat(o,"__product-price__regular"))},React.createElement(M.a,{currency:t,value:r})),React.createElement("span",{className:f()("wc-block-components-product-price__value","".concat(o,"__product-price__value"))},React.createElement(M.a,{currency:t,value:n})))},q=function(e){var t=e.className,n=s()(e,["className"]),r=Object(E.useInnerBlockLayoutContext)().parentClassName,o=Object(E.useProductDataContext)(),a=n.product||o.product;if(!a)return React.createElement("div",{className:f()(t,"price","wc-block-components-product-price","".concat(r,"__product-price"))});var i=a.prices||{},c=Object(V.c)(i);return React.createElement("div",{className:f()(t,"price","wc-block-components-product-price","".concat(r,"__product-price"))},B(i)?React.createElement(z,{currency:c,minAmount:i.price_range.min_amount,maxAmount:i.price_range.max_amount}):React.createElement(U,{currency:c,price:i.price,regularPrice:i.regular_price}))},H=(n(144),function(e){var t=parseFloat((null==e?void 0:e.average_rating)||0);return Number.isFinite(t)&&t>0?t:0}),W=function(e){var t=e.className,n=s()(e,["className"]),r=Object(E.useInnerBlockLayoutContext)().parentClassName,o=Object(E.useProductDataContext)(),a=n.product||o.product,i=H(a);if(!i)return null;var c={width:i/5*100+"%"},u=Object(p.sprintf)(Object(p.__)("Rated %f out of 5","woo-gutenberg-products-block"),i);return React.createElement("div",{className:f()(t,"star-rating","wc-block-components-product-rating","".concat(r,"__product-rating"))},React.createElement("div",{className:f()("wc-block-components-product-rating__stars","".concat(r,"__product-rating__stars")),role:"img","aria-label":u},React.createElement("span",{style:c},u)))},K=n(83),Y=n(2),Q=(n(145),function(e){var t=e.className,n=s()(e,["className"]),r=Object(E.useInnerBlockLayoutContext)().parentClassName,o=(Object(E.useProductDataContext)()||n).product;if(!o)return React.createElement("div",{className:f()(t,"wc-block-components-product-summary")});var a=o.short_description?o.short_description:o.description;if(!a)return null;var i=Object(Y.getSetting)("wordCountType","words");return React.createElement(K.a,{className:f()(t,"wc-block-components-product-summary","".concat(r,"__product-summary")),source:a,maxLength:150,countType:i})}),G=(n(146),function(e){var t=e.className,n=e.headingLevel,r=void 0===n?2:n,o=e.productLink,a=void 0===o||o,i=s()(e,["className","headingLevel","productLink"]),c=Object(E.useInnerBlockLayoutContext)().parentClassName,u=Object(E.useProductDataContext)(),l=i.product||u.product,p="h".concat(r);if(!l)return React.createElement(p,{className:f()(t,"wc-block-components-product-title","".concat(c,"__product-title"))});var d=Object(y.decodeEntities)(l.name);return React.createElement(p,{className:f()(t,"wc-block-components-product-title","".concat(c,"__product-title"))},a?React.createElement("a",{href:l.permalink,rel:"nofollow"},d):d)}),$={headingLevel:{type:"number",default:2},productLink:{type:"boolean",default:!0}},Z=Object(x.compose)(P($))(G),J=(n(147),function(e){var t=e.className,n=s()(e,["className"]),r=Object(E.useInnerBlockLayoutContext)().parentClassName,o=Object(E.useProductDataContext)(),a=(n.product||o.product||{}).sku||"";return a?React.createElement("div",{className:f()(t,"wc-block-components-product-sku","".concat(r,"__product-sku"))},Object(p.__)("SKU:","woo-gutenberg-products-block")," ",React.createElement("strong",null,a)):null});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}var ee=function(e){return function(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){o()(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}({"woocommerce/product-price":q,"woocommerce/product-image":L,"woocommerce/product-title":Z,"woocommerce/product-rating":W,"woocommerce/product-button":_,"woocommerce/product-summary":Q,"woocommerce/product-sale-badge":T,"woocommerce/product-sku":J},Object(a.getRegisteredInnerBlocks)(e))}},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),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,n.current]),n.current}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=window.Event||null,o=function(){if("function"==typeof r){var e=new r("wc_fragment_refresh",{bubbles:!0,cancelable:!0});document.body.dispatchEvent(e)}else{var t=document.createEvent("Event");t.initEvent("wc_fragment_refresh",!0,!0),document.body.dispatchEvent(t)}}},,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(119),o=n(111),a=n(98),i=n(32),c=n.n(i),u=n(33),s=n.n(u),l=n(34),f=n.n(l),p=n(35),d=n.n(p),m=n(21),h=n.n(m),g=n(3),b=(n(5),n(10)),v=n.n(b),y=n(0),O=n(20),j=n.n(O),w=n(14),E=n.n(w),k=n(6),S=n.n(k),_=n(1),x=n(7),R=n(4),P=n.n(R),C=n(28),N=(n(192),function(e){var t=e.currentPage,n=e.displayFirstAndLastPages,r=e.displayNextAndPreviousArrows,o=e.pagesToDisplay,a=e.onPageChange,i=e.totalPages,c=function(e,t,n){if(n<=2)return{minIndex:null,maxIndex:null};var r=e-1,o=Math.max(Math.floor(t-r/2),2),a=Math.min(Math.ceil(t+(r-(t-o))),n-1);return{minIndex:Math.max(Math.floor(t-(r-(a-t))),2),maxIndex:a}}(o,t,i),u=c.minIndex,s=c.maxIndex,l=n&&Boolean(1!==u),f=n&&Boolean(s!==i),p=n&&Boolean(u>3),d=n&&Boolean(s<i-2);l&&3===u&&(u-=1),f&&s===i-2&&(s+=1);var m=[];if(u&&s)for(var h=u;h<=s;h++)m.push(h);return React.createElement("div",{className:"wc-block-pagination"},React.createElement(C.a,{screenReaderLabel:Object(_.__)("Navigate to another page","woo-gutenberg-products-block")}),r&&React.createElement("button",{className:"wc-block-pagination-page",onClick:function(){return a(t-1)},title:Object(_.__)("Previous page","woo-gutenberg-products-block"),disabled:t<=1},React.createElement(C.a,{label:"<",screenReaderLabel:Object(_.__)("Previous page","woo-gutenberg-products-block")})),l&&React.createElement("button",{className:P()("wc-block-pagination-page",{"wc-block-pagination-page--active":1===t}),onClick:function(){return a(1)},disabled:1===t},React.createElement(C.a,{label:1,screenReaderLabel:Object(_.sprintf)(Object(_.__)("Page %d","woo-gutenberg-products-block"),1)})),p&&React.createElement("span",{className:"wc-block-pagination-ellipsis","aria-hidden":"true"},Object(_.__)("…","woo-gutenberg-products-block")),m.map((function(e){return React.createElement("button",{key:e,className:P()("wc-block-pagination-page",{"wc-block-pagination-page--active":t===e}),onClick:t===e?null:function(){return a(e)},disabled:t===e},React.createElement(C.a,{label:e,screenReaderLabel:Object(_.sprintf)(Object(_.__)("Page %d","woo-gutenberg-products-block"),e)}))})),d&&React.createElement("span",{className:"wc-block-pagination-ellipsis","aria-hidden":"true"},Object(_.__)("…","woo-gutenberg-products-block")),f&&React.createElement("button",{className:P()("wc-block-pagination-page",{"wc-block-pagination-page--active":t===i}),onClick:function(){return a(i)},disabled:t===i},React.createElement(C.a,{label:i,screenReaderLabel:Object(_.sprintf)(Object(_.__)("Page %d","woo-gutenberg-products-block"),i)})),r&&React.createElement("button",{className:"wc-block-pagination-page",onClick:function(){return a(t+1)},title:Object(_.__)("Next page","woo-gutenberg-products-block"),disabled:t>=i},React.createElement(C.a,{label:">",screenReaderLabel:Object(_.__)("Next page","woo-gutenberg-products-block")})))});N.defaultProps={displayFirstAndLastPages:!0,displayNextAndPreviousArrows:!0,pagesToDisplay:3};var T=N,A=n(124),I=(n(191),function(e){var t=e.defaultValue,n=e.onChange,r=e.readOnly,o=e.value;return React.createElement(A.a,{className:"wc-block-product-sort-select",defaultValue:t,name:"orderby",onChange:n,options:[{key:"menu_order",label:Object(_.__)("Default sorting","woo-gutenberg-products-block")},{key:"popularity",label:Object(_.__)("Popularity","woo-gutenberg-products-block")},{key:"rating",label:Object(_.__)("Average rating","woo-gutenberg-products-block")},{key:"date",label:Object(_.__)("Latest","woo-gutenberg-products-block")},{key:"price",label:Object(_.__)("Price: low to high","woo-gutenberg-products-block")},{key:"price-desc",label:Object(_.__)("Price: high to low","woo-gutenberg-products-block")}],readOnly:r,screenReaderLabel:Object(_.__)("Order products by","woo-gutenberg-products-block"),value:o})}),F=n(18),D=n(94),L=n(11),M=n.n(L),V=n(169),B=Object(D.a)((function(e){var t=e.product,n=e.attributes,r=e.instanceId,o=n.layoutConfig,a=Object(F.useInnerBlockLayoutContext)(),i=a.parentClassName,c=a.parentName,u=0===Object.keys(t).length,s=P()("".concat(i,"__product"),{"is-loading":u,"wc-block-layout--is-loading":u});return React.createElement("li",{className:s,"aria-hidden":u},function e(t,n,r,o){if(r){var a=Object(V.a)(t);return r.map((function(r,i){var c=v()(r,2),u=c[0],s=c[1],l=void 0===s?{}:s,f=[];l.children&&l.children.length>0&&(f=e(t,n,l.children,o));var p=a[u];if(!p)return null;var d=n.id||0,m=["layout",u,i,o,d];return React.createElement(p,M()({key:m.join("_")},l,{children:f,product:n}))}))}}(c,t,o,r))})),z=n(93),U=n(106),q=n(15),H=n(12),W=n(38);function K(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?K(Object(n),!0).forEach((function(t){S()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=function(e){var t={namespace:"/wc/store",resourceName:"products"},n=Object(U.a)(Y(Y({},t),{},{query:e})),r=n.results,o=n.isLoading,a=function(e,t){var n=t.namespace,r=t.resourceName,o=t.resourceValues,a=void 0===o?[]:o,i=t.query,c=void 0===i?{}:i;if(!n||!r)throw new Error("The options object must have valid values for the namespace and the resource name properties.");var u=Object(W.a)(c),s=Object(W.a)(a),l=Object(H.useSelect)((function(t){var o=t(q.COLLECTIONS_STORE_KEY),a=[e,n,r,u,s];return{value:o.getCollectionHeader.apply(o,a),isLoading:o.hasFinishedResolution("getCollectionHeader",a)}}),[e,n,r,s,u]),f=l.value,p=l.isLoading;return{value:f,isLoading:void 0===p||p}}("x-wp-total",Y(Y({},t),{},{query:e})).value;return{products:r,totalProducts:parseInt(a,10),productsLoading:o}},G=n(175),$=n(126),Z=n(42),J=(n(190),n(138)),X=n(88),ee=React.createElement(X.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.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"})),te=function(){var e=Object(F.useInnerBlockLayoutContext)().parentClassName;return React.createElement("div",{className:"".concat(e,"__no-products")},React.createElement(J.a,{className:"".concat(e,"__no-products-image"),alt:"",srcElement:ee,size:100}),React.createElement("strong",{className:"".concat(e,"__no-products-title")},Object(_.__)("No products","woo-gutenberg-products-block")),React.createElement("p",{className:"".concat(e,"__no-products-description")},Object(_.__)("There are currently no products available to display.","woo-gutenberg-products-block")))},ne=React.createElement(X.a,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},React.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),React.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"})),re=function(e){var t=e.resetCallback,n=void 0===t?function(){}:t,r=Object(F.useInnerBlockLayoutContext)().parentClassName;return React.createElement("div",{className:"".concat(r,"__no-products")},React.createElement(J.a,{className:"".concat(r,"__no-products-image"),alt:"",srcElement:ne,size:100}),React.createElement("strong",{className:"".concat(r,"__no-products-title")},Object(_.__)("No products found","woo-gutenberg-products-block")),React.createElement("p",{className:"".concat(r,"__no-products-description")},Object(_.__)("We were unable to find any results based on your search.","woo-gutenberg-products-block")),React.createElement("button",{onClick:n},Object(_.__)("Reset Search","woo-gutenberg-products-block")))};function oe(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){S()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie=Object($.a)((function(e){var t=e.attributes,n=e.currentPage,r=e.onPageChange,o=e.onSortChange,a=e.sortValue,i=e.scrollToTop,c=Object(z.c)(function(e){var t=e.sortValue,n=e.currentPage,r=e.attributes,o=r.columns,a=r.rows;return ae(ae({},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:o*a,page:n})}({attributes:t,sortValue:a,currentPage:n})),u=v()(c,1)[0],s=Q(u),l=s.products,f=s.totalProducts,p=s.productsLoading,d=Object(F.useInnerBlockLayoutContext)().parentClassName,m=function(e){e.order,e.orderby,e.page,e.per_page;return E()(e,["order","orderby","page","per_page"])}(u),h=Object(z.b)("attributes",[]),g=v()(h,2),b=g[0],O=g[1],w=Object(z.b)("min_price"),k=v()(w,2),S=k[0],R=k[1],C=Object(z.b)("max_price"),N=v()(C,2),A=N[0],D=N[1],L=Object(G.a)({totalQuery:m,totalProducts:f},(function(e){var t=e.totalQuery,n=e.totalProducts,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.totalQuery;return!Object(x.isEqual)(t,o)&&Number.isFinite(n)})),M="object"===j()(L)&&Object(x.isEqual)(m,L.totalQuery);Object(y.useEffect)((function(){M||(r(1),L&&function(e){Number.isFinite(e)&&(0===e?Object(Z.speak)(Object(_.__)("No products found","woo-gutenberg-products-block")):Object(Z.speak)(Object(_.sprintf)(Object(_._n)("%d product found","%d products found",e,"woo-gutenberg-products-block"),e)))}(f))}),[u]);var V,U,q,H,W,K=t.contentVisibility,Y=t.columns*t.rows,$=!Number.isFinite(f)&&M?Math.ceil(L.totalProducts/Y):Math.ceil(f/Y),J=l.length?l:Array.from({length:Y}),X=0!==l.length||p,ee=b.length>0||Number.isFinite(S)||Number.isFinite(A);return React.createElement("div",{className:(V=t.columns,U=t.rows,q=t.alignButtons,H=t.align,W=void 0!==H?"align"+H:"",P()(d,W,"has-"+V+"-columns",{"has-multiple-rows":U>1,"has-aligned-buttons":q}))},K.orderBy&&X&&React.createElement(I,{onChange:o,value:a}),!X&&ee&&React.createElement(re,{resetCallback:function(){O([]),R(null),D(null)}}),!X&&!ee&&React.createElement(te,null),X&&React.createElement("ul",{className:"".concat(d,"__products")},J.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return React.createElement(B,{key:e.id||n,attributes:t,product:e})}))),$>1&&React.createElement(T,{currentPage:n,onPageChange:function(e){i({focusableSelector:"a, button"}),r(e)},totalPages:$}))})),ce=function(e){var t=e.attributes,n=Object(y.useState)(1),r=v()(n,2),o=r[0],a=r[1],i=Object(y.useState)(t.orderby),c=v()(i,2),u=c[0],s=c[1];Object(y.useEffect)((function(){s(t.orderby)}),[t.orderby]);return React.createElement(ie,{attributes:t,currentPage:o,onPageChange:function(e){a(e)},onSortChange:function(e){var t=e.target.value;s(t),a(1)},sortValue:u})},ue=n(8),se=React.createElement("img",{src:ue.A+"img/grid.svg",alt:"Grid Preview",width:"230",height:"250",style:{width:"100%"}});function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d()(this,n)}}var fe=function(e){f()(n,e);var t=le(n);function n(){return c()(this,n),t.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.urlParameterSuffix;return t.isPreview?se:React.createElement(F.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},React.createElement(ce,{attributes:t,urlParameterSuffix:n}))}}]),n}(g.Component);Object(a.a)({selector:".wp-block-woocommerce-all-products",Block:Object(r.a)((function(e){return React.createElement(o.a,{context:"wc/all-products"},React.createElement(fe,e))})),getProps:function(e){return{attributes:JSON.parse(e.dataset.attributes)}}})}]);
|
build/all-products.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', 'wp-a11y', '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' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-settings', 'wc-shared-context', 'wp-a11y', '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' => '9240b521c159de84bd0f5980ba6f60e3');
|
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],u=t[1],s=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 u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(l&&l(t);p.length;)p.shift()();return o.push.apply(o,s||[]),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 u=r[i];0!==c[u]&&(n=!1)}n&&(o.splice(t--,1),e=a(a.s=r[0]))}return e}var n={},c={5: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.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="";var i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],u=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var l=u;return o.push([836,2,0,1]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},105:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(8),c=r.n(n),o=r(204),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 u(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 s=function(){var e=Object(o.b)(),t=e.notices,r=e.createNotice,n=e.removeNotice,c=e.createSnackbarNotice,i=e.setIsSuppressed,s=Object(a.useRef)(t);Object(a.useEffect)((function(){s.current=t}),[t]);var l=Object(a.useMemo)((function(){return{hasNoticesOfType:function(e){return s.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;s.current.map((function(t){return null!==e&&t.status!==e||n(t.id),!0}))},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,u({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("error",e,u({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("warning",e,u({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("info",e,u({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("success",e,u({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(e,t)}}}),[r,c]);return u(u(u({notices:t},l),b),{},{setIsSuppressed:i})}},107:function(e,t){!function(){e.exports=this.wp.wordcount}()},129:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(39),c=r(35),o=r(202),a=r(33),i=r(6),u={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(){}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(o.b)(),r=t.isEditor,s=t.previewData,l=(null==s?void 0:s.previewCart)||{},b=e.shouldSelect,p=Object(c.useSelect)((function(e,t){var c=t.dispatch;if(!b)return u;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),s=o.getCartData(),p=o.getCartErrors(),d=o.getCartTotals(),f=!o.hasFinishedResolution("getCartData"),g=o.areShippingRatesLoading(),m=c(n.CART_STORE_KEY).receiveCart,O=Object(i.mapValues)(s.shippingAddress,(function(e){return Object(a.decodeEntities)(e)}));return{cartCoupons:s.coupons,cartItems:s.items,cartItemsCount:s.itemsCount,cartItemsWeight:s.itemsWeight,cartNeedsPayment:s.needsPayment,cartNeedsShipping:s.needsShipping,cartItemErrors:s.errors,cartTotals:d,cartIsLoading:f,cartErrors:p,shippingAddress:O,shippingRates:s.shippingRates,shippingRatesLoading:g,hasShippingAddress:!!O.country,receiveCart:m}}),[b]);return p}},130:function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},133:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=(r(2),r(1)),i=r(7),u=r.n(i),s=r(44),l=r(40);r(481);t.a=function(e){var t=e.className,r=e.align,n=c()(e,["className","align"]),i=Object(l.useInnerBlockLayoutContext)().parentClassName,b=Object(l.useProductDataContext)(),p=n.product||b.product;if(!p||!p.on_sale)return null;var d="string"==typeof r?"wc-block-components-product-sale-badge--align".concat(r):"";return Object(o.createElement)("div",{className:u()("wc-block-components-product-sale-badge",t,d,"".concat(i,"__product-onsale"))},Object(o.createElement)(s.a,{label:Object(a.__)("Sale","woo-gutenberg-products-block"),screenReaderLabel:Object(a.__)("Product on sale","woo-gutenberg-products-block")}))}},139:function(e,t,r){"use strict";var n=r(0),c=r(63),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},14:function(e,t){!function(){e.exports=this.wp.blocks}()},143:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(7)),o=r.n(c),a=r(44),i=r(182);r(278);t.a=Object(i.a)((function(e){var t=e.className,r=e.instanceId,c=e.defaultValue,i=e.label,u=e.onChange,s=e.options,l=e.screenReaderLabel,b=e.readOnly,p=e.value,d="wc-block-sort-select__select-".concat(r);return Object(n.createElement)("div",{className:o()("wc-block-sort-select",t)},Object(n.createElement)(a.a,{label:i,screenReaderLabel:l,wrapperElement:"label",wrapperProps:{className:"wc-block-sort-select__label",htmlFor:d}}),Object(n.createElement)("select",{id:d,className:"wc-block-sort-select__select",defaultValue:c,onChange:u,readOnly:b,value:p},s.map((function(e){return Object(n.createElement)("option",{key:e.key,value:e.key},e.label)}))))}))},145:function(e,t,r){"use strict";var n=r(20),c=r.n(n),o=r(26),a=r.n(o),i=r(21),u=r.n(i),s=r(22),l=r.n(s),b=r(12),p=r.n(b),d=r(0),f=r(6),g=r(1),m=r(4);function O(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)(m.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(m.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){u()(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)(O,{level:e}),title:Object(g.sprintf)(Object(g.__)("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)(m.Toolbar,{isCollapsed:n,icon:Object(d.createElement)(O,{level:a}),controls:Object(f.range)(c,o).map((function(t){return e.createLevelControl(t,a,i)}))})}}]),r}(d.Component);t.a=v},146:function(e,t,r){"use strict";var n=r(0),c=r(107),o=r(77),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,"")},u=function(e,t){return e.replace(/[\s|\.\,]+$/i,"")+t},s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"…",n=i(e),c=n.split(" ").splice(0,t).join(" ");return Object(o.autop)(u(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]:"…",c=i(e),a=c.slice(0,t);if(r)return Object(o.autop)(u(a,n));var s=a.match(/([\s]+)/g),l=s?s.length:0,b=c.slice(0,t+l);return Object(o.autop)(u(b,n))};t.a=function(e){var t=e.source,r=e.maxLength,i=void 0===r?15:r,u=e.countType,b=void 0===u?"words":u,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 u=a(n),b=Object(c.count)(u,r);return b<=t?u:"words"===r?s(u,t):l(u,t,"characters_including_spaces"===r)}(t,i,b)}),[t,i,b]);return Object(n.createElement)(n.RawHTML,{className:d},f)}},148: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}))}}},15:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},160:function(e,t,r){"use strict";var n=r(0),c=r(63),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},165:function(e,t,r){"use strict";r.d(t,"a",(function(){return b})),r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return d}));var n=r(11),c=r.n(n),o=r(39),a=r(35),i=r(0),u=r(96),s=r(6),l=r(57),b=function(e){var t=Object(u.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])]},p=function(e,t,r){var n=Object(u.a)();r=r||n;var c=Object(a.useSelect)((function(n){return n(o.QUERY_STATE_STORE_KEY).getValueForQueryKey(r,e,t)}),[r,e]),s=Object(a.useDispatch)(o.QUERY_STATE_STORE_KEY).setQueryValue;return[c,Object(i.useCallback)((function(t){s(r,e,t)}),[r,e])]},d=function(e,t){var r=Object(u.a)(),n=b(t=t||r),o=c()(n,2),a=o[0],p=o[1],d=Object(l.a)(e),f=Object(i.useRef)(!1);return Object(i.useEffect)((function(){p(Object(s.assign)({},a,d)),f.current=!0}),[d]),f.current?[a,p]:[e,p]}},167: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.Q+"img/grid.svg",alt:"Grid Preview",width:"230",height:"250",style:{width:"100%"}})},187: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 g}));var n=r(8),c=r.n(n),o=r(54),a=r.n(o),i=r(3);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 s(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}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,u=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 u?u:""}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(s({},p),e)},g=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}},189:function(e,t,r){"use strict";t.a={headingLevel:{type:"number",default:2},productLink:{type:"boolean",default:!0}}},190:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),u=r(33),s=r(40);r(478);t.a=function(e){var t=e.className,r=e.headingLevel,n=void 0===r?2:r,a=e.productLink,l=void 0===a||a,b=c()(e,["className","headingLevel","productLink"]),p=Object(s.useInnerBlockLayoutContext)().parentClassName,d=Object(s.useProductDataContext)(),f=b.product||d.product,g="h".concat(n);if(!f)return Object(o.createElement)(g,{className:i()(t,"wc-block-components-product-title","".concat(p,"__product-title"))});var m=Object(u.decodeEntities)(f.name);return Object(o.createElement)(g,{className:i()(t,"wc-block-components-product-title","".concat(p,"__product-title"))},l?Object(o.createElement)("a",{href:f.permalink,rel:"nofollow"},m):m)}},191:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),u=r(55),s=r(187),l=r(40),b=(r(479),function(e){return e.price_range&&e.price_range.min_amount&&e.price_range.max_amount}),p=function(e){var t=e.currency,r=e.minAmount,n=e.maxAmount,c=Object(l.useInnerBlockLayoutContext)().parentClassName;return Object(o.createElement)("span",{className:i()("wc-block-components-product-price__value","".concat(c,"__product-price__value"))},Object(o.createElement)(u.a,{currency:t,value:r})," — ",Object(o.createElement)(u.a,{currency:t,value:n}))},d=function(e){var t=e.currency,r=e.price,n=e.regularPrice,c=Object(l.useInnerBlockLayoutContext)().parentClassName;return Object(o.createElement)(o.Fragment,null,n!==r&&Object(o.createElement)("del",{className:i()("wc-block-components-product-price__regular","".concat(c,"__product-price__regular"))},Object(o.createElement)(u.a,{currency:t,value:n})),Object(o.createElement)("span",{className:i()("wc-block-components-product-price__value","".concat(c,"__product-price__value"))},Object(o.createElement)(u.a,{currency:t,value:r})))};t.a=function(e){var t=e.className,r=c()(e,["className"]),n=Object(l.useInnerBlockLayoutContext)().parentClassName,a=Object(l.useProductDataContext)(),u=r.product||a.product;if(!u)return Object(o.createElement)("div",{className:i()(t,"price","wc-block-components-product-price","".concat(n,"__product-price"))});var f=u.prices||{},g=Object(s.c)(f);return Object(o.createElement)("div",{className:i()(t,"price","wc-block-components-product-price","".concat(n,"__product-price"))},b(f)?Object(o.createElement)(p,{currency:g,minAmount:f.price_range.min_amount,maxAmount:f.price_range.max_amount}):Object(o.createElement)(d,{currency:g,price:f.price,regularPrice:f.regular_price}))}},192:function(e,t,r){"use strict";t.a={productLink:{type:"boolean",default:!0},showSaleBadge:{type:"boolean",default:!0},saleBadgeAlign:{type:"string",default:"right"}}},193:function(e,t,r){"use strict";var n=r(11),c=r.n(n),o=r(23),a=r.n(o),i=r(0),u=(r(2),r(7)),s=r.n(u),l=r(5),b=r(40),p=r(133),d=(r(482),function(){return Object(i.createElement)("img",{src:l.C,alt:""})}),f=function(e){var t=e.image,r=e.onLoad,n=e.loaded,c=t||{},o=c.thumbnail,a=c.srcset,u=c.sizes,s=c.alt;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("img",{src:o,srcSet:a,sizes:u,alt:s,onLoad:r,hidden:!n}),!n&&Object(i.createElement)(d,null))};t.a=function(e){var t=e.className,r=e.productLink,n=void 0===r||r,o=e.showSaleBadge,u=e.saleBadgeAlign,l=void 0===u?"right":u,g=a()(e,["className","productLink","showSaleBadge","saleBadgeAlign"]),m=Object(b.useInnerBlockLayoutContext)().parentClassName,O=Object(b.useProductDataContext)(),j=g.product||O.product,v=Object(i.useState)(!1),h=c()(v,2),w=h[0],y=h[1];if(!j)return Object(i.createElement)("div",{className:s()(t,"wc-block-components-product-image","wc-block-components-product-image--placeholder","".concat(m,"__product-image"))},Object(i.createElement)(d,null));var _=(null==j?void 0:j.images)&&j.images.length?j.images[0]:null;return Object(i.createElement)("div",{className:s()(t,"wc-block-components-product-image","".concat(m,"__product-image"))},n?Object(i.createElement)("a",{href:j.permalink,rel:"nofollow"},!!o&&Object(i.createElement)(p.a,{align:l,product:j}),Object(i.createElement)(f,{image:_,onLoad:function(){return y(!0)},loaded:w})):Object(i.createElement)(i.Fragment,null,!!o&&Object(i.createElement)(p.a,{align:l,product:j}),Object(i.createElement)(f,{image:_,onLoad:function(){return y(!0)},loaded:w})))}},194:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=(r(2),r(1)),i=r(7),u=r.n(i),s=r(40),l=(r(483),function(e){var t=parseFloat((null==e?void 0:e.average_rating)||0);return Number.isFinite(t)&&t>0?t:0});t.a=function(e){var t=e.className,r=c()(e,["className"]),n=Object(s.useInnerBlockLayoutContext)().parentClassName,i=Object(s.useProductDataContext)(),b=r.product||i.product,p=l(b);if(!p)return null;var d={width:p/5*100+"%"},f=Object(a.sprintf)(Object(a.__)("Rated %f out of 5","woo-gutenberg-products-block"),p);return Object(o.createElement)("div",{className:u()(t,"star-rating","wc-block-components-product-rating","".concat(n,"__product-rating"))},Object(o.createElement)("div",{className:u()("wc-block-components-product-rating__stars","".concat(n,"__product-rating__stars")),role:"img","aria-label":f},Object(o.createElement)("span",{style:d},f)))}},195:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),u=r(146),s=r(3),l=r(40);r(486);t.a=function(e){var t=e.className,r=c()(e,["className"]),n=Object(l.useInnerBlockLayoutContext)().parentClassName,a=(Object(l.useProductDataContext)()||r).product;if(!a)return Object(o.createElement)("div",{className:i()(t,"wc-block-components-product-summary")});var b=a.short_description?a.short_description:a.description;if(!b)return null;var p=Object(s.getSetting)("wordCountType","words");return Object(o.createElement)(u.a,{className:i()(t,"wc-block-components-product-summary","".concat(n,"__product-summary")),source:b,maxLength:150,countType:p})}},196:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=r(1),i=(r(2),r(7)),u=r.n(i),s=r(40);r(487);t.a=function(e){var t=e.className,r=c()(e,["className"]),n=Object(s.useInnerBlockLayoutContext)().parentClassName,i=Object(s.useProductDataContext)(),l=(r.product||i.product||{}).sku||"";return l?Object(o.createElement)("div",{className:u()(t,"wc-block-components-product-sku","".concat(n,"__product-sku"))},Object(a.__)("SKU:","woo-gutenberg-products-block")," ",Object(o.createElement)("strong",null,l)):null}},197:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(39),c=r(35),o=r(0),a=r(148),i=r(57),u=function(e){var t=e.namespace,r=e.resourceName,u=e.resourceValues,s=void 0===u?[]:u,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}),g=Object(i.a)(b),m=Object(i.a)(s),O=Object(a.a)(),j=Object(c.useSelect)((function(e){if(!d)return null;var c=e(n.COLLECTIONS_STORE_KEY),o=[t,r,g,m],a=c.getCollectionError.apply(c,o);return a&&O(a),{results:c.getCollection.apply(c,o),isLoading:!c.hasFinishedResolution("getCollection",o)}}),[t,r,m,g,d]);return null!==j&&(f.current=j),f.current}},198:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(23),a=r.n(o),i=r(0),u=(r(2),r(7)),s=r.n(u),l=r(1),b=r(11),p=r.n(b),d=r(35),f=r(129),g=r(39),m=r(33),O=r(105),j=function(e,t){var r=e.find((function(e){return e.id===t}));return r?r.quantity:0},v=r(485),h=r(40),w=(r(484),function(e){var t=e.product,r=Object(i.useRef)(!0),n=t.id,o=t.permalink,a=t.add_to_cart,u=t.has_options,b=t.is_purchasable,h=t.is_in_stock,w=function(e){var t=Object(d.useDispatch)(g.CART_STORE_KEY).addItemToCart,r=Object(f.a)(),n=r.cartItems,c=r.cartIsLoading,o=Object(O.a)(),a=o.addErrorNotice,u=o.removeNotice,s=Object(i.useState)(!1),l=p()(s,2),b=l[0],v=l[1],h=Object(i.useRef)(j(n,e));return Object(i.useEffect)((function(){var t=j(n,e);t!==h.current&&(h.current=t)}),[n,e]),{cartQuantity:h.current,addingToCart:b,cartIsLoading:c,addToCart:function(){v(!0),t(e).then((function(e){!0===e&&u("add-to-cart")})).catch((function(e){a(Object(m.decodeEntities)(e.message),{context:"wc/all-products",id:"add-to-cart",isDismissible:!0})})).finally((function(){v(!1)}))}}}(n),y=w.cartQuantity,_=w.addingToCart,E=w.addToCart;Object(i.useEffect)((function(){r.current?r.current=!1:Object(v.a)()}),[y]);var k=Number.isFinite(y)&&y>0,P=!u&&b&&h,C=Object(m.decodeEntities)((null==a?void 0:a.description)||""),S=k?Object(l.sprintf)(Object(l._n)("%d in cart","%d in cart",y,"woo-gutenberg-products-block"),y):Object(m.decodeEntities)((null==a?void 0:a.text)||Object(l.__)("Add to cart","woo-gutenberg-products-block")),N=P?"button":"a",x={};return P?x.onClick=E:(x.href=o,x.rel="nofollow"),Object(i.createElement)(N,c()({"aria-label":C,className:s()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button",{loading:_,added:k}),disabled:_},x),S)}),y=function(){return Object(i.createElement)("button",{className:s()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button","wc-block-components-product-button__button--placeholder"),disabled:!0})};t.a=function(e){var t=e.className,r=a()(e,["className"]),n=Object(h.useInnerBlockLayoutContext)().parentClassName,c=Object(h.useProductDataContext)(),o=r.product||c.product;return Object(i.createElement)("div",{className:s()(t,"wp-block-button","wc-block-components-product-button","".concat(n,"__product-add-to-cart"))},o?Object(i.createElement)(w,{product:o}):Object(i.createElement)(y,null))}},202: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(35),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,u=void 0===i?{}:i,s={isEditor:!0,currentPostId:Object(c.useSelect)((function(e){return a||e("core/editor").getCurrentPostId()}),[a]),previewData:u};return Object(n.createElement)(o.Provider,{value:s},t)}},204:function(e,t,r){"use strict";r.d(t,"b",(function(){return _})),r.d(t,"a",(function(){return E}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),u=(r(2),r(35)),s=r(10),l=r.n(s),b=r(7),p=r.n(b),d=r(881),f=(r(279),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""}),g=function(e){var t=e.className,r=e.notices,n=_().removeNotice,c=p()(t,"wc-block-components-notices"),o=r.filter((function(e){return"snackbar"!==e.type}));return o.length?Object(i.createElement)("div",{className:c},o.map((function(e){return Object(i.createElement)(d.a,l()({key:"store-notice-"+e.id},e,{className:p()("wc-block-components-notices__notice","woocommerce-message",f(e)),onRemove:function(){e.isDismissible&&n(e.id)}}),e.content)}))):null},m=r(885),O=r(105),j=r(202),v=function(){var e=Object(j.b)().isEditor,t=Object(O.a)(),r=t.notices,n=t.removeNotice,c=r.filter((function(e){return"snackbar"===e.type}));return e?null:Object(i.createElement)(m.a,{notices:c,className:"wc-block-notices__snackbar",onRemove:n})};function h(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 w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=Object(i.createContext)({notices:[],createNotice:function(e,t,r){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),_=function(){return Object(i.useContext)(y)},E=function(e){var t=e.children,r=e.className,n=void 0===r?"":r,c=e.createNoticeContainer,o=void 0===c||c,s=e.context,l=void 0===s?"wc/core":s,b=Object(u.useDispatch)("core/notices"),p=b.createNotice,d=b.removeNotice,f=Object(i.useState)(!1),m=a()(f,2),O=m[0],j=m[1],h=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]:{};p(e,t,w(w({},r),{},{context:r.context||l}))}),[p,l]),_=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;d(e,t)}),[d,l]),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]:{};h("default",e,w(w({},t),{},{type:"snackbar"}))}),[h]),k={notices:Object(u.useSelect)((function(e){return{notices:e("core/notices").getNotices(l)}}),[l]).notices,createNotice:h,createSnackbarNotice:E,removeNotice:_,context:l,setIsSuppressed:j},P=O?null:Object(i.createElement)(g,{className:n,notices:k.notices}),C=O?null:Object(i.createElement)(v,null);return Object(i.createElement)(y.Provider,{value:k},o&&P,t,C)}},221:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(23),a=r.n(o),i=r(0),u=r(63),s=r(7),l=r.n(s),b=function(e){var t=e.className,r=e.size,n=a()(e,["className","size"]),o=l()("dashicon","dashicons-arrow-down-alt2",t);return Object(i.createElement)(u.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:o,width:r,height:r},n),Object(i.createElement)("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},p=function(e){var t=e.className,r=e.size,n=a()(e,["className","size"]),o=l()("dashicon","dashicons-arrow-down-alt2",t);return Object(i.createElement)(u.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:o,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"}))};t.a=({icon:e,size:t=20,className:r,...n})=>{let c=()=>null;switch(e){case"arrow-down-alt2":c=b;break;case"no-alt":c=p}return Object(i.createElement)(c,{size:t,className:r,...n})}},24:function(e,t){!function(){e.exports=this.wp.blockEditor}()},248:function(e,t){!function(){e.exports=this.wp.deprecated}()},249:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(58),a=r(160),i=r(3),u=r(24);t.a=function(e){var t=e.productId;return Object(n.createElement)(u.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"))))}},25:function(e,t){!function(){e.exports=this.wp.compose}()},250:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(20),a=r.n(o),i=r(26),u=r.n(i),s=r(19),l=r.n(s),b=r(21),p=r.n(b),d=r(22),f=r.n(d),g=r(12),m=r.n(g),O=r(8),j=r.n(O),v=r(0),h=r(9);r(489);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m()(e);if(t){var c=m()(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=w(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 u()(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}},3:function(e,t){!function(){e.exports=this.wc.wcSettings}()},33:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},35:function(e,t){!function(){e.exports=this.wp.data}()},39:function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t){!function(){e.exports=this.wc.wcSharedContext}()},44: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),u=r.n(i);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 l(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 b=function(e){var t,r=e.label,n=e.screenReaderLabel,c=e.wrapperElement,i=e.wrapperProps,s=null!=r,b=null!=n;return!s&&b?(t=c||"span",i=l(l({},i),{},{className:u()(i.className,"screen-reader-text")}),Object(o.createElement)(t,i,n)):(t=c||a.Fragment,s&&b&&r!==n?Object(o.createElement)(t,i,Object(o.createElement)("span",{"aria-hidden":"true"},r),Object(o.createElement)("span",{className:"screen-reader-text"},n)):Object(o.createElement)(t,i,r))};b.defaultProps={wrapperProps:{}},t.a=b},48:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},480:function(e,t,r){"use strict";var n=r(0),c=r(63),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},485:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=window.Event||null,c=function(){if("function"==typeof n){var e=new n("wc_fragment_refresh",{bubbles:!0,cancelable:!0});document.body.dispatchEvent(e)}else{var t=document.createEvent("Event");t.initEvent("wc_fragment_refresh",!0,!0),document.body.dispatchEvent(t)}}},488: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,r.current]),r.current}},5:function(e,t,r){"use strict";r.d(t,"k",(function(){return c})),r.d(t,"G",(function(){return o})),r.d(t,"M",(function(){return a})),r.d(t,"x",(function(){return i})),r.d(t,"z",(function(){return u})),r.d(t,"l",(function(){return s})),r.d(t,"y",(function(){return l})),r.d(t,"B",(function(){return b})),r.d(t,"n",(function(){return p})),r.d(t,"A",(function(){return d})),r.d(t,"m",(function(){return f})),r.d(t,"C",(function(){return g})),r.d(t,"t",(function(){return m})),r.d(t,"w",(function(){return O})),r.d(t,"q",(function(){return j})),r.d(t,"r",(function(){return v})),r.d(t,"s",(function(){return h})),r.d(t,"j",(function(){return w})),r.d(t,"I",(function(){return y})),r.d(t,"N",(function(){return _})),r.d(t,"p",(function(){return E})),r.d(t,"o",(function(){return k})),r.d(t,"F",(function(){return P})),r.d(t,"c",(function(){return C})),r.d(t,"u",(function(){return S})),r.d(t,"v",(function(){return N})),r.d(t,"Q",(function(){return D})),r.d(t,"H",(function(){return B})),r.d(t,"a",(function(){return L})),r.d(t,"K",(function(){return R})),r.d(t,"b",(function(){return T})),r.d(t,"J",(function(){return I})),r.d(t,"h",(function(){return V})),r.d(t,"L",(function(){return A})),r.d(t,"g",(function(){return H})),r.d(t,"i",(function(){return F})),r.d(t,"E",(function(){return U})),r.d(t,"D",(function(){return Y})),r.d(t,"P",(function(){return Q})),r.d(t,"O",(function(){return q})),r.d(t,"d",(function(){return K})),r.d(t,"e",(function(){return W})),r.d(t,"f",(function(){return G})),r.d(t,"R",(function(){return $})),r.d(t,"S",(function(){return X}));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),u=Object(n.getSetting)("min_columns",1),s=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),g=Object(n.getSetting)("placeholderImgSrc",""),m=(Object(n.getSetting)("thumbnail_size",300),Object(n.getSetting)("isLargeCatalog")),O=Object(n.getSetting)("limitTags"),j=Object(n.getSetting)("hasProducts",!0),v=Object(n.getSetting)("hasTags",!0),h=Object(n.getSetting)("homeUrl",""),w=Object(n.getSetting)("couponsEnabled",!0),y=Object(n.getSetting)("shippingEnabled",!0),_=Object(n.getSetting)("taxesEnabled",!0),E=Object(n.getSetting)("displayItemizedTaxes",!1),k=(Object(n.getSetting)("displayShopPricesIncludingTax",!1),Object(n.getSetting)("displayCartPricesIncludingTax",!1)),P=Object(n.getSetting)("productCount",0),C=Object(n.getSetting)("attributes",[]),S=Object(n.getSetting)("isShippingCalculatorEnabled",!0),N=Object(n.getSetting)("isShippingCostHidden",!1),x=Object(n.getSetting)("woocommerceBlocksPhase",1),D=Object(n.getSetting)("wcBlocksAssetUrl",""),B=Object(n.getSetting)("shippingCountries",{}),L=Object(n.getSetting)("allowedCountries",{}),R=Object(n.getSetting)("shippingStates",{}),T=Object(n.getSetting)("allowedStates",{}),I=Object(n.getSetting)("shippingMethodsExist",!1),V=Object(n.getSetting)("checkoutShowLoginReminder",!0),z={id:0,title:"",permalink:""},M=Object(n.getSetting)("storePages",{shop:z,cart:z,checkout:z,privacy:z,terms:z}),A=M.shop.permalink,H=M.checkout.id,F=M.checkout.permalink,U=M.privacy.permalink,Y=M.privacy.title,Q=M.terms.permalink,q=M.terms.title,K=M.cart.id,W=M.cart.permalink,G=Object(n.getSetting)("checkoutAllowsGuest",!1),J=(Object(n.getSetting)("checkoutAllowsSignup",!1),r(14)),$=function(e,t){if(x>2)return Object(J.registerBlockType)(e,t)},X=function(e,t){if(x>1)return Object(J.registerBlockType)(e,t)}},53:function(e,t){!function(){e.exports=this.wp.keycodes}()},55:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(23),u=r.n(i),s=r(0),l=r(152),b=r(7),p=r.n(b);r(246);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=u()(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",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}),g=o?function(e){var t=e.value*Math.pow(10,n.minorUnit);o(t)}:function(){};return Object(s.createElement)(l.a,c()({className:b},d,{value:i,onValueChange:g}))}},57:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),c=r(48),o=r.n(c),a=function(e){var t=Object(n.useRef)();return o()(e,t.current)||(t.current=e),t.current}},58:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(23),a=r.n(o),i=r(9);r(2);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}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?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}({width:n,height:n},o))}},6:function(e,t){!function(){e.exports=this.lodash}()},70:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(20),a=r.n(o),i=r(26),u=r.n(i),s=r(19),l=r.n(s),b=r(21),p=r.n(b),d=r(22),f=r.n(d),g=r(12),m=r.n(g),O=r(0),j=r(6),v=r(7),h=r.n(v),w=r(4),y=r(25);r(168);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 r,n=m()(e);if(t){var c=m()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return f()(this,r)}}var E=function(e){p()(r,e);var t=_(r);function r(){var e;return a()(this,r),(e=t.apply(this,arguments)).onClick=e.onClick.bind(l()(e)),e}return u()(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,u=r.help,s=r.options,l=r.value,b="inspector-toggle-button-control-".concat(a);return u&&(e=Object(j.isFunction)(u)?u(o):u),Object(O.createElement)(w.BaseControl,{id:b,help:e,className:h()("components-toggle-button-control",i)},Object(O.createElement)("label",{id:b+"__label",htmlFor:b,className:"components-toggle-button-control__label"},n),Object(O.createElement)(w.ButtonGroup,{"aria-labelledby":b+"__label"},s.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(O.createElement)(w.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}(O.Component);t.a=Object(y.withInstanceId)(E)},73:function(e,t){!function(){e.exports=this.wp.dom}()},75: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,u=e.setAttributes,s=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.z,i.x);u({columns:Object(o.isNaN)(t)?"":t})},min:i.z,max:i.x}),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.B,i.y);u({rows:Object(o.isNaN)(t)?"":t})},min:i.B,max:i.y}),Object(n.createElement)(a.ToggleControl,{label:Object(c.__)("Align Last Block","woo-gutenberg-products-block"),help:s?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:s,onChange:function(){return u({alignButtons:!s})}}))}},77:function(e,t){!function(){e.exports=this.wp.autop}()},770:function(e,t,r){"use strict";var n=r(0),c=r(63),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},775:function(e,t,r){"use strict";var n=r(0),c=r(63),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},776: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.Q+"img/pennant.jpg",thumbnail:c.Q+"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}]},777:function(e,t,r){"use strict";var n=r(0),c=r(63),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},783:function(e,t,r){"use strict";var n=r(0),c=r(63),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},784:function(e,t,r){},82:function(e,t){!function(){e.exports=this.wp.a11y}()},836: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),u=r(1),s=r(24),l=r(14),b=r(58),p=r(63),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(7),g=r.n(f),m=function(e){var t=e.attributes;return Object(i.createElement)("div",{className:g()("is-loading",t.className)})},O={category:"woocommerce",keywords:[Object(u.__)("WooCommerce","woo-gutenberg-products-block")],icon:{src:Object(i.createElement)(b.a,{srcElement:d}),foreground:"#96588a"},supports:{html:!1},parent:["woocommerce/all-products","woocommerce/single-product"],save:m,deprecated:[{save:function(){}}]},j=r(189),v=r(4),h=r(145),w=r(190);function y(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 _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var E={title:Object(u.__)("Product Title","woo-gutenberg-products-block"),description:Object(u.__)("Display the name of a product.","woo-gutenberg-products-block"),icon:{src:"heading",foreground:"#96588a"},attributes:j.a,edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.headingLevel,c=t.productLink;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(s.InspectorControls,null,Object(i.createElement)(v.PanelBody,{title:Object(u.__)("Content","woo-gutenberg-products-block")},Object(i.createElement)("p",null,Object(u.__)("Level","woo-gutenberg-products-block")),Object(i.createElement)(h.a,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:n,onChange:function(e){return r({headingLevel:e})}}),Object(i.createElement)(v.ToggleControl,{label:Object(u.__)("Link to Product Page","woo-gutenberg-products-block"),help:Object(u.__)("Links the image to the single product listing.","woo-gutenberg-products-block"),checked:c,onChange:function(){return r({productLink:!c})}}))),Object(i.createElement)(v.Disabled,null,Object(i.createElement)(w.a,t)))}};Object(l.registerBlockType)("woocommerce/product-title",_(_({},O),E));var k=r(480),P=r(191);function C(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?C(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var N={title:Object(u.__)("Product Price","woo-gutenberg-products-block"),description:Object(u.__)("Display the price of a product.","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:k.a}),foreground:"#96588a"},edit:function(e){var t=e.attributes;return Object(i.createElement)(P.a,t)}};Object(l.registerBlockType)("woocommerce/product-price",S(S({},O),N));var x=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"})),D=r(192),B=r(70),L=r(193);function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var I={title:Object(u.__)("Product Image","woo-gutenberg-products-block"),description:Object(u.__)("Display the main product image","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:x}),foreground:"#96588a"},attributes:D.a,edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.productLink,c=t.showSaleBadge,o=t.saleBadgeAlign;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(s.InspectorControls,null,Object(i.createElement)(v.PanelBody,{title:Object(u.__)("Content","woo-gutenberg-products-block")},Object(i.createElement)(v.ToggleControl,{label:Object(u.__)("Link to Product Page","woo-gutenberg-products-block"),help:Object(u.__)("Links the image to the single product listing.","woo-gutenberg-products-block"),checked:n,onChange:function(){return r({productLink:!n})}}),Object(i.createElement)(v.ToggleControl,{label:Object(u.__)("Show On-Sale Badge","woo-gutenberg-products-block"),help:Object(u.__)('Overlay a "sale" badge if the product is on-sale.',"woo-gutenberg-products-block"),checked:c,onChange:function(){return r({showSaleBadge:!c})}}),c&&Object(i.createElement)(B.a,{label:Object(u.__)("Sale Badge Alignment","woo-gutenberg-products-block"),value:o,options:[{label:Object(u.__)("Left","woo-gutenberg-products-block"),value:"left"},{label:Object(u.__)("Center","woo-gutenberg-products-block"),value:"center"},{label:Object(u.__)("Right","woo-gutenberg-products-block"),value:"right"}],onChange:function(e){return r({saleBadgeAlign:e})}}))),Object(i.createElement)(v.Disabled,null,Object(i.createElement)(L.a,t)))}};Object(l.registerBlockType)("woocommerce/product-image",T(T({},O),I));var V=r(775),z=r(194);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 A(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 H={title:Object(u.__)("Product Rating","woo-gutenberg-products-block"),description:Object(u.__)("Display the average rating of a product.","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:V.a}),foreground:"#96588a"},edit:function(e){var t=e.attributes;return Object(i.createElement)(z.a,t)}};Object(l.registerBlockType)("woocommerce/product-rating",A(A({},O),H));var F=r(783),U=r(198);function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var q={title:Object(u.__)("Add to Cart Button","woo-gutenberg-products-block"),description:Object(u.__)("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:Object(i.createElement)(b.a,{srcElement:F.a}),foreground:"#96588a"},edit:function(e){var t=e.attributes;return Object(i.createElement)(v.Disabled,null,Object(i.createElement)(U.a,t))}};Object(l.registerBlockType)("woocommerce/product-button",Q(Q({},O),q));var K=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"})),W=r(195);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 J(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 $={title:Object(u.__)("Product Summary","woo-gutenberg-products-block"),description:Object(u.__)("Display a short description about a product.","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:K}),foreground:"#96588a"},edit:function(e){var t=e.attributes;return Object(i.createElement)(W.a,t)}};Object(l.registerBlockType)("woocommerce/product-summary",J(J({},O),$));var X=r(770),Z=r(133);function ee(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 te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var re={title:Object(u.__)("On-Sale Badge","woo-gutenberg-products-block"),description:Object(u.__)("Displays an on-sale badge if the product is on-sale.","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:X.a}),foreground:"#96588a"},supports:{html:!1},edit:function(e){var t=e.attributes;return Object(i.createElement)(Z.a,t)}};Object(l.registerBlockType)("woocommerce/product-sale-badge",te(te({},O),re));var ne=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"#626262",d:"M2 6h2v12H2V6m3 0h1v12H5V6m2 0h3v12H7V6m4 0h1v12h-1V6m3 0h2v12h-2V6m3 0h3v12h-3V6m4 0h1v12h-1V6z"})),ce=r(249),oe=r(40),ae=r(196);function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(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){c()(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}var se={title:Object(u.__)("Product SKU","woo-gutenberg-products-block"),description:Object(u.__)("Display the SKU of a product.","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:ne}),foreground:"#96588a"},edit:function(e){var t=e.attributes,r=Object(oe.useProductDataContext)().product||{};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ce.a,{productId:r.id}),Object(i.createElement)(ae.a,t))}};Object(l.registerBlockType)("woocommerce/product-sku",ue(ue({},O),se));var le=r(11),be=r.n(le),pe=r(20),de=r.n(pe),fe=r(19),ge=r.n(fe),me=r(21),Oe=r.n(me),je=r(22),ve=r.n(je),he=r(12),we=r.n(he),ye=r(35),_e=r(25),Ee=(r(2),r(75)),ke=r(5),Pe=r(848),Ce=r(776),Se=r(3),Ne=r(160),xe=function(e,t){var r=t.className,n=t.contentVisibility;return g()(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})},De=function(e,t){return Object(i.createElement)(v.Placeholder,{className:"wc-block-products",icon:t,label:e},Object(i.createElement)("p",null,Object(u.__)("You haven't published any products to list here yet.","woo-gutenberg-products-block")),Object(i.createElement)(v.Button,{className:"wc-block-products__add-product-button",isDefault:!0,isLarge:!0,href:Se.adminUrl+"post-new.php?post_type=product"},Object(u.__)("Add new product","woo-gutenberg-products-block")+" ",Object(i.createElement)(b.a,{srcElement:Ne.a})),Object(i.createElement)(v.Button,{className:"wc-block-products__read_more_button",isTertiary:!0,href:"https://docs.woocommerce.com/document/managing-products/"},Object(u.__)("Learn more","woo-gutenberg-products-block")))},Be=function(e,t){return Object(i.createElement)(v.Placeholder,{className:"wc-block-products",icon:t,label:e},Object(u.__)("The content for this block is hidden due to block settings.","woo-gutenberg-products-block"))};function Le(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?Le(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Te=[["woocommerce/product-image"],["woocommerce/product-title"],["woocommerce/product-price"],["woocommerce/product-rating"],["woocommerce/product-button"]],Ie=function e(t){return t&&0!==t.length?t.map((function(t){return[t.name,Re(Re({},t.attributes),{},{product:void 0,children:t.innerBlocks.length>0?e(t.innerBlocks):[]})]})):[]};r(784);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 ze(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 Me=function(e,t){var r=e.contentVisibility;return Object(i.createElement)(v.ToggleControl,{label:Object(u.__)("Show Sorting Dropdown","woo-gutenberg-products-block"),checked:r.orderBy,onChange:function(){return t({contentVisibility:ze(ze({},r),{},{orderBy:!r.orderBy})})}})},Ae=function(e,t){return Object(i.createElement)(v.SelectControl,{label:Object(u.__)("Order Products By","woo-gutenberg-products-block"),value:e.orderby,options:[{label:Object(u.__)("Default sorting (menu order)","woo-gutenberg-products-block"),value:"menu_order"},{label:Object(u.__)("Popularity","woo-gutenberg-products-block"),value:"popularity"},{label:Object(u.__)("Average rating","woo-gutenberg-products-block"),value:"rating"},{label:Object(u.__)("Latest","woo-gutenberg-products-block"),value:"date"},{label:Object(u.__)("Price: low to high","woo-gutenberg-products-block"),value:"price"},{label:Object(u.__)("Price: high to low","woo-gutenberg-products-block"),value:"price-desc"}],onChange:function(e){return t({orderby:e})}})},He=r(26),Fe=r.n(He),Ue=r(9),Ye=r(54),Qe=r.n(Ye),qe=r(23),Ke=r.n(qe),We=r(6),Ge=r(44),Je=(r(787),function(e){var t=e.currentPage,r=e.displayFirstAndLastPages,n=e.displayNextAndPreviousArrows,c=e.pagesToDisplay,o=e.onPageChange,a=e.totalPages,s=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=s.minIndex,b=s.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 O=[];if(l&&b)for(var j=l;j<=b;j++)O.push(j);return Object(i.createElement)("div",{className:"wc-block-pagination"},Object(i.createElement)(Ge.a,{screenReaderLabel:Object(u.__)("Navigate to another page","woo-gutenberg-products-block")}),n&&Object(i.createElement)("button",{className:"wc-block-pagination-page",onClick:function(){return o(t-1)},title:Object(u.__)("Previous page","woo-gutenberg-products-block"),disabled:t<=1},Object(i.createElement)(Ge.a,{label:"<",screenReaderLabel:Object(u.__)("Previous page","woo-gutenberg-products-block")})),p&&Object(i.createElement)("button",{className:g()("wc-block-pagination-page",{"wc-block-pagination-page--active":1===t}),onClick:function(){return o(1)},disabled:1===t},Object(i.createElement)(Ge.a,{label:1,screenReaderLabel:Object(u.sprintf)(Object(u.__)("Page %d","woo-gutenberg-products-block"),1)})),f&&Object(i.createElement)("span",{className:"wc-block-pagination-ellipsis","aria-hidden":"true"},Object(u.__)("…","woo-gutenberg-products-block")),O.map((function(e){return Object(i.createElement)("button",{key:e,className:g()("wc-block-pagination-page",{"wc-block-pagination-page--active":t===e}),onClick:t===e?null:function(){return o(e)},disabled:t===e},Object(i.createElement)(Ge.a,{label:e,screenReaderLabel:Object(u.sprintf)(Object(u.__)("Page %d","woo-gutenberg-products-block"),e)}))})),m&&Object(i.createElement)("span",{className:"wc-block-pagination-ellipsis","aria-hidden":"true"},Object(u.__)("…","woo-gutenberg-products-block")),d&&Object(i.createElement)("button",{className:g()("wc-block-pagination-page",{"wc-block-pagination-page--active":t===a}),onClick:function(){return o(a)},disabled:t===a},Object(i.createElement)(Ge.a,{label:a,screenReaderLabel:Object(u.sprintf)(Object(u.__)("Page %d","woo-gutenberg-products-block"),a)})),n&&Object(i.createElement)("button",{className:"wc-block-pagination-page",onClick:function(){return o(t+1)},title:Object(u.__)("Next page","woo-gutenberg-products-block"),disabled:t>=a},Object(i.createElement)(Ge.a,{label:">",screenReaderLabel:Object(u.__)("Next page","woo-gutenberg-products-block")})))});Je.defaultProps={displayFirstAndLastPages:!0,displayNextAndPreviousArrows:!0,pagesToDisplay:3};var $e=Je,Xe=r(143),Ze=(r(786),function(e){var t=e.defaultValue,r=e.onChange,n=e.readOnly,c=e.value;return Object(i.createElement)(Xe.a,{className:"wc-block-product-sort-select",defaultValue:t,name:"orderby",onChange:r,options:[{key:"menu_order",label:Object(u.__)("Default sorting","woo-gutenberg-products-block")},{key:"popularity",label:Object(u.__)("Popularity","woo-gutenberg-products-block")},{key:"rating",label:Object(u.__)("Average rating","woo-gutenberg-products-block")},{key:"date",label:Object(u.__)("Latest","woo-gutenberg-products-block")},{key:"price",label:Object(u.__)("Price: low to high","woo-gutenberg-products-block")},{key:"price-desc",label:Object(u.__)("Price: high to low","woo-gutenberg-products-block")}],readOnly:n,screenReaderLabel:Object(u.__)("Order products by","woo-gutenberg-products-block"),value:c})}),et=r(182),tt=Object(et.a)((function(e){var t=e.product,r=e.attributes,n=e.instanceId,c=r.layoutConfig,o=Object(oe.useInnerBlockLayoutContext)(),u=o.parentClassName,s=o.parentName,l=0===Object.keys(t).length,b=g()("".concat(u,"__product"),{"is-loading":l,"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(Pe.a)(t);return n.map((function(n,u){var s=be()(n,2),l=s[0],b=s[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 g=r.id||0,m=["layout",l,u,c,g];return Object(i.createElement)(f,a()({key:m.join("_")},p,{children:d,product:r}))}))}}(s,t,c,n))})),rt=r(165),nt=r(197),ct=r(39),ot=r(57);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 ut=function(e){var t={namespace:"/wc/store",resourceName:"products"},r=Object(nt.a)(it(it({},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 u=Object(ot.a)(i),s=Object(ot.a)(o),l=Object(ye.useSelect)((function(t){var c=t(ct.COLLECTIONS_STORE_KEY),o=[e,r,n,u,s];return{value:c.getCollectionHeader.apply(c,o),isLoading:c.hasFinishedResolution("getCollectionHeader",o)}}),[e,r,n,s,u]),b=l.value,p=l.isLoading;return{value:b,isLoading:void 0===p||p}}("x-wp-total",it(it({},t),{},{query:e})).value;return{products:n,totalProducts:parseInt(o,10),productsLoading:c}},st=r(488),lt=r(250),bt=r(82),pt=(r(785),r(139)),dt=function(){var e=Object(oe.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:pt.a,size:100}),Object(i.createElement)("strong",{className:"".concat(e,"__no-products-title")},Object(u.__)("No products","woo-gutenberg-products-block")),Object(i.createElement)("p",{className:"".concat(e,"__no-products-description")},Object(u.__)("There are currently no products available to display.","woo-gutenberg-products-block")))},ft=r(777),gt=function(e){var t=e.resetCallback,r=void 0===t?function(){}:t,n=Object(oe.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:ft.a,size:100}),Object(i.createElement)("strong",{className:"".concat(n,"__no-products-title")},Object(u.__)("No products found","woo-gutenberg-products-block")),Object(i.createElement)("p",{className:"".concat(n,"__no-products-description")},Object(u.__)("We were unable to find any results based on your search.","woo-gutenberg-products-block")),Object(i.createElement)("button",{onClick:r},Object(u.__)("Reset Search","woo-gutenberg-products-block")))};function mt(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 Ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var jt=Object(lt.a)((function(e){var t=e.attributes,r=e.currentPage,n=e.onPageChange,c=e.onSortChange,o=e.sortValue,a=e.scrollToTop,s=Object(rt.c)(function(e){var t=e.sortValue,r=e.currentPage,n=e.attributes,c=n.columns,o=n.rows;return Ot(Ot({},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=be()(s,1)[0],b=ut(l),p=b.products,d=b.totalProducts,f=b.productsLoading,m=Object(oe.useInnerBlockLayoutContext)().parentClassName,O=function(e){e.order,e.orderby,e.page,e.per_page;return Ke()(e,["order","orderby","page","per_page"])}(l),j=Object(rt.b)("attributes",[]),v=be()(j,2),h=v[0],w=v[1],y=Object(rt.b)("min_price"),_=be()(y,2),E=_[0],k=_[1],P=Object(rt.b)("max_price"),C=be()(P,2),S=C[0],N=C[1],x=Object(st.a)({totalQuery:O,totalProducts:d},(function(e){var t=e.totalQuery,r=e.totalProducts,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=n.totalQuery;return!Object(We.isEqual)(t,c)&&Number.isFinite(r)})),D="object"===Qe()(x)&&Object(We.isEqual)(O,x.totalQuery);Object(i.useEffect)((function(){D||(n(1),x&&function(e){Number.isFinite(e)&&(0===e?Object(bt.speak)(Object(u.__)("No products found","woo-gutenberg-products-block")):Object(bt.speak)(Object(u.sprintf)(Object(u._n)("%d product found","%d products found",e,"woo-gutenberg-products-block"),e)))}(d))}),[l]);var B,L,R,T,I,V=t.contentVisibility,z=t.columns*t.rows,M=!Number.isFinite(d)&&D?Math.ceil(x.totalProducts/z):Math.ceil(d/z),A=p.length?p:Array.from({length:z}),H=0!==p.length||f,F=h.length>0||Number.isFinite(E)||Number.isFinite(S);return Object(i.createElement)("div",{className:(B=t.columns,L=t.rows,R=t.alignButtons,T=t.align,I=void 0!==T?"align"+T:"",g()(m,I,"has-"+B+"-columns",{"has-multiple-rows":L>1,"has-aligned-buttons":R}))},V.orderBy&&H&&Object(i.createElement)(Ze,{onChange:c,value:o}),!H&&F&&Object(i.createElement)(gt,{resetCallback:function(){w([]),k(null),N(null)}}),!H&&!F&&Object(i.createElement)(dt,null),H&&Object(i.createElement)("ul",{className:"".concat(m,"__products")},A.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)(tt,{key:e.id||r,attributes:t,product:e})}))),M>1&&Object(i.createElement)($e,{currentPage:r,onPageChange:function(e){a({focusableSelector:"a, button"}),n(e)},totalPages:M}))})),vt=function(e){var t=e.attributes,r=Object(i.useState)(1),n=be()(r,2),c=n[0],o=n[1],a=Object(i.useState)(t.orderby),u=be()(a,2),s=u[0],l=u[1];Object(i.useEffect)((function(){l(t.orderby)}),[t.orderby]);return Object(i.createElement)(jt,{attributes:t,currentPage:c,onPageChange:function(e){o(e)},onSortChange:function(e){var t=e.target.value;l(t),o(1)},sortValue:s})},ht=r(167);function wt(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=we()(e);if(t){var c=we()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return ve()(this,r)}}var yt=function(e){Oe()(r,e);var t=wt(r);function r(){return de()(this,r),t.apply(this,arguments)}return Fe()(r,[{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.urlParameterSuffix;return t.isPreview?ht.a:Object(i.createElement)(oe.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},Object(i.createElement)(vt,{attributes:t,urlParameterSuffix:r}))}}]),r}(Ue.Component);function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=we()(e);if(t){var c=we()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return ve()(this,r)}}var Et=function(e){Oe()(r,e);var t=_t(r);function r(){var e;de()(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()(ge()(e),"state",{isEditing:!1,innerBlocks:[]}),c()(ge()(e),"blockMap",Object(Pe.a)("woocommerce/all-products")),c()(ge()(e),"componentDidMount",(function(){var t=e.props.block;e.setState({innerBlocks:t.innerBlocks})})),c()(ge()(e),"getTitle",(function(){return Object(u.__)("All Products","woo-gutenberg-products-block")})),c()(ge()(e),"getIcon",(function(){return Object(i.createElement)(b.a,{srcElement:d})})),c()(ge()(e),"togglePreview",(function(){var t=e.props.debouncedSpeak;e.setState({isEditing:!e.state.isEditing}),e.state.isEditing||t(Object(u.__)("Showing All Products block preview.","woo-gutenberg-products-block"))})),c()(ge()(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)(s.InspectorControls,{key:"inspector"},Object(i.createElement)(v.PanelBody,{title:Object(u.__)("Layout Settings","woo-gutenberg-products-block"),initialOpen:!0},Object(i.createElement)(Ee.a,{columns:c,rows:o,alignButtons:a,setAttributes:n})),Object(i.createElement)(v.PanelBody,{title:Object(u.__)("Content Settings","woo-gutenberg-products-block")},Me(r,n),Ae(r,n)))})),c()(ge()(e),"getBlockControls",(function(){var t=e.state.isEditing;return Object(i.createElement)(s.BlockControls,null,Object(i.createElement)(v.Toolbar,{controls:[{icon:"edit",title:Object(u.__)("Edit","woo-gutenberg-products-block"),onClick:function(){return e.togglePreview()},isActive:t}]}))})),c()(ge()(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)(v.Placeholder,{icon:e.getIcon(),label:e.getTitle()},Object(u.__)("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)(v.Tip,null,Object(u.__)("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)(oe.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},Object(i.createElement)("div",{className:"wc-block-grid has-1-columns"},Object(i.createElement)("ul",{className:"wc-block-grid__products"},Object(i.createElement)("li",{className:"wc-block-grid__product"},Object(i.createElement)(oe.ProductDataContextProvider,{product:Ce.a[0]},Object(i.createElement)(s.InnerBlocks,t)))))),Object(i.createElement)("div",{className:"wc-block-all-products__actions"},Object(i.createElement)(v.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:Ie(r.innerBlocks)}),e.setState({innerBlocks:r.innerBlocks}),e.togglePreview()}},Object(u.__)("Done","woo-gutenberg-products-block")),Object(i.createElement)(v.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(u.__)("Cancel","woo-gutenberg-products-block")),Object(i.createElement)(v.IconButton,{className:"wc-block-all-products__reset-button",icon:Object(i.createElement)(b.a,{srcElement:d}),label:Object(u.__)("Reset layout to default","woo-gutenberg-products-block"),onClick:function(){var t=e.props,r=t.block,n=t.replaceInnerBlocks,c=[];Te.map((function(e){var t=be()(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(u.__)("Reset Layout","woo-gutenberg-products-block")))))})),c()(ge()(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)(v.Disabled,null,Object(i.createElement)(yt,{attributes:t})):Be(c,o)})),c()(ge()(e),"render",(function(){var t=e.props.attributes,r=e.state.isEditing,n=e.getTitle(),c=e.getIcon();return ke.q?Object(i.createElement)("div",{className:xe("wc-block-all-products",t)},e.getBlockControls(),e.getInspectorControls(),r?e.renderEditMode():e.renderViewMode()):De(n,c)})),e}return r}(i.Component),kt=Object(_e.compose)(v.withSpokenMessages,Object(ye.withSelect)((function(e,t){var r=t.clientId;return{block:(0,e("core/block-editor").getBlock)(r)}})),Object(ye.withDispatch)((function(e){return{replaceInnerBlocks:e("core/block-editor").replaceInnerBlocks}})))(Et),Pt={columns:ke.l,rows:ke.n,alignButtons:!1,contentVisibility:{orderBy:!0},orderby:"date",layoutConfig:Te,isPreview:!1};function Ct(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 St(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Nt={title:Object(u.__)("All Products","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:d}),foreground:"#96588a"},category:"woocommerce",keywords:[Object(u.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(u.__)("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:Pt,edit:function(e){return Object(i.createElement)(kt,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:xe("wc-block-all-products",t)},n),Object(i.createElement)(s.InnerBlocks.Content,null))}};Object(l.registerBlockType)("woocommerce/all-products",St(St({},Nt),{},{deprecated:[{attributes:Object.assign({},Nt.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:xe("wc-block-all-products",t)},r),Object(i.createElement)(s.InnerBlocks.Content,null))}}]}))},848:function(e,t,r){"use strict";r.d(t,"a",(function(){return k}));var n=r(8),c=r.n(n),o=r(130),a=r(198),i=r(25),u=r(10),s=r.n(u),l=r(0),b=function(e,t){var r=[];return Object.keys(e).forEach((function(n){if(void 0!==t[n])switch(e[n].type){case"boolean":r[n]="false"!==t[n];break;case"number":r[n]=parseInt(t[n],10);break;case"array":case"object":r[n]=JSON.parse(t[n]);break;default:r[n]=t[n]}else r[n]=e[n].default})),r},p=function(e){return function(t){return function(r){var n=b(e,r);return Object(l.createElement)(t,s()({},r,n))}}},d=r(193),f=r(192),g=Object(i.compose)(p(f.a))(d.a),m=r(191),O=r(194),j=r(133),v=r(195),h=r(190),w=r(189),y=Object(i.compose)(p(w.a))(h.a),_=r(196);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var k=function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({"woocommerce/product-price":m.a,"woocommerce/product-image":g,"woocommerce/product-title":y,"woocommerce/product-rating":O.a,"woocommerce/product-button":a.a,"woocommerce/product-summary":v.a,"woocommerce/product-sale-badge":j.a,"woocommerce/product-sku":_.a},Object(o.getRegisteredInnerBlocks)(e))}},9:function(e,t){!function(){e.exports=this.React}()},96: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}});
|
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],u=t[1],s=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 u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(l&&l(t);p.length;)p.shift()();return o.push.apply(o,s||[]),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 u=r[i];0!==c[u]&&(n=!1)}n&&(o.splice(t--,1),e=a(a.s=r[0]))}return e}var n={},c={5: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.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="";var i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],u=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var l=u;return o.push([836,2,0,1]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},105:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(8),c=r.n(n),o=r(204),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 u(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 s=function(){var e=Object(o.b)(),t=e.notices,r=e.createNotice,n=e.removeNotice,c=e.createSnackbarNotice,i=e.setIsSuppressed,s=Object(a.useRef)(t);Object(a.useEffect)((function(){s.current=t}),[t]);var l=Object(a.useMemo)((function(){return{hasNoticesOfType:function(e){return s.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;s.current.map((function(t){return null!==e&&t.status!==e||n(t.id),!0}))},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,u({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("error",e,u({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("warning",e,u({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("info",e,u({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r("success",e,u({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(e,t)}}}),[r,c]);return u(u(u({notices:t},l),b),{},{setIsSuppressed:i})}},107:function(e,t){!function(){e.exports=this.wp.wordcount}()},129:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(39),c=r(35),o=r(202),a=r(33),i=r(6),u={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(){}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(o.b)(),r=t.isEditor,s=t.previewData,l=(null==s?void 0:s.previewCart)||{},b=e.shouldSelect,p=Object(c.useSelect)((function(e,t){var c=t.dispatch;if(!b)return u;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),s=o.getCartData(),p=o.getCartErrors(),d=o.getCartTotals(),f=!o.hasFinishedResolution("getCartData"),g=o.areShippingRatesLoading(),m=c(n.CART_STORE_KEY).receiveCart,O=Object(i.mapValues)(s.shippingAddress,(function(e){return Object(a.decodeEntities)(e)}));return{cartCoupons:s.coupons,cartItems:s.items,cartItemsCount:s.itemsCount,cartItemsWeight:s.itemsWeight,cartNeedsPayment:s.needsPayment,cartNeedsShipping:s.needsShipping,cartItemErrors:s.errors,cartTotals:d,cartIsLoading:f,cartErrors:p,shippingAddress:O,shippingRates:s.shippingRates,shippingRatesLoading:g,hasShippingAddress:!!O.country,receiveCart:m}}),[b]);return p}},130:function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},133:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=(r(2),r(1)),i=r(7),u=r.n(i),s=r(44),l=r(40);r(481);t.a=function(e){var t=e.className,r=e.align,n=c()(e,["className","align"]),i=Object(l.useInnerBlockLayoutContext)().parentClassName,b=Object(l.useProductDataContext)(),p=n.product||b.product;if(!p||!p.on_sale)return null;var d="string"==typeof r?"wc-block-components-product-sale-badge--align".concat(r):"";return Object(o.createElement)("div",{className:u()("wc-block-components-product-sale-badge",t,d,"".concat(i,"__product-onsale"))},Object(o.createElement)(s.a,{label:Object(a.__)("Sale","woo-gutenberg-products-block"),screenReaderLabel:Object(a.__)("Product on sale","woo-gutenberg-products-block")}))}},139:function(e,t,r){"use strict";var n=r(0),c=r(63),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},14:function(e,t){!function(){e.exports=this.wp.blocks}()},143:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(7)),o=r.n(c),a=r(44),i=r(182);r(278);t.a=Object(i.a)((function(e){var t=e.className,r=e.instanceId,c=e.defaultValue,i=e.label,u=e.onChange,s=e.options,l=e.screenReaderLabel,b=e.readOnly,p=e.value,d="wc-block-sort-select__select-".concat(r);return Object(n.createElement)("div",{className:o()("wc-block-sort-select",t)},Object(n.createElement)(a.a,{label:i,screenReaderLabel:l,wrapperElement:"label",wrapperProps:{className:"wc-block-sort-select__label",htmlFor:d}}),Object(n.createElement)("select",{id:d,className:"wc-block-sort-select__select",defaultValue:c,onChange:u,readOnly:b,value:p},s.map((function(e){return Object(n.createElement)("option",{key:e.key,value:e.key},e.label)}))))}))},145:function(e,t,r){"use strict";var n=r(20),c=r.n(n),o=r(26),a=r.n(o),i=r(21),u=r.n(i),s=r(22),l=r.n(s),b=r(12),p=r.n(b),d=r(0),f=r(6),g=r(1),m=r(4);function O(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)(m.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(m.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){u()(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)(O,{level:e}),title:Object(g.sprintf)(Object(g.__)("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)(m.Toolbar,{isCollapsed:n,icon:Object(d.createElement)(O,{level:a}),controls:Object(f.range)(c,o).map((function(t){return e.createLevelControl(t,a,i)}))})}}]),r}(d.Component);t.a=v},146:function(e,t,r){"use strict";var n=r(0),c=r(107),o=r(77),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,"")},u=function(e,t){return e.replace(/[\s|\.\,]+$/i,"")+t},s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"…",n=i(e),c=n.split(" ").splice(0,t).join(" ");return Object(o.autop)(u(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]:"…",c=i(e),a=c.slice(0,t);if(r)return Object(o.autop)(u(a,n));var s=a.match(/([\s]+)/g),l=s?s.length:0,b=c.slice(0,t+l);return Object(o.autop)(u(b,n))};t.a=function(e){var t=e.source,r=e.maxLength,i=void 0===r?15:r,u=e.countType,b=void 0===u?"words":u,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 u=a(n),b=Object(c.count)(u,r);return b<=t?u:"words"===r?s(u,t):l(u,t,"characters_including_spaces"===r)}(t,i,b)}),[t,i,b]);return Object(n.createElement)(n.RawHTML,{className:d},f)}},148: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}))}}},15:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},160:function(e,t,r){"use strict";var n=r(0),c=r(63),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},165:function(e,t,r){"use strict";r.d(t,"a",(function(){return b})),r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return d}));var n=r(11),c=r.n(n),o=r(39),a=r(35),i=r(0),u=r(96),s=r(6),l=r(57),b=function(e){var t=Object(u.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])]},p=function(e,t,r){var n=Object(u.a)();r=r||n;var c=Object(a.useSelect)((function(n){return n(o.QUERY_STATE_STORE_KEY).getValueForQueryKey(r,e,t)}),[r,e]),s=Object(a.useDispatch)(o.QUERY_STATE_STORE_KEY).setQueryValue;return[c,Object(i.useCallback)((function(t){s(r,e,t)}),[r,e])]},d=function(e,t){var r=Object(u.a)(),n=b(t=t||r),o=c()(n,2),a=o[0],p=o[1],d=Object(l.a)(e),f=Object(i.useRef)(!1);return Object(i.useEffect)((function(){p(Object(s.assign)({},a,d)),f.current=!0}),[d]),f.current?[a,p]:[e,p]}},167: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.Q+"img/grid.svg",alt:"Grid Preview",width:"230",height:"250",style:{width:"100%"}})},187: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 g}));var n=r(8),c=r.n(n),o=r(54),a=r.n(o),i=r(3);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 s(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}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,u=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 u?u:""}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(s({},p),e)},g=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}},189:function(e,t,r){"use strict";t.a={headingLevel:{type:"number",default:2},productLink:{type:"boolean",default:!0}}},190:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),u=r(33),s=r(40);r(478);t.a=function(e){var t=e.className,r=e.headingLevel,n=void 0===r?2:r,a=e.productLink,l=void 0===a||a,b=c()(e,["className","headingLevel","productLink"]),p=Object(s.useInnerBlockLayoutContext)().parentClassName,d=Object(s.useProductDataContext)(),f=b.product||d.product,g="h".concat(n);if(!f)return Object(o.createElement)(g,{className:i()(t,"wc-block-components-product-title","".concat(p,"__product-title"))});var m=Object(u.decodeEntities)(f.name);return Object(o.createElement)(g,{className:i()(t,"wc-block-components-product-title","".concat(p,"__product-title"))},l?Object(o.createElement)("a",{href:f.permalink,rel:"nofollow"},m):m)}},191:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),u=r(55),s=r(187),l=r(40),b=(r(479),function(e){return e.price_range&&e.price_range.min_amount&&e.price_range.max_amount}),p=function(e){var t=e.currency,r=e.minAmount,n=e.maxAmount,c=Object(l.useInnerBlockLayoutContext)().parentClassName;return Object(o.createElement)("span",{className:i()("wc-block-components-product-price__value","".concat(c,"__product-price__value"))},Object(o.createElement)(u.a,{currency:t,value:r})," — ",Object(o.createElement)(u.a,{currency:t,value:n}))},d=function(e){var t=e.currency,r=e.price,n=e.regularPrice,c=Object(l.useInnerBlockLayoutContext)().parentClassName;return Object(o.createElement)(o.Fragment,null,n!==r&&Object(o.createElement)("del",{className:i()("wc-block-components-product-price__regular","".concat(c,"__product-price__regular"))},Object(o.createElement)(u.a,{currency:t,value:n})),Object(o.createElement)("span",{className:i()("wc-block-components-product-price__value","".concat(c,"__product-price__value"))},Object(o.createElement)(u.a,{currency:t,value:r})))};t.a=function(e){var t=e.className,r=c()(e,["className"]),n=Object(l.useInnerBlockLayoutContext)().parentClassName,a=Object(l.useProductDataContext)(),u=r.product||a.product;if(!u)return Object(o.createElement)("div",{className:i()(t,"price","wc-block-components-product-price","".concat(n,"__product-price"))});var f=u.prices||{},g=Object(s.c)(f);return Object(o.createElement)("div",{className:i()(t,"price","wc-block-components-product-price","".concat(n,"__product-price"))},b(f)?Object(o.createElement)(p,{currency:g,minAmount:f.price_range.min_amount,maxAmount:f.price_range.max_amount}):Object(o.createElement)(d,{currency:g,price:f.price,regularPrice:f.regular_price}))}},192:function(e,t,r){"use strict";t.a={productLink:{type:"boolean",default:!0},showSaleBadge:{type:"boolean",default:!0},saleBadgeAlign:{type:"string",default:"right"}}},193:function(e,t,r){"use strict";var n=r(11),c=r.n(n),o=r(23),a=r.n(o),i=r(0),u=(r(2),r(7)),s=r.n(u),l=r(5),b=r(40),p=r(133),d=(r(482),function(){return Object(i.createElement)("img",{src:l.C,alt:""})}),f=function(e){var t=e.image,r=e.onLoad,n=e.loaded,c=t||{},o=c.thumbnail,a=c.srcset,u=c.sizes,s=c.alt;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("img",{src:o,srcSet:a,sizes:u,alt:s,onLoad:r,hidden:!n}),!n&&Object(i.createElement)(d,null))};t.a=function(e){var t=e.className,r=e.productLink,n=void 0===r||r,o=e.showSaleBadge,u=e.saleBadgeAlign,l=void 0===u?"right":u,g=a()(e,["className","productLink","showSaleBadge","saleBadgeAlign"]),m=Object(b.useInnerBlockLayoutContext)().parentClassName,O=Object(b.useProductDataContext)(),j=g.product||O.product,v=Object(i.useState)(!1),h=c()(v,2),w=h[0],y=h[1];if(!j)return Object(i.createElement)("div",{className:s()(t,"wc-block-components-product-image","wc-block-components-product-image--placeholder","".concat(m,"__product-image"))},Object(i.createElement)(d,null));var _=(null==j?void 0:j.images)&&j.images.length?j.images[0]:null;return Object(i.createElement)("div",{className:s()(t,"wc-block-components-product-image","".concat(m,"__product-image"))},n?Object(i.createElement)("a",{href:j.permalink,rel:"nofollow"},!!o&&Object(i.createElement)(p.a,{align:l,product:j}),Object(i.createElement)(f,{image:_,onLoad:function(){return y(!0)},loaded:w})):Object(i.createElement)(i.Fragment,null,!!o&&Object(i.createElement)(p.a,{align:l,product:j}),Object(i.createElement)(f,{image:_,onLoad:function(){return y(!0)},loaded:w})))}},194:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=(r(2),r(1)),i=r(7),u=r.n(i),s=r(40),l=(r(483),function(e){var t=parseFloat((null==e?void 0:e.average_rating)||0);return Number.isFinite(t)&&t>0?t:0});t.a=function(e){var t=e.className,r=c()(e,["className"]),n=Object(s.useInnerBlockLayoutContext)().parentClassName,i=Object(s.useProductDataContext)(),b=r.product||i.product,p=l(b);if(!p)return null;var d={width:p/5*100+"%"},f=Object(a.sprintf)(Object(a.__)("Rated %f out of 5","woo-gutenberg-products-block"),p);return Object(o.createElement)("div",{className:u()(t,"star-rating","wc-block-components-product-rating","".concat(n,"__product-rating"))},Object(o.createElement)("div",{className:u()("wc-block-components-product-rating__stars","".concat(n,"__product-rating__stars")),role:"img","aria-label":f},Object(o.createElement)("span",{style:d},f)))}},195:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=(r(2),r(7)),i=r.n(a),u=r(146),s=r(3),l=r(40);r(486);t.a=function(e){var t=e.className,r=c()(e,["className"]),n=Object(l.useInnerBlockLayoutContext)().parentClassName,a=(Object(l.useProductDataContext)()||r).product;if(!a)return Object(o.createElement)("div",{className:i()(t,"wc-block-components-product-summary")});var b=a.short_description?a.short_description:a.description;if(!b)return null;var p=Object(s.getSetting)("wordCountType","words");return Object(o.createElement)(u.a,{className:i()(t,"wc-block-components-product-summary","".concat(n,"__product-summary")),source:b,maxLength:150,countType:p})}},196:function(e,t,r){"use strict";var n=r(23),c=r.n(n),o=r(0),a=r(1),i=(r(2),r(7)),u=r.n(i),s=r(40);r(487);t.a=function(e){var t=e.className,r=c()(e,["className"]),n=Object(s.useInnerBlockLayoutContext)().parentClassName,i=Object(s.useProductDataContext)(),l=(r.product||i.product||{}).sku||"";return l?Object(o.createElement)("div",{className:u()(t,"wc-block-components-product-sku","".concat(n,"__product-sku"))},Object(a.__)("SKU:","woo-gutenberg-products-block")," ",Object(o.createElement)("strong",null,l)):null}},197:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(39),c=r(35),o=r(0),a=r(148),i=r(57),u=function(e){var t=e.namespace,r=e.resourceName,u=e.resourceValues,s=void 0===u?[]:u,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}),g=Object(i.a)(b),m=Object(i.a)(s),O=Object(a.a)(),j=Object(c.useSelect)((function(e){if(!d)return null;var c=e(n.COLLECTIONS_STORE_KEY),o=[t,r,g,m],a=c.getCollectionError.apply(c,o);return a&&O(a),{results:c.getCollection.apply(c,o),isLoading:!c.hasFinishedResolution("getCollection",o)}}),[t,r,m,g,d]);return null!==j&&(f.current=j),f.current}},198:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(23),a=r.n(o),i=r(0),u=(r(2),r(7)),s=r.n(u),l=r(1),b=r(11),p=r.n(b),d=r(35),f=r(129),g=r(39),m=r(33),O=r(105),j=function(e,t){var r=e.find((function(e){return e.id===t}));return r?r.quantity:0},v=r(485),h=r(40),w=(r(484),function(e){var t=e.product,r=Object(i.useRef)(!0),n=t.id,o=t.permalink,a=t.add_to_cart,u=t.has_options,b=t.is_purchasable,h=t.is_in_stock,w=function(e){var t=Object(d.useDispatch)(g.CART_STORE_KEY).addItemToCart,r=Object(f.a)(),n=r.cartItems,c=r.cartIsLoading,o=Object(O.a)(),a=o.addErrorNotice,u=o.removeNotice,s=Object(i.useState)(!1),l=p()(s,2),b=l[0],v=l[1],h=Object(i.useRef)(j(n,e));return Object(i.useEffect)((function(){var t=j(n,e);t!==h.current&&(h.current=t)}),[n,e]),{cartQuantity:h.current,addingToCart:b,cartIsLoading:c,addToCart:function(){v(!0),t(e).then((function(e){!0===e&&u("add-to-cart")})).catch((function(e){a(Object(m.decodeEntities)(e.message),{context:"wc/all-products",id:"add-to-cart",isDismissible:!0})})).finally((function(){v(!1)}))}}}(n),y=w.cartQuantity,_=w.addingToCart,E=w.addToCart;Object(i.useEffect)((function(){r.current?r.current=!1:Object(v.a)()}),[y]);var k=Number.isFinite(y)&&y>0,P=!u&&b&&h,C=Object(m.decodeEntities)((null==a?void 0:a.description)||""),S=k?Object(l.sprintf)(Object(l._n)("%d in cart","%d in cart",y,"woo-gutenberg-products-block"),y):Object(m.decodeEntities)((null==a?void 0:a.text)||Object(l.__)("Add to cart","woo-gutenberg-products-block")),N=P?"button":"a",x={};return P?x.onClick=E:(x.href=o,x.rel="nofollow"),Object(i.createElement)(N,c()({"aria-label":C,className:s()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button",{loading:_,added:k}),disabled:_},x),S)}),y=function(){return Object(i.createElement)("button",{className:s()("wp-block-button__link","add_to_cart_button","wc-block-components-product-button__button","wc-block-components-product-button__button--placeholder"),disabled:!0})};t.a=function(e){var t=e.className,r=a()(e,["className"]),n=Object(h.useInnerBlockLayoutContext)().parentClassName,c=Object(h.useProductDataContext)(),o=r.product||c.product;return Object(i.createElement)("div",{className:s()(t,"wp-block-button","wc-block-components-product-button","".concat(n,"__product-add-to-cart"))},o?Object(i.createElement)(w,{product:o}):Object(i.createElement)(y,null))}},202: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(35),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,u=void 0===i?{}:i,s={isEditor:!0,currentPostId:Object(c.useSelect)((function(e){return a||e("core/editor").getCurrentPostId()}),[a]),previewData:u};return Object(n.createElement)(o.Provider,{value:s},t)}},204:function(e,t,r){"use strict";r.d(t,"b",(function(){return _})),r.d(t,"a",(function(){return E}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),u=(r(2),r(35)),s=r(10),l=r.n(s),b=r(7),p=r.n(b),d=r(881),f=(r(279),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""}),g=function(e){var t=e.className,r=e.notices,n=_().removeNotice,c=p()(t,"wc-block-components-notices"),o=r.filter((function(e){return"snackbar"!==e.type}));return o.length?Object(i.createElement)("div",{className:c},o.map((function(e){return Object(i.createElement)(d.a,l()({key:"store-notice-"+e.id},e,{className:p()("wc-block-components-notices__notice","woocommerce-message",f(e)),onRemove:function(){e.isDismissible&&n(e.id)}}),e.content)}))):null},m=r(885),O=r(105),j=r(202),v=function(){var e=Object(j.b)().isEditor,t=Object(O.a)(),r=t.notices,n=t.removeNotice,c=r.filter((function(e){return"snackbar"===e.type}));return e?null:Object(i.createElement)(m.a,{notices:c,className:"wc-block-notices__snackbar",onRemove:n})};function h(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 w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=Object(i.createContext)({notices:[],createNotice:function(e,t,r){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),_=function(){return Object(i.useContext)(y)},E=function(e){var t=e.children,r=e.className,n=void 0===r?"":r,c=e.createNoticeContainer,o=void 0===c||c,s=e.context,l=void 0===s?"wc/core":s,b=Object(u.useDispatch)("core/notices"),p=b.createNotice,d=b.removeNotice,f=Object(i.useState)(!1),m=a()(f,2),O=m[0],j=m[1],h=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]:{};p(e,t,w(w({},r),{},{context:r.context||l}))}),[p,l]),_=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;d(e,t)}),[d,l]),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]:{};h("default",e,w(w({},t),{},{type:"snackbar"}))}),[h]),k={notices:Object(u.useSelect)((function(e){return{notices:e("core/notices").getNotices(l)}}),[l]).notices,createNotice:h,createSnackbarNotice:E,removeNotice:_,context:l,setIsSuppressed:j},P=O?null:Object(i.createElement)(g,{className:n,notices:k.notices}),C=O?null:Object(i.createElement)(v,null);return Object(i.createElement)(y.Provider,{value:k},o&&P,t,C)}},221:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(23),a=r.n(o),i=r(0),u=r(63),s=r(7),l=r.n(s),b=function(e){var t=e.className,r=e.size,n=a()(e,["className","size"]),o=l()("dashicon","dashicons-arrow-down-alt2",t);return Object(i.createElement)(u.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:o,width:r,height:r},n),Object(i.createElement)("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},p=function(e){var t=e.className,r=e.size,n=a()(e,["className","size"]),o=l()("dashicon","dashicons-arrow-down-alt2",t);return Object(i.createElement)(u.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:o,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"}))};t.a=function(e){let t=function(){return null};switch(e.icon){case"arrow-down-alt2":t=b;break;case"no-alt":t=p}return Object(i.createElement)(t,{size:e.size||20,className:e.className})}},24:function(e,t){!function(){e.exports=this.wp.blockEditor}()},248:function(e,t){!function(){e.exports=this.wp.deprecated}()},249:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(58),a=r(160),i=r(3),u=r(24);t.a=function(e){var t=e.productId;return Object(n.createElement)(u.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"))))}},25:function(e,t){!function(){e.exports=this.wp.compose}()},250:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(20),a=r.n(o),i=r(26),u=r.n(i),s=r(19),l=r.n(s),b=r(21),p=r.n(b),d=r(22),f=r.n(d),g=r(12),m=r.n(g),O=r(8),j=r.n(O),v=r(0),h=r(9);r(489);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m()(e);if(t){var c=m()(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=w(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 u()(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}},3:function(e,t){!function(){e.exports=this.wc.wcSettings}()},33:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},35:function(e,t){!function(){e.exports=this.wp.data}()},39:function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t){!function(){e.exports=this.wc.wcSharedContext}()},44: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),u=r.n(i);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 l(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 b=function(e){var t,r=e.label,n=e.screenReaderLabel,c=e.wrapperElement,i=e.wrapperProps,s=null!=r,b=null!=n;return!s&&b?(t=c||"span",i=l(l({},i),{},{className:u()(i.className,"screen-reader-text")}),Object(o.createElement)(t,i,n)):(t=c||a.Fragment,s&&b&&r!==n?Object(o.createElement)(t,i,Object(o.createElement)("span",{"aria-hidden":"true"},r),Object(o.createElement)("span",{className:"screen-reader-text"},n)):Object(o.createElement)(t,i,r))};b.defaultProps={wrapperProps:{}},t.a=b},48:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},480:function(e,t,r){"use strict";var n=r(0),c=r(63),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},485:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=window.Event||null,c=function(){if("function"==typeof n){var e=new n("wc_fragment_refresh",{bubbles:!0,cancelable:!0});document.body.dispatchEvent(e)}else{var t=document.createEvent("Event");t.initEvent("wc_fragment_refresh",!0,!0),document.body.dispatchEvent(t)}}},488: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,r.current]),r.current}},5:function(e,t,r){"use strict";r.d(t,"k",(function(){return c})),r.d(t,"G",(function(){return o})),r.d(t,"M",(function(){return a})),r.d(t,"x",(function(){return i})),r.d(t,"z",(function(){return u})),r.d(t,"l",(function(){return s})),r.d(t,"y",(function(){return l})),r.d(t,"B",(function(){return b})),r.d(t,"n",(function(){return p})),r.d(t,"A",(function(){return d})),r.d(t,"m",(function(){return f})),r.d(t,"C",(function(){return g})),r.d(t,"t",(function(){return m})),r.d(t,"w",(function(){return O})),r.d(t,"q",(function(){return j})),r.d(t,"r",(function(){return v})),r.d(t,"s",(function(){return h})),r.d(t,"j",(function(){return w})),r.d(t,"I",(function(){return y})),r.d(t,"N",(function(){return _})),r.d(t,"p",(function(){return E})),r.d(t,"o",(function(){return k})),r.d(t,"F",(function(){return P})),r.d(t,"c",(function(){return C})),r.d(t,"u",(function(){return S})),r.d(t,"v",(function(){return N})),r.d(t,"Q",(function(){return D})),r.d(t,"H",(function(){return B})),r.d(t,"a",(function(){return L})),r.d(t,"K",(function(){return R})),r.d(t,"b",(function(){return T})),r.d(t,"J",(function(){return I})),r.d(t,"h",(function(){return V})),r.d(t,"L",(function(){return A})),r.d(t,"g",(function(){return H})),r.d(t,"i",(function(){return F})),r.d(t,"E",(function(){return U})),r.d(t,"D",(function(){return Y})),r.d(t,"P",(function(){return Q})),r.d(t,"O",(function(){return q})),r.d(t,"d",(function(){return K})),r.d(t,"e",(function(){return W})),r.d(t,"f",(function(){return G})),r.d(t,"R",(function(){return $})),r.d(t,"S",(function(){return X}));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),u=Object(n.getSetting)("min_columns",1),s=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),g=Object(n.getSetting)("placeholderImgSrc",""),m=(Object(n.getSetting)("thumbnail_size",300),Object(n.getSetting)("isLargeCatalog")),O=Object(n.getSetting)("limitTags"),j=Object(n.getSetting)("hasProducts",!0),v=Object(n.getSetting)("hasTags",!0),h=Object(n.getSetting)("homeUrl",""),w=Object(n.getSetting)("couponsEnabled",!0),y=Object(n.getSetting)("shippingEnabled",!0),_=Object(n.getSetting)("taxesEnabled",!0),E=Object(n.getSetting)("displayItemizedTaxes",!1),k=(Object(n.getSetting)("displayShopPricesIncludingTax",!1),Object(n.getSetting)("displayCartPricesIncludingTax",!1)),P=Object(n.getSetting)("productCount",0),C=Object(n.getSetting)("attributes",[]),S=Object(n.getSetting)("isShippingCalculatorEnabled",!0),N=Object(n.getSetting)("isShippingCostHidden",!1),x=Object(n.getSetting)("woocommerceBlocksPhase",1),D=Object(n.getSetting)("wcBlocksAssetUrl",""),B=Object(n.getSetting)("shippingCountries",{}),L=Object(n.getSetting)("allowedCountries",{}),R=Object(n.getSetting)("shippingStates",{}),T=Object(n.getSetting)("allowedStates",{}),I=Object(n.getSetting)("shippingMethodsExist",!1),V=Object(n.getSetting)("checkoutShowLoginReminder",!0),z={id:0,title:"",permalink:""},M=Object(n.getSetting)("storePages",{shop:z,cart:z,checkout:z,privacy:z,terms:z}),A=M.shop.permalink,H=M.checkout.id,F=M.checkout.permalink,U=M.privacy.permalink,Y=M.privacy.title,Q=M.terms.permalink,q=M.terms.title,K=M.cart.id,W=M.cart.permalink,G=Object(n.getSetting)("checkoutAllowsGuest",!1),J=(Object(n.getSetting)("checkoutAllowsSignup",!1),r(14)),$=function(e,t){if(x>2)return Object(J.registerBlockType)(e,t)},X=function(e,t){if(x>1)return Object(J.registerBlockType)(e,t)}},53:function(e,t){!function(){e.exports=this.wp.keycodes}()},55:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(23),u=r.n(i),s=r(0),l=r(152),b=r(7),p=r.n(b);r(246);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=u()(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",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}),g=o?function(e){var t=e.value*Math.pow(10,n.minorUnit);o(t)}:function(){};return Object(s.createElement)(l.a,c()({className:b},d,{value:i,onValueChange:g}))}},57:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),c=r(48),o=r.n(c),a=function(e){var t=Object(n.useRef)();return o()(e,t.current)||(t.current=e),t.current}},58:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(23),a=r.n(o),i=r(9);r(2);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}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?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}({width:n,height:n},o))}},6:function(e,t){!function(){e.exports=this.lodash}()},70:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(20),a=r.n(o),i=r(26),u=r.n(i),s=r(19),l=r.n(s),b=r(21),p=r.n(b),d=r(22),f=r.n(d),g=r(12),m=r.n(g),O=r(0),j=r(6),v=r(7),h=r.n(v),w=r(4),y=r(25);r(168);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 r,n=m()(e);if(t){var c=m()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return f()(this,r)}}var E=function(e){p()(r,e);var t=_(r);function r(){var e;return a()(this,r),(e=t.apply(this,arguments)).onClick=e.onClick.bind(l()(e)),e}return u()(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,u=r.help,s=r.options,l=r.value,b="inspector-toggle-button-control-".concat(a);return u&&(e=Object(j.isFunction)(u)?u(o):u),Object(O.createElement)(w.BaseControl,{id:b,help:e,className:h()("components-toggle-button-control",i)},Object(O.createElement)("label",{id:b+"__label",htmlFor:b,className:"components-toggle-button-control__label"},n),Object(O.createElement)(w.ButtonGroup,{"aria-labelledby":b+"__label"},s.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(O.createElement)(w.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}(O.Component);t.a=Object(y.withInstanceId)(E)},73:function(e,t){!function(){e.exports=this.wp.dom}()},75: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,u=e.setAttributes,s=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.z,i.x);u({columns:Object(o.isNaN)(t)?"":t})},min:i.z,max:i.x}),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.B,i.y);u({rows:Object(o.isNaN)(t)?"":t})},min:i.B,max:i.y}),Object(n.createElement)(a.ToggleControl,{label:Object(c.__)("Align Last Block","woo-gutenberg-products-block"),help:s?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:s,onChange:function(){return u({alignButtons:!s})}}))}},77:function(e,t){!function(){e.exports=this.wp.autop}()},770:function(e,t,r){"use strict";var n=r(0),c=r(63),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},775:function(e,t,r){"use strict";var n=r(0),c=r(63),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},776: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.Q+"img/pennant.jpg",thumbnail:c.Q+"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}]},777:function(e,t,r){"use strict";var n=r(0),c=r(63),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},783:function(e,t,r){"use strict";var n=r(0),c=r(63),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},784:function(e,t,r){},82:function(e,t){!function(){e.exports=this.wp.a11y}()},836: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),u=r(1),s=r(24),l=r(14),b=r(58),p=r(63),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(7),g=r.n(f),m=function(e){var t=e.attributes;return Object(i.createElement)("div",{className:g()("is-loading",t.className)})},O={category:"woocommerce",keywords:[Object(u.__)("WooCommerce","woo-gutenberg-products-block")],icon:{src:Object(i.createElement)(b.a,{srcElement:d}),foreground:"#96588a"},supports:{html:!1},parent:["woocommerce/all-products","woocommerce/single-product"],save:m,deprecated:[{save:function(){}}]},j=r(189),v=r(4),h=r(145),w=r(190);function y(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 _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var E={title:Object(u.__)("Product Title","woo-gutenberg-products-block"),description:Object(u.__)("Display the name of a product.","woo-gutenberg-products-block"),icon:{src:"heading",foreground:"#96588a"},attributes:j.a,edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.headingLevel,c=t.productLink;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(s.InspectorControls,null,Object(i.createElement)(v.PanelBody,{title:Object(u.__)("Content","woo-gutenberg-products-block")},Object(i.createElement)("p",null,Object(u.__)("Level","woo-gutenberg-products-block")),Object(i.createElement)(h.a,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:n,onChange:function(e){return r({headingLevel:e})}}),Object(i.createElement)(v.ToggleControl,{label:Object(u.__)("Link to Product Page","woo-gutenberg-products-block"),help:Object(u.__)("Links the image to the single product listing.","woo-gutenberg-products-block"),checked:c,onChange:function(){return r({productLink:!c})}}))),Object(i.createElement)(v.Disabled,null,Object(i.createElement)(w.a,t)))}};Object(l.registerBlockType)("woocommerce/product-title",_(_({},O),E));var k=r(480),P=r(191);function C(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?C(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var N={title:Object(u.__)("Product Price","woo-gutenberg-products-block"),description:Object(u.__)("Display the price of a product.","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:k.a}),foreground:"#96588a"},edit:function(e){var t=e.attributes;return Object(i.createElement)(P.a,t)}};Object(l.registerBlockType)("woocommerce/product-price",S(S({},O),N));var x=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"})),D=r(192),B=r(70),L=r(193);function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var I={title:Object(u.__)("Product Image","woo-gutenberg-products-block"),description:Object(u.__)("Display the main product image","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:x}),foreground:"#96588a"},attributes:D.a,edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.productLink,c=t.showSaleBadge,o=t.saleBadgeAlign;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(s.InspectorControls,null,Object(i.createElement)(v.PanelBody,{title:Object(u.__)("Content","woo-gutenberg-products-block")},Object(i.createElement)(v.ToggleControl,{label:Object(u.__)("Link to Product Page","woo-gutenberg-products-block"),help:Object(u.__)("Links the image to the single product listing.","woo-gutenberg-products-block"),checked:n,onChange:function(){return r({productLink:!n})}}),Object(i.createElement)(v.ToggleControl,{label:Object(u.__)("Show On-Sale Badge","woo-gutenberg-products-block"),help:Object(u.__)('Overlay a "sale" badge if the product is on-sale.',"woo-gutenberg-products-block"),checked:c,onChange:function(){return r({showSaleBadge:!c})}}),c&&Object(i.createElement)(B.a,{label:Object(u.__)("Sale Badge Alignment","woo-gutenberg-products-block"),value:o,options:[{label:Object(u.__)("Left","woo-gutenberg-products-block"),value:"left"},{label:Object(u.__)("Center","woo-gutenberg-products-block"),value:"center"},{label:Object(u.__)("Right","woo-gutenberg-products-block"),value:"right"}],onChange:function(e){return r({saleBadgeAlign:e})}}))),Object(i.createElement)(v.Disabled,null,Object(i.createElement)(L.a,t)))}};Object(l.registerBlockType)("woocommerce/product-image",T(T({},O),I));var V=r(775),z=r(194);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 A(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 H={title:Object(u.__)("Product Rating","woo-gutenberg-products-block"),description:Object(u.__)("Display the average rating of a product.","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:V.a}),foreground:"#96588a"},edit:function(e){var t=e.attributes;return Object(i.createElement)(z.a,t)}};Object(l.registerBlockType)("woocommerce/product-rating",A(A({},O),H));var F=r(783),U=r(198);function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var q={title:Object(u.__)("Add to Cart Button","woo-gutenberg-products-block"),description:Object(u.__)("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:Object(i.createElement)(b.a,{srcElement:F.a}),foreground:"#96588a"},edit:function(e){var t=e.attributes;return Object(i.createElement)(v.Disabled,null,Object(i.createElement)(U.a,t))}};Object(l.registerBlockType)("woocommerce/product-button",Q(Q({},O),q));var K=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"})),W=r(195);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 J(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 $={title:Object(u.__)("Product Summary","woo-gutenberg-products-block"),description:Object(u.__)("Display a short description about a product.","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:K}),foreground:"#96588a"},edit:function(e){var t=e.attributes;return Object(i.createElement)(W.a,t)}};Object(l.registerBlockType)("woocommerce/product-summary",J(J({},O),$));var X=r(770),Z=r(133);function ee(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 te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var re={title:Object(u.__)("On-Sale Badge","woo-gutenberg-products-block"),description:Object(u.__)("Displays an on-sale badge if the product is on-sale.","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:X.a}),foreground:"#96588a"},supports:{html:!1},edit:function(e){var t=e.attributes;return Object(i.createElement)(Z.a,t)}};Object(l.registerBlockType)("woocommerce/product-sale-badge",te(te({},O),re));var ne=Object(i.createElement)(p.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)("path",{fill:"#626262",d:"M2 6h2v12H2V6m3 0h1v12H5V6m2 0h3v12H7V6m4 0h1v12h-1V6m3 0h2v12h-2V6m3 0h3v12h-3V6m4 0h1v12h-1V6z"})),ce=r(249),oe=r(40),ae=r(196);function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(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){c()(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}var se={title:Object(u.__)("Product SKU","woo-gutenberg-products-block"),description:Object(u.__)("Display the SKU of a product.","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:ne}),foreground:"#96588a"},edit:function(e){var t=e.attributes,r=Object(oe.useProductDataContext)().product||{};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ce.a,{productId:r.id}),Object(i.createElement)(ae.a,t))}};Object(l.registerBlockType)("woocommerce/product-sku",ue(ue({},O),se));var le=r(11),be=r.n(le),pe=r(20),de=r.n(pe),fe=r(19),ge=r.n(fe),me=r(21),Oe=r.n(me),je=r(22),ve=r.n(je),he=r(12),we=r.n(he),ye=r(35),_e=r(25),Ee=(r(2),r(75)),ke=r(5),Pe=r(848),Ce=r(776),Se=r(3),Ne=r(160),xe=function(e,t){var r=t.className,n=t.contentVisibility;return g()(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})},De=function(e,t){return Object(i.createElement)(v.Placeholder,{className:"wc-block-products",icon:t,label:e},Object(i.createElement)("p",null,Object(u.__)("You haven't published any products to list here yet.","woo-gutenberg-products-block")),Object(i.createElement)(v.Button,{className:"wc-block-products__add-product-button",isDefault:!0,isLarge:!0,href:Se.adminUrl+"post-new.php?post_type=product"},Object(u.__)("Add new product","woo-gutenberg-products-block")+" ",Object(i.createElement)(b.a,{srcElement:Ne.a})),Object(i.createElement)(v.Button,{className:"wc-block-products__read_more_button",isTertiary:!0,href:"https://docs.woocommerce.com/document/managing-products/"},Object(u.__)("Learn more","woo-gutenberg-products-block")))},Be=function(e,t){return Object(i.createElement)(v.Placeholder,{className:"wc-block-products",icon:t,label:e},Object(u.__)("The content for this block is hidden due to block settings.","woo-gutenberg-products-block"))};function Le(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?Le(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Te=[["woocommerce/product-image"],["woocommerce/product-title"],["woocommerce/product-price"],["woocommerce/product-rating"],["woocommerce/product-button"]],Ie=function e(t){return t&&0!==t.length?t.map((function(t){return[t.name,Re(Re({},t.attributes),{},{product:void 0,children:t.innerBlocks.length>0?e(t.innerBlocks):[]})]})):[]};r(784);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 ze(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 Me=function(e,t){var r=e.contentVisibility;return Object(i.createElement)(v.ToggleControl,{label:Object(u.__)("Show Sorting Dropdown","woo-gutenberg-products-block"),checked:r.orderBy,onChange:function(){return t({contentVisibility:ze(ze({},r),{},{orderBy:!r.orderBy})})}})},Ae=function(e,t){return Object(i.createElement)(v.SelectControl,{label:Object(u.__)("Order Products By","woo-gutenberg-products-block"),value:e.orderby,options:[{label:Object(u.__)("Default sorting (menu order)","woo-gutenberg-products-block"),value:"menu_order"},{label:Object(u.__)("Popularity","woo-gutenberg-products-block"),value:"popularity"},{label:Object(u.__)("Average rating","woo-gutenberg-products-block"),value:"rating"},{label:Object(u.__)("Latest","woo-gutenberg-products-block"),value:"date"},{label:Object(u.__)("Price: low to high","woo-gutenberg-products-block"),value:"price"},{label:Object(u.__)("Price: high to low","woo-gutenberg-products-block"),value:"price-desc"}],onChange:function(e){return t({orderby:e})}})},He=r(26),Fe=r.n(He),Ue=r(9),Ye=r(54),Qe=r.n(Ye),qe=r(23),Ke=r.n(qe),We=r(6),Ge=r(44),Je=(r(787),function(e){var t=e.currentPage,r=e.displayFirstAndLastPages,n=e.displayNextAndPreviousArrows,c=e.pagesToDisplay,o=e.onPageChange,a=e.totalPages,s=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=s.minIndex,b=s.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 O=[];if(l&&b)for(var j=l;j<=b;j++)O.push(j);return Object(i.createElement)("div",{className:"wc-block-pagination"},Object(i.createElement)(Ge.a,{screenReaderLabel:Object(u.__)("Navigate to another page","woo-gutenberg-products-block")}),n&&Object(i.createElement)("button",{className:"wc-block-pagination-page",onClick:function(){return o(t-1)},title:Object(u.__)("Previous page","woo-gutenberg-products-block"),disabled:t<=1},Object(i.createElement)(Ge.a,{label:"<",screenReaderLabel:Object(u.__)("Previous page","woo-gutenberg-products-block")})),p&&Object(i.createElement)("button",{className:g()("wc-block-pagination-page",{"wc-block-pagination-page--active":1===t}),onClick:function(){return o(1)},disabled:1===t},Object(i.createElement)(Ge.a,{label:1,screenReaderLabel:Object(u.sprintf)(Object(u.__)("Page %d","woo-gutenberg-products-block"),1)})),f&&Object(i.createElement)("span",{className:"wc-block-pagination-ellipsis","aria-hidden":"true"},Object(u.__)("…","woo-gutenberg-products-block")),O.map((function(e){return Object(i.createElement)("button",{key:e,className:g()("wc-block-pagination-page",{"wc-block-pagination-page--active":t===e}),onClick:t===e?null:function(){return o(e)},disabled:t===e},Object(i.createElement)(Ge.a,{label:e,screenReaderLabel:Object(u.sprintf)(Object(u.__)("Page %d","woo-gutenberg-products-block"),e)}))})),m&&Object(i.createElement)("span",{className:"wc-block-pagination-ellipsis","aria-hidden":"true"},Object(u.__)("…","woo-gutenberg-products-block")),d&&Object(i.createElement)("button",{className:g()("wc-block-pagination-page",{"wc-block-pagination-page--active":t===a}),onClick:function(){return o(a)},disabled:t===a},Object(i.createElement)(Ge.a,{label:a,screenReaderLabel:Object(u.sprintf)(Object(u.__)("Page %d","woo-gutenberg-products-block"),a)})),n&&Object(i.createElement)("button",{className:"wc-block-pagination-page",onClick:function(){return o(t+1)},title:Object(u.__)("Next page","woo-gutenberg-products-block"),disabled:t>=a},Object(i.createElement)(Ge.a,{label:">",screenReaderLabel:Object(u.__)("Next page","woo-gutenberg-products-block")})))});Je.defaultProps={displayFirstAndLastPages:!0,displayNextAndPreviousArrows:!0,pagesToDisplay:3};var $e=Je,Xe=r(143),Ze=(r(786),function(e){var t=e.defaultValue,r=e.onChange,n=e.readOnly,c=e.value;return Object(i.createElement)(Xe.a,{className:"wc-block-product-sort-select",defaultValue:t,name:"orderby",onChange:r,options:[{key:"menu_order",label:Object(u.__)("Default sorting","woo-gutenberg-products-block")},{key:"popularity",label:Object(u.__)("Popularity","woo-gutenberg-products-block")},{key:"rating",label:Object(u.__)("Average rating","woo-gutenberg-products-block")},{key:"date",label:Object(u.__)("Latest","woo-gutenberg-products-block")},{key:"price",label:Object(u.__)("Price: low to high","woo-gutenberg-products-block")},{key:"price-desc",label:Object(u.__)("Price: high to low","woo-gutenberg-products-block")}],readOnly:n,screenReaderLabel:Object(u.__)("Order products by","woo-gutenberg-products-block"),value:c})}),et=r(182),tt=Object(et.a)((function(e){var t=e.product,r=e.attributes,n=e.instanceId,c=r.layoutConfig,o=Object(oe.useInnerBlockLayoutContext)(),u=o.parentClassName,s=o.parentName,l=0===Object.keys(t).length,b=g()("".concat(u,"__product"),{"is-loading":l,"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(Pe.a)(t);return n.map((function(n,u){var s=be()(n,2),l=s[0],b=s[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 g=r.id||0,m=["layout",l,u,c,g];return Object(i.createElement)(f,a()({key:m.join("_")},p,{children:d,product:r}))}))}}(s,t,c,n))})),rt=r(165),nt=r(197),ct=r(39),ot=r(57);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 ut=function(e){var t={namespace:"/wc/store",resourceName:"products"},r=Object(nt.a)(it(it({},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 u=Object(ot.a)(i),s=Object(ot.a)(o),l=Object(ye.useSelect)((function(t){var c=t(ct.COLLECTIONS_STORE_KEY),o=[e,r,n,u,s];return{value:c.getCollectionHeader.apply(c,o),isLoading:c.hasFinishedResolution("getCollectionHeader",o)}}),[e,r,n,s,u]),b=l.value,p=l.isLoading;return{value:b,isLoading:void 0===p||p}}("x-wp-total",it(it({},t),{},{query:e})).value;return{products:n,totalProducts:parseInt(o,10),productsLoading:c}},st=r(488),lt=r(250),bt=r(82),pt=(r(785),r(139)),dt=function(){var e=Object(oe.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:pt.a,size:100}),Object(i.createElement)("strong",{className:"".concat(e,"__no-products-title")},Object(u.__)("No products","woo-gutenberg-products-block")),Object(i.createElement)("p",{className:"".concat(e,"__no-products-description")},Object(u.__)("There are currently no products available to display.","woo-gutenberg-products-block")))},ft=r(777),gt=function(e){var t=e.resetCallback,r=void 0===t?function(){}:t,n=Object(oe.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:ft.a,size:100}),Object(i.createElement)("strong",{className:"".concat(n,"__no-products-title")},Object(u.__)("No products found","woo-gutenberg-products-block")),Object(i.createElement)("p",{className:"".concat(n,"__no-products-description")},Object(u.__)("We were unable to find any results based on your search.","woo-gutenberg-products-block")),Object(i.createElement)("button",{onClick:r},Object(u.__)("Reset Search","woo-gutenberg-products-block")))};function mt(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 Ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var jt=Object(lt.a)((function(e){var t=e.attributes,r=e.currentPage,n=e.onPageChange,c=e.onSortChange,o=e.sortValue,a=e.scrollToTop,s=Object(rt.c)(function(e){var t=e.sortValue,r=e.currentPage,n=e.attributes,c=n.columns,o=n.rows;return Ot(Ot({},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=be()(s,1)[0],b=ut(l),p=b.products,d=b.totalProducts,f=b.productsLoading,m=Object(oe.useInnerBlockLayoutContext)().parentClassName,O=function(e){e.order,e.orderby,e.page,e.per_page;return Ke()(e,["order","orderby","page","per_page"])}(l),j=Object(rt.b)("attributes",[]),v=be()(j,2),h=v[0],w=v[1],y=Object(rt.b)("min_price"),_=be()(y,2),E=_[0],k=_[1],P=Object(rt.b)("max_price"),C=be()(P,2),S=C[0],N=C[1],x=Object(st.a)({totalQuery:O,totalProducts:d},(function(e){var t=e.totalQuery,r=e.totalProducts,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=n.totalQuery;return!Object(We.isEqual)(t,c)&&Number.isFinite(r)})),D="object"===Qe()(x)&&Object(We.isEqual)(O,x.totalQuery);Object(i.useEffect)((function(){D||(n(1),x&&function(e){Number.isFinite(e)&&(0===e?Object(bt.speak)(Object(u.__)("No products found","woo-gutenberg-products-block")):Object(bt.speak)(Object(u.sprintf)(Object(u._n)("%d product found","%d products found",e,"woo-gutenberg-products-block"),e)))}(d))}),[l]);var B,L,R,T,I,V=t.contentVisibility,z=t.columns*t.rows,M=!Number.isFinite(d)&&D?Math.ceil(x.totalProducts/z):Math.ceil(d/z),A=p.length?p:Array.from({length:z}),H=0!==p.length||f,F=h.length>0||Number.isFinite(E)||Number.isFinite(S);return Object(i.createElement)("div",{className:(B=t.columns,L=t.rows,R=t.alignButtons,T=t.align,I=void 0!==T?"align"+T:"",g()(m,I,"has-"+B+"-columns",{"has-multiple-rows":L>1,"has-aligned-buttons":R}))},V.orderBy&&H&&Object(i.createElement)(Ze,{onChange:c,value:o}),!H&&F&&Object(i.createElement)(gt,{resetCallback:function(){w([]),k(null),N(null)}}),!H&&!F&&Object(i.createElement)(dt,null),H&&Object(i.createElement)("ul",{className:"".concat(m,"__products")},A.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)(tt,{key:e.id||r,attributes:t,product:e})}))),M>1&&Object(i.createElement)($e,{currentPage:r,onPageChange:function(e){a({focusableSelector:"a, button"}),n(e)},totalPages:M}))})),vt=function(e){var t=e.attributes,r=Object(i.useState)(1),n=be()(r,2),c=n[0],o=n[1],a=Object(i.useState)(t.orderby),u=be()(a,2),s=u[0],l=u[1];Object(i.useEffect)((function(){l(t.orderby)}),[t.orderby]);return Object(i.createElement)(jt,{attributes:t,currentPage:c,onPageChange:function(e){o(e)},onSortChange:function(e){var t=e.target.value;l(t),o(1)},sortValue:s})},ht=r(167);function wt(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=we()(e);if(t){var c=we()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return ve()(this,r)}}var yt=function(e){Oe()(r,e);var t=wt(r);function r(){return de()(this,r),t.apply(this,arguments)}return Fe()(r,[{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.urlParameterSuffix;return t.isPreview?ht.a:Object(i.createElement)(oe.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},Object(i.createElement)(vt,{attributes:t,urlParameterSuffix:r}))}}]),r}(Ue.Component);function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=we()(e);if(t){var c=we()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return ve()(this,r)}}var Et=function(e){Oe()(r,e);var t=_t(r);function r(){var e;de()(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()(ge()(e),"state",{isEditing:!1,innerBlocks:[]}),c()(ge()(e),"blockMap",Object(Pe.a)("woocommerce/all-products")),c()(ge()(e),"componentDidMount",(function(){var t=e.props.block;e.setState({innerBlocks:t.innerBlocks})})),c()(ge()(e),"getTitle",(function(){return Object(u.__)("All Products","woo-gutenberg-products-block")})),c()(ge()(e),"getIcon",(function(){return Object(i.createElement)(b.a,{srcElement:d})})),c()(ge()(e),"togglePreview",(function(){var t=e.props.debouncedSpeak;e.setState({isEditing:!e.state.isEditing}),e.state.isEditing||t(Object(u.__)("Showing All Products block preview.","woo-gutenberg-products-block"))})),c()(ge()(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)(s.InspectorControls,{key:"inspector"},Object(i.createElement)(v.PanelBody,{title:Object(u.__)("Layout Settings","woo-gutenberg-products-block"),initialOpen:!0},Object(i.createElement)(Ee.a,{columns:c,rows:o,alignButtons:a,setAttributes:n})),Object(i.createElement)(v.PanelBody,{title:Object(u.__)("Content Settings","woo-gutenberg-products-block")},Me(r,n),Ae(r,n)))})),c()(ge()(e),"getBlockControls",(function(){var t=e.state.isEditing;return Object(i.createElement)(s.BlockControls,null,Object(i.createElement)(v.Toolbar,{controls:[{icon:"edit",title:Object(u.__)("Edit","woo-gutenberg-products-block"),onClick:function(){return e.togglePreview()},isActive:t}]}))})),c()(ge()(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)(v.Placeholder,{icon:e.getIcon(),label:e.getTitle()},Object(u.__)("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)(v.Tip,null,Object(u.__)("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)(oe.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},Object(i.createElement)("div",{className:"wc-block-grid has-1-columns"},Object(i.createElement)("ul",{className:"wc-block-grid__products"},Object(i.createElement)("li",{className:"wc-block-grid__product"},Object(i.createElement)(oe.ProductDataContextProvider,{product:Ce.a[0]},Object(i.createElement)(s.InnerBlocks,t)))))),Object(i.createElement)("div",{className:"wc-block-all-products__actions"},Object(i.createElement)(v.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:Ie(r.innerBlocks)}),e.setState({innerBlocks:r.innerBlocks}),e.togglePreview()}},Object(u.__)("Done","woo-gutenberg-products-block")),Object(i.createElement)(v.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(u.__)("Cancel","woo-gutenberg-products-block")),Object(i.createElement)(v.IconButton,{className:"wc-block-all-products__reset-button",icon:Object(i.createElement)(b.a,{srcElement:d}),label:Object(u.__)("Reset layout to default","woo-gutenberg-products-block"),onClick:function(){var t=e.props,r=t.block,n=t.replaceInnerBlocks,c=[];Te.map((function(e){var t=be()(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(u.__)("Reset Layout","woo-gutenberg-products-block")))))})),c()(ge()(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)(v.Disabled,null,Object(i.createElement)(yt,{attributes:t})):Be(c,o)})),c()(ge()(e),"render",(function(){var t=e.props.attributes,r=e.state.isEditing,n=e.getTitle(),c=e.getIcon();return ke.q?Object(i.createElement)("div",{className:xe("wc-block-all-products",t)},e.getBlockControls(),e.getInspectorControls(),r?e.renderEditMode():e.renderViewMode()):De(n,c)})),e}return r}(i.Component),kt=Object(_e.compose)(v.withSpokenMessages,Object(ye.withSelect)((function(e,t){var r=t.clientId;return{block:(0,e("core/block-editor").getBlock)(r)}})),Object(ye.withDispatch)((function(e){return{replaceInnerBlocks:e("core/block-editor").replaceInnerBlocks}})))(Et),Pt={columns:ke.l,rows:ke.n,alignButtons:!1,contentVisibility:{orderBy:!0},orderby:"date",layoutConfig:Te,isPreview:!1};function Ct(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 St(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Nt={title:Object(u.__)("All Products","woo-gutenberg-products-block"),icon:{src:Object(i.createElement)(b.a,{srcElement:d}),foreground:"#96588a"},category:"woocommerce",keywords:[Object(u.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(u.__)("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:Pt,edit:function(e){return Object(i.createElement)(kt,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:xe("wc-block-all-products",t)},n),Object(i.createElement)(s.InnerBlocks.Content,null))}};Object(l.registerBlockType)("woocommerce/all-products",St(St({},Nt),{},{deprecated:[{attributes:Object.assign({},Nt.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:xe("wc-block-all-products",t)},r),Object(i.createElement)(s.InnerBlocks.Content,null))}}]}))},848:function(e,t,r){"use strict";r.d(t,"a",(function(){return k}));var n=r(8),c=r.n(n),o=r(130),a=r(198),i=r(25),u=r(10),s=r.n(u),l=r(0),b=function(e,t){var r=[];return Object.keys(e).forEach((function(n){if(void 0!==t[n])switch(e[n].type){case"boolean":r[n]="false"!==t[n];break;case"number":r[n]=parseInt(t[n],10);break;case"array":case"object":r[n]=JSON.parse(t[n]);break;default:r[n]=t[n]}else r[n]=e[n].default})),r},p=function(e){return function(t){return function(r){var n=b(e,r);return Object(l.createElement)(t,s()({},r,n))}}},d=r(193),f=r(192),g=Object(i.compose)(p(f.a))(d.a),m=r(191),O=r(194),j=r(133),v=r(195),h=r(190),w=r(189),y=Object(i.compose)(p(w.a))(h.a),_=r(196);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var k=function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({"woocommerce/product-price":m.a,"woocommerce/product-image":g,"woocommerce/product-title":y,"woocommerce/product-rating":O.a,"woocommerce/product-button":a.a,"woocommerce/product-summary":v.a,"woocommerce/product-sale-badge":j.a,"woocommerce/product-sku":_.a},Object(o.getRegisteredInnerBlocks)(e))}},9:function(e,t){!function(){e.exports=this.React}()},96: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}});
|
build/cart-frontend.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', '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' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', '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' => '0dac461c3a8fe445238057a0282c6eb3');
|
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 a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var c=o.apply(null,r);c&&e.push(c)}else if("object"===a)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,n){e.exports=n(59)()},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,"i",(function(){return o})),n.d(t,"s",(function(){return a})),n.d(t,"w",(function(){return c})),n.d(t,"p",(function(){return i})),n.d(t,"l",(function(){return s})),n.d(t,"o",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"x",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"c",(function(){return b})),n.d(t,"m",(function(){return m})),n.d(t,"n",(function(){return g})),n.d(t,"A",(function(){return h})),n.d(t,"t",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"u",(function(){return O})),n.d(t,"b",(function(){return j})),n.d(t,"f",(function(){return w})),n.d(t,"v",(function(){return k})),n.d(t,"g",(function(){return S})),n.d(t,"r",(function(){return R})),n.d(t,"q",(function(){return P})),n.d(t,"z",(function(){return C})),n.d(t,"y",(function(){return x})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return I}));var r=n(2),o=Object(r.getSetting)("currentUserIsAdmin",!1),a=Object(r.getSetting)("reviewRatingsEnabled",!0),c=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)),f=Object(r.getSetting)("displayItemizedTaxes",!1),p=(Object(r.getSetting)("displayShopPricesIncludingTax",!1),Object(r.getSetting)("displayCartPricesIncludingTax",!1)),b=(Object(r.getSetting)("productCount",0),Object(r.getSetting)("attributes",[])),m=Object(r.getSetting)("isShippingCalculatorEnabled",!0),g=Object(r.getSetting)("isShippingCostHidden",!1),h=(Object(r.getSetting)("woocommerceBlocksPhase",1),Object(r.getSetting)("wcBlocksAssetUrl","")),v=Object(r.getSetting)("shippingCountries",{}),y=Object(r.getSetting)("allowedCountries",{}),O=Object(r.getSetting)("shippingStates",{}),j=Object(r.getSetting)("allowedStates",{}),w=(Object(r.getSetting)("shippingMethodsExist",!1),Object(r.getSetting)("checkoutShowLoginReminder",!0)),E={id:0,title:"",permalink:""},_=Object(r.getSetting)("storePages",{shop:E,cart:E,checkout:E,privacy:E,terms:E}),k=_.shop.permalink,S=(_.checkout.id,_.checkout.permalink),R=_.privacy.permalink,P=_.privacy.title,C=_.terms.permalink,x=_.terms.title,N=(_.cart.id,_.cart.permalink),I=Object(r.getSetting)("checkoutAllowsGuest",!1);Object(r.getSetting)("checkoutAllowsSignup",!1),n(39)},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(70),o=n(71),a=n(52),c=n(72);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||c()}},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(73);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},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"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){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){!function(){e.exports=this.regeneratorRuntime}()},,,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(45);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,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(51);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,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}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,n){"use strict";var r=n(6),o=n.n(r),a=(n(5),n(3)),c=n(4),i=n.n(c);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}var l=function(e){var t,n=e.label,r=e.screenReaderLabel,o=e.wrapperElement,c=e.wrapperProps,s=null!=n,l=null!=r;return!s&&l?(t=o||"span",c=u(u({},c),{},{className:i()(c.className,"screen-reader-text")}),React.createElement(t,c,r)):(t=o||a.Fragment,s&&l&&n!==r?React.createElement(t,c,React.createElement("span",{"aria-hidden":"true"},n),React.createElement("span",{className:"screen-reader-text"},r)):React.createElement(t,c,n))};l.defaultProps={wrapperProps:{}},t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(30);function o(e,t){if(null==e)return{};var n,o,a=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(6),c=n.n(a),i=n(14),s=n.n(i),u=n(3),l=n.n(u);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(){return(f=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 p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){}function h(){}h.resetWarningCache=g;var v=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:h,resetWarningCache:g};return n.PropTypes=n,n}()}));function y(){}function O(e){return!!(e||"").match(/\d/)}function j(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function w(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split("."),a=o[0],c=o[1]||"";return{beforeDecimal:a,afterDecimal:c,hasNagation:n,addNegation:r}}function E(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function _(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 k(e,t,n){return Math.min(Math.max(e,t),n)}function S(e){return Math.max(e.selectionStart,e.selectionEnd)}var R={thousandSeparator:v.oneOfType([v.string,v.oneOf([!0])]),decimalSeparator:v.string,allowedDecimalSeparators:v.arrayOf(v.string),thousandsGroupStyle:v.oneOf(["thousand","lakh","wan"]),decimalScale:v.number,fixedDecimalScale:v.bool,displayType:v.oneOf(["input","text"]),prefix:v.string,suffix:v.string,format:v.oneOfType([v.string,v.func]),removeFormatting:v.func,mask:v.oneOfType([v.string,v.arrayOf(v.string)]),value:v.oneOfType([v.number,v.string]),defaultValue:v.oneOfType([v.number,v.string]),isNumericString:v.bool,customInput:v.elementType,allowNegative:v.bool,allowEmptyFormatting:v.bool,allowLeadingZeros:v.bool,onValueChange:v.func,onKeyDown:v.func,onMouseUp:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,type:v.oneOf(["text","tel","password"]),isAllowed:v.func,renderText:v.func,getInputRef:v.oneOfType([v.func,v.shape({current:v.any})])},P={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:y,onChange:y,onKeyDown:y,onMouseUp:y,onFocus:y,onBlur:y,isAllowed:function(){return!0}},C=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=p(t).call(this,e))||"object"!=typeof o&&"function"!=typeof o?m(r):o;var a=e.defaultValue;n.validateProps();var c=n.formatValueProp(a);return n.state={value:c,numAsString:n.removeFormatting(c)},n.selectionBeforeInput={selectionStart:0,selectionEnd:0},n.onChange=n.onChange.bind(m(n)),n.onKeyDown=n.onKeyDown.bind(m(n)),n.onMouseUp=n.onMouseUp.bind(m(n)),n.onFocus=n.onFocus.bind(m(n)),n.onBlur=n.onBlur.bind(m(n)),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(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,a=n.numAsString,c=void 0===a?"":a;if(e!==t){this.validateProps();var i=this.formatNumString(c),s=void 0===t.value?i:this.formatValueProp(),u=this.removeFormatting(s),l=parseFloat(u),d=parseFloat(c);(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),a="-"===e[0];a&&(e=e.replace("-","")),r&&0===t&&(e=e.split(r)[0]);var c=(e=(e.match(o)||[]).join("").replace(r,".")).indexOf(".");return-1!==c&&(e="".concat(e.substring(0,c),".").concat(e.substring(c+1,e.length).replace(new RegExp(j(r),"g"),""))),a&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var n=this.props,r=n.format,o=n.decimalScale,a=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!a||0===o||t||r?"":"|"+j(a)),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){_(e,t),setTimeout((function(){e.value===n&&_(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,n){var r=this.props,o=r.prefix,a=r.suffix,c=r.format;if(""===e)return 0;if(t=k(t,0,e.length),!c){var i="-"===e[0];return k(t,o.length+(i?1:0),e.length-a.length)}if("function"==typeof c)return t;if("#"===c[t]&&O(e[t]))return t;if("#"===c[t-1]&&O(e[t-1]))return t;var s=c.indexOf("#");t=k(t,s,c.lastIndexOf("#")+1);for(var u=c.substring(t,c.length).indexOf("#"),l=t,d=t+(-1===u?0:u);l>s&&("#"!==c[l]||!O(e[l]));)l-=1;return!O(e[d])||"left"===n&&t!==s||t-l<d-t?O(e[l])?l+1:l:d}},{key:"getCaretPosition",value:function(e,t,n){var r,o,a=this.props.format,c=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 a||c||(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 a="-"===e[0];a&&(e=e.substring(1,e.length));var c=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==c&&c===e.length-o.length?e.substring(0,c):e,a&&(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,a=t.length;o<=a;o++){var c=t[o]||"",i=o===a?e.length:e.indexOf(c,n);if(-1===i){r=e;break}r+=e.substring(n,i),n=i+c.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,a=t.length;o<a;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,a=t.suffix,c=t.allowNegative,i=t.thousandsGroupStyle,s=this.getSeparators(),u=s.thousandSeparator,l=s.decimalSeparator,d=-1!==e.indexOf(".")||n&&r,f=w(e,c),p=f.beforeDecimal,b=f.afterDecimal,m=f.addNegation;return void 0!==n&&(b=E(b,n,r)),u&&(p=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)}(p,u,i)),o&&(p=o+p),a&&(b+=a),m&&(p="-"+p),e=p+(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,a=t.allowEmptyFormatting,c=this.props,i=c.value,s=void 0===i?e:i,u=c.isNumericString,l=!s&&0!==s;return l&&a&&(s=""),l&&!a?"":("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=w(e),a=o.beforeDecimal,c=o.afterDecimal,i=o.hasNagation,s=parseFloat("0.".concat(c||"0")).toFixed(t).split("."),u=a.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=E(s[1]||"",Math.min(t,c.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),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&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,a=n.suffix,c=n.decimalScale,i=n.fixedDecimalScale,s=this.getSeparators().decimalSeparator;return"string"==typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-a.length||c&&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,a=r.allowNegative,c=r.prefix,i=r.suffix,s=r.decimalScale,u=this.getSeparators(),l=u.allowedDecimalSeparators,d=u.decimalSeparator,f=this.state.numAsString||"",p=this.selectionBeforeInput,b=p.selectionStart,m=p.selectionEnd,g=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),h=g.start,v=g.end;if(!o&&h===v&&-1!==l.indexOf(n[b])){var y=0===s?"":d;return n.substr(0,b)+y+n.substr(b+1,n.length)}var O=o?0:c.length,j=t.length-(o?0:i.length);if(n.length>t.length||!n.length||h===v||0===b&&m===t.length||b===O&&m===j)return n;if(this.checkIfFormatGotDeleted(h,v,t)&&(n=t),!o){var E=this.removeFormatting(n),_=w(E,a),k=_.beforeDecimal,S=_.afterDecimal,R=_.addNegation,P=e<n.indexOf(d)+1;if(E.length<f.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,a=e.numAsString,c=e.caretPos,i=this.props.onValueChange,s=this.state.value;if(n)if(o){if(!c){var u=e.inputValue||n.value,l=S(n);n.value=t,c=this.getCaretPosition(u,t,l)}this.setPatchedCaretPosition(n,c,t)}else n.value=t;void 0===a&&(a=this.removeFormatting(t)),t!==s&&(this.setState({value:t,numAsString:a}),i(this.getValueObject(t,a)))}},{key:"onChange",value:function(e){var t=e.target,n=t.value,r=this.state,o=this.props,a=o.isAllowed,c=r.value||"",i=S(t);n=this.correctInputValue(i,c,n);var s=this.formatInput(n)||"",u=this.removeFormatting(s);a(this.getValueObject(s,u))||(s=c),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,a=t.allowLeadingZeros,c=n.numAsString,i=n.value;if(this.focusedElm=null,this.focusTimeout&&clearTimeout(this.focusTimeout),!r){isNaN(parseFloat(c))&&(c=""),a||(c=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):"")}(c));var s=this.formatNumString(c);if(s!==i)return this.updateValue({formattedValue:s,numAsString:c,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,a=n.selectionEnd,c=n.value,i=void 0===c?"":c,s=this.props,u=s.decimalScale,l=s.fixedDecimalScale,d=s.prefix,f=s.suffix,p=s.format,b=s.onKeyDown,m=void 0!==u&&l,g=this.getNumberRegex(!1,m),h=new RegExp("-"),v="string"==typeof p;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:a},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===a){var y=t,O=v?p.indexOf("#"):d.length,j=v?p.lastIndexOf("#")+1:i.length-f.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===p){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,a=void 0===o?"":o;if(n===r){var c=this.correctCaretPosition(a,n);c!==n&&this.setPatchedCaretPosition(t,c,a)}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,a=n.value,c=void 0===a?"":a,i=t.correctCaretPosition(c,r);i===r||0===r&&o===c.length||t.setPatchedCaretPosition(n,i,c),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.type,a=r.displayType,c=r.customInput,i=r.renderText,s=r.getInputRef,u=this.state.value,d=(e=this.props,t=R,n={},Object.keys(e).forEach((function(r){t[r]||(n[r]=e[r])})),n),p=f({inputMode:"numeric"},d,{type:o,value:u,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===a)return i?i(u)||null:l.a.createElement("span",f({},d,{ref:s}),u);if(c){var b=c;return l.a.createElement(b,f({},p,{ref:s}))}return l.a.createElement("input",f({},p,{ref:s}))}}])&&d(n.prototype,r),o&&d(n,o),t}(l.a.Component);C.propTypes=R,C.defaultProps=P;var x=C,N=n(4),I=n.n(N);n(90);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 A(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}t.a=function(e){var t=e.className,n=e.value,r=e.currency,a=e.onValueChange,c=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 u=I()("wc-block-formatted-money-amount",t),l=A(A(A({displayType:"text"},c),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}),d=a?function(e){var t=e.value*Math.pow(10,r.minorUnit);a(t)}:function(){};return React.createElement(x,o()({className:u},l,{value:i,onValueChange:d}))}},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(58);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(20),o=n(19);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(46);var o=n(51);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n(37),a=n.n(o),c=function(e){var t=Object(r.useRef)();return a()(e,t.current)||(t.current=e),t.current}},function(e,t){!function(){e.exports=this.wp.blocks}()},,function(e,t,n){"use strict";n(5);var r=n(4),o=n.n(r),a=n(0),c=n(31);n(157);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-totals-table-item",t)},React.createElement("span",{className:"wc-block-totals-table-item__label"},r),Object(a.isValidElement)(i)?React.createElement("div",{className:"wc-block-totals-table-item__value"},i):React.createElement(c.a,{className:"wc-block-totals-table-item__value",currency:n,displayType:"text",value:i}),React.createElement("div",{className:"wc-block-totals-table-item__description"},s))}},function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){"use strict";var r=n(32),o=n.n(r),a=n(33),c=n.n(a),i=n(19),s=n.n(i),u=n(34),l=n.n(u),d=n(35),f=n.n(d),p=n(21),b=n.n(p),m=n(6),g=n.n(m),h=(n(5),n(3)),v=n(1),y=n(8),O=function(e){var t=e.imageUrl,n=void 0===t?"".concat(y.A,"img/block-error.svg"):t,r=e.header,o=void 0===r?Object(v.__)("Oops!","woo-gutenberg-products-block"):r,a=e.text,c=void 0===a?Object(v.__)("There was an error loading the content.","woo-gutenberg-products-block"):a,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"},n&&React.createElement("img",{className:"wc-block-error__image",src:n,alt:""}),React.createElement("div",{className:"wc-block-error__content"},o&&React.createElement("p",{className:"wc-block-error__header"},o),c&&React.createElement("p",{className:"wc-block-error__text"},c),i&&React.createElement("p",{className:"wc-block-error__message"},u?u+" ":"",i)))};n(61);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 f()(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,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return e=t.call.apply(t,[this].concat(a)),g()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.header,n=e.imageUrl,r=e.showErrorMessage,o=e.text,a=e.errorMessagePrefix,c=this.state,i=c.errorMessage;return c.hasError?React.createElement(O,{errorMessage:r?i:null,header:t,imageUrl:n,text:o,errorMessagePrefix:a}):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){!function(){e.exports=this.ReactDOM}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(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.autop}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t){function n(e,t,n,r,o,a,c){try{var i=e[a](c),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,a){var c=e.apply(t,r);function i(e){n(c,o,a,i,s,"next",e)}function s(e){n(c,o,a,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(53);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,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),a=n(10),c=n.n(a),i=n(0),s=n(7),u=n(37),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 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){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 p=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)(p)},m=function(e){var t=e.children,n=Object(i.useState)({}),r=c()(n,2),a=r[0],u=r[1],d=Object(i.useCallback)((function(e){return a[e]}),[a]),b=Object(i.useCallback)((function(e){var t=a[e];return!t||t.hidden?"":"validate-error-".concat(e)}),[a]),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:f(f({},t),e)}))}),[]),v=Object(i.useCallback)((function(e,t){u((function(n){if(!n.hasOwnProperty(e))return n;var r=f(f({},n[e]),t);return l()(n[e],r)?n:f(f({},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]=f(f({},e[n]),{},{hidden:!1}))})),0===Object.values(t).length?e:f(f({},e),t)}))}),[]),hasValidationErrors:Object.keys(a).length>0,getValidationErrorId:b};return React.createElement(p.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(60);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,c){if(c!==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:a,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";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";n.d(t,"a",(function(){return u}));var r=n(6),o=n.n(r),a=n(111),c=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(a.b)(),t=e.notices,n=e.createNotice,r=e.removeNotice,o=e.createSnackbarNotice,i=e.setIsSuppressed,u=Object(c.useRef)(t);Object(c.useEffect)((function(){u.current=t}),[t]);var l=Object(c.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.map((function(t){return null!==e&&t.status!==e||r(t.id),!0}))},removeNotice:r}}),[r]),d=Object(c.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";var r=n(1),o=(n(5),n(4)),a=n.n(o),c=n(0);function i(){return Object(c.createElement)("span",{className:"components-spinner"})}n(150),t.a=function(e){var t=e.children,n=e.className,o=e.screenReaderLabel,c=e.showSpinner,s=void 0!==c&&c,u=e.isLoading;return void 0===u||u?React.createElement("div",{className:a()(n,"wc-block-loading-mask")},s&&React.createElement(i,null),React.createElement("div",{className:"wc-blocks-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)),a=r(n(73)),c=n(3),i=r(c),s=r(n(100)),u=r(n(19)),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=c.useState(!1)[1];return c.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return l.und(e)||l.nul(e)?t:e}function p(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,a(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 a;return l.und(t[r])?o({},n,((a={})[r]=e[r],a)):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 M(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:M,get manualFrameloop(){return N},injectManualFrameloop:function(e){N=e}}),D=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),T=!1,F=new Set,L=function e(){if(!T)return!1;var t=P(),n=F,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var c=a,i=!1,s=0;s<c.configs.length;s++){for(var u=c.configs[s],l=void 0,d=void 0,f=0;f<u.animatedValues.length;f++){var p=u.animatedValues[f];if(!p.done){var b=u.fromValues[f],m=u.toValues[f],g=p.lastPosition,h=m instanceof v,y=Array.isArray(u.initialVelocity)?u.initialVelocity[f]:u.initialVelocity;if(h&&(m=m.getValue()),u.immediate)p.setValue(m),p.done=!0;else if("string"!=typeof b&&"string"!=typeof m){if(void 0!==u.duration)g=b+u.easing((t-p.startTime)/u.duration)*(m-b),l=t>=p.startTime+u.duration;else if(u.decay)g=b+y/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-g)<.1)&&(m=g);else{d=void 0!==p.lastTime?p.lastTime:t,y=void 0!==p.lastVelocity?p.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,p.lastVelocity=y,p.lastTime=t}h&&!u.toValues[f].done&&(l=!1),l?(p.value!==m&&(g=m),p.done=!0):i=!0,p.setValue(g),p.lastPosition=g}else p.setValue(m),p.done=!0}}c.props.onFrame&&(c.values[u.name]=u.interpolation.getValue())}c.props.onFrame&&c.props.onFrame(c.values),i||(F.delete(c),c.stop(!0))}return F.size?N?N():_(e):T=!1,T};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,a=r.range||[0,1],c=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,a);return function(e,t,n,r,o,a,c,i,s){var u=s?s(e):e;if(u<t){if("identity"===c)return u;"clamp"===c&&(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=a(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,a[t],a[t+1],o[t],o[t+1],s,c,i,r.map)}}var U=function(e){function t(n,r,o,a){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof y&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=V(r,o,a),c}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 B=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}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 U(this,e,t,n)},t}(v),q=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new B(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 U(this,e,t)},t}(y),H=0,W=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=H++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,c=t.to,i=a(t,["delay","to"]);if(l.arr(c)||l.fun(c))this.queue.push(o({},i,{delay:r,to:c}));else if(c){var s={};Object.entries(c).forEach((function(e){var t,n=e[0],a=e[1],c=o({to:(t={},t[n]=a,t),delay:b(r,n)},i),u=s[c.delay]&&s[c.delay].to;s[c.delay]=o({},s[c.delay],c,{to:o({},u,c.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,a=e.to,c=void 0===a?{}:a;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(c)&&(n.merged=o({},n.merged,c))}));var r=this.local=++this.guid,c=this.localQueue=this.queue;this.queue=[],c.forEach((function(t,o){var i=t.delay,s=a(t,["delay"]),u=function(t){o===c.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),T||(T=!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,a(e,["delay"])),c=this.local,i=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,a=o({},r,m(r.to[t]));l.arr(a.config)&&(a.config=a.config[t]),i=i.then((function(){if(c===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},u=0;u<r.to.length;u++)s(u);else if(l.fun(r.to)){var d,f=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[f]),f++,c===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,a=void 0===r?{}:r,c=n.to,i=void 0===c?{}:c,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,a];a=y[0],i=y[1]}this.merged=o({},a,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],c=n[1],i=e[r]||{},s=l.num(c),d=l.str(c)&&!c.startsWith("#")&&!/\d/.test(c)&&!h[c],m=l.arr(c),y=!s&&!m&&!d,j=l.und(a[r])?c:a[r],w=s||m||d?c:1,_=b(u,r);O&&(w=O.animations[r].parent);var k,S=i.parent,R=i.interpolation,C=p(O?w.getPayload():w),x=c;y&&(x=E({range:[0,1],output:[c,c]})(1));var N,I=R&&R.getValue(),M=!l.und(S)&&i.animatedValues.some((function(e){return!e.done})),A=!l.equ(x,I),D=!l.equ(x,i.previous),T=!l.equ(_,i.config);if(g||D&&A||T){var F;if(s||d)S=R=i.parent||new B(j);else if(m)S=R=i.parent||new q(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 B(0);var V={output:[L,c]};i.interpolation?(R=i.interpolation,i.interpolation.updateConfig(V)):R=S.interpolate(V)}return C=p(O?w.getPayload():w),k=p(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=M?e.lastVelocity:void 0,e.lastTime=M?e.lastTime:void 0,e.startTime=P(),e.done=!1,e.animatedStyles.clear()})),b(v,r)&&S.setValue(y?w:c,!1),o({},e,((F={})[r]=o({},i,{name:r,parent:S,interpolation:R,animatedValues:k,toValues:C,previous:x,config:_,fromValues:p(S.getValue()),immediate:b(v,r),initialVelocity:f(_.velocity,0),clamp:f(_.clamp,!1),precision:f(_.precision,.01),tension:f(_.tension,170),friction:f(_.friction,26),mass:f(_.mass,1),duration:_.duration,easing:f(_.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}(),z=function(e,t){var n=c.useRef(!1),r=c.useRef(),o=l.fun(t),a=c.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 a=new W,c=o?b(t,r,a):t[r];return 0===r&&(n=c.ref),a.update(c),n||a.start(),a})),n]}),[e]),i=a[0],s=a[1];r.current=i;c.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=c.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]);c.useEffect((function(){n.current?o||u(t):s||r.current.forEach((function(e){return e.start()}))})),c.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,Y=function(e,t){return("function"==typeof t?e.map(t):p(t)).map(String)},$=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,c=a(e,["items","keys"]);return t=p(void 0!==t?t:null),o({items:t,keys:Y(t,r)},c)};function G(e,t){var n=function(){if(o){if(a>=r.length)return"break";c=r[a++]}else{if((a=r.next()).done)return"break";c=a.value}var n=c.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),a=0;for(r=o?r:r[Symbol.iterator]();;){var c;if("break"===n())break}e.current.forceUpdate()}var Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=g.transform(t)),n.payload=t,n}return s(t,e),t}(O),Q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},X="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(X,X,X)),te=new RegExp("rgba"+J(X,X,X,X)),ne=new RegExp("hsl"+J(X,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(X,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",X)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([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,a=se(o,r,e+1/3),c=se(o,r,e),i=se(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*c)<<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 fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ce.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[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|fe(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=ae.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]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(ue(de(n[1]),pe(n[2]),pe(n[3]))|fe(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(Q).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={};M((function(e){return new Z(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(Q),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,c=t.scrollLeft,i=a(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!==c&&(e.scrollLeft=c),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 f in i){var p=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,i[f])}}),(function(e){return e}));var we,Ee,_e=(we=function(e){return c.forwardRef((function(t,n){var r=d(),s=c.useRef(!0),u=c.useRef(null),f=c.useRef(null),p=c.useCallback((function(e){var t=u.current;u.current=new D(e,(function(){var e=!1;f.current&&(e=g.fn(f.current,u.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),c.useImperativeHandle(n,(function(){return I(f,s,r)})),p(t);var b,m=u.current.getValue(),h=(m.scrollTop,m.scrollLeft,a(m,["scrollTop","scrollLeft"])),v=(b=e,!l.fun(b)||b.prototype instanceof i.Component?function(e){return f.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 U(e,t,n)},t.Globals=A,t.useSpring=function(e){var t=l.fun(e),n=z(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=c.useRef(!1),r=l.fun(t),a=b(t),i=c.useRef(),s=z(e,(function(e,t){return 0===e&&(i.current=[]),i.current.push(t),o({},a,{config:b(a.config,e),attach:e>0&&function(){return i.current[e-1]}})})),u=s[0],d=s[1],f=s[2],p=c.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,c=i.current[r];return o({},e,{config:b(e.config||a.config,t),attach:c&&function(){return c}})}))}}),[e,a.reverse]);return c.useEffect((function(){n.current&&!r&&p(t)})),c.useEffect((function(){n.current=!0}),[]),r?[u,p,f]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),i=$(r),s=i.lazy,u=void 0!==s&&s,l=(i.unique,i.reset),f=void 0!==l&&l,p=(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=a(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=c.useRef(!1),w=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return c.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,c=a(e,["first","prevProps"]),i=$(t),s=i.items,u=i.keys,l=i.initial,d=i.from,f=i.enter,p=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=$(r),E=w.keys,_=w.items,k=o({},c.current),S=[].concat(c.deleted),R=Object.keys(k),P=new Set(R),C=new Set(u),x=u.filter((function(e){return!P.has(e)})),N=c.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)})),M=-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],a=n&&void 0!==l?"initial":"enter";k[e]={slot:a,originalKey:e,key:v?String(e):K++,item:o,trail:M+=h,config:b(y,o,a),from:b(n&&void 0!==l?l||{}:d,o),to:b(f,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:M+=h,config:b(y,n,"leave"),to:b(p,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:M+=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,a(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({},c,{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,a=e.config,c=e.trail,i=e.key,s=e.item;w.current.instances.has(i)||w.current.instances.set(i,new W);var l=w.current.instances.get(i),d=o({},y,{to:r,from:n,config:a,ref:v,onRest:function(n){w.current.mounted&&(e.destroyed&&(v||u||G(w,i),p&&p(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(v||u)&&w.current.deleted.length>0&&G(w),g&&g(s,t,n))},onStart:h&&function(){return h(s,t)},onFrame:m&&function(e){return m(s,t,e)},delay:c,reset:f&&"enter"===t});l.update(d),w.current.paused||l.start()})),c.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=c.useRef();c.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 a=e.current;if(a){var c=a.controllers;if(c.length){var i=n*t[r];c.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=z},function(e,t){!function(){e.exports=this.wp.wordcount}()},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(14),c=n.n(a),i=n(88),s=n(4),u=n.n(s),l=function(e){var t=e.className,n=e.size,r=c()(e,["className","size"]),a=u()("dashicon","dashicons-arrow-down-alt2",t);return React.createElement(i.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:a,width:n,height:n},r),React.createElement("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},d=function(e){var t=e.className,n=e.size,r=c()(e,["className","size"]),a=u()("dashicon","dashicons-arrow-down-alt2",t);return React.createElement(i.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:a,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"}))},f=n(0);t.a=({icon:e,size:t=20,className:n,...r})=>{let o=()=>null;switch(e){case"arrow-down-alt2":o=l;break;case"no-alt":o=d}return Object(f.createElement)(o,{size:t,className:n,...r})}},,,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,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}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){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";var r=n(26),o=n(9),a=n(29),c=n(0),i=n(67),s=n(88);t.a=function(e){var t=e.icon,n=void 0===t?null:t,u=e.size,l=Object(a.a)(e,["icon","size"]),d=u||20;if("string"==typeof n)return Object(c.createElement)(i.a,Object(o.a)({icon:n,size:d},l));if(n&&i.a===n.type)return Object(c.cloneElement)(n,Object(r.a)({size:d},l));var f=u||24;if("function"==typeof n)return n.prototype instanceof c.Component?Object(c.createElement)(n,Object(r.a)({size:f},l)):n(Object(r.a)({size:f},l));if(n&&("svg"===n.type||n.type===s.a)){var p=Object(r.a)({width:f,height:f},n.props,l);return Object(c.createElement)(s.a,p)}return Object(c.isValidElement)(n)?Object(c.cloneElement)(n,Object(r.a)({size:f},l)):n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(15),o=n(12),a=n(109),c=n(16),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(a.a)(),n=t.isEditor,u=t.previewData,l=(null==u?void 0:u.previewCart)||{},d=e.shouldSelect,f=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 a=e(r.CART_STORE_KEY),u=a.getCartData(),f=a.getCartErrors(),p=a.getCartTotals(),b=!a.hasFinishedResolution("getCartData"),m=a.areShippingRatesLoading(),g=o(r.CART_STORE_KEY).receiveCart,h=Object(i.mapValues)(u.shippingAddress,(function(e){return Object(c.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:p,cartIsLoading:b,cartErrors:f,shippingAddress:h,shippingRates:u.shippingRates,shippingRatesLoading:m,hasShippingAddress:!!h.country,receiveCart:g}}),[d]);return f}},function(e,t,n){var r=n(101),o=n(102),a=n(52),c=n(103);e.exports=function(e){return r(e)||o(e)||a(e)||c()}},function(e,t,n){"use strict";var r=n(26),o=n(29),a=n(4),c=n.n(a),i=n(0);t.a=Object(i.forwardRef)((function(e,t){var n=e.href,a=e.target,s=e.isPrimary,u=e.isLarge,l=e.isSmall,d=e.isTertiary,f=e.isToggled,p=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=c()("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":f,"is-busy":p,"is-link":m,"is-destructive":g}),j=void 0===n||v?"button":"a",w="a"===j?{href:n,target:a}:{type:"button",disabled:v};return Object(i.createElement)(j,Object(r.a)({},w,y,{className:O,ref:t}))}))},function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(14),c=n.n(a),i=n(4),s=n.n(i);n(5),n(152);t.a=function(e){var t=e.children,n=e.className,r=e.headingLevel,a=c()(e,["children","className","headingLevel"]),i=s()("wc-block-component__title",n),u="h".concat(r);return React.createElement(u,o()({className:i},a),t)}},function(e,t,n){"use strict";var r=n(10),o=n.n(r),a=n(3),c=(n(5),n(4)),i=n.n(c),s=n(0),u=n(28),l=(n(123),Object(a.forwardRef)((function(e,t){var n=e.className,r=e.id,a=e.type,c=void 0===a?"text":a,l=e.ariaLabel,d=e.ariaDescribedBy,f=e.label,p=e.screenReaderLabel,b=e.disabled,m=e.help,g=e.autoComplete,h=void 0===g?"off":g,v=e.value,y=void 0===v?"":v,O=e.onChange,j=e.required,w=void 0!==j&&j,E=e.onBlur,_=void 0===E?function(){}:E,k=e.feedback,S=Object(s.useState)(!1),R=o()(S,2),P=R[0],C=R[1];return React.createElement("div",{className:i()("wc-block-text-input",n,{"is-active":P||y})},React.createElement("input",{type:c,id:r,value:y,ref:t,autoComplete:h,onChange:function(e){O(e.target.value)},onFocus:function(){return C(!0)},onBlur:function(){_(),C(!1)},"aria-label":l||f,disabled:b,"aria-describedby":m&&!d?r+"__help":d,required:w}),React.createElement(u.a,{label:f,screenReaderLabel:p||f,wrapperElement:"label",wrapperProps:{htmlFor:r},htmlFor:r}),!!m&&React.createElement("p",{id:r+"__help",className:"wc-block-text-input__help"},m),k)})));t.a=l},function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3);function o(e,t,n){void 0===n&&(n={});var o=n.maxWait,a=Object(r.useRef)(null),c=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),f=Object(r.useRef)(e);f.current=e;var p=Object(r.useCallback)((function(){clearTimeout(l.current),clearTimeout(a.current),a.current=null,c.current=[],l.current=null,u.current=!1}),[]);Object(r.useEffect)((function(){return function(){d.current=!0}}),[]);var b=Object(r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];c.current=e,clearTimeout(l.current),u.current&&(u.current=!1),l.current||!i||u.current||(f.current.apply(f,e),u.current=!0),l.current=setTimeout((function(){var t=!0;i&&u.current&&(t=!1),p(),!d.current&&s&&t&&f.current.apply(f,e)}),t),o&&!a.current&&s&&(a.current=setTimeout((function(){var e=c.current;p(),d.current||f.current.apply(null,e)}),o))}),[o,t,p,i,s]),m=Object(r.useCallback)((function(){l.current&&(f.current.apply(null,c.current),p())}),[p]);return[b,p,m]}},function(e,t,n){"use strict";var r=n(0),o=n(66),a=n(48),c=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]:"…",r=i(e),o=r.split(" ").splice(0,t).join(" ");return Object(a.autop)(s(o,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]:"…",o=i(e),c=o.slice(0,t);if(n)return Object(a.autop)(s(c,r));var u=c.match(/([\s]+)/g),l=u?u.length:0,d=o.slice(0,t+l);return Object(a.autop)(s(d,r))};t.a=function(e){var t=e.source,n=e.maxLength,i=void 0===n?15:n,s=e.countType,d=void 0===s?"words":s,f=e.className,p=void 0===f?"":f,b=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(a.autop)(e),i=Object(o.count)(r,n);if(i<=t)return r;var s=c(r),d=Object(o.count)(s,n);return d<=t?s:"words"===n?u(s,t):l(s,t,"characters_including_spaces"===n)}(t,i,d)}),[t,i,d]);return React.createElement(r.RawHTML,{className:p},b)}},function(e,t,n){"use strict";var r=n(10),o=n.n(r),a=n(0),c=n(4),i=n.n(c),s=(n(5),n(138)),u=n(88),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(164),t.a=function(e){var t=e.children,n=e.className,r=e.initialOpen,c=void 0!==r&&r,u=e.title,f=e.titleTag,p=void 0===f?"div":f,b=Object(a.useState)(c),m=o()(b,2),g=m[0],h=m[1];return React.createElement("div",{className:i()(n,"wc-blocks-components-panel")},React.createElement(p,null,React.createElement("button",{"aria-expanded":g,className:"wc-blocks-components-panel__button",onClick:function(){return h(!g)}},React.createElement(s.a,{"aria-hidden":"true",className:"wc-blocks-components-panel__button-icon",srcElement:g?l:d}),u)),React.createElement("div",{className:"wc-blocks-components-panel__content",hidden:!g},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(10),o=n.n(r),a=n(0),c=function(){var e=Object(a.useState)(),t=o()(e,2)[1];return function(e){return t((function(){throw e}))}}},function(e,t,n){"use strict";e.exports=n(120)},function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return D}));var r=n(10),o=n.n(r),a=n(0),c=n(75),i=n(12),s=n(37),u=n.n(s),l=n(127),d=n(15),f=n(16),p=n(63),b=function(e){return{country:e.country,state:e.state,city:e.city,postcode:e.postcode.replace(" ","").toUpperCase()}},m=function(){var e=Object(c.a)().shippingAddress,t=Object(a.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(p.a)().addErrorNotice,y=Object(a.useRef)(e);Object(a.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(f.decodeEntities)(r[e])})),{shippingAddress:O,setShippingAddress:s}},g=n(202),h=n(92),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(110),w=n(200),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(201),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},M=Object(a.createContext)(O),A=function(){return Object(a.useContext)(M)},D=function(e){var t=e.children,n=Object(h.b)().dispatchActions,r=Object(c.a)(),i=r.cartNeedsShipping,s=r.shippingRates,u=r.shippingRatesLoading,l=r.cartErrors,d=Object(a.useReducer)(I,C),f=o()(d,2),p=f[0],b=f[1],O=Object(a.useReducer)(j.b,{}),w=o()(O,2),A=w[0],D=w[1],T=m(),F=T.shippingAddress,L=T.setShippingAddress,V=Object(a.useRef)(A),U=Object(g.a)(s),B=U.selectShippingRate,q=U.selectedShippingRates,H=U.isSelectingRate,W=Object(a.useMemo)((function(){return{onShippingRateSuccess:R(D).onSuccess,onShippingRateFail:R(D).onFail,onShippingRateSelectSuccess:R(D).onSelectSuccess,onShippingRateSelectFail:R(D).onSelectFail}}),[D]);Object(a.useEffect)((function(){V.current=A}),[A]),Object(a.useEffect)((function(){u?n.incrementCalculating():n.decrementCalculating()}),[u,n]),Object(a.useEffect)((function(){H?n.incrementCalculating():n.decrementCalculating()}),[H,n]),Object(a.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 z=Object(a.useMemo)((function(){return{isPristine:p===C,isValid:p===C,hasInvalidAddress:p===x,hasError:p===N||p===x}}),[p]);Object(a.useEffect)((function(){u||0!==s.length&&!z.hasError||Object(P.a)(V.current,_,{hasInvalidAddress:z.hasInvalidAddress,hasError:z.hasError})}),[s,u,z.hasError,z.hasInvalidAddress]),Object(a.useEffect)((function(){!u&&s.length>0&&!z.hasError&&Object(P.a)(V.current,E,s)}),[s,u,z.hasError]),Object(a.useEffect)((function(){!H&&z.hasError&&Object(P.a)(V.current,S,{hasError:z.hasError,hasInvalidAddress:z.hasInvalidAddress})}),[q,H,z.hasError,z.hasInvalidAddress]),Object(a.useEffect)((function(){H||!q||z.hasError||Object(P.a)(V.current,k,q)}),[q,H,z.hasError]);var K={shippingErrorStatus:z,dispatchErrorStatus:b,shippingErrorTypes:v,shippingRates:s,setShippingRates:B,shippingRatesLoading:u,selectedRates:q,setSelectedRates:B,isSelectingRate:H,shippingAddress:F,setShippingAddress:L,onShippingRateSuccess:W.onShippingRateSuccess,onShippingRateFail:W.onShippingRateFail,onShippingRateSelectSuccess:W.onShippingRateSelectSuccess,onShippingRateSelectFail:W.onShippingRateSelectFail,needsShipping:i};return React.createElement(React.Fragment,null,React.createElement(M.Provider,{value:K},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(26),o=n(7),a=n(0),c=function(e){var t=Object(r.a)({},e,{role:"img","aria-hidden":"true",focusable:"false"});return Object(a.createElement)("svg",Object(o.omit)(t,"__unstableActive"))}},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",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",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",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",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",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",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",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",required:!0,hidden:!1,index:9}};t.a=o},function(e,t){},function(e,t,n){"use strict";t.a=function(e){var t=e.label,n=e.secondaryLabel,r=e.description,o=e.secondaryDescription,a=e.id;return React.createElement("div",{className:"wc-block-radio-control__option-layout"},React.createElement("div",{className:"wc-block-radio-control__label-group"},t&&React.createElement("span",{id:a?"".concat(a,"__label"):null,className:"wc-block-radio-control__label"},t),n&&React.createElement("span",{id:a?"".concat(a,"__secondary-label"):null,className:"wc-block-radio-control__secondary-label"},n)),React.createElement("div",{className:"wc-block-radio-control__description-group"},r&&React.createElement("span",{id:a?"".concat(a,"__description"):null,className:"wc-block-radio-control__description"},r),o&&React.createElement("span",{id:a?"".concat(a,"__secondary-description"):null,className:"wc-block-radio-control__secondary-description"},o)))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return Fe})),n.d(t,"a",(function(){return Le}));var r=n(6),o=n.n(r),a=n(10),c=n.n(a),i=n(0),s=n(1),u=n(63),l=n(199),d=n(2),f="pristine",p="idle",b="processing",m="complete",g="before_processing",h="after_processing",v=Object(d.getSetting)("checkoutData",{order_id:0,customer_id:0}),y={redirectUrl:"",status:f,hasError:!1,calculatingCount:0,orderId:v.order_id,customerId:v.customer_id,processingResponse:null},O="set_idle",j="set_pristine",w="set_redirect_url",E="set_checkout_complete",_="set_before_processing",k="set_after_processing",S="set_processing_response",R="set_checkout_is_processing",P="set_checkout_has_error",C="set_checkout_no_error",x="set_checkout_order_id",N="increment_calculating",I="decrement_calculating",M=j,A=O,D=R,T=_,F=k,L=S,V=w,U=E,B=P,q=C,H=N,W=I,z=x,K=function(){return{type:M}},Y=function(){return{type:A}},$=function(){return{type:D}},G=function(e){return{type:V,url:e}},Z=function(e){return{type:L,data:e}},Q=function(e){return{type:U,data:e}},X=function(){return{type:T}},J=function(){return{type:F}},ee=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?B:q;return{type:t}},te=function(){return{type:H}},ne=function(){return{type:W}},re=function(e){return{type:z,orderId:e}};function oe(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ce=j,ie=O,se=R,ue=_,le=k,de=S,fe=w,pe=E,be=P,me=C,ge=N,he=I,ve=x,ye=f,Oe=p,je=b,we=g,Ee=h,_e=m,ke=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,n=arguments.length>1?arguments[1]:void 0,r=n.url,o=n.type,a=n.orderId,c=n.data;switch(o){case ce:e=y;break;case ie:e=t.state!==Oe?ae(ae({},t),{},{status:Oe}):t;break;case fe:e=r!==t.url?ae(ae({},t),{},{redirectUrl:r}):t;break;case de:e=ae(ae({},t),{},{processingResponse:c});break;case pe:e=t.status!==_e?ae(ae({},t),{},{status:_e,redirectUrl:(null==c?void 0:c.redirectUrl)||t.redirectUrl}):t;break;case se:e=!1===(e=t.status!==je?ae(ae({},t),{},{status:je,hasError:!1}):t).hasError?e:ae(ae({},e),{},{hasError:!1});break;case ue:e=t.status!==we?ae(ae({},t),{},{status:we,hasError:!1}):t;break;case le:e=t.status!==Ee?ae(ae({},t),{},{status:Ee}):t;break;case be:e=t.hasError?t:ae(ae({},t),{},{hasError:!0}),e=t.status===je||t.status===we?ae(ae({},e),{},{status:Oe}):e;break;case me:e=t.hasError?ae(ae({},t),{},{hasError:!1}):t;break;case ge:e=ae(ae({},t),{},{calculatingCount:t.calculatingCount+1});break;case he:e=ae(ae({},t),{},{calculatingCount:Math.max(0,t.calculatingCount-1)});break;case ve:e=ae(ae({},t),{},{orderId:a})}return e!==t&&o!==ce&&e.status===ye&&(e.status=Oe),e},Se=n(110),Re=n(200),Pe="checkout_before_processing",Ce="checkout_after_processing_with_success",xe="checkout_after_processing_with_error",Ne=function(e){return{onCheckoutAfterProcessingWithSuccess:Object(Re.a)(Ce,e),onCheckoutAfterProcessingWithError:Object(Re.a)(xe,e),onCheckoutBeforeProcessing:Object(Re.a)(Pe,e)}},Ie=n(201),Me=n(54);function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te=Object(i.createContext)({isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,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){}},hasOrder:!1,isCart:!1}),Fe=function(){return Object(i.useContext)(Te)},Le=function(e){var t=e.children,n=e.redirectUrl,r=e.isCart,o=void 0!==r&&r;y.redirectUrl=n;var a=Object(i.useReducer)(ke,y),d=c()(a,2),f=d[0],v=d[1],O=Object(i.useReducer)(Se.b,{}),j=c()(O,2),w=j[0],E=j[1],_=Object(i.useRef)(w),k=Object(Me.b)().setValidationErrors,S=Object(u.a)(),R=S.addErrorNotice,P=S.removeNotices,C=f.calculatingCount>0,x=Object(l.a)(),N=x.isSuccessResponse,I=x.isErrorResponse,M=x.isFailResponse;Object(i.useEffect)((function(){_.current=w}),[w]);var A=Object(i.useMemo)((function(){return Ne(E).onCheckoutAfterProcessingWithSuccess}),[E]),D=Object(i.useMemo)((function(){return Ne(E).onCheckoutAfterProcessingWithError}),[E]),T=Object(i.useMemo)((function(){return Ne(E).onCheckoutBeforeProcessing}),[E]),F=Object(i.useMemo)((function(){return{resetCheckout:function(){v(K())},setRedirectUrl:function(e){v(G(e))},setHasError:function(e){v(ee(e))},incrementCalculating:function(){v(te())},decrementCalculating:function(){v(ne())},setOrderId:function(e){v(re(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=De(De({},e.payment_result),{},{message:e.message})),e.payment_result)&&((null===(n=e.payment_result)||void 0===n?void 0:n.redirect_url)&&v(G(e.payment_result.redirect_url)),v(Z((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))));v(J())}}}),[]);Object(i.useEffect)((function(){f.status===g&&(P("error"),Object(Ie.a)(_.current,Pe,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,n=e.validationErrors;R(t),k(n)})),v(Y())):v($())})))}),[f.status,k,R,P,v]),Object(i.useEffect)((function(){if(f.status===h){var e={redirectUrl:f.redirectUrl,orderId:f.orderId,customerId:f.customerId,customerNote:f.customerNote,processingResponse:f.processingResponse};f.hasError?Object(Ie.b)(_.current,xe,e).then((function(t){if(I(t)||M(t)){if(t.message){var n=t.messageContext?{context:t.messageContext}:void 0;R(t.message,n)}void 0!==t.retry&&!0!==t.retry?v(Q(t)):v(Y())}else{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");R(o,{id:"checkout"}),v(Y())}})):Object(Ie.b)(_.current,Ce,e).then((function(e){if(N(e))v(Q(e));else if(I(e)||M(e)){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;R(e.message,t)}e.retry?v(ee(!0)):v(Q(e))}else v(Q())}))}}),[f.status,f.hasError,f.redirectUrl,f.orderId,f.customerId,f.customerNote,f.processingResponse,F,R,I,M,N]);var L={onSubmit:Object(i.useCallback)((function(){v(X())}),[]),isComplete:f.status===m,isIdle:f.status===p,isCalculating:C,isProcessing:f.status===b,isBeforeProcessing:f.status===g,isAfterProcessing:f.status===h,hasError:f.hasError,redirectUrl:f.redirectUrl,onCheckoutAfterProcessingWithSuccess:A,onCheckoutAfterProcessingWithError:D,onCheckoutBeforeProcessing:T,dispatchActions:F,isCart:o,orderId:f.orderId,hasOrder:!!f.orderId,customerId:f.customerId};return React.createElement(Te.Provider,{value:L},t)}},,function(e,t,n){"use strict";var r=n(9),o=n(0),a=n(7);var c=function(e,t){return function(n){var r=e(n),o=n.displayName,c=void 0===o?n.name||"Component":o;return r.displayName="".concat(Object(a.upperFirst)(Object(a.camelCase)(t)),"(").concat(c,")"),r}},i=new WeakMap;function s(e){return Object(o.useMemo)((function(){return function(e){var t=i.get(e)||0;return i.set(e,t+1),t}(e)}),[e])}t.a=c((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";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 a(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 c(e,t,n,r,o,a,c,i){return a<e&&c>t||a>e&&c<t?0:a<=e&&i<=n||c>=t&&i>=n?a-e-r:c>t&&i<n||a<e&&i>n?c-t+o:0}t.a=function(e,t){var n=t.scrollMode,o=t.block,i=t.inline,s=t.boundary,u=t.skipOverflowHiddenElements,l="function"==typeof s?s:function(e){return e!==s};if(!r(e))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,f=[],p=e;r(p)&&l(p);){if((p=p.parentNode)===d){f.push(p);break}p===document.body&&a(p)&&!a(document.documentElement)||a(p,u)&&f.push(p)}for(var b=window.visualViewport?visualViewport.width:innerWidth,m=window.visualViewport?visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,O=v.width,j=v.top,w=v.right,E=v.bottom,_=v.left,k="start"===o||"nearest"===o?j:"end"===o?E:j+y/2,S="center"===i?_+O/2:"end"===i?w:_,R=[],P=0;P<f.length;P++){var C=f[P],x=C.getBoundingClientRect(),N=x.height,I=x.width,M=x.top,A=x.right,D=x.bottom,T=x.left;if("if-needed"===n&&j>=0&&_>=0&&E<=m&&w<=b&&j>=M&&E<=D&&_>=T&&w<=A)return R;var F=getComputedStyle(C),L=parseInt(F.borderLeftWidth,10),V=parseInt(F.borderTopWidth,10),U=parseInt(F.borderRightWidth,10),B=parseInt(F.borderBottomWidth,10),q=0,H=0,W="offsetWidth"in C?C.offsetWidth-C.clientWidth-L-U:0,z="offsetHeight"in C?C.offsetHeight-C.clientHeight-V-B:0;if(d===C)q="start"===o?k:"end"===o?k-m:"nearest"===o?c(h,h+m,m,V,B,h+k,h+k+y,y):k-m/2,H="start"===i?S:"center"===i?S-b/2:"end"===i?S-b:c(g,g+b,b,L,U,g+S,g+S+O,O),q=Math.max(0,q+h),H=Math.max(0,H+g);else{q="start"===o?k-M-V:"end"===o?k-D+B+z:"nearest"===o?c(M,D,N,V,B+z,k,k+y,y):k-(M+N/2)+z/2,H="start"===i?S-T-L:"center"===i?S-(T+I/2)+W/2:"end"===i?S-A+U+W:c(T,A,I,L,U+W,S,S+O,O);var K=C.scrollLeft,Y=C.scrollTop;k+=Y-(q=Math.max(0,Math.min(Y+q,C.scrollHeight-N+z))),S+=K-(H=Math.max(0,Math.min(K+H,C.scrollWidth-I+W)))}R.push({el:C,top:q,left:H})}return R}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(11),o=n.n(r),a=n(6),c=n.n(a),i=n(44),s=n(43);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}var d=function(e){var t=e.Block,n=e.selector,r=e.getProps,a=void 0===r?function(){}:r,c=e.getErrorBoundaryProps,u=void 0===c?function(){}:c,d=document.querySelectorAll(n);d.length&&Array.prototype.forEach.call(d,(function(e,n){var r=a(e,n),c=u(e,n),d=l(l({},e.dataset),r.attributes);e.classList.remove("is-loading"),Object(i.render)(React.createElement(s.a,c,React.createElement(t,o()({},r,{attributes:d}))),e)}))}},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,n){var r=n(53);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){},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(6),c=n.n(a),i=n(14),s=n.n(i),u=n(1),l=n(3),d=(n(5),n(4)),f=n.n(d),p=n(54),b=n(133),m=n(94),g=n(80);n(123);t.a=Object(m.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,a=e.ariaDescribedBy,i=e.errorId,d=e.validateOnMount,m=void 0===d||d,h=e.focusOnMount,v=void 0!==h&&h,y=e.onChange,O=e.showError,j=void 0===O||O,w=s()(e,["className","instanceId","id","ariaDescribedBy","errorId","validateOnMount","focusOnMount","onChange","showError"]),E=Object(l.useRef)(),_=Object(p.b)(),k=_.getValidationError,S=_.hideValidationError,R=_.setValidationErrors,P=_.clearValidationError,C=_.getValidationErrorId,x=r||"textinput-"+n;i=i||x;var N=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];E.current.checkValidity()?P(i):R(c()({},i,{message:E.current.validationMessage||Object(u.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}))};Object(l.useEffect)((function(){v&&E.current.focus()}),[v]),Object(l.useEffect)((function(){m&&N()}),[m]),Object(l.useEffect)((function(){return function(){P(i)}}),[i]);var I=k(i)||{},M=I.message&&!I.hidden,A=j&&M&&C(i)?C(i):a;return React.createElement(g.a,o()({className:f()(t,{"has-error":M}),id:x,onBlur:function(){N(!1)},feedback:j&&React.createElement(b.a,{propertyName:i}),ref:E,onChange:function(e){S(i),y(e)},ariaDescribedBy: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),a=n(10),c=n.n(a),i=n(0),s=n(2),u=n(7),l=n(16);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){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 p=Object(s.getSetting)("checkoutData",{}),b={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},m=Object(u.mapValues)(p.billing_address,(function(e){return Object(l.decodeEntities)(e)})),g=f(f({},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=c()(n,2),o=r[0],a=r[1],s={billingData:o,setBillingData:Object(i.useCallback)((function(e){a((function(t){return y(y({},t),e)}))}),[])};return React.createElement(O.Provider,{value:s},t)}},function(e,t,n){"use strict";var r=n(4),o=n.n(r),a=n(94),c=n(6),i=n.n(c),s=n(91),u=function(e){var t,n=e.checked,r=e.name,a=e.onChange,c=e.option,u=c.value,l=c.label,d=c.description,f=c.secondaryLabel,p=c.secondaryDescription;return React.createElement("label",{className:"wc-block-radio-control__option",htmlFor:"".concat(r,"-").concat(u)},React.createElement("input",{id:"".concat(r,"-").concat(u),className:"wc-block-radio-control__input",type:"radio",name:r,value:u,onChange:function(e){return a(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"),f),i()(t,"".concat(r,"-").concat(u,"__description"),d),i()(t,"".concat(r,"-").concat(u,"__secondary-description"),p),t))}),React.createElement(s.a,{id:"".concat(r,"-").concat(u),label:l,secondaryLabel:f,description:d,secondaryDescription:p}))};n(162),n(163),t.a=Object(a.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,a=e.selected,c=e.onChange,i=e.options,s=void 0===i?[]:i,l=r||n;return s.length&&React.createElement("div",{className:o()("wc-block-radio-control",t)},s.map((function(e){return React.createElement(u,{key:e.value,name:"radio-control-".concat(l),checked:e.value===a,option:e,onChange:function(t){c(t),"function"==typeof e.onChange&&e.onChange(t)}})})))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=(n(12),Object(r.createContext)({isEditor:!1,currentPostId:0,previewData:{}})),a=function(){return Object(r.useContext)(o)}},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),a=n(7);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var 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(a.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,a=t.id,c=t.callback,l=t.priority,d=new Map(e[r]);switch(n){case s:return d.set(a,{priority:l,callback:c}),i(i({},e),{},o()({},r,d));case u:return d.delete(a),i(i({},e),{},o()({},r,d))}return e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return D})),n.d(t,"a",(function(){return T}));var r=n(6),o=n.n(r),a=n(10),c=n.n(a),i=(n(5),n(0)),s=n(12),u=n(11),l=n.n(u),d=n(4),f=n.n(d),p=n(168),b=(n(99),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""}),m=function(e){var t=e.className,n=e.notices,r=D().removeNotice,o=f()(t,"wc-block-components-notices"),a=n.filter((function(e){return"snackbar"!==e.type}));return a.length?React.createElement("div",{className:o},a.map((function(e){return React.createElement(p.a,l()({key:"store-notice-"+e.id},e,{className:f()("wc-block-components-notices__notice","woocommerce-message",b(e)),onRemove:function(){e.isDismissible&&r(e.id)}}),e.content)}))):null},g=n(9),h=n(22),v=n.n(h);function y(e,t,n,r,o,a,c){try{var i=e[a](c),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}function O(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){y(a,r,o,c,i,"next",e)}function i(e){y(a,r,o,c,i,"throw",e)}c(void 0)}))}}var j=n(27),w=n(7),E=n(65),_=n(25),k=n(1),S=n(77);var R=Object(i.forwardRef)((function(e,t){var n=e.className,r=e.children,o=e.actions,a=void 0===o?[]:o,c=e.onRemove,s=void 0===c?w.noop:c;Object(i.useEffect)((function(){var e=setTimeout((function(){s()}),1e4);return function(){return clearTimeout(e)}}),[]);var u=f()(n,"components-snackbar");return a&&a.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),a=[a[0]]),Object(i.createElement)("div",{ref:t,className:u,onClick:s,tabIndex:"0",role:"button",onKeyPress:s,label:Object(k.__)("Dismiss this notice")},Object(i.createElement)("div",{className:"components-snackbar__content"},r,a.map((function(e,t){var n=e.label,r=e.onClick,o=e.url;return Object(i.createElement)(S.a,{key:t,href:o,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))}));var P=function(e){var t=e.notices,n=e.className,r=e.children,o=e.onRemove,a=void 0===o?w.noop:o,c=Object(_.useReducedMotion)(),s=Object(i.useState)((function(){return new WeakMap})),u=Object(j.a)(s,1)[0],l=Object(E.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=O(v.a.mark((function t(n){return v.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=O(v.a.mark((function e(t){return v.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:c});n=f()("components-snackbar-list",n);var d=function(e){return function(){return a(e.id)}};return Object(i.createElement)("div",{className:n},r,l.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(i.createElement)(E.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)(R,Object(g.a)({},Object(w.omit)(t,["content"]),{onRemove:d(t)}),t.content)))})))},C=n(63),x=n(109),N=function(){var e=Object(x.a)().isEditor,t=Object(C.a)(),n=t.notices,r=t.removeNotice,o=n.filter((function(e){return"snackbar"===e.type}));return e?null:React.createElement(P,{notices:o,className:"wc-block-notices__snackbar",onRemove:r})};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 M(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 A=Object(i.createContext)({notices:[],createNotice:function(e,t,n){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),D=function(){return Object(i.useContext)(A)},T=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.createNoticeContainer,a=void 0===o||o,u=e.context,l=void 0===u?"wc/core":u,d=Object(s.useDispatch)("core/notices"),f=d.createNotice,p=d.removeNotice,b=Object(i.useState)(!1),g=c()(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,M(M({},n),{},{context:n.context||l}))}),[f,l]),O=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;p(e,t)}),[p,l]),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,M(M({},t),{},{type:"snackbar"}))}),[y]),w={notices:Object(s.useSelect)((function(e){return{notices:e("core/notices").getNotices(l)}}),[l]).notices,createNotice:y,createSnackbarNotice:j,removeNotice:O,context:l,setIsSuppressed:v},E=h?null:React.createElement(m,{className:r,notices:w.notices}),_=h?null:React.createElement(N,null);return React.createElement(A.Provider,{value:w},a&&E,t,_)}},,,,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 a(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 c(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 c(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 c(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=a(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=a(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 d(e){return Math.abs(e)%1==.5}function f(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 p(e){return void 0===e}function b(){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 d(e)&&u(t)?t-1:t},HALF_EVEN:function(e){var t=Math.round(e);return d(e)?u(t)?t:t-1:t},HALF_UP:function(e){return Math.round(e)},HALF_DOWN:function(e){return d(e)?Math.floor(e):Math.round(e)},HALF_TOWARDS_ZERO:function(e){return d(e)?Math.sign(e)*Math.floor(Math.abs(e)):Math.round(e)},HALF_AWAY_FROM_ZERO:function(e){return d(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 m=b();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!p(e)})):[]},getMinimumFractionDigits:function(){var e=function(e){return"."===e};return p(this.getMatches().find(e))?0:this.getMatches()[m.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 p(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!p(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),f(o,t.headers),o.send()}))}(t(e.endpoint,{from:n,to:r}),{headers:e.headers})};return{getExchangeRate:function(r,a){return(c=e.endpoint,!Boolean(c)||"object"!==o(c)&&"function"!=typeof c||"function"!=typeof c.then?n(r,a):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 a=e(t[1]);Object.entries(a).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:a})]}));var c}}}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 j=b(),w=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,a=n.precision;O(r),O(a);var c=e.globalLocale,i=e.globalFormat,s=e.globalRoundingMode,u=e.globalFormatRoundingMode,l=Object.assign({},e.globalExchangeRatesApi),d=function(t){var n=Object.assign({},Object.assign({},{amount:r,currency:o,precision:a},t),Object.assign({},{locale:this.locale},t));return Object.assign(e({amount:n.amount,currency:n.currency,precision:n.precision}),{locale:n.locale})},f=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||c},setLocale:function(e){return d.call(this,{locale:e})},getPrecision:function(){return a},convertPrecision:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return O(e),d.call(this,{amount:j.round(j.multiply(this.getAmount(),Math.pow(10,j.subtract(e,this.getPrecision()))),t),precision:e})},add:function(t){f.call(this,t);var n=e.normalizePrecision([this,t]);return d.call(this,{amount:j.add(n[0].getAmount(),n[1].getAmount()),precision:n[0].getPrecision()})},subtract:function(t){f.call(this,t);var n=e.normalizePrecision([this,t]);return d.call(this,{amount:j.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 d.call(this,{amount:j.round(j.multiply(this.getAmount(),e),t)})},divide:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return d.call(this,{amount:j.round(j.divide(this.getAmount(),e),t)})},percentage:function(e){return y(e),this.multiply(j.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 j.add(e,t)})),r=this.getAmount(),o=e.map((function(e){var o=Math.floor(j.divide(j.multiply(t.getAmount(),e),n));return r=j.subtract(r,o),d.call(t,{amount:o})})),a=0;r>0;)e[a]>0&&(o[a]=o[a].add(d.call(this,{amount:1})),r=j.subtract(r,1)),a+=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,a=n.propertyPath,c=void 0===a?l.propertyPath||"rates.{{to}}":a,i=n.headers,u=void 0===i?l.headers:i,f=n.roundingMode,b=void 0===f?s:f,m=Object.assign({},{endpoint:o,propertyPath:c,headers:u,roundingMode:b});return h(m).getExchangeRate(this.getCurrency(),e).then((function(n){return v(!p(n),'No rate was found for the destination currency "'.concat(e,'".'),TypeError),d.call(t,{amount:j.round(j.multiply(t.getAmount(),parseFloat(n)),m.roundingMode),currency:e})}))},equalsTo:function(e){return this.hasSameAmount(e)&&this.hasSameCurrency(e)},lessThan:function(t){f.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()<n[1].getAmount()},lessThanOrEqual:function(t){f.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()<=n[1].getAmount()},greaterThan:function(t){f.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()>n[1].getAmount()},greaterThanOrEqual:function(t){f.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!==j.modulo(this.getAmount(),Math.pow(10,a))},hasCents:function(){return 0!==j.modulo(this.getAmount(),Math.pow(10,a))},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 j.divide(this.getAmount(),Math.pow(10,a))},toRoundedUnit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=Math.pow(10,e);return j.divide(j.round(j.multiply(this.toUnit(),n),t),n)},toObject:function(){return{amount:r,currency:o,precision:a}},toJSON:function(){return this.toObject()}}}),{defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2},r,i);t.a=w},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return m}));var r=n(6),o=n.n(r),a=n(20),c=n.n(a),i=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}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}var l,d,f={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,d=i.CURRENCY.symbolPosition,{left:l,left_space:" "+l,right:"",right_space:""}[d]||""),suffix:function(e,t){return{left:"",left_space:"",right:e,right_space:" "+e}[t]||""}(i.CURRENCY.symbol,i.CURRENCY.symbolPosition)},p=function(e){if(!e||"object"!==c()(e))return f;var t=e.currency_code,n=e.currency_symbol,r=e.currency_thousand_separator,o=e.currency_decimal_separator,a=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 o?o:".",minorUnit:Number.isFinite(a)?a:2,prefix:"string"==typeof i?i:"$",suffix:"string"==typeof s?s:""}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(u({},f),e)},m=function(e,t){if(""===e||void 0===e)return"";var n=parseInt(e,10);if(!Number.isFinite(n))return"";var r=b(t),o=n/Math.pow(10,r.minorUnit),a=r.prefix+o+r.suffix,c=document.createElement("textarea");return c.innerHTML=a,c.value}},function(e,t,n){"use strict";var r=n(0),o=n(2),a=n(15),c=n(12);t.a=function(e){return function(t){var n;return n=Object(r.useRef)(Object(o.getSetting)("restApiRoutes")),Object(c.useSelect)((function(e,t){if(n.current){var r=e(a.SCHEMA_STORE_KEY),o=r.isResolving,c=r.hasFinishedResolution,i=t.dispatch(a.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])||c("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 a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var c=o.apply(null,r);c&&e.push(c)}else if("object"===a)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,n){e.exports=n(59)()},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,"i",(function(){return o})),n.d(t,"s",(function(){return a})),n.d(t,"w",(function(){return c})),n.d(t,"p",(function(){return i})),n.d(t,"l",(function(){return s})),n.d(t,"o",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"x",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"c",(function(){return b})),n.d(t,"m",(function(){return m})),n.d(t,"n",(function(){return g})),n.d(t,"A",(function(){return h})),n.d(t,"t",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"u",(function(){return O})),n.d(t,"b",(function(){return j})),n.d(t,"f",(function(){return w})),n.d(t,"v",(function(){return k})),n.d(t,"g",(function(){return S})),n.d(t,"r",(function(){return R})),n.d(t,"q",(function(){return P})),n.d(t,"z",(function(){return C})),n.d(t,"y",(function(){return x})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return I}));var r=n(2),o=Object(r.getSetting)("currentUserIsAdmin",!1),a=Object(r.getSetting)("reviewRatingsEnabled",!0),c=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)),f=Object(r.getSetting)("displayItemizedTaxes",!1),p=(Object(r.getSetting)("displayShopPricesIncludingTax",!1),Object(r.getSetting)("displayCartPricesIncludingTax",!1)),b=(Object(r.getSetting)("productCount",0),Object(r.getSetting)("attributes",[])),m=Object(r.getSetting)("isShippingCalculatorEnabled",!0),g=Object(r.getSetting)("isShippingCostHidden",!1),h=(Object(r.getSetting)("woocommerceBlocksPhase",1),Object(r.getSetting)("wcBlocksAssetUrl","")),v=Object(r.getSetting)("shippingCountries",{}),y=Object(r.getSetting)("allowedCountries",{}),O=Object(r.getSetting)("shippingStates",{}),j=Object(r.getSetting)("allowedStates",{}),w=(Object(r.getSetting)("shippingMethodsExist",!1),Object(r.getSetting)("checkoutShowLoginReminder",!0)),E={id:0,title:"",permalink:""},_=Object(r.getSetting)("storePages",{shop:E,cart:E,checkout:E,privacy:E,terms:E}),k=_.shop.permalink,S=(_.checkout.id,_.checkout.permalink),R=_.privacy.permalink,P=_.privacy.title,C=_.terms.permalink,x=_.terms.title,N=(_.cart.id,_.cart.permalink),I=Object(r.getSetting)("checkoutAllowsGuest",!1);Object(r.getSetting)("checkoutAllowsSignup",!1),n(39)},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(70),o=n(71),a=n(52),c=n(72);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||c()}},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(73);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},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"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){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){!function(){e.exports=this.regeneratorRuntime}()},,,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(45);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,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(51);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,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}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,n){"use strict";var r=n(6),o=n.n(r),a=(n(5),n(3)),c=n(4),i=n.n(c);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}var l=function(e){var t,n=e.label,r=e.screenReaderLabel,o=e.wrapperElement,c=e.wrapperProps,s=null!=n,l=null!=r;return!s&&l?(t=o||"span",c=u(u({},c),{},{className:i()(c.className,"screen-reader-text")}),React.createElement(t,c,r)):(t=o||a.Fragment,s&&l&&n!==r?React.createElement(t,c,React.createElement("span",{"aria-hidden":"true"},n),React.createElement("span",{className:"screen-reader-text"},r)):React.createElement(t,c,n))};l.defaultProps={wrapperProps:{}},t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(30);function o(e,t){if(null==e)return{};var n,o,a=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(6),c=n.n(a),i=n(14),s=n.n(i),u=n(3),l=n.n(u);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(){return(f=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 p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){}function h(){}h.resetWarningCache=g;var v=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:h,resetWarningCache:g};return n.PropTypes=n,n}()}));function y(){}function O(e){return!!(e||"").match(/\d/)}function j(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function w(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split("."),a=o[0],c=o[1]||"";return{beforeDecimal:a,afterDecimal:c,hasNagation:n,addNegation:r}}function E(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function _(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 k(e,t,n){return Math.min(Math.max(e,t),n)}function S(e){return Math.max(e.selectionStart,e.selectionEnd)}var R={thousandSeparator:v.oneOfType([v.string,v.oneOf([!0])]),decimalSeparator:v.string,allowedDecimalSeparators:v.arrayOf(v.string),thousandsGroupStyle:v.oneOf(["thousand","lakh","wan"]),decimalScale:v.number,fixedDecimalScale:v.bool,displayType:v.oneOf(["input","text"]),prefix:v.string,suffix:v.string,format:v.oneOfType([v.string,v.func]),removeFormatting:v.func,mask:v.oneOfType([v.string,v.arrayOf(v.string)]),value:v.oneOfType([v.number,v.string]),defaultValue:v.oneOfType([v.number,v.string]),isNumericString:v.bool,customInput:v.elementType,allowNegative:v.bool,allowEmptyFormatting:v.bool,allowLeadingZeros:v.bool,onValueChange:v.func,onKeyDown:v.func,onMouseUp:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,type:v.oneOf(["text","tel","password"]),isAllowed:v.func,renderText:v.func,getInputRef:v.oneOfType([v.func,v.shape({current:v.any})])},P={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:y,onChange:y,onKeyDown:y,onMouseUp:y,onFocus:y,onBlur:y,isAllowed:function(){return!0}},C=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=p(t).call(this,e))||"object"!=typeof o&&"function"!=typeof o?m(r):o;var a=e.defaultValue;n.validateProps();var c=n.formatValueProp(a);return n.state={value:c,numAsString:n.removeFormatting(c)},n.selectionBeforeInput={selectionStart:0,selectionEnd:0},n.onChange=n.onChange.bind(m(n)),n.onKeyDown=n.onKeyDown.bind(m(n)),n.onMouseUp=n.onMouseUp.bind(m(n)),n.onFocus=n.onFocus.bind(m(n)),n.onBlur=n.onBlur.bind(m(n)),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(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,a=n.numAsString,c=void 0===a?"":a;if(e!==t){this.validateProps();var i=this.formatNumString(c),s=void 0===t.value?i:this.formatValueProp(),u=this.removeFormatting(s),l=parseFloat(u),d=parseFloat(c);(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),a="-"===e[0];a&&(e=e.replace("-","")),r&&0===t&&(e=e.split(r)[0]);var c=(e=(e.match(o)||[]).join("").replace(r,".")).indexOf(".");return-1!==c&&(e="".concat(e.substring(0,c),".").concat(e.substring(c+1,e.length).replace(new RegExp(j(r),"g"),""))),a&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var n=this.props,r=n.format,o=n.decimalScale,a=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!a||0===o||t||r?"":"|"+j(a)),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){_(e,t),setTimeout((function(){e.value===n&&_(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,n){var r=this.props,o=r.prefix,a=r.suffix,c=r.format;if(""===e)return 0;if(t=k(t,0,e.length),!c){var i="-"===e[0];return k(t,o.length+(i?1:0),e.length-a.length)}if("function"==typeof c)return t;if("#"===c[t]&&O(e[t]))return t;if("#"===c[t-1]&&O(e[t-1]))return t;var s=c.indexOf("#");t=k(t,s,c.lastIndexOf("#")+1);for(var u=c.substring(t,c.length).indexOf("#"),l=t,d=t+(-1===u?0:u);l>s&&("#"!==c[l]||!O(e[l]));)l-=1;return!O(e[d])||"left"===n&&t!==s||t-l<d-t?O(e[l])?l+1:l:d}},{key:"getCaretPosition",value:function(e,t,n){var r,o,a=this.props.format,c=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 a||c||(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 a="-"===e[0];a&&(e=e.substring(1,e.length));var c=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==c&&c===e.length-o.length?e.substring(0,c):e,a&&(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,a=t.length;o<=a;o++){var c=t[o]||"",i=o===a?e.length:e.indexOf(c,n);if(-1===i){r=e;break}r+=e.substring(n,i),n=i+c.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,a=t.length;o<a;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,a=t.suffix,c=t.allowNegative,i=t.thousandsGroupStyle,s=this.getSeparators(),u=s.thousandSeparator,l=s.decimalSeparator,d=-1!==e.indexOf(".")||n&&r,f=w(e,c),p=f.beforeDecimal,b=f.afterDecimal,m=f.addNegation;return void 0!==n&&(b=E(b,n,r)),u&&(p=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)}(p,u,i)),o&&(p=o+p),a&&(b+=a),m&&(p="-"+p),e=p+(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,a=t.allowEmptyFormatting,c=this.props,i=c.value,s=void 0===i?e:i,u=c.isNumericString,l=!s&&0!==s;return l&&a&&(s=""),l&&!a?"":("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=w(e),a=o.beforeDecimal,c=o.afterDecimal,i=o.hasNagation,s=parseFloat("0.".concat(c||"0")).toFixed(t).split("."),u=a.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=E(s[1]||"",Math.min(t,c.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),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&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,a=n.suffix,c=n.decimalScale,i=n.fixedDecimalScale,s=this.getSeparators().decimalSeparator;return"string"==typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-a.length||c&&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,a=r.allowNegative,c=r.prefix,i=r.suffix,s=r.decimalScale,u=this.getSeparators(),l=u.allowedDecimalSeparators,d=u.decimalSeparator,f=this.state.numAsString||"",p=this.selectionBeforeInput,b=p.selectionStart,m=p.selectionEnd,g=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),h=g.start,v=g.end;if(!o&&h===v&&-1!==l.indexOf(n[b])){var y=0===s?"":d;return n.substr(0,b)+y+n.substr(b+1,n.length)}var O=o?0:c.length,j=t.length-(o?0:i.length);if(n.length>t.length||!n.length||h===v||0===b&&m===t.length||b===O&&m===j)return n;if(this.checkIfFormatGotDeleted(h,v,t)&&(n=t),!o){var E=this.removeFormatting(n),_=w(E,a),k=_.beforeDecimal,S=_.afterDecimal,R=_.addNegation,P=e<n.indexOf(d)+1;if(E.length<f.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,a=e.numAsString,c=e.caretPos,i=this.props.onValueChange,s=this.state.value;if(n)if(o){if(!c){var u=e.inputValue||n.value,l=S(n);n.value=t,c=this.getCaretPosition(u,t,l)}this.setPatchedCaretPosition(n,c,t)}else n.value=t;void 0===a&&(a=this.removeFormatting(t)),t!==s&&(this.setState({value:t,numAsString:a}),i(this.getValueObject(t,a)))}},{key:"onChange",value:function(e){var t=e.target,n=t.value,r=this.state,o=this.props,a=o.isAllowed,c=r.value||"",i=S(t);n=this.correctInputValue(i,c,n);var s=this.formatInput(n)||"",u=this.removeFormatting(s);a(this.getValueObject(s,u))||(s=c),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,a=t.allowLeadingZeros,c=n.numAsString,i=n.value;if(this.focusedElm=null,this.focusTimeout&&clearTimeout(this.focusTimeout),!r){isNaN(parseFloat(c))&&(c=""),a||(c=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):"")}(c));var s=this.formatNumString(c);if(s!==i)return this.updateValue({formattedValue:s,numAsString:c,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,a=n.selectionEnd,c=n.value,i=void 0===c?"":c,s=this.props,u=s.decimalScale,l=s.fixedDecimalScale,d=s.prefix,f=s.suffix,p=s.format,b=s.onKeyDown,m=void 0!==u&&l,g=this.getNumberRegex(!1,m),h=new RegExp("-"),v="string"==typeof p;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:a},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===a){var y=t,O=v?p.indexOf("#"):d.length,j=v?p.lastIndexOf("#")+1:i.length-f.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===p){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,a=void 0===o?"":o;if(n===r){var c=this.correctCaretPosition(a,n);c!==n&&this.setPatchedCaretPosition(t,c,a)}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,a=n.value,c=void 0===a?"":a,i=t.correctCaretPosition(c,r);i===r||0===r&&o===c.length||t.setPatchedCaretPosition(n,i,c),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.type,a=r.displayType,c=r.customInput,i=r.renderText,s=r.getInputRef,u=this.state.value,d=(e=this.props,t=R,n={},Object.keys(e).forEach((function(r){t[r]||(n[r]=e[r])})),n),p=f({inputMode:"numeric"},d,{type:o,value:u,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===a)return i?i(u)||null:l.a.createElement("span",f({},d,{ref:s}),u);if(c){var b=c;return l.a.createElement(b,f({},p,{ref:s}))}return l.a.createElement("input",f({},p,{ref:s}))}}])&&d(n.prototype,r),o&&d(n,o),t}(l.a.Component);C.propTypes=R,C.defaultProps=P;var x=C,N=n(4),I=n.n(N);n(90);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 A(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}t.a=function(e){var t=e.className,n=e.value,r=e.currency,a=e.onValueChange,c=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 u=I()("wc-block-formatted-money-amount",t),l=A(A(A({displayType:"text"},c),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}),d=a?function(e){var t=e.value*Math.pow(10,r.minorUnit);a(t)}:function(){};return React.createElement(x,o()({className:u},l,{value:i,onValueChange:d}))}},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(58);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(20),o=n(19);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(46);var o=n(51);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n(37),a=n.n(o),c=function(e){var t=Object(r.useRef)();return a()(e,t.current)||(t.current=e),t.current}},function(e,t){!function(){e.exports=this.wp.blocks}()},,function(e,t,n){"use strict";n(5);var r=n(4),o=n.n(r),a=n(0),c=n(31);n(157);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-totals-table-item",t)},React.createElement("span",{className:"wc-block-totals-table-item__label"},r),Object(a.isValidElement)(i)?React.createElement("div",{className:"wc-block-totals-table-item__value"},i):React.createElement(c.a,{className:"wc-block-totals-table-item__value",currency:n,displayType:"text",value:i}),React.createElement("div",{className:"wc-block-totals-table-item__description"},s))}},function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){"use strict";var r=n(32),o=n.n(r),a=n(33),c=n.n(a),i=n(19),s=n.n(i),u=n(34),l=n.n(u),d=n(35),f=n.n(d),p=n(21),b=n.n(p),m=n(6),g=n.n(m),h=(n(5),n(3)),v=n(1),y=n(8),O=function(e){var t=e.imageUrl,n=void 0===t?"".concat(y.A,"img/block-error.svg"):t,r=e.header,o=void 0===r?Object(v.__)("Oops!","woo-gutenberg-products-block"):r,a=e.text,c=void 0===a?Object(v.__)("There was an error loading the content.","woo-gutenberg-products-block"):a,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"},n&&React.createElement("img",{className:"wc-block-error__image",src:n,alt:""}),React.createElement("div",{className:"wc-block-error__content"},o&&React.createElement("p",{className:"wc-block-error__header"},o),c&&React.createElement("p",{className:"wc-block-error__text"},c),i&&React.createElement("p",{className:"wc-block-error__message"},u?u+" ":"",i)))};n(61);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 f()(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,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return e=t.call.apply(t,[this].concat(a)),g()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.header,n=e.imageUrl,r=e.showErrorMessage,o=e.text,a=e.errorMessagePrefix,c=this.state,i=c.errorMessage;return c.hasError?React.createElement(O,{errorMessage:r?i:null,header:t,imageUrl:n,text:o,errorMessagePrefix:a}):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){!function(){e.exports=this.ReactDOM}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(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.autop}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t){function n(e,t,n,r,o,a,c){try{var i=e[a](c),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,a){var c=e.apply(t,r);function i(e){n(c,o,a,i,s,"next",e)}function s(e){n(c,o,a,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(53);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,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),a=n(10),c=n.n(a),i=n(0),s=n(7),u=n(37),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 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){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 p=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)(p)},m=function(e){var t=e.children,n=Object(i.useState)({}),r=c()(n,2),a=r[0],u=r[1],d=Object(i.useCallback)((function(e){return a[e]}),[a]),b=Object(i.useCallback)((function(e){var t=a[e];return!t||t.hidden?"":"validate-error-".concat(e)}),[a]),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:f(f({},t),e)}))}),[]),v=Object(i.useCallback)((function(e,t){u((function(n){if(!n.hasOwnProperty(e))return n;var r=f(f({},n[e]),t);return l()(n[e],r)?n:f(f({},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]=f(f({},e[n]),{},{hidden:!1}))})),0===Object.values(t).length?e:f(f({},e),t)}))}),[]),hasValidationErrors:Object.keys(a).length>0,getValidationErrorId:b};return React.createElement(p.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(60);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,c){if(c!==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:a,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";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";n.d(t,"a",(function(){return u}));var r=n(6),o=n.n(r),a=n(111),c=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(a.b)(),t=e.notices,n=e.createNotice,r=e.removeNotice,o=e.createSnackbarNotice,i=e.setIsSuppressed,u=Object(c.useRef)(t);Object(c.useEffect)((function(){u.current=t}),[t]);var l=Object(c.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.map((function(t){return null!==e&&t.status!==e||r(t.id),!0}))},removeNotice:r}}),[r]),d=Object(c.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";var r=n(1),o=(n(5),n(4)),a=n.n(o),c=n(0);function i(){return Object(c.createElement)("span",{className:"components-spinner"})}n(150),t.a=function(e){var t=e.children,n=e.className,o=e.screenReaderLabel,c=e.showSpinner,s=void 0!==c&&c,u=e.isLoading;return void 0===u||u?React.createElement("div",{className:a()(n,"wc-block-loading-mask")},s&&React.createElement(i,null),React.createElement("div",{className:"wc-blocks-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)),a=r(n(73)),c=n(3),i=r(c),s=r(n(100)),u=r(n(19)),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=c.useState(!1)[1];return c.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return l.und(e)||l.nul(e)?t:e}function p(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,a(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 a;return l.und(t[r])?o({},n,((a={})[r]=e[r],a)):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 M(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:M,get manualFrameloop(){return N},injectManualFrameloop:function(e){N=e}}),D=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),T=!1,F=new Set,L=function e(){if(!T)return!1;var t=P(),n=F,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var c=a,i=!1,s=0;s<c.configs.length;s++){for(var u=c.configs[s],l=void 0,d=void 0,f=0;f<u.animatedValues.length;f++){var p=u.animatedValues[f];if(!p.done){var b=u.fromValues[f],m=u.toValues[f],g=p.lastPosition,h=m instanceof v,y=Array.isArray(u.initialVelocity)?u.initialVelocity[f]:u.initialVelocity;if(h&&(m=m.getValue()),u.immediate)p.setValue(m),p.done=!0;else if("string"!=typeof b&&"string"!=typeof m){if(void 0!==u.duration)g=b+u.easing((t-p.startTime)/u.duration)*(m-b),l=t>=p.startTime+u.duration;else if(u.decay)g=b+y/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-g)<.1)&&(m=g);else{d=void 0!==p.lastTime?p.lastTime:t,y=void 0!==p.lastVelocity?p.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,p.lastVelocity=y,p.lastTime=t}h&&!u.toValues[f].done&&(l=!1),l?(p.value!==m&&(g=m),p.done=!0):i=!0,p.setValue(g),p.lastPosition=g}else p.setValue(m),p.done=!0}}c.props.onFrame&&(c.values[u.name]=u.interpolation.getValue())}c.props.onFrame&&c.props.onFrame(c.values),i||(F.delete(c),c.stop(!0))}return F.size?N?N():_(e):T=!1,T};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,a=r.range||[0,1],c=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,a);return function(e,t,n,r,o,a,c,i,s){var u=s?s(e):e;if(u<t){if("identity"===c)return u;"clamp"===c&&(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=a(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,a[t],a[t+1],o[t],o[t+1],s,c,i,r.map)}}var U=function(e){function t(n,r,o,a){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof y&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=V(r,o,a),c}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 B=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}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 U(this,e,t,n)},t}(v),q=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new B(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 U(this,e,t)},t}(y),H=0,W=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=H++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,c=t.to,i=a(t,["delay","to"]);if(l.arr(c)||l.fun(c))this.queue.push(o({},i,{delay:r,to:c}));else if(c){var s={};Object.entries(c).forEach((function(e){var t,n=e[0],a=e[1],c=o({to:(t={},t[n]=a,t),delay:b(r,n)},i),u=s[c.delay]&&s[c.delay].to;s[c.delay]=o({},s[c.delay],c,{to:o({},u,c.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,a=e.to,c=void 0===a?{}:a;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(c)&&(n.merged=o({},n.merged,c))}));var r=this.local=++this.guid,c=this.localQueue=this.queue;this.queue=[],c.forEach((function(t,o){var i=t.delay,s=a(t,["delay"]),u=function(t){o===c.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),T||(T=!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,a(e,["delay"])),c=this.local,i=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,a=o({},r,m(r.to[t]));l.arr(a.config)&&(a.config=a.config[t]),i=i.then((function(){if(c===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},u=0;u<r.to.length;u++)s(u);else if(l.fun(r.to)){var d,f=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[f]),f++,c===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,a=void 0===r?{}:r,c=n.to,i=void 0===c?{}:c,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,a];a=y[0],i=y[1]}this.merged=o({},a,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],c=n[1],i=e[r]||{},s=l.num(c),d=l.str(c)&&!c.startsWith("#")&&!/\d/.test(c)&&!h[c],m=l.arr(c),y=!s&&!m&&!d,j=l.und(a[r])?c:a[r],w=s||m||d?c:1,_=b(u,r);O&&(w=O.animations[r].parent);var k,S=i.parent,R=i.interpolation,C=p(O?w.getPayload():w),x=c;y&&(x=E({range:[0,1],output:[c,c]})(1));var N,I=R&&R.getValue(),M=!l.und(S)&&i.animatedValues.some((function(e){return!e.done})),A=!l.equ(x,I),D=!l.equ(x,i.previous),T=!l.equ(_,i.config);if(g||D&&A||T){var F;if(s||d)S=R=i.parent||new B(j);else if(m)S=R=i.parent||new q(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 B(0);var V={output:[L,c]};i.interpolation?(R=i.interpolation,i.interpolation.updateConfig(V)):R=S.interpolate(V)}return C=p(O?w.getPayload():w),k=p(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=M?e.lastVelocity:void 0,e.lastTime=M?e.lastTime:void 0,e.startTime=P(),e.done=!1,e.animatedStyles.clear()})),b(v,r)&&S.setValue(y?w:c,!1),o({},e,((F={})[r]=o({},i,{name:r,parent:S,interpolation:R,animatedValues:k,toValues:C,previous:x,config:_,fromValues:p(S.getValue()),immediate:b(v,r),initialVelocity:f(_.velocity,0),clamp:f(_.clamp,!1),precision:f(_.precision,.01),tension:f(_.tension,170),friction:f(_.friction,26),mass:f(_.mass,1),duration:_.duration,easing:f(_.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}(),z=function(e,t){var n=c.useRef(!1),r=c.useRef(),o=l.fun(t),a=c.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 a=new W,c=o?b(t,r,a):t[r];return 0===r&&(n=c.ref),a.update(c),n||a.start(),a})),n]}),[e]),i=a[0],s=a[1];r.current=i;c.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=c.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]);c.useEffect((function(){n.current?o||u(t):s||r.current.forEach((function(e){return e.start()}))})),c.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,Y=function(e,t){return("function"==typeof t?e.map(t):p(t)).map(String)},$=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,c=a(e,["items","keys"]);return t=p(void 0!==t?t:null),o({items:t,keys:Y(t,r)},c)};function G(e,t){var n=function(){if(o){if(a>=r.length)return"break";c=r[a++]}else{if((a=r.next()).done)return"break";c=a.value}var n=c.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),a=0;for(r=o?r:r[Symbol.iterator]();;){var c;if("break"===n())break}e.current.forceUpdate()}var Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=g.transform(t)),n.payload=t,n}return s(t,e),t}(O),Q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},X="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(X,X,X)),te=new RegExp("rgba"+J(X,X,X,X)),ne=new RegExp("hsl"+J(X,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(X,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",X)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([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,a=se(o,r,e+1/3),c=se(o,r,e),i=se(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*c)<<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 fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ce.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[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|fe(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=ae.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]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(ue(de(n[1]),pe(n[2]),pe(n[3]))|fe(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(Q).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={};M((function(e){return new Z(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(Q),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,c=t.scrollLeft,i=a(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!==c&&(e.scrollLeft=c),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 f in i){var p=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,i[f])}}),(function(e){return e}));var we,Ee,_e=(we=function(e){return c.forwardRef((function(t,n){var r=d(),s=c.useRef(!0),u=c.useRef(null),f=c.useRef(null),p=c.useCallback((function(e){var t=u.current;u.current=new D(e,(function(){var e=!1;f.current&&(e=g.fn(f.current,u.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),c.useImperativeHandle(n,(function(){return I(f,s,r)})),p(t);var b,m=u.current.getValue(),h=(m.scrollTop,m.scrollLeft,a(m,["scrollTop","scrollLeft"])),v=(b=e,!l.fun(b)||b.prototype instanceof i.Component?function(e){return f.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 U(e,t,n)},t.Globals=A,t.useSpring=function(e){var t=l.fun(e),n=z(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=c.useRef(!1),r=l.fun(t),a=b(t),i=c.useRef(),s=z(e,(function(e,t){return 0===e&&(i.current=[]),i.current.push(t),o({},a,{config:b(a.config,e),attach:e>0&&function(){return i.current[e-1]}})})),u=s[0],d=s[1],f=s[2],p=c.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,c=i.current[r];return o({},e,{config:b(e.config||a.config,t),attach:c&&function(){return c}})}))}}),[e,a.reverse]);return c.useEffect((function(){n.current&&!r&&p(t)})),c.useEffect((function(){n.current=!0}),[]),r?[u,p,f]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),i=$(r),s=i.lazy,u=void 0!==s&&s,l=(i.unique,i.reset),f=void 0!==l&&l,p=(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=a(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=c.useRef(!1),w=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return c.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,c=a(e,["first","prevProps"]),i=$(t),s=i.items,u=i.keys,l=i.initial,d=i.from,f=i.enter,p=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=$(r),E=w.keys,_=w.items,k=o({},c.current),S=[].concat(c.deleted),R=Object.keys(k),P=new Set(R),C=new Set(u),x=u.filter((function(e){return!P.has(e)})),N=c.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)})),M=-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],a=n&&void 0!==l?"initial":"enter";k[e]={slot:a,originalKey:e,key:v?String(e):K++,item:o,trail:M+=h,config:b(y,o,a),from:b(n&&void 0!==l?l||{}:d,o),to:b(f,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:M+=h,config:b(y,n,"leave"),to:b(p,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:M+=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,a(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({},c,{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,a=e.config,c=e.trail,i=e.key,s=e.item;w.current.instances.has(i)||w.current.instances.set(i,new W);var l=w.current.instances.get(i),d=o({},y,{to:r,from:n,config:a,ref:v,onRest:function(n){w.current.mounted&&(e.destroyed&&(v||u||G(w,i),p&&p(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(v||u)&&w.current.deleted.length>0&&G(w),g&&g(s,t,n))},onStart:h&&function(){return h(s,t)},onFrame:m&&function(e){return m(s,t,e)},delay:c,reset:f&&"enter"===t});l.update(d),w.current.paused||l.start()})),c.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=c.useRef();c.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 a=e.current;if(a){var c=a.controllers;if(c.length){var i=n*t[r];c.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=z},function(e,t){!function(){e.exports=this.wp.wordcount}()},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(14),c=n.n(a),i=n(88),s=n(4),u=n.n(s),l=function(e){var t=e.className,n=e.size,r=c()(e,["className","size"]),a=u()("dashicon","dashicons-arrow-down-alt2",t);return React.createElement(i.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:a,width:n,height:n},r),React.createElement("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},d=function(e){var t=e.className,n=e.size,r=c()(e,["className","size"]),a=u()("dashicon","dashicons-arrow-down-alt2",t);return React.createElement(i.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:a,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"}))},f=n(0);t.a=function(e){let t=function(){return null};switch(e.icon){case"arrow-down-alt2":t=l;break;case"no-alt":t=d}return Object(f.createElement)(t,{size:e.size||20,className:e.className})}},,,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,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}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){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";var r=n(26),o=n(9),a=n(29),c=n(0),i=n(67),s=n(88);t.a=function(e){var t=e.icon,n=void 0===t?null:t,u=e.size,l=Object(a.a)(e,["icon","size"]),d=u||20;if("string"==typeof n)return Object(c.createElement)(i.a,Object(o.a)({icon:n,size:d},l));if(n&&i.a===n.type)return Object(c.cloneElement)(n,Object(r.a)({size:d},l));var f=u||24;if("function"==typeof n)return n.prototype instanceof c.Component?Object(c.createElement)(n,Object(r.a)({size:f},l)):n(Object(r.a)({size:f},l));if(n&&("svg"===n.type||n.type===s.a)){var p=Object(r.a)({width:f,height:f},n.props,l);return Object(c.createElement)(s.a,p)}return Object(c.isValidElement)(n)?Object(c.cloneElement)(n,Object(r.a)({size:f},l)):n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(15),o=n(12),a=n(109),c=n(16),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(a.a)(),n=t.isEditor,u=t.previewData,l=(null==u?void 0:u.previewCart)||{},d=e.shouldSelect,f=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 a=e(r.CART_STORE_KEY),u=a.getCartData(),f=a.getCartErrors(),p=a.getCartTotals(),b=!a.hasFinishedResolution("getCartData"),m=a.areShippingRatesLoading(),g=o(r.CART_STORE_KEY).receiveCart,h=Object(i.mapValues)(u.shippingAddress,(function(e){return Object(c.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:p,cartIsLoading:b,cartErrors:f,shippingAddress:h,shippingRates:u.shippingRates,shippingRatesLoading:m,hasShippingAddress:!!h.country,receiveCart:g}}),[d]);return f}},function(e,t,n){var r=n(101),o=n(102),a=n(52),c=n(103);e.exports=function(e){return r(e)||o(e)||a(e)||c()}},function(e,t,n){"use strict";var r=n(26),o=n(29),a=n(4),c=n.n(a),i=n(0);t.a=Object(i.forwardRef)((function(e,t){var n=e.href,a=e.target,s=e.isPrimary,u=e.isLarge,l=e.isSmall,d=e.isTertiary,f=e.isToggled,p=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=c()("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":f,"is-busy":p,"is-link":m,"is-destructive":g}),j=void 0===n||v?"button":"a",w="a"===j?{href:n,target:a}:{type:"button",disabled:v};return Object(i.createElement)(j,Object(r.a)({},w,y,{className:O,ref:t}))}))},function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(14),c=n.n(a),i=n(4),s=n.n(i);n(5),n(152);t.a=function(e){var t=e.children,n=e.className,r=e.headingLevel,a=c()(e,["children","className","headingLevel"]),i=s()("wc-block-component__title",n),u="h".concat(r);return React.createElement(u,o()({className:i},a),t)}},function(e,t,n){"use strict";var r=n(10),o=n.n(r),a=n(3),c=(n(5),n(4)),i=n.n(c),s=n(0),u=n(28),l=(n(123),Object(a.forwardRef)((function(e,t){var n=e.className,r=e.id,a=e.type,c=void 0===a?"text":a,l=e.ariaLabel,d=e.ariaDescribedBy,f=e.label,p=e.screenReaderLabel,b=e.disabled,m=e.help,g=e.autoComplete,h=void 0===g?"off":g,v=e.value,y=void 0===v?"":v,O=e.onChange,j=e.required,w=void 0!==j&&j,E=e.onBlur,_=void 0===E?function(){}:E,k=e.feedback,S=Object(s.useState)(!1),R=o()(S,2),P=R[0],C=R[1];return React.createElement("div",{className:i()("wc-block-text-input",n,{"is-active":P||y})},React.createElement("input",{type:c,id:r,value:y,ref:t,autoComplete:h,onChange:function(e){O(e.target.value)},onFocus:function(){return C(!0)},onBlur:function(){_(),C(!1)},"aria-label":l||f,disabled:b,"aria-describedby":m&&!d?r+"__help":d,required:w}),React.createElement(u.a,{label:f,screenReaderLabel:p||f,wrapperElement:"label",wrapperProps:{htmlFor:r},htmlFor:r}),!!m&&React.createElement("p",{id:r+"__help",className:"wc-block-text-input__help"},m),k)})));t.a=l},function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3);function o(e,t,n){void 0===n&&(n={});var o=n.maxWait,a=Object(r.useRef)(null),c=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),f=Object(r.useRef)(e);f.current=e;var p=Object(r.useCallback)((function(){clearTimeout(l.current),clearTimeout(a.current),a.current=null,c.current=[],l.current=null,u.current=!1}),[]);Object(r.useEffect)((function(){return function(){d.current=!0}}),[]);var b=Object(r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];c.current=e,clearTimeout(l.current),u.current&&(u.current=!1),l.current||!i||u.current||(f.current.apply(f,e),u.current=!0),l.current=setTimeout((function(){var t=!0;i&&u.current&&(t=!1),p(),!d.current&&s&&t&&f.current.apply(f,e)}),t),o&&!a.current&&s&&(a.current=setTimeout((function(){var e=c.current;p(),d.current||f.current.apply(null,e)}),o))}),[o,t,p,i,s]),m=Object(r.useCallback)((function(){l.current&&(f.current.apply(null,c.current),p())}),[p]);return[b,p,m]}},function(e,t,n){"use strict";var r=n(0),o=n(66),a=n(48),c=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]:"…",r=i(e),o=r.split(" ").splice(0,t).join(" ");return Object(a.autop)(s(o,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]:"…",o=i(e),c=o.slice(0,t);if(n)return Object(a.autop)(s(c,r));var u=c.match(/([\s]+)/g),l=u?u.length:0,d=o.slice(0,t+l);return Object(a.autop)(s(d,r))};t.a=function(e){var t=e.source,n=e.maxLength,i=void 0===n?15:n,s=e.countType,d=void 0===s?"words":s,f=e.className,p=void 0===f?"":f,b=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(a.autop)(e),i=Object(o.count)(r,n);if(i<=t)return r;var s=c(r),d=Object(o.count)(s,n);return d<=t?s:"words"===n?u(s,t):l(s,t,"characters_including_spaces"===n)}(t,i,d)}),[t,i,d]);return React.createElement(r.RawHTML,{className:p},b)}},function(e,t,n){"use strict";var r=n(10),o=n.n(r),a=n(0),c=n(4),i=n.n(c),s=(n(5),n(138)),u=n(88),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(164),t.a=function(e){var t=e.children,n=e.className,r=e.initialOpen,c=void 0!==r&&r,u=e.title,f=e.titleTag,p=void 0===f?"div":f,b=Object(a.useState)(c),m=o()(b,2),g=m[0],h=m[1];return React.createElement("div",{className:i()(n,"wc-blocks-components-panel")},React.createElement(p,null,React.createElement("button",{"aria-expanded":g,className:"wc-blocks-components-panel__button",onClick:function(){return h(!g)}},React.createElement(s.a,{"aria-hidden":"true",className:"wc-blocks-components-panel__button-icon",srcElement:g?l:d}),u)),React.createElement("div",{className:"wc-blocks-components-panel__content",hidden:!g},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(10),o=n.n(r),a=n(0),c=function(){var e=Object(a.useState)(),t=o()(e,2)[1];return function(e){return t((function(){throw e}))}}},function(e,t,n){"use strict";e.exports=n(120)},function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return D}));var r=n(10),o=n.n(r),a=n(0),c=n(75),i=n(12),s=n(37),u=n.n(s),l=n(127),d=n(15),f=n(16),p=n(63),b=function(e){return{country:e.country,state:e.state,city:e.city,postcode:e.postcode.replace(" ","").toUpperCase()}},m=function(){var e=Object(c.a)().shippingAddress,t=Object(a.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(p.a)().addErrorNotice,y=Object(a.useRef)(e);Object(a.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(f.decodeEntities)(r[e])})),{shippingAddress:O,setShippingAddress:s}},g=n(202),h=n(92),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(110),w=n(200),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(201),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},M=Object(a.createContext)(O),A=function(){return Object(a.useContext)(M)},D=function(e){var t=e.children,n=Object(h.b)().dispatchActions,r=Object(c.a)(),i=r.cartNeedsShipping,s=r.shippingRates,u=r.shippingRatesLoading,l=r.cartErrors,d=Object(a.useReducer)(I,C),f=o()(d,2),p=f[0],b=f[1],O=Object(a.useReducer)(j.b,{}),w=o()(O,2),A=w[0],D=w[1],T=m(),F=T.shippingAddress,L=T.setShippingAddress,V=Object(a.useRef)(A),U=Object(g.a)(s),B=U.selectShippingRate,q=U.selectedShippingRates,H=U.isSelectingRate,W=Object(a.useMemo)((function(){return{onShippingRateSuccess:R(D).onSuccess,onShippingRateFail:R(D).onFail,onShippingRateSelectSuccess:R(D).onSelectSuccess,onShippingRateSelectFail:R(D).onSelectFail}}),[D]);Object(a.useEffect)((function(){V.current=A}),[A]),Object(a.useEffect)((function(){u?n.incrementCalculating():n.decrementCalculating()}),[u,n]),Object(a.useEffect)((function(){H?n.incrementCalculating():n.decrementCalculating()}),[H,n]),Object(a.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 z=Object(a.useMemo)((function(){return{isPristine:p===C,isValid:p===C,hasInvalidAddress:p===x,hasError:p===N||p===x}}),[p]);Object(a.useEffect)((function(){u||0!==s.length&&!z.hasError||Object(P.a)(V.current,_,{hasInvalidAddress:z.hasInvalidAddress,hasError:z.hasError})}),[s,u,z.hasError,z.hasInvalidAddress]),Object(a.useEffect)((function(){!u&&s.length>0&&!z.hasError&&Object(P.a)(V.current,E,s)}),[s,u,z.hasError]),Object(a.useEffect)((function(){!H&&z.hasError&&Object(P.a)(V.current,S,{hasError:z.hasError,hasInvalidAddress:z.hasInvalidAddress})}),[q,H,z.hasError,z.hasInvalidAddress]),Object(a.useEffect)((function(){H||!q||z.hasError||Object(P.a)(V.current,k,q)}),[q,H,z.hasError]);var K={shippingErrorStatus:z,dispatchErrorStatus:b,shippingErrorTypes:v,shippingRates:s,setShippingRates:B,shippingRatesLoading:u,selectedRates:q,setSelectedRates:B,isSelectingRate:H,shippingAddress:F,setShippingAddress:L,onShippingRateSuccess:W.onShippingRateSuccess,onShippingRateFail:W.onShippingRateFail,onShippingRateSelectSuccess:W.onShippingRateSelectSuccess,onShippingRateSelectFail:W.onShippingRateSelectFail,needsShipping:i};return React.createElement(React.Fragment,null,React.createElement(M.Provider,{value:K},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(26),o=n(7),a=n(0),c=function(e){var t=Object(r.a)({},e,{role:"img","aria-hidden":"true",focusable:"false"});return Object(a.createElement)("svg",Object(o.omit)(t,"__unstableActive"))}},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",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",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",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",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",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",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",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",required:!0,hidden:!1,index:9}};t.a=o},function(e,t){},function(e,t,n){"use strict";t.a=function(e){var t=e.label,n=e.secondaryLabel,r=e.description,o=e.secondaryDescription,a=e.id;return React.createElement("div",{className:"wc-block-radio-control__option-layout"},React.createElement("div",{className:"wc-block-radio-control__label-group"},t&&React.createElement("span",{id:a?"".concat(a,"__label"):null,className:"wc-block-radio-control__label"},t),n&&React.createElement("span",{id:a?"".concat(a,"__secondary-label"):null,className:"wc-block-radio-control__secondary-label"},n)),React.createElement("div",{className:"wc-block-radio-control__description-group"},r&&React.createElement("span",{id:a?"".concat(a,"__description"):null,className:"wc-block-radio-control__description"},r),o&&React.createElement("span",{id:a?"".concat(a,"__secondary-description"):null,className:"wc-block-radio-control__secondary-description"},o)))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return Fe})),n.d(t,"a",(function(){return Le}));var r=n(6),o=n.n(r),a=n(10),c=n.n(a),i=n(0),s=n(1),u=n(63),l=n(199),d=n(2),f="pristine",p="idle",b="processing",m="complete",g="before_processing",h="after_processing",v=Object(d.getSetting)("checkoutData",{order_id:0,customer_id:0}),y={redirectUrl:"",status:f,hasError:!1,calculatingCount:0,orderId:v.order_id,customerId:v.customer_id,processingResponse:null},O="set_idle",j="set_pristine",w="set_redirect_url",E="set_checkout_complete",_="set_before_processing",k="set_after_processing",S="set_processing_response",R="set_checkout_is_processing",P="set_checkout_has_error",C="set_checkout_no_error",x="set_checkout_order_id",N="increment_calculating",I="decrement_calculating",M=j,A=O,D=R,T=_,F=k,L=S,V=w,U=E,B=P,q=C,H=N,W=I,z=x,K=function(){return{type:M}},Y=function(){return{type:A}},$=function(){return{type:D}},G=function(e){return{type:V,url:e}},Z=function(e){return{type:L,data:e}},Q=function(e){return{type:U,data:e}},X=function(){return{type:T}},J=function(){return{type:F}},ee=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?B:q;return{type:t}},te=function(){return{type:H}},ne=function(){return{type:W}},re=function(e){return{type:z,orderId:e}};function oe(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ce=j,ie=O,se=R,ue=_,le=k,de=S,fe=w,pe=E,be=P,me=C,ge=N,he=I,ve=x,ye=f,Oe=p,je=b,we=g,Ee=h,_e=m,ke=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,n=arguments.length>1?arguments[1]:void 0,r=n.url,o=n.type,a=n.orderId,c=n.data;switch(o){case ce:e=y;break;case ie:e=t.state!==Oe?ae(ae({},t),{},{status:Oe}):t;break;case fe:e=r!==t.url?ae(ae({},t),{},{redirectUrl:r}):t;break;case de:e=ae(ae({},t),{},{processingResponse:c});break;case pe:e=t.status!==_e?ae(ae({},t),{},{status:_e,redirectUrl:(null==c?void 0:c.redirectUrl)||t.redirectUrl}):t;break;case se:e=!1===(e=t.status!==je?ae(ae({},t),{},{status:je,hasError:!1}):t).hasError?e:ae(ae({},e),{},{hasError:!1});break;case ue:e=t.status!==we?ae(ae({},t),{},{status:we,hasError:!1}):t;break;case le:e=t.status!==Ee?ae(ae({},t),{},{status:Ee}):t;break;case be:e=t.hasError?t:ae(ae({},t),{},{hasError:!0}),e=t.status===je||t.status===we?ae(ae({},e),{},{status:Oe}):e;break;case me:e=t.hasError?ae(ae({},t),{},{hasError:!1}):t;break;case ge:e=ae(ae({},t),{},{calculatingCount:t.calculatingCount+1});break;case he:e=ae(ae({},t),{},{calculatingCount:Math.max(0,t.calculatingCount-1)});break;case ve:e=ae(ae({},t),{},{orderId:a})}return e!==t&&o!==ce&&e.status===ye&&(e.status=Oe),e},Se=n(110),Re=n(200),Pe="checkout_before_processing",Ce="checkout_after_processing_with_success",xe="checkout_after_processing_with_error",Ne=function(e){return{onCheckoutAfterProcessingWithSuccess:Object(Re.a)(Ce,e),onCheckoutAfterProcessingWithError:Object(Re.a)(xe,e),onCheckoutBeforeProcessing:Object(Re.a)(Pe,e)}},Ie=n(201),Me=n(54);function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te=Object(i.createContext)({isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,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){}},hasOrder:!1,isCart:!1}),Fe=function(){return Object(i.useContext)(Te)},Le=function(e){var t=e.children,n=e.redirectUrl,r=e.isCart,o=void 0!==r&&r;y.redirectUrl=n;var a=Object(i.useReducer)(ke,y),d=c()(a,2),f=d[0],v=d[1],O=Object(i.useReducer)(Se.b,{}),j=c()(O,2),w=j[0],E=j[1],_=Object(i.useRef)(w),k=Object(Me.b)().setValidationErrors,S=Object(u.a)(),R=S.addErrorNotice,P=S.removeNotices,C=f.calculatingCount>0,x=Object(l.a)(),N=x.isSuccessResponse,I=x.isErrorResponse,M=x.isFailResponse;Object(i.useEffect)((function(){_.current=w}),[w]);var A=Object(i.useMemo)((function(){return Ne(E).onCheckoutAfterProcessingWithSuccess}),[E]),D=Object(i.useMemo)((function(){return Ne(E).onCheckoutAfterProcessingWithError}),[E]),T=Object(i.useMemo)((function(){return Ne(E).onCheckoutBeforeProcessing}),[E]),F=Object(i.useMemo)((function(){return{resetCheckout:function(){v(K())},setRedirectUrl:function(e){v(G(e))},setHasError:function(e){v(ee(e))},incrementCalculating:function(){v(te())},decrementCalculating:function(){v(ne())},setOrderId:function(e){v(re(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=De(De({},e.payment_result),{},{message:e.message})),e.payment_result)&&((null===(n=e.payment_result)||void 0===n?void 0:n.redirect_url)&&v(G(e.payment_result.redirect_url)),v(Z((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))));v(J())}}}),[]);Object(i.useEffect)((function(){f.status===g&&(P("error"),Object(Ie.a)(_.current,Pe,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,n=e.validationErrors;R(t),k(n)})),v(Y())):v($())})))}),[f.status,k,R,P,v]),Object(i.useEffect)((function(){if(f.status===h){var e={redirectUrl:f.redirectUrl,orderId:f.orderId,customerId:f.customerId,customerNote:f.customerNote,processingResponse:f.processingResponse};f.hasError?Object(Ie.b)(_.current,xe,e).then((function(t){if(I(t)||M(t)){if(t.message){var n=t.messageContext?{context:t.messageContext}:void 0;R(t.message,n)}void 0!==t.retry&&!0!==t.retry?v(Q(t)):v(Y())}else{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");R(o,{id:"checkout"}),v(Y())}})):Object(Ie.b)(_.current,Ce,e).then((function(e){if(N(e))v(Q(e));else if(I(e)||M(e)){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;R(e.message,t)}e.retry?v(ee(!0)):v(Q(e))}else v(Q())}))}}),[f.status,f.hasError,f.redirectUrl,f.orderId,f.customerId,f.customerNote,f.processingResponse,F,R,I,M,N]);var L={onSubmit:Object(i.useCallback)((function(){v(X())}),[]),isComplete:f.status===m,isIdle:f.status===p,isCalculating:C,isProcessing:f.status===b,isBeforeProcessing:f.status===g,isAfterProcessing:f.status===h,hasError:f.hasError,redirectUrl:f.redirectUrl,onCheckoutAfterProcessingWithSuccess:A,onCheckoutAfterProcessingWithError:D,onCheckoutBeforeProcessing:T,dispatchActions:F,isCart:o,orderId:f.orderId,hasOrder:!!f.orderId,customerId:f.customerId};return React.createElement(Te.Provider,{value:L},t)}},,function(e,t,n){"use strict";var r=n(9),o=n(0),a=n(7);var c=function(e,t){return function(n){var r=e(n),o=n.displayName,c=void 0===o?n.name||"Component":o;return r.displayName="".concat(Object(a.upperFirst)(Object(a.camelCase)(t)),"(").concat(c,")"),r}},i=new WeakMap;function s(e){return Object(o.useMemo)((function(){return function(e){var t=i.get(e)||0;return i.set(e,t+1),t}(e)}),[e])}t.a=c((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";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 a(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 c(e,t,n,r,o,a,c,i){return a<e&&c>t||a>e&&c<t?0:a<=e&&i<=n||c>=t&&i>=n?a-e-r:c>t&&i<n||a<e&&i>n?c-t+o:0}t.a=function(e,t){var n=t.scrollMode,o=t.block,i=t.inline,s=t.boundary,u=t.skipOverflowHiddenElements,l="function"==typeof s?s:function(e){return e!==s};if(!r(e))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,f=[],p=e;r(p)&&l(p);){if((p=p.parentNode)===d){f.push(p);break}p===document.body&&a(p)&&!a(document.documentElement)||a(p,u)&&f.push(p)}for(var b=window.visualViewport?visualViewport.width:innerWidth,m=window.visualViewport?visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,O=v.width,j=v.top,w=v.right,E=v.bottom,_=v.left,k="start"===o||"nearest"===o?j:"end"===o?E:j+y/2,S="center"===i?_+O/2:"end"===i?w:_,R=[],P=0;P<f.length;P++){var C=f[P],x=C.getBoundingClientRect(),N=x.height,I=x.width,M=x.top,A=x.right,D=x.bottom,T=x.left;if("if-needed"===n&&j>=0&&_>=0&&E<=m&&w<=b&&j>=M&&E<=D&&_>=T&&w<=A)return R;var F=getComputedStyle(C),L=parseInt(F.borderLeftWidth,10),V=parseInt(F.borderTopWidth,10),U=parseInt(F.borderRightWidth,10),B=parseInt(F.borderBottomWidth,10),q=0,H=0,W="offsetWidth"in C?C.offsetWidth-C.clientWidth-L-U:0,z="offsetHeight"in C?C.offsetHeight-C.clientHeight-V-B:0;if(d===C)q="start"===o?k:"end"===o?k-m:"nearest"===o?c(h,h+m,m,V,B,h+k,h+k+y,y):k-m/2,H="start"===i?S:"center"===i?S-b/2:"end"===i?S-b:c(g,g+b,b,L,U,g+S,g+S+O,O),q=Math.max(0,q+h),H=Math.max(0,H+g);else{q="start"===o?k-M-V:"end"===o?k-D+B+z:"nearest"===o?c(M,D,N,V,B+z,k,k+y,y):k-(M+N/2)+z/2,H="start"===i?S-T-L:"center"===i?S-(T+I/2)+W/2:"end"===i?S-A+U+W:c(T,A,I,L,U+W,S,S+O,O);var K=C.scrollLeft,Y=C.scrollTop;k+=Y-(q=Math.max(0,Math.min(Y+q,C.scrollHeight-N+z))),S+=K-(H=Math.max(0,Math.min(K+H,C.scrollWidth-I+W)))}R.push({el:C,top:q,left:H})}return R}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(11),o=n.n(r),a=n(6),c=n.n(a),i=n(44),s=n(43);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}var d=function(e){var t=e.Block,n=e.selector,r=e.getProps,a=void 0===r?function(){}:r,c=e.getErrorBoundaryProps,u=void 0===c?function(){}:c,d=document.querySelectorAll(n);d.length&&Array.prototype.forEach.call(d,(function(e,n){var r=a(e,n),c=u(e,n),d=l(l({},e.dataset),r.attributes);e.classList.remove("is-loading"),Object(i.render)(React.createElement(s.a,c,React.createElement(t,o()({},r,{attributes:d}))),e)}))}},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,n){var r=n(53);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){},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(6),c=n.n(a),i=n(14),s=n.n(i),u=n(1),l=n(3),d=(n(5),n(4)),f=n.n(d),p=n(54),b=n(133),m=n(94),g=n(80);n(123);t.a=Object(m.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,a=e.ariaDescribedBy,i=e.errorId,d=e.validateOnMount,m=void 0===d||d,h=e.focusOnMount,v=void 0!==h&&h,y=e.onChange,O=e.showError,j=void 0===O||O,w=s()(e,["className","instanceId","id","ariaDescribedBy","errorId","validateOnMount","focusOnMount","onChange","showError"]),E=Object(l.useRef)(),_=Object(p.b)(),k=_.getValidationError,S=_.hideValidationError,R=_.setValidationErrors,P=_.clearValidationError,C=_.getValidationErrorId,x=r||"textinput-"+n;i=i||x;var N=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];E.current.checkValidity()?P(i):R(c()({},i,{message:E.current.validationMessage||Object(u.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}))};Object(l.useEffect)((function(){v&&E.current.focus()}),[v]),Object(l.useEffect)((function(){m&&N()}),[m]),Object(l.useEffect)((function(){return function(){P(i)}}),[i]);var I=k(i)||{},M=I.message&&!I.hidden,A=j&&M&&C(i)?C(i):a;return React.createElement(g.a,o()({className:f()(t,{"has-error":M}),id:x,onBlur:function(){N(!1)},feedback:j&&React.createElement(b.a,{propertyName:i}),ref:E,onChange:function(e){S(i),y(e)},ariaDescribedBy: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),a=n(10),c=n.n(a),i=n(0),s=n(2),u=n(7),l=n(16);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){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 p=Object(s.getSetting)("checkoutData",{}),b={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},m=Object(u.mapValues)(p.billing_address,(function(e){return Object(l.decodeEntities)(e)})),g=f(f({},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=c()(n,2),o=r[0],a=r[1],s={billingData:o,setBillingData:Object(i.useCallback)((function(e){a((function(t){return y(y({},t),e)}))}),[])};return React.createElement(O.Provider,{value:s},t)}},function(e,t,n){"use strict";var r=n(4),o=n.n(r),a=n(94),c=n(6),i=n.n(c),s=n(91),u=function(e){var t,n=e.checked,r=e.name,a=e.onChange,c=e.option,u=c.value,l=c.label,d=c.description,f=c.secondaryLabel,p=c.secondaryDescription;return React.createElement("label",{className:"wc-block-radio-control__option",htmlFor:"".concat(r,"-").concat(u)},React.createElement("input",{id:"".concat(r,"-").concat(u),className:"wc-block-radio-control__input",type:"radio",name:r,value:u,onChange:function(e){return a(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"),f),i()(t,"".concat(r,"-").concat(u,"__description"),d),i()(t,"".concat(r,"-").concat(u,"__secondary-description"),p),t))}),React.createElement(s.a,{id:"".concat(r,"-").concat(u),label:l,secondaryLabel:f,description:d,secondaryDescription:p}))};n(162),n(163),t.a=Object(a.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,a=e.selected,c=e.onChange,i=e.options,s=void 0===i?[]:i,l=r||n;return s.length&&React.createElement("div",{className:o()("wc-block-radio-control",t)},s.map((function(e){return React.createElement(u,{key:e.value,name:"radio-control-".concat(l),checked:e.value===a,option:e,onChange:function(t){c(t),"function"==typeof e.onChange&&e.onChange(t)}})})))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=(n(12),Object(r.createContext)({isEditor:!1,currentPostId:0,previewData:{}})),a=function(){return Object(r.useContext)(o)}},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),a=n(7);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var 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(a.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,a=t.id,c=t.callback,l=t.priority,d=new Map(e[r]);switch(n){case s:return d.set(a,{priority:l,callback:c}),i(i({},e),{},o()({},r,d));case u:return d.delete(a),i(i({},e),{},o()({},r,d))}return e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return D})),n.d(t,"a",(function(){return T}));var r=n(6),o=n.n(r),a=n(10),c=n.n(a),i=(n(5),n(0)),s=n(12),u=n(11),l=n.n(u),d=n(4),f=n.n(d),p=n(168),b=(n(99),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""}),m=function(e){var t=e.className,n=e.notices,r=D().removeNotice,o=f()(t,"wc-block-components-notices"),a=n.filter((function(e){return"snackbar"!==e.type}));return a.length?React.createElement("div",{className:o},a.map((function(e){return React.createElement(p.a,l()({key:"store-notice-"+e.id},e,{className:f()("wc-block-components-notices__notice","woocommerce-message",b(e)),onRemove:function(){e.isDismissible&&r(e.id)}}),e.content)}))):null},g=n(9),h=n(22),v=n.n(h);function y(e,t,n,r,o,a,c){try{var i=e[a](c),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}function O(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){y(a,r,o,c,i,"next",e)}function i(e){y(a,r,o,c,i,"throw",e)}c(void 0)}))}}var j=n(27),w=n(7),E=n(65),_=n(25),k=n(1),S=n(77);var R=Object(i.forwardRef)((function(e,t){var n=e.className,r=e.children,o=e.actions,a=void 0===o?[]:o,c=e.onRemove,s=void 0===c?w.noop:c;Object(i.useEffect)((function(){var e=setTimeout((function(){s()}),1e4);return function(){return clearTimeout(e)}}),[]);var u=f()(n,"components-snackbar");return a&&a.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),a=[a[0]]),Object(i.createElement)("div",{ref:t,className:u,onClick:s,tabIndex:"0",role:"button",onKeyPress:s,label:Object(k.__)("Dismiss this notice")},Object(i.createElement)("div",{className:"components-snackbar__content"},r,a.map((function(e,t){var n=e.label,r=e.onClick,o=e.url;return Object(i.createElement)(S.a,{key:t,href:o,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))}));var P=function(e){var t=e.notices,n=e.className,r=e.children,o=e.onRemove,a=void 0===o?w.noop:o,c=Object(_.useReducedMotion)(),s=Object(i.useState)((function(){return new WeakMap})),u=Object(j.a)(s,1)[0],l=Object(E.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=O(v.a.mark((function t(n){return v.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=O(v.a.mark((function e(t){return v.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:c});n=f()("components-snackbar-list",n);var d=function(e){return function(){return a(e.id)}};return Object(i.createElement)("div",{className:n},r,l.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(i.createElement)(E.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)(R,Object(g.a)({},Object(w.omit)(t,["content"]),{onRemove:d(t)}),t.content)))})))},C=n(63),x=n(109),N=function(){var e=Object(x.a)().isEditor,t=Object(C.a)(),n=t.notices,r=t.removeNotice,o=n.filter((function(e){return"snackbar"===e.type}));return e?null:React.createElement(P,{notices:o,className:"wc-block-notices__snackbar",onRemove:r})};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 M(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 A=Object(i.createContext)({notices:[],createNotice:function(e,t,n){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),D=function(){return Object(i.useContext)(A)},T=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.createNoticeContainer,a=void 0===o||o,u=e.context,l=void 0===u?"wc/core":u,d=Object(s.useDispatch)("core/notices"),f=d.createNotice,p=d.removeNotice,b=Object(i.useState)(!1),g=c()(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,M(M({},n),{},{context:n.context||l}))}),[f,l]),O=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;p(e,t)}),[p,l]),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,M(M({},t),{},{type:"snackbar"}))}),[y]),w={notices:Object(s.useSelect)((function(e){return{notices:e("core/notices").getNotices(l)}}),[l]).notices,createNotice:y,createSnackbarNotice:j,removeNotice:O,context:l,setIsSuppressed:v},E=h?null:React.createElement(m,{className:r,notices:w.notices}),_=h?null:React.createElement(N,null);return React.createElement(A.Provider,{value:w},a&&E,t,_)}},,,,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 a(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 c(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 c(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 c(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=a(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=a(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 d(e){return Math.abs(e)%1==.5}function f(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 p(e){return void 0===e}function b(){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 d(e)&&u(t)?t-1:t},HALF_EVEN:function(e){var t=Math.round(e);return d(e)?u(t)?t:t-1:t},HALF_UP:function(e){return Math.round(e)},HALF_DOWN:function(e){return d(e)?Math.floor(e):Math.round(e)},HALF_TOWARDS_ZERO:function(e){return d(e)?Math.sign(e)*Math.floor(Math.abs(e)):Math.round(e)},HALF_AWAY_FROM_ZERO:function(e){return d(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 m=b();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!p(e)})):[]},getMinimumFractionDigits:function(){var e=function(e){return"."===e};return p(this.getMatches().find(e))?0:this.getMatches()[m.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 p(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!p(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),f(o,t.headers),o.send()}))}(t(e.endpoint,{from:n,to:r}),{headers:e.headers})};return{getExchangeRate:function(r,a){return(c=e.endpoint,!Boolean(c)||"object"!==o(c)&&"function"!=typeof c||"function"!=typeof c.then?n(r,a):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 a=e(t[1]);Object.entries(a).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:a})]}));var c}}}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 j=b(),w=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,a=n.precision;O(r),O(a);var c=e.globalLocale,i=e.globalFormat,s=e.globalRoundingMode,u=e.globalFormatRoundingMode,l=Object.assign({},e.globalExchangeRatesApi),d=function(t){var n=Object.assign({},Object.assign({},{amount:r,currency:o,precision:a},t),Object.assign({},{locale:this.locale},t));return Object.assign(e({amount:n.amount,currency:n.currency,precision:n.precision}),{locale:n.locale})},f=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||c},setLocale:function(e){return d.call(this,{locale:e})},getPrecision:function(){return a},convertPrecision:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return O(e),d.call(this,{amount:j.round(j.multiply(this.getAmount(),Math.pow(10,j.subtract(e,this.getPrecision()))),t),precision:e})},add:function(t){f.call(this,t);var n=e.normalizePrecision([this,t]);return d.call(this,{amount:j.add(n[0].getAmount(),n[1].getAmount()),precision:n[0].getPrecision()})},subtract:function(t){f.call(this,t);var n=e.normalizePrecision([this,t]);return d.call(this,{amount:j.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 d.call(this,{amount:j.round(j.multiply(this.getAmount(),e),t)})},divide:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return d.call(this,{amount:j.round(j.divide(this.getAmount(),e),t)})},percentage:function(e){return y(e),this.multiply(j.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 j.add(e,t)})),r=this.getAmount(),o=e.map((function(e){var o=Math.floor(j.divide(j.multiply(t.getAmount(),e),n));return r=j.subtract(r,o),d.call(t,{amount:o})})),a=0;r>0;)e[a]>0&&(o[a]=o[a].add(d.call(this,{amount:1})),r=j.subtract(r,1)),a+=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,a=n.propertyPath,c=void 0===a?l.propertyPath||"rates.{{to}}":a,i=n.headers,u=void 0===i?l.headers:i,f=n.roundingMode,b=void 0===f?s:f,m=Object.assign({},{endpoint:o,propertyPath:c,headers:u,roundingMode:b});return h(m).getExchangeRate(this.getCurrency(),e).then((function(n){return v(!p(n),'No rate was found for the destination currency "'.concat(e,'".'),TypeError),d.call(t,{amount:j.round(j.multiply(t.getAmount(),parseFloat(n)),m.roundingMode),currency:e})}))},equalsTo:function(e){return this.hasSameAmount(e)&&this.hasSameCurrency(e)},lessThan:function(t){f.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()<n[1].getAmount()},lessThanOrEqual:function(t){f.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()<=n[1].getAmount()},greaterThan:function(t){f.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()>n[1].getAmount()},greaterThanOrEqual:function(t){f.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!==j.modulo(this.getAmount(),Math.pow(10,a))},hasCents:function(){return 0!==j.modulo(this.getAmount(),Math.pow(10,a))},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 j.divide(this.getAmount(),Math.pow(10,a))},toRoundedUnit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=Math.pow(10,e);return j.divide(j.round(j.multiply(this.toUnit(),n),t),n)},toObject:function(){return{amount:r,currency:o,precision:a}},toJSON:function(){return this.toObject()}}}),{defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2},r,i);t.a=w},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return m}));var r=n(6),o=n.n(r),a=n(20),c=n.n(a),i=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}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}var l,d,f={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,d=i.CURRENCY.symbolPosition,{left:l,left_space:" "+l,right:"",right_space:""}[d]||""),suffix:function(e,t){return{left:"",left_space:"",right:e,right_space:" "+e}[t]||""}(i.CURRENCY.symbol,i.CURRENCY.symbolPosition)},p=function(e){if(!e||"object"!==c()(e))return f;var t=e.currency_code,n=e.currency_symbol,r=e.currency_thousand_separator,o=e.currency_decimal_separator,a=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 o?o:".",minorUnit:Number.isFinite(a)?a:2,prefix:"string"==typeof i?i:"$",suffix:"string"==typeof s?s:""}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(u({},f),e)},m=function(e,t){if(""===e||void 0===e)return"";var n=parseInt(e,10);if(!Number.isFinite(n))return"";var r=b(t),o=n/Math.pow(10,r.minorUnit),a=r.prefix+o+r.suffix,c=document.createElement("textarea");return c.innerHTML=a,c.value}},function(e,t,n){"use strict";var r=n(0),o=n(2),a=n(15),c=n(12);t.a=function(e){return function(t){var n;return n=Object(r.useRef)(Object(o.getSetting)("restApiRoutes")),Object(c.useSelect)((function(e,t){if(n.current){var r=e(a.SCHEMA_STORE_KEY),o=r.isResolving,c=r.hasFinishedResolution,i=t.dispatch(a.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])||c("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' => '
|
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' => 'c07cb8fcd3650610f80dbbae2da9cf44');
|
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 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={10: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.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="";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([838,2,0,1]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},105:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(8),c=r.n(n),o=r(204),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.map((function(t){return null!==e&&t.status!==e||n(t.id),!0}))},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})}},106:function(e,t,r){"use strict";var n=r(0),c=r(1),o=(r(2),r(7)),a=r.n(o),i=r(517);r(492);t.a=function(e){var t=e.children,r=e.className,o=e.screenReaderLabel,s=e.showSpinner,u=void 0!==s&&s,l=e.isLoading;return void 0===l||l?Object(n.createElement)("div",{className:a()(r,"wc-block-loading-mask")},u&&Object(n.createElement)(i.a,null),Object(n.createElement)("div",{className:"wc-blocks-loading-mask__children","aria-hidden":!0},t),Object(n.createElement)("span",{className:"screen-reader-text"},o||Object(c.__)("Loading…","woo-gutenberg-products-block"))):t}},107:function(e,t){!function(){e.exports=this.wp.wordcount}()},129:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(39),c=r(35),o=r(202),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(),g=!o.hasFinishedResolution("getCartData"),m=o.areShippingRatesLoading(),f=c(n.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:g,cartErrors:p,shippingAddress:O,shippingRates:u.shippingRates,shippingRatesLoading:m,hasShippingAddress:!!O.country,receiveCart:f}}),[b]);return p}},13:function(e,t){!function(){e.exports=this.wp.apiFetch}()},130:function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},131:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(23),a=r.n(o),i=r(0),s=r(7),u=r.n(s);r(2),r(494);t.a=function(e){var t=e.children,r=e.className,n=e.headingLevel,o=a()(e,["children","className","headingLevel"]),s=u()("wc-block-component__title",r),l="h".concat(n);return Object(i.createElement)(l,c()({className:s},o),t)}},137:function(e,t,r){"use strict";var n=r(11),c=r.n(n),o=r(0),a=r(9),i=(r(2),r(7)),s=r.n(i),u=r(44),l=(r(282),Object(a.forwardRef)((function(e,t){var r=e.className,n=e.id,a=e.type,i=void 0===a?"text":a,l=e.ariaLabel,b=e.ariaDescribedBy,p=e.label,d=e.screenReaderLabel,g=e.disabled,m=e.help,f=e.autoComplete,O=void 0===f?"off":f,j=e.value,h=void 0===j?"":j,v=e.onChange,y=e.required,_=void 0!==y&&y,w=e.onBlur,E=void 0===w?function(){}:w,k=e.feedback,S=Object(o.useState)(!1),P=c()(S,2),N=P[0],C=P[1];return Object(o.createElement)("div",{className:s()("wc-block-text-input",r,{"is-active":N||h})},Object(o.createElement)("input",{type:i,id:n,value:h,ref:t,autoComplete:O,onChange:function(e){v(e.target.value)},onFocus:function(){return C(!0)},onBlur:function(){E(),C(!1)},"aria-label":l||p,disabled:g,"aria-describedby":m&&!b?n+"__help":b,required:_}),Object(o.createElement)(u.a,{label:p,screenReaderLabel:d||p,wrapperElement:"label",wrapperProps:{htmlFor:n},htmlFor:n}),!!m&&Object(o.createElement)("p",{id:n+"__help",className:"wc-block-text-input__help"},m),k)})));t.a=l},14:function(e,t){!function(){e.exports=this.wp.blocks}()},146:function(e,t,r){"use strict";var n=r(0),c=r(107),o=r(77),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]:"…",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]:"…",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,g=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},g)}},147:function(e,t,r){"use strict";var n=r(11),c=r.n(n),o=r(0),a=r(7),i=r.n(a),s=(r(2),r(58)),u=r(63),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"}));r(505),t.a=function(e){var t=e.children,r=e.className,n=e.initialOpen,a=void 0!==n&&n,u=e.title,p=e.titleTag,d=void 0===p?"div":p,g=Object(o.useState)(a),m=c()(g,2),f=m[0],O=m[1];return Object(o.createElement)("div",{className:i()(r,"wc-blocks-components-panel")},Object(o.createElement)(d,null,Object(o.createElement)("button",{"aria-expanded":f,className:"wc-blocks-components-panel__button",onClick:function(){return O(!f)}},Object(o.createElement)(s.a,{"aria-hidden":"true",className:"wc-blocks-components-panel__button-icon",srcElement:f?l:b}),u)),Object(o.createElement)("div",{className:"wc-blocks-components-panel__content",hidden:!f},t))}},148: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}))}}},149:function(e,t,r){"use strict";r.d(t,"b",(function(){return R})),r.d(t,"a",(function(){return A}));var n=r(11),c=r.n(n),o=r(0),a=r(129),i=r(35),s=r(48),u=r.n(s),l=r(516),b=r(39),p=r(33),d=r(105),g=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(o.useState)(e),r=c()(t,2),n=r[0],s=r[1],m=Object(l.a)(n,400),f=c()(m,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()(g(e),g(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(n).forEach((function(e){v[e]=Object(p.decodeEntities)(n[e])})),{shippingAddress:v,setShippingAddress:s}},f=r(802),O=r(162),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},y=r(203),_=r(800),w="shipping_rates_success",E="shipping_rates_fail",k="shipping_rate_select_success",S="shipping_rate_select_fail",P=function(e){return{onSuccess:Object(_.a)(w,e),onFail:Object(_.a)(E,e),onSelectSuccess:Object(_.a)(k,e),onSelectFail:Object(_.a)(S,e)}},N=r(801),C=j.NONE,M=j.INVALID_ADDRESS,D=j.UNKNOWN,x=function(e,t){var r=t.type;return Object.values(j).includes(r)?r:e},I=Object(o.createContext)(v),R=function(){return Object(o.useContext)(I)},A=function(e){var t=e.children,r=Object(O.b)().dispatchActions,n=Object(a.a)(),i=n.cartNeedsShipping,s=n.shippingRates,u=n.shippingRatesLoading,l=n.cartErrors,b=Object(o.useReducer)(x,C),p=c()(b,2),d=p[0],g=p[1],v=Object(o.useReducer)(y.b,{}),_=c()(v,2),R=_[0],A=_[1],L=m(),T=L.shippingAddress,z=L.setShippingAddress,U=Object(o.useRef)(R),q=Object(f.a)(s),V=q.selectShippingRate,F=q.selectedShippingRates,Y=q.isSelectingRate,B=Object(o.useMemo)((function(){return{onShippingRateSuccess:P(A).onSuccess,onShippingRateFail:P(A).onFail,onShippingRateSelectSuccess:P(A).onSelectSuccess,onShippingRateSelectFail:P(A).onSelectFail}}),[A]);Object(o.useEffect)((function(){U.current=R}),[R]),Object(o.useEffect)((function(){u?r.incrementCalculating():r.decrementCalculating()}),[u,r]),Object(o.useEffect)((function(){Y?r.incrementCalculating():r.decrementCalculating()}),[Y,r]),Object(o.useEffect)((function(){l.length>0&&l.some((function(e){return!(!e.code||!Object.values(h).includes(e.code))}))?g({type:M}):g({type:C})}),[l]);var Q=Object(o.useMemo)((function(){return{isPristine:d===C,isValid:d===C,hasInvalidAddress:d===M,hasError:d===D||d===M}}),[d]);Object(o.useEffect)((function(){u||0!==s.length&&!Q.hasError||Object(N.a)(U.current,E,{hasInvalidAddress:Q.hasInvalidAddress,hasError:Q.hasError})}),[s,u,Q.hasError,Q.hasInvalidAddress]),Object(o.useEffect)((function(){!u&&s.length>0&&!Q.hasError&&Object(N.a)(U.current,w,s)}),[s,u,Q.hasError]),Object(o.useEffect)((function(){!Y&&Q.hasError&&Object(N.a)(U.current,S,{hasError:Q.hasError,hasInvalidAddress:Q.hasInvalidAddress})}),[F,Y,Q.hasError,Q.hasInvalidAddress]),Object(o.useEffect)((function(){Y||!F||Q.hasError||Object(N.a)(U.current,k,F)}),[F,Y,Q.hasError]);var H={shippingErrorStatus:Q,dispatchErrorStatus:g,shippingErrorTypes:j,shippingRates:s,setShippingRates:V,shippingRatesLoading:u,selectedRates:F,setSelectedRates:V,isSelectingRate:Y,shippingAddress:T,setShippingAddress:z,onShippingRateSuccess:B.onShippingRateSuccess,onShippingRateFail:B.onShippingRateFail,onShippingRateSelectSuccess:B.onShippingRateSelectSuccess,onShippingRateSelectFail:B.onShippingRateSelectFail,needsShipping:i};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(I.Provider,{value:H},t))}},15:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},153:function(e,t,r){"use strict";var n=r(1),c={first_name:{label:Object(n.__)("First name","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("First name (optional)","woo-gutenberg-products-block"),autocomplete:"given-name",required:!0,hidden:!1,index:1},last_name:{label:Object(n.__)("Last name","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Last name (optional)","woo-gutenberg-products-block"),autocomplete:"family-name",required:!0,hidden:!1,index:2},company:{label:Object(n.__)("Company","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Company (optional)","woo-gutenberg-products-block"),autocomplete:"organization",required:!1,hidden:!1,index:3},address_1:{label:Object(n.__)("Address","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Address (optional)","woo-gutenberg-products-block"),autocomplete:"address-line1",required:!0,hidden:!1,index:4},address_2:{label:Object(n.__)("Apartment, suite, etc.","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Apartment, suite, etc. (optional)","woo-gutenberg-products-block"),autocomplete:"address-line2",required:!1,hidden:!1,index:5},country:{label:Object(n.__)("Country/Region","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Country/Region (optional)","woo-gutenberg-products-block"),autocomplete:"country",required:!0,hidden:!1,index:6},city:{label:Object(n.__)("City","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("City (optional)","woo-gutenberg-products-block"),autocomplete:"address-level2",required:!0,hidden:!1,index:7},state:{label:Object(n.__)("State/County","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("State/County (optional)","woo-gutenberg-products-block"),autocomplete:"address-level1",required:!0,hidden:!1,index:8},postcode:{label:Object(n.__)("Postal code","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Postal code (optional)","woo-gutenberg-products-block"),autocomplete:"postal-code",required:!0,hidden:!1,index:9}};t.a=c},159:function(e,t,r){"use strict";var n=r(0);t.a=function(e){var t=e.label,r=e.secondaryLabel,c=e.description,o=e.secondaryDescription,a=e.id;return Object(n.createElement)("div",{className:"wc-block-radio-control__option-layout"},Object(n.createElement)("div",{className:"wc-block-radio-control__label-group"},t&&Object(n.createElement)("span",{id:a?"".concat(a,"__label"):null,className:"wc-block-radio-control__label"},t),r&&Object(n.createElement)("span",{id:a?"".concat(a,"__secondary-label"):null,className:"wc-block-radio-control__secondary-label"},r)),Object(n.createElement)("div",{className:"wc-block-radio-control__description-group"},c&&Object(n.createElement)("span",{id:a?"".concat(a,"__description"):null,className:"wc-block-radio-control__description"},c),o&&Object(n.createElement)("span",{id:a?"".concat(a,"__secondary-description"):null,className:"wc-block-radio-control__secondary-description"},o)))}},160:function(e,t,r){"use strict";var n=r(0),c=r(63),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},162:function(e,t,r){"use strict";r.d(t,"b",(function(){return Te})),r.d(t,"a",(function(){return ze}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=r(1),u=r(105),l=r(799),b=r(3),p="pristine",d="idle",g="processing",m="complete",f="before_processing",O="after_processing",j=Object(b.getSetting)("checkoutData",{order_id:0,customer_id:0}),h={redirectUrl:"",status:p,hasError:!1,calculatingCount:0,orderId:j.order_id,customerId:j.customer_id,processingResponse:null},v="set_idle",y="set_pristine",_="set_redirect_url",w="set_checkout_complete",E="set_before_processing",k="set_after_processing",S="set_processing_response",P="set_checkout_is_processing",N="set_checkout_has_error",C="set_checkout_no_error",M="set_checkout_order_id",D="increment_calculating",x="decrement_calculating",I=y,R=v,A=P,L=E,T=k,z=S,U=_,q=w,V=N,F=C,Y=D,B=x,Q=M,H=function(){return{type:I}},W=function(){return{type:R}},G=function(){return{type:A}},K=function(e){return{type:U,url:e}},$=function(e){return{type:z,data:e}},Z=function(e){return{type:q,data:e}},J=function(){return{type:L}},X=function(){return{type:T}},ee=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?V:F;return{type:t}},te=function(){return{type:Y}},re=function(){return{type:B}},ne=function(e){return{type:Q,orderId:e}};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 oe(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 ae=y,ie=v,se=P,ue=E,le=k,be=S,pe=_,de=w,ge=N,me=C,fe=D,Oe=x,je=M,he=p,ve=d,ye=g,_e=f,we=O,Ee=m,ke=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,r=arguments.length>1?arguments[1]:void 0,n=r.url,c=r.type,o=r.orderId,a=r.data;switch(c){case ae:e=h;break;case ie:e=t.state!==ve?oe(oe({},t),{},{status:ve}):t;break;case pe:e=n!==t.url?oe(oe({},t),{},{redirectUrl:n}):t;break;case be:e=oe(oe({},t),{},{processingResponse:a});break;case de:e=t.status!==Ee?oe(oe({},t),{},{status:Ee,redirectUrl:(null==a?void 0:a.redirectUrl)||t.redirectUrl}):t;break;case se:e=!1===(e=t.status!==ye?oe(oe({},t),{},{status:ye,hasError:!1}):t).hasError?e:oe(oe({},e),{},{hasError:!1});break;case ue:e=t.status!==_e?oe(oe({},t),{},{status:_e,hasError:!1}):t;break;case le:e=t.status!==we?oe(oe({},t),{},{status:we}):t;break;case ge:e=t.hasError?t:oe(oe({},t),{},{hasError:!0}),e=t.status===ye||t.status===_e?oe(oe({},e),{},{status:ve}):e;break;case me:e=t.hasError?oe(oe({},t),{},{hasError:!1}):t;break;case fe:e=oe(oe({},t),{},{calculatingCount:t.calculatingCount+1});break;case Oe:e=oe(oe({},t),{},{calculatingCount:Math.max(0,t.calculatingCount-1)});break;case je:e=oe(oe({},t),{},{orderId:o})}return e!==t&&c!==ae&&e.status===he&&(e.status=ve),e},Se=r(203),Pe=r(800),Ne="checkout_before_processing",Ce="checkout_after_processing_with_success",Me="checkout_after_processing_with_error",De=function(e){return{onCheckoutAfterProcessingWithSuccess:Object(Pe.a)(Ce,e),onCheckoutAfterProcessingWithError:Object(Pe.a)(Me,e),onCheckoutBeforeProcessing:Object(Pe.a)(Ne,e)}},xe=r(801),Ie=r(95);function Re(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 Ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Le=Object(i.createContext)({isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,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){}},hasOrder:!1,isCart:!1}),Te=function(){return Object(i.useContext)(Le)},ze=function(e){var t=e.children,r=e.redirectUrl,n=e.isCart,c=void 0!==n&&n;h.redirectUrl=r;var o=Object(i.useReducer)(ke,h),b=a()(o,2),p=b[0],j=b[1],v=Object(i.useReducer)(Se.b,{}),y=a()(v,2),_=y[0],w=y[1],E=Object(i.useRef)(_),k=Object(Ie.b)().setValidationErrors,S=Object(u.a)(),P=S.addErrorNotice,N=S.removeNotices,C=p.calculatingCount>0,M=Object(l.a)(),D=M.isSuccessResponse,x=M.isErrorResponse,I=M.isFailResponse;Object(i.useEffect)((function(){E.current=_}),[_]);var R=Object(i.useMemo)((function(){return De(w).onCheckoutAfterProcessingWithSuccess}),[w]),A=Object(i.useMemo)((function(){return De(w).onCheckoutAfterProcessingWithError}),[w]),L=Object(i.useMemo)((function(){return De(w).onCheckoutBeforeProcessing}),[w]),T=Object(i.useMemo)((function(){return{resetCheckout:function(){j(H())},setRedirectUrl:function(e){j(K(e))},setHasError:function(e){j(ee(e))},incrementCalculating:function(){j(te())},decrementCalculating:function(){j(re())},setOrderId:function(e){j(ne(e))},setAfterProcessing:function(e){var t,r,n,c;(!e.payment_result&&e.message&&200!==(null==e||null===(t=e.data)||void 0===t?void 0:t.status)&&(e.payment_result=Ae(Ae({},e.payment_result),{},{message:e.message})),e.payment_result)&&((null===(r=e.payment_result)||void 0===r?void 0:r.redirect_url)&&j(K(e.payment_result.redirect_url)),j($((n=e.payment_result,c={message:(null==n?void 0:n.message)||"",paymentStatus:n.payment_status,paymentDetails:{}},Array.isArray(n.payment_details)&&n.payment_details.forEach((function(e){var t=e.key,r=e.value;c.paymentDetails[t]=r})),c))));j(X())}}}),[]);Object(i.useEffect)((function(){p.status===f&&(N("error"),Object(xe.a)(E.current,Ne,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,r=e.validationErrors;P(t),k(r)})),j(W())):j(G())})))}),[p.status,k,P,N,j]),Object(i.useEffect)((function(){if(p.status===O){var e={redirectUrl:p.redirectUrl,orderId:p.orderId,customerId:p.customerId,customerNote:p.customerNote,processingResponse:p.processingResponse};p.hasError?Object(xe.b)(E.current,Me,e).then((function(t){if(x(t)||I(t)){if(t.message){var r=t.messageContext?{context:t.messageContext}:void 0;P(t.message,r)}void 0!==t.retry&&!0!==t.retry?j(Z(t)):j(W())}else{var n,c=(null===(n=e.processingResponse)||void 0===n?void 0:n.message)||Object(s.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");P(c,{id:"checkout"}),j(W())}})):Object(xe.b)(E.current,Ce,e).then((function(e){if(D(e))j(Z(e));else if(x(e)||I(e)){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;P(e.message,t)}e.retry?j(ee(!0)):j(Z(e))}else j(Z())}))}}),[p.status,p.hasError,p.redirectUrl,p.orderId,p.customerId,p.customerNote,p.processingResponse,T,P,x,I,D]);var z={onSubmit:Object(i.useCallback)((function(){j(J())}),[]),isComplete:p.status===m,isIdle:p.status===d,isCalculating:C,isProcessing:p.status===g,isBeforeProcessing:p.status===f,isAfterProcessing:p.status===O,hasError:p.hasError,redirectUrl:p.redirectUrl,onCheckoutAfterProcessingWithSuccess:R,onCheckoutAfterProcessingWithError:A,onCheckoutBeforeProcessing:L,dispatchActions:T,isCart:c,orderId:p.orderId,hasOrder:!!p.orderId,customerId:p.customerId};return Object(i.createElement)(Le.Provider,{value:z},t)}},17:function(e,t){!function(){e.exports=this.wp.url}()},179:function(e,t,r){"use strict";var n=r(20),c=r.n(n),o=r(26),a=r.n(o),i=r(19),s=r.n(i),u=r(21),l=r.n(u),b=r(22),p=r.n(b),d=r(12),g=r.n(d),m=r(8),f=r.n(m),O=r(0),j=(r(2),r(9)),h=r(1),v=r(5),y=function(e){var t=e.imageUrl,r=void 0===t?"".concat(v.Q,"img/block-error.svg"):t,n=e.header,c=void 0===n?Object(h.__)("Oops!","woo-gutenberg-products-block"):n,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"},r&&Object(O.createElement)("img",{className:"wc-block-error__image",src:r,alt:""}),Object(O.createElement)("div",{className:"wc-block-error__content"},c&&Object(O.createElement)("p",{className:"wc-block-error__header"},c),a&&Object(O.createElement)("p",{className:"wc-block-error__text"},a),i&&Object(O.createElement)("p",{className:"wc-block-error__message"},u?u+" ":"",i)))};r(345);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 r,n=g()(e);if(t){var c=g()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return p()(this,r)}}var w=function(e){l()(r,e);var t=_(r);function r(){var e;c()(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)),f()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(r,[{key:"render",value:function(){var e=this.props,t=e.header,r=e.imageUrl,n=e.showErrorMessage,c=e.text,o=e.errorMessagePrefix,a=this.state,i=a.errorMessage;return a.hasError?Object(O.createElement)(y,{errorMessage:n?i:null,header:t,imageUrl:r,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}}}]),r}(j.Component);w.defaultProps={showErrorMessage:!0};t.a=w},187:function(e,t,r){"use strict";r.d(t,"c",(function(){return d})),r.d(t,"b",(function(){return g})),r.d(t,"a",(function(){return m}));var n=r(8),c=r.n(n),o=r(54),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:""}},g=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=g(t),c=r/Math.pow(10,n.minorUnit),o=n.prefix+c+n.suffix,a=document.createElement("textarea");return a.innerHTML=o,a.value}},188:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(23),s=r.n(i),u=r(0),l=r(1),b=r(9),p=(r(2),r(7)),d=r.n(p),g=r(95),m=r(260),f=r(182),O=r(137);r(282);t.a=Object(f.a)((function(e){var t=e.className,r=e.instanceId,n=e.id,o=e.ariaDescribedBy,i=e.errorId,p=e.validateOnMount,f=void 0===p||p,j=e.focusOnMount,h=void 0!==j&&j,v=e.onChange,y=e.showError,_=void 0===y||y,w=s()(e,["className","instanceId","id","ariaDescribedBy","errorId","validateOnMount","focusOnMount","onChange","showError"]),E=Object(b.useRef)(),k=Object(g.b)(),S=k.getValidationError,P=k.hideValidationError,N=k.setValidationErrors,C=k.clearValidationError,M=k.getValidationErrorId,D=n||"textinput-"+r;i=i||D;var x=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];E.current.checkValidity()?C(i):N(a()({},i,{message:E.current.validationMessage||Object(l.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}))};Object(b.useEffect)((function(){h&&E.current.focus()}),[h]),Object(b.useEffect)((function(){f&&x()}),[f]),Object(b.useEffect)((function(){return function(){C(i)}}),[i]);var I=S(i)||{},R=I.message&&!I.hidden,A=_&&R&&M(i)?M(i):o;return Object(u.createElement)(O.a,c()({className:d()(t,{"has-error":R}),id:D,onBlur:function(){x(!1)},feedback:_&&Object(u.createElement)(m.a,{propertyName:i}),ref:E,onChange:function(e){P(i),v(e)},ariaDescribedBy:A},w))}))},199:function(e,t,r){"use strict";r.d(t,"b",(function(){return y})),r.d(t,"a",(function(){return _}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=r(3),u=r(6),l=r(33);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(s.getSetting)("checkoutData",{}),g={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},m=Object(u.mapValues)(d.billing_address,(function(e){return Object(l.decodeEntities)(e)})),f=p(p({},g),m),O={billingData:g,setBillingData:function(){return null}};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 h(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}var v=Object(i.createContext)(O),y=function(){return Object(i.useContext)(v)},_=function(e){var t=e.children,r=Object(i.useState)(f),n=a()(r,2),c=n[0],o=n[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)}},200:function(e,t,r){"use strict";var n=r(0),c=r(7),o=r.n(c),a=r(182),i=r(8),s=r.n(i),u=r(159),l=function(e){var t,r=e.checked,c=e.name,a=e.onChange,i=e.option,l=i.value,b=i.label,p=i.description,d=i.secondaryLabel,g=i.secondaryDescription;return Object(n.createElement)("label",{className:"wc-block-radio-control__option",htmlFor:"".concat(c,"-").concat(l)},Object(n.createElement)("input",{id:"".concat(c,"-").concat(l),className:"wc-block-radio-control__input",type:"radio",name:c,value:l,onChange:function(e){return a(e.target.value)},checked:r,"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"),g),t))}),Object(n.createElement)(u.a,{id:"".concat(c,"-").concat(l),label:b,secondaryLabel:d,description:p,secondaryDescription:g}))};r(346),r(504),t.a=Object(a.a)((function(e){var t=e.className,r=e.instanceId,c=e.id,a=e.selected,i=e.onChange,s=e.options,u=void 0===s?[]:s,b=c||r;return u.length&&Object(n.createElement)("div",{className:o()("wc-block-radio-control",t)},u.map((function(e){return Object(n.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)}})})))}))},202: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(35),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)}},203: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}},204:function(e,t,r){"use strict";r.d(t,"b",(function(){return w})),r.d(t,"a",(function(){return E}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=(r(2),r(35)),u=r(10),l=r.n(u),b=r(7),p=r.n(b),d=r(881),g=(r(279),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""}),m=function(e){var t=e.className,r=e.notices,n=w().removeNotice,c=p()(t,"wc-block-components-notices"),o=r.filter((function(e){return"snackbar"!==e.type}));return o.length?Object(i.createElement)("div",{className:c},o.map((function(e){return Object(i.createElement)(d.a,l()({key:"store-notice-"+e.id},e,{className:p()("wc-block-components-notices__notice","woocommerce-message",g(e)),onRemove:function(){e.isDismissible&&n(e.id)}}),e.content)}))):null},f=r(885),O=r(105),j=r(202),h=function(){var e=Object(j.b)().isEditor,t=Object(O.a)(),r=t.notices,n=t.removeNotice,c=r.filter((function(e){return"snackbar"===e.type}));return e?null:Object(i.createElement)(f.a,{notices:c,className:"wc-block-notices__snackbar",onRemove:n})};function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _=Object(i.createContext)({notices:[],createNotice:function(e,t,r){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),w=function(){return Object(i.useContext)(_)},E=function(e){var t=e.children,r=e.className,n=void 0===r?"":r,c=e.createNoticeContainer,o=void 0===c||c,u=e.context,l=void 0===u?"wc/core":u,b=Object(s.useDispatch)("core/notices"),p=b.createNotice,d=b.removeNotice,g=Object(i.useState)(!1),f=a()(g,2),O=f[0],j=f[1],v=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]:{};p(e,t,y(y({},r),{},{context:r.context||l}))}),[p,l]),w=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;d(e,t)}),[d,l]),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]:{};v("default",e,y(y({},t),{},{type:"snackbar"}))}),[v]),k={notices:Object(s.useSelect)((function(e){return{notices:e("core/notices").getNotices(l)}}),[l]).notices,createNotice:v,createSnackbarNotice:E,removeNotice:w,context:l,setIsSuppressed:j},S=O?null:Object(i.createElement)(m,{className:n,notices:k.notices}),P=O?null:Object(i.createElement)(h,null);return Object(i.createElement)(_.Provider,{value:k},o&&S,t,P)}},221:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(23),a=r.n(o),i=r(0),s=r(63),u=r(7),l=r.n(u),b=function(e){var t=e.className,r=e.size,n=a()(e,["className","size"]),o=l()("dashicon","dashicons-arrow-down-alt2",t);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:o,width:r,height:r},n),Object(i.createElement)("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},p=function(e){var t=e.className,r=e.size,n=a()(e,["className","size"]),o=l()("dashicon","dashicons-arrow-down-alt2",t);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:o,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"}))};t.a=({icon:e,size:t=20,className:r,...n})=>{let c=()=>null;switch(e){case"arrow-down-alt2":c=b;break;case"no-alt":c=p}return Object(i.createElement)(c,{size:t,className:r,...n})}},24:function(e,t){!function(){e.exports=this.wp.blockEditor}()},248:function(e,t){!function(){e.exports=this.wp.deprecated}()},25:function(e,t){!function(){e.exports=this.wp.compose}()},254:function(e,t,r){"use strict";var n=r(64),c=r.n(n),o=r(0),a=r(1),i=r(4),s=r(35),u=r(42);t.a=function(e){var t=e.setPageId,r=e.pageId,n=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:n.title},Object(o.createElement)(i.SelectControl,{label:Object(a.__)("Link to","woo-gutenberg-products-block"),value:r,options:[{label:n.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}},255:function(e,t,r){"use strict";var n=r(0),c=r(1),o=(r(2),r(58)),a=r(284),i=r(160);r(491);t.a=function(e){var t=e.text;return Object(n.createElement)("div",{className:"wc-block-feedback-prompt"},Object(n.createElement)(o.a,{srcElement:a.a}),Object(n.createElement)("h2",{className:"wc-block-feedback-prompt__title"},Object(c.__)("Feedback?","woo-gutenberg-products-block")),Object(n.createElement)("p",{className:"wc-block-feedback-prompt__text"},t),Object(n.createElement)("a",{href:"https://ideas.woocommerce.com/forums/133476-woocommerce?category_id=384565",className:"wc-block-feedback-prompt__link",rel:"noreferrer noopener",target:"_blank"},Object(c.__)("Give us your feedback.","woo-gutenberg-products-block"),Object(n.createElement)(o.a,{srcElement:i.a,size:16})))}},259:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(23),a=r.n(o),i=r(0),s=r(289),u=(r(2),r(7)),l=r.n(u);r(503);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))}},260:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=r(95),o=(r(2),r(502),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-form-input-validation-error",role:"alert"},Object(n.createElement)("p",{id:b(s)},r))})},284:function(e,t,r){"use strict";var n=r(0),c=r(63),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.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},3:function(e,t){!function(){e.exports=this.wc.wcSettings}()},33:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},346:function(e,t,r){},35:function(e,t){!function(){e.exports=this.wp.data}()},350:function(e,t,r){"use strict";r.d(t,"b",(function(){return Oe})),r.d(t,"a",(function(){return je}));var n=r(11),c=r.n(n),o=r(0),a=r(8),i=r.n(a);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){i()(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={PRISTINE:"pristine",STARTED:"started",PROCESSING:"processing",ERROR:"has_error",FAILED:"failed",SUCCESS:"success",COMPLETE:"complete"},b=u(u({},l),{},{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"}),p={currentStatus:l.PRISTINE,shouldSavePaymentMethod:!1,paymentMethodData:{payment_method:""},hasSavedToken:!1,errorMessage:"",paymentMethods:{},expressPaymentMethods:{}},d={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:l,paymentMethodData:{},errorMessage:"",activePaymentMethod:"",setActivePaymentMethod:function(){},customerPaymentMethods:{},paymentMethods:{},expressPaymentMethods:{},paymentMethodsInitialized:!1,expressPaymentMethodsInitialized:!1,onPaymentProcessing:function(){},onPaymentSuccess:function(){},onPaymentFail:function(){}},g=r(54),m=r.n(g);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 O(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){i()(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 j=b.STARTED,h=b.ERROR,v=b.FAILED,y=b.SUCCESS,_=b.PROCESSING,w=b.PRISTINE,E=b.COMPLETE,k=b.SET_REGISTERED_PAYMENT_METHODS,S=b.SET_REGISTERED_EXPRESS_PAYMENT_METHODS,P=b.SET_SHOULD_SAVE_PAYMENT_METHOD,N=function(e){return!("object"!==m()(e)||!e.isSavedToken)},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.paymentMethodData,c=t.shouldSavePaymentMethod,o=t.errorMessage,a=t.paymentMethods;switch(r){case j:return e.currentStatus!==j?O(O({},e),{},{currentStatus:j}):e;case h:return e.currentStatus!==h?O(O({},e),{},{currentStatus:h,errorMessage:o||e.errorMessage}):e;case v:return e.currentStatus!==v?O(O({},e),{},{currentStatus:v,paymentMethodData:n||e.paymentMethodData,errorMessage:o||e.errorMessage}):e;case y:return e.currentStatus!==y?O(O({},e),{},{currentStatus:y,paymentMethodData:n||e.paymentMethodData,hasSavedToken:N(n)}):e;case _:return e.currentStatus!==_?O(O({},e),{},{currentStatus:_,errorMessage:""}):e;case E:return e.currentStatus!==E?O(O({},e),{},{currentStatus:E}):e;case w:return O(O({},p),{},{currentStatus:w,paymentMethods:O({},e.paymentMethods),expressPaymentMethods:O({},e.expressPaymentMethods),shouldSavePaymentMethod:e.shouldSavePaymentMethod});case k:return O(O({},e),{},{paymentMethods:O(O({},e.paymentMethods),a)});case S:return O(O({},e),{},{expressPaymentMethods:O(O({},e.expressPaymentMethods),a)});case P:return O(O({},e),{},{shouldSavePaymentMethod:c})}return e},M=b.ERROR,D=b.FAILED,x=b.SUCCESS,I=b.SET_REGISTERED_PAYMENT_METHODS,R=b.SET_REGISTERED_EXPRESS_PAYMENT_METHODS,A=b.SET_SHOULD_SAVE_PAYMENT_METHOD,L=function(e){return{type:e}},T=function(e){var t=e.errorMessage,r=e.paymentMethodData;return{type:D,errorMessage:t,paymentMethodData:r}},z=function(e){var t=e.paymentMethodData;return{type:x,paymentMethodData:t}},U=r(15),q=r.n(U),V=r(37),F=r.n(V),Y=r(1),B=r(130),Q=r(202),H=r(149),W=r(129),G=r(5);function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Z=function(e){if(G.k)throw new Error(Object(Y.sprintf)(Object(Y.__)("Problem with payment method initialization: %s","woo-gutenberg-products-block"),e.message))},J=function(e,t){var r=Object(o.useState)(!1),n=c()(r,2),a=n[0],s=n[1],u=Object(Q.b)().isEditor,l=Object(H.b)().shippingAddress,b=Object(W.a)(),p=b.cartTotals,d=b.cartNeedsShipping,g=Object(o.useRef)({cartTotals:p,cartNeedsShipping:d,shippingAddress:l});Object(o.useEffect)((function(){g.current={cartTotals:p,cartNeedsShipping:d,shippingAddress:l}}),[p,d,l]);var m=Object(o.useCallback)(F()(q.a.mark((function r(){var n,c,o,a,l;return q.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n={},o=function(e){n=$($({},n),{},i()({},e.name,e))},r.t0=q.a.keys(t);case 3:if((r.t1=r.t0()).done){r.next=24;break}if(a=r.t1.value,l=t[a],!u){r.next=9;break}return o(l),r.abrupt("continue",3);case 9:return r.prev=9,r.next=12,Promise.resolve(l.canMakePayment(g.current));case 12:if(!(c=r.sent)){r.next=17;break}if(!c.error){r.next=16;break}throw new Error(c.error.message);case 16:o(l);case 17:r.next=22;break;case 19:r.prev=19,r.t2=r.catch(9),Z(r.t2);case 22:r.next=3;break;case 24:e(n),s(!0);case 26:case"end":return r.stop()}}),r,null,[[9,19]])}))),[e,u,t]);return Object(o.useEffect)((function(){a||m()}),[m,a]),a},X=r(199),ee=r(162),te=r(203),re=r(800),ne="payment_processing",ce=r(801),oe=r(95),ae=r(3),ie=r(799),se=r(105),ue=l.STARTED,le=l.PROCESSING,be=l.COMPLETE,pe=l.PRISTINE,de=l.ERROR,ge=l.FAILED,me=l.SUCCESS,fe=Object(o.createContext)(d),Oe=function(){return Object(o.useContext)(fe)},je=function(e){var t=e.children,r=Object(X.b)().setBillingData,n=Object(ee.b)(),a=n.isProcessing,i=n.isIdle,s=n.isCalculating,u=n.hasError,b=Object(ie.a)(),d=b.isSuccessResponse,g=b.isErrorResponse,m=b.isFailResponse,f=b.noticeContexts,O=Object(o.useState)(""),j=c()(O,2),h=j[0],v=j[1],y=Object(o.useReducer)(te.b,{}),_=c()(y,2),w=_[0],E=_[1],k=Object(o.useRef)(w),S=Object(Q.b)(),P=S.isEditor,N=S.previewData,D=P&&(null==N?void 0:N.previewSavedPaymentMethods)?null==N?void 0:N.previewSavedPaymentMethods:Object(ae.getSetting)("customerPaymentMethods",{}),x=Object(o.useReducer)(C,p),U=c()(x,2),q=U[0],V=U[1],F=Object(o.useCallback)((function(e){v(e),V(L(pe))}),[v,V]),Y=Object(o.useCallback)((function(e){V(function(e){return{type:I,paymentMethods:e}}(e))}),[V]),W=Object(o.useCallback)((function(e){V(function(e){return{type:R,paymentMethods:e}}(e))}),[V]),G=J(Y,Object(B.getPaymentMethods)()),K=function(e){return J(e,Object(B.getExpressPaymentMethods)())}(W),$=Object(oe.b)().setValidationErrors,Z=Object(se.a)(),Oe=Z.addErrorNotice,je=Z.removeNotice,he=Object(H.b)().setShippingAddress,ve=Object(o.useCallback)((function(e){V({type:A,shouldSavePaymentMethod:e})}),[V]),ye=Object(o.useCallback)((function(e){e?Oe(e,{context:"wc/express-payment-area",id:"wc-express-payment-error"}):je("wc-express-payment-error","wc/express-payment-area")}),[Oe,je]);Object(o.useEffect)((function(){k.current=w}),[w]);var _e=Object(o.useMemo)((function(){return function(e){return{onPaymentProcessing:Object(re.a)(ne,e)}}(E).onPaymentProcessing}),[E]),we=Object(o.useMemo)((function(){return{isPristine:q.currentStatus===pe,isStarted:q.currentStatus===ue,isProcessing:q.currentStatus===le,isFinished:[de,ge,me].includes(q.currentStatus),hasError:q.currentStatus===de,hasFailed:q.currentStatus===ge,isSuccessful:q.currentStatus===me}}),[q.currentStatus]),Ee=Object(o.useCallback)((function(){return{started:function(){return V(L(ue))},processing:function(){return V(L(le))},completed:function(){return V(L(be))},error:function(e){return V(function(e){return{type:M,errorMessage:e}}(e))},failed:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;n&&r(n),V(T({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,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t&&r(t),null!==n&&(null==n?void 0:n.address)&&he(n.address),V(z({paymentMethodData:e}))}}}),[V,r,he]);Object(o.useEffect)((function(){!a||u||s||we.isFinished||Ee().processing()}),[a,u,s,we.isFinished,Ee]),Object(o.useEffect)((function(){i&&!we.isSuccessful&&V(L(pe))}),[i,we.isSuccessful]),Object(o.useEffect)((function(){u&&we.isSuccessful&&!q.hasSavedToken&&V(L(pe))}),[u,we.isSuccessful,q.hasSavedToken]),Object(o.useEffect)((function(){var e=Object.keys(q.paymentMethods);G&&!h&&e.length>0&&F(Object.keys(q.paymentMethods)[0])}),[h,G,q.paymentMethods,F]),Object(o.useEffect)((function(){we.isProcessing&&(je("wc-payment-error",f.PAYMENTS),Object(ce.b)(k.current,ne,{}).then((function(e){var t,r,n;if(d(e))Ee().success(null==e||null===(t=e.meta)||void 0===t?void 0:t.paymentMethodData,null==e||null===(r=e.meta)||void 0===r?void 0:r.billingData,null==e||null===(n=e.meta)||void 0===n?void 0:n.shippingData);else if(m(e)){var c,o;e.message&&e.message.length&&Oe(e.message,{id:"wc-payment-error",isDismissible:!1,context:(null==e?void 0:e.messageContext)||f.PAYMENTS}),Ee().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 g(e)?(e.message&&e.message.length&&Oe(e.message,{id:"wc-payment-error",isDismissible:!1,context:(null==e?void 0:e.messageContext)||f.PAYMENTS}),Ee().error(e.message),$(null==e?void 0:e.validationErrors)):Ee().success()})))}),[we.isProcessing,$,Ee,je,f.PAYMENTS,d,m,g,Oe]);var ke={setPaymentStatus:Ee,currentStatus:we,paymentStatuses:l,paymentMethodData:q.paymentMethodData,errorMessage:q.errorMessage,activePaymentMethod:h,setActivePaymentMethod:F,onPaymentProcessing:_e,customerPaymentMethods:D,paymentMethods:q.paymentMethods,expressPaymentMethods:q.expressPaymentMethods,paymentMethodsInitialized:G,expressPaymentMethodsInitialized:K,setExpressPaymentError:ye,shouldSavePayment:q.shouldSavePaymentMethod,setShouldSavePayment:ve};return Object(o.createElement)(fe.Provider,{value:ke},t)}},351:function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return b}));var n=r(11),c=r.n(n),o=r(0),a=(r(2),r(879)),i=r(7),s=r.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,r=e.className,n=void 0===r?"":r,i=function(){var e=Object(a.a)(),t=c()(e,2),r=t[0],n=t[1].width,o="";return n>700?o="is-large":n>520?o="is-medium":n>400?o="is-small":n&&(o="is-mobile"),[r,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()(n,p)},b,t))}},39:function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},4:function(e,t){!function(){e.exports=this.wp.components}()},42: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 g})),r.d(t,"i",(function(){return m})),r.d(t,"f",(function(){return f})),r.d(t,"c",(function(){return O})),r.d(t,"d",(function(){return j})),r.d(t,"g",(function(){return h})),r.d(t,"a",(function(){return v}));var n=r(8),c=r.n(n),o=r(17),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.t?100:0,catalog_visibility:"any",search:c,orderby:"title",order:"asc"},l=[Object(o.addQueryArgs)("/wc/store/products",b(b({},s),i))];return u.t&&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)})},g=function(){return i()({path:"wc/store/products/attributes"})},m=function(e){return i()({path:"wc/store/products/attributes/".concat(e,"/terms")})},f=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.w?100:0,orderby:u.w?"count":"name",order:u.w?"desc":"asc",search:n})];return u.w&&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")}))},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 r=1===t.filter((function(t){return t.title.raw===e.title.raw})).length;return e.title.raw+(r?"":" - ".concat(e.slug))}},44: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}var b=function(e){var t,r=e.label,n=e.screenReaderLabel,c=e.wrapperElement,i=e.wrapperProps,u=null!=r,b=null!=n;return!u&&b?(t=c||"span",i=l(l({},i),{},{className:s()(i.className,"screen-reader-text")}),Object(o.createElement)(t,i,n)):(t=c||a.Fragment,u&&b&&r!==n?Object(o.createElement)(t,i,Object(o.createElement)("span",{"aria-hidden":"true"},r),Object(o.createElement)("span",{className:"screen-reader-text"},n)):Object(o.createElement)(t,i,r))};b.defaultProps={wrapperProps:{}},t.a=b},48:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},485:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=window.Event||null,c=function(){if("function"==typeof n){var e=new n("wc_fragment_refresh",{bubbles:!0,cancelable:!0});document.body.dispatchEvent(e)}else{var t=document.createEvent("Event");t.initEvent("wc_fragment_refresh",!0,!0),document.body.dispatchEvent(t)}}},488: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,r.current]),r.current}},5:function(e,t,r){"use strict";r.d(t,"k",(function(){return c})),r.d(t,"G",(function(){return o})),r.d(t,"M",(function(){return a})),r.d(t,"x",(function(){return i})),r.d(t,"z",(function(){return s})),r.d(t,"l",(function(){return u})),r.d(t,"y",(function(){return l})),r.d(t,"B",(function(){return b})),r.d(t,"n",(function(){return p})),r.d(t,"A",(function(){return d})),r.d(t,"m",(function(){return g})),r.d(t,"C",(function(){return m})),r.d(t,"t",(function(){return f})),r.d(t,"w",(function(){return O})),r.d(t,"q",(function(){return j})),r.d(t,"r",(function(){return h})),r.d(t,"s",(function(){return v})),r.d(t,"j",(function(){return y})),r.d(t,"I",(function(){return _})),r.d(t,"N",(function(){return w})),r.d(t,"p",(function(){return E})),r.d(t,"o",(function(){return k})),r.d(t,"F",(function(){return S})),r.d(t,"c",(function(){return P})),r.d(t,"u",(function(){return N})),r.d(t,"v",(function(){return C})),r.d(t,"Q",(function(){return D})),r.d(t,"H",(function(){return x})),r.d(t,"a",(function(){return I})),r.d(t,"K",(function(){return R})),r.d(t,"b",(function(){return A})),r.d(t,"J",(function(){return L})),r.d(t,"h",(function(){return T})),r.d(t,"L",(function(){return q})),r.d(t,"g",(function(){return V})),r.d(t,"i",(function(){return F})),r.d(t,"E",(function(){return Y})),r.d(t,"D",(function(){return B})),r.d(t,"P",(function(){return Q})),r.d(t,"O",(function(){return H})),r.d(t,"d",(function(){return W})),r.d(t,"e",(function(){return G})),r.d(t,"f",(function(){return K})),r.d(t,"R",(function(){return Z})),r.d(t,"S",(function(){return J}));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),g=Object(n.getSetting)("default_height",500),m=Object(n.getSetting)("placeholderImgSrc",""),f=(Object(n.getSetting)("thumbnail_size",300),Object(n.getSetting)("isLargeCatalog")),O=Object(n.getSetting)("limitTags"),j=Object(n.getSetting)("hasProducts",!0),h=Object(n.getSetting)("hasTags",!0),v=Object(n.getSetting)("homeUrl",""),y=Object(n.getSetting)("couponsEnabled",!0),_=Object(n.getSetting)("shippingEnabled",!0),w=Object(n.getSetting)("taxesEnabled",!0),E=Object(n.getSetting)("displayItemizedTaxes",!1),k=(Object(n.getSetting)("displayShopPricesIncludingTax",!1),Object(n.getSetting)("displayCartPricesIncludingTax",!1)),S=Object(n.getSetting)("productCount",0),P=Object(n.getSetting)("attributes",[]),N=Object(n.getSetting)("isShippingCalculatorEnabled",!0),C=Object(n.getSetting)("isShippingCostHidden",!1),M=Object(n.getSetting)("woocommerceBlocksPhase",1),D=Object(n.getSetting)("wcBlocksAssetUrl",""),x=Object(n.getSetting)("shippingCountries",{}),I=Object(n.getSetting)("allowedCountries",{}),R=Object(n.getSetting)("shippingStates",{}),A=Object(n.getSetting)("allowedStates",{}),L=Object(n.getSetting)("shippingMethodsExist",!1),T=Object(n.getSetting)("checkoutShowLoginReminder",!0),z={id:0,title:"",permalink:""},U=Object(n.getSetting)("storePages",{shop:z,cart:z,checkout:z,privacy:z,terms:z}),q=U.shop.permalink,V=U.checkout.id,F=U.checkout.permalink,Y=U.privacy.permalink,B=U.privacy.title,Q=U.terms.permalink,H=U.terms.title,W=U.cart.id,G=U.cart.permalink,K=Object(n.getSetting)("checkoutAllowsGuest",!1),$=(Object(n.getSetting)("checkoutAllowsSignup",!1),r(14)),Z=function(e,t){if(M>2)return Object($.registerBlockType)(e,t)},J=function(e,t){if(M>1)return Object($.registerBlockType)(e,t)}},53:function(e,t){!function(){e.exports=this.wp.keycodes}()},55:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(23),s=r.n(i),u=r(0),l=r(152),b=r(7),p=r.n(b);r(246);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 g(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",t),d=g(g(g({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}))}},57:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),c=r(48),o=r.n(c),a=function(e){var t=Object(n.useRef)();return o()(e,t.current)||(t.current=e),t.current}},58:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(23),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))}},6:function(e,t){!function(){e.exports=this.lodash}()},62:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(7)),o=r.n(c),a=r(55);r(499);t.a=function(e){var t=e.className,r=e.currency,c=e.label,i=e.value,s=e.description;return Object(n.createElement)("div",{className:o()("wc-block-totals-table-item",t)},Object(n.createElement)("span",{className:"wc-block-totals-table-item__label"},c),Object(n.isValidElement)(i)?Object(n.createElement)("div",{className:"wc-block-totals-table-item__value"},i):Object(n.createElement)(a.a,{className:"wc-block-totals-table-item__value",currency:r,displayType:"text",value:i}),Object(n.createElement)("div",{className:"wc-block-totals-table-item__description"},s))}},73:function(e,t){!function(){e.exports=this.wp.dom}()},77:function(e,t){!function(){e.exports=this.wp.autop}()},783:function(e,t,r){"use strict";var n=r(0),c=r(63),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},797:function(e,t,r){},798:function(e,t,r){},799:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));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(){return{responseTypes:c,noticeContexts:o,isSuccessResponse:a,isErrorResponse:i,isFailResponse:s}}},800:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(203),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))}}}},801: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(54),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,d;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=b(t,r),i=!0,s=u(o),e.prev=3,s.s();case 5:if((l=s.n()).done){e.next=24;break}return p=l.value,e.prev=7,e.next=10,Promise.resolve(p.callback(n));case 10:if(d=e.sent,"object"!==a()(d)||void 0!==d.type){e.next=13;break}throw new Error("If you want to abort event emitter processing, your observer must return an object with a type property");case 13:if(!0===(i="object"!==a()(d)||d)){e.next=16;break}return e.abrupt("return",i);case 16:e.next=22;break;case 18:return e.prev=18,e.t0=e.catch(7),console.error(e.t0),e.abrupt("return",{type:"error"});case 22:e.next=5;break;case 24:e.next=29;break;case 26:e.prev=26,e.t1=e.catch(3),s.e(e.t1);case 29:return e.prev=29,s.f(),e.finish(29);case 32:return e.abrupt("return",i);case 33:case"end":return e.stop()}}),e,null,[[3,26,29,32],[7,18]])})));return function(t,r,n){return e.apply(this,arguments)}}()},802:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(35),s=r(0),u=r(39),l=r(148);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=function(e){var t=Object(l.a)(),r=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 r=a()(t,2),n=r[0],c=r[1];return e[n]=c,e}),{})}),[e]),n=Object(s.useState)(r),o=a()(n,2),b=o[0],d=o[1];Object(s.useEffect)((function(){d(r)}),[r]);var g=Object(i.useDispatch)(u.CART_STORE_KEY).selectShippingRate,m=Object(i.useSelect)((function(e){return e(u.CART_STORE_KEY).isShippingRateBeingSelected()}),[]);return{selectShippingRate:function(e,r){d(p(p({},b),{},c()({},r,e))),g(e,r).catch((function(e){t(e)}))},selectedShippingRates:b,isSelectingRate:m}}},804:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(8),c=r.n(n),o=r(1),a=r(35),i=r(39),s=r(95),u=r(33),l=r(129),b=r(105);function p(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 d=function(){var e=Object(l.a)(),t=e.cartCoupons,r=e.cartIsLoading,n=Object(b.a)(),d=n.addErrorNotice,g=n.addSnackbarNotice,m=Object(s.b)().setValidationErrors;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({appliedCoupons:t,isLoading:r},Object(a.useSelect)((function(e,t){var r=t.dispatch,n=e(i.CART_STORE_KEY),c=n.isApplyingCoupon(),a=n.isRemovingCoupon(),s=r(i.CART_STORE_KEY),l=s.applyCoupon,b=s.removeCoupon,p=s.receiveApplyingCoupon;return{applyCoupon:function(e){l(e).then((function(t){!0===t&&g(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){m({coupon:{message:Object(u.decodeEntities)(e.message),hidden:!1}}),p("")}))},removeCoupon:function(e){b(e).then((function(t){!0===t&&g(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,g]))}},805:function(e,t,r){"use strict";var n=r(0),c=r(7),o=r.n(c),a=(r(2),r(351));r(493);t.a=function(e){var t=e.children,r=e.className;return Object(n.createElement)(a.a,{className:o()("wc-block-sidebar-layout",r)},t)}},806:function(e,t,r){"use strict";var n=r(0),c=r(7),o=r.n(c);r(2);t.a=function(e){var t=e.children,r=e.className;return Object(n.createElement)("div",{className:o()("wc-block-main",r)},t)}},807:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(0),a=r(33),i=r(5);r(2);t.a=function(e){var t=e.image,r=void 0===t?{}:t,n={src:r.src||i.C,alt:Object(a.decodeEntities)(r.alt)||"",srcSet:r.srcset||"",sizes:r.sizes||""};return Object(o.createElement)("img",c()({},n,{alt:n.alt}))}},808:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(33));r(495);t.a=function(e){var t=e.name,r=e.permalink,o=e.disabled;return Object(n.createElement)("a",{className:"wc-block-product-name",href:r,tabIndex:o?-1:0},Object(c.decodeEntities)(t))}},809:function(e,t,r){"use strict";var n=r(0),c=r(1);r(2),r(496);t.a=function(e){var t=e.lowStockRemaining;return t?Object(n.createElement)("div",{className:"wc-block-low-stock-badge"},Object(c.sprintf)(Object(c.__)("%d left in stock","woo-gutenberg-products-block"),t)):null}},811:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(55),a=r(7),i=r.n(a);r(2),r(498);t.a=function(e){var t=e.className,r=e.currency,a=e.regularValue,s=e.value,u=Number.isFinite(a)&&a!==s;return Object(n.createElement)(n.Fragment,null,u&&Object(n.createElement)(n.Fragment,null,Object(n.createElement)("span",{className:"screen-reader-text"},Object(c.__)("Previous price:","woo-gutenberg-products-block")),Object(n.createElement)(o.a,{className:i()("wc-block-product-price--regular",t),currency:r,value:a}),Object(n.createElement)("span",{className:"screen-reader-text"},Object(c.__)("Discounted price:","woo-gutenberg-products-block"))),Object(n.createElement)(o.a,{className:i()("wc-block-product-price",t,{"is-discounted":u}),currency:r,value:s}))}},813:function(e,t,r){"use strict";var n=r(0),c=r(7),o=r.n(c);r(2);t.a=function(e){var t=e.children,r=e.className;return Object(n.createElement)("div",{className:o()("wc-block-sidebar",r)},t)}},814:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(5),a=(r(2),r(62));t.a=function(e){var t=e.currency,r=e.values,i=r.total_items,s=r.total_items_tax,u=parseInt(i,10),l=parseInt(s,10);return Object(n.createElement)(a.a,{currency:t,label:Object(c.__)("Subtotal","woo-gutenberg-products-block"),value:o.o?u+l:u})}},815:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(5),a=r(149),i=(r(2),r(62));t.a=function(e){var t=e.currency,r=e.values;if(!Object(a.b)().needsShipping)return null;var s=r.total_fees,u=r.total_fees_tax,l=parseInt(s,10);if(!l)return null;var b=parseInt(u,10);return Object(n.createElement)(i.a,{currency:t,label:Object(c.__)("Fees","woo-gutenberg-products-block"),value:o.o?l+b:l})}},816: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.length},c=function(e){return e.reduce((function(e,t){return e+t.shipping_rates.length}),0)}},817:function(e,t,r){"use strict";var n=r(0),c=r(1),o=(r(2),r(5)),a=r(62);t.a=function(e){var t=e.currency,r=e.values,i=r.total_tax,s=r.tax_lines;return o.N?o.p?Object(n.createElement)(n.Fragment,null,s.map((function(e,r){var c=e.name,o=e.price;return Object(n.createElement)(a.a,{key:"tax-line-".concat(r),currency:t,label:c,value:parseInt(o,10)})}))," "):Object(n.createElement)(a.a,{currency:t,label:Object(c.__)("Taxes","woo-gutenberg-products-block"),value:parseInt(i,10)}):null}},818:function(e,t,r){"use strict";var n=r(11),c=r.n(n),o=r(0),a=r(1),i=r(259),s=r(188),u=r(44),l=r(260),b=r(106),p=(r(2),r(182)),d=r(95),g=r(147);r(506);t.a=Object(p.a)((function(e){var t=e.instanceId,r=e.isLoading,n=void 0!==r&&r,p=e.initialOpen,m=void 0!==p&&p,f=e.onSubmit,O=void 0===f?function(){}:f,j=Object(o.useState)(""),h=c()(j,2),v=h[0],y=h[1],_=Object(o.useRef)(!1),w=Object(d.b)(),E=w.getValidationError,k=w.getValidationErrorId,S=E("coupon");Object(o.useEffect)((function(){_.current!==n&&(n||!v||S||y(""),_.current=n)}),[n,v,S]);var P="wc-block-coupon-code__input-".concat(t);return Object(o.createElement)(g.a,{className:"wc-block-coupon-code",initialOpen:m,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:P}),titleTag:"h2"},Object(o.createElement)(b.a,{screenReaderLabel:Object(a.__)("Applying coupon…","woo-gutenberg-products-block"),isLoading:n,showSpinner:!1},Object(o.createElement)("div",{className:"wc-block-coupon-code__content"},Object(o.createElement)("form",{className:"wc-block-coupon-code__form"},Object(o.createElement)(s.a,{id:P,errorId:"coupon",className:"wc-block-coupon-code__input",label:Object(a.__)("Enter code","woo-gutenberg-products-block"),value:v,ariaDescribedBy:k(P),onChange:function(e){y(e)},validateOnMount:!1,focusOnMount:!0,showError:!1}),Object(o.createElement)(i.a,{className:"wc-block-coupon-code__button",disabled:n||!v,showSpinner:n,onClick:function(e){e.preventDefault(),O(v)},type:"submit"},Object(a.__)("Apply","woo-gutenberg-products-block"))),Object(o.createElement)(l.a,{propertyName:"coupon",elementId:P}))))}))},819:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(5),a=r(181),i=r(55),s=(r(2),r(62));r(507);t.a=function(e){var t=e.currency,r=e.values,u=r.total_price,l=r.total_tax;return Object(n.createElement)(s.a,{className:"wc-block-totals-footer-item",currency:t,label:Object(c.__)("Total","woo-gutenberg-products-block"),value:parseInt(u,10),description:o.o&&Object(n.createElement)("p",{className:"wc-block-totals-footer-item-tax"},Object(a.a)(Object(c.__)("Including <TaxAmount/> in taxes","woo-gutenberg-products-block"),{TaxAmount:Object(n.createElement)(i.a,{className:"wc-block-totals-footer-item-tax-value",currency:t,displayType:"text",value:parseInt(l,10)})}))})}},82:function(e,t){!function(){e.exports=this.wp.a11y}()},821:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return a}));var n=r(350),c=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object(n.b)(),r=t.paymentMethods,c=t.expressPaymentMethods,o=t.paymentMethodsInitialized,a=t.expressPaymentMethodsInitialized;return e?{paymentMethods:c,isInitialized:a}:{paymentMethods:r,isInitialized:o}},o=function(){return c()},a=function(){return c(!0)}},838:function(e,t,r){"use strict";r.r(t);var n=r(0),c=r(1),o=r(24),a=r(58),i=r(783),s=r(7),u=r.n(s),l=r(5),b=r(255),p=r(4),d=(r(2),r(11)),g=r.n(d),m=r(25),f=(r(798),Object(m.withInstanceId)((function(e){var t=e.className,r=e.label,o=void 0===r?Object(c.__)("View","woo-gutenberg-products-block"):r,a=e.views,i=e.defaultView,s=e.instanceId,l=e.render,b=Object(n.useState)(i),d=g()(b,2),m=d[0],f=d[1],O=u()(t,"wc-block-view-switch-control"),j="wc-block-view-switch-control-"+s;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)("div",{className:O},Object(n.createElement)("label",{htmlFor:j,className:"wc-block-view-switch-control__label"},o+": "),Object(n.createElement)(p.ButtonGroup,{id:j},a.map((function(e){return Object(n.createElement)(p.Button,{key:e.value,isPrimary:m===e.value,isLarge:!0,"aria-pressed":m===e.value,onMouseDown:function(){m!==e.value&&f(e.value)},onClick:function(){m!==e.value&&f(e.value)}},e.name)})))),l(m))}))),O=r(254),j=r(179),h=r(202),v=r(149),y=r(162),_=r(350),w=function(e){var t=e.children,r=e.redirectUrl;return Object(n.createElement)(y.a,{redirectUrl:r,isCart:!0},Object(n.createElement)(v.a,null,Object(n.createElement)(_.a,null,t)))},E=r(181),k=r(3),S=Object(n.createElement)("img",{src:l.Q+"img/cart-preview.svg",alt:"",width:"230",height:"250",style:{width:"100%"}}),P=r(865),N=r(129),C=r(106),M=r(95),D=r(814),x=r(815),I=r(866),R=r(845),A=r(817),L=r(818),T=r(819),z=r(187),U=r(804),q=r(105),V=r(805),F=r(806),Y=r(813),B=r(131),Q=r(33),H=r(259),W=r(854),G=r(821),K=(r(820),function(e){return Object.values(e).reduce((function(e,t){return null!==t.icons&&(e=e.concat(t.icons)),e}),[])}),$=function(e){var t=e.link,r=Object(y.b)().isCalculating,o=Object(n.useState)(!1),a=g()(o,2),i=a[0],s=a[1],u=Object(G.b)().paymentMethods;return Object(n.createElement)("div",{className:"wc-block-cart__submit-container"},Object(n.createElement)(H.a,{className:"wc-block-cart__submit-button",href:t||l.i,disabled:r,onClick:function(){return s(!0)},showSpinner:i},Object(c.__)("Proceed to Checkout","woo-gutenberg-products-block")),Object(n.createElement)(W.a,{icons:K(u)}))},Z=function(e){var t=e.itemCount,r=void 0===t?1:t;return Object(n.createElement)(B.a,{headingLevel:"2"},Object(c.sprintf)(Object(c._n)("Your cart (%d item)","Your cart (%d items)",r,"woo-gutenberg-products-block"),r))},J=r(64),X=r.n(J),ee=r(54),te=r.n(ee),re=r(82),ne=r(53),ce=(r(810),function(e){var t=e.className,r=e.quantity,o=void 0===r?1:r,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,g=e.disabled,m=u()("wc-block-quantity-selector",t),f=void 0!==s,O=o>i,j=!f||o<s,h=Object(n.useCallback)((function(e){var t=void 0!==te()(e.key)?"ArrowDown"===e.key:e.keyCode===ne.DOWN,r=void 0!==te()(e.key)?"ArrowUp"===e.key:e.keyCode===ne.UP;t&&O&&(e.preventDefault(),b(o-1)),r&&j&&(e.preventDefault(),b(o+1))}),[o,b,j,O]);return Object(n.createElement)("div",{className:m},Object(n.createElement)("input",{className:"wc-block-quantity-selector__input",disabled:g,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(n.createElement)("button",{"aria-label":Object(c.__)("Reduce quantity","woo-gutenberg-products-block"),className:"wc-block-quantity-selector__button wc-block-quantity-selector__button--minus",disabled:g||!O,onClick:function(){var e=o-1;b(e),Object(re.speak)(Object(c.sprintf)(Object(c.__)("Quantity reduced to %s.","woo-gutenberg-products-block"),e))}},"-"),Object(n.createElement)("button",{"aria-label":Object(c.__)("Increase quantity","woo-gutenberg-products-block"),disabled:g||!j,className:"wc-block-quantity-selector__button wc-block-quantity-selector__button--plus",onClick:function(){var e=o+1;b(e),Object(re.speak)(Object(c.sprintf)(Object(c.__)("Quantity increased to %s.","woo-gutenberg-products-block"),e))}},"+"))}),oe=r(35),ae=r(39),ie=r(488),se=r(516),ue=r(485),le=r(63),be=Object(n.createElement)(le.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.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(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"})),pe=r(807),de=r(808),ge=r(809),me=r(863),fe=r(811),Oe=r(55),je=(r(812),function(e){var t=e.currency,r=e.saleAmount;return r?Object(n.createElement)("div",{className:"wc-block-sale-badge"},Object(E.a)(Object(c.__)("Save <price/>!","woo-gutenberg-products-block"),{price:Object(n.createElement)(Oe.a,{currency:t,value:r})})):null}),he=r(258),ve=function(e,t){return e.convertPrecision(t.minorUnit).getAmount()},ye=function(e){var t=e.lineItem,r=t.name,o=void 0===r?"":r,i=t.short_description,s=void 0===i?"":i,l=t.description,b=void 0===l?"":l,p=t.low_stock_remaining,d=void 0===p?null:p,m=t.quantity_limit,f=void 0===m?99:m,O=t.permalink,j=void 0===O?"":O,h=t.images,v=void 0===h?[]:h,_=t.variation,w=void 0===_?[]:_,E=t.prices,k=void 0===E?{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"}}:E,S=function(e){var t=e.key,r=void 0===t?"":t,c=e.quantity,o=void 0===c?1:c,a=Object(N.a)().cartErrors,i=Object(y.b)().dispatchActions,s=Object(n.useState)(o),u=g()(s,2),l=u[0],b=u[1],p=Object(se.a)(l,400),d=g()(p,1)[0],m=Object(ie.a)(d),f=Object(oe.useDispatch)(ae.CART_STORE_KEY),O=f.removeItemFromCart,j=f.changeCartItemQuantity,h=Object(oe.useSelect)((function(e){return!!r&&e(ae.CART_STORE_KEY).isItemPendingQuantity(r)}),[r]),v=Object(oe.useSelect)((function(e){return!!r&&e(ae.CART_STORE_KEY).isItemPendingDelete(r)}),[r]);return Object(n.useEffect)((function(){r&&Number.isFinite(m)&&j(r,d).then(ue.a)}),[d,r]),Object(n.useEffect)((function(){h?i.incrementCalculating():i.decrementCalculating()}),[h]),Object(n.useEffect)((function(){return v?i.incrementCalculating():!v&&a.length&&i.decrementCalculating(),function(){v&&i.decrementCalculating()}}),[v]),{isPendingDelete:v,quantity:l,changeQuantity:b,removeItem:function(){return!!r&&O(r).then((function(){Object(ue.a)()}))},cartItemQuantityErrors:a}}(t),P=S.quantity,C=S.changeQuantity,M=S.removeItem,D=S.isPendingDelete,x=Object(z.b)(k),I=Object(he.a)({amount:parseInt(k.raw_prices.regular_price,10),precision:parseInt(k.raw_prices.precision,10)}).multiply(P),R=Object(he.a)({amount:parseInt(k.raw_prices.price,10),precision:parseInt(k.raw_prices.precision,10)}).multiply(P),A=I.subtract(R),L=v.length?v[0]:{};return Object(n.createElement)("tr",{className:u()("wc-block-cart-items__row",{"is-disabled":D})},Object(n.createElement)("td",{className:"wc-block-cart-item__image","aria-hidden":!L.alt},Object(n.createElement)("a",{href:j,tabIndex:-1},Object(n.createElement)(pe.a,{image:L}))),Object(n.createElement)("td",{className:"wc-block-cart-item__product"},Object(n.createElement)(de.a,{permalink:j,name:o,disabled:D}),Object(n.createElement)(ge.a,{lowStockRemaining:d}),Object(n.createElement)(me.a,{shortDescription:s,fullDescription:b,variation:w})),Object(n.createElement)("td",{className:"wc-block-cart-item__quantity"},Object(n.createElement)(ce,{disabled:D,quantity:P,maximum:f,onChange:C,itemName:o}),Object(n.createElement)("button",{className:"wc-block-cart-item__remove-link",onClick:M,disabled:D},Object(c.__)("Remove item","woo-gutenberg-products-block")),Object(n.createElement)("button",{className:"wc-block-cart-item__remove-icon",onClick:M},Object(n.createElement)("span",{className:"screen-reader-text"},Object(c.__)("Remove item","woo-gutenberg-products-block")),Object(n.createElement)(a.a,{srcElement:be}))),Object(n.createElement)("td",{className:"wc-block-cart-item__total"},Object(n.createElement)(fe.a,{currency:x,regularValue:ve(I,x),value:ve(R,x)}),Object(n.createElement)(je,{currency:x,saleAmount:ve(A,x)})))},_e=X()(Array(3)).map((function(e,t){return Object(n.createElement)(ye,{key:t})})),we=function(e){var t=e.lineItems,r=void 0===t?[]:t,o=e.isLoading,a=void 0!==o&&o?_e:r.map((function(e){return Object(n.createElement)(ye,{key:e.key,lineItem:e})}));return Object(n.createElement)("table",{className:"wc-block-cart-items"},Object(n.createElement)("thead",null,Object(n.createElement)("tr",{className:"wc-block-cart-items__header"},Object(n.createElement)("th",{className:"wc-block-cart-items__header-image"},Object(n.createElement)("span",null,Object(c.__)("Product","woo-gutenberg-products-block"))),Object(n.createElement)("th",{className:"wc-block-cart-items__header-product"},Object(n.createElement)("span",null,Object(c.__)("Details","woo-gutenberg-products-block"))),Object(n.createElement)("th",{className:"wc-block-cart-items__header-quantity"},Object(n.createElement)("span",null,Object(c.__)("Quantity","woo-gutenberg-products-block"))),Object(n.createElement)("th",{className:"wc-block-cart-items__header-total"},Object(n.createElement)("span",null,Object(c.__)("Total","woo-gutenberg-products-block"))))),Object(n.createElement)("tbody",null,a))},Ee=(r(803),function(e){var t=e.attributes,r=t.isShippingCalculatorEnabled,o=t.isShippingCostHidden,a=Object(N.a)(),i=a.cartItems,s=a.cartTotals,b=a.cartIsLoading,p=a.cartItemsCount,d=a.cartItemErrors,g=a.cartNeedsShipping,m=Object(U.a)(),f=m.applyCoupon,O=m.removeCoupon,j=m.isApplyingCoupon,h=m.isRemovingCoupon,v=m.appliedCoupons,y=Object(q.a)().addErrorNotice;Object(n.useEffect)((function(){d.forEach((function(e){y(Object(Q.decodeEntities)(e.message),{isDismissible:!0,id:e.code})}))}),[d]);var _=Object(z.c)(s),w=u()("wc-block-cart",{"wc-block-cart--is-loading":b});return Object(n.createElement)(V.a,{className:w},Object(n.createElement)(F.a,{className:"wc-block-cart__main"},Object(n.createElement)(Z,{itemCount:p}),Object(n.createElement)(we,{lineItems:i,isLoading:b})),Object(n.createElement)(Y.a,{className:"wc-block-cart__sidebar"},Object(n.createElement)(B.a,{headingLevel:"2",className:"wc-block-cart__totals-title"},Object(c.__)("Cart totals","woo-gutenberg-products-block")),Object(n.createElement)(D.a,{currency:_,values:s}),Object(n.createElement)(x.a,{currency:_,values:s}),Object(n.createElement)(I.a,{cartCoupons:v,currency:_,isRemovingCoupon:h,removeCoupon:O,values:s}),g&&Object(n.createElement)(R.a,{showCalculator:r,showRatesWithoutAddress:!o,values:s,currency:_}),!l.o&&Object(n.createElement)(A.a,{currency:_,values:s}),l.j&&Object(n.createElement)(L.a,{onSubmit:f,isLoading:j}),Object(n.createElement)(T.a,{currency:_,values:s}),Object(n.createElement)($,{link:Object(k.getSetting)("page-"+(null==t?void 0:t.checkoutPageId),!1)})))}),ke=function(e){var t=e.emptyCart,r=e.attributes,c=Object(N.a)(),o=c.cartItems,a=c.cartIsLoading;return Object(n.createElement)(n.Fragment,null,a||0!==o.length?Object(n.createElement)(C.a,{showSpinner:!0,isLoading:a},Object(n.createElement)(M.a,null,Object(n.createElement)(w,null,Object(n.createElement)(Ee,{attributes:r})))):Object(n.createElement)(n.RawHTML,null,t))},Se=(r(822),function(e){var t=e.hidden,r=void 0!==t&&t;return Object(n.createElement)("div",{hidden:r},Object(n.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.L),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}]]}))}),Pe=(r(797),function(e){var t=e.attributes,r=e.setAttributes,a=t.isShippingCalculatorEnabled,i=t.isShippingCostHidden,s=t.checkoutPageId,u=Object(h.b)().currentPostId,d=Object(n.useRef)(s).current;return Object(n.createElement)(o.InspectorControls,null,u!==l.d&&Object(n.createElement)(p.Notice,{className:"wc-block-cart__page-notice",isDismissible:!1,status:"warning"},Object(E.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(n.createElement)("a",{href:Object(k.getAdminLink)("admin.php?page=wc-settings&tab=advanced"),target:"_blank",rel:"noopener noreferrer"})})),l.I&&Object(n.createElement)(p.PanelBody,{title:Object(c.__)("Shipping rates","woo-gutenberg-products-block")},Object(n.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 r({isShippingCalculatorEnabled:!a})}}),Object(n.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 r({isShippingCostHidden:!i})}})),!(u===l.d&&0===d)&&Object(n.createElement)(O.a,{pageId:s,setPageId:function(e){return r({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(n.createElement)(b.a,{text:Object(c.__)("We are currently working on improving our cart and checkout blocks, providing merchants with the tools and customization options they need.","woo-gutenberg-products-block")}))}),Ne=function(e){var t=e.className,r=e.attributes,o=e.setAttributes;return r.isPreview?S:Object(n.createElement)("div",{className:t},Object(n.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(n.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(n.createElement)(n.Fragment,null,Object(n.createElement)(h.a,{previewData:{previewCart:P.a}},Object(n.createElement)(Pe,{attributes:r,setAttributes:o}),Object(n.createElement)(p.Disabled,null,Object(n.createElement)(w,null,Object(n.createElement)(ke,{attributes:r})))),Object(n.createElement)(Se,{hidden:!0})),"empty"===e&&Object(n.createElement)(Se,null))}}))},Ce=(r(796),{isPreview:{type:"boolean",default:!1,save:!1},isShippingCalculatorEnabled:{type:"boolean",default:l.u},isShippingCostHidden:{type:"boolean",default:l.v},checkoutPageId:{type:"number",default:0}}),Me={title:Object(c.__)("Cart","woo-gutenberg-products-block"),icon:{src:Object(n.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:Ce,edit:Ne,save:function(e){var t=e.attributes;return Object(n.createElement)("div",{className:u()("is-loading",t.className)},Object(n.createElement)(o.InnerBlocks.Content,null))}};Object(l.S)("woocommerce/cart",Me)},841:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(188)),i=r(10),s=r.n(i),u=r(5),l=r(1),b=r(33),p=r(7),d=r.n(p),g=r(23),m=r.n(g),f=r(9),O=r(95),j=r(57),h=r(182),v=r(260),y=r(886),_=(r(281),function(e){var t=e.className,r=e.feedback,n=e.id,c=e.label,a=e.onChange,i=e.options,s=e.value;return Object(o.createElement)("div",{id:n,className:d()("wc-block-select",t,{"is-active":s})},Object(o.createElement)(y.a,{label:c,onChange:function(e){var t=e.selectedItem;a(t.key)},options:i,value:s}),r)}),w=Object(h.a)((function(e){var t=e.className,r=e.id,n=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,g=m()(e,["className","id","value","instanceId","required","errorId","errorMessage"]),h=r||"select-"+a;u=u||h;var y=Object(j.a)(n),w=Object(O.b)(),E=w.getValidationError,k=w.setValidationErrors,S=w.clearValidationError;Object(f.useEffect)((function(){!i||y?S(u):k(c()({},u,{message:p,hidden:!0}))}),[y]),Object(f.useEffect)((function(){return function(){S(u)}}),[u]);var P=E(u)||{};return Object(o.createElement)(_,s()({id:h,className:d()(t,{"has-error":P.message&&!P.hidden}),feedback:Object(o.createElement)(v.a,{propertyName:u}),value:y},g))})),E=function(e){var t=e.className,r=e.countries,n=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,g=e.required,m=void 0!==g&&g,f=e.errorId,O=e.errorMessage,j=void 0===O?Object(l.__)("Please select a country.","woo-gutenberg-products-block"):O,h=Object.keys(r).map((function(e){return{key:e,name:Object(b.decodeEntities)(r[e])}}));return Object(o.createElement)("div",{className:d()(t,"wc-block-country-input")},Object(o.createElement)(w,{id:n,label:c,onChange:a,options:h,value:h.find((function(e){return e.key===s})),errorId:f,errorMessage:j,required:m}),"off"!==p&&Object(o.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:p,value:s,onChange:function(e){var t=e.target.value,r=h.find((function(e){return e.key===t}));a(r?r.key:"")},style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1}))},k=function(e){return Object(o.createElement)(E,s()({countries:u.H},e))},S=function(e){return Object(o.createElement)(E,s()({countries:u.a},e))},P=function(e){var t=e.className,r=e.id,n=e.states,c=e.country,i=e.label,s=e.onChange,u=e.autoComplete,p=void 0===u?"off":u,d=e.value,g=void 0===d?"":d,m=e.required,f=void 0!==m&&m,O=n[c],j=O?Object.keys(O).map((function(e){return{key:e,name:Object(b.decodeEntities)(O[e])}})):[],h=Object(o.useCallback)((function(e){if(j.length>0){var t=j.find((function(t){return t.key===e||t.name===e}));s(t?t.key:"")}else s(e)}),[s,j]);return j.length>0?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w,{className:t,id:r,label:i,onChange:h,options:j,value:j.find((function(e){return e.key===g})),errorMessage:Object(l.__)("Please select a state.","woo-gutenberg-products-block"),required:f}),"off"!==p&&Object(o.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:p,value:g,onChange:function(e){return h(e.target.value)},style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1})):Object(o.createElement)(a.a,{className:t,id:r,label:i,onChange:h,autoComplete:p,value:g,required:f})},N=function(e){return Object(o.createElement)(P,s()({states:u.K},e))},C=function(e){return Object(o.createElement)(P,s()({states:u.b},e))},M=r(153);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 x(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){c()(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}var I={city:{index:9},postcode:{index:7}},R={state:{required:!1}},A={state:{required:!1,hidden:!0}},L={postcode:{required:!1,hidden:!0}},T={AE:x(x({},L),R),AF:A,AO:x(x({},L),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),AT:x(x({},I),A),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:x(x({},I),A),BD:{postcode:{required:!1},state:{label:Object(l.__)("District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("District (optional)","woo-gutenberg-products-block")}},BE:x(x({},I),A),BH:x({postcode:{required:!1}},A),BI:A,BO:L,BS:L,CA:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},CH:x(x({},I),{},{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:A,DE:x(x({},I),A),DK:x(x({},I),A),EE:x(x({},I),A),ES:x(x({},I),{},{state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}}),FI:x(x({},I),A),FR:x(x({},I),A),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:A,GF:A,GR:R,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:x(x({},I),A),IL:x(x({},I),A),IM:A,IT:x(x({},I),{},{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:A,KW:A,LB:A,LI:x(x({},I),{},{state:{label:Object(l.__)("Municipality","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Municipality (optional)","woo-gutenberg-products-block"),required:!1}}),LK:A,LU:A,LV:{state:{label:Object(l.__)("Municipality","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Municipality (optional)","woo-gutenberg-products-block"),required:!1}},MQ:A,MT:A,MZ:x(x({},L),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),NL:x(x({},I),A),NG:x(x({},L),{},{state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}}),NO:x(x({},I),A),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:x(x({},I),A),PT:A,RE:A,RO:{state:{label:Object(l.__)("County","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("County (optional)","woo-gutenberg-products-block")}},RS:A,SE:x(x({},I),A),SG:x({city:{required:!1}},A),SK:x(x({},I),A),SI:x(x({},I),A),SR:x({},L),ST:x(x({},L),{},{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:x(x({},I),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),UG:x(x({},L),{},{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:x({city:{index:8},postcode:{index:7,required:!1}},A),WS:L,YT:A,ZA:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},ZW:L};function z(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?z(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.a=Object(h.a)((function(e){var t=e.id,r=e.fields,n=void 0===r?Object.keys(M.a):r,i=e.fieldConfig,s=void 0===i?{}:i,u=e.instanceId,b=e.onChange,p=e.type,d=void 0===p?"shipping":p,g=e.values,m=Object(O.b)(),f=m.getValidationError,j=m.setValidationErrors,h=m.clearValidationError,v=T[g.country]||{},y=n.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})),_=f("shipping-missing-country")||{};return Object(o.useEffect)((function(){"shipping"===d&&function(e,t,r,n){n||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}}),n&&e.country&&r("shipping-missing-country")}(g,j,h,_.message&&!_.hidden)}),[g,_,j,h,d]),t=t||u,Object(o.createElement)("div",{id:t,className:"wc-block-address-form"},y.map((function(e){if(e.hidden)return null;if("country"===e.key){var r="shipping"===d?k:S;return Object(o.createElement)(r,{key:e.key,id:"".concat(t,"-").concat(e.key),label:e.required?e.label:e.optionalLabel,value:g.country,autoComplete:e.autocomplete,onChange:function(e){return b(U(U({},g),{},{country:e,state:"",city:"",postcode:""}))},errorId:"shipping"===d?"shipping-missing-country":null,errorMessage:e.errorMessage,required:e.required})}if("state"===e.key){var n="shipping"===d?N:C;return Object(o.createElement)(n,{key:e.key,id:"".concat(t,"-").concat(e.key),country:g.country,label:e.required?e.label:e.optionalLabel,value:g.state,autoComplete:e.autocomplete,onChange:function(e){return b(U(U({},g),{},{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-address-form__".concat(e.key),label:e.required?e.label:e.optionalLabel,value:g[e.key],autoComplete:e.autocomplete,onChange:function(t){return b(U(U({},g),{},c()({},e.key,t)))},errorMessage:e.errorMessage,required:e.required})})))}))},845:function(e,t,r){"use strict";var n=r(11),c=r.n(n),o=r(0),a=r(1),i=r(5),s=(r(2),r(149)),u=r(8),l=r.n(u),b=r(841),p=r(259),d=r(48),g=r.n(d),m=r(95);r(280);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 O(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){l()(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 j=function(e){var t=e.address,r=e.onUpdate,n=e.addressFields,i=Object(o.useState)(t),s=c()(i,2),u=s[0],l=s[1],d=Object(m.b)(),f=d.hasValidationErrors,j=d.showAllValidationErrors,h={};return n.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-shipping-calculator-address"},Object(o.createElement)(b.a,{fields:n,fieldConfig:h,onChange:l,values:u}),Object(o.createElement)(p.a,{className:"wc-block-shipping-calculator-address__button",disabled:g()(u,t),onClick:function(e){if(e.preventDefault(),j(),!f)return r(u)},type:"submit"},Object(a.__)("Update","woo-gutenberg-products-block")))},h=function(e){var t=e.onUpdate,r=void 0===t?function(){}:t,n=e.addressFields,c=void 0===n?["country","state","city","postcode"]:n,a=Object(s.b)(),i=a.shippingAddress,u=a.setShippingAddress;return Object(o.createElement)("div",{className:"wc-block-cart__shipping-calculator"},Object(o.createElement)(j,{address:i,addressFields:c,onUpdate:function(e){u(e),r(e)}}))},v=r(54),y=r.n(v),_=r(33),w=function(e){var t=e.address;if(0===Object.values(t).length)return null;var r="string"==typeof i.H[t.country]?Object(_.decodeEntities)(i.H[t.country]):"",n="object"===y()(i.K[t.country])&&"string"==typeof i.K[t.country][t.state]?Object(_.decodeEntities)(i.K[t.country][t.state]):t.state,c=[];c.push(t.postcode.toUpperCase()),c.push(t.city),c.push(n),c.push(r);var s=c.filter(Boolean).join(", ");return s&&Object(o.createElement)("span",{className:"wc-block-cart__shipping-address"},Object(a.sprintf)(Object(a.__)("Shipping to %s","woo-gutenberg-products-block"),s)+" ")},E=r(129),k=r(62),S=r(55),P=r(187),N=r(853),C=function(e){return{label:Object(_.decodeEntities)(e.name),value:e.rate_id,description:Object(o.createElement)(o.Fragment,null,e.price&&Object(o.createElement)(S.a,{currency:Object(P.c)(e),value:e.price}),e.price&&e.delivery_time?" — ":null,Object(_.decodeEntities)(e.delivery_time))}},M=function(e){var t=e.hasRates,r=e.shippingRates,n=e.shippingRatesLoading;return Object(o.createElement)("fieldset",{className:"wc-block-shipping-totals__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)(N.a,{className:"wc-block-shipping-totals__options",collapsibleWhenMultiple:!0,noResultsMessage:Object(a.__)("No shipping options were found.","woo-gutenberg-products-block"),renderOption:C,shippingRates:r,shippingRatesLoading:n}))},D=function(e){return e.some((function(e){return e.shipping_rates.length}))};r(501),t.a=function(e){var t=e.currency,r=e.values,n=e.isCheckout,s=void 0!==n&&n,u=e.showCalculator,l=void 0===u||u,b=e.showRatesWithoutAddress,p=void 0!==b&&b,d=Object(o.useState)(!1),g=c()(d,2),m=g[0],f=g[1],O=Object(E.a)(),j=O.shippingRates,v=O.shippingRatesLoading,y=O.hasShippingAddress,_=O.shippingAddress,S=i.o?parseInt(r.total_shipping,10)+parseInt(r.total_shipping_tax,10):parseInt(r.total_shipping,10),P=D(j)||S,N=p||y;return P||y||s?Object(o.createElement)("div",{className:"wc-block-shipping-totals"},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)(w,{address:_})," ",l&&Object(o.createElement)("button",{className:"wc-block-shipping-totals__change-address-button",onClick:function(){f(!m)}},Object(a.__)("(change address)","woo-gutenberg-products-block"))),currency:t}),l&&m&&Object(o.createElement)(h,{onUpdate:function(){f(!1)}}),!s&&N&&Object(o.createElement)(M,{hasRates:P,shippingRates:j,shippingRatesLoading:v})):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(k.a,{className:"wc-block-shipping-totals",label:Object(a.__)("Shipping","woo-gutenberg-products-block"),value:l?Object(o.createElement)("button",{className:"wc-block-shipping-totals__change-address-button",onClick:function(){f(!m)}},Object(a.__)("Calculate","woo-gutenberg-products-block")):Object(o.createElement)("em",null,Object(a.__)("Calculated during checkout","woo-gutenberg-products-block"))}),l&&m&&Object(o.createElement)(h,{onUpdate:function(){f(!1)}}))}},853:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(9),a=(r(2),r(82)),i=r(106),s=r(816),u=r(23),l=r.n(u),b=r(802),p=r(33),d=r(44),g=r(131),m=r(147),f=r(7),O=r.n(f),j=r(200),h=r(159),v=r(881),y=function(e){var t=e.className,r=e.noResultsMessage,c=e.onChange,o=e.options,a=e.renderOption,i=e.selected;if(0===o.length)return Object(n.createElement)(v.a,{isDismissible:!1,className:O()("wc-block-shipping-rates-control__no-results-notice","woocommerce-message","woocommerce-info")},r);if(o.length>1)return Object(n.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(n.createElement)(h.a,{label:u,secondaryLabel:l,description:b,secondaryDescription:p})},_=(r(218),function(e){var t=e.className,r=e.collapsible,o=void 0!==r&&r,a=e.noResultsMessage,i=e.onChange,s=e.renderOption,u=e.selected,l=e.shippingRate,b=e.showItems,f=e.title,j=Object(n.createElement)(n.Fragment,null,f&&Object(n.createElement)(g.a,{className:"wc-block-shipping-rates-control__package-title",headingLevel:"3"},f),b&&Object(n.createElement)("ul",{className:"wc-block-shipping-rates-control__package-items"},Object.values(l.items).map((function(e){var t=Object(p.decodeEntities)(e.name),r=e.quantity;return Object(n.createElement)("li",{key:t,className:"wc-block-shipping-rates-control__package-item"},Object(n.createElement)(d.a,{label:"".concat(t," ×").concat(r),screenReaderLabel:Object(c.sprintf)(Object(c._n)("%s (%d unit)","%s (%d units)",r,"woo-gutenberg-products-block"),t,r)}))})))),h=Object(n.createElement)(y,{className:t,noResultsMessage:a,onChange:i,options:l.shipping_rates,renderOption:s,selected:u});return o?Object(n.createElement)(m.a,{className:"wc-block-shipping-rates-control__package",initialOpen:!0,title:j},h):Object(n.createElement)("div",{className:O()("wc-block-shipping-rates-control__package",t)},j,h)}),w=function(e){var t=e.className,r=e.collapsible,c=void 0!==r&&r,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(n.createElement)("div",{className:"wc-block-shipping-rates-control"},s.map((function(e){var r=e.package_id,i=l()(e,["package_id"]);return Object(n.createElement)(_,{key:r,className:t,collapsible:c,noResultsMessage:o,onChange:function(e){p(e,r)},renderOption:a,selected:d[r],shippingRate:i,showItems:s.length>1,title:s.length>1?i.name:null})})))};t.a=function(e){var t=e.shippingRates,r=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(!r){var e=Object(s.a)(t),n=Object(s.b)(t);0===n?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.",n,"woo-gutenberg-products-block"),n)):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",n,"woo-gutenberg-products-block"),n))}}),[r,t]),Object(n.createElement)(i.a,{isLoading:r,screenReaderLabel:Object(c.__)("Loading shipping rates…","woo-gutenberg-products-block"),showSpinner:!0},Object(n.createElement)(w,{className:u,collapsible:t.length>1&&b,noResultsMessage:p,renderOption:d,shippingRates:t}))}},854:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(0),s=r(7),u=r.n(s),l=function(e){return"wc-blocks-payment-method-icon wc-blocks-payment-method-icon--".concat(e)},b=function(e){var t=e.id,r=e.src,n=void 0===r?null:r,c=e.alt,o=void 0===c?"":c;return n?Object(i.createElement)("img",{className:l(t),src:n,alt:o}):null},p=r(5),d=[{id:"alipay",alt:"Alipay",src:p.Q+"img/payment-methods/alipay.svg"},{id:"amex",alt:"American Express",src:p.Q+"img/payment-methods/amex.svg"},{id:"bancontact",alt:"Bancontact",src:p.Q+"img/payment-methods/bancontact.svg"},{id:"diners",alt:"Diners Club",src:p.Q+"img/payment-methods/diners.svg"},{id:"discover",alt:"Discover",src:p.Q+"img/payment-methods/discover.svg"},{id:"eps",alt:"EPS",src:p.Q+"img/payment-methods/eps.svg"},{id:"giropay",alt:"Giropay",src:p.Q+"img/payment-methods/giropay.svg"},{id:"ideal",alt:"iDeal",src:p.Q+"img/payment-methods/ideal.svg"},{id:"jcb",alt:"JCB",src:p.Q+"img/payment-methods/jcb.svg"},{id:"laser",alt:"Laser",src:p.Q+"img/payment-methods/laser.svg"},{id:"maestro",alt:"Maestro",src:p.Q+"img/payment-methods/maestro.svg"},{id:"mastercard",alt:"Mastercard",src:p.Q+"img/payment-methods/mastercard.svg"},{id:"multibanco",alt:"Multibanco",src:p.Q+"img/payment-methods/multibanco.svg"},{id:"p24",alt:"Przelewy24",src:p.Q+"img/payment-methods/p24.svg"},{id:"sepa",alt:"Sepa",src:p.Q+"img/payment-methods/sepa.svg"},{id:"sofort",alt:"Sofort",src:p.Q+"img/payment-methods/sofort.svg"},{id:"unionpay",alt:"Union Pay",src:p.Q+"img/payment-methods/unionpay.svg"},{id:"visa",alt:"Visa",src:p.Q+"img/payment-methods/visa.svg"},{id:"wechat",alt:"WeChat",src:p.Q+"img/payment-methods/wechat.svg"}],g=r(54),m=r.n(g);r(508);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 O(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){a()(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}t.a=function(e){var t=e.icons,r=void 0===t?[]:t,n=e.align,o=void 0===n?"center":n,a=function(e){var t={};return e.forEach((function(e){var r={};"string"==typeof e&&(r={id:e,alt:e,src:null}),"object"===m()(e)&&(r={id:e.id||"",alt:e.alt||"",src:e.src||null}),r.id&&!t[r.id]&&(t[r.id]=r)})),Object.values(t)}(r);if(0===a.length)return null;var s=u()("wc-block-cart__payment-method-icons",{"wc-block-cart__payment-method-icons--align-left":"left"===o,"wc-block-cart__payment-method-icons--align-right":"right"===o});return Object(i.createElement)("div",{className:s},a.map((function(e){var t,r=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},r))})))}},863:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(33)),o=function(e){var t=e.variation,r=void 0===t?[]:t;if(!r)return null;var o=r.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(n.createElement)("div",{className:"wc-block-product-variation-data"},o)},a=r(146),i=r(3),s=function(e){var t=e.shortDescription,r=void 0===t?"":t,c=e.fullDescription,o=r||(void 0===c?"":c);return o?Object(n.createElement)(a.a,{source:o,maxLength:15,countType:Object(i.getSetting)("wordCountType","words")}):null};r(497),t.a=function(e){var t=e.shortDescription,r=void 0===t?"":t,c=e.fullDescription,a=void 0===c?"":c,i=e.variation,u=void 0===i?[]:i;return Object(n.createElement)("div",{className:"wc-block-product-metadata"},Object(n.createElement)(s,{shortDescription:r,fullDescription:a}),Object(n.createElement)(o,{variation:u}))}},865:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(1),c=r(5),o=[{destination:{},package_id:0,name:Object(n.__)("Shipping","woo-gutenberg-products-block"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:Object(n._x)("Beanie with Logo","example product in Cart Block","woo-gutenberg-products-block"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:Object(n._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(n.__)("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(n.__)("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.J?o:[],items:[{key:"1",id:1,quantity:2,name:Object(n.__)("Beanie","woo-gutenberg-products-block"),short_description:Object(n.__)("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,sold_individually:!1,images:[{id:10,src:c.Q+"img/beanie.jpg",thumbnail:c.Q+"img/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(n.__)("Color","woo-gutenberg-products-block"),value:Object(n.__)("Yellow","woo-gutenberg-products-block")},{attribute:Object(n.__)("Size","woo-gutenberg-products-block"),value:Object(n.__)("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(n.__)("Cap","woo-gutenberg-products-block"),short_description:Object(n.__)("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,sold_individually:!1,images:[{id:11,src:c.Q+"img/cap.jpg",thumbnail:c.Q+"img/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(n.__)("Color","woo-gutenberg-products-block"),value:Object(n.__)("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.I,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:[]}}},866:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(5),a=r(106),i=(r(2),r(7)),s=r.n(i),u=(r(500),function(e){var t=e.text,r=e.screenReaderText,o=e.element,a=void 0===o?"li":o,i=e.className,u=void 0===i?"":i,l=e.onRemove,b=void 0===l?function(){}:l,p=e.disabled,d=void 0!==p&&p,g=e.radius,m=void 0===g?"small":g,f=a,O=s()(u,"wc-block-components-chip","wc-block-components-chip--radius-"+m);return Object(n.createElement)(f,{className:O},Object(n.createElement)("span",{"aria-hidden":"true",className:"wc-block-components-chip__text"},t),Object(n.createElement)("span",{className:"screen-reader-text"},r||t),Object(n.createElement)("button",{className:"wc-block-components-chip__remove",onClick:b,disabled:d,"aria-label":Object(c.sprintf)(Object(c.__)('Remove coupon "%s"',"woo-gutenberg-products-block"),t)},"✕"))}),l=r(62);t.a=function(e){var t=e.cartCoupons,r=void 0===t?[]:t,i=e.currency,s=e.isRemovingCoupon,b=e.removeCoupon,p=e.values,d=p.total_discount,g=p.total_discount_tax,m=parseInt(d,10);if(!m&&0===r.length)return null;var f=parseInt(g,10),O=o.o?m+f:m;return Object(n.createElement)(l.a,{currency:i,description:0!==r.length&&Object(n.createElement)(a.a,{screenReaderLabel:Object(c.__)("Removing coupon…","woo-gutenberg-products-block"),isLoading:s,showSpinner:!1},Object(n.createElement)("ul",{className:"wc-block-cart-coupon-list"},r.map((function(e){return Object(n.createElement)(u,{key:"coupon-"+e.code,className:"wc-block-cart-coupon-list__item",text:e.code,screenReaderText:Object(c.sprintf)(Object(c.__)("Coupon: %s","woo-gutenberg-products-block"),e.code),disabled:s,onRemove:function(){b(e.code)},radius:"large"})})))),label:O?Object(c.__)("Discount","woo-gutenberg-products-block"):Object(c.__)("Coupons","woo-gutenberg-products-block"),value:O?-1*O:"-"})}},9:function(e,t){!function(){e.exports=this.React}()},95:function(e,t,r){"use strict";r.d(t,"b",(function(){return g})),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(48),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}}),g=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]),g=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}))}),[]),f=Object(i.useCallback)((function(){u({})}),[]),O=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))}))}),[]),h={getValidationError:b,setValidationErrors:O,clearValidationError:m,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(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:g};return Object(i.createElement)(d.Provider,{value:h},t)}}});
|
1 |
+
this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks.cart=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={10: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.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="";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([838,2,0,1]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},105:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(8),c=r.n(n),o=r(204),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.map((function(t){return null!==e&&t.status!==e||n(t.id),!0}))},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})}},106:function(e,t,r){"use strict";var n=r(0),c=r(1),o=(r(2),r(7)),a=r.n(o),i=r(517);r(492);t.a=function(e){var t=e.children,r=e.className,o=e.screenReaderLabel,s=e.showSpinner,u=void 0!==s&&s,l=e.isLoading;return void 0===l||l?Object(n.createElement)("div",{className:a()(r,"wc-block-loading-mask")},u&&Object(n.createElement)(i.a,null),Object(n.createElement)("div",{className:"wc-blocks-loading-mask__children","aria-hidden":!0},t),Object(n.createElement)("span",{className:"screen-reader-text"},o||Object(c.__)("Loading…","woo-gutenberg-products-block"))):t}},107:function(e,t){!function(){e.exports=this.wp.wordcount}()},129:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(39),c=r(35),o=r(202),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(),g=!o.hasFinishedResolution("getCartData"),m=o.areShippingRatesLoading(),f=c(n.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:g,cartErrors:p,shippingAddress:O,shippingRates:u.shippingRates,shippingRatesLoading:m,hasShippingAddress:!!O.country,receiveCart:f}}),[b]);return p}},13:function(e,t){!function(){e.exports=this.wp.apiFetch}()},130:function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},131:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(23),a=r.n(o),i=r(0),s=r(7),u=r.n(s);r(2),r(494);t.a=function(e){var t=e.children,r=e.className,n=e.headingLevel,o=a()(e,["children","className","headingLevel"]),s=u()("wc-block-component__title",r),l="h".concat(n);return Object(i.createElement)(l,c()({className:s},o),t)}},137:function(e,t,r){"use strict";var n=r(11),c=r.n(n),o=r(0),a=r(9),i=(r(2),r(7)),s=r.n(i),u=r(44),l=(r(282),Object(a.forwardRef)((function(e,t){var r=e.className,n=e.id,a=e.type,i=void 0===a?"text":a,l=e.ariaLabel,b=e.ariaDescribedBy,p=e.label,d=e.screenReaderLabel,g=e.disabled,m=e.help,f=e.autoComplete,O=void 0===f?"off":f,j=e.value,h=void 0===j?"":j,v=e.onChange,y=e.required,_=void 0!==y&&y,w=e.onBlur,E=void 0===w?function(){}:w,k=e.feedback,S=Object(o.useState)(!1),P=c()(S,2),N=P[0],C=P[1];return Object(o.createElement)("div",{className:s()("wc-block-text-input",r,{"is-active":N||h})},Object(o.createElement)("input",{type:i,id:n,value:h,ref:t,autoComplete:O,onChange:function(e){v(e.target.value)},onFocus:function(){return C(!0)},onBlur:function(){E(),C(!1)},"aria-label":l||p,disabled:g,"aria-describedby":m&&!b?n+"__help":b,required:_}),Object(o.createElement)(u.a,{label:p,screenReaderLabel:d||p,wrapperElement:"label",wrapperProps:{htmlFor:n},htmlFor:n}),!!m&&Object(o.createElement)("p",{id:n+"__help",className:"wc-block-text-input__help"},m),k)})));t.a=l},14:function(e,t){!function(){e.exports=this.wp.blocks}()},146:function(e,t,r){"use strict";var n=r(0),c=r(107),o=r(77),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]:"…",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]:"…",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,g=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},g)}},147:function(e,t,r){"use strict";var n=r(11),c=r.n(n),o=r(0),a=r(7),i=r.n(a),s=(r(2),r(58)),u=r(63),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"}));r(505),t.a=function(e){var t=e.children,r=e.className,n=e.initialOpen,a=void 0!==n&&n,u=e.title,p=e.titleTag,d=void 0===p?"div":p,g=Object(o.useState)(a),m=c()(g,2),f=m[0],O=m[1];return Object(o.createElement)("div",{className:i()(r,"wc-blocks-components-panel")},Object(o.createElement)(d,null,Object(o.createElement)("button",{"aria-expanded":f,className:"wc-blocks-components-panel__button",onClick:function(){return O(!f)}},Object(o.createElement)(s.a,{"aria-hidden":"true",className:"wc-blocks-components-panel__button-icon",srcElement:f?l:b}),u)),Object(o.createElement)("div",{className:"wc-blocks-components-panel__content",hidden:!f},t))}},148: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}))}}},149:function(e,t,r){"use strict";r.d(t,"b",(function(){return R})),r.d(t,"a",(function(){return A}));var n=r(11),c=r.n(n),o=r(0),a=r(129),i=r(35),s=r(48),u=r.n(s),l=r(516),b=r(39),p=r(33),d=r(105),g=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(o.useState)(e),r=c()(t,2),n=r[0],s=r[1],m=Object(l.a)(n,400),f=c()(m,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()(g(e),g(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(n).forEach((function(e){v[e]=Object(p.decodeEntities)(n[e])})),{shippingAddress:v,setShippingAddress:s}},f=r(802),O=r(162),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},y=r(203),_=r(800),w="shipping_rates_success",E="shipping_rates_fail",k="shipping_rate_select_success",S="shipping_rate_select_fail",P=function(e){return{onSuccess:Object(_.a)(w,e),onFail:Object(_.a)(E,e),onSelectSuccess:Object(_.a)(k,e),onSelectFail:Object(_.a)(S,e)}},N=r(801),C=j.NONE,M=j.INVALID_ADDRESS,D=j.UNKNOWN,x=function(e,t){var r=t.type;return Object.values(j).includes(r)?r:e},I=Object(o.createContext)(v),R=function(){return Object(o.useContext)(I)},A=function(e){var t=e.children,r=Object(O.b)().dispatchActions,n=Object(a.a)(),i=n.cartNeedsShipping,s=n.shippingRates,u=n.shippingRatesLoading,l=n.cartErrors,b=Object(o.useReducer)(x,C),p=c()(b,2),d=p[0],g=p[1],v=Object(o.useReducer)(y.b,{}),_=c()(v,2),R=_[0],A=_[1],L=m(),T=L.shippingAddress,z=L.setShippingAddress,U=Object(o.useRef)(R),q=Object(f.a)(s),V=q.selectShippingRate,F=q.selectedShippingRates,Y=q.isSelectingRate,B=Object(o.useMemo)((function(){return{onShippingRateSuccess:P(A).onSuccess,onShippingRateFail:P(A).onFail,onShippingRateSelectSuccess:P(A).onSelectSuccess,onShippingRateSelectFail:P(A).onSelectFail}}),[A]);Object(o.useEffect)((function(){U.current=R}),[R]),Object(o.useEffect)((function(){u?r.incrementCalculating():r.decrementCalculating()}),[u,r]),Object(o.useEffect)((function(){Y?r.incrementCalculating():r.decrementCalculating()}),[Y,r]),Object(o.useEffect)((function(){l.length>0&&l.some((function(e){return!(!e.code||!Object.values(h).includes(e.code))}))?g({type:M}):g({type:C})}),[l]);var Q=Object(o.useMemo)((function(){return{isPristine:d===C,isValid:d===C,hasInvalidAddress:d===M,hasError:d===D||d===M}}),[d]);Object(o.useEffect)((function(){u||0!==s.length&&!Q.hasError||Object(N.a)(U.current,E,{hasInvalidAddress:Q.hasInvalidAddress,hasError:Q.hasError})}),[s,u,Q.hasError,Q.hasInvalidAddress]),Object(o.useEffect)((function(){!u&&s.length>0&&!Q.hasError&&Object(N.a)(U.current,w,s)}),[s,u,Q.hasError]),Object(o.useEffect)((function(){!Y&&Q.hasError&&Object(N.a)(U.current,S,{hasError:Q.hasError,hasInvalidAddress:Q.hasInvalidAddress})}),[F,Y,Q.hasError,Q.hasInvalidAddress]),Object(o.useEffect)((function(){Y||!F||Q.hasError||Object(N.a)(U.current,k,F)}),[F,Y,Q.hasError]);var H={shippingErrorStatus:Q,dispatchErrorStatus:g,shippingErrorTypes:j,shippingRates:s,setShippingRates:V,shippingRatesLoading:u,selectedRates:F,setSelectedRates:V,isSelectingRate:Y,shippingAddress:T,setShippingAddress:z,onShippingRateSuccess:B.onShippingRateSuccess,onShippingRateFail:B.onShippingRateFail,onShippingRateSelectSuccess:B.onShippingRateSelectSuccess,onShippingRateSelectFail:B.onShippingRateSelectFail,needsShipping:i};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(I.Provider,{value:H},t))}},15:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},153:function(e,t,r){"use strict";var n=r(1),c={first_name:{label:Object(n.__)("First name","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("First name (optional)","woo-gutenberg-products-block"),autocomplete:"given-name",required:!0,hidden:!1,index:1},last_name:{label:Object(n.__)("Last name","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Last name (optional)","woo-gutenberg-products-block"),autocomplete:"family-name",required:!0,hidden:!1,index:2},company:{label:Object(n.__)("Company","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Company (optional)","woo-gutenberg-products-block"),autocomplete:"organization",required:!1,hidden:!1,index:3},address_1:{label:Object(n.__)("Address","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Address (optional)","woo-gutenberg-products-block"),autocomplete:"address-line1",required:!0,hidden:!1,index:4},address_2:{label:Object(n.__)("Apartment, suite, etc.","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Apartment, suite, etc. (optional)","woo-gutenberg-products-block"),autocomplete:"address-line2",required:!1,hidden:!1,index:5},country:{label:Object(n.__)("Country/Region","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Country/Region (optional)","woo-gutenberg-products-block"),autocomplete:"country",required:!0,hidden:!1,index:6},city:{label:Object(n.__)("City","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("City (optional)","woo-gutenberg-products-block"),autocomplete:"address-level2",required:!0,hidden:!1,index:7},state:{label:Object(n.__)("State/County","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("State/County (optional)","woo-gutenberg-products-block"),autocomplete:"address-level1",required:!0,hidden:!1,index:8},postcode:{label:Object(n.__)("Postal code","woo-gutenberg-products-block"),optionalLabel:Object(n.__)("Postal code (optional)","woo-gutenberg-products-block"),autocomplete:"postal-code",required:!0,hidden:!1,index:9}};t.a=c},159:function(e,t,r){"use strict";var n=r(0);t.a=function(e){var t=e.label,r=e.secondaryLabel,c=e.description,o=e.secondaryDescription,a=e.id;return Object(n.createElement)("div",{className:"wc-block-radio-control__option-layout"},Object(n.createElement)("div",{className:"wc-block-radio-control__label-group"},t&&Object(n.createElement)("span",{id:a?"".concat(a,"__label"):null,className:"wc-block-radio-control__label"},t),r&&Object(n.createElement)("span",{id:a?"".concat(a,"__secondary-label"):null,className:"wc-block-radio-control__secondary-label"},r)),Object(n.createElement)("div",{className:"wc-block-radio-control__description-group"},c&&Object(n.createElement)("span",{id:a?"".concat(a,"__description"):null,className:"wc-block-radio-control__description"},c),o&&Object(n.createElement)("span",{id:a?"".concat(a,"__secondary-description"):null,className:"wc-block-radio-control__secondary-description"},o)))}},160:function(e,t,r){"use strict";var n=r(0),c=r(63),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},162:function(e,t,r){"use strict";r.d(t,"b",(function(){return Te})),r.d(t,"a",(function(){return ze}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=r(1),u=r(105),l=r(799),b=r(3),p="pristine",d="idle",g="processing",m="complete",f="before_processing",O="after_processing",j=Object(b.getSetting)("checkoutData",{order_id:0,customer_id:0}),h={redirectUrl:"",status:p,hasError:!1,calculatingCount:0,orderId:j.order_id,customerId:j.customer_id,processingResponse:null},v="set_idle",y="set_pristine",_="set_redirect_url",w="set_checkout_complete",E="set_before_processing",k="set_after_processing",S="set_processing_response",P="set_checkout_is_processing",N="set_checkout_has_error",C="set_checkout_no_error",M="set_checkout_order_id",D="increment_calculating",x="decrement_calculating",I=y,R=v,A=P,L=E,T=k,z=S,U=_,q=w,V=N,F=C,Y=D,B=x,Q=M,H=function(){return{type:I}},W=function(){return{type:R}},G=function(){return{type:A}},K=function(e){return{type:U,url:e}},$=function(e){return{type:z,data:e}},Z=function(e){return{type:q,data:e}},J=function(){return{type:L}},X=function(){return{type:T}},ee=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?V:F;return{type:t}},te=function(){return{type:Y}},re=function(){return{type:B}},ne=function(e){return{type:Q,orderId:e}};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 oe(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 ae=y,ie=v,se=P,ue=E,le=k,be=S,pe=_,de=w,ge=N,me=C,fe=D,Oe=x,je=M,he=p,ve=d,ye=g,_e=f,we=O,Ee=m,ke=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,r=arguments.length>1?arguments[1]:void 0,n=r.url,c=r.type,o=r.orderId,a=r.data;switch(c){case ae:e=h;break;case ie:e=t.state!==ve?oe(oe({},t),{},{status:ve}):t;break;case pe:e=n!==t.url?oe(oe({},t),{},{redirectUrl:n}):t;break;case be:e=oe(oe({},t),{},{processingResponse:a});break;case de:e=t.status!==Ee?oe(oe({},t),{},{status:Ee,redirectUrl:(null==a?void 0:a.redirectUrl)||t.redirectUrl}):t;break;case se:e=!1===(e=t.status!==ye?oe(oe({},t),{},{status:ye,hasError:!1}):t).hasError?e:oe(oe({},e),{},{hasError:!1});break;case ue:e=t.status!==_e?oe(oe({},t),{},{status:_e,hasError:!1}):t;break;case le:e=t.status!==we?oe(oe({},t),{},{status:we}):t;break;case ge:e=t.hasError?t:oe(oe({},t),{},{hasError:!0}),e=t.status===ye||t.status===_e?oe(oe({},e),{},{status:ve}):e;break;case me:e=t.hasError?oe(oe({},t),{},{hasError:!1}):t;break;case fe:e=oe(oe({},t),{},{calculatingCount:t.calculatingCount+1});break;case Oe:e=oe(oe({},t),{},{calculatingCount:Math.max(0,t.calculatingCount-1)});break;case je:e=oe(oe({},t),{},{orderId:o})}return e!==t&&c!==ae&&e.status===he&&(e.status=ve),e},Se=r(203),Pe=r(800),Ne="checkout_before_processing",Ce="checkout_after_processing_with_success",Me="checkout_after_processing_with_error",De=function(e){return{onCheckoutAfterProcessingWithSuccess:Object(Pe.a)(Ce,e),onCheckoutAfterProcessingWithError:Object(Pe.a)(Me,e),onCheckoutBeforeProcessing:Object(Pe.a)(Ne,e)}},xe=r(801),Ie=r(95);function Re(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 Ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Le=Object(i.createContext)({isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,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){}},hasOrder:!1,isCart:!1}),Te=function(){return Object(i.useContext)(Le)},ze=function(e){var t=e.children,r=e.redirectUrl,n=e.isCart,c=void 0!==n&&n;h.redirectUrl=r;var o=Object(i.useReducer)(ke,h),b=a()(o,2),p=b[0],j=b[1],v=Object(i.useReducer)(Se.b,{}),y=a()(v,2),_=y[0],w=y[1],E=Object(i.useRef)(_),k=Object(Ie.b)().setValidationErrors,S=Object(u.a)(),P=S.addErrorNotice,N=S.removeNotices,C=p.calculatingCount>0,M=Object(l.a)(),D=M.isSuccessResponse,x=M.isErrorResponse,I=M.isFailResponse;Object(i.useEffect)((function(){E.current=_}),[_]);var R=Object(i.useMemo)((function(){return De(w).onCheckoutAfterProcessingWithSuccess}),[w]),A=Object(i.useMemo)((function(){return De(w).onCheckoutAfterProcessingWithError}),[w]),L=Object(i.useMemo)((function(){return De(w).onCheckoutBeforeProcessing}),[w]),T=Object(i.useMemo)((function(){return{resetCheckout:function(){j(H())},setRedirectUrl:function(e){j(K(e))},setHasError:function(e){j(ee(e))},incrementCalculating:function(){j(te())},decrementCalculating:function(){j(re())},setOrderId:function(e){j(ne(e))},setAfterProcessing:function(e){var t,r,n,c;(!e.payment_result&&e.message&&200!==(null==e||null===(t=e.data)||void 0===t?void 0:t.status)&&(e.payment_result=Ae(Ae({},e.payment_result),{},{message:e.message})),e.payment_result)&&((null===(r=e.payment_result)||void 0===r?void 0:r.redirect_url)&&j(K(e.payment_result.redirect_url)),j($((n=e.payment_result,c={message:(null==n?void 0:n.message)||"",paymentStatus:n.payment_status,paymentDetails:{}},Array.isArray(n.payment_details)&&n.payment_details.forEach((function(e){var t=e.key,r=e.value;c.paymentDetails[t]=r})),c))));j(X())}}}),[]);Object(i.useEffect)((function(){p.status===f&&(N("error"),Object(xe.a)(E.current,Ne,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,r=e.validationErrors;P(t),k(r)})),j(W())):j(G())})))}),[p.status,k,P,N,j]),Object(i.useEffect)((function(){if(p.status===O){var e={redirectUrl:p.redirectUrl,orderId:p.orderId,customerId:p.customerId,customerNote:p.customerNote,processingResponse:p.processingResponse};p.hasError?Object(xe.b)(E.current,Me,e).then((function(t){if(x(t)||I(t)){if(t.message){var r=t.messageContext?{context:t.messageContext}:void 0;P(t.message,r)}void 0!==t.retry&&!0!==t.retry?j(Z(t)):j(W())}else{var n,c=(null===(n=e.processingResponse)||void 0===n?void 0:n.message)||Object(s.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");P(c,{id:"checkout"}),j(W())}})):Object(xe.b)(E.current,Ce,e).then((function(e){if(D(e))j(Z(e));else if(x(e)||I(e)){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;P(e.message,t)}e.retry?j(ee(!0)):j(Z(e))}else j(Z())}))}}),[p.status,p.hasError,p.redirectUrl,p.orderId,p.customerId,p.customerNote,p.processingResponse,T,P,x,I,D]);var z={onSubmit:Object(i.useCallback)((function(){j(J())}),[]),isComplete:p.status===m,isIdle:p.status===d,isCalculating:C,isProcessing:p.status===g,isBeforeProcessing:p.status===f,isAfterProcessing:p.status===O,hasError:p.hasError,redirectUrl:p.redirectUrl,onCheckoutAfterProcessingWithSuccess:R,onCheckoutAfterProcessingWithError:A,onCheckoutBeforeProcessing:L,dispatchActions:T,isCart:c,orderId:p.orderId,hasOrder:!!p.orderId,customerId:p.customerId};return Object(i.createElement)(Le.Provider,{value:z},t)}},17:function(e,t){!function(){e.exports=this.wp.url}()},179:function(e,t,r){"use strict";var n=r(20),c=r.n(n),o=r(26),a=r.n(o),i=r(19),s=r.n(i),u=r(21),l=r.n(u),b=r(22),p=r.n(b),d=r(12),g=r.n(d),m=r(8),f=r.n(m),O=r(0),j=(r(2),r(9)),h=r(1),v=r(5),y=function(e){var t=e.imageUrl,r=void 0===t?"".concat(v.Q,"img/block-error.svg"):t,n=e.header,c=void 0===n?Object(h.__)("Oops!","woo-gutenberg-products-block"):n,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"},r&&Object(O.createElement)("img",{className:"wc-block-error__image",src:r,alt:""}),Object(O.createElement)("div",{className:"wc-block-error__content"},c&&Object(O.createElement)("p",{className:"wc-block-error__header"},c),a&&Object(O.createElement)("p",{className:"wc-block-error__text"},a),i&&Object(O.createElement)("p",{className:"wc-block-error__message"},u?u+" ":"",i)))};r(345);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 r,n=g()(e);if(t){var c=g()(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return p()(this,r)}}var w=function(e){l()(r,e);var t=_(r);function r(){var e;c()(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)),f()(s()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(r,[{key:"render",value:function(){var e=this.props,t=e.header,r=e.imageUrl,n=e.showErrorMessage,c=e.text,o=e.errorMessagePrefix,a=this.state,i=a.errorMessage;return a.hasError?Object(O.createElement)(y,{errorMessage:n?i:null,header:t,imageUrl:r,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}}}]),r}(j.Component);w.defaultProps={showErrorMessage:!0};t.a=w},187:function(e,t,r){"use strict";r.d(t,"c",(function(){return d})),r.d(t,"b",(function(){return g})),r.d(t,"a",(function(){return m}));var n=r(8),c=r.n(n),o=r(54),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:""}},g=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=g(t),c=r/Math.pow(10,n.minorUnit),o=n.prefix+c+n.suffix,a=document.createElement("textarea");return a.innerHTML=o,a.value}},188:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(23),s=r.n(i),u=r(0),l=r(1),b=r(9),p=(r(2),r(7)),d=r.n(p),g=r(95),m=r(260),f=r(182),O=r(137);r(282);t.a=Object(f.a)((function(e){var t=e.className,r=e.instanceId,n=e.id,o=e.ariaDescribedBy,i=e.errorId,p=e.validateOnMount,f=void 0===p||p,j=e.focusOnMount,h=void 0!==j&&j,v=e.onChange,y=e.showError,_=void 0===y||y,w=s()(e,["className","instanceId","id","ariaDescribedBy","errorId","validateOnMount","focusOnMount","onChange","showError"]),E=Object(b.useRef)(),k=Object(g.b)(),S=k.getValidationError,P=k.hideValidationError,N=k.setValidationErrors,C=k.clearValidationError,M=k.getValidationErrorId,D=n||"textinput-"+r;i=i||D;var x=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];E.current.checkValidity()?C(i):N(a()({},i,{message:E.current.validationMessage||Object(l.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}))};Object(b.useEffect)((function(){h&&E.current.focus()}),[h]),Object(b.useEffect)((function(){f&&x()}),[f]),Object(b.useEffect)((function(){return function(){C(i)}}),[i]);var I=S(i)||{},R=I.message&&!I.hidden,A=_&&R&&M(i)?M(i):o;return Object(u.createElement)(O.a,c()({className:d()(t,{"has-error":R}),id:D,onBlur:function(){x(!1)},feedback:_&&Object(u.createElement)(m.a,{propertyName:i}),ref:E,onChange:function(e){P(i),v(e)},ariaDescribedBy:A},w))}))},199:function(e,t,r){"use strict";r.d(t,"b",(function(){return y})),r.d(t,"a",(function(){return _}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=r(3),u=r(6),l=r(33);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(s.getSetting)("checkoutData",{}),g={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},m=Object(u.mapValues)(d.billing_address,(function(e){return Object(l.decodeEntities)(e)})),f=p(p({},g),m),O={billingData:g,setBillingData:function(){return null}};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 h(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}var v=Object(i.createContext)(O),y=function(){return Object(i.useContext)(v)},_=function(e){var t=e.children,r=Object(i.useState)(f),n=a()(r,2),c=n[0],o=n[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)}},200:function(e,t,r){"use strict";var n=r(0),c=r(7),o=r.n(c),a=r(182),i=r(8),s=r.n(i),u=r(159),l=function(e){var t,r=e.checked,c=e.name,a=e.onChange,i=e.option,l=i.value,b=i.label,p=i.description,d=i.secondaryLabel,g=i.secondaryDescription;return Object(n.createElement)("label",{className:"wc-block-radio-control__option",htmlFor:"".concat(c,"-").concat(l)},Object(n.createElement)("input",{id:"".concat(c,"-").concat(l),className:"wc-block-radio-control__input",type:"radio",name:c,value:l,onChange:function(e){return a(e.target.value)},checked:r,"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"),g),t))}),Object(n.createElement)(u.a,{id:"".concat(c,"-").concat(l),label:b,secondaryLabel:d,description:p,secondaryDescription:g}))};r(346),r(504),t.a=Object(a.a)((function(e){var t=e.className,r=e.instanceId,c=e.id,a=e.selected,i=e.onChange,s=e.options,u=void 0===s?[]:s,b=c||r;return u.length&&Object(n.createElement)("div",{className:o()("wc-block-radio-control",t)},u.map((function(e){return Object(n.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)}})})))}))},202: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(35),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)}},203: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}},204:function(e,t,r){"use strict";r.d(t,"b",(function(){return w})),r.d(t,"a",(function(){return E}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(0),s=(r(2),r(35)),u=r(10),l=r.n(u),b=r(7),p=r.n(b),d=r(881),g=(r(279),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""}),m=function(e){var t=e.className,r=e.notices,n=w().removeNotice,c=p()(t,"wc-block-components-notices"),o=r.filter((function(e){return"snackbar"!==e.type}));return o.length?Object(i.createElement)("div",{className:c},o.map((function(e){return Object(i.createElement)(d.a,l()({key:"store-notice-"+e.id},e,{className:p()("wc-block-components-notices__notice","woocommerce-message",g(e)),onRemove:function(){e.isDismissible&&n(e.id)}}),e.content)}))):null},f=r(885),O=r(105),j=r(202),h=function(){var e=Object(j.b)().isEditor,t=Object(O.a)(),r=t.notices,n=t.removeNotice,c=r.filter((function(e){return"snackbar"===e.type}));return e?null:Object(i.createElement)(f.a,{notices:c,className:"wc-block-notices__snackbar",onRemove:n})};function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _=Object(i.createContext)({notices:[],createNotice:function(e,t,r){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),w=function(){return Object(i.useContext)(_)},E=function(e){var t=e.children,r=e.className,n=void 0===r?"":r,c=e.createNoticeContainer,o=void 0===c||c,u=e.context,l=void 0===u?"wc/core":u,b=Object(s.useDispatch)("core/notices"),p=b.createNotice,d=b.removeNotice,g=Object(i.useState)(!1),f=a()(g,2),O=f[0],j=f[1],v=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]:{};p(e,t,y(y({},r),{},{context:r.context||l}))}),[p,l]),w=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;d(e,t)}),[d,l]),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]:{};v("default",e,y(y({},t),{},{type:"snackbar"}))}),[v]),k={notices:Object(s.useSelect)((function(e){return{notices:e("core/notices").getNotices(l)}}),[l]).notices,createNotice:v,createSnackbarNotice:E,removeNotice:w,context:l,setIsSuppressed:j},S=O?null:Object(i.createElement)(m,{className:n,notices:k.notices}),P=O?null:Object(i.createElement)(h,null);return Object(i.createElement)(_.Provider,{value:k},o&&S,t,P)}},221:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(23),a=r.n(o),i=r(0),s=r(63),u=r(7),l=r.n(u),b=function(e){var t=e.className,r=e.size,n=a()(e,["className","size"]),o=l()("dashicon","dashicons-arrow-down-alt2",t);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:o,width:r,height:r},n),Object(i.createElement)("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},p=function(e){var t=e.className,r=e.size,n=a()(e,["className","size"]),o=l()("dashicon","dashicons-arrow-down-alt2",t);return Object(i.createElement)(s.a,c()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:o,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"}))};t.a=function(e){let t=function(){return null};switch(e.icon){case"arrow-down-alt2":t=b;break;case"no-alt":t=p}return Object(i.createElement)(t,{size:e.size||20,className:e.className})}},24:function(e,t){!function(){e.exports=this.wp.blockEditor}()},248:function(e,t){!function(){e.exports=this.wp.deprecated}()},25:function(e,t){!function(){e.exports=this.wp.compose}()},254:function(e,t,r){"use strict";var n=r(64),c=r.n(n),o=r(0),a=r(1),i=r(4),s=r(35),u=r(42);t.a=function(e){var t=e.setPageId,r=e.pageId,n=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:n.title},Object(o.createElement)(i.SelectControl,{label:Object(a.__)("Link to","woo-gutenberg-products-block"),value:r,options:[{label:n.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}},255:function(e,t,r){"use strict";var n=r(0),c=r(1),o=(r(2),r(58)),a=r(284),i=r(160);r(491);t.a=function(e){var t=e.text;return Object(n.createElement)("div",{className:"wc-block-feedback-prompt"},Object(n.createElement)(o.a,{srcElement:a.a}),Object(n.createElement)("h2",{className:"wc-block-feedback-prompt__title"},Object(c.__)("Feedback?","woo-gutenberg-products-block")),Object(n.createElement)("p",{className:"wc-block-feedback-prompt__text"},t),Object(n.createElement)("a",{href:"https://ideas.woocommerce.com/forums/133476-woocommerce?category_id=384565",className:"wc-block-feedback-prompt__link",rel:"noreferrer noopener",target:"_blank"},Object(c.__)("Give us your feedback.","woo-gutenberg-products-block"),Object(n.createElement)(o.a,{srcElement:i.a,size:16})))}},259:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(23),a=r.n(o),i=r(0),s=r(289),u=(r(2),r(7)),l=r.n(u);r(503);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))}},260:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=r(95),o=(r(2),r(502),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-form-input-validation-error",role:"alert"},Object(n.createElement)("p",{id:b(s)},r))})},284:function(e,t,r){"use strict";var n=r(0),c=r(63),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.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},3:function(e,t){!function(){e.exports=this.wc.wcSettings}()},33:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},346:function(e,t,r){},35:function(e,t){!function(){e.exports=this.wp.data}()},350:function(e,t,r){"use strict";r.d(t,"b",(function(){return Oe})),r.d(t,"a",(function(){return je}));var n=r(11),c=r.n(n),o=r(0),a=r(8),i=r.n(a);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){i()(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={PRISTINE:"pristine",STARTED:"started",PROCESSING:"processing",ERROR:"has_error",FAILED:"failed",SUCCESS:"success",COMPLETE:"complete"},b=u(u({},l),{},{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"}),p={currentStatus:l.PRISTINE,shouldSavePaymentMethod:!1,paymentMethodData:{payment_method:""},hasSavedToken:!1,errorMessage:"",paymentMethods:{},expressPaymentMethods:{}},d={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:l,paymentMethodData:{},errorMessage:"",activePaymentMethod:"",setActivePaymentMethod:function(){},customerPaymentMethods:{},paymentMethods:{},expressPaymentMethods:{},paymentMethodsInitialized:!1,expressPaymentMethodsInitialized:!1,onPaymentProcessing:function(){},onPaymentSuccess:function(){},onPaymentFail:function(){}},g=r(54),m=r.n(g);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 O(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){i()(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 j=b.STARTED,h=b.ERROR,v=b.FAILED,y=b.SUCCESS,_=b.PROCESSING,w=b.PRISTINE,E=b.COMPLETE,k=b.SET_REGISTERED_PAYMENT_METHODS,S=b.SET_REGISTERED_EXPRESS_PAYMENT_METHODS,P=b.SET_SHOULD_SAVE_PAYMENT_METHOD,N=function(e){return!("object"!==m()(e)||!e.isSavedToken)},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.paymentMethodData,c=t.shouldSavePaymentMethod,o=t.errorMessage,a=t.paymentMethods;switch(r){case j:return e.currentStatus!==j?O(O({},e),{},{currentStatus:j}):e;case h:return e.currentStatus!==h?O(O({},e),{},{currentStatus:h,errorMessage:o||e.errorMessage}):e;case v:return e.currentStatus!==v?O(O({},e),{},{currentStatus:v,paymentMethodData:n||e.paymentMethodData,errorMessage:o||e.errorMessage}):e;case y:return e.currentStatus!==y?O(O({},e),{},{currentStatus:y,paymentMethodData:n||e.paymentMethodData,hasSavedToken:N(n)}):e;case _:return e.currentStatus!==_?O(O({},e),{},{currentStatus:_,errorMessage:""}):e;case E:return e.currentStatus!==E?O(O({},e),{},{currentStatus:E}):e;case w:return O(O({},p),{},{currentStatus:w,paymentMethods:O({},e.paymentMethods),expressPaymentMethods:O({},e.expressPaymentMethods),shouldSavePaymentMethod:e.shouldSavePaymentMethod});case k:return O(O({},e),{},{paymentMethods:O(O({},e.paymentMethods),a)});case S:return O(O({},e),{},{expressPaymentMethods:O(O({},e.expressPaymentMethods),a)});case P:return O(O({},e),{},{shouldSavePaymentMethod:c})}return e},M=b.ERROR,D=b.FAILED,x=b.SUCCESS,I=b.SET_REGISTERED_PAYMENT_METHODS,R=b.SET_REGISTERED_EXPRESS_PAYMENT_METHODS,A=b.SET_SHOULD_SAVE_PAYMENT_METHOD,L=function(e){return{type:e}},T=function(e){var t=e.errorMessage,r=e.paymentMethodData;return{type:D,errorMessage:t,paymentMethodData:r}},z=function(e){var t=e.paymentMethodData;return{type:x,paymentMethodData:t}},U=r(15),q=r.n(U),V=r(37),F=r.n(V),Y=r(1),B=r(130),Q=r(202),H=r(149),W=r(129),G=r(5);function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Z=function(e){if(G.k)throw new Error(Object(Y.sprintf)(Object(Y.__)("Problem with payment method initialization: %s","woo-gutenberg-products-block"),e.message))},J=function(e,t){var r=Object(o.useState)(!1),n=c()(r,2),a=n[0],s=n[1],u=Object(Q.b)().isEditor,l=Object(H.b)().shippingAddress,b=Object(W.a)(),p=b.cartTotals,d=b.cartNeedsShipping,g=Object(o.useRef)({cartTotals:p,cartNeedsShipping:d,shippingAddress:l});Object(o.useEffect)((function(){g.current={cartTotals:p,cartNeedsShipping:d,shippingAddress:l}}),[p,d,l]);var m=Object(o.useCallback)(F()(q.a.mark((function r(){var n,c,o,a,l;return q.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n={},o=function(e){n=$($({},n),{},i()({},e.name,e))},r.t0=q.a.keys(t);case 3:if((r.t1=r.t0()).done){r.next=24;break}if(a=r.t1.value,l=t[a],!u){r.next=9;break}return o(l),r.abrupt("continue",3);case 9:return r.prev=9,r.next=12,Promise.resolve(l.canMakePayment(g.current));case 12:if(!(c=r.sent)){r.next=17;break}if(!c.error){r.next=16;break}throw new Error(c.error.message);case 16:o(l);case 17:r.next=22;break;case 19:r.prev=19,r.t2=r.catch(9),Z(r.t2);case 22:r.next=3;break;case 24:e(n),s(!0);case 26:case"end":return r.stop()}}),r,null,[[9,19]])}))),[e,u,t]);return Object(o.useEffect)((function(){a||m()}),[m,a]),a},X=r(199),ee=r(162),te=r(203),re=r(800),ne="payment_processing",ce=r(801),oe=r(95),ae=r(3),ie=r(799),se=r(105),ue=l.STARTED,le=l.PROCESSING,be=l.COMPLETE,pe=l.PRISTINE,de=l.ERROR,ge=l.FAILED,me=l.SUCCESS,fe=Object(o.createContext)(d),Oe=function(){return Object(o.useContext)(fe)},je=function(e){var t=e.children,r=Object(X.b)().setBillingData,n=Object(ee.b)(),a=n.isProcessing,i=n.isIdle,s=n.isCalculating,u=n.hasError,b=Object(ie.a)(),d=b.isSuccessResponse,g=b.isErrorResponse,m=b.isFailResponse,f=b.noticeContexts,O=Object(o.useState)(""),j=c()(O,2),h=j[0],v=j[1],y=Object(o.useReducer)(te.b,{}),_=c()(y,2),w=_[0],E=_[1],k=Object(o.useRef)(w),S=Object(Q.b)(),P=S.isEditor,N=S.previewData,D=P&&(null==N?void 0:N.previewSavedPaymentMethods)?null==N?void 0:N.previewSavedPaymentMethods:Object(ae.getSetting)("customerPaymentMethods",{}),x=Object(o.useReducer)(C,p),U=c()(x,2),q=U[0],V=U[1],F=Object(o.useCallback)((function(e){v(e),V(L(pe))}),[v,V]),Y=Object(o.useCallback)((function(e){V(function(e){return{type:I,paymentMethods:e}}(e))}),[V]),W=Object(o.useCallback)((function(e){V(function(e){return{type:R,paymentMethods:e}}(e))}),[V]),G=J(Y,Object(B.getPaymentMethods)()),K=function(e){return J(e,Object(B.getExpressPaymentMethods)())}(W),$=Object(oe.b)().setValidationErrors,Z=Object(se.a)(),Oe=Z.addErrorNotice,je=Z.removeNotice,he=Object(H.b)().setShippingAddress,ve=Object(o.useCallback)((function(e){V({type:A,shouldSavePaymentMethod:e})}),[V]),ye=Object(o.useCallback)((function(e){e?Oe(e,{context:"wc/express-payment-area",id:"wc-express-payment-error"}):je("wc-express-payment-error","wc/express-payment-area")}),[Oe,je]);Object(o.useEffect)((function(){k.current=w}),[w]);var _e=Object(o.useMemo)((function(){return function(e){return{onPaymentProcessing:Object(re.a)(ne,e)}}(E).onPaymentProcessing}),[E]),we=Object(o.useMemo)((function(){return{isPristine:q.currentStatus===pe,isStarted:q.currentStatus===ue,isProcessing:q.currentStatus===le,isFinished:[de,ge,me].includes(q.currentStatus),hasError:q.currentStatus===de,hasFailed:q.currentStatus===ge,isSuccessful:q.currentStatus===me}}),[q.currentStatus]),Ee=Object(o.useCallback)((function(){return{started:function(){return V(L(ue))},processing:function(){return V(L(le))},completed:function(){return V(L(be))},error:function(e){return V(function(e){return{type:M,errorMessage:e}}(e))},failed:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;n&&r(n),V(T({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,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t&&r(t),null!==n&&(null==n?void 0:n.address)&&he(n.address),V(z({paymentMethodData:e}))}}}),[V,r,he]);Object(o.useEffect)((function(){!a||u||s||we.isFinished||Ee().processing()}),[a,u,s,we.isFinished,Ee]),Object(o.useEffect)((function(){i&&!we.isSuccessful&&V(L(pe))}),[i,we.isSuccessful]),Object(o.useEffect)((function(){u&&we.isSuccessful&&!q.hasSavedToken&&V(L(pe))}),[u,we.isSuccessful,q.hasSavedToken]),Object(o.useEffect)((function(){var e=Object.keys(q.paymentMethods);G&&!h&&e.length>0&&F(Object.keys(q.paymentMethods)[0])}),[h,G,q.paymentMethods,F]),Object(o.useEffect)((function(){we.isProcessing&&(je("wc-payment-error",f.PAYMENTS),Object(ce.b)(k.current,ne,{}).then((function(e){var t,r,n;if(d(e))Ee().success(null==e||null===(t=e.meta)||void 0===t?void 0:t.paymentMethodData,null==e||null===(r=e.meta)||void 0===r?void 0:r.billingData,null==e||null===(n=e.meta)||void 0===n?void 0:n.shippingData);else if(m(e)){var c,o;e.message&&e.message.length&&Oe(e.message,{id:"wc-payment-error",isDismissible:!1,context:(null==e?void 0:e.messageContext)||f.PAYMENTS}),Ee().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 g(e)?(e.message&&e.message.length&&Oe(e.message,{id:"wc-payment-error",isDismissible:!1,context:(null==e?void 0:e.messageContext)||f.PAYMENTS}),Ee().error(e.message),$(null==e?void 0:e.validationErrors)):Ee().success()})))}),[we.isProcessing,$,Ee,je,f.PAYMENTS,d,m,g,Oe]);var ke={setPaymentStatus:Ee,currentStatus:we,paymentStatuses:l,paymentMethodData:q.paymentMethodData,errorMessage:q.errorMessage,activePaymentMethod:h,setActivePaymentMethod:F,onPaymentProcessing:_e,customerPaymentMethods:D,paymentMethods:q.paymentMethods,expressPaymentMethods:q.expressPaymentMethods,paymentMethodsInitialized:G,expressPaymentMethodsInitialized:K,setExpressPaymentError:ye,shouldSavePayment:q.shouldSavePaymentMethod,setShouldSavePayment:ve};return Object(o.createElement)(fe.Provider,{value:ke},t)}},351:function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return b}));var n=r(11),c=r.n(n),o=r(0),a=(r(2),r(879)),i=r(7),s=r.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,r=e.className,n=void 0===r?"":r,i=function(){var e=Object(a.a)(),t=c()(e,2),r=t[0],n=t[1].width,o="";return n>700?o="is-large":n>520?o="is-medium":n>400?o="is-small":n&&(o="is-mobile"),[r,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()(n,p)},b,t))}},39:function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},4:function(e,t){!function(){e.exports=this.wp.components}()},42: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 g})),r.d(t,"i",(function(){return m})),r.d(t,"f",(function(){return f})),r.d(t,"c",(function(){return O})),r.d(t,"d",(function(){return j})),r.d(t,"g",(function(){return h})),r.d(t,"a",(function(){return v}));var n=r(8),c=r.n(n),o=r(17),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.t?100:0,catalog_visibility:"any",search:c,orderby:"title",order:"asc"},l=[Object(o.addQueryArgs)("/wc/store/products",b(b({},s),i))];return u.t&&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)})},g=function(){return i()({path:"wc/store/products/attributes"})},m=function(e){return i()({path:"wc/store/products/attributes/".concat(e,"/terms")})},f=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.w?100:0,orderby:u.w?"count":"name",order:u.w?"desc":"asc",search:n})];return u.w&&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")}))},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 r=1===t.filter((function(t){return t.title.raw===e.title.raw})).length;return e.title.raw+(r?"":" - ".concat(e.slug))}},44: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}var b=function(e){var t,r=e.label,n=e.screenReaderLabel,c=e.wrapperElement,i=e.wrapperProps,u=null!=r,b=null!=n;return!u&&b?(t=c||"span",i=l(l({},i),{},{className:s()(i.className,"screen-reader-text")}),Object(o.createElement)(t,i,n)):(t=c||a.Fragment,u&&b&&r!==n?Object(o.createElement)(t,i,Object(o.createElement)("span",{"aria-hidden":"true"},r),Object(o.createElement)("span",{className:"screen-reader-text"},n)):Object(o.createElement)(t,i,r))};b.defaultProps={wrapperProps:{}},t.a=b},48:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},485:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=window.Event||null,c=function(){if("function"==typeof n){var e=new n("wc_fragment_refresh",{bubbles:!0,cancelable:!0});document.body.dispatchEvent(e)}else{var t=document.createEvent("Event");t.initEvent("wc_fragment_refresh",!0,!0),document.body.dispatchEvent(t)}}},488: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,r.current]),r.current}},5:function(e,t,r){"use strict";r.d(t,"k",(function(){return c})),r.d(t,"G",(function(){return o})),r.d(t,"M",(function(){return a})),r.d(t,"x",(function(){return i})),r.d(t,"z",(function(){return s})),r.d(t,"l",(function(){return u})),r.d(t,"y",(function(){return l})),r.d(t,"B",(function(){return b})),r.d(t,"n",(function(){return p})),r.d(t,"A",(function(){return d})),r.d(t,"m",(function(){return g})),r.d(t,"C",(function(){return m})),r.d(t,"t",(function(){return f})),r.d(t,"w",(function(){return O})),r.d(t,"q",(function(){return j})),r.d(t,"r",(function(){return h})),r.d(t,"s",(function(){return v})),r.d(t,"j",(function(){return y})),r.d(t,"I",(function(){return _})),r.d(t,"N",(function(){return w})),r.d(t,"p",(function(){return E})),r.d(t,"o",(function(){return k})),r.d(t,"F",(function(){return S})),r.d(t,"c",(function(){return P})),r.d(t,"u",(function(){return N})),r.d(t,"v",(function(){return C})),r.d(t,"Q",(function(){return D})),r.d(t,"H",(function(){return x})),r.d(t,"a",(function(){return I})),r.d(t,"K",(function(){return R})),r.d(t,"b",(function(){return A})),r.d(t,"J",(function(){return L})),r.d(t,"h",(function(){return T})),r.d(t,"L",(function(){return q})),r.d(t,"g",(function(){return V})),r.d(t,"i",(function(){return F})),r.d(t,"E",(function(){return Y})),r.d(t,"D",(function(){return B})),r.d(t,"P",(function(){return Q})),r.d(t,"O",(function(){return H})),r.d(t,"d",(function(){return W})),r.d(t,"e",(function(){return G})),r.d(t,"f",(function(){return K})),r.d(t,"R",(function(){return Z})),r.d(t,"S",(function(){return J}));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),g=Object(n.getSetting)("default_height",500),m=Object(n.getSetting)("placeholderImgSrc",""),f=(Object(n.getSetting)("thumbnail_size",300),Object(n.getSetting)("isLargeCatalog")),O=Object(n.getSetting)("limitTags"),j=Object(n.getSetting)("hasProducts",!0),h=Object(n.getSetting)("hasTags",!0),v=Object(n.getSetting)("homeUrl",""),y=Object(n.getSetting)("couponsEnabled",!0),_=Object(n.getSetting)("shippingEnabled",!0),w=Object(n.getSetting)("taxesEnabled",!0),E=Object(n.getSetting)("displayItemizedTaxes",!1),k=(Object(n.getSetting)("displayShopPricesIncludingTax",!1),Object(n.getSetting)("displayCartPricesIncludingTax",!1)),S=Object(n.getSetting)("productCount",0),P=Object(n.getSetting)("attributes",[]),N=Object(n.getSetting)("isShippingCalculatorEnabled",!0),C=Object(n.getSetting)("isShippingCostHidden",!1),M=Object(n.getSetting)("woocommerceBlocksPhase",1),D=Object(n.getSetting)("wcBlocksAssetUrl",""),x=Object(n.getSetting)("shippingCountries",{}),I=Object(n.getSetting)("allowedCountries",{}),R=Object(n.getSetting)("shippingStates",{}),A=Object(n.getSetting)("allowedStates",{}),L=Object(n.getSetting)("shippingMethodsExist",!1),T=Object(n.getSetting)("checkoutShowLoginReminder",!0),z={id:0,title:"",permalink:""},U=Object(n.getSetting)("storePages",{shop:z,cart:z,checkout:z,privacy:z,terms:z}),q=U.shop.permalink,V=U.checkout.id,F=U.checkout.permalink,Y=U.privacy.permalink,B=U.privacy.title,Q=U.terms.permalink,H=U.terms.title,W=U.cart.id,G=U.cart.permalink,K=Object(n.getSetting)("checkoutAllowsGuest",!1),$=(Object(n.getSetting)("checkoutAllowsSignup",!1),r(14)),Z=function(e,t){if(M>2)return Object($.registerBlockType)(e,t)},J=function(e,t){if(M>1)return Object($.registerBlockType)(e,t)}},53:function(e,t){!function(){e.exports=this.wp.keycodes}()},55:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(23),s=r.n(i),u=r(0),l=r(152),b=r(7),p=r.n(b);r(246);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 g(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",t),d=g(g(g({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}))}},57:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),c=r(48),o=r.n(c),a=function(e){var t=Object(n.useRef)();return o()(e,t.current)||(t.current=e),t.current}},58:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(23),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))}},6:function(e,t){!function(){e.exports=this.lodash}()},62:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(7)),o=r.n(c),a=r(55);r(499);t.a=function(e){var t=e.className,r=e.currency,c=e.label,i=e.value,s=e.description;return Object(n.createElement)("div",{className:o()("wc-block-totals-table-item",t)},Object(n.createElement)("span",{className:"wc-block-totals-table-item__label"},c),Object(n.isValidElement)(i)?Object(n.createElement)("div",{className:"wc-block-totals-table-item__value"},i):Object(n.createElement)(a.a,{className:"wc-block-totals-table-item__value",currency:r,displayType:"text",value:i}),Object(n.createElement)("div",{className:"wc-block-totals-table-item__description"},s))}},73:function(e,t){!function(){e.exports=this.wp.dom}()},77:function(e,t){!function(){e.exports=this.wp.autop}()},783:function(e,t,r){"use strict";var n=r(0),c=r(63),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},797:function(e,t,r){},798:function(e,t,r){},799:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));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(){return{responseTypes:c,noticeContexts:o,isSuccessResponse:a,isErrorResponse:i,isFailResponse:s}}},800:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(203),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))}}}},801: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(54),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,d;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=b(t,r),i=!0,s=u(o),e.prev=3,s.s();case 5:if((l=s.n()).done){e.next=24;break}return p=l.value,e.prev=7,e.next=10,Promise.resolve(p.callback(n));case 10:if(d=e.sent,"object"!==a()(d)||void 0!==d.type){e.next=13;break}throw new Error("If you want to abort event emitter processing, your observer must return an object with a type property");case 13:if(!0===(i="object"!==a()(d)||d)){e.next=16;break}return e.abrupt("return",i);case 16:e.next=22;break;case 18:return e.prev=18,e.t0=e.catch(7),console.error(e.t0),e.abrupt("return",{type:"error"});case 22:e.next=5;break;case 24:e.next=29;break;case 26:e.prev=26,e.t1=e.catch(3),s.e(e.t1);case 29:return e.prev=29,s.f(),e.finish(29);case 32:return e.abrupt("return",i);case 33:case"end":return e.stop()}}),e,null,[[3,26,29,32],[7,18]])})));return function(t,r,n){return e.apply(this,arguments)}}()},802:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(8),c=r.n(n),o=r(11),a=r.n(o),i=r(35),s=r(0),u=r(39),l=r(148);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=function(e){var t=Object(l.a)(),r=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 r=a()(t,2),n=r[0],c=r[1];return e[n]=c,e}),{})}),[e]),n=Object(s.useState)(r),o=a()(n,2),b=o[0],d=o[1];Object(s.useEffect)((function(){d(r)}),[r]);var g=Object(i.useDispatch)(u.CART_STORE_KEY).selectShippingRate,m=Object(i.useSelect)((function(e){return e(u.CART_STORE_KEY).isShippingRateBeingSelected()}),[]);return{selectShippingRate:function(e,r){d(p(p({},b),{},c()({},r,e))),g(e,r).catch((function(e){t(e)}))},selectedShippingRates:b,isSelectingRate:m}}},804:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(8),c=r.n(n),o=r(1),a=r(35),i=r(39),s=r(95),u=r(33),l=r(129),b=r(105);function p(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 d=function(){var e=Object(l.a)(),t=e.cartCoupons,r=e.cartIsLoading,n=Object(b.a)(),d=n.addErrorNotice,g=n.addSnackbarNotice,m=Object(s.b)().setValidationErrors;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({appliedCoupons:t,isLoading:r},Object(a.useSelect)((function(e,t){var r=t.dispatch,n=e(i.CART_STORE_KEY),c=n.isApplyingCoupon(),a=n.isRemovingCoupon(),s=r(i.CART_STORE_KEY),l=s.applyCoupon,b=s.removeCoupon,p=s.receiveApplyingCoupon;return{applyCoupon:function(e){l(e).then((function(t){!0===t&&g(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){m({coupon:{message:Object(u.decodeEntities)(e.message),hidden:!1}}),p("")}))},removeCoupon:function(e){b(e).then((function(t){!0===t&&g(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,g]))}},805:function(e,t,r){"use strict";var n=r(0),c=r(7),o=r.n(c),a=(r(2),r(351));r(493);t.a=function(e){var t=e.children,r=e.className;return Object(n.createElement)(a.a,{className:o()("wc-block-sidebar-layout",r)},t)}},806:function(e,t,r){"use strict";var n=r(0),c=r(7),o=r.n(c);r(2);t.a=function(e){var t=e.children,r=e.className;return Object(n.createElement)("div",{className:o()("wc-block-main",r)},t)}},807:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(0),a=r(33),i=r(5);r(2);t.a=function(e){var t=e.image,r=void 0===t?{}:t,n={src:r.src||i.C,alt:Object(a.decodeEntities)(r.alt)||"",srcSet:r.srcset||"",sizes:r.sizes||""};return Object(o.createElement)("img",c()({},n,{alt:n.alt}))}},808:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(33));r(495);t.a=function(e){var t=e.name,r=e.permalink,o=e.disabled;return Object(n.createElement)("a",{className:"wc-block-product-name",href:r,tabIndex:o?-1:0},Object(c.decodeEntities)(t))}},809:function(e,t,r){"use strict";var n=r(0),c=r(1);r(2),r(496);t.a=function(e){var t=e.lowStockRemaining;return t?Object(n.createElement)("div",{className:"wc-block-low-stock-badge"},Object(c.sprintf)(Object(c.__)("%d left in stock","woo-gutenberg-products-block"),t)):null}},811:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(55),a=r(7),i=r.n(a);r(2),r(498);t.a=function(e){var t=e.className,r=e.currency,a=e.regularValue,s=e.value,u=Number.isFinite(a)&&a!==s;return Object(n.createElement)(n.Fragment,null,u&&Object(n.createElement)(n.Fragment,null,Object(n.createElement)("span",{className:"screen-reader-text"},Object(c.__)("Previous price:","woo-gutenberg-products-block")),Object(n.createElement)(o.a,{className:i()("wc-block-product-price--regular",t),currency:r,value:a}),Object(n.createElement)("span",{className:"screen-reader-text"},Object(c.__)("Discounted price:","woo-gutenberg-products-block"))),Object(n.createElement)(o.a,{className:i()("wc-block-product-price",t,{"is-discounted":u}),currency:r,value:s}))}},813:function(e,t,r){"use strict";var n=r(0),c=r(7),o=r.n(c);r(2);t.a=function(e){var t=e.children,r=e.className;return Object(n.createElement)("div",{className:o()("wc-block-sidebar",r)},t)}},814:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(5),a=(r(2),r(62));t.a=function(e){var t=e.currency,r=e.values,i=r.total_items,s=r.total_items_tax,u=parseInt(i,10),l=parseInt(s,10);return Object(n.createElement)(a.a,{currency:t,label:Object(c.__)("Subtotal","woo-gutenberg-products-block"),value:o.o?u+l:u})}},815:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(5),a=r(149),i=(r(2),r(62));t.a=function(e){var t=e.currency,r=e.values;if(!Object(a.b)().needsShipping)return null;var s=r.total_fees,u=r.total_fees_tax,l=parseInt(s,10);if(!l)return null;var b=parseInt(u,10);return Object(n.createElement)(i.a,{currency:t,label:Object(c.__)("Fees","woo-gutenberg-products-block"),value:o.o?l+b:l})}},816: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.length},c=function(e){return e.reduce((function(e,t){return e+t.shipping_rates.length}),0)}},817:function(e,t,r){"use strict";var n=r(0),c=r(1),o=(r(2),r(5)),a=r(62);t.a=function(e){var t=e.currency,r=e.values,i=r.total_tax,s=r.tax_lines;return o.N?o.p?Object(n.createElement)(n.Fragment,null,s.map((function(e,r){var c=e.name,o=e.price;return Object(n.createElement)(a.a,{key:"tax-line-".concat(r),currency:t,label:c,value:parseInt(o,10)})}))," "):Object(n.createElement)(a.a,{currency:t,label:Object(c.__)("Taxes","woo-gutenberg-products-block"),value:parseInt(i,10)}):null}},818:function(e,t,r){"use strict";var n=r(11),c=r.n(n),o=r(0),a=r(1),i=r(259),s=r(188),u=r(44),l=r(260),b=r(106),p=(r(2),r(182)),d=r(95),g=r(147);r(506);t.a=Object(p.a)((function(e){var t=e.instanceId,r=e.isLoading,n=void 0!==r&&r,p=e.initialOpen,m=void 0!==p&&p,f=e.onSubmit,O=void 0===f?function(){}:f,j=Object(o.useState)(""),h=c()(j,2),v=h[0],y=h[1],_=Object(o.useRef)(!1),w=Object(d.b)(),E=w.getValidationError,k=w.getValidationErrorId,S=E("coupon");Object(o.useEffect)((function(){_.current!==n&&(n||!v||S||y(""),_.current=n)}),[n,v,S]);var P="wc-block-coupon-code__input-".concat(t);return Object(o.createElement)(g.a,{className:"wc-block-coupon-code",initialOpen:m,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:P}),titleTag:"h2"},Object(o.createElement)(b.a,{screenReaderLabel:Object(a.__)("Applying coupon…","woo-gutenberg-products-block"),isLoading:n,showSpinner:!1},Object(o.createElement)("div",{className:"wc-block-coupon-code__content"},Object(o.createElement)("form",{className:"wc-block-coupon-code__form"},Object(o.createElement)(s.a,{id:P,errorId:"coupon",className:"wc-block-coupon-code__input",label:Object(a.__)("Enter code","woo-gutenberg-products-block"),value:v,ariaDescribedBy:k(P),onChange:function(e){y(e)},validateOnMount:!1,focusOnMount:!0,showError:!1}),Object(o.createElement)(i.a,{className:"wc-block-coupon-code__button",disabled:n||!v,showSpinner:n,onClick:function(e){e.preventDefault(),O(v)},type:"submit"},Object(a.__)("Apply","woo-gutenberg-products-block"))),Object(o.createElement)(l.a,{propertyName:"coupon",elementId:P}))))}))},819:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(5),a=r(181),i=r(55),s=(r(2),r(62));r(507);t.a=function(e){var t=e.currency,r=e.values,u=r.total_price,l=r.total_tax;return Object(n.createElement)(s.a,{className:"wc-block-totals-footer-item",currency:t,label:Object(c.__)("Total","woo-gutenberg-products-block"),value:parseInt(u,10),description:o.o&&Object(n.createElement)("p",{className:"wc-block-totals-footer-item-tax"},Object(a.a)(Object(c.__)("Including <TaxAmount/> in taxes","woo-gutenberg-products-block"),{TaxAmount:Object(n.createElement)(i.a,{className:"wc-block-totals-footer-item-tax-value",currency:t,displayType:"text",value:parseInt(l,10)})}))})}},82:function(e,t){!function(){e.exports=this.wp.a11y}()},821:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return a}));var n=r(350),c=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object(n.b)(),r=t.paymentMethods,c=t.expressPaymentMethods,o=t.paymentMethodsInitialized,a=t.expressPaymentMethodsInitialized;return e?{paymentMethods:c,isInitialized:a}:{paymentMethods:r,isInitialized:o}},o=function(){return c()},a=function(){return c(!0)}},838:function(e,t,r){"use strict";r.r(t);var n=r(0),c=r(1),o=r(24),a=r(58),i=r(783),s=r(7),u=r.n(s),l=r(5),b=r(255),p=r(4),d=(r(2),r(11)),g=r.n(d),m=r(25),f=(r(798),Object(m.withInstanceId)((function(e){var t=e.className,r=e.label,o=void 0===r?Object(c.__)("View","woo-gutenberg-products-block"):r,a=e.views,i=e.defaultView,s=e.instanceId,l=e.render,b=Object(n.useState)(i),d=g()(b,2),m=d[0],f=d[1],O=u()(t,"wc-block-view-switch-control"),j="wc-block-view-switch-control-"+s;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)("div",{className:O},Object(n.createElement)("label",{htmlFor:j,className:"wc-block-view-switch-control__label"},o+": "),Object(n.createElement)(p.ButtonGroup,{id:j},a.map((function(e){return Object(n.createElement)(p.Button,{key:e.value,isPrimary:m===e.value,isLarge:!0,"aria-pressed":m===e.value,onMouseDown:function(){m!==e.value&&f(e.value)},onClick:function(){m!==e.value&&f(e.value)}},e.name)})))),l(m))}))),O=r(254),j=r(179),h=r(202),v=r(149),y=r(162),_=r(350),w=function(e){var t=e.children,r=e.redirectUrl;return Object(n.createElement)(y.a,{redirectUrl:r,isCart:!0},Object(n.createElement)(v.a,null,Object(n.createElement)(_.a,null,t)))},E=r(181),k=r(3),S=Object(n.createElement)("img",{src:l.Q+"img/cart-preview.svg",alt:"",width:"230",height:"250",style:{width:"100%"}}),P=r(865),N=r(129),C=r(106),M=r(95),D=r(814),x=r(815),I=r(866),R=r(845),A=r(817),L=r(818),T=r(819),z=r(187),U=r(804),q=r(105),V=r(805),F=r(806),Y=r(813),B=r(131),Q=r(33),H=r(259),W=r(854),G=r(821),K=(r(820),function(e){return Object.values(e).reduce((function(e,t){return null!==t.icons&&(e=e.concat(t.icons)),e}),[])}),$=function(e){var t=e.link,r=Object(y.b)().isCalculating,o=Object(n.useState)(!1),a=g()(o,2),i=a[0],s=a[1],u=Object(G.b)().paymentMethods;return Object(n.createElement)("div",{className:"wc-block-cart__submit-container"},Object(n.createElement)(H.a,{className:"wc-block-cart__submit-button",href:t||l.i,disabled:r,onClick:function(){return s(!0)},showSpinner:i},Object(c.__)("Proceed to Checkout","woo-gutenberg-products-block")),Object(n.createElement)(W.a,{icons:K(u)}))},Z=function(e){var t=e.itemCount,r=void 0===t?1:t;return Object(n.createElement)(B.a,{headingLevel:"2"},Object(c.sprintf)(Object(c._n)("Your cart (%d item)","Your cart (%d items)",r,"woo-gutenberg-products-block"),r))},J=r(64),X=r.n(J),ee=r(54),te=r.n(ee),re=r(82),ne=r(53),ce=(r(810),function(e){var t=e.className,r=e.quantity,o=void 0===r?1:r,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,g=e.disabled,m=u()("wc-block-quantity-selector",t),f=void 0!==s,O=o>i,j=!f||o<s,h=Object(n.useCallback)((function(e){var t=void 0!==te()(e.key)?"ArrowDown"===e.key:e.keyCode===ne.DOWN,r=void 0!==te()(e.key)?"ArrowUp"===e.key:e.keyCode===ne.UP;t&&O&&(e.preventDefault(),b(o-1)),r&&j&&(e.preventDefault(),b(o+1))}),[o,b,j,O]);return Object(n.createElement)("div",{className:m},Object(n.createElement)("input",{className:"wc-block-quantity-selector__input",disabled:g,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(n.createElement)("button",{"aria-label":Object(c.__)("Reduce quantity","woo-gutenberg-products-block"),className:"wc-block-quantity-selector__button wc-block-quantity-selector__button--minus",disabled:g||!O,onClick:function(){var e=o-1;b(e),Object(re.speak)(Object(c.sprintf)(Object(c.__)("Quantity reduced to %s.","woo-gutenberg-products-block"),e))}},"-"),Object(n.createElement)("button",{"aria-label":Object(c.__)("Increase quantity","woo-gutenberg-products-block"),disabled:g||!j,className:"wc-block-quantity-selector__button wc-block-quantity-selector__button--plus",onClick:function(){var e=o+1;b(e),Object(re.speak)(Object(c.sprintf)(Object(c.__)("Quantity increased to %s.","woo-gutenberg-products-block"),e))}},"+"))}),oe=r(35),ae=r(39),ie=r(488),se=r(516),ue=r(485),le=r(63),be=Object(n.createElement)(le.a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.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(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"})),pe=r(807),de=r(808),ge=r(809),me=r(863),fe=r(811),Oe=r(55),je=(r(812),function(e){var t=e.currency,r=e.saleAmount;return r?Object(n.createElement)("div",{className:"wc-block-sale-badge"},Object(E.a)(Object(c.__)("Save <price/>!","woo-gutenberg-products-block"),{price:Object(n.createElement)(Oe.a,{currency:t,value:r})})):null}),he=r(258),ve=function(e,t){return e.convertPrecision(t.minorUnit).getAmount()},ye=function(e){var t=e.lineItem,r=t.name,o=void 0===r?"":r,i=t.short_description,s=void 0===i?"":i,l=t.description,b=void 0===l?"":l,p=t.low_stock_remaining,d=void 0===p?null:p,m=t.quantity_limit,f=void 0===m?99:m,O=t.permalink,j=void 0===O?"":O,h=t.images,v=void 0===h?[]:h,_=t.variation,w=void 0===_?[]:_,E=t.prices,k=void 0===E?{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"}}:E,S=function(e){var t=e.key,r=void 0===t?"":t,c=e.quantity,o=void 0===c?1:c,a=Object(N.a)().cartErrors,i=Object(y.b)().dispatchActions,s=Object(n.useState)(o),u=g()(s,2),l=u[0],b=u[1],p=Object(se.a)(l,400),d=g()(p,1)[0],m=Object(ie.a)(d),f=Object(oe.useDispatch)(ae.CART_STORE_KEY),O=f.removeItemFromCart,j=f.changeCartItemQuantity,h=Object(oe.useSelect)((function(e){return!!r&&e(ae.CART_STORE_KEY).isItemPendingQuantity(r)}),[r]),v=Object(oe.useSelect)((function(e){return!!r&&e(ae.CART_STORE_KEY).isItemPendingDelete(r)}),[r]);return Object(n.useEffect)((function(){r&&Number.isFinite(m)&&j(r,d).then(ue.a)}),[d,r]),Object(n.useEffect)((function(){h?i.incrementCalculating():i.decrementCalculating()}),[h]),Object(n.useEffect)((function(){return v?i.incrementCalculating():!v&&a.length&&i.decrementCalculating(),function(){v&&i.decrementCalculating()}}),[v]),{isPendingDelete:v,quantity:l,changeQuantity:b,removeItem:function(){return!!r&&O(r).then((function(){Object(ue.a)()}))},cartItemQuantityErrors:a}}(t),P=S.quantity,C=S.changeQuantity,M=S.removeItem,D=S.isPendingDelete,x=Object(z.b)(k),I=Object(he.a)({amount:parseInt(k.raw_prices.regular_price,10),precision:parseInt(k.raw_prices.precision,10)}).multiply(P),R=Object(he.a)({amount:parseInt(k.raw_prices.price,10),precision:parseInt(k.raw_prices.precision,10)}).multiply(P),A=I.subtract(R),L=v.length?v[0]:{};return Object(n.createElement)("tr",{className:u()("wc-block-cart-items__row",{"is-disabled":D})},Object(n.createElement)("td",{className:"wc-block-cart-item__image","aria-hidden":!L.alt},Object(n.createElement)("a",{href:j,tabIndex:-1},Object(n.createElement)(pe.a,{image:L}))),Object(n.createElement)("td",{className:"wc-block-cart-item__product"},Object(n.createElement)(de.a,{permalink:j,name:o,disabled:D}),Object(n.createElement)(ge.a,{lowStockRemaining:d}),Object(n.createElement)(me.a,{shortDescription:s,fullDescription:b,variation:w})),Object(n.createElement)("td",{className:"wc-block-cart-item__quantity"},Object(n.createElement)(ce,{disabled:D,quantity:P,maximum:f,onChange:C,itemName:o}),Object(n.createElement)("button",{className:"wc-block-cart-item__remove-link",onClick:M,disabled:D},Object(c.__)("Remove item","woo-gutenberg-products-block")),Object(n.createElement)("button",{className:"wc-block-cart-item__remove-icon",onClick:M},Object(n.createElement)("span",{className:"screen-reader-text"},Object(c.__)("Remove item","woo-gutenberg-products-block")),Object(n.createElement)(a.a,{srcElement:be}))),Object(n.createElement)("td",{className:"wc-block-cart-item__total"},Object(n.createElement)(fe.a,{currency:x,regularValue:ve(I,x),value:ve(R,x)}),Object(n.createElement)(je,{currency:x,saleAmount:ve(A,x)})))},_e=X()(Array(3)).map((function(e,t){return Object(n.createElement)(ye,{key:t})})),we=function(e){var t=e.lineItems,r=void 0===t?[]:t,o=e.isLoading,a=void 0!==o&&o?_e:r.map((function(e){return Object(n.createElement)(ye,{key:e.key,lineItem:e})}));return Object(n.createElement)("table",{className:"wc-block-cart-items"},Object(n.createElement)("thead",null,Object(n.createElement)("tr",{className:"wc-block-cart-items__header"},Object(n.createElement)("th",{className:"wc-block-cart-items__header-image"},Object(n.createElement)("span",null,Object(c.__)("Product","woo-gutenberg-products-block"))),Object(n.createElement)("th",{className:"wc-block-cart-items__header-product"},Object(n.createElement)("span",null,Object(c.__)("Details","woo-gutenberg-products-block"))),Object(n.createElement)("th",{className:"wc-block-cart-items__header-quantity"},Object(n.createElement)("span",null,Object(c.__)("Quantity","woo-gutenberg-products-block"))),Object(n.createElement)("th",{className:"wc-block-cart-items__header-total"},Object(n.createElement)("span",null,Object(c.__)("Total","woo-gutenberg-products-block"))))),Object(n.createElement)("tbody",null,a))},Ee=(r(803),function(e){var t=e.attributes,r=t.isShippingCalculatorEnabled,o=t.isShippingCostHidden,a=Object(N.a)(),i=a.cartItems,s=a.cartTotals,b=a.cartIsLoading,p=a.cartItemsCount,d=a.cartItemErrors,g=a.cartNeedsShipping,m=Object(U.a)(),f=m.applyCoupon,O=m.removeCoupon,j=m.isApplyingCoupon,h=m.isRemovingCoupon,v=m.appliedCoupons,y=Object(q.a)().addErrorNotice;Object(n.useEffect)((function(){d.forEach((function(e){y(Object(Q.decodeEntities)(e.message),{isDismissible:!0,id:e.code})}))}),[d]);var _=Object(z.c)(s),w=u()("wc-block-cart",{"wc-block-cart--is-loading":b});return Object(n.createElement)(V.a,{className:w},Object(n.createElement)(F.a,{className:"wc-block-cart__main"},Object(n.createElement)(Z,{itemCount:p}),Object(n.createElement)(we,{lineItems:i,isLoading:b})),Object(n.createElement)(Y.a,{className:"wc-block-cart__sidebar"},Object(n.createElement)(B.a,{headingLevel:"2",className:"wc-block-cart__totals-title"},Object(c.__)("Cart totals","woo-gutenberg-products-block")),Object(n.createElement)(D.a,{currency:_,values:s}),Object(n.createElement)(x.a,{currency:_,values:s}),Object(n.createElement)(I.a,{cartCoupons:v,currency:_,isRemovingCoupon:h,removeCoupon:O,values:s}),g&&Object(n.createElement)(R.a,{showCalculator:r,showRatesWithoutAddress:!o,values:s,currency:_}),!l.o&&Object(n.createElement)(A.a,{currency:_,values:s}),l.j&&Object(n.createElement)(L.a,{onSubmit:f,isLoading:j}),Object(n.createElement)(T.a,{currency:_,values:s}),Object(n.createElement)($,{link:Object(k.getSetting)("page-"+(null==t?void 0:t.checkoutPageId),!1)})))}),ke=function(e){var t=e.emptyCart,r=e.attributes,c=Object(N.a)(),o=c.cartItems,a=c.cartIsLoading;return Object(n.createElement)(n.Fragment,null,a||0!==o.length?Object(n.createElement)(C.a,{showSpinner:!0,isLoading:a},Object(n.createElement)(M.a,null,Object(n.createElement)(w,null,Object(n.createElement)(Ee,{attributes:r})))):Object(n.createElement)(n.RawHTML,null,t))},Se=(r(822),function(e){var t=e.hidden,r=void 0!==t&&t;return Object(n.createElement)("div",{hidden:r},Object(n.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.L),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}]]}))}),Pe=(r(797),function(e){var t=e.attributes,r=e.setAttributes,a=t.isShippingCalculatorEnabled,i=t.isShippingCostHidden,s=t.checkoutPageId,u=Object(h.b)().currentPostId,d=Object(n.useRef)(s).current;return Object(n.createElement)(o.InspectorControls,null,u!==l.d&&Object(n.createElement)(p.Notice,{className:"wc-block-cart__page-notice",isDismissible:!1,status:"warning"},Object(E.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(n.createElement)("a",{href:Object(k.getAdminLink)("admin.php?page=wc-settings&tab=advanced"),target:"_blank",rel:"noopener noreferrer"})})),l.I&&Object(n.createElement)(p.PanelBody,{title:Object(c.__)("Shipping rates","woo-gutenberg-products-block")},Object(n.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 r({isShippingCalculatorEnabled:!a})}}),Object(n.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 r({isShippingCostHidden:!i})}})),!(u===l.d&&0===d)&&Object(n.createElement)(O.a,{pageId:s,setPageId:function(e){return r({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(n.createElement)(b.a,{text:Object(c.__)("We are currently working on improving our cart and checkout blocks, providing merchants with the tools and customization options they need.","woo-gutenberg-products-block")}))}),Ne=function(e){var t=e.className,r=e.attributes,o=e.setAttributes;return r.isPreview?S:Object(n.createElement)("div",{className:t},Object(n.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(n.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(n.createElement)(n.Fragment,null,Object(n.createElement)(h.a,{previewData:{previewCart:P.a}},Object(n.createElement)(Pe,{attributes:r,setAttributes:o}),Object(n.createElement)(p.Disabled,null,Object(n.createElement)(w,null,Object(n.createElement)(ke,{attributes:r})))),Object(n.createElement)(Se,{hidden:!0})),"empty"===e&&Object(n.createElement)(Se,null))}}))},Ce=(r(796),{isPreview:{type:"boolean",default:!1,save:!1},isShippingCalculatorEnabled:{type:"boolean",default:l.u},isShippingCostHidden:{type:"boolean",default:l.v},checkoutPageId:{type:"number",default:0}}),Me={title:Object(c.__)("Cart","woo-gutenberg-products-block"),icon:{src:Object(n.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:Ce,edit:Ne,save:function(e){var t=e.attributes;return Object(n.createElement)("div",{className:u()("is-loading",t.className)},Object(n.createElement)(o.InnerBlocks.Content,null))}};Object(l.S)("woocommerce/cart",Me)},841:function(e,t,r){"use strict";var n=r(8),c=r.n(n),o=r(0),a=(r(2),r(188)),i=r(10),s=r.n(i),u=r(5),l=r(1),b=r(33),p=r(7),d=r.n(p),g=r(23),m=r.n(g),f=r(9),O=r(95),j=r(57),h=r(182),v=r(260),y=r(886),_=(r(281),function(e){var t=e.className,r=e.feedback,n=e.id,c=e.label,a=e.onChange,i=e.options,s=e.value;return Object(o.createElement)("div",{id:n,className:d()("wc-block-select",t,{"is-active":s})},Object(o.createElement)(y.a,{label:c,onChange:function(e){var t=e.selectedItem;a(t.key)},options:i,value:s}),r)}),w=Object(h.a)((function(e){var t=e.className,r=e.id,n=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,g=m()(e,["className","id","value","instanceId","required","errorId","errorMessage"]),h=r||"select-"+a;u=u||h;var y=Object(j.a)(n),w=Object(O.b)(),E=w.getValidationError,k=w.setValidationErrors,S=w.clearValidationError;Object(f.useEffect)((function(){!i||y?S(u):k(c()({},u,{message:p,hidden:!0}))}),[y]),Object(f.useEffect)((function(){return function(){S(u)}}),[u]);var P=E(u)||{};return Object(o.createElement)(_,s()({id:h,className:d()(t,{"has-error":P.message&&!P.hidden}),feedback:Object(o.createElement)(v.a,{propertyName:u}),value:y},g))})),E=function(e){var t=e.className,r=e.countries,n=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,g=e.required,m=void 0!==g&&g,f=e.errorId,O=e.errorMessage,j=void 0===O?Object(l.__)("Please select a country.","woo-gutenberg-products-block"):O,h=Object.keys(r).map((function(e){return{key:e,name:Object(b.decodeEntities)(r[e])}}));return Object(o.createElement)("div",{className:d()(t,"wc-block-country-input")},Object(o.createElement)(w,{id:n,label:c,onChange:a,options:h,value:h.find((function(e){return e.key===s})),errorId:f,errorMessage:j,required:m}),"off"!==p&&Object(o.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:p,value:s,onChange:function(e){var t=e.target.value,r=h.find((function(e){return e.key===t}));a(r?r.key:"")},style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1}))},k=function(e){return Object(o.createElement)(E,s()({countries:u.H},e))},S=function(e){return Object(o.createElement)(E,s()({countries:u.a},e))},P=function(e){var t=e.className,r=e.id,n=e.states,c=e.country,i=e.label,s=e.onChange,u=e.autoComplete,p=void 0===u?"off":u,d=e.value,g=void 0===d?"":d,m=e.required,f=void 0!==m&&m,O=n[c],j=O?Object.keys(O).map((function(e){return{key:e,name:Object(b.decodeEntities)(O[e])}})):[],h=Object(o.useCallback)((function(e){if(j.length>0){var t=j.find((function(t){return t.key===e||t.name===e}));s(t?t.key:"")}else s(e)}),[s,j]);return j.length>0?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w,{className:t,id:r,label:i,onChange:h,options:j,value:j.find((function(e){return e.key===g})),errorMessage:Object(l.__)("Please select a state.","woo-gutenberg-products-block"),required:f}),"off"!==p&&Object(o.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:p,value:g,onChange:function(e){return h(e.target.value)},style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1})):Object(o.createElement)(a.a,{className:t,id:r,label:i,onChange:h,autoComplete:p,value:g,required:f})},N=function(e){return Object(o.createElement)(P,s()({states:u.K},e))},C=function(e){return Object(o.createElement)(P,s()({states:u.b},e))},M=r(153);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 x(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){c()(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}var I={city:{index:9},postcode:{index:7}},R={state:{required:!1}},A={state:{required:!1,hidden:!0}},L={postcode:{required:!1,hidden:!0}},T={AE:x(x({},L),R),AF:A,AO:x(x({},L),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),AT:x(x({},I),A),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:x(x({},I),A),BD:{postcode:{required:!1},state:{label:Object(l.__)("District","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("District (optional)","woo-gutenberg-products-block")}},BE:x(x({},I),A),BH:x({postcode:{required:!1}},A),BI:A,BO:L,BS:L,CA:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},CH:x(x({},I),{},{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:A,DE:x(x({},I),A),DK:x(x({},I),A),EE:x(x({},I),A),ES:x(x({},I),{},{state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}}),FI:x(x({},I),A),FR:x(x({},I),A),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:A,GF:A,GR:R,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:x(x({},I),A),IL:x(x({},I),A),IM:A,IT:x(x({},I),{},{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:A,KW:A,LB:A,LI:x(x({},I),{},{state:{label:Object(l.__)("Municipality","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Municipality (optional)","woo-gutenberg-products-block"),required:!1}}),LK:A,LU:A,LV:{state:{label:Object(l.__)("Municipality","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Municipality (optional)","woo-gutenberg-products-block"),required:!1}},MQ:A,MT:A,MZ:x(x({},L),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),NL:x(x({},I),A),NG:x(x({},L),{},{state:{label:Object(l.__)("State","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("State (optional)","woo-gutenberg-products-block")}}),NO:x(x({},I),A),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:x(x({},I),A),PT:A,RE:A,RO:{state:{label:Object(l.__)("County","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("County (optional)","woo-gutenberg-products-block")}},RS:A,SE:x(x({},I),A),SG:x({city:{required:!1}},A),SK:x(x({},I),A),SI:x(x({},I),A),SR:x({},L),ST:x(x({},L),{},{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:x(x({},I),{},{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}}),UG:x(x({},L),{},{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:x({city:{index:8},postcode:{index:7,required:!1}},A),WS:L,YT:A,ZA:{state:{label:Object(l.__)("Province","woo-gutenberg-products-block"),optionalLabel:Object(l.__)("Province (optional)","woo-gutenberg-products-block")}},ZW:L};function z(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?z(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.a=Object(h.a)((function(e){var t=e.id,r=e.fields,n=void 0===r?Object.keys(M.a):r,i=e.fieldConfig,s=void 0===i?{}:i,u=e.instanceId,b=e.onChange,p=e.type,d=void 0===p?"shipping":p,g=e.values,m=Object(O.b)(),f=m.getValidationError,j=m.setValidationErrors,h=m.clearValidationError,v=T[g.country]||{},y=n.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})),_=f("shipping-missing-country")||{};return Object(o.useEffect)((function(){"shipping"===d&&function(e,t,r,n){n||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}}),n&&e.country&&r("shipping-missing-country")}(g,j,h,_.message&&!_.hidden)}),[g,_,j,h,d]),t=t||u,Object(o.createElement)("div",{id:t,className:"wc-block-address-form"},y.map((function(e){if(e.hidden)return null;if("country"===e.key){var r="shipping"===d?k:S;return Object(o.createElement)(r,{key:e.key,id:"".concat(t,"-").concat(e.key),label:e.required?e.label:e.optionalLabel,value:g.country,autoComplete:e.autocomplete,onChange:function(e){return b(U(U({},g),{},{country:e,state:"",city:"",postcode:""}))},errorId:"shipping"===d?"shipping-missing-country":null,errorMessage:e.errorMessage,required:e.required})}if("state"===e.key){var n="shipping"===d?N:C;return Object(o.createElement)(n,{key:e.key,id:"".concat(t,"-").concat(e.key),country:g.country,label:e.required?e.label:e.optionalLabel,value:g.state,autoComplete:e.autocomplete,onChange:function(e){return b(U(U({},g),{},{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-address-form__".concat(e.key),label:e.required?e.label:e.optionalLabel,value:g[e.key],autoComplete:e.autocomplete,onChange:function(t){return b(U(U({},g),{},c()({},e.key,t)))},errorMessage:e.errorMessage,required:e.required})})))}))},845:function(e,t,r){"use strict";var n=r(11),c=r.n(n),o=r(0),a=r(1),i=r(5),s=(r(2),r(149)),u=r(8),l=r.n(u),b=r(841),p=r(259),d=r(48),g=r.n(d),m=r(95);r(280);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 O(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){l()(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 j=function(e){var t=e.address,r=e.onUpdate,n=e.addressFields,i=Object(o.useState)(t),s=c()(i,2),u=s[0],l=s[1],d=Object(m.b)(),f=d.hasValidationErrors,j=d.showAllValidationErrors,h={};return n.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-shipping-calculator-address"},Object(o.createElement)(b.a,{fields:n,fieldConfig:h,onChange:l,values:u}),Object(o.createElement)(p.a,{className:"wc-block-shipping-calculator-address__button",disabled:g()(u,t),onClick:function(e){if(e.preventDefault(),j(),!f)return r(u)},type:"submit"},Object(a.__)("Update","woo-gutenberg-products-block")))},h=function(e){var t=e.onUpdate,r=void 0===t?function(){}:t,n=e.addressFields,c=void 0===n?["country","state","city","postcode"]:n,a=Object(s.b)(),i=a.shippingAddress,u=a.setShippingAddress;return Object(o.createElement)("div",{className:"wc-block-cart__shipping-calculator"},Object(o.createElement)(j,{address:i,addressFields:c,onUpdate:function(e){u(e),r(e)}}))},v=r(54),y=r.n(v),_=r(33),w=function(e){var t=e.address;if(0===Object.values(t).length)return null;var r="string"==typeof i.H[t.country]?Object(_.decodeEntities)(i.H[t.country]):"",n="object"===y()(i.K[t.country])&&"string"==typeof i.K[t.country][t.state]?Object(_.decodeEntities)(i.K[t.country][t.state]):t.state,c=[];c.push(t.postcode.toUpperCase()),c.push(t.city),c.push(n),c.push(r);var s=c.filter(Boolean).join(", ");return s&&Object(o.createElement)("span",{className:"wc-block-cart__shipping-address"},Object(a.sprintf)(Object(a.__)("Shipping to %s","woo-gutenberg-products-block"),s)+" ")},E=r(129),k=r(62),S=r(55),P=r(187),N=r(853),C=function(e){return{label:Object(_.decodeEntities)(e.name),value:e.rate_id,description:Object(o.createElement)(o.Fragment,null,e.price&&Object(o.createElement)(S.a,{currency:Object(P.c)(e),value:e.price}),e.price&&e.delivery_time?" — ":null,Object(_.decodeEntities)(e.delivery_time))}},M=function(e){var t=e.hasRates,r=e.shippingRates,n=e.shippingRatesLoading;return Object(o.createElement)("fieldset",{className:"wc-block-shipping-totals__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)(N.a,{className:"wc-block-shipping-totals__options",collapsibleWhenMultiple:!0,noResultsMessage:Object(a.__)("No shipping options were found.","woo-gutenberg-products-block"),renderOption:C,shippingRates:r,shippingRatesLoading:n}))},D=function(e){return e.some((function(e){return e.shipping_rates.length}))};r(501),t.a=function(e){var t=e.currency,r=e.values,n=e.isCheckout,s=void 0!==n&&n,u=e.showCalculator,l=void 0===u||u,b=e.showRatesWithoutAddress,p=void 0!==b&&b,d=Object(o.useState)(!1),g=c()(d,2),m=g[0],f=g[1],O=Object(E.a)(),j=O.shippingRates,v=O.shippingRatesLoading,y=O.hasShippingAddress,_=O.shippingAddress,S=i.o?parseInt(r.total_shipping,10)+parseInt(r.total_shipping_tax,10):parseInt(r.total_shipping,10),P=D(j)||S,N=p||y;return P||y||s?Object(o.createElement)("div",{className:"wc-block-shipping-totals"},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)(w,{address:_})," ",l&&Object(o.createElement)("button",{className:"wc-block-shipping-totals__change-address-button",onClick:function(){f(!m)}},Object(a.__)("(change address)","woo-gutenberg-products-block"))),currency:t}),l&&m&&Object(o.createElement)(h,{onUpdate:function(){f(!1)}}),!s&&N&&Object(o.createElement)(M,{hasRates:P,shippingRates:j,shippingRatesLoading:v})):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(k.a,{className:"wc-block-shipping-totals",label:Object(a.__)("Shipping","woo-gutenberg-products-block"),value:l?Object(o.createElement)("button",{className:"wc-block-shipping-totals__change-address-button",onClick:function(){f(!m)}},Object(a.__)("Calculate","woo-gutenberg-products-block")):Object(o.createElement)("em",null,Object(a.__)("Calculated during checkout","woo-gutenberg-products-block"))}),l&&m&&Object(o.createElement)(h,{onUpdate:function(){f(!1)}}))}},853:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(9),a=(r(2),r(82)),i=r(106),s=r(816),u=r(23),l=r.n(u),b=r(802),p=r(33),d=r(44),g=r(131),m=r(147),f=r(7),O=r.n(f),j=r(200),h=r(159),v=r(881),y=function(e){var t=e.className,r=e.noResultsMessage,c=e.onChange,o=e.options,a=e.renderOption,i=e.selected;if(0===o.length)return Object(n.createElement)(v.a,{isDismissible:!1,className:O()("wc-block-shipping-rates-control__no-results-notice","woocommerce-message","woocommerce-info")},r);if(o.length>1)return Object(n.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(n.createElement)(h.a,{label:u,secondaryLabel:l,description:b,secondaryDescription:p})},_=(r(218),function(e){var t=e.className,r=e.collapsible,o=void 0!==r&&r,a=e.noResultsMessage,i=e.onChange,s=e.renderOption,u=e.selected,l=e.shippingRate,b=e.showItems,f=e.title,j=Object(n.createElement)(n.Fragment,null,f&&Object(n.createElement)(g.a,{className:"wc-block-shipping-rates-control__package-title",headingLevel:"3"},f),b&&Object(n.createElement)("ul",{className:"wc-block-shipping-rates-control__package-items"},Object.values(l.items).map((function(e){var t=Object(p.decodeEntities)(e.name),r=e.quantity;return Object(n.createElement)("li",{key:t,className:"wc-block-shipping-rates-control__package-item"},Object(n.createElement)(d.a,{label:"".concat(t," ×").concat(r),screenReaderLabel:Object(c.sprintf)(Object(c._n)("%s (%d unit)","%s (%d units)",r,"woo-gutenberg-products-block"),t,r)}))})))),h=Object(n.createElement)(y,{className:t,noResultsMessage:a,onChange:i,options:l.shipping_rates,renderOption:s,selected:u});return o?Object(n.createElement)(m.a,{className:"wc-block-shipping-rates-control__package",initialOpen:!0,title:j},h):Object(n.createElement)("div",{className:O()("wc-block-shipping-rates-control__package",t)},j,h)}),w=function(e){var t=e.className,r=e.collapsible,c=void 0!==r&&r,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(n.createElement)("div",{className:"wc-block-shipping-rates-control"},s.map((function(e){var r=e.package_id,i=l()(e,["package_id"]);return Object(n.createElement)(_,{key:r,className:t,collapsible:c,noResultsMessage:o,onChange:function(e){p(e,r)},renderOption:a,selected:d[r],shippingRate:i,showItems:s.length>1,title:s.length>1?i.name:null})})))};t.a=function(e){var t=e.shippingRates,r=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(!r){var e=Object(s.a)(t),n=Object(s.b)(t);0===n?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.",n,"woo-gutenberg-products-block"),n)):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",n,"woo-gutenberg-products-block"),n))}}),[r,t]),Object(n.createElement)(i.a,{isLoading:r,screenReaderLabel:Object(c.__)("Loading shipping rates…","woo-gutenberg-products-block"),showSpinner:!0},Object(n.createElement)(w,{className:u,collapsible:t.length>1&&b,noResultsMessage:p,renderOption:d,shippingRates:t}))}},854:function(e,t,r){"use strict";var n=r(10),c=r.n(n),o=r(8),a=r.n(o),i=r(0),s=r(7),u=r.n(s),l=function(e){return"wc-blocks-payment-method-icon wc-blocks-payment-method-icon--".concat(e)},b=function(e){var t=e.id,r=e.src,n=void 0===r?null:r,c=e.alt,o=void 0===c?"":c;return n?Object(i.createElement)("img",{className:l(t),src:n,alt:o}):null},p=r(5),d=[{id:"alipay",alt:"Alipay",src:p.Q+"img/payment-methods/alipay.svg"},{id:"amex",alt:"American Express",src:p.Q+"img/payment-methods/amex.svg"},{id:"bancontact",alt:"Bancontact",src:p.Q+"img/payment-methods/bancontact.svg"},{id:"diners",alt:"Diners Club",src:p.Q+"img/payment-methods/diners.svg"},{id:"discover",alt:"Discover",src:p.Q+"img/payment-methods/discover.svg"},{id:"eps",alt:"EPS",src:p.Q+"img/payment-methods/eps.svg"},{id:"giropay",alt:"Giropay",src:p.Q+"img/payment-methods/giropay.svg"},{id:"ideal",alt:"iDeal",src:p.Q+"img/payment-methods/ideal.svg"},{id:"jcb",alt:"JCB",src:p.Q+"img/payment-methods/jcb.svg"},{id:"laser",alt:"Laser",src:p.Q+"img/payment-methods/laser.svg"},{id:"maestro",alt:"Maestro",src:p.Q+"img/payment-methods/maestro.svg"},{id:"mastercard",alt:"Mastercard",src:p.Q+"img/payment-methods/mastercard.svg"},{id:"multibanco",alt:"Multibanco",src:p.Q+"img/payment-methods/multibanco.svg"},{id:"p24",alt:"Przelewy24",src:p.Q+"img/payment-methods/p24.svg"},{id:"sepa",alt:"Sepa",src:p.Q+"img/payment-methods/sepa.svg"},{id:"sofort",alt:"Sofort",src:p.Q+"img/payment-methods/sofort.svg"},{id:"unionpay",alt:"Union Pay",src:p.Q+"img/payment-methods/unionpay.svg"},{id:"visa",alt:"Visa",src:p.Q+"img/payment-methods/visa.svg"},{id:"wechat",alt:"WeChat",src:p.Q+"img/payment-methods/wechat.svg"}],g=r(54),m=r.n(g);r(508);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 O(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){a()(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}t.a=function(e){var t=e.icons,r=void 0===t?[]:t,n=e.align,o=void 0===n?"center":n,a=function(e){var t={};return e.forEach((function(e){var r={};"string"==typeof e&&(r={id:e,alt:e,src:null}),"object"===m()(e)&&(r={id:e.id||"",alt:e.alt||"",src:e.src||null}),r.id&&!t[r.id]&&(t[r.id]=r)})),Object.values(t)}(r);if(0===a.length)return null;var s=u()("wc-block-cart__payment-method-icons",{"wc-block-cart__payment-method-icons--align-left":"left"===o,"wc-block-cart__payment-method-icons--align-right":"right"===o});return Object(i.createElement)("div",{className:s},a.map((function(e){var t,r=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},r))})))}},863:function(e,t,r){"use strict";var n=r(0),c=(r(2),r(33)),o=function(e){var t=e.variation,r=void 0===t?[]:t;if(!r)return null;var o=r.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(n.createElement)("div",{className:"wc-block-product-variation-data"},o)},a=r(146),i=r(3),s=function(e){var t=e.shortDescription,r=void 0===t?"":t,c=e.fullDescription,o=r||(void 0===c?"":c);return o?Object(n.createElement)(a.a,{source:o,maxLength:15,countType:Object(i.getSetting)("wordCountType","words")}):null};r(497),t.a=function(e){var t=e.shortDescription,r=void 0===t?"":t,c=e.fullDescription,a=void 0===c?"":c,i=e.variation,u=void 0===i?[]:i;return Object(n.createElement)("div",{className:"wc-block-product-metadata"},Object(n.createElement)(s,{shortDescription:r,fullDescription:a}),Object(n.createElement)(o,{variation:u}))}},865:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(1),c=r(5),o=[{destination:{},package_id:0,name:Object(n.__)("Shipping","woo-gutenberg-products-block"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:Object(n._x)("Beanie with Logo","example product in Cart Block","woo-gutenberg-products-block"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:Object(n._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(n.__)("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(n.__)("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.J?o:[],items:[{key:"1",id:1,quantity:2,name:Object(n.__)("Beanie","woo-gutenberg-products-block"),short_description:Object(n.__)("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,sold_individually:!1,images:[{id:10,src:c.Q+"img/beanie.jpg",thumbnail:c.Q+"img/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(n.__)("Color","woo-gutenberg-products-block"),value:Object(n.__)("Yellow","woo-gutenberg-products-block")},{attribute:Object(n.__)("Size","woo-gutenberg-products-block"),value:Object(n.__)("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(n.__)("Cap","woo-gutenberg-products-block"),short_description:Object(n.__)("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,sold_individually:!1,images:[{id:11,src:c.Q+"img/cap.jpg",thumbnail:c.Q+"img/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(n.__)("Color","woo-gutenberg-products-block"),value:Object(n.__)("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.I,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:[]}}},866:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(5),a=r(106),i=(r(2),r(7)),s=r.n(i),u=(r(500),function(e){var t=e.text,r=e.screenReaderText,o=e.element,a=void 0===o?"li":o,i=e.className,u=void 0===i?"":i,l=e.onRemove,b=void 0===l?function(){}:l,p=e.disabled,d=void 0!==p&&p,g=e.radius,m=void 0===g?"small":g,f=a,O=s()(u,"wc-block-components-chip","wc-block-components-chip--radius-"+m);return Object(n.createElement)(f,{className:O},Object(n.createElement)("span",{"aria-hidden":"true",className:"wc-block-components-chip__text"},t),Object(n.createElement)("span",{className:"screen-reader-text"},r||t),Object(n.createElement)("button",{className:"wc-block-components-chip__remove",onClick:b,disabled:d,"aria-label":Object(c.sprintf)(Object(c.__)('Remove coupon "%s"',"woo-gutenberg-products-block"),t)},"✕"))}),l=r(62);t.a=function(e){var t=e.cartCoupons,r=void 0===t?[]:t,i=e.currency,s=e.isRemovingCoupon,b=e.removeCoupon,p=e.values,d=p.total_discount,g=p.total_discount_tax,m=parseInt(d,10);if(!m&&0===r.length)return null;var f=parseInt(g,10),O=o.o?m+f:m;return Object(n.createElement)(l.a,{currency:i,description:0!==r.length&&Object(n.createElement)(a.a,{screenReaderLabel:Object(c.__)("Removing coupon…","woo-gutenberg-products-block"),isLoading:s,showSpinner:!1},Object(n.createElement)("ul",{className:"wc-block-cart-coupon-list"},r.map((function(e){return Object(n.createElement)(u,{key:"coupon-"+e.code,className:"wc-block-cart-coupon-list__item",text:e.code,screenReaderText:Object(c.sprintf)(Object(c.__)("Coupon: %s","woo-gutenberg-products-block"),e.code),disabled:s,onRemove:function(){b(e.code)},radius:"large"})})))),label:O?Object(c.__)("Discount","woo-gutenberg-products-block"):Object(c.__)("Coupons","woo-gutenberg-products-block"),value:O?-1*O:"-"})}},9:function(e,t){!function(){e.exports=this.React}()},95:function(e,t,r){"use strict";r.d(t,"b",(function(){return g})),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(48),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}}),g=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]),g=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}))}),[]),f=Object(i.useCallback)((function(){u({})}),[]),O=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))}))}),[]),h={getValidationError:b,setValidationErrors:O,clearValidationError:m,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(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:g};return Object(i.createElement)(d.Provider,{value:h},t)}}});
|
build/checkout-frontend.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', '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' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', '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' => 'bb19f30eba088d27504597685ccd3f1d');
|
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 a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var c=o.apply(null,r);c&&e.push(c)}else if("object"===a)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,n){e.exports=n(59)()},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,"i",(function(){return o})),n.d(t,"s",(function(){return a})),n.d(t,"w",(function(){return c})),n.d(t,"p",(function(){return i})),n.d(t,"l",(function(){return u})),n.d(t,"o",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"x",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"j",(function(){return f})),n.d(t,"c",(function(){return b})),n.d(t,"m",(function(){return m})),n.d(t,"n",(function(){return g})),n.d(t,"A",(function(){return h})),n.d(t,"t",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"u",(function(){return O})),n.d(t,"b",(function(){return j})),n.d(t,"f",(function(){return w})),n.d(t,"v",(function(){return k})),n.d(t,"g",(function(){return S})),n.d(t,"r",(function(){return R})),n.d(t,"q",(function(){return P})),n.d(t,"z",(function(){return C})),n.d(t,"y",(function(){return x})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return N}));var r=n(2),o=Object(r.getSetting)("currentUserIsAdmin",!1),a=Object(r.getSetting)("reviewRatingsEnabled",!0),c=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","")),u=(Object(r.getSetting)("thumbnail_size",300),Object(r.getSetting)("isLargeCatalog")),s=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)("displayShopPricesIncludingTax",!1),Object(r.getSetting)("displayCartPricesIncludingTax",!1)),b=(Object(r.getSetting)("productCount",0),Object(r.getSetting)("attributes",[])),m=Object(r.getSetting)("isShippingCalculatorEnabled",!0),g=Object(r.getSetting)("isShippingCostHidden",!1),h=(Object(r.getSetting)("woocommerceBlocksPhase",1),Object(r.getSetting)("wcBlocksAssetUrl","")),v=Object(r.getSetting)("shippingCountries",{}),y=Object(r.getSetting)("allowedCountries",{}),O=Object(r.getSetting)("shippingStates",{}),j=Object(r.getSetting)("allowedStates",{}),w=(Object(r.getSetting)("shippingMethodsExist",!1),Object(r.getSetting)("checkoutShowLoginReminder",!0)),E={id:0,title:"",permalink:""},_=Object(r.getSetting)("storePages",{shop:E,cart:E,checkout:E,privacy:E,terms:E}),k=_.shop.permalink,S=(_.checkout.id,_.checkout.permalink),R=_.privacy.permalink,P=_.privacy.title,C=_.terms.permalink,x=_.terms.title,I=(_.cart.id,_.cart.permalink),N=Object(r.getSetting)("checkoutAllowsGuest",!1);Object(r.getSetting)("checkoutAllowsSignup",!1),n(39)},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(70),o=n(71),a=n(52),c=n(72);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||c()}},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(73);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},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"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){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){!function(){e.exports=this.regeneratorRuntime}()},,,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(45);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,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(51);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,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}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,n){"use strict";var r=n(6),o=n.n(r),a=(n(5),n(3)),c=n(4),i=n.n(c);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e){var t,n=e.label,r=e.screenReaderLabel,o=e.wrapperElement,c=e.wrapperProps,u=null!=n,l=null!=r;return!u&&l?(t=o||"span",c=s(s({},c),{},{className:i()(c.className,"screen-reader-text")}),React.createElement(t,c,r)):(t=o||a.Fragment,u&&l&&n!==r?React.createElement(t,c,React.createElement("span",{"aria-hidden":"true"},n),React.createElement("span",{className:"screen-reader-text"},r)):React.createElement(t,c,n))};l.defaultProps={wrapperProps:{}},t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(30);function o(e,t){if(null==e)return{};var n,o,a=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(6),c=n.n(a),i=n(14),u=n.n(i),s=n(3),l=n.n(s);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 p(){return(p=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 f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){}function h(){}h.resetWarningCache=g;var v=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:h,resetWarningCache:g};return n.PropTypes=n,n}()}));function y(){}function O(e){return!!(e||"").match(/\d/)}function j(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function w(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split("."),a=o[0],c=o[1]||"";return{beforeDecimal:a,afterDecimal:c,hasNagation:n,addNegation:r}}function E(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function _(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 k(e,t,n){return Math.min(Math.max(e,t),n)}function S(e){return Math.max(e.selectionStart,e.selectionEnd)}var R={thousandSeparator:v.oneOfType([v.string,v.oneOf([!0])]),decimalSeparator:v.string,allowedDecimalSeparators:v.arrayOf(v.string),thousandsGroupStyle:v.oneOf(["thousand","lakh","wan"]),decimalScale:v.number,fixedDecimalScale:v.bool,displayType:v.oneOf(["input","text"]),prefix:v.string,suffix:v.string,format:v.oneOfType([v.string,v.func]),removeFormatting:v.func,mask:v.oneOfType([v.string,v.arrayOf(v.string)]),value:v.oneOfType([v.number,v.string]),defaultValue:v.oneOfType([v.number,v.string]),isNumericString:v.bool,customInput:v.elementType,allowNegative:v.bool,allowEmptyFormatting:v.bool,allowLeadingZeros:v.bool,onValueChange:v.func,onKeyDown:v.func,onMouseUp:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,type:v.oneOf(["text","tel","password"]),isAllowed:v.func,renderText:v.func,getInputRef:v.oneOfType([v.func,v.shape({current:v.any})])},P={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:y,onChange:y,onKeyDown:y,onMouseUp:y,onFocus:y,onBlur:y,isAllowed:function(){return!0}},C=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=f(t).call(this,e))||"object"!=typeof o&&"function"!=typeof o?m(r):o;var a=e.defaultValue;n.validateProps();var c=n.formatValueProp(a);return n.state={value:c,numAsString:n.removeFormatting(c)},n.selectionBeforeInput={selectionStart:0,selectionEnd:0},n.onChange=n.onChange.bind(m(n)),n.onKeyDown=n.onKeyDown.bind(m(n)),n.onMouseUp=n.onMouseUp.bind(m(n)),n.onFocus=n.onFocus.bind(m(n)),n.onBlur=n.onBlur.bind(m(n)),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(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,a=n.numAsString,c=void 0===a?"":a;if(e!==t){this.validateProps();var i=this.formatNumString(c),u=void 0===t.value?i:this.formatValueProp(),s=this.removeFormatting(u),l=parseFloat(s),d=parseFloat(c);(isNaN(l)&&isNaN(d)||l===d)&&i===o&&(null!==r||u===o)||this.updateValue({formattedValue:u,numAsString:s,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),a="-"===e[0];a&&(e=e.replace("-","")),r&&0===t&&(e=e.split(r)[0]);var c=(e=(e.match(o)||[]).join("").replace(r,".")).indexOf(".");return-1!==c&&(e="".concat(e.substring(0,c),".").concat(e.substring(c+1,e.length).replace(new RegExp(j(r),"g"),""))),a&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var n=this.props,r=n.format,o=n.decimalScale,a=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!a||0===o||t||r?"":"|"+j(a)),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){_(e,t),setTimeout((function(){e.value===n&&_(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,n){var r=this.props,o=r.prefix,a=r.suffix,c=r.format;if(""===e)return 0;if(t=k(t,0,e.length),!c){var i="-"===e[0];return k(t,o.length+(i?1:0),e.length-a.length)}if("function"==typeof c)return t;if("#"===c[t]&&O(e[t]))return t;if("#"===c[t-1]&&O(e[t-1]))return t;var u=c.indexOf("#");t=k(t,u,c.lastIndexOf("#")+1);for(var s=c.substring(t,c.length).indexOf("#"),l=t,d=t+(-1===s?0:s);l>u&&("#"!==c[l]||!O(e[l]));)l-=1;return!O(e[d])||"left"===n&&t!==u||t-l<d-t?O(e[l])?l+1:l:d}},{key:"getCaretPosition",value:function(e,t,n){var r,o,a=this.props.format,c=this.state.value,i=this.getNumberRegex(!0),u=(e.match(i)||[]).join(""),s=(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||u.length===s.length)){for(;l!==t[r]&&r<t.length;)r++;r++}}return"string"!=typeof a||c||(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 a="-"===e[0];a&&(e=e.substring(1,e.length));var c=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==c&&c===e.length-o.length?e.substring(0,c):e,a&&(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,a=t.length;o<=a;o++){var c=t[o]||"",i=o===a?e.length:e.indexOf(c,n);if(-1===i){r=e;break}r+=e.substring(n,i),n=i+c.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,a=t.length;o<a;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,a=t.suffix,c=t.allowNegative,i=t.thousandsGroupStyle,u=this.getSeparators(),s=u.thousandSeparator,l=u.decimalSeparator,d=-1!==e.indexOf(".")||n&&r,p=w(e,c),f=p.beforeDecimal,b=p.afterDecimal,m=p.addNegation;return void 0!==n&&(b=E(b,n,r)),s&&(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,s,i)),o&&(f=o+f),a&&(b+=a),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,a=t.allowEmptyFormatting,c=this.props,i=c.value,u=void 0===i?e:i,s=c.isNumericString,l=!u&&0!==u;return l&&a&&(u=""),l&&!a?"":("number"==typeof u&&(u=u.toString(),s=!0),"Infinity"===u&&s&&(u=""),s&&!n&&"number"==typeof r&&(u=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=-1!==e.indexOf(".")&&t,o=w(e),a=o.beforeDecimal,c=o.afterDecimal,i=o.hasNagation,u=parseFloat("0.".concat(c||"0")).toFixed(t).split("."),s=a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0]),l=E(u[1]||"",Math.min(t,c.length),n),d=r?".":"";return"".concat(i?"-":"").concat(s).concat(d).concat(l)}(u,r,o)),s?this.formatNumString(u):this.formatInput(u))}},{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),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&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,a=n.suffix,c=n.decimalScale,i=n.fixedDecimalScale,u=this.getSeparators().decimalSeparator;return"string"==typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-a.length||c&&i&&t[e]===u))}},{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,a=r.allowNegative,c=r.prefix,i=r.suffix,u=r.decimalScale,s=this.getSeparators(),l=s.allowedDecimalSeparators,d=s.decimalSeparator,p=this.state.numAsString||"",f=this.selectionBeforeInput,b=f.selectionStart,m=f.selectionEnd,g=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),h=g.start,v=g.end;if(!o&&h===v&&-1!==l.indexOf(n[b])){var y=0===u?"":d;return n.substr(0,b)+y+n.substr(b+1,n.length)}var O=o?0:c.length,j=t.length-(o?0:i.length);if(n.length>t.length||!n.length||h===v||0===b&&m===t.length||b===O&&m===j)return n;if(this.checkIfFormatGotDeleted(h,v,t)&&(n=t),!o){var E=this.removeFormatting(n),_=w(E,a),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,a=e.numAsString,c=e.caretPos,i=this.props.onValueChange,u=this.state.value;if(n)if(o){if(!c){var s=e.inputValue||n.value,l=S(n);n.value=t,c=this.getCaretPosition(s,t,l)}this.setPatchedCaretPosition(n,c,t)}else n.value=t;void 0===a&&(a=this.removeFormatting(t)),t!==u&&(this.setState({value:t,numAsString:a}),i(this.getValueObject(t,a)))}},{key:"onChange",value:function(e){var t=e.target,n=t.value,r=this.state,o=this.props,a=o.isAllowed,c=r.value||"",i=S(t);n=this.correctInputValue(i,c,n);var u=this.formatInput(n)||"",s=this.removeFormatting(u);a(this.getValueObject(u,s))||(u=c),this.updateValue({formattedValue:u,numAsString:s,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,a=t.allowLeadingZeros,c=n.numAsString,i=n.value;if(this.focusedElm=null,this.focusTimeout&&clearTimeout(this.focusTimeout),!r){isNaN(parseFloat(c))&&(c=""),a||(c=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):"")}(c));var u=this.formatNumString(c);if(u!==i)return this.updateValue({formattedValue:u,numAsString:c,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,a=n.selectionEnd,c=n.value,i=void 0===c?"":c,u=this.props,s=u.decimalScale,l=u.fixedDecimalScale,d=u.prefix,p=u.suffix,f=u.format,b=u.onKeyDown,m=void 0!==s&&l,g=this.getNumberRegex(!1,m),h=new RegExp("-"),v="string"==typeof f;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:a},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===a){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,a=void 0===o?"":o;if(n===r){var c=this.correctCaretPosition(a,n);c!==n&&this.setPatchedCaretPosition(t,c,a)}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,a=n.value,c=void 0===a?"":a,i=t.correctCaretPosition(c,r);i===r||0===r&&o===c.length||t.setPatchedCaretPosition(n,i,c),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.type,a=r.displayType,c=r.customInput,i=r.renderText,u=r.getInputRef,s=this.state.value,d=(e=this.props,t=R,n={},Object.keys(e).forEach((function(r){t[r]||(n[r]=e[r])})),n),f=p({inputMode:"numeric"},d,{type:o,value:s,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===a)return i?i(s)||null:l.a.createElement("span",p({},d,{ref:u}),s);if(c){var b=c;return l.a.createElement(b,p({},f,{ref:u}))}return l.a.createElement("input",p({},f,{ref:u}))}}])&&d(n.prototype,r),o&&d(n,o),t}(l.a.Component);C.propTypes=R,C.defaultProps=P;var x=C,I=n(4),N=n.n(I);n(90);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 A(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}t.a=function(e){var t=e.className,n=e.value,r=e.currency,a=e.onValueChange,c=u()(e,["className","value","currency","onValueChange"]);if("-"===n)return null;var i=n/Math.pow(10,r.minorUnit);if(!Number.isFinite(i))return null;var s=N()("wc-block-formatted-money-amount",t),l=A(A(A({displayType:"text"},c),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}),d=a?function(e){var t=e.value*Math.pow(10,r.minorUnit);a(t)}:function(){};return React.createElement(x,o()({className:s},l,{value:i,onValueChange:d}))}},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(58);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(20),o=n(19);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(46);var o=n(51);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n(37),a=n.n(o),c=function(e){var t=Object(r.useRef)();return a()(e,t.current)||(t.current=e),t.current}},function(e,t){!function(){e.exports=this.wp.blocks}()},,function(e,t,n){"use strict";n(5);var r=n(4),o=n.n(r),a=n(0),c=n(31);n(157);t.a=function(e){var t=e.className,n=e.currency,r=e.label,i=e.value,u=e.description;return React.createElement("div",{className:o()("wc-block-totals-table-item",t)},React.createElement("span",{className:"wc-block-totals-table-item__label"},r),Object(a.isValidElement)(i)?React.createElement("div",{className:"wc-block-totals-table-item__value"},i):React.createElement(c.a,{className:"wc-block-totals-table-item__value",currency:n,displayType:"text",value:i}),React.createElement("div",{className:"wc-block-totals-table-item__description"},u))}},function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){"use strict";var r=n(32),o=n.n(r),a=n(33),c=n.n(a),i=n(19),u=n.n(i),s=n(34),l=n.n(s),d=n(35),p=n.n(d),f=n(21),b=n.n(f),m=n(6),g=n.n(m),h=(n(5),n(3)),v=n(1),y=n(8),O=function(e){var t=e.imageUrl,n=void 0===t?"".concat(y.A,"img/block-error.svg"):t,r=e.header,o=void 0===r?Object(v.__)("Oops!","woo-gutenberg-products-block"):r,a=e.text,c=void 0===a?Object(v.__)("There was an error loading the content.","woo-gutenberg-products-block"):a,i=e.errorMessage,u=e.errorMessagePrefix,s=void 0===u?Object(v.__)("Error:","woo-gutenberg-products-block"):u;return React.createElement("div",{className:"wc-block-error"},n&&React.createElement("img",{className:"wc-block-error__image",src:n,alt:""}),React.createElement("div",{className:"wc-block-error__content"},o&&React.createElement("p",{className:"wc-block-error__header"},o),c&&React.createElement("p",{className:"wc-block-error__text"},c),i&&React.createElement("p",{className:"wc-block-error__message"},s?s+" ":"",i)))};n(61);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,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return e=t.call.apply(t,[this].concat(a)),g()(u()(e),"state",{errorMessage:"",hasError:!1}),e}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.header,n=e.imageUrl,r=e.showErrorMessage,o=e.text,a=e.errorMessagePrefix,c=this.state,i=c.errorMessage;return c.hasError?React.createElement(O,{errorMessage:r?i:null,header:t,imageUrl:n,text:o,errorMessagePrefix:a}):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){!function(){e.exports=this.ReactDOM}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(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.autop}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t){function n(e,t,n,r,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var c=e.apply(t,r);function i(e){n(c,o,a,i,u,"next",e)}function u(e){n(c,o,a,i,u,"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(53);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,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),a=n(10),c=n.n(a),i=n(0),u=n(7),s=n(37),l=n.n(s);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=c()(n,2),a=r[0],s=r[1],d=Object(i.useCallback)((function(e){return a[e]}),[a]),b=Object(i.useCallback)((function(e){var t=a[e];return!t||t.hidden?"":"validate-error-".concat(e)}),[a]),m=Object(i.useCallback)((function(e){s((function(t){return t[e]?Object(u.omit)(t,[e]):t}))}),[]),g=Object(i.useCallback)((function(){s({})}),[]),h=Object(i.useCallback)((function(e){e&&s((function(t){return e=Object(u.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){s((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(){s((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(a).length>0,getValidationErrorId:b};return React.createElement(f.Provider,{value:y},t)}},,,function(e,t){!function(){e.exports=this.wp.apiFetch}()},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(60);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,c){if(c!==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:a,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";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";n.d(t,"a",(function(){return s}));var r=n(6),o=n.n(r),a=n(111),c=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 u(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 s=function(){var e=Object(a.b)(),t=e.notices,n=e.createNotice,r=e.removeNotice,o=e.createSnackbarNotice,i=e.setIsSuppressed,s=Object(c.useRef)(t);Object(c.useEffect)((function(){s.current=t}),[t]);var l=Object(c.useMemo)((function(){return{hasNoticesOfType:function(e){return s.current.some((function(t){return t.type===e}))},removeNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;s.current.map((function(t){return null!==e&&t.status!==e||r(t.id),!0}))},removeNotice:r}}),[r]),d=Object(c.useMemo)((function(){return{addDefaultNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("default",e,u({},t))},addErrorNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("error",e,u({},t))},addWarningNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("warning",e,u({},t))},addInfoNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("info",e,u({},t))},addSuccessNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("success",e,u({},t))},addSnackbarNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(e,t)}}}),[n,o]);return u(u(u({notices:t},l),d),{},{setIsSuppressed:i})}},function(e,t,n){"use strict";var r=n(1),o=(n(5),n(4)),a=n.n(o),c=n(0);function i(){return Object(c.createElement)("span",{className:"components-spinner"})}n(150),t.a=function(e){var t=e.children,n=e.className,o=e.screenReaderLabel,c=e.showSpinner,u=void 0!==c&&c,s=e.isLoading;return void 0===s||s?React.createElement("div",{className:a()(n,"wc-block-loading-mask")},u&&React.createElement(i,null),React.createElement("div",{className:"wc-blocks-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)),a=r(n(73)),c=n(3),i=r(c),u=r(n(100)),s=r(n(19)),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=c.useState(!1)[1];return c.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,a(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 a;return l.und(t[r])?o({},n,((a={})[r]=e[r],a)):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(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}return u(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(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}u(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof 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,I,N=function(e){return e.current};function M(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 N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:M,get manualFrameloop(){return I},injectManualFrameloop:function(e){I=e}}),D=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 u(t,e),t}(O),T=!1,F=new Set,L=function e(){if(!T)return!1;var t=P(),n=F,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var c=a,i=!1,u=0;u<c.configs.length;u++){for(var s=c.configs[u],l=void 0,d=void 0,p=0;p<s.animatedValues.length;p++){var f=s.animatedValues[p];if(!f.done){var b=s.fromValues[p],m=s.toValues[p],g=f.lastPosition,h=m instanceof v,y=Array.isArray(s.initialVelocity)?s.initialVelocity[p]:s.initialVelocity;if(h&&(m=m.getValue()),s.immediate)f.setValue(m),f.done=!0;else if("string"!=typeof b&&"string"!=typeof m){if(void 0!==s.duration)g=b+s.easing((t-f.startTime)/s.duration)*(m-b),l=t>=f.startTime+s.duration;else if(s.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:s.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;j<O;++j){g+=1*(y+=1*((-s.tension*(g-m)+-s.friction*y)/s.mass)/1e3)/1e3}var w=!(!s.clamp||0===s.tension)&&(b<m?g>m:g<m),E=Math.abs(y)<=s.precision,k=0===s.tension||Math.abs(m-g)<=s.precision;l=w||E&&k,f.lastVelocity=y,f.lastTime=t}h&&!s.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}}c.props.onFrame&&(c.values[s.name]=s.interpolation.getValue())}c.props.onFrame&&c.props.onFrame(c.values),i||(F.delete(c),c.stop(!0))}return F.size?I?I():_(e):T=!1,T};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,a=r.range||[0,1],c=r.extrapolateLeft||r.extrapolate||"extend",i=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,c,i,u){var s=u?u(e):e;if(s<t){if("identity"===c)return s;"clamp"===c&&(s=t)}if(s>n){if("identity"===i)return s;"clamp"===i&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=a(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,a[t],a[t+1],o[t],o[t+1],u,c,i,r.map)}}var B=function(e){function t(n,r,o,a){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof y&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=V(r,o,a),c}u(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=V(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(y);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}u(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(v),U=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}u(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(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,c=t.to,i=a(t,["delay","to"]);if(l.arr(c)||l.fun(c))this.queue.push(o({},i,{delay:r,to:c}));else if(c){var u={};Object.entries(c).forEach((function(e){var t,n=e[0],a=e[1],c=o({to:(t={},t[n]=a,t),delay:b(r,n)},i),s=u[c.delay]&&u[c.delay].to;u[c.delay]=o({},u[c.delay],c,{to:o({},s,c.to)})})),this.queue=Object.values(u)}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,a=e.to,c=void 0===a?{}:a;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(c)&&(n.merged=o({},n.merged,c))}));var r=this.local=++this.guid,c=this.localQueue=this.queue;this.queue=[],c.forEach((function(t,o){var i=t.delay,u=a(t,["delay"]),s=function(t){o===c.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=l.arr(u.to)||l.fun(u.to);i?setTimeout((function(){r===n.guid&&(d?n.runAsync(u,s):n.diff(u).start(s))}),i):d?n.runAsync(u,s):n.diff(u).start(s)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,F.has(t)||F.add(t),T||(T=!0,_(I||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,a(e,["delay"])),c=this.local,i=Promise.resolve(void 0);if(l.arr(r.to))for(var u=function(e){var t=e,a=o({},r,m(r.to[t]));l.arr(a.config)&&(a.config=a.config[t]),i=i.then((function(){if(c===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},s=0;s<r.to.length;s++)u(s);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++,c===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,a=void 0===r?{}:r,c=n.to,i=void 0===c?{}:c,u=n.config,s=void 0===u?{}:u,d=n.reverse,m=n.attach,g=n.reset,v=n.immediate;if(d){var y=[i,a];a=y[0],i=y[1]}this.merged=o({},a,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],c=n[1],i=e[r]||{},u=l.num(c),d=l.str(c)&&!c.startsWith("#")&&!/\d/.test(c)&&!h[c],m=l.arr(c),y=!u&&!m&&!d,j=l.und(a[r])?c:a[r],w=u||m||d?c:1,_=b(s,r);O&&(w=O.animations[r].parent);var k,S=i.parent,R=i.interpolation,C=f(O?w.getPayload():w),x=c;y&&(x=E({range:[0,1],output:[c,c]})(1));var I,N=R&&R.getValue(),M=!l.und(S)&&i.animatedValues.some((function(e){return!e.done})),A=!l.equ(x,N),D=!l.equ(x,i.previous),T=!l.equ(_,i.config);if(g||D&&A||T){var F;if(u||d)S=R=i.parent||new H(j);else if(m)S=R=i.parent||new U(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 H(0);var V={output:[L,c]};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=M?e.lastVelocity:void 0,e.lastTime=M?e.lastTime:void 0,e.startTime=P(),e.done=!1,e.animatedStyles.clear()})),b(v,r)&&S.setValue(y?w:c,!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,((I={})[r]=o({},e[r],{previous:x}),I)))}),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=c.useRef(!1),r=c.useRef(),o=l.fun(t),a=c.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 a=new q,c=o?b(t,r,a):t[r];return 0===r&&(n=c.ref),a.update(c),n||a.start(),a})),n]}),[e]),i=a[0],u=a[1];r.current=i;c.useImperativeHandle(u,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=c.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?b(e,n,t):e[n]),u||t.start()}))}}),[e]);c.useEffect((function(){n.current?o||s(t):u||r.current.forEach((function(e){return e.start()}))})),c.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,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},K=0,Y=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},$=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,c=a(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:Y(t,r)},c)};function G(e,t){var n=function(){if(o){if(a>=r.length)return"break";c=r[a++]}else{if((a=r.next()).done)return"break";c=a.value}var n=c.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),a=0;for(r=o?r:r[Symbol.iterator]();;){var c;if("break"===n())break}e.current.forceUpdate()}var Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=g.transform(t)),n.payload=t,n}return u(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},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})$/,ae=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{6})$/,ie=/^#([0-9a-fA-F]{8})$/;function ue(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=ue(o,r,e+1/3),c=ue(o,r,e),i=ue(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*c)<<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=ce.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|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=ae.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(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(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 je={};M((function(e){return new Z(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(X),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,c=t.scrollLeft,i=a(t,["style","children","scrollTop","scrollLeft"]),u="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==c&&(e.scrollLeft=c),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var l=0===s.indexOf("--"),d=Oe(s,n[s],l);"float"===s&&(s="cssFloat"),l?e.style.setProperty(s,d):e.style[s]=d}for(var p in i){var f=u?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 c.forwardRef((function(t,n){var r=d(),u=c.useRef(!0),s=c.useRef(null),p=c.useRef(null),f=c.useCallback((function(e){var t=s.current;s.current=new D(e,(function(){var e=!1;p.current&&(e=g.fn(p.current,s.current.getAnimatedValue())),p.current&&!1!==e||r()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){u.current=!1,s.current&&s.current.detach()}}),[]),c.useImperativeHandle(n,(function(){return N(p,u,r)})),f(t);var b,m=s.current.getValue(),h=(m.scrollTop,m.scrollLeft,a(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],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=c.useRef(!1),r=l.fun(t),a=b(t),i=c.useRef(),u=W(e,(function(e,t){return 0===e&&(i.current=[]),i.current.push(t),o({},a,{config:b(a.config,e),attach:e>0&&function(){return i.current[e-1]}})})),s=u[0],d=u[1],p=u[2],f=c.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,c=i.current[r];return o({},e,{config:b(e.config||a.config,t),attach:c&&function(){return c}})}))}}),[e,a.reverse]);return c.useEffect((function(){n.current&&!r&&f(t)})),c.useEffect((function(){n.current=!0}),[]),r?[s,f,p]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),i=$(r),u=i.lazy,s=void 0!==u&&u,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=a(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=c.useRef(!1),w=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return c.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,c=a(e,["first","prevProps"]),i=$(t),u=i.items,s=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=$(r),E=w.keys,_=w.items,k=o({},c.current),S=[].concat(c.deleted),R=Object.keys(k),P=new Set(R),C=new Set(s),x=s.filter((function(e){return!P.has(e)})),I=c.transitions.filter((function(e){return!e.destroyed&&!C.has(e.originalKey)})).map((function(e){return e.originalKey})),N=s.filter((function(e){return P.has(e)})),M=-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=s.indexOf(e),o=u[r],a=n&&void 0!==l?"initial":"enter";k[e]={slot:a,originalKey:e,key:v?String(e):K++,item:o,trail:M+=h,config:b(y,o,a),from:b(n&&void 0!==l?l||{}:d,o),to:b(p,o)}}));break;case"leave":I.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:M+=h,config:b(y,n,"leave"),to:b(f,n)})),delete k[e]}));break;case"update":N.forEach((function(e){var t=s.indexOf(e),n=u[t];k[e]=o({},k[e],{item:n,slot:"update",trail:M+=h,config:b(y,n,"update"),to:b(m,n)})}))}}var A=s.map((function(e){return k[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,a(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({},c,{changed:x.length||I.length||N.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,a=e.config,c=e.trail,i=e.key,u=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:a,ref:v,onRest:function(n){w.current.mounted&&(e.destroyed&&(v||s||G(w,i),f&&f(u)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(v||s)&&w.current.deleted.length>0&&G(w),g&&g(u,t,n))},onStart:h&&function(){return h(u,t)},onFrame:m&&function(e){return m(u,t,e)},delay:c,reset:p&&"enter"===t});l.update(d),w.current.paused||l.start()})),c.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=c.useRef();c.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 a=e.current;if(a){var c=a.controllers;if(c.length){var i=n*t[r];c.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){!function(){e.exports=this.wp.wordcount}()},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(14),c=n.n(a),i=n(88),u=n(4),s=n.n(u),l=function(e){var t=e.className,n=e.size,r=c()(e,["className","size"]),a=s()("dashicon","dashicons-arrow-down-alt2",t);return React.createElement(i.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:a,width:n,height:n},r),React.createElement("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7z"}))},d=function(e){var t=e.className,n=e.size,r=c()(e,["className","size"]),a=s()("dashicon","dashicons-arrow-down-alt2",t);return React.createElement(i.a,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:a,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"}))},p=n(0);t.a=({icon:e,size:t=20,className:n,...r})=>{let o=()=>null;switch(e){case"arrow-down-alt2":o=l;break;case"no-alt":o=d}return Object(p.createElement)(o,{size:t,className:n,...r})}},,,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,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}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){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";var r=n(26),o=n(9),a=n(29),c=n(0),i=n(67),u=n(88);t.a=function(e){var t=e.icon,n=void 0===t?null:t,s=e.size,l=Object(a.a)(e,["icon","size"]),d=s||20;if("string"==typeof n)return Object(c.createElement)(i.a,Object(o.a)({icon:n,size:d},l));if(n&&i.a===n.type)return Object(c.cloneElement)(n,Object(r.a)({size:d},l));var p=s||24;if("function"==typeof n)return n.prototype instanceof c.Component?Object(c.createElement)(n,Object(r.a)({size:p},l)):n(Object(r.a)({size:p},l));if(n&&("svg"===n.type||n.type===u.a)){var f=Object(r.a)({width:p,height:p},n.props,l);return Object(c.createElement)(u.a,f)}return Object(c.isValidElement)(n)?Object(c.cloneElement)(n,Object(r.a)({size:p},l)):n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(15),o=n(12),a=n(109),c=n(16),i=n(7),u={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(){}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0},t=Object(a.a)(),n=t.isEditor,s=t.previewData,l=(null==s?void 0:s.previewCart)||{},d=e.shouldSelect,p=Object(o.useSelect)((function(e,t){var o=t.dispatch;if(!d)return u;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 a=e(r.CART_STORE_KEY),s=a.getCartData(),p=a.getCartErrors(),f=a.getCartTotals(),b=!a.hasFinishedResolution("getCartData"),m=a.areShippingRatesLoading(),g=o(r.CART_STORE_KEY).receiveCart,h=Object(i.mapValues)(s.shippingAddress,(function(e){return Object(c.decodeEntities)(e)}));return{cartCoupons:s.coupons,cartItems:s.items,cartItemsCount:s.itemsCount,cartItemsWeight:s.itemsWeight,cartNeedsPayment:s.needsPayment,cartNeedsShipping:s.needsShipping,cartItemErrors:s.errors,cartTotals:f,cartIsLoading:b,cartErrors:p,shippingAddress:h,shippingRates:s.shippingRates,shippingRatesLoading:m,hasShippingAddress:!!h.country,receiveCart:g}}),[d]);return p}},,function(e,t,n){"use strict";var r=n(26),o=n(29),a=n(4),c=n.n(a),i=n(0);t.a=Object(i.forwardRef)((function(e,t){var n=e.href,a=e.target,u=e.isPrimary,s=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=c()("components-button",h,{"is-button":b||u||s||l,"is-default":b||!u&&(s||l),"is-primary":u,"is-large":s,"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:a}:{type:"button",disabled:v};return Object(i.createElement)(j,Object(r.a)({},w,y,{className:O,ref:t}))}))},function(e,t){!function(){e.exports=this.wc.wcBlocksRegistry}()},function(e,t,n){"use strict";var r=n(11),o=n.n(r),a=n(14),c=n.n(a),i=n(4),u=n.n(i);n(5),n(152);t.a=function(e){var t=e.children,n=e.className,r=e.headingLevel,a=c()(e,["children","className","headingLevel"]),i=u()("wc-block-component__title",n),s="h".concat(r);return React.createElement(s,o()({className:i},a),t)}},function(e,t,n){"use strict";var r=n(10),o=n.n(r),a=n(3),c=(n(5),n(4)),i=n.n(c),u=n(0),s=n(28),l=(n(123),Object(a.forwardRef)((function(e,t){var n=e.className,r=e.id,a=e.type,c=void 0===a?"text":a,l=e.ariaLabel,d=e.ariaDescribedBy,p=e.label,f=e.screenReaderLabel,b=e.disabled,m=e.help,g=e.autoComplete,h=void 0===g?"off":g,v=e.value,y=void 0===v?"":v,O=e.onChange,j=e.required,w=void 0!==j&&j,E=e.onBlur,_=void 0===E?function(){}:E,k=e.feedback,S=Object(u.useState)(!1),R=o()(S,2),P=R[0],C=R[1];return React.createElement("div",{className:i()("wc-block-text-input",n,{"is-active":P||y})},React.createElement("input",{type:c,id:r,value:y,ref:t,autoComplete:h,onChange:function(e){O(e.target.value)},onFocus:function(){return C(!0)},onBlur:function(){_(),C(!1)},"aria-label":l||p,disabled:b,"aria-describedby":m&&!d?r+"__help":d,required:w}),React.createElement(s.a,{label:p,screenReaderLabel:f||p,wrapperElement:"label",wrapperProps:{htmlFor:r},htmlFor:r}),!!m&&React.createElement("p",{id:r+"__help",className:"wc-block-text-input__help"},m),k)})));t.a=l},function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3);function o(e,t,n){void 0===n&&(n={});var o=n.maxWait,a=Object(r.useRef)(null),c=Object(r.useRef)([]),i=n.leading,u=void 0===n.trailing||n.trailing,s=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(a.current),a.current=null,c.current=[],l.current=null,s.current=!1}),[]);Object(r.useEffect)((function(){return function(){d.current=!0}}),[]);var b=Object(r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];c.current=e,clearTimeout(l.current),s.current&&(s.current=!1),l.current||!i||s.current||(p.current.apply(p,e),s.current=!0),l.current=setTimeout((function(){var t=!0;i&&s.current&&(t=!1),f(),!d.current&&u&&t&&p.current.apply(p,e)}),t),o&&!a.current&&u&&(a.current=setTimeout((function(){var e=c.current;f(),d.current||p.current.apply(null,e)}),o))}),[o,t,f,i,u]),m=Object(r.useCallback)((function(){l.current&&(p.current.apply(null,c.current),f())}),[f]);return[b,f,m]}},function(e,t,n){"use strict";var r=n(0),o=n(66),a=n(48),c=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,"")},u=function(e,t){return e.replace(/[\s|\.\,]+$/i,"")+t},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"…",r=i(e),o=r.split(" ").splice(0,t).join(" ");return Object(a.autop)(u(o,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]:"…",o=i(e),c=o.slice(0,t);if(n)return Object(a.autop)(u(c,r));var s=c.match(/([\s]+)/g),l=s?s.length:0,d=o.slice(0,t+l);return Object(a.autop)(u(d,r))};t.a=function(e){var t=e.source,n=e.maxLength,i=void 0===n?15:n,u=e.countType,d=void 0===u?"words":u,p=e.className,f=void 0===p?"":p,b=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(a.autop)(e),i=Object(o.count)(r,n);if(i<=t)return r;var u=c(r),d=Object(o.count)(u,n);return d<=t?u:"words"===n?s(u,t):l(u,t,"characters_including_spaces"===n)}(t,i,d)}),[t,i,d]);return React.createElement(r.RawHTML,{className:f},b)}},function(e,t,n){"use strict";var r=n(10),o=n.n(r),a=n(0),c=n(4),i=n.n(c),u=(n(5),n(138)),s=n(88),l=React.createElement(s.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(s.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(164),t.a=function(e){var t=e.children,n=e.className,r=e.initialOpen,c=void 0!==r&&r,s=e.title,p=e.titleTag,f=void 0===p?"div":p,b=Object(a.useState)(c),m=o()(b,2),g=m[0],h=m[1];return React.createElement("div",{className:i()(n,"wc-blocks-components-panel")},React.createElement(f,null,React.createElement("button",{"aria-expanded":g,className:"wc-blocks-components-panel__button",onClick:function(){return h(!g)}},React.createElement(u.a,{"aria-hidden":"true",className:"wc-blocks-components-panel__button-icon",srcElement:g?l:d}),s)),React.createElement("div",{className:"wc-blocks-components-panel__content",hidden:!g},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(10),o=n.n(r),a=n(0),c=function(){var e=Object(a.useState)(),t=o()(e,2)[1];return function(e){return t((function(){throw e}))}}},function(e,t,n){"use strict";e.exports=n(120)},function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return D}));var r=n(10),o=n.n(r),a=n(0),c=n(75),i=n(12),u=n(37),s=n.n(u),l=n(127),d=n(15),p=n(16),f=n(63),b=function(e){return{country:e.country,state:e.state,city:e.city,postcode:e.postcode.replace(" ","").toUpperCase()}},m=function(){var e=Object(c.a)().shippingAddress,t=Object(a.useState)(e),n=o()(t,2),r=n[0],u=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(a.useRef)(e);Object(a.useEffect)((function(){var e,t;g.country&&(e=y.current,t=g,!s()(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:u}},g=n(202),h=n(92),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(110),w=n(200),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(201),C=v.NONE,x=v.INVALID_ADDRESS,I=v.UNKNOWN,N=function(e,t){var n=t.type;return Object.values(v).includes(n)?n:e},M=Object(a.createContext)(O),A=function(){return Object(a.useContext)(M)},D=function(e){var t=e.children,n=Object(h.b)().dispatchActions,r=Object(c.a)(),i=r.cartNeedsShipping,u=r.shippingRates,s=r.shippingRatesLoading,l=r.cartErrors,d=Object(a.useReducer)(N,C),p=o()(d,2),f=p[0],b=p[1],O=Object(a.useReducer)(j.b,{}),w=o()(O,2),A=w[0],D=w[1],T=m(),F=T.shippingAddress,L=T.setShippingAddress,V=Object(a.useRef)(A),B=Object(g.a)(u),H=B.selectShippingRate,U=B.selectedShippingRates,z=B.isSelectingRate,q=Object(a.useMemo)((function(){return{onShippingRateSuccess:R(D).onSuccess,onShippingRateFail:R(D).onFail,onShippingRateSelectSuccess:R(D).onSelectSuccess,onShippingRateSelectFail:R(D).onSelectFail}}),[D]);Object(a.useEffect)((function(){V.current=A}),[A]),Object(a.useEffect)((function(){s?n.incrementCalculating():n.decrementCalculating()}),[s,n]),Object(a.useEffect)((function(){z?n.incrementCalculating():n.decrementCalculating()}),[z,n]),Object(a.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(a.useMemo)((function(){return{isPristine:f===C,isValid:f===C,hasInvalidAddress:f===x,hasError:f===I||f===x}}),[f]);Object(a.useEffect)((function(){s||0!==u.length&&!W.hasError||Object(P.a)(V.current,_,{hasInvalidAddress:W.hasInvalidAddress,hasError:W.hasError})}),[u,s,W.hasError,W.hasInvalidAddress]),Object(a.useEffect)((function(){!s&&u.length>0&&!W.hasError&&Object(P.a)(V.current,E,u)}),[u,s,W.hasError]),Object(a.useEffect)((function(){!z&&W.hasError&&Object(P.a)(V.current,S,{hasError:W.hasError,hasInvalidAddress:W.hasInvalidAddress})}),[U,z,W.hasError,W.hasInvalidAddress]),Object(a.useEffect)((function(){z||!U||W.hasError||Object(P.a)(V.current,k,U)}),[U,z,W.hasError]);var K={shippingErrorStatus:W,dispatchErrorStatus:b,shippingErrorTypes:v,shippingRates:u,setShippingRates:H,shippingRatesLoading:s,selectedRates:U,setSelectedRates:H,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(M.Provider,{value:K},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(26),o=n(7),a=n(0),c=function(e){var t=Object(r.a)({},e,{role:"img","aria-hidden":"true",focusable:"false"});return Object(a.createElement)("svg",Object(o.omit)(t,"__unstableActive"))}},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",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",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",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",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",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",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",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",required:!0,hidden:!1,index:9}};t.a=o},function(e,t){},function(e,t,n){"use strict";t.a=function(e){var t=e.label,n=e.secondaryLabel,r=e.description,o=e.secondaryDescription,a=e.id;return React.createElement("div",{className:"wc-block-radio-control__option-layout"},React.createElement("div",{className:"wc-block-radio-control__label-group"},t&&React.createElement("span",{id:a?"".concat(a,"__label"):null,className:"wc-block-radio-control__label"},t),n&&React.createElement("span",{id:a?"".concat(a,"__secondary-label"):null,className:"wc-block-radio-control__secondary-label"},n)),React.createElement("div",{className:"wc-block-radio-control__description-group"},r&&React.createElement("span",{id:a?"".concat(a,"__description"):null,className:"wc-block-radio-control__description"},r),o&&React.createElement("span",{id:a?"".concat(a,"__secondary-description"):null,className:"wc-block-radio-control__secondary-description"},o)))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return Fe})),n.d(t,"a",(function(){return Le}));var r=n(6),o=n.n(r),a=n(10),c=n.n(a),i=n(0),u=n(1),s=n(63),l=n(199),d=n(2),p="pristine",f="idle",b="processing",m="complete",g="before_processing",h="after_processing",v=Object(d.getSetting)("checkoutData",{order_id:0,customer_id:0}),y={redirectUrl:"",status:p,hasError:!1,calculatingCount:0,orderId:v.order_id,customerId:v.customer_id,processingResponse:null},O="set_idle",j="set_pristine",w="set_redirect_url",E="set_checkout_complete",_="set_before_processing",k="set_after_processing",S="set_processing_response",R="set_checkout_is_processing",P="set_checkout_has_error",C="set_checkout_no_error",x="set_checkout_order_id",I="increment_calculating",N="decrement_calculating",M=j,A=O,D=R,T=_,F=k,L=S,V=w,B=E,H=P,U=C,z=I,q=N,W=x,K=function(){return{type:M}},Y=function(){return{type:A}},$=function(){return{type:D}},G=function(e){return{type:V,url:e}},Z=function(e){return{type:L,data:e}},X=function(e){return{type:B,data:e}},J=function(){return{type:T}},Q=function(){return{type:F}},ee=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?H:U;return{type:t}},te=function(){return{type:z}},ne=function(){return{type:q}},re=function(e){return{type:W,orderId:e}};function oe(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ce=j,ie=O,ue=R,se=_,le=k,de=S,pe=w,fe=E,be=P,me=C,ge=I,he=N,ve=x,ye=p,Oe=f,je=b,we=g,Ee=h,_e=m,ke=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,n=arguments.length>1?arguments[1]:void 0,r=n.url,o=n.type,a=n.orderId,c=n.data;switch(o){case ce:e=y;break;case ie:e=t.state!==Oe?ae(ae({},t),{},{status:Oe}):t;break;case pe:e=r!==t.url?ae(ae({},t),{},{redirectUrl:r}):t;break;case de:e=ae(ae({},t),{},{processingResponse:c});break;case fe:e=t.status!==_e?ae(ae({},t),{},{status:_e,redirectUrl:(null==c?void 0:c.redirectUrl)||t.redirectUrl}):t;break;case ue:e=!1===(e=t.status!==je?ae(ae({},t),{},{status:je,hasError:!1}):t).hasError?e:ae(ae({},e),{},{hasError:!1});break;case se:e=t.status!==we?ae(ae({},t),{},{status:we,hasError:!1}):t;break;case le:e=t.status!==Ee?ae(ae({},t),{},{status:Ee}):t;break;case be:e=t.hasError?t:ae(ae({},t),{},{hasError:!0}),e=t.status===je||t.status===we?ae(ae({},e),{},{status:Oe}):e;break;case me:e=t.hasError?ae(ae({},t),{},{hasError:!1}):t;break;case ge:e=ae(ae({},t),{},{calculatingCount:t.calculatingCount+1});break;case he:e=ae(ae({},t),{},{calculatingCount:Math.max(0,t.calculatingCount-1)});break;case ve:e=ae(ae({},t),{},{orderId:a})}return e!==t&&o!==ce&&e.status===ye&&(e.status=Oe),e},Se=n(110),Re=n(200),Pe="checkout_before_processing",Ce="checkout_after_processing_with_success",xe="checkout_after_processing_with_error",Ie=function(e){return{onCheckoutAfterProcessingWithSuccess:Object(Re.a)(Ce,e),onCheckoutAfterProcessingWithError:Object(Re.a)(xe,e),onCheckoutBeforeProcessing:Object(Re.a)(Pe,e)}},Ne=n(201),Me=n(54);function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te=Object(i.createContext)({isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,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){}},hasOrder:!1,isCart:!1}),Fe=function(){return Object(i.useContext)(Te)},Le=function(e){var t=e.children,n=e.redirectUrl,r=e.isCart,o=void 0!==r&&r;y.redirectUrl=n;var a=Object(i.useReducer)(ke,y),d=c()(a,2),p=d[0],v=d[1],O=Object(i.useReducer)(Se.b,{}),j=c()(O,2),w=j[0],E=j[1],_=Object(i.useRef)(w),k=Object(Me.b)().setValidationErrors,S=Object(s.a)(),R=S.addErrorNotice,P=S.removeNotices,C=p.calculatingCount>0,x=Object(l.a)(),I=x.isSuccessResponse,N=x.isErrorResponse,M=x.isFailResponse;Object(i.useEffect)((function(){_.current=w}),[w]);var A=Object(i.useMemo)((function(){return Ie(E).onCheckoutAfterProcessingWithSuccess}),[E]),D=Object(i.useMemo)((function(){return Ie(E).onCheckoutAfterProcessingWithError}),[E]),T=Object(i.useMemo)((function(){return Ie(E).onCheckoutBeforeProcessing}),[E]),F=Object(i.useMemo)((function(){return{resetCheckout:function(){v(K())},setRedirectUrl:function(e){v(G(e))},setHasError:function(e){v(ee(e))},incrementCalculating:function(){v(te())},decrementCalculating:function(){v(ne())},setOrderId:function(e){v(re(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=De(De({},e.payment_result),{},{message:e.message})),e.payment_result)&&((null===(n=e.payment_result)||void 0===n?void 0:n.redirect_url)&&v(G(e.payment_result.redirect_url)),v(Z((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))));v(Q())}}}),[]);Object(i.useEffect)((function(){p.status===g&&(P("error"),Object(Ne.a)(_.current,Pe,{}).then((function(e){!0!==e?(Array.isArray(e)&&e.forEach((function(e){var t=e.errorMessage,n=e.validationErrors;R(t),k(n)})),v(Y())):v($())})))}),[p.status,k,R,P,v]),Object(i.useEffect)((function(){if(p.status===h){var e={redirectUrl:p.redirectUrl,orderId:p.orderId,customerId:p.customerId,customerNote:p.customerNote,processingResponse:p.processingResponse};p.hasError?Object(Ne.b)(_.current,xe,e).then((function(t){if(N(t)||M(t)){if(t.message){var n=t.messageContext?{context:t.messageContext}:void 0;R(t.message,n)}void 0!==t.retry&&!0!==t.retry?v(X(t)):v(Y())}else{var r,o=(null===(r=e.processingResponse)||void 0===r?void 0:r.message)||Object(u.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");R(o,{id:"checkout"}),v(Y())}})):Object(Ne.b)(_.current,Ce,e).then((function(e){if(I(e))v(X(e));else if(N(e)||M(e)){if(e.message){var t=e.messageContext?{context:e.messageContext}:void 0;R(e.message,t)}e.retry?v(ee(!0)):v(X(e))}else v(X())}))}}),[p.status,p.hasError,p.redirectUrl,p.orderId,p.customerId,p.customerNote,p.processingResponse,F,R,N,M,I]);var L={onSubmit:Object(i.useCallback)((function(){v(J())}),[]),isComplete:p.status===m,isIdle:p.status===f,isCalculating:C,isProcessing:p.status===b,isBeforeProcessing:p.status===g,isAfterProcessing:p.status===h,hasError:p.hasError,redirectUrl:p.redirectUrl,onCheckoutAfterProcessingWithSuccess:A,onCheckoutAfterProcessingWithError:D,onCheckoutBeforeProcessing:T,dispatchActions:F,isCart:o,orderId:p.orderId,hasOrder:!!p.orderId,customerId:p.customerId};return React.createElement(Te.Provider,{value:L},t)}},,function(e,t,n){"use strict";var r=n(9),o=n(0),a=n(7);var c=function(e,t){return function(n){var r=e(n),o=n.displayName,c=void 0===o?n.name||"Component":o;return r.displayName="".concat(Object(a.upperFirst)(Object(a.camelCase)(t)),"(").concat(c,")"),r}},i=new WeakMap;function u(e){return Object(o.useMemo)((function(){return function(e){var t=i.get(e)||0;return i.set(e,t+1),t}(e)}),[e])}t.a=c((function(e){return function(t){var n=u(e);return Object(o.createElement)(e,Object(r.a)({},t,{instanceId:n}))}}),"withInstanceId")},,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 a(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 c(e,t,n,r,o,a,c,i){return a<e&&c>t||a>e&&c<t?0:a<=e&&i<=n||c>=t&&i>=n?a-e-r:c>t&&i<n||a<e&&i>n?c-t+o:0}t.a=function(e,t){var n=t.scrollMode,o=t.block,i=t.inline,u=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof u?u:function(e){return e!==u};if(!r(e))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,p=[],f=e;r(f)&&l(f);){if((f=f.parentNode)===d){p.push(f);break}f===document.body&&a(f)&&!a(document.documentElement)||a(f,s)&&p.push(f)}for(var b=window.visualViewport?visualViewport.width:innerWidth,m=window.visualViewport?visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,O=v.width,j=v.top,w=v.right,E=v.bottom,_=v.left,k="start"===o||"nearest"===o?j:"end"===o?E:j+y/2,S="center"===i?_+O/2:"end"===i?w:_,R=[],P=0;P<p.length;P++){var C=p[P],x=C.getBoundingClientRect(),I=x.height,N=x.width,M=x.top,A=x.right,D=x.bottom,T=x.left;if("if-needed"===n&&j>=0&&_>=0&&E<=m&&w<=b&&j>=M&&E<=D&&_>=T&&w<=A)return R;var F=getComputedStyle(C),L=parseInt(F.borderLeftWidth,10),V=parseInt(F.borderTopWidth,10),B=parseInt(F.borderRightWidth,10),H=parseInt(F.borderBottomWidth,10),U=0,z=0,q="offsetWidth"in C?C.offsetWidth-C.clientWidth-L-B:0,W="offsetHeight"in C?C.offsetHeight-C.clientHeight-V-H:0;if(d===C)U="start"===o?k:"end"===o?k-m:"nearest"===o?c(h,h+m,m,V,H,h+k,h+k+y,y):k-m/2,z="start"===i?S:"center"===i?S-b/2:"end"===i?S-b:c(g,g+b,b,L,B,g+S,g+S+O,O),U=Math.max(0,U+h),z=Math.max(0,z+g);else{U="start"===o?k-M-V:"end"===o?k-D+H+W:"nearest"===o?c(M,D,I,V,H+W,k,k+y,y):k-(M+I/2)+W/2,z="start"===i?S-T-L:"center"===i?S-(T+N/2)+q/2:"end"===i?S-A+B+q:c(T,A,N,L,B+q,S,S+O,O);var K=C.scrollLeft,Y=C.scrollTop;k+=Y-(U=Math.max(0,Math.min(Y+U,C.scrollHeight-I+W))),S+=K-(z=Math.max(0,Math.min(K+z,C.scrollWidth-N+q)))}R.push({el:C,top:U,left:z})}return R}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(11),o=n.n(r),a=n(6),c=n.n(a),i=n(44),u=n(43);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){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 d=function(e){var t=e.Block,n=e.selector,r=e.getProps,a=void 0===r?function(){}:r,c=e.getErrorBoundaryProps,s=void 0===c?function(){}:c,d=document.querySelectorAll(n);d.length&&Array.prototype.forEach.call(d,(function(e,n){var r=a(e,n),c=s(e,n),d=l(l({},e.dataset),r.attributes);e.classList.remove("is-loading"),Object(i.render)(React.createElement(u.a,c,React.createElement(t,o()({},r,{attributes:d}))),e)}))}},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,n){"use strict";var r=n(11),o=n.n(r),a=n(6),c=n.n(a),i=n(14),u=n.n(i),s=n(1),l=n(3),d=(n(5),n(4)),p=n.n(d),f=n(54),b=n(133),m=n(94),g=n(80);n(123);t.a=Object(m.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,a=e.ariaDescribedBy,i=e.errorId,d=e.validateOnMount,m=void 0===d||d,h=e.focusOnMount,v=void 0!==h&&h,y=e.onChange,O=e.showError,j=void 0===O||O,w=u()(e,["className","instanceId","id","ariaDescribedBy","errorId","validateOnMount","focusOnMount","onChange","showError"]),E=Object(l.useRef)(),_=Object(f.b)(),k=_.getValidationError,S=_.hideValidationError,R=_.setValidationErrors,P=_.clearValidationError,C=_.getValidationErrorId,x=r||"textinput-"+n;i=i||x;var I=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];E.current.checkValidity()?P(i):R(c()({},i,{message:E.current.validationMessage||Object(s.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}))};Object(l.useEffect)((function(){v&&E.current.focus()}),[v]),Object(l.useEffect)((function(){m&&I()}),[m]),Object(l.useEffect)((function(){return function(){P(i)}}),[i]);var N=k(i)||{},M=N.message&&!N.hidden,A=j&&M&&C(i)?C(i):a;return React.createElement(g.a,o()({className:p()(t,{"has-error":M}),id:x,onBlur:function(){I(!1)},feedback:j&&React.createElement(b.a,{propertyName:i}),ref:E,onChange:function(e){S(i),y(e)},ariaDescribedBy: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),a=n(10),c=n.n(a),i=n(0),u=n(2),s=n(7),l=n(16);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(u.getSetting)("checkoutData",{}),b={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},m=Object(s.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=c()(n,2),o=r[0],a=r[1],u={billingData:o,setBillingData:Object(i.useCallback)((function(e){a((function(t){return y(y({},t),e)}))}),[])};return React.createElement(O.Provider,{value:u},t)}},function(e,t,n){"use strict";var r=n(4),o=n.n(r),a=n(94),c=n(6),i=n.n(c),u=n(91),s=function(e){var t,n=e.checked,r=e.name,a=e.onChange,c=e.option,s=c.value,l=c.label,d=c.description,p=c.secondaryLabel,f=c.secondaryDescription;return React.createElement("label",{className:"wc-block-radio-control__option",htmlFor:"".concat(r,"-").concat(s)},React.createElement("input",{id:"".concat(r,"-").concat(s),className:"wc-block-radio-control__input",type:"radio",name:r,value:s,onChange:function(e){return a(e.target.value)},checked:n,"aria-describedby":o()((t={},i()(t,"".concat(r,"-").concat(s,"__label"),l),i()(t,"".concat(r,"-").concat(s,"__secondary-label"),p),i()(t,"".concat(r,"-").concat(s,"__description"),d),i()(t,"".concat(r,"-").concat(s,"__secondary-description"),f),t))}),React.createElement(u.a,{id:"".concat(r,"-").concat(s),label:l,secondaryLabel:p,description:d,secondaryDescription:f}))};n(162),n(163),t.a=Object(a.a)((function(e){var t=e.className,n=e.instanceId,r=e.id,a=e.selected,c=e.onChange,i=e.options,u=void 0===i?[]:i,l=r||n;return u.length&&React.createElement("div",{className:o()("wc-block-radio-control",t)},u.map((function(e){return React.createElement(s,{key:e.value,name:"radio-control-".concat(l),checked:e.value===a,option:e,onChange:function(t){c(t),"function"==typeof e.onChange&&e.onChange(t)}})})))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=(n(12),Object(r.createContext)({isEditor:!1,currentPostId:0,previewData:{}})),a=function(){return Object(r.useContext)(o)}},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),a=n(7);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u="add_event_callback",s="remove_event_callback",l={addEventCallback:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:Object(a.uniqueId)(),type:u,eventType:e,callback:t,priority:n}},removeEventCallback:function(e,t){return{id:t,type:s,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,a=t.id,c=t.callback,l=t.priority,d=new Map(e[r]);switch(n){case u:return d.set(a,{priority:l,callback:c}),i(i({},e),{},o()({},r,d));case s:return d.delete(a),i(i({},e),{},o()({},r,d))}return e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return D})),n.d(t,"a",(function(){return T}));var r=n(6),o=n.n(r),a=n(10),c=n.n(a),i=(n(5),n(0)),u=n(12),s=n(11),l=n.n(s),d=n(4),p=n.n(d),f=n(168),b=(n(99),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""}),m=function(e){var t=e.className,n=e.notices,r=D().removeNotice,o=p()(t,"wc-block-components-notices"),a=n.filter((function(e){return"snackbar"!==e.type}));return a.length?React.createElement("div",{className:o},a.map((function(e){return React.createElement(f.a,l()({key:"store-notice-"+e.id},e,{className:p()("wc-block-components-notices__notice","woocommerce-message",b(e)),onRemove:function(){e.isDismissible&&r(e.id)}}),e.content)}))):null},g=n(9),h=n(22),v=n.n(h);function y(e,t,n,r,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}function O(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){y(a,r,o,c,i,"next",e)}function i(e){y(a,r,o,c,i,"throw",e)}c(void 0)}))}}var j=n(27),w=n(7),E=n(65),_=n(25),k=n(1),S=n(77);var R=Object(i.forwardRef)((function(e,t){var n=e.className,r=e.children,o=e.actions,a=void 0===o?[]:o,c=e.onRemove,u=void 0===c?w.noop:c;Object(i.useEffect)((function(){var e=setTimeout((function(){u()}),1e4);return function(){return clearTimeout(e)}}),[]);var s=p()(n,"components-snackbar");return a&&a.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),a=[a[0]]),Object(i.createElement)("div",{ref:t,className:s,onClick:u,tabIndex:"0",role:"button",onKeyPress:u,label:Object(k.__)("Dismiss this notice")},Object(i.createElement)("div",{className:"components-snackbar__content"},r,a.map((function(e,t){var n=e.label,r=e.onClick,o=e.url;return Object(i.createElement)(S.a,{key:t,href:o,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))}));var P=function(e){var t=e.notices,n=e.className,r=e.children,o=e.onRemove,a=void 0===o?w.noop:o,c=Object(_.useReducedMotion)(),u=Object(i.useState)((function(){return new WeakMap})),s=Object(j.a)(u,1)[0],l=Object(E.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=O(v.a.mark((function t(n){return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:s.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=O(v.a.mark((function e(t){return v.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:c});n=p()("components-snackbar-list",n);var d=function(e){return function(){return a(e.id)}};return Object(i.createElement)("div",{className:n},r,l.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(i.createElement)(E.animated.div,{key:n,style:r},Object(i.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&s.set(t,e)}},Object(i.createElement)(R,Object(g.a)({},Object(w.omit)(t,["content"]),{onRemove:d(t)}),t.content)))})))},C=n(63),x=n(109),I=function(){var e=Object(x.a)().isEditor,t=Object(C.a)(),n=t.notices,r=t.removeNotice,o=n.filter((function(e){return"snackbar"===e.type}));return e?null:React.createElement(P,{notices:o,className:"wc-block-notices__snackbar",onRemove:r})};function N(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?N(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=Object(i.createContext)({notices:[],createNotice:function(e,t,n){},createSnackbarNotice:function(e,t){},removeNotice:function(e,t){},setIsSuppressed:function(e){},context:"wc/core"}),D=function(){return Object(i.useContext)(A)},T=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.createNoticeContainer,a=void 0===o||o,s=e.context,l=void 0===s?"wc/core":s,d=Object(u.useDispatch)("core/notices"),p=d.createNotice,f=d.removeNotice,b=Object(i.useState)(!1),g=c()(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]:{};p(e,t,M(M({},n),{},{context:n.context||l}))}),[p,l]),O=Object(i.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;f(e,t)}),[f,l]),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,M(M({},t),{},{type:"snackbar"}))}),[y]),w={notices:Object(u.useSelect)((function(e){return{notices:e("core/notices").getNotices(l)}}),[l]).notices,createNotice:y,createSnackbarNotice:j,removeNotice:O,context:l,setIsSuppressed:v},E=h?null:React.createElement(m,{className:r,notices:w.notices}),_=h?null:React.createElement(I,null);return React.crea
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
|