Version Description
- 2022-08-03 =
Bug Fixes
- Fixed an issue where shoppers could not switch between different saved payment methods. (6825)
Download this release
Release Info
Developer | automattic |
Plugin | WooCommerce Gutenberg Products Block |
Version | 8.2.1 |
Comparing to | |
See all releases |
Code changes from version 8.2.0 to 8.2.1
- assets/js/blocks/cart-checkout-shared/payment-methods/saved-payment-method-options.js +1 -0
- build/checkout-blocks/payment-frontend.js +1 -1
- build/checkout-frontend.asset.php +1 -1
- build/checkout-frontend.js +1 -1
- build/checkout.asset.php +1 -1
- build/checkout.js +1 -1
- readme.txt +7 -2
- src/Package.php +1 -1
- vendor/autoload.php +6 -1
- vendor/autoload_packages.php +1 -1
- vendor/composer/ClassLoader.php +1 -1
- vendor/composer/InstalledVersions.php +9 -7
- vendor/composer/autoload_classmap.php +1 -1
- vendor/composer/autoload_files.php +1 -1
- vendor/composer/autoload_namespaces.php +1 -1
- vendor/composer/autoload_psr4.php +1 -1
- vendor/composer/autoload_real.php +16 -34
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +5 -5
- vendor/composer/jetpack_autoload_filemap.php +2 -2
- vendor/composer/jetpack_autoload_psr4.php +3 -3
- vendor/jetpack-autoloader/class-autoloader-handler.php +1 -1
- vendor/jetpack-autoloader/class-autoloader-locator.php +1 -1
- vendor/jetpack-autoloader/class-autoloader.php +1 -1
- vendor/jetpack-autoloader/class-container.php +1 -1
- vendor/jetpack-autoloader/class-hook-manager.php +1 -1
- vendor/jetpack-autoloader/class-latest-autoloader-guard.php +1 -1
- vendor/jetpack-autoloader/class-manifest-reader.php +1 -1
- vendor/jetpack-autoloader/class-path-processor.php +1 -1
- vendor/jetpack-autoloader/class-php-autoloader.php +1 -1
- vendor/jetpack-autoloader/class-plugin-locator.php +1 -1
- vendor/jetpack-autoloader/class-plugins-handler.php +1 -1
- vendor/jetpack-autoloader/class-shutdown-handler.php +1 -1
- vendor/jetpack-autoloader/class-version-loader.php +1 -1
- vendor/jetpack-autoloader/class-version-selector.php +1 -1
- woocommerce-gutenberg-products-block.php +1 -1
assets/js/blocks/cart-checkout-shared/payment-methods/saved-payment-method-options.js
CHANGED
@@ -136,6 +136,7 @@ const SavedPaymentMethodOptions = () => {
|
|
136 |
id={ 'wc-payment-method-saved-tokens' }
|
137 |
selected={ activeSavedToken }
|
138 |
options={ options }
|
|
|
139 |
/>
|
140 |
{ savedPaymentMethodHandler }
|
141 |
</>
|
136 |
id={ 'wc-payment-method-saved-tokens' }
|
137 |
selected={ activeSavedToken }
|
138 |
options={ options }
|
139 |
+
onChange={ () => void 0 }
|
140 |
/>
|
141 |
{ savedPaymentMethodHandler }
|
142 |
</>
|
build/checkout-blocks/payment-frontend.js
CHANGED
@@ -8,4 +8,4 @@ Object(m.__)("%1$s ending in %2$s (expires %3$s)","woo-gutenberg-products-block"
|
|
8 |
/* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card. */
|
9 |
Object(m.__)("%1$s ending in %2$s","woo-gutenberg-products-block"),t.brand,t.last4):Object(m.sprintf)(
|
10 |
/* translators: %s is the name of the payment method gateway. */
|
11 |
-
Object(m.__)("Saved token for %s","woo-gutenberg-products-block"),t.gateway)};var $=()=>{var e,t;const{customerPaymentMethods:n,activePaymentMethod:o,setActivePaymentMethod:a,activeSavedToken:s}=Object(u.b)(),{paymentMethods:l}=Object(d.b)(),i=Object(f.a)(),{noticeContexts:p}=Object(r.d)(),{removeNotice:m}=Object(M.useDispatch)("core/notices"),{dispatchCheckoutEvent:b}=Object(S.a)(),h=Object(c.useMemo)(()=>Object.keys(n).flatMap(e=>n[e].map(t=>{const n="cc"===e||"echeck"===e,c=t.method.gateway;return{name:"wc-saved-payment-method-token-"+c,label:n?z(t):L(t),value:t.tokenId.toString(),onChange:e=>{a(c,{token:e,payment_method:c,[`wc-${c}-payment-token`]:e.toString(),isSavedToken:!0}),m("wc-payment-error",p.PAYMENTS),b("set-active-payment-method",{paymentMethodSlug:c})}}})).filter(Boolean),[n,a,m,p.PAYMENTS,b]),g=s&&l[o]&&null!==(e=l[o])&&void 0!==e&&e.savedTokenComponent?Object(c.cloneElement)(null===(t=l[o])||void 0===t?void 0:t.savedTokenComponent,{token:s,...i}):null;return h.length>0?Object(c.createElement)(c.Fragment,null,Object(c.createElement)(I.a,{id:"wc-payment-method-saved-tokens",selected:s,options:h}),g):null},D=()=>{const{isInitialized:e,paymentMethods:t}=Object(d.b)(),{customerPaymentMethods:n}=Object(u.b)();return e&&0===Object.keys(t).length?Object(c.createElement)(E,null):Object(c.createElement)(c.Fragment,null,Object(c.createElement)($,null),Object.keys(n).length>0&&Object(c.createElement)(b.a,{label:Object(m.__)("Use another payment method.","woo-gutenberg-products-block"),screenReaderLabel:Object(m.__)("Other available payment methods","woo-gutenberg-products-block"),wrapperElement:"p",wrapperProps:{className:["wc-block-components-checkout-step__description wc-block-components-checkout-step__description-payments-aligned"]}}),Object(c.createElement)(A,null))},V=()=>Object(c.createElement)(D,null),F=n(276),B={...Object(F.a)({defaultTitle:Object(m.__)("Payment options","woo-gutenberg-products-block"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},H=n(123);t.default=Object(l.withFilteredAttributes)(B)(e=>{let{title:t,description:n,showStepNumber:o,children:l,className:d}=e;const{isProcessing:m}=Object(p.b)(),{cartNeedsPayment:b}=Object(s.a)(),{noticeContexts:u}=Object(r.d)();return b?Object(c.createElement)(i.a,{id:"payment-method",disabled:m,className:a()("wc-block-checkout__payment-method",d),title:t,description:n,showStepNumber:o},Object(c.createElement)(H.a,{context:u.PAYMENTS}),Object(c.createElement)(V,null),l):null})}}]);
|
8 |
/* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card. */
|
9 |
Object(m.__)("%1$s ending in %2$s","woo-gutenberg-products-block"),t.brand,t.last4):Object(m.sprintf)(
|
10 |
/* translators: %s is the name of the payment method gateway. */
|
11 |
+
Object(m.__)("Saved token for %s","woo-gutenberg-products-block"),t.gateway)};var $=()=>{var e,t;const{customerPaymentMethods:n,activePaymentMethod:o,setActivePaymentMethod:a,activeSavedToken:s}=Object(u.b)(),{paymentMethods:l}=Object(d.b)(),i=Object(f.a)(),{noticeContexts:p}=Object(r.d)(),{removeNotice:m}=Object(M.useDispatch)("core/notices"),{dispatchCheckoutEvent:b}=Object(S.a)(),h=Object(c.useMemo)(()=>Object.keys(n).flatMap(e=>n[e].map(t=>{const n="cc"===e||"echeck"===e,c=t.method.gateway;return{name:"wc-saved-payment-method-token-"+c,label:n?z(t):L(t),value:t.tokenId.toString(),onChange:e=>{a(c,{token:e,payment_method:c,[`wc-${c}-payment-token`]:e.toString(),isSavedToken:!0}),m("wc-payment-error",p.PAYMENTS),b("set-active-payment-method",{paymentMethodSlug:c})}}})).filter(Boolean),[n,a,m,p.PAYMENTS,b]),g=s&&l[o]&&null!==(e=l[o])&&void 0!==e&&e.savedTokenComponent?Object(c.cloneElement)(null===(t=l[o])||void 0===t?void 0:t.savedTokenComponent,{token:s,...i}):null;return h.length>0?Object(c.createElement)(c.Fragment,null,Object(c.createElement)(I.a,{id:"wc-payment-method-saved-tokens",selected:s,options:h,onChange:()=>{}}),g):null},D=()=>{const{isInitialized:e,paymentMethods:t}=Object(d.b)(),{customerPaymentMethods:n}=Object(u.b)();return e&&0===Object.keys(t).length?Object(c.createElement)(E,null):Object(c.createElement)(c.Fragment,null,Object(c.createElement)($,null),Object.keys(n).length>0&&Object(c.createElement)(b.a,{label:Object(m.__)("Use another payment method.","woo-gutenberg-products-block"),screenReaderLabel:Object(m.__)("Other available payment methods","woo-gutenberg-products-block"),wrapperElement:"p",wrapperProps:{className:["wc-block-components-checkout-step__description wc-block-components-checkout-step__description-payments-aligned"]}}),Object(c.createElement)(A,null))},V=()=>Object(c.createElement)(D,null),F=n(276),B={...Object(F.a)({defaultTitle:Object(m.__)("Payment options","woo-gutenberg-products-block"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},H=n(123);t.default=Object(l.withFilteredAttributes)(B)(e=>{let{title:t,description:n,showStepNumber:o,children:l,className:d}=e;const{isProcessing:m}=Object(p.b)(),{cartNeedsPayment:b}=Object(s.a)(),{noticeContexts:u}=Object(r.d)();return b?Object(c.createElement)(i.a,{id:"payment-method",disabled:m,className:a()("wc-block-checkout__payment-method",d),title:t,description:n,showStepNumber:o},Object(c.createElement)(H.a,{context:u.PAYMENTS}),Object(c.createElement)(V,null),l):null})}}]);
|
build/checkout-frontend.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-checkout', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-blocks-shared-hocs', 'wc-price-format', 'wc-settings', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-checkout', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-blocks-shared-hocs', 'wc-price-format', 'wc-settings', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '4ab060d806a6c6ef475d50451cba43b5');
|
build/checkout-frontend.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(e){function t(t){for(var r,o,s=t[0],c=t[1],a=0,l=[];a<s.length;a++)o=s[a],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&l.push(n[o][0]),n[o]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);for(i&&i(t);l.length;)l.shift()()}var r={},n={28:0,7:0,73:0};function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.e=function(e){var t=[],r=n[e];if(0!==r)if(r)t.push(r[2]);else{var s=new Promise((function(t,o){r=n[e]=[t,o]}));t.push(r[2]=s);var c,a=document.createElement("script");a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=function(e){return o.p+""+({0:"vendors--cart-blocks/cart-line-items--cart-blocks/cart-order-summary--cart-blocks/order-summary-shi--c02aad66",1:"vendors--cart-blocks/order-summary-shipping--checkout-blocks/billing-address--checkout-blocks/order--decc3dc6",2:"vendors--cart-blocks/order-summary-shipping--checkout-blocks/billing-address--checkout-blocks/order--5b8feb0b",3:"vendors--cart-blocks/cart-line-items--checkout-blocks/order-summary-cart-items--mini-cart-contents---233ab542",5:"cart-blocks/order-summary-shipping--checkout-blocks/order-summary-shipping",6:"checkout-blocks/billing-address--checkout-blocks/shipping-address",29:"checkout-blocks/actions",30:"checkout-blocks/billing-address",31:"checkout-blocks/contact-information",32:"checkout-blocks/express-payment",33:"checkout-blocks/fields",34:"checkout-blocks/order-note",35:"checkout-blocks/order-summary",36:"checkout-blocks/order-summary-cart-items",37:"checkout-blocks/order-summary-coupon-form",38:"checkout-blocks/order-summary-discount",39:"checkout-blocks/order-summary-fee",40:"checkout-blocks/order-summary-shipping",41:"checkout-blocks/order-summary-subtotal",42:"checkout-blocks/order-summary-taxes",43:"checkout-blocks/payment",44:"checkout-blocks/shipping-address",45:"checkout-blocks/shipping-methods",46:"checkout-blocks/terms",47:"checkout-blocks/totals"}[e]||e)+"-frontend.js?ver="+{0:"ce589115ee0a038e954e",1:"54ef153108837b49179a",2:"0b35cefad1b5fde9f1e0",3:"2ebcfe3bde817c3021c4",5:"72e1dd08a4ab2d986c1a",6:"07aa817694c8f5a11550",29:"dba47cd50bce5004557d",30:"ce438289b0bcffe71dfd",31:"5478056e04e9c1a79dea",32:"7e13150f35e28234f2a9",33:"b87a2b1b6abb87f55d05",34:"46ff285277e8342f3580",35:"b96a3505b3f59bec7cd7",36:"76c4bb84c36487d5c309",37:"3cb64ac1cde487d1d492",38:"7675fedb78880cf56053",39:"aebd7f1c9d4bed41bf10",40:"88846f10bf76d586b075",41:"90275658736fe8dadb1d",42:"00c5e22719a93b03adbe",43:"b9e6a67dbe3b9af93870",44:"a330728abac4fab5e3a8",45:"384de3365c3d66e8898c",46:"f14157022109815f94e5",47:"57e931d93a6387b7d118"}[e]}(e);var i=new Error;c=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=n[e];if(0!==r){if(r){var o=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+o+": "+s+")",i.name="ChunkLoadError",i.type=o,i.request=s,r[1](i)}n[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:a})}),12e4);a.onerror=a.onload=c,document.head.appendChild(a)}return Promise.all(t)},o.m=e,o.c=r,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var s=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],c=s.push.bind(s);s.push=t,s=s.slice();for(var a=0;a<s.length;a++)t(s[a]);var i=c;o(o.s=230)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wc.wcSettings},function(e,t){e.exports=window.lodash},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var c=o.apply(null,n);c&&e.push(c)}}else if("object"===s)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wc.wcBlocksData},function(e,t){e.exports=window.wp.data},function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wc.blocksCheckout},function(e,t){e.exports=window.wp.isShallowEqual},function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(this,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.wp.url},function(e,t,r){"use strict";var n=r(18),o=r.n(n),s=r(0),c=r(5),a=r(1),i=r(47),l=e=>{let{imageUrl:t=i.l+"/block-error.svg",header:r=Object(a.__)("Oops!","woo-gutenberg-products-block"),text:n=Object(a.__)("There was an error loading the content.","woo-gutenberg-products-block"),errorMessage:o,errorMessagePrefix:c=Object(a.__)("Error:","woo-gutenberg-products-block"),button:l,showErrorBlock:u=!0}=e;return u?Object(s.createElement)("div",{className:"wc-block-error wc-block-components-error"},t&&Object(s.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:t,alt:""}),Object(s.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},r&&Object(s.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},r),n&&Object(s.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},n),o&&Object(s.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},c?c+" ":"",o),l&&Object(s.createElement)("p",{className:"wc-block-error__button wc-block-components-error__button"},l))):null};r(35);class u extends c.Component{constructor(){super(...arguments),o()(this,"state",{errorMessage:"",hasError:!1})}static getDerivedStateFromError(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:Object(s.createElement)(s.Fragment,null,Object(s.createElement)("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}render(){const{header:e,imageUrl:t,showErrorMessage:r=!0,showErrorBlock:n=!0,text:o,errorMessagePrefix:c,renderError:a,button:i}=this.props,{errorMessage:u,hasError:d}=this.state;return d?"function"==typeof a?a({errorMessage:u}):Object(s.createElement)(l,{showErrorBlock:n,errorMessage:r?u:null,header:e,imageUrl:t,text:o,errorMessagePrefix:c,button:i}):this.props.children}}t.a=u},function(e,t){e.exports=window.wc.wcBlocksRegistry},function(e,t){e.exports=window.wp.htmlEntities},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));const n=e=>!(e=>null===e)(e)&&e instanceof Object&&e.constructor===Object;function o(e,t){return n(e)&&t in e}},function(e,t){e.exports=window.wp.a11y},function(e,t,r){"use strict";(function(e){var n=r(0);r(37);const o=Object(n.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==e&&e.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});t.a=o}).call(this,r(55))},,function(e,t){e.exports=window.wp.deprecated},,,,function(e,t){e.exports=window.wp.apiFetch},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(0);r(7);const o=Object(n.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>{}}),s=()=>Object(n.useContext)(o)},,function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return l})),r.d(t,"d",(function(){return d}));var n=r(19);let o,s;!function(e){e.SUCCESS="success",e.FAIL="failure",e.ERROR="error"}(o||(o={})),function(e){e.PAYMENTS="wc/payment-area",e.EXPRESS_PAYMENTS="wc/express-payment-area"}(s||(s={}));const c=(e,t)=>Object(n.a)(e)&&"type"in e&&e.type===t,a=e=>c(e,o.SUCCESS),i=e=>c(e,o.ERROR),l=e=>c(e,o.FAIL),u=e=>!Object(n.a)(e)||void 0===e.retry||!0===e.retry,d=()=>({responseTypes:o,noticeContexts:s,shouldRetry:u,isSuccessResponse:a,isErrorResponse:i,isFailResponse:l})},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(0),o=r(11),s=r.n(o);function c(e){const t=Object(n.useRef)(e);return s()(e,t.current)||(t.current=e),t.current}},function(e,t,r){"use strict";r.d(t,"a",(function(){return E}));var n=r(3),o=r(0),s=r(6),c=r(7),a=r(17),i=r(119),l=r(28),u=r(70);const d=e=>{const t=e.detail;t&&t.preserveCartData||Object(c.dispatch)(s.CART_STORE_KEY).invalidateResolutionForStore()},p=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},m=()=>{Object(o.useEffect)(()=>((()=>{if(window.wcBlocksStoreCartListeners||(window.wcBlocksStoreCartListeners={count:0,remove:()=>{}}),0===window.wcBlocksStoreCartListeners.count){const e=Object(u.b)("added_to_cart","wc-blocks_added_to_cart"),t=Object(u.b)("removed_from_cart","wc-blocks_removed_from_cart");document.body.addEventListener("wc-blocks_added_to_cart",d),document.body.addEventListener("wc-blocks_removed_from_cart",d),window.wcBlocksStoreCartListeners.count=0,window.wcBlocksStoreCartListeners.remove=()=>{e(),t(),document.body.removeEventListener("wc-blocks_added_to_cart",d),document.body.removeEventListener("wc-blocks_removed_from_cart",d)}}window.wcBlocksStoreCartListeners.count++})(),p),[])},f={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},h={...f,email:""},b={total_items:"",total_items_tax:"",total_fees:"",total_fees_tax:"",total_discount:"",total_discount_tax:"",total_shipping:"",total_shipping_tax:"",total_price:"",total_tax:"",tax_lines:s.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},g=e=>Object.fromEntries(Object.entries(e).map(e=>{let[t,r]=e;return[t,Object(a.decodeEntities)(r)]})),y={cartCoupons:s.EMPTY_CART_COUPONS,cartItems:s.EMPTY_CART_ITEMS,cartFees:s.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:s.EMPTY_CART_ITEM_ERRORS,cartTotals:b,cartIsLoading:!0,cartErrors:s.EMPTY_CART_ERRORS,billingAddress:h,shippingAddress:f,shippingRates:s.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentRequirements:s.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},extensions:s.EMPTY_EXTENSIONS},E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0};const{isEditor:t,previewData:r}=Object(l.a)(),a=null==r?void 0:r.previewCart,{shouldSelect:u}=e,d=Object(o.useRef)();m();const p=Object(c.useSelect)((e,r)=>{let{dispatch:n}=r;if(!u)return y;if(t)return{cartCoupons:a.coupons,cartItems:a.items,cartFees:a.fees,cartItemsCount:a.items_count,cartItemsWeight:a.items_weight,cartNeedsPayment:a.needs_payment,cartNeedsShipping:a.needs_shipping,cartItemErrors:s.EMPTY_CART_ITEM_ERRORS,cartTotals:a.totals,cartIsLoading:!1,cartErrors:s.EMPTY_CART_ERRORS,billingData:h,billingAddress:h,shippingAddress:f,extensions:s.EMPTY_EXTENSIONS,shippingRates:a.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:a.has_calculated_shipping,paymentRequirements:a.paymentRequirements,receiveCart:"function"==typeof(null==a?void 0:a.receiveCart)?a.receiveCart:()=>{}};const o=e(s.CART_STORE_KEY),c=o.getCartData(),l=o.getCartErrors(),d=o.getCartTotals(),p=!o.hasFinishedResolution("getCartData"),m=o.isCustomerDataUpdating(),{receiveCart:b}=n(s.CART_STORE_KEY),E=g(c.billingAddress),_=c.needsShipping?g(c.shippingAddress):E,O=c.fees.length>0?c.fees.map(e=>g(e)):s.EMPTY_CART_FEES;return{cartCoupons:c.coupons.length>0?c.coupons.map(e=>({...e,label:e.code})):s.EMPTY_CART_COUPONS,cartItems:c.items,cartFees:O,cartItemsCount:c.itemsCount,cartItemsWeight:c.itemsWeight,cartNeedsPayment:c.needsPayment,cartNeedsShipping:c.needsShipping,cartItemErrors:c.errors,cartTotals:d,cartIsLoading:p,cartErrors:l,billingData:Object(i.a)(E),billingAddress:Object(i.a)(E),shippingAddress:Object(i.a)(_),extensions:c.extensions,shippingRates:c.shippingRates,isLoadingRates:m,cartHasCalculatedShipping:c.hasCalculatedShipping,paymentRequirements:c.paymentRequirements,receiveCart:b}},[u]);return d.current&&Object(n.isEqual)(d.current,p)||(d.current=p),d.current}},function(e,t,r){"use strict";var n=r(4),o=r.n(n),s=r(0);t.a=Object(s.forwardRef)((function({as:e="div",className:t,...r},n){return function({as:e="div",...t}){return"function"==typeof t.children?t.children(t):Object(s.createElement)(e,t)}({as:e,className:o()("components-visually-hidden",t),...r,ref:n})}))},,function(e,t){},function(e,t,r){"use strict";r.d(t,"b",(function(){return A})),r.d(t,"a",(function(){return P}));var n=r(0),o=r(1),s=r(61),c=r(23),a=r.n(c),i=r(52),l=r(19),u=r(7);let d;!function(e){e.SET_IDLE="set_idle",e.SET_PRISTINE="set_pristine",e.SET_REDIRECT_URL="set_redirect_url",e.SET_COMPLETE="set_checkout_complete",e.SET_BEFORE_PROCESSING="set_before_processing",e.SET_AFTER_PROCESSING="set_after_processing",e.SET_PROCESSING_RESPONSE="set_processing_response",e.SET_PROCESSING="set_checkout_is_processing",e.SET_HAS_ERROR="set_checkout_has_error",e.SET_NO_ERROR="set_checkout_no_error",e.SET_CUSTOMER_ID="set_checkout_customer_id",e.SET_ORDER_ID="set_checkout_order_id",e.SET_ORDER_NOTES="set_checkout_order_notes",e.INCREMENT_CALCULATING="increment_calculating",e.DECREMENT_CALCULATING="decrement_calculating",e.SET_SHIPPING_ADDRESS_AS_BILLING_ADDRESS="set_shipping_address_as_billing_address",e.SET_SHOULD_CREATE_ACCOUNT="set_should_create_account",e.SET_EXTENSION_DATA="set_extension_data"}(d||(d={}));const p=()=>({type:d.SET_IDLE}),m=e=>({type:d.SET_REDIRECT_URL,redirectUrl:e}),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:d.SET_COMPLETE,data:e}},h=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:e?d.SET_HAS_ERROR:d.SET_NO_ERROR}};var b=r(2),g=r(119);let y;!function(e){e.PRISTINE="pristine",e.IDLE="idle",e.PROCESSING="processing",e.COMPLETE="complete",e.BEFORE_PROCESSING="before_processing",e.AFTER_PROCESSING="after_processing"}(y||(y={}));const E={order_id:0,customer_id:0,billing_address:{},shipping_address:{},...Object(b.getSetting)("checkoutData",{})||{}},_={redirectUrl:"",status:y.PRISTINE,hasError:!1,calculatingCount:0,orderId:E.order_id,orderNotes:"",customerId:E.customer_id,useShippingAsBilling:Object(g.b)(E.billing_address,E.shipping_address),shouldCreateAccount:!1,processingResponse:null,extensionData:{}},O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,{redirectUrl:t,type:r,customerId:n,orderId:o,orderNotes:s,extensionData:c,useShippingAsBilling:a,shouldCreateAccount:i,data:l}=arguments.length>1?arguments[1]:void 0,u=e;switch(r){case d.SET_PRISTINE:u=_;break;case d.SET_IDLE:u=e.status!==y.IDLE?{...e,status:y.IDLE}:e;break;case d.SET_REDIRECT_URL:u=void 0!==t&&t!==e.redirectUrl?{...e,redirectUrl:t}:e;break;case d.SET_PROCESSING_RESPONSE:u={...e,processingResponse:l};break;case d.SET_COMPLETE:u=e.status!==y.COMPLETE?{...e,status:y.COMPLETE,redirectUrl:"string"==typeof(null==l?void 0:l.redirectUrl)?l.redirectUrl:e.redirectUrl}:e;break;case d.SET_PROCESSING:u=e.status!==y.PROCESSING?{...e,status:y.PROCESSING,hasError:!1}:e,u=!1===u.hasError?u:{...u,hasError:!1};break;case d.SET_BEFORE_PROCESSING:u=e.status!==y.BEFORE_PROCESSING?{...e,status:y.BEFORE_PROCESSING,hasError:!1}:e;break;case d.SET_AFTER_PROCESSING:u=e.status!==y.AFTER_PROCESSING?{...e,status:y.AFTER_PROCESSING}:e;break;case d.SET_HAS_ERROR:u=e.hasError?e:{...e,hasError:!0},u=e.status===y.PROCESSING||e.status===y.BEFORE_PROCESSING?{...u,status:y.IDLE}:u;break;case d.SET_NO_ERROR:u=e.hasError?{...e,hasError:!1}:e;break;case d.INCREMENT_CALCULATING:u={...e,calculatingCount:e.calculatingCount+1};break;case d.DECREMENT_CALCULATING:u={...e,calculatingCount:Math.max(0,e.calculatingCount-1)};break;case d.SET_CUSTOMER_ID:u=void 0!==n?{...e,customerId:n}:e;break;case d.SET_ORDER_ID:u=void 0!==o?{...e,orderId:o}:e;break;case d.SET_SHIPPING_ADDRESS_AS_BILLING_ADDRESS:void 0!==a&&a!==e.useShippingAsBilling&&(u={...e,useShippingAsBilling:a});break;case d.SET_SHOULD_CREATE_ACCOUNT:void 0!==i&&i!==e.shouldCreateAccount&&(u={...e,shouldCreateAccount:i});break;case d.SET_ORDER_NOTES:void 0!==s&&e.orderNotes!==s&&(u={...e,orderNotes:s});break;case d.SET_EXTENSION_DATA:void 0!==c&&e.extensionData!==c&&(u={...e,extensionData:c})}return u!==e&&r!==d.SET_PRISTINE&&u.status===y.PRISTINE&&(u.status=y.IDLE),u};var v=r(17),k=r(94),S=r(204);var w=r(206),j=r(200),C=r(59),R=r(30),T=r(80);const x=Object(n.createContext)({dispatchActions:{resetCheckout:()=>{},setRedirectUrl:e=>{},setHasError:e=>{},setAfterProcessing:e=>{},incrementCalculating:()=>{},decrementCalculating:()=>{},setCustomerId:e=>{},setOrderId:e=>{},setOrderNotes:e=>{},setExtensionData:e=>{}},onSubmit:()=>{},isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,orderNotes:"",customerId:0,onCheckoutAfterProcessingWithSuccess:()=>()=>{},onCheckoutAfterProcessingWithError:()=>()=>{},onCheckoutBeforeProcessing:()=>()=>{},onCheckoutValidationBeforeProcessing:()=>()=>{},hasOrder:!1,isCart:!1,useShippingAsBilling:!1,setUseShippingAsBilling:e=>{},shouldCreateAccount:!1,setShouldCreateAccount:e=>{},extensionData:{}}),A=()=>Object(n.useContext)(x),P=e=>{let{children:t,redirectUrl:r,isCart:c=!1}=e;_.redirectUrl=r;const[b,g]=Object(n.useReducer)(O,_),{setValidationErrors:E}=Object(j.b)(),{createErrorNotice:A}=Object(u.useDispatch)("core/notices"),{dispatchCheckoutEvent:P}=Object(C.a)(),M=b.calculatingCount>0,{isSuccessResponse:N,isErrorResponse:I,isFailResponse:D,shouldRetry:L}=Object(R.d)(),{checkoutNotices:F,paymentNotices:U,expressPaymentNotices:V}=(()=>{const{noticeContexts:e}=Object(R.d)();return{checkoutNotices:Object(u.useSelect)(e=>e("core/notices").getNotices("wc/checkout"),[]),expressPaymentNotices:Object(u.useSelect)(t=>t("core/notices").getNotices(e.EXPRESS_PAYMENTS),[e.EXPRESS_PAYMENTS]),paymentNotices:Object(u.useSelect)(t=>t("core/notices").getNotices(e.PAYMENTS),[e.PAYMENTS])}})(),[B,H]=Object(n.useReducer)(k.b,{}),z=Object(n.useRef)(B),{onCheckoutAfterProcessingWithSuccess:G,onCheckoutAfterProcessingWithError:q,onCheckoutValidationBeforeProcessing:Y}=(e=>Object(n.useMemo)(()=>({onCheckoutAfterProcessingWithSuccess:Object(S.a)("checkout_after_processing_with_success",e),onCheckoutAfterProcessingWithError:Object(S.a)("checkout_after_processing_with_error",e),onCheckoutValidationBeforeProcessing:Object(S.a)("checkout_validation_before_processing",e)}),[e]))(H);Object(n.useEffect)(()=>{z.current=B},[B]);const $=Object(n.useMemo)(()=>function(){return a()("onCheckoutBeforeProcessing",{alternative:"onCheckoutValidationBeforeProcessing",plugin:"WooCommerce Blocks"}),Y(...arguments)},[Y]),W=Object(n.useMemo)(()=>({resetCheckout:()=>{g({type:d.SET_PRISTINE})},setRedirectUrl:e=>{g(m(e))},setHasError:e=>{g(h(e))},incrementCalculating:()=>{g({type:d.INCREMENT_CALCULATING})},decrementCalculating:()=>{g({type:d.DECREMENT_CALCULATING})},setCustomerId:e=>{var t;g((t=e,{type:d.SET_CUSTOMER_ID,customerId:t}))},setOrderId:e=>{g((e=>({type:d.SET_ORDER_ID,orderId:e}))(e))},setOrderNotes:e=>{g((e=>({type:d.SET_ORDER_NOTES,orderNotes:e}))(e))},setExtensionData:e=>{g((e=>({type:d.SET_EXTENSION_DATA,extensionData:e}))(e))},setAfterProcessing:e=>{const t=(e=>{const t={message:"",paymentStatus:"",redirectUrl:"",paymentDetails:{}};return"payment_result"in e&&(t.paymentStatus=e.payment_result.payment_status,t.redirectUrl=e.payment_result.redirect_url,e.payment_result.hasOwnProperty("payment_details")&&Array.isArray(e.payment_result.payment_details)&&e.payment_result.payment_details.forEach(e=>{let{key:r,value:n}=e;t.paymentDetails[r]=Object(v.decodeEntities)(n)})),"message"in e&&(t.message=Object(v.decodeEntities)(e.message)),!t.message&&"data"in e&&"status"in e.data&&e.data.status>299&&(t.message=Object(o.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block")),t})(e);var r;g(m((null==t?void 0:t.redirectUrl)||"")),g((r=t,{type:d.SET_PROCESSING_RESPONSE,data:r})),g({type:d.SET_AFTER_PROCESSING})}}),[]);Object(n.useEffect)(()=>{b.status===y.BEFORE_PROCESSING&&(Object(T.b)("error"),Object(w.a)(z.current,"checkout_validation_before_processing",{}).then(e=>{!0!==e?(Array.isArray(e)&&e.forEach(e=>{let{errorMessage:t,validationErrors:r}=e;A(t,{context:"wc/checkout"}),E(r)}),g(p()),g(h())):g({type:d.SET_PROCESSING})}))},[b.status,E,A,g]);const K=Object(s.a)(b.status),X=Object(s.a)(b.hasError);Object(n.useEffect)(()=>{if((b.status!==K||b.hasError!==X)&&b.status===y.AFTER_PROCESSING){const e={redirectUrl:b.redirectUrl,orderId:b.orderId,customerId:b.customerId,orderNotes:b.orderNotes,processingResponse:b.processingResponse};b.hasError?Object(w.b)(z.current,"checkout_after_processing_with_error",e).then(t=>{const r=(e=>{let t=null;return e.forEach(e=>{if((I(e)||D(e))&&e.message&&Object(i.a)(e.message)){const r=e.messageContext&&Object(i.a)(e.messageContent)?{context:e.messageContext}:void 0;t=e,A(e.message,r)}}),t})(t);if(null!==r)L(r)?g(p()):g(f(r));else{if(!(F.some(e=>"error"===e.status)||V.some(e=>"error"===e.status)||U.some(e=>"error"===e.status))){var n;const t=(null===(n=e.processingResponse)||void 0===n?void 0:n.message)||Object(o.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");A(t,{id:"checkout",context:"wc/checkout"})}g(p())}}):Object(w.b)(z.current,"checkout_after_processing_with_success",e).then(e=>{let t=null,r=null;if(e.forEach(e=>{N(e)&&(t=e),(I(e)||D(e))&&(r=e)}),t&&!r)g(f(t));else if(Object(l.a)(r)){if(r.message&&Object(i.a)(r.message)){const e=r.messageContext&&Object(i.a)(r.messageContext)?{context:r.messageContext}:void 0;A(r.message,e)}L(r)?g(h(!0)):g(f(r))}else g(f())})}},[b.status,b.hasError,b.redirectUrl,b.orderId,b.customerId,b.orderNotes,b.processingResponse,K,X,W,A,I,D,N,L,F,V,U]);const J={onSubmit:Object(n.useCallback)(()=>{P("submit"),g({type:d.SET_BEFORE_PROCESSING})},[P]),isComplete:b.status===y.COMPLETE,isIdle:b.status===y.IDLE,isCalculating:M,isProcessing:b.status===y.PROCESSING,isBeforeProcessing:b.status===y.BEFORE_PROCESSING,isAfterProcessing:b.status===y.AFTER_PROCESSING,hasError:b.hasError,redirectUrl:b.redirectUrl,onCheckoutBeforeProcessing:$,onCheckoutValidationBeforeProcessing:Y,onCheckoutAfterProcessingWithSuccess:G,onCheckoutAfterProcessingWithError:q,dispatchActions:W,isCart:c,orderId:b.orderId,hasOrder:!!b.orderId,customerId:b.customerId,orderNotes:b.orderNotes,useShippingAsBilling:b.useShippingAsBilling,setUseShippingAsBilling:e=>{return g((t=e,{type:d.SET_SHIPPING_ADDRESS_AS_BILLING_ADDRESS,useShippingAsBilling:t}));var t},shouldCreateAccount:b.shouldCreateAccount,setShouldCreateAccount:e=>{return g((t=e,{type:d.SET_SHOULD_CREATE_ACCOUNT,shouldCreateAccount:t}));var t},extensionData:b.extensionData};return Object(n.createElement)(x.Provider,{value:J},t)}},function(e,t){e.exports=window.wp.warning},function(e,t,r){"use strict";var n=r(8),o=r(0),s=r(13),c=function({icon:e,className:t,...r}){const s=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" ");return Object(o.createElement)("span",Object(n.a)({className:s},r))};t.a=function({icon:e=null,size:t=24,...r}){if("string"==typeof e)return Object(o.createElement)(c,Object(n.a)({icon:e},r));if(Object(o.isValidElement)(e)&&c===e.type)return Object(o.cloneElement)(e,{...r});if("function"==typeof e)return e.prototype instanceof o.Component?Object(o.createElement)(e,{size:t,...r}):e({size:t,...r});if(e&&("svg"===e.type||e.type===s.SVG)){const n={width:t,height:t,...e.props,...r};return Object(o.createElement)(s.SVG,n)}return Object(o.isValidElement)(e)?Object(o.cloneElement)(e,{size:t,...r}):e}},,,function(e,t){e.exports=window.wc.priceFormat},function(e,t,r){"use strict";var n=r(8),o=r(0),s=r(4),c=r.n(s),a=r(3),i=r(23),l=r.n(i),u=r(9),d=r(44),p=r(71),m=r(1);function f(e,t,r){const{defaultView:n}=t,{frameElement:o}=n;if(!o||t===r.ownerDocument)return e;const s=o.getBoundingClientRect();return new n.DOMRect(e.left+s.left,e.top+s.top,e.width,e.height)}let h=0;function b(e){const t=document.scrollingElement||document.body;e&&(h=t.scrollTop);const r=e?"add":"remove";t.classList[r]("lockscroll"),document.documentElement.classList[r]("lockscroll"),e||(t.scrollTop=h)}let g=0;function y(){return Object(o.useEffect)(()=>(0===g&&b(!0),++g,()=>{1===g&&b(!1),--g}),[]),null}var E=r(21);function _(e){const t=Object(o.useContext)(E.a),r=t.slots[e]||{},n=t.fills[e],s=Object(o.useMemo)(()=>n||[],[n]);return{...r,updateSlot:Object(o.useCallback)(r=>{t.updateSlot(e,r)},[e,t.updateSlot]),unregisterSlot:Object(o.useCallback)(r=>{t.unregisterSlot(e,r)},[e,t.unregisterSlot]),fills:s,registerFill:Object(o.useCallback)(r=>{t.registerFill(e,r)},[e,t.registerFill]),unregisterFill:Object(o.useCallback)(r=>{t.unregisterFill(e,r)},[e,t.unregisterFill])}}var O=Object(o.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function v({name:e,children:t,registerFill:r,unregisterFill:n}){const s=(e=>{const{getSlot:t,subscribe:r}=Object(o.useContext)(O),[n,s]=Object(o.useState)(t(e));return Object(o.useEffect)(()=>(s(t(e)),r(()=>{s(t(e))})),[e]),n})(e),c=Object(o.useRef)({name:e,children:t});return Object(o.useLayoutEffect)(()=>(r(e,c.current),()=>n(e,c.current)),[]),Object(o.useLayoutEffect)(()=>{c.current.children=t,s&&s.forceUpdate()},[t]),Object(o.useLayoutEffect)(()=>{e!==c.current.name&&(n(c.current.name,c.current),c.current.name=e,r(e,c.current))},[e]),s&&s.node?(Object(a.isFunction)(t)&&(t=t(s.props.fillProps)),Object(o.createPortal)(t,s.node)):null}var k=e=>Object(o.createElement)(O.Consumer,null,({registerFill:t,unregisterFill:r})=>Object(o.createElement)(v,Object(n.a)({},e,{registerFill:t,unregisterFill:r})));class S extends o.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:r,registerSlot:n}=this.props;e.name!==t&&(r(e.name),n(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:r={},getFills:n}=this.props,s=Object(a.map)(n(t,this),e=>{const t=Object(a.isFunction)(e.children)?e.children(r):e.children;return o.Children.map(t,(e,t)=>{if(!e||Object(a.isString)(e))return e;const r=e.key||t;return Object(o.cloneElement)(e,{key:r})})}).filter(Object(a.negate)(o.isEmptyElement));return Object(o.createElement)(o.Fragment,null,Object(a.isFunction)(e)?e(s):s)}}var w=e=>Object(o.createElement)(O.Consumer,null,({registerSlot:t,unregisterSlot:r,getFills:s})=>Object(o.createElement)(S,Object(n.a)({},e,{registerSlot:t,unregisterSlot:r,getFills:s})));function j(){const[,e]=Object(o.useState)({}),t=Object(o.useRef)(!0);return Object(o.useEffect)(()=>()=>{t.current=!1},[]),()=>{t.current&&e({})}}function C({name:e,children:t}){const r=_(e),n=Object(o.useRef)({rerender:j()});return Object(o.useEffect)(()=>(r.registerFill(n),()=>{r.unregisterFill(n)}),[r.registerFill,r.unregisterFill]),r.ref&&r.ref.current?("function"==typeof t&&(t=t(r.fillProps)),Object(o.createPortal)(t,r.ref.current)):null}var R=Object(o.forwardRef)((function({name:e,fillProps:t={},as:r="div",...s},c){const a=Object(o.useContext)(E.a),i=Object(o.useRef)();return Object(o.useLayoutEffect)(()=>(a.registerSlot(e,i,t),()=>{a.unregisterSlot(e,i)}),[a.registerSlot,a.unregisterSlot,e]),Object(o.useLayoutEffect)(()=>{a.updateSlot(e,t)}),Object(o.createElement)(r,Object(n.a)({ref:Object(u.useMergeRefs)([c,i])},s))}));function T(e){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(k,e),Object(o.createElement)(C,e))}r(11),o.Component;const x=Object(o.forwardRef)(({bubblesVirtually:e,...t},r)=>e?Object(o.createElement)(R,Object(n.a)({},t,{ref:r})):Object(o.createElement)(w,t));function A(e){return"appear"===e?"top":"left"}function P(e,t){const{paddingTop:r,paddingBottom:n,paddingLeft:o,paddingRight:s}=(c=t).ownerDocument.defaultView.getComputedStyle(c);var c;const a=r?parseInt(r,10):0,i=n?parseInt(n,10):0,l=o?parseInt(o,10):0,u=s?parseInt(s,10):0;return{x:e.left+l,y:e.top+a,width:e.width-l-u,height:e.height-a-i,left:e.left+l,right:e.right-u,top:e.top+a,bottom:e.bottom-i}}function M(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function N(e,t,r=""){e.style[t]!==r&&(e.style[t]=r)}function I(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const D=Object(o.forwardRef)(({headerTitle:e,onClose:t,children:r,className:s,noArrow:a=!0,isAlternate:i,position:h="bottom right",range:b,focusOnMount:g="firstElement",anchorRef:E,shouldAnchorIncludePadding:O,anchorRect:v,getAnchorRect:k,expandOnMobile:S,animate:w=!0,onClickOutside:j,onFocusOutside:C,__unstableStickyBoundaryElement:R,__unstableSlotName:x="Popover",__unstableObserveElement:D,__unstableBoundaryParent:L,__unstableForcePosition:F,__unstableForceXAlignment:U,...V},B)=>{const H=Object(o.useRef)(null),z=Object(o.useRef)(null),G=Object(o.useRef)(),q=Object(u.useViewportMatch)("medium","<"),[Y,W]=Object(o.useState)(),K=_(x),X=S&&q,[J,Q]=Object(u.useResizeObserver)();a=X||a,Object(o.useLayoutEffect)(()=>{if(X)return I(G.current,"is-without-arrow",a),I(G.current,"is-alternate",i),M(G.current,"data-x-axis"),M(G.current,"data-y-axis"),N(G.current,"top"),N(G.current,"left"),N(z.current,"maxHeight"),void N(z.current,"maxWidth");const e=()=>{if(!G.current||!z.current)return;let e=function(e,t,r,n=!1,o,s){if(t)return t;if(r){if(!e.current)return;const t=r(e.current);return f(t,t.ownerDocument||e.current.ownerDocument,s)}if(!1!==n){if(!(n&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==n?void 0:n.cloneRange))return f(Object(d.getRectangleFromRange)(n),n.endContainer.ownerDocument,s);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=f(n.getBoundingClientRect(),n.ownerDocument,s);return o?e:P(e,n)}const{top:e,bottom:t}=n,r=e.getBoundingClientRect(),c=t.getBoundingClientRect(),a=f(new window.DOMRect(r.left,r.top,r.width,c.bottom-r.top),e.ownerDocument,s);return o?a:P(a,n)}if(!e.current)return;const{parentNode:c}=e.current,a=c.getBoundingClientRect();return o?a:P(a,c)}(H,v,k,E,O,G.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=G.current;let n,o=0;if(t&&t!==r.body){const r=t.getBoundingClientRect();o=r.top,e=new window.DOMRect(e.left-r.left,e.top-r.top,e.width,e.height)}var s;L&&(n=null===(s=G.current.closest(".popover-slot"))||void 0===s?void 0:s.parentNode);const c=Q.height?Q:z.current.getBoundingClientRect(),{popoverTop:l,popoverLeft:u,xAxis:p,yAxis:b,contentHeight:g,contentWidth:y}=function(e,t,r="top",n,o,s,c,a,i){const[l,u="center",d]=r.split(" "),p=function(e,t,r,n,o,s,c,a){const{height:i}=t;if(o){const t=o.getBoundingClientRect().top+i-c;if(e.top<=t)return{yAxis:r,popoverTop:Math.min(e.bottom,t)}}let l=e.top+e.height/2;"bottom"===n?l=e.bottom:"top"===n&&(l=e.top);const u={popoverTop:l,contentHeight:(l-i/2>0?i/2:l)+(l+i/2>window.innerHeight?window.innerHeight-l:i/2)},d={popoverTop:e.top,contentHeight:e.top-10-i>0?i:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+i>window.innerHeight?window.innerHeight-10-e.bottom:i};let m,f=r,h=null;if(!o&&!a)if("middle"===r&&u.contentHeight===i)f="middle";else if("top"===r&&d.contentHeight===i)f="top";else if("bottom"===r&&p.contentHeight===i)f="bottom";else{f=d.contentHeight>p.contentHeight?"top":"bottom";const e="top"===f?d.contentHeight:p.contentHeight;h=e!==i?e:null}return m="middle"===f?u.popoverTop:"top"===f?d.popoverTop:p.popoverTop,{yAxis:f,popoverTop:m,contentHeight:h}}(e,t,l,d,n,0,s,a);return{...function(e,t,r,n,o,s,c,a,i){const{width:l}=t;"left"===r&&Object(m.isRTL)()?r="right":"right"===r&&Object(m.isRTL)()&&(r="left"),"left"===n&&Object(m.isRTL)()?n="right":"right"===n&&Object(m.isRTL)()&&(n="left");const u=Math.round(e.left+e.width/2),d={popoverLeft:u,contentWidth:(u-l/2>0?l/2:u)+(u+l/2>window.innerWidth?window.innerWidth-u:l/2)};let p=e.left;"right"===n?p=e.right:"middle"===s||i||(p=u);let f=e.right;"left"===n?f=e.left:"middle"===s||i||(f=u);const h={popoverLeft:p,contentWidth:p-l>0?l:p},b={popoverLeft:f,contentWidth:f+l>window.innerWidth?window.innerWidth-f:l};let g,y=r,E=null;if(!o&&!a)if("center"===r&&d.contentWidth===l)y="center";else if("left"===r&&h.contentWidth===l)y="left";else if("right"===r&&b.contentWidth===l)y="right";else{y=h.contentWidth>b.contentWidth?"left":"right";const e="left"===y?h.contentWidth:b.contentWidth;l>window.innerWidth&&(E=window.innerWidth),e!==l&&(y="center",d.popoverLeft=window.innerWidth/2)}if(g="center"===y?d.popoverLeft:"left"===y?h.popoverLeft:b.popoverLeft,c){const e=c.getBoundingClientRect();g=Math.min(g,e.right-l),Object(m.isRTL)()||(g=Math.max(g,0))}return{xAxis:y,popoverLeft:g,contentWidth:E}}(e,t,u,d,n,p.yAxis,c,a,i),...p}}(e,c,h,R,G.current,o,n,F,U);"number"==typeof l&&"number"==typeof u&&(N(G.current,"top",l+"px"),N(G.current,"left",u+"px")),I(G.current,"is-without-arrow",a||"center"===p&&"middle"===b),I(G.current,"is-alternate",i),M(G.current,"data-x-axis",p),M(G.current,"data-y-axis",b),N(z.current,"maxHeight","number"==typeof g?g+"px":""),N(z.current,"maxWidth","number"==typeof y?y+"px":""),W(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))};e();const{ownerDocument:t}=G.current,{defaultView:r}=t,n=r.setInterval(e,500);let o;const s=()=>{r.cancelAnimationFrame(o),o=r.requestAnimationFrame(e)};r.addEventListener("click",s),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);const c=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(E);let l;return c&&c!==t&&(c.defaultView.addEventListener("resize",e),c.defaultView.addEventListener("scroll",e,!0)),D&&(l=new r.MutationObserver(e),l.observe(D,{attributes:!0})),()=>{r.clearInterval(n),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",s),r.cancelAnimationFrame(o),c&&c!==t&&(c.defaultView.removeEventListener("resize",e),c.defaultView.removeEventListener("scroll",e,!0)),l&&l.disconnect()}},[X,v,k,E,O,h,Q,R,D,L]);const Z=(e,r)=>{if("focus-outside"===e&&C)C(r);else if("focus-outside"===e&&j){const e=new window.MouseEvent("click");Object.defineProperty(e,"target",{get:()=>r.relatedTarget}),l()("Popover onClickOutside prop",{since:"5.3",alternative:"onFocusOutside"}),j(e)}else t&&t()},[ee,te]=Object(u.__experimentalUseDialog)({focusOnMount:g,__unstableOnClose:Z,onClose:Z}),re=Object(u.useMergeRefs)([G,ee,B]),ne=Boolean(w&&Y)&&function(e){if("loading"===e.type)return c()("components-animate__loading");const{type:t,origin:r=A(t)}=e;if("appear"===t){const[e,t="center"]=r.split(" ");return c()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?c()("components-animate__slide-in","is-from-"+r):void 0}({type:"appear",origin:Y});let oe=Object(o.createElement)("div",Object(n.a)({className:c()("components-popover",s,ne,{"is-expanded":X,"is-without-arrow":a,"is-alternate":i})},V,{ref:re},te,{tabIndex:"-1"}),X&&Object(o.createElement)(y,null),X&&Object(o.createElement)("div",{className:"components-popover__header"},Object(o.createElement)("span",{className:"components-popover__header-title"},e),Object(o.createElement)($,{className:"components-popover__close",icon:p.a,onClick:t})),Object(o.createElement)("div",{ref:z,className:"components-popover__content"},Object(o.createElement)("div",{style:{position:"relative"}},J,r)));return K.ref&&(oe=Object(o.createElement)(T,{name:x},oe)),E||v?oe:Object(o.createElement)("span",{ref:H},oe)});D.Slot=Object(o.forwardRef)((function({name:e="Popover"},t){return Object(o.createElement)(x,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}));var L=D,F=function({shortcut:e,className:t}){if(!e)return null;let r,n;return Object(a.isString)(e)&&(r=e),Object(a.isObject)(e)&&(r=e.display,n=e.ariaLabel),Object(o.createElement)("span",{className:t,"aria-label":n},r)};const U=Object(o.createElement)("div",{className:"event-catcher"}),V=({eventHandlers:e,child:t,childrenWithPopover:r})=>Object(o.cloneElement)(Object(o.createElement)("span",{className:"disabled-element-wrapper"},Object(o.cloneElement)(U,e),Object(o.cloneElement)(t,{children:r}),","),e),B=({child:e,eventHandlers:t,childrenWithPopover:r})=>Object(o.cloneElement)(e,{...t,children:r}),H=(e,t,r)=>{if(1!==o.Children.count(e))return;const n=o.Children.only(e);"function"==typeof n.props[t]&&n.props[t](r)};var z=function({children:e,position:t,text:r,shortcut:n}){const[s,c]=Object(o.useState)(!1),[i,l]=Object(o.useState)(!1),d=Object(u.useDebounce)(l,700),p=t=>{H(e,"onMouseDown",t),document.addEventListener("mouseup",h),c(!0)},m=t=>{H(e,"onMouseUp",t),document.removeEventListener("mouseup",h),c(!1)},f=e=>"mouseUp"===e?m:"mouseDown"===e?p:void 0,h=f("mouseUp"),b=(t,r)=>n=>{if(H(e,t,n),n.currentTarget.disabled)return;if("focus"===n.type&&s)return;d.cancel();const o=Object(a.includes)(["focus","mouseenter"],n.type);o!==i&&(r?d(o):l(o))},g=()=>{d.cancel(),document.removeEventListener("mouseup",h)};if(Object(o.useEffect)(()=>g,[]),1!==o.Children.count(e))return e;const y={onMouseEnter:b("onMouseEnter",!0),onMouseLeave:b("onMouseLeave"),onClick:b("onClick"),onFocus:b("onFocus"),onBlur:b("onBlur"),onMouseDown:f("mouseDown")},E=o.Children.only(e),{children:_,disabled:O}=E.props;return(O?V:B)({child:E,eventHandlers:y,childrenWithPopover:(({grandchildren:e,isOver:t,position:r,text:n,shortcut:s})=>Object(o.concatChildren)(e,t&&Object(o.createElement)(L,{focusOnMount:!1,position:r,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},n,Object(o.createElement)(F,{className:"components-tooltip__shortcut",shortcut:s}))))({grandchildren:_,isOver:i,position:t,text:r,shortcut:n})})},G=r(38),q=r(33);const Y=["onMouseDown","onClick"];var $=t.a=Object(o.forwardRef)((function(e,t){const{href:r,target:s,isSmall:i,isPressed:u,isBusy:d,isDestructive:p,className:m,disabled:f,icon:h,iconPosition:b="left",iconSize:g,showTooltip:y,tooltipPosition:E,shortcut:_,label:O,children:v,text:k,variant:S,__experimentalIsFocusable:w,describedBy:j,...C}=function({isDefault:e,isPrimary:t,isSecondary:r,isTertiary:n,isLink:o,variant:s,...c}){let a=s;var i,u,d,p,m;return t&&(null!==(i=a)&&void 0!==i||(a="primary")),n&&(null!==(u=a)&&void 0!==u||(a="tertiary")),r&&(null!==(d=a)&&void 0!==d||(a="secondary")),e&&(l()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(p=a)&&void 0!==p||(a="secondary")),o&&(null!==(m=a)&&void 0!==m||(a="link")),{...c,variant:a}}(e),R=c()("components-button",m,{"is-secondary":"secondary"===S,"is-primary":"primary"===S,"is-small":i,"is-tertiary":"tertiary"===S,"is-pressed":u,"is-busy":d,"is-link":"link"===S,"is-destructive":p,"has-text":!!h&&!!v,"has-icon":!!h}),T=f&&!w,x=void 0===r||T?"button":"a",A="a"===x?{href:r,target:s}:{type:"button",disabled:T,"aria-pressed":u};if(f&&w){A["aria-disabled"]=!0;for(const e of Y)C[e]=e=>{e.stopPropagation(),e.preventDefault()}}const P=!T&&(y&&O||_||!!O&&(!v||Object(a.isArray)(v)&&!v.length)&&!1!==y),M=j?Object(a.uniqueId)():null,N=C["aria-describedby"]||M,I=Object(o.createElement)(x,Object(n.a)({},A,C,{className:R,"aria-label":C["aria-label"]||O,"aria-describedby":N,ref:t}),h&&"left"===b&&Object(o.createElement)(G.a,{icon:h,size:g}),k&&Object(o.createElement)(o.Fragment,null,k),h&&"right"===b&&Object(o.createElement)(G.a,{icon:h,size:g}),v);return P?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(z,{text:j||O,shortcut:_,position:E},I),j&&Object(o.createElement)(q.a,null,Object(o.createElement)("span",{id:M},j))):Object(o.createElement)(o.Fragment,null,I,j&&Object(o.createElement)(q.a,null,Object(o.createElement)("span",{id:M},j)))}))},function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.wp.dom},,,function(e,t,r){"use strict";r.d(t,"n",(function(){return s})),r.d(t,"l",(function(){return c})),r.d(t,"k",(function(){return a})),r.d(t,"m",(function(){return i})),r.d(t,"i",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"f",(function(){return d})),r.d(t,"j",(function(){return p})),r.d(t,"c",(function(){return m})),r.d(t,"e",(function(){return f})),r.d(t,"g",(function(){return h})),r.d(t,"a",(function(){return b})),r.d(t,"h",(function(){return g})),r.d(t,"b",(function(){return y}));var n,o=r(2);const s=Object(o.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),c=s.pluginUrl+"images/",a=s.pluginUrl+"build/",i=s.buildPhase,l=null===(n=o.STORE_PAGES.shop)||void 0===n?void 0:n.permalink,u=(o.STORE_PAGES.checkout.id,o.STORE_PAGES.checkout.permalink),d=o.STORE_PAGES.privacy.permalink,p=(o.STORE_PAGES.privacy.title,o.STORE_PAGES.terms.permalink),m=(o.STORE_PAGES.terms.title,o.STORE_PAGES.cart.id,o.STORE_PAGES.cart.permalink),f=o.STORE_PAGES.myaccount.permalink?o.STORE_PAGES.myaccount.permalink:Object(o.getSetting)("wpLoginUrl","/wp-login.php"),h=Object(o.getSetting)("shippingCountries",{}),b=Object(o.getSetting)("allowedCountries",{}),g=Object(o.getSetting)("shippingStates",{}),y=Object(o.getSetting)("allowedStates",{})},function(e,t,r){"use strict";var n=r(2),o=r(1),s=r(72),c=r(52);const a=Object(n.getSetting)("countryLocale",{}),i=e=>{const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.required&&(t.required=e.required),void 0!==e.hidden&&(t.hidden=e.hidden),void 0===e.label||e.optionalLabel||(t.optionalLabel=Object(o.sprintf)(
|
2 |
/* translators: %s Field label. */
|
3 |
Object(o.__)("%s (optional)","woo-gutenberg-products-block"),e.label)),e.priority&&(Object(s.a)(e.priority)&&(t.index=e.priority),Object(c.a)(e.priority)&&(t.index=parseInt(e.priority,10))),e.hidden&&(t.required=!1),t},l=Object.entries(a).map(e=>{let[t,r]=e;return[t,Object.entries(r).map(e=>{let[t,r]=e;return[t,i(r)]}).reduce((e,t)=>{let[r,n]=t;return e[r]=n,e},{})]}).reduce((e,t)=>{let[r,n]=t;return e[r]=n,e},{});t.a=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const o=r&&void 0!==l[r]?l[r]:{};return e.map(e=>({key:e,...n.defaultAddressFields[e]||{},...o[e]||{},...t[e]||{}})).sort((e,t)=>e.index-t.index)}},function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return a}));var n=r(0),o=r(67);const s=Object(n.createContext)({isInitialized:!1,billingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},setBillingAddress:()=>{},setShippingAddress:()=>{}}),c=()=>Object(n.useContext)(s),a=e=>{let{children:t}=e;const r=Object(o.a)();return Object(n.createElement)(s.Provider,{value:r},t)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(5);function o(e,t,r){var o=this,s=Object(n.useRef)(null),c=Object(n.useRef)(0),a=Object(n.useRef)(null),i=Object(n.useRef)([]),l=Object(n.useRef)(),u=Object(n.useRef)(),d=Object(n.useRef)(e),p=Object(n.useRef)(!0);d.current=e;var m=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var f=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,b="maxWait"in r,g=b?Math.max(+r.maxWait||0,t):null;return Object(n.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]),Object(n.useMemo)((function(){var e=function(e){var t=i.current,r=l.current;return i.current=l.current=null,c.current=e,u.current=d.current.apply(r,t)},r=function(e,t){m&&cancelAnimationFrame(a.current),a.current=m?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!p.current)return!1;var r=e-s.current,n=e-c.current;return!s.current||r>=t||r<0||b&&n>=g},y=function(t){return a.current=null,h&&i.current?e(t):(i.current=l.current=null,u.current)},E=function(){var e=Date.now();if(n(e))return y(e);if(p.current){var o=e-s.current,a=e-c.current,i=t-o,l=b?Math.min(i,g-a):i;r(E,l)}},_=function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];var h=Date.now(),g=n(h);if(i.current=d,l.current=o,s.current=h,g){if(!a.current&&p.current)return c.current=s.current,r(E,t),f?e(s.current):u.current;if(b)return r(E,t),e(s.current)}return a.current||r(E,t),u.current};return _.cancel=function(){a.current&&(m?cancelAnimationFrame(a.current):clearTimeout(a.current)),c.current=0,i.current=s.current=l.current=a.current=null},_.isPending=function(){return!!a.current},_.flush=function(){return a.current?y(Date.now()):u.current},_}),[f,b,t,g,h,m])}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(12),o=r.n(n),s=r(0),c=r(15);const a=[".wp-block-woocommerce-cart"],i=e=>{let{Block:t,containers:r,getProps:n=(()=>({})),getErrorBoundaryProps:a=(()=>({}))}=e;0!==r.length&&Array.prototype.forEach.call(r,(e,r)=>{const i=n(e,r),l=a(e,r),u={...e.dataset,...i.attributes||{}};(e=>{let{Block:t,container:r,attributes:n={},props:a={},errorBoundaryProps:i={}}=e;Object(s.render)(Object(s.createElement)(c.a,i,Object(s.createElement)(s.Suspense,{fallback:Object(s.createElement)("div",{className:"wc-block-placeholder"})},t&&Object(s.createElement)(t,o()({},a,{attributes:n})))),r,()=>{r.classList&&r.classList.remove("is-loading")})})({Block:t,container:e,props:i,attributes:u,errorBoundaryProps:l})})},l=e=>{const t=document.body.querySelectorAll(a.join(",")),{Block:r,getProps:n,getErrorBoundaryProps:o,selector:s}=e;(e=>{let{Block:t,getProps:r,getErrorBoundaryProps:n,selector:o,wrappers:s}=e;const c=document.body.querySelectorAll(o);s&&s.length>0&&Array.prototype.filter.call(c,e=>!((e,t)=>Array.prototype.some.call(t,t=>t.contains(e)&&!t.isSameNode(e)))(e,s)),i({Block:t,containers:c,getProps:r,getErrorBoundaryProps:n})})({Block:r,getProps:n,getErrorBoundaryProps:o,selector:s,wrappers:t}),Array.prototype.forEach.call(t,t=>{t.addEventListener("wc-blocks_render_blocks_frontend",()=>{(e=>{let{Block:t,getProps:r,getErrorBoundaryProps:n,selector:o,wrapper:s}=e;const c=s.querySelectorAll(o);i({Block:t,containers:c,getProps:r,getErrorBoundaryProps:n})})({...e,wrapper:t})})})}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>"string"==typeof e},function(e,t){e.exports=window.wp.keycodes},,function(e,t){var r,n,o=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{n="function"==typeof clearTimeout?clearTimeout:c}catch(e){n=c}}();var i,l=[],u=!1,d=-1;function p(){u&&i&&(u=!1,i.length?l=i.concat(l):d=-1,l.length&&m())}function m(){if(!u){var e=a(p);u=!0;for(var t=l.length;t;){for(i=l,l=[];++d<t;)i&&i[d].run();d=-1,t=l.length}i=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===c||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||u||a(m)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){var n=r(83),o=r(57),s=o.setStyleProp,c=n.html,a=n.svg,i=n.isCustomAttribute,l=Object.prototype.hasOwnProperty;e.exports=function(e){var t,r,n,u;e=e||{};var d={};for(t in e)n=e[t],i(t)?d[t]=n:(r=t.toLowerCase(),l.call(c,r)?d[(u=c[r]).propertyName]=!!(u.hasBooleanValue||u.hasOverloadedBooleanValue&&!n)||n:l.call(a,t)?d[(u=a[t]).propertyName]=n:o.PRESERVE_CUSTOM_ATTRIBUTES&&(d[t]=n));return s(e.style,d),d}},function(e,t,r){var n=r(5),o=r(87).default,s={reactCompat:!0},c=n.version.split(".")[0]>=16;e.exports={PRESERVE_CUSTOM_ATTRIBUTES:c,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var r,n,o="function"==typeof t,s={},c={};for(r in e)n=e[r],o&&(s=t(r,n))&&2===s.length?c[s[0]]=s[1]:"string"==typeof n&&(c[n]=r);return c},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){null!=e&&(t.style=o(e,s))}}},function(e,t,r){for(var n,o=r(93).CASE_SENSITIVE_TAG_NAMES,s={},c=0,a=o.length;c<a;c++)n=o[c],s[n.toLowerCase()]=n;function i(e){for(var t,r={},n=0,o=e.length;n<o;n++)r[(t=e[n]).name]=t.value;return r}function l(e){return function(e){return s[e]}(e=e.toLowerCase())||e}e.exports={formatAttributes:i,formatDOM:function e(t,r,n){r=r||null;for(var o,s,c,a=[],u=0,d=t.length;u<d;u++){switch(o=t[u],c={next:null,prev:a[u-1]||null,parent:r},(s=a[u-1])&&(s.next=c),"#"!==o.nodeName[0]&&(c.name=l(o.nodeName),c.attribs={},o.attributes&&o.attributes.length&&(c.attribs=i(o.attributes))),o.nodeType){case 1:"script"===c.name||"style"===c.name?c.type=c.name:c.type="tag",c.children=e(o.childNodes,c);break;case 3:c.type="text",c.data=o.nodeValue;break;case 8:c.type="comment",c.data=o.nodeValue}a.push(c)}return n&&(a.unshift({name:n.substring(0,n.indexOf(" ")).toLowerCase(),data:n,type:"directive",next:a[0]?a[0]:null,prev:null,parent:r}),a[1]&&(a[1].prev=a[0])),a},isIE:function(e){return e?document.documentMode===e:/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(43),o=r(0),s=r(32);const c=()=>{const e=Object(s.a)(),t=Object(o.useRef)(e);return Object(o.useEffect)(()=>{t.current=e},[e]),{dispatchStoreEvent:Object(o.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{Object(n.doAction)("experimental__woocommerce_blocks-"+e,t)}catch(e){console.error(e)}}),[]),dispatchCheckoutEvent:Object(o.useCallback)((function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{Object(n.doAction)("experimental__woocommerce_blocks-checkout-"+e,{...r,storeCart:t.current})}catch(e){console.error(e)}}),[])}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return c}));var n=r(0);const o=Object(n.createContext)({setIsSuppressed:e=>{},isSuppressed:!1}),s=()=>Object(n.useContext)(o),c=e=>{let{children:t}=e;const[r,s]=Object(n.useState)(!1),c={setIsSuppressed:s,isSuppressed:r};return Object(n.createElement)(o.Provider,{value:c},t)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(5);function o(e,t){const r=Object(n.useRef)();return Object(n.useEffect)(()=>{r.current===e||t&&!t(e,r.current)||(r.current=e)},[e,t]),r.current}},function(e,t,r){var n=r(82),o=r(56),s=r(91),c={decodeEntities:!0,lowerCaseAttributeNames:!1};function a(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:n(s(e,(t=t||{}).htmlparser2||c),t)}a.domToReact=n,a.htmlToDOM=s,a.attributesToProps=o,e.exports=a,e.exports.default=a},,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(6),o=r(7),s=r(0),c=r(11),a=r.n(c),i=r(19),l=r(1),u=r(47),d=r(2);const p=[{destination:{address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},package_id:0,name:Object(l.__)("Shipping","woo-gutenberg-products-block"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:Object(l._x)("Beanie with Logo","example product in Cart Block","woo-gutenberg-products-block"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:Object(l._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(l.__)("Free shipping","woo-gutenberg-products-block"),description:"",delivery_time:"",price:"000",taxes:"0",rate_id:"free_shipping:1",instance_id:0,meta_data:[],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(l.__)("Local pickup","woo-gutenberg-products-block"),description:"",delivery_time:"",price:"200",taxes:"0",rate_id:"local_pickup:1",instance_id:1,meta_data:[],method_id:"local_pickup",selected:!1}]}],m=Object(d.getSetting)("displayCartPricesIncludingTax",!1),f={coupons:[],shipping_rates:Object(d.getSetting)("shippingMethodsExist",!1)?p:[],items:[{key:"1",id:1,quantity:2,name:Object(l.__)("Beanie","woo-gutenberg-products-block"),short_description:Object(l.__)("Warm hat for winter","woo-gutenberg-products-block"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-beanie",permalink:"https://example.org",low_stock_remaining:2,backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,images:[{id:10,src:u.l+"previews/beanie.jpg",thumbnail:u.l+"previews/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(l.__)("Color","woo-gutenberg-products-block"),value:Object(l.__)("Yellow","woo-gutenberg-products-block")},{attribute:Object(l.__)("Size","woo-gutenberg-products-block"),value:Object(l.__)("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:m?"12000":"10000",regular_price:m?"12000":"10000",sale_price:m?"12000":"10000",raw_prices:{precision:6,price:m?"12000000":"10000000",regular_price:m?"12000000":"10000000",sale_price:m?"12000000":"10000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"2000",line_subtotal_tax:"400",line_total:"2000",line_total_tax:"400"},extensions:{}},{key:"2",id:2,quantity:1,name:Object(l.__)("Cap","woo-gutenberg-products-block"),short_description:Object(l.__)("Lightweight baseball cap","woo-gutenberg-products-block"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-cap",permalink:"https://example.org",backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,images:[{id:11,src:u.l+"previews/cap.jpg",thumbnail:u.l+"previews/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(l.__)("Color","woo-gutenberg-products-block"),value:Object(l.__)("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:m?"2400":"2000",regular_price:m?"2400":"2000",sale_price:m?"2400":"2000",raw_prices:{precision:6,price:m?"24000000":"20000000",regular_price:m?"24000000":"20000000",sale_price:m?"24000000":"20000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"2000",line_subtotal_tax:"400",line_total:"2000",line_total_tax:"400"},extensions:{}}],fees:[{id:"fee",name:Object(l.__)("Fee","woo-gutenberg-products-block"),totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",total:"100",total_tax:"20",tax_lines:[{name:Object(l.__)("Sales tax","woo-gutenberg-products-block"),rate:"20%",price:"20"}]}}],items_count:3,items_weight:0,needs_payment:!0,needs_shipping:Object(d.getSetting)("shippingEnabled",!0),has_calculated_shipping:!0,shipping_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},billing_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",total_items:"4000",total_items_tax:"800",total_fees:"100",total_fees_tax:"20",total_discount:"0",total_discount_tax:"0",total_shipping:"0",total_shipping_tax:"0",total_tax:"820",total_price:"4920",tax_lines:[{name:Object(l.__)("Sales tax","woo-gutenberg-products-block"),rate:"20%",price:"820"}]},errors:[],payment_requirements:["products"],extensions:{}};var h=r(69);const b=()=>{const{shippingRates:e,needsShipping:t,hasCalculatedShipping:r,isLoadingRates:c}=Object(o.useSelect)(e=>{const t=!!e("core/editor"),r=e(n.CART_STORE_KEY);return{shippingRates:t?f.shipping_rates:r.getShippingRates(),needsShipping:t?f.needs_shipping:r.getNeedsShipping(),hasCalculatedShipping:t?f.has_calculated_shipping:r.getHasCalculatedShipping(),isLoadingRates:!t&&r.isCustomerDataUpdating()}}),{isSelectingRate:l,selectShippingRate:u}=Object(h.a)(),d=Object(s.useRef)({});return Object(s.useEffect)(()=>{const t=(e=>Object.fromEntries(e.map(e=>{var t;let{package_id:r,shipping_rates:n}=e;return[r,null===(t=n.find(e=>e.selected))||void 0===t?void 0:t.rate_id]})))(e);Object(i.a)(t)&&!a()(d.current,t)&&(d.current=t)},[e]),{isSelectingRate:l,selectedRates:d.current,selectShippingRate:u,shippingRates:e,needsShipping:t,hasCalculatedShipping:r,isLoadingRates:c}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(7),o=r(6);const s=()=>{const{customerData:e,isInitialized:t}=Object(n.useSelect)(e=>{const t=e(o.CART_STORE_KEY);return{customerData:t.getCustomerData(),isInitialized:t.hasFinishedResolution("getCartData")}}),{setShippingAddress:r,setBillingAddress:s}=Object(n.useDispatch)(o.CART_STORE_KEY);return{isInitialized:t,billingAddress:e.billingAddress,shippingAddress:e.shippingAddress,setBillingAddress:s,setShippingAddress:r}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return _})),r.d(t,"a",(function(){return O}));var n=r(0);const o={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},s={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"},c={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:()=>null,shippingErrorTypes:o,shippingRates:[],isLoadingRates:!1,selectedRates:[],setSelectedRates:()=>null,shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},setShippingAddress:()=>null,onShippingRateSuccess:()=>null,onShippingRateFail:()=>null,onShippingRateSelectSuccess:()=>null,onShippingRateSelectFail:()=>null,needsShipping:!1},a=(e,t)=>{let{type:r}=t;return Object.values(o).includes(r)?r:e};var i=r(94),l=r(204);const u=e=>({onSuccess:Object(l.a)("shipping_rates_success",e),onFail:Object(l.a)("shipping_rates_fail",e),onSelectSuccess:Object(l.a)("shipping_rate_select_success",e),onSelectFail:Object(l.a)("shipping_rate_select_fail",e)});var d=r(206),p=r(36),m=r(32),f=r(69),h=r(66);const{NONE:b,INVALID_ADDRESS:g,UNKNOWN:y}=o,E=Object(n.createContext)(c),_=()=>Object(n.useContext)(E),O=e=>{let{children:t}=e;const{dispatchActions:r}=Object(p.b)(),{shippingRates:c,isLoadingRates:l,cartErrors:_}=Object(m.a)(),{isSelectingRate:O}=Object(f.a)(),{selectedRates:v}=Object(h.a)(),[k,S]=Object(n.useReducer)(a,b),[w,j]=Object(n.useReducer)(i.b,{}),C=Object(n.useRef)(w),R=Object(n.useMemo)(()=>({onShippingRateSuccess:u(j).onSuccess,onShippingRateFail:u(j).onFail,onShippingRateSelectSuccess:u(j).onSelectSuccess,onShippingRateSelectFail:u(j).onSelectFail}),[j]);Object(n.useEffect)(()=>{C.current=w},[w]),Object(n.useEffect)(()=>{l?r.incrementCalculating():r.decrementCalculating()},[l,r]),Object(n.useEffect)(()=>{O?r.incrementCalculating():r.decrementCalculating()},[O,r]),Object(n.useEffect)(()=>{_.length>0&&_.some(e=>!(!e.code||!Object.values(s).includes(e.code)))?S({type:g}):S({type:b})},[_]);const T=Object(n.useMemo)(()=>({isPristine:k===b,isValid:k===b,hasInvalidAddress:k===g,hasError:k===y||k===g}),[k]);Object(n.useEffect)(()=>{l||0!==c.length&&!T.hasError||Object(d.a)(C.current,"shipping_rates_fail",{hasInvalidAddress:T.hasInvalidAddress,hasError:T.hasError})},[c,l,T.hasError,T.hasInvalidAddress]),Object(n.useEffect)(()=>{!l&&c.length>0&&!T.hasError&&Object(d.a)(C.current,"shipping_rates_success",c)},[c,l,T.hasError]),Object(n.useEffect)(()=>{O||(T.hasError?Object(d.a)(C.current,"shipping_rate_select_fail",{hasError:T.hasError,hasInvalidAddress:T.hasInvalidAddress}):Object(d.a)(C.current,"shipping_rate_select_success",v.current))},[v,O,T.hasError,T.hasInvalidAddress]);const x={shippingErrorStatus:T,dispatchErrorStatus:S,shippingErrorTypes:o,...R};return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(E.Provider,{value:x},t))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(7),o=r(0),s=r(6),c=r(74),a=r(59);const i=()=>{const e=Object(c.a)(),{dispatchCheckoutEvent:t}=Object(a.a)(),{selectShippingRate:r}=Object(n.useDispatch)(s.CART_STORE_KEY);return{selectShippingRate:Object(o.useCallback)((n,o)=>{r(n,o).then(()=>{t("set-selected-shipping-rate",{shippingRateId:n})}).catch(t=>{e(t)})},[r,t,e]),isSelectingRate:Object(n.useSelect)(e=>e(s.CART_STORE_KEY).isShippingRateBeingSelected(),[])}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return i}));const n=window.CustomEvent||null,o=(e,t)=>{let{bubbles:r=!1,cancelable:o=!1,element:s,detail:c={}}=t;if(!n)return;s||(s=document.body);const a=new n(e,{bubbles:r,cancelable:o,detail:c});s.dispatchEvent(a)};let s;const c=()=>{s&&clearTimeout(s),s=setTimeout(()=>{o("wc_fragment_refresh",{bubbles:!0,cancelable:!0})},50)},a=e=>{let{preserveCartData:t=!1}=e;o("wc-blocks_added_to_cart",{bubbles:!0,cancelable:!0,detail:{preserveCartData:t}})},i=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"!=typeof jQuery)return()=>{};const s=()=>{o(t,{bubbles:r,cancelable:n})};return jQuery(document).on(e,s),()=>jQuery(document).off(e,s)}},function(e,t,r){"use strict";var n=r(0),o=r(13);const s=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=s},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>"number"==typeof e},,function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0);const o=()=>{const[,e]=Object(n.useState)();return Object(n.useCallback)(t=>{e(()=>{throw t})},[])}},function(e,t,r){"use strict";var n=r(12),o=r.n(n),s=r(0);r(107);const c=e=>{if(!e)return;const t=e.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollIntoView()};t.a=e=>t=>{const r=Object(s.useRef)(null);return Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"with-scroll-to-top__scroll-point",ref:r,"aria-hidden":!0}),Object(s.createElement)(e,o()({},t,{scrollToTop:e=>{null!==r.current&&((e,t)=>{const{focusableSelector:r}=t||{};window&&Number.isFinite(window.innerHeight)&&(r?((e,t)=>{var r;const n=(null===(r=e.parentElement)||void 0===r?void 0:r.querySelectorAll(t))||[];if(n.length){const e=n[0];c(e),null==e||e.focus()}else c(e)})(e,r):c(e))})(r.current,e)}})))}},,function(e,t,r){"use strict";var n=r(0),o=r(3),s=r(4),c=r.n(s),a=r(1),i=r(20),l=r(71),u=r(42);function d(e){switch(e){case"success":case"warning":case"info":return"polite";case"error":default:return"assertive"}}t.a=function({className:e,status:t="info",children:r,spokenMessage:s=r,onRemove:p=o.noop,isDismissible:m=!0,actions:f=[],politeness:h=d(t),__unstableHTML:b,onDismiss:g=o.noop}){!function(e,t){const r="string"==typeof e?e:Object(n.renderToString)(e);Object(n.useEffect)(()=>{r&&Object(i.speak)(r,t)},[r,t])}(s,h);const y=c()(e,"components-notice","is-"+t,{"is-dismissible":m});return b&&(r=Object(n.createElement)(n.RawHTML,null,r)),Object(n.createElement)("div",{className:y},Object(n.createElement)("div",{className:"components-notice__content"},r,Object(n.createElement)("div",{className:"components-notice__actions"},f.map(({className:e,label:t,isPrimary:r,variant:o,noDefaultClasses:s=!1,onClick:a,url:i},l)=>{let d=o;return"primary"===o||s||(d=i?"link":"secondary"),void 0===d&&r&&(d="primary"),Object(n.createElement)(u.a,{key:l,href:i,variant:d,onClick:i?void 0:a,className:c()("components-notice__action",e)},t)}))),m&&Object(n.createElement)(u.a,{className:"components-notice__dismiss",icon:l.a,label:Object(a.__)("Dismiss this notice"),onClick:e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),g(),p()},showTooltip:!1}))}},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return s}));var n=r(7);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const r=Object(n.select)("core/notices").getNotices(e);return r.some(e=>e.type===t)},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=Object(n.select)("core/notices").getNotices(),{removeNotice:o}=Object(n.dispatch)("core/notices"),s=r.filter(t=>t.status===e);s.forEach(e=>o(e.id,t))}},function(e,t){},function(e,t,r){var n=r(5),o=r(56),s=r(57),c=s.setStyleProp;function a(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&s.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var s,i,l,u,d=(r=r||{}).library||n,p=d.cloneElement,m=d.createElement,f=d.isValidElement,h=[],b="function"==typeof r.replace,g=r.trim,y=0,E=t.length;y<E;y++)if(s=t[y],b&&f(i=r.replace(s)))E>1&&(i=p(i,{key:i.key||y})),h.push(i);else if("text"!==s.type){switch(l=s.attribs,a(s)?c(l.style,l):l&&(l=o(l)),u=null,s.type){case"script":case"style":s.children[0]&&(l.dangerouslySetInnerHTML={__html:s.children[0].data});break;case"tag":"textarea"===s.name&&s.children[0]?l.defaultValue=s.children[0].data:s.children&&s.children.length&&(u=e(s.children,r));break;default:continue}E>1&&(l.key=y),h.push(m(s.name,l,u))}else g?s.data.trim()&&h.push(s.data):h.push(s.data);return 1===h.length?h[0]:h}},function(e,t,r){var n=r(84),o=r(85),s=r(86),c=s.MUST_USE_PROPERTY,a=s.HAS_BOOLEAN_VALUE,i=s.HAS_NUMERIC_VALUE,l=s.HAS_POSITIVE_NUMERIC_VALUE,u=s.HAS_OVERLOADED_BOOLEAN_VALUE;function d(e,t){return(e&t)===t}function p(e,t,r){var n,o,s,p=e.Properties,m=e.DOMAttributeNames;for(o in p)n=m[o]||(r?o:o.toLowerCase()),s=p[o],t[n]={attributeName:n,propertyName:o,mustUseProperty:d(s,c),hasBooleanValue:d(s,a),hasNumericValue:d(s,i),hasPositiveNumericValue:d(s,l),hasOverloadedBooleanValue:d(s,u)}}var m={};p(n,m);var f={};p(o,f,!0);var h={};p(n,h),p(o,h,!0),e.exports={html:m,svg:f,properties:h,isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"))}},function(e,t){e.exports={Properties:{autoFocus:4,accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:4,allowTransparency:0,alt:0,as:0,async:4,autoComplete:0,autoPlay:4,capture:4,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:5,cite:0,classID:0,className:0,cols:24,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:4,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:4,defer:4,dir:0,disabled:4,download:32,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:4,formTarget:0,frameBorder:0,headers:0,height:0,hidden:4,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:4,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:5,muted:5,name:0,nonce:0,noValidate:4,open:4,optimum:0,pattern:0,placeholder:0,playsInline:4,poster:0,preload:0,profile:0,radioGroup:0,readOnly:4,referrerPolicy:0,rel:0,required:4,reversed:4,role:0,rows:24,rowSpan:8,sandbox:0,scope:0,scoped:4,scrolling:0,seamless:4,selected:5,shape:0,size:24,sizes:0,span:24,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:8,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:4,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}}},function(e,t){e.exports={Properties:{accentHeight:0,accumulate:0,additive:0,alignmentBaseline:0,allowReorder:0,alphabetic:0,amplitude:0,arabicForm:0,ascent:0,attributeName:0,attributeType:0,autoReverse:0,azimuth:0,baseFrequency:0,baseProfile:0,baselineShift:0,bbox:0,begin:0,bias:0,by:0,calcMode:0,capHeight:0,clip:0,clipPath:0,clipRule:0,clipPathUnits:0,colorInterpolation:0,colorInterpolationFilters:0,colorProfile:0,colorRendering:0,contentScriptType:0,contentStyleType:0,cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:0,direction:0,display:0,divisor:0,dominantBaseline:0,dur:0,dx:0,dy:0,edgeMode:0,elevation:0,enableBackground:0,end:0,exponent:0,externalResourcesRequired:0,fill:0,fillOpacity:0,fillRule:0,filter:0,filterRes:0,filterUnits:0,floodColor:0,floodOpacity:0,focusable:0,fontFamily:0,fontSize:0,fontSizeAdjust:0,fontStretch:0,fontStyle:0,fontVariant:0,fontWeight:0,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:0,glyphOrientationHorizontal:0,glyphOrientationVertical:0,glyphRef:0,gradientTransform:0,gradientUnits:0,hanging:0,horizAdvX:0,horizOriginX:0,ideographic:0,imageRendering:0,in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:0,kernelUnitLength:0,kerning:0,keyPoints:0,keySplines:0,keyTimes:0,lengthAdjust:0,letterSpacing:0,lightingColor:0,limitingConeAngle:0,local:0,markerEnd:0,markerMid:0,markerStart:0,markerHeight:0,markerUnits:0,markerWidth:0,mask:0,maskContentUnits:0,maskUnits:0,mathematical:0,mode:0,numOctaves:0,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:0,overlineThickness:0,paintOrder:0,panose1:0,pathLength:0,patternContentUnits:0,patternTransform:0,patternUnits:0,pointerEvents:0,points:0,pointsAtX:0,pointsAtY:0,pointsAtZ:0,preserveAlpha:0,preserveAspectRatio:0,primitiveUnits:0,r:0,radius:0,refX:0,refY:0,renderingIntent:0,repeatCount:0,repeatDur:0,requiredExtensions:0,requiredFeatures:0,restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:0,slope:0,spacing:0,specularConstant:0,specularExponent:0,speed:0,spreadMethod:0,startOffset:0,stdDeviation:0,stemh:0,stemv:0,stitchTiles:0,stopColor:0,stopOpacity:0,strikethroughPosition:0,strikethroughThickness:0,string:0,stroke:0,strokeDasharray:0,strokeDashoffset:0,strokeLinecap:0,strokeLinejoin:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0,surfaceScale:0,systemLanguage:0,tableValues:0,targetX:0,targetY:0,textAnchor:0,textDecoration:0,textRendering:0,textLength:0,to:0,transform:0,u1:0,u2:0,underlinePosition:0,underlineThickness:0,unicode:0,unicodeBidi:0,unicodeRange:0,unitsPerEm:0,vAlphabetic:0,vHanging:0,vIdeographic:0,vMathematical:0,values:0,vectorEffect:0,version:0,vertAdvY:0,vertOriginX:0,vertOriginY:0,viewBox:0,viewTarget:0,visibility:0,widths:0,wordSpacing:0,writingMode:0,x:0,xHeight:0,x1:0,x2:0,xChannelSelector:0,xlinkActuate:0,xlinkArcrole:0,xlinkHref:0,xlinkRole:0,xlinkShow:0,xlinkTitle:0,xlinkType:0,xmlBase:0,xmlns:0,xmlnsXlink:0,xmlLang:0,xmlSpace:0,y:0,y1:0,y2:0,yChannelSelector:0,z:0,zoomAndPan:0},DOMAttributeNames:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space"}}},function(e,t){e.exports={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=n(r(88)),s=r(90);t.default=function(e,t){var r={};return e&&"string"==typeof e?(o.default(e,(function(e,n){e&&n&&(r[s.camelCase(e,t)]=n)})),r):r}},function(e,t,r){var n=r(89);e.exports=function(e,t){var r,o=null;if(!e||"string"!=typeof e)return o;for(var s,c,a=n(e),i="function"==typeof t,l=0,u=a.length;l<u;l++)s=(r=a[l]).property,c=r.value,i?t(s,c,r):c&&(o||(o={}),o[s]=c);return o}},function(e,t){var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,s=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,c=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var l=1,d=1;function p(e){var t=e.match(n);t&&(l+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function m(){var e={line:l,column:d};return function(t){return t.position=new f(e),y(),t}}function f(e){this.start=e,this.end={line:l,column:d},this.source=t.source}f.prototype.content=e;var h=[];function b(r){var n=new Error(t.source+":"+l+":"+d+": "+r);if(n.reason=r,n.filename=t.source,n.line=l,n.column=d,n.source=e,!t.silent)throw n;h.push(n)}function g(t){var r=t.exec(e);if(r){var n=r[0];return p(n),e=e.slice(n.length),r}}function y(){g(o)}function E(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return b("End of comment missing");var n=e.slice(2,r-2);return d+=2,p(n),e=e.slice(r),d+=2,t({type:"comment",comment:n})}}function O(){var e=m(),t=g(s);if(t){if(_(),!g(c))return b("property missing ':'");var n=g(a),o=e({type:"declaration",property:u(t[0].replace(r,"")),value:n?u(n[0].replace(r,"")):""});return g(i),o}}return y(),function(){var e,t=[];for(E(t);e=O();)!1!==e&&(t.push(e),E(t));return t}()}},function(e,t,r){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,s=/^[^-]+$/,c=/^-(webkit|moz|ms|o|khtml)-/,a=function(e,t){return t.toUpperCase()},i=function(e,t){return t+"-"};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||s.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),t.reactCompat||(e=e.replace(c,i)),e.replace(o,a))}},function(e,t,r){var n=r(92),o=r(58),s=o.formatDOM,c=o.isIE(9),a=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t,r=e.match(a);return r&&r[1]&&(t=r[1],c&&(e=e.replace(r[0],""))),s(n(e),null,t)}},function(e,t,r){var n=r(58),o=/<([a-zA-Z]+[0-9]?)/,s=/<head.*>/i,c=/<body.*>/i,a=/<(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)(.*?)\/?>/gi,i=n.isIE(9),l=i||n.isIE(),u=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var p=new window.DOMParser,m=i?"text/xml":"text/html";u=d=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),i&&(e=e.replace(a,"<$1$2$3/>")),p.parseFromString(e,m)}}if(document.implementation){var f=document.implementation.createHTMLDocument(l?"html-dom-parser":void 0);u=function(e,t){if(t)return f.documentElement.getElementsByTagName(t)[0].innerHTML=e,f;try{return f.documentElement.innerHTML=e,f}catch(t){if(d)return d(e)}}}var h,b=document.createElement("template");b.content&&(h=function(e){return b.innerHTML=e,b.content.childNodes}),e.exports=function(e){var t,r,n,a,i=e.match(o);switch(i&&i[1]&&(t=i[1].toLowerCase()),t){case"html":return r=d(e),s.test(e)||(n=r.getElementsByTagName("head")[0])&&n.parentNode.removeChild(n),c.test(e)||(n=r.getElementsByTagName("body")[0])&&n.parentNode.removeChild(n),r.getElementsByTagName("html");case"head":case"body":return a=u(e).getElementsByTagName(t),c.test(e)&&s.test(e)?a[0].parentNode.childNodes:a;default:return h?h(e):u(e,"body").getElementsByTagName("body")[0].childNodes}}},function(e,t){e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return a}));var n=r(3);let o;!function(e){e.ADD_EVENT_CALLBACK="add_event_callback",e.REMOVE_EVENT_CALLBACK="remove_event_callback"}(o||(o={}));const s={addEventCallback:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:Object(n.uniqueId)(),type:o.ADD_EVENT_CALLBACK,eventType:e,callback:t,priority:r}},removeEventCallback:(e,t)=>({id:t,type:o.REMOVE_EVENT_CALLBACK,eventType:e})},c={},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,{type:t,eventType:r,id:n,callback:s,priority:a}=arguments.length>1?arguments[1]:void 0;const i=e.hasOwnProperty(r)?new Map(e[r]):new Map;switch(t){case o.ADD_EVENT_CALLBACK:return i.set(n,{priority:a,callback:s}),{...e,[r]:i};case o.REMOVE_EVENT_CALLBACK:return i.delete(n),{...e,[r]:i}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return c}));var n=r(1),o=r(17);const s=async e=>{if("function"==typeof e.json)try{const t=await e.json();return{message:t.message,type:t.type||"api"}}catch(e){return{message:e.message,type:"general"}}return{message:e.message,type:e.type||"general"}},c=e=>{if(e.data&&"rest_invalid_param"===e.code){const t=Object.values(e.data.params);if(t[0])return t[0]}return null!=e&&e.message?Object(o.decodeEntities)(e.message):Object(n.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block")}},function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(12)),s=n(r(128)),c=r(5),a=n(c),i=n(r(129)),l=n(r(131)),u={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(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var r;for(r in e)if(!(r in t))return!1;for(r in t)if(e[r]!==t[r])return!1;return!u.und(r)||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 u.und(e)||u.nul(e)?t:e}function m(e){return u.und(e)?[]:u.arr(e)?e:[e]}function f(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return u.fun(e)?e.apply(void 0,r):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,s(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return o({to:t},e);var r=Object.keys(e).reduce((function(r,n){var s;return u.und(t[n])?o({},r,((s={})[n]=e[n],s)):r}),{});return o({to:t},r)}var b,g,y=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),E=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.addChild(l(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.removeChild(l(t))}))},t}return i(t,e),t}(y),_=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&e.addChild(l(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&e.removeChild(l(t))}))},t}i(t,e);var r=t.prototype;return r.getValue=function(e){void 0===e&&(e=!1);var t={};for(var r in this.payload){var n=this.payload[r];(!e||n instanceof y)&&(t[r]=n instanceof y?n[e?"getAnimatedValue":"getValue"]():n)}return t},r.getAnimatedValue=function(){return this.getValue(!0)},t}(y);function O(e,t){b={fn:e,transform:t}}function v(e){g=e}var k,S=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},w=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function j(e){k=e}var C,R=function(){return Date.now()};function T(e){C=e}var x,A,P=function(e){return e.current};function M(e){x=e}var N=Object.freeze({get applyAnimatedValues(){return b},injectApplyAnimatedValues:O,get colorNames(){return g},injectColorNames:v,get requestFrame(){return S},get cancelFrame(){return w},injectFrame:function(e,t){S=e,w=t},get interpolation(){return k},injectStringInterpolator:j,get now(){return R},injectNow:function(e){R=e},get defaultElement(){return C},injectDefaultElement:T,get animatedApi(){return P},injectAnimatedApi:function(e){P=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:M,get manualFrameloop(){return A},injectManualFrameloop:function(e){A=e}}),I=function(e){function t(t,r){var n;return(n=e.call(this)||this).update=void 0,n.payload=t.style?o({},t,{style:x(t.style)}):t,n.update=r,n.attach(),n}return i(t,e),t}(_),D=!1,L=new Set,F=function e(){if(!D)return!1;var t=R(),r=L,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var s;if(n){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}for(var c=s,a=!1,i=0;i<c.configs.length;i++){for(var l=c.configs[i],u=void 0,d=void 0,p=0;p<l.animatedValues.length;p++){var m=l.animatedValues[p];if(!m.done){var f=l.fromValues[p],h=l.toValues[p],b=m.lastPosition,g=h instanceof y,E=Array.isArray(l.initialVelocity)?l.initialVelocity[p]:l.initialVelocity;if(g&&(h=h.getValue()),l.immediate)m.setValue(h),m.done=!0;else if("string"!=typeof f&&"string"!=typeof h){if(void 0!==l.duration)b=f+l.easing((t-m.startTime)/l.duration)*(h-f),u=t>=m.startTime+l.duration;else if(l.decay)b=f+E/(1-.998)*(1-Math.exp(-(1-.998)*(t-m.startTime))),(u=Math.abs(m.lastPosition-b)<.1)&&(h=b);else{d=void 0!==m.lastTime?m.lastTime:t,E=void 0!==m.lastVelocity?m.lastVelocity:l.initialVelocity,t>d+64&&(d=t);for(var _=Math.floor(t-d),O=0;O<_;++O)b+=1*(E+=(-l.tension*(b-h)+-l.friction*E)/l.mass*1/1e3)/1e3;var v=!(!l.clamp||0===l.tension)&&(f<h?b>h:b<h),k=Math.abs(E)<=l.precision,w=0===l.tension||Math.abs(h-b)<=l.precision;u=v||k&&w,m.lastVelocity=E,m.lastTime=t}g&&!l.toValues[p].done&&(u=!1),u?(m.value!==h&&(b=h),m.done=!0):a=!0,m.setValue(b),m.lastPosition=b}else m.setValue(h),m.done=!0}}c.props.onFrame&&(c.values[l.name]=l.interpolation.getValue())}c.props.onFrame&&c.props.onFrame(c.values),a||(L.delete(c),c.stop(!0))}return L.size?A?A():S(e):D=!1,D};function U(e,t,r){if("function"==typeof e)return e;if(Array.isArray(e))return U({range:e,output:t,extrapolate:r});if(k&&"string"==typeof e.output[0])return k(e);var n=e,o=n.output,s=n.range||[0,1],c=n.extrapolateLeft||n.extrapolate||"extend",a=n.extrapolateRight||n.extrapolate||"extend",i=n.easing||function(e){return e};return function(e){var t=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(e,s);return function(e,t,r,n,o,s,c,a,i){var l=i?i(e):e;if(l<t){if("identity"===c)return l;"clamp"===c&&(l=t)}if(l>r){if("identity"===a)return l;"clamp"===a&&(l=r)}return n===o?n:t===r?e<=t?n:o:(t===-1/0?l=-l:r===1/0?l-=t:l=(l-t)/(r-t),l=s(l),n===-1/0?l=-l:o===1/0?l+=n:l=l*(o-n)+n,l)}(e,s[t],s[t+1],o[t],o[t+1],i,c,a,n.map)}}var V=function(e){function t(r,n,o,s){var c;return(c=e.call(this)||this).calc=void 0,c.payload=r instanceof E&&!(r instanceof t)?r.getPayload():Array.isArray(r)?r:[r],c.calc=U(n,o,s),c}i(t,e);var r=t.prototype;return r.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},r.updateConfig=function(e,t,r){this.calc=U(e,t,r)},r.interpolate=function(e,r,n){return new t(this,e,r,n)},t}(E),B=function(e){function t(t){var r;return(r=e.call(this)||this).animatedStyles=new Set,r.value=void 0,r.startPosition=void 0,r.lastPosition=void 0,r.lastVelocity=void 0,r.startTime=void 0,r.lastTime=void 0,r.done=!1,r.setValue=function(e,t){void 0===t&&(t=!0),r.value=e,t&&r.flush()},r.value=t,r.startPosition=t,r.lastPosition=t,r}i(t,e);var r=t.prototype;return r.flush=function(){0===this.animatedStyles.size&&function e(t,r){"update"in t?r.add(t):t.getChildren().forEach((function(t){return e(t,r)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},r.clearStyles=function(){this.animatedStyles.clear()},r.getValue=function(){return this.value},r.interpolate=function(e,t,r){return new V(this,e,t,r)},t}(y),H=function(e){function t(t){var r;return(r=e.call(this)||this).payload=t.map((function(e){return new B(e)})),r}i(t,e);var r=t.prototype;return r.setValue=function(e,t){var r=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,n){return r.payload[n].setValue(e,t)})):this.payload.forEach((function(r){return r.setValue(e,t)}))},r.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},r.interpolate=function(e,t){return new V(this,e,t)},t}(E),z=0,G=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=z++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),r=t.delay,n=void 0===r?0:r,c=t.to,a=s(t,["delay","to"]);if(u.arr(c)||u.fun(c))this.queue.push(o({},a,{delay:n,to:c}));else if(c){var i={};Object.entries(c).forEach((function(e){var t,r=e[0],s=e[1],c=o({to:(t={},t[r]=s,t),delay:f(n,r)},a),l=i[c.delay]&&i[c.delay].to;i[c.delay]=o({},i[c.delay],c,{to:o({},l,c.to)})})),this.queue=Object.values(i)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var r=e.from,n=void 0===r?{}:r,s=e.to,c=void 0===s?{}:s;u.obj(n)&&(t.merged=o({},n,t.merged)),u.obj(c)&&(t.merged=o({},t.merged,c))}));var r=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach((function(o,c){var a=o.delay,i=s(o,["delay"]),l=function(o){c===n.length-1&&r===t.guid&&o&&(t.idle=!0,t.props.onRest&&t.props.onRest(t.merged)),e&&e()},d=u.arr(i.to)||u.fun(i.to);a?setTimeout((function(){r===t.guid&&(d?t.runAsync(i,l):t.diff(i).start(l))}),a):d?t.runAsync(i,l):t.diff(i).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),this,L.has(this)||L.add(this),D||(D=!0,S(A||F));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){return this.stop(!0),e&&(this,L.has(this)&&L.delete(this)),this},t.runAsync=function(e,t){var r=this,n=(e.delay,s(e,["delay"])),c=this.local,a=Promise.resolve(void 0);if(u.arr(n.to))for(var i=function(e){var t=e,s=o({},n,h(n.to[t]));u.arr(s.config)&&(s.config=s.config[t]),a=a.then((function(){if(c===r.guid)return new Promise((function(e){return r.diff(s).start(e)}))}))},l=0;l<n.to.length;l++)i(l);else if(u.fun(n.to)){var d,p=0;a=a.then((function(){return n.to((function(e){var t=o({},n,h(e));if(u.arr(t.config)&&(t.config=t.config[p]),p++,c===r.guid)return d=new Promise((function(e){return r.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),r.stop(e)})).then((function(){return d}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var r=this.props,n=r.from,s=void 0===n?{}:n,c=r.to,a=void 0===c?{}:c,i=r.config,l=void 0===i?{}:i,d=r.reverse,h=r.attach,b=r.reset,y=r.immediate;if(d){var E=[a,s];s=E[0],a=E[1]}this.merged=o({},s,this.merged,a),this.hasChanged=!1;var _=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,r){var n=r[0],c=r[1],a=e[n]||{},i=u.num(c),d=u.str(c)&&!c.startsWith("#")&&!/\d/.test(c)&&!g[c],h=u.arr(c),E=!i&&!h&&!d,O=u.und(s[n])?c:s[n],v=i||h||d?c:1,S=f(l,n);_&&(v=_.animations[n].parent);var w,j=a.parent,C=a.interpolation,T=m(_?v.getPayload():v),x=c;E&&(x=k({range:[0,1],output:[c,c]})(1));var A,P=C&&C.getValue(),M=!u.und(j)&&a.animatedValues.some((function(e){return!e.done})),N=!u.equ(x,P),I=!u.equ(x,a.previous),D=!u.equ(S,a.config);if(b||I&&N||D){var L;if(i||d)j=C=a.parent||new B(O);else if(h)j=C=a.parent||new H(O);else if(E){var F=a.interpolation&&a.interpolation.calc(a.parent.value);F=void 0===F||b?O:F,a.parent?(j=a.parent).setValue(0,!1):j=new B(0);var U={output:[F,c]};a.interpolation?(C=a.interpolation,a.interpolation.updateConfig(U)):C=j.interpolate(U)}return T=m(_?v.getPayload():v),w=m(j.getPayload()),b&&!E&&j.setValue(O,!1),t.hasChanged=!0,w.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=R(),e.done=!1,e.animatedStyles.clear()})),f(y,n)&&j.setValue(E?v:c,!1),o({},e,((L={})[n]=o({},a,{name:n,parent:j,interpolation:C,animatedValues:w,toValues:T,previous:x,config:S,fromValues:m(j.getValue()),immediate:f(y,n),initialVelocity:p(S.velocity,0),clamp:p(S.clamp,!1),precision:p(S.precision,.01),tension:p(S.tension,170),friction:p(S.friction,26),mass:p(S.mass,1),duration:S.duration,easing:p(S.easing,(function(e){return e})),decay:S.decay}),L))}return N?e:(E&&(j.setValue(1,!1),C.updateConfig({output:[x,x]})),j.done=!0,t.hasChanged=!0,o({},e,((A={})[n]=o({},e[n],{previous:x}),A)))}),this.animations),this.hasChanged)for(var O in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[O]=this.animations[O].interpolation,this.values[O]=this.animations[O].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),q=function(e,t){var r=c.useRef(!1),n=c.useRef(),o=u.fun(t),s=c.useMemo((function(){var r;return n.current&&(n.current.map((function(e){return e.destroy()})),n.current=void 0),[new Array(e).fill().map((function(e,n){var s=new G,c=o?f(t,n,s):t[n];return 0===n&&(r=c.ref),s.update(c),r||s.start(),s})),r]}),[e]),a=s[0],i=s[1];n.current=a,c.useImperativeHandle(i,(function(){return{start:function(){return Promise.all(n.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return n.current.forEach((function(t){return t.stop(e)}))},get controllers(){return n.current}}}));var l=c.useMemo((function(){return function(e){return n.current.map((function(t,r){t.update(o?f(e,r,t):e[r]),i||t.start()}))}}),[e]);c.useEffect((function(){r.current?o||l(t):i||n.current.forEach((function(e){return e.start()}))})),c.useEffect((function(){return r.current=!0,function(){return n.current.forEach((function(e){return e.destroy()}))}}),[]);var d=n.current.map((function(e){return e.getValues()}));return o?[d,l,function(e){return n.current.forEach((function(t){return t.pause(e)}))}]:d},Y=0,$=function(e,t){return("function"==typeof t?e.map(t):m(t)).map(String)},W=function(e){var t=e.items,r=e.keys,n=void 0===r?function(e){return e}:r,c=s(e,["items","keys"]);return t=m(void 0!==t?t:null),o({items:t,keys:$(t,n)},c)};function K(e,t){var r=function(){if(o){if(s>=n.length)return"break";c=n[s++]}else{if((s=n.next()).done)return"break";c=s.value}var r=c.key,a=function(e){return e.key!==r};(u.und(t)||t===r)&&(e.current.instances.delete(r),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},n=e.current.deleted,o=Array.isArray(n),s=0;for(n=o?n:n[Symbol.iterator]();;){var c;if("break"===r())break}e.current.forceUpdate()}var X=function(e){function t(t){var r;return void 0===t&&(t={}),r=e.call(this)||this,!t.transform||t.transform instanceof y||(t=b.transform(t)),r.payload=t,r}return i(t,e),t}(_),J={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},Q="[-+]?\\d*\\.?\\d+";function Z(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+Z(Q,Q,Q)),te=new RegExp("rgba"+Z(Q,Q,Q,Q)),re=new RegExp("hsl"+Z(Q,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ne=new RegExp("hsla"+Z(Q,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Q)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,se=/^#([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})$/,ae=/^#([0-9a-fA-F]{8})$/;function ie(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function le(e,t,r){var n=r<.5?r*(1+t):r+t-r*t,o=2*r-n,s=ie(o,n,e+1/3),c=ie(o,n,e),a=ie(o,n,e-1/3);return Math.round(255*s)<<24|Math.round(255*c)<<16|Math.round(255*a)<<8}function ue(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 me(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function fe(e){var t,r,n="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(r=ce.exec(t))?parseInt(r[1]+"ff",16)>>>0:J.hasOwnProperty(t)?J[t]:(r=ee.exec(t))?(ue(r[1])<<24|ue(r[2])<<16|ue(r[3])<<8|255)>>>0:(r=te.exec(t))?(ue(r[1])<<24|ue(r[2])<<16|ue(r[3])<<8|pe(r[4]))>>>0:(r=oe.exec(t))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+"ff",16)>>>0:(r=ae.exec(t))?parseInt(r[1],16)>>>0:(r=se.exec(t))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+r[4]+r[4],16)>>>0:(r=re.exec(t))?(255|le(de(r[1]),me(r[2]),me(r[3])))>>>0:(r=ne.exec(t))?(le(de(r[1]),me(r[2]),me(r[3]))|pe(r[4]))>>>0:null;return null===n?e:"rgba("+((4278190080&(n=n||0))>>>24)+", "+((16711680&n)>>>16)+", "+((65280&n)>>>8)+", "+(255&n)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,be=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ge=new RegExp("("+Object.keys(J).join("|")+")","g"),ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ee=["Webkit","Ms","Moz","O"];function _e(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return Ee.forEach((function(r){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(r,t)]=e[t]})),e}),ye);var Oe={};M((function(e){return new X(e)})),T("div"),j((function(e){var t=e.output.map((function(e){return e.replace(be,fe)})).map((function(e){return e.replace(ge,fe)})),r=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return r[t].push(+e)}))}));var n=t[0].match(he).map((function(t,n){return U(o({},e,{output:r[n]}))}));return function(e){var r=0;return t[0].replace(he,(function(){return n[r++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,r,n,o){return"rgba("+Math.round(t)+", "+Math.round(r)+", "+Math.round(n)+", "+o+")"}))}})),v(J),O((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var r=t.style,n=t.children,o=t.scrollTop,c=t.scrollLeft,a=s(t,["style","children","scrollTop","scrollLeft"]),i="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var l in void 0!==o&&(e.scrollTop=o),void 0!==c&&(e.scrollLeft=c),void 0!==n&&(e.textContent=n),r)if(r.hasOwnProperty(l)){var u=0===l.indexOf("--"),d=_e(l,r[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,d):e.style[l]=d}for(var p in a){var m=i?p:Oe[p]||(Oe[p]=p.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(m)&&e.setAttribute(m,a[p])}}),(function(e){return e}));var ve,ke,Se=(ve=function(e){return c.forwardRef((function(t,r){var n=d(),i=c.useRef(!0),l=c.useRef(null),p=c.useRef(null),m=c.useCallback((function(e){var t=l.current;l.current=new I(e,(function(){var e=!1;p.current&&(e=b.fn(p.current,l.current.getAnimatedValue())),p.current&&!1!==e||n()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){i.current=!1,l.current&&l.current.detach()}}),[]),c.useImperativeHandle(r,(function(){return P(p,i,n)})),m(t);var f,h=l.current.getValue(),g=(h.scrollTop,h.scrollLeft,s(h,["scrollTop","scrollLeft"])),y=(f=e,!u.fun(f)||f.prototype instanceof a.Component?function(e){return p.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,r)}:void 0);return a.createElement(e,o({},g,{ref:y}))}))},void 0===(ke=!1)&&(ke=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var r=ke?t[0].toLowerCase()+t.substring(1):t;return e[r]=ve(r),e}),ve)}),we=Se(["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=Se,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=F,t.animated=we,t.a=we,t.interpolate=function(e,t,r){return e&&new V(e,t,r)},t.Globals=N,t.useSpring=function(e){var t=u.fun(e),r=q(1,t?e:[e]),n=r[0],o=r[1],s=r[2];return t?[n[0],o,s]:n},t.useTrail=function(e,t){var r=c.useRef(!1),n=u.fun(t),s=f(t),a=c.useRef(),i=q(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},s,{config:f(s.config,e),attach:e>0&&function(){return a.current[e-1]}})})),l=i[0],d=i[1],p=i[2],m=c.useMemo((function(){return function(e){return d((function(t,r){e.reverse;var n=e.reverse?t+1:t-1,c=a.current[n];return o({},e,{config:f(e.config||s.config,t),attach:c&&function(){return c}})}))}}),[e,s.reverse]);return c.useEffect((function(){r.current&&!n&&m(t)})),c.useEffect((function(){r.current=!0}),[]),n?[l,m,p]:l},t.useTransition=function(e,t,r){var n=o({items:e,keys:t||function(e){return e}},r),a=W(n),i=a.lazy,l=void 0!==i&&i,u=(a.unique,a.reset),p=void 0!==u&&u,m=(a.enter,a.leave,a.update,a.onDestroyed),h=(a.keys,a.items,a.onFrame),b=a.onRest,g=a.onStart,y=a.ref,E=s(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),_=d(),O=c.useRef(!1),v=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!n.ref,instances:!O.current&&new Map,forceUpdate:_});return c.useImperativeHandle(n.ref,(function(){return{start:function(){return Promise.all(Array.from(v.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(v.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(v.current.instances).map((function(e){return e[1]}))}}})),v.current=function(e,t){for(var r=e.first,n=e.prevProps,c=s(e,["first","prevProps"]),a=W(t),i=a.items,l=a.keys,u=a.initial,d=a.from,p=a.enter,m=a.leave,h=a.update,b=a.trail,g=void 0===b?0:b,y=a.unique,E=a.config,_=a.order,O=void 0===_?["enter","leave","update"]:_,v=W(n),k=v.keys,S=v.items,w=o({},c.current),j=[].concat(c.deleted),C=Object.keys(w),R=new Set(C),T=new Set(l),x=l.filter((function(e){return!R.has(e)})),A=c.transitions.filter((function(e){return!e.destroyed&&!T.has(e.originalKey)})).map((function(e){return e.originalKey})),P=l.filter((function(e){return R.has(e)})),M=-g;O.length;)switch(O.shift()){case"enter":x.forEach((function(e,t){y&&j.find((function(t){return t.originalKey===e}))&&(j=j.filter((function(t){return t.originalKey!==e})));var n=l.indexOf(e),o=i[n],s=r&&void 0!==u?"initial":"enter";w[e]={slot:s,originalKey:e,key:y?String(e):Y++,item:o,trail:M+=g,config:f(E,o,s),from:f(r&&void 0!==u?u||{}:d,o),to:f(p,o)}}));break;case"leave":A.forEach((function(e){var t=k.indexOf(e),r=S[t];j.unshift(o({},w[e],{slot:"leave",destroyed:!0,left:k[Math.max(0,t-1)],right:k[Math.min(k.length,t+1)],trail:M+=g,config:f(E,r,"leave"),to:f(m,r)})),delete w[e]}));break;case"update":P.forEach((function(e){var t=l.indexOf(e),r=i[t];w[e]=o({},w[e],{item:r,slot:"update",trail:M+=g,config:f(E,r,"update"),to:f(h,r)})}))}var N=l.map((function(e){return w[e]}));return j.forEach((function(e){var t,r=e.left,n=(e.right,s(e,["left","right"]));-1!==(t=N.findIndex((function(e){return e.originalKey===r})))&&(t+=1),t=Math.max(0,t),N=[].concat(N.slice(0,t),[n],N.slice(t))})),o({},c,{changed:x.length||A.length||P.length,first:r&&0===x.length,transitions:N,current:w,deleted:j,prevProps:t})}(v.current,n),v.current.changed&&v.current.transitions.forEach((function(e){var t=e.slot,r=e.from,n=e.to,s=e.config,c=e.trail,a=e.key,i=e.item;v.current.instances.has(a)||v.current.instances.set(a,new G);var u=v.current.instances.get(a),d=o({},E,{to:n,from:r,config:s,ref:y,onRest:function(r){v.current.mounted&&(e.destroyed&&(y||l||K(v,a),m&&m(i)),!Array.from(v.current.instances).some((function(e){return!e[1].idle}))&&(y||l)&&v.current.deleted.length>0&&K(v),b&&b(i,t,r))},onStart:g&&function(){return g(i,t)},onFrame:h&&function(e){return h(i,t,e)},delay:c,reset:p&&"enter"===t});u.update(d),v.current.paused||u.start()})),c.useEffect((function(){return v.current.mounted=O.current=!0,function(){v.current.mounted=O.current=!1,Array.from(v.current.instances).map((function(e){return e[1].destroy()})),v.current.instances.clear()}}),[]),v.current.transitions.map((function(e){var t=e.item,r=e.slot,n=e.key;return{item:t,key:n,state:r,props:v.current.instances.get(n).getValues()}}))},t.useChain=function(e,t,r){void 0===r&&(r=1e3);var n=c.useRef();c.useEffect((function(){u.equ(e,n.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,n){var s=e.current;if(s){var c=s.controllers;if(c.length){var a=r*t[n];c.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,r){var n=t.current;return e.then((function(){return n.start()}))}),Promise.resolve()),n.current=e}))},t.useSprings=q},,,,,,,,,,,function(e,t){},,,,,function(e,t,r){"use strict";(function(e){var n=r(0),o=r(3),s=r(4),c=r.n(s),a=r(20),i=r(1),l=(r(37),r(42));t.a=Object(n.forwardRef)((function({className:t,children:r,spokenMessage:s=r,politeness:u="polite",actions:d=[],onRemove:p=o.noop,icon:m=null,explicitDismiss:f=!1,onDismiss:h=o.noop},b){function g(e){e&&e.preventDefault&&e.preventDefault(),h(),p()}h=h||o.noop,function(e,t){const r="string"==typeof e?e:Object(n.renderToString)(e);Object(n.useEffect)(()=>{r&&Object(a.speak)(r,t)},[r,t])}(s,u),Object(n.useEffect)(()=>{const e=setTimeout(()=>{f||(h(),p())},1e4);return()=>clearTimeout(e)},[h,p]);const y=c()(t,"components-snackbar",{"components-snackbar-explicit-dismiss":!!f});d&&d.length>1&&(void 0!==e&&e.env,d=[d[0]]);const E=c()("components-snackbar__content",{"components-snackbar__content-with-icon":!!m});return Object(n.createElement)("div",{ref:b,className:y,onClick:f?o.noop:g,tabIndex:"0",role:f?"":"button",onKeyPress:f?o.noop:g,"aria-label":f?"":Object(i.__)("Dismiss this notice")},Object(n.createElement)("div",{className:E},m&&Object(n.createElement)("div",{className:"components-snackbar__icon"},m),r,d.map(({label:e,onClick:t,url:r},o)=>Object(n.createElement)(l.a,{key:o,href:r,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),p(),t&&t(e)}(e,t),className:"components-snackbar__action"},e)),f&&Object(n.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:g,onKeyPress:g},"✕")))}))}).call(this,r(55))},function(e,t){e.exports=window.wp.plugins},,,function(e,t){e.exports=window.wp.wordcount},function(e,t){e.exports=window.wp.autop},function(e,t,r){"use strict";var n=r(0);t.a=function(e){let{icon:t,size:r=24,...o}=e;return Object(n.cloneElement)(t,{width:r,height:r,...o})}},function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return c}));var n=r(48),o=(r(14),r(2));const s=(e,t)=>Object.keys(o.defaultAddressFields).every(r=>e[r]===t[r]),c=e=>{const t=Object.keys(o.defaultAddressFields),r=Object(n.a)(t,{},e.country),s=Object.assign({},e);return r.forEach(t=>{let{key:r="",hidden:n=!1}=t;n&&((e,t)=>e in t)(r,e)&&(s[r]="")}),s}},function(e,t){e.exports=window.wc.wcBlocksSharedHocs},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(12),o=r.n(n),s=r(0),c=r(4),a=r.n(c),i=r(77),l=r(7),u=(r(81),r(60));const d=e=>{let{status:t="default"}=e;switch(t){case"error":return"woocommerce-error";case"success":return"woocommerce-message";case"info":case"warning":return"woocommerce-info"}return""},p=e=>{let{className:t,context:r="default",additionalNotices:n=[]}=e;const{isSuppressed:c}=Object(u.b)(),{notices:p}=Object(l.useSelect)(e=>({notices:e("core/notices").getNotices(r)})),{removeNotice:m}=Object(l.useDispatch)("core/notices"),f=p.filter(e=>"snackbar"!==e.type).concat(n);if(!f.length)return null;const h=a()(t,"wc-block-components-notices");return c?null:Object(s.createElement)("div",{className:h},f.map(e=>Object(s.createElement)(i.a,o()({key:"store-notice-"+e.id},e,{className:a()("wc-block-components-notices__notice",d(e)),onRemove:()=>{e.isDismissible&&m(e.id,r)}}),e.content)))}},,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(0),o=r(51),s=r(2),c=r(62),a=r.n(c),i=r(10),l=r(15);const u=(e,t)=>e&&t[e]?t[e]:null,d=e=>{let{block:t,blockMap:r,blockWrapper:o,children:c,depth:p=1}=e;return c&&0!==c.length?Array.from(c).map((e,c)=>{const{blockName:m="",...f}={key:`${t}_${p}_${c}`,...e instanceof HTMLElement?e.dataset:{},className:e instanceof Element?null==e?void 0:e.className:""},h=u(m,r);if(!h){const s=a()(e instanceof Element&&(null==e?void 0:e.outerHTML)||(null==e?void 0:e.textContent)||"");if("string"==typeof s&&s)return s;if(!Object(n.isValidElement)(s))return null;const c=e.childNodes.length?d({block:t,blockMap:r,children:e.childNodes,depth:p+1,blockWrapper:o}):void 0;return c?Object(n.cloneElement)(s,f,c):Object(n.cloneElement)(s,f)}const b=o||n.Fragment;return Object(n.createElement)(n.Suspense,{key:`${t}_${p}_${c}_suspense`,fallback:Object(n.createElement)("div",{className:"wc-block-placeholder"})},Object(n.createElement)(l.a,{text:"Unexpected error in: "+m,showErrorBlock:s.CURRENT_USER_IS_ADMIN},Object(n.createElement)(b,null,Object(n.createElement)(h,f,d({block:t,blockMap:r,children:e.childNodes,depth:p+1,blockWrapper:o}),((e,t,r,o)=>{if(!Object(i.hasInnerBlocks)(e))return null;const c=r?Array.from(r).map(e=>e instanceof HTMLElement&&(null==e?void 0:e.dataset.blockName)||null).filter(Boolean):[],a=Object(i.getRegisteredBlocks)(e).filter(e=>{let{blockName:t,force:r}=e;return!0===r&&!c.includes(t)}),d=o||n.Fragment;return Object(n.createElement)(n.Fragment,null,a.map((e,r)=>{let{blockName:o,component:c}=e;const a=c||u(o,t);return a?Object(n.createElement)(l.a,{key:o+"_blockerror",text:"Unexpected error in: "+o,showErrorBlock:s.CURRENT_USER_IS_ADMIN},Object(n.createElement)(d,null,Object(n.createElement)(a,{key:`${o}_forced_${r}`}))):null}))})(m,r,e.childNodes,o)))))}):null},p=e=>{let{Block:t,selector:r,blockName:n,getProps:s=(()=>({})),blockMap:c,blockWrapper:a}=e;Object(o.a)({Block:t,selector:r,getProps:(e,t)=>{const r=d({block:n,blockMap:c,children:e.children||[],blockWrapper:a});return{...s(e,t),children:r}}})}},function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(130);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t,n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r.d(t,"a",(function(){return k}));var n=r(0),o=r(113),s=r(2),c=r(15),a=r(207),i=r(68),l=r(49),u=r(36),d=r(1),p=r(27),m=r.n(p),f=r(119),h=r(95),b=r(7);const g=(e,t,r)=>{const n=Object.keys(e).map(t=>({key:t,value:e[t]}),[]),o=`wc-${r}-new-payment-method`;return n.push({key:o,value:t}),n},y=(e,t)=>{m.a.setNonce&&"function"==typeof m.a.setNonce&&m.a.setNonce(e),null!=e&&e.get("User-ID")&&t.setCustomerId(parseInt(e.get("User-ID")||"0",10))};var E=r(200),_=r(32),O=r(60),v=()=>{const{hasError:e,onCheckoutValidationBeforeProcessing:t,dispatchActions:r,redirectUrl:o,isProcessing:s,isBeforeProcessing:c,isComplete:p,orderNotes:v,shouldCreateAccount:k,extensionData:S}=Object(u.b)(),{hasValidationErrors:w}=Object(E.b)(),{shippingErrorStatus:j}=Object(i.b)(),{billingAddress:C,shippingAddress:R}=Object(l.b)(),{cartNeedsPayment:T,cartNeedsShipping:x,receiveCart:A}=Object(_.a)(),{activePaymentMethod:P,isExpressPaymentMethodActive:M,currentStatus:N,paymentMethodData:I,expressPaymentMethods:D,paymentMethods:L,shouldSavePayment:F}=Object(a.b)(),{setIsSuppressed:U}=Object(O.b)(),{createErrorNotice:V,removeNotice:B}=Object(b.useDispatch)("core/notices"),H=Object(n.useRef)(C),z=Object(n.useRef)(R),G=Object(n.useRef)(o),[q,Y]=Object(n.useState)(!1),$=Object(n.useMemo)(()=>{var e;const t={...D,...L};return null==t||null===(e=t[P])||void 0===e?void 0:e.paymentMethodId},[P,D,L]),W=w&&!M||N.hasError||j.hasError,K=!e&&!W&&(N.isSuccessful||!T)&&s;Object(n.useEffect)(()=>{U(M)},[M,U]),Object(n.useEffect)(()=>{W===e||!s&&!c||M||r.setHasError(W)},[W,e,s,c,M,r]),Object(n.useEffect)(()=>{H.current=C,z.current=R,G.current=o},[C,R,o]);const X=Object(n.useCallback)(()=>!w&&(N.hasError?{errorMessage:Object(d.__)("There was a problem with your payment option.","woo-gutenberg-products-block")}:!j.hasError||{errorMessage:Object(d.__)("There was a problem with your shipping option.","woo-gutenberg-products-block")}),[w,N.hasError,j.hasError]);Object(n.useEffect)(()=>{let e;return M||(e=t(X,0)),()=>{M||e()}},[t,X,M]),Object(n.useEffect)(()=>{G.current&&(window.location.href=G.current)},[p]);const J=Object(n.useCallback)(async()=>{if(q)return;Y(!0),B("checkout");const e=T?{payment_method:$,payment_data:g(I,F,P)}:{},t={billing_address:Object(f.a)(H.current),customer_note:v,create_account:k,...e,extensions:{...S}};x&&(t.shipping_address=Object(f.a)(z.current)),m()({path:"/wc/store/v1/checkout",method:"POST",data:t,cache:"no-store",parse:!1}).then(e=>{if(y(e.headers,r),!e.ok)throw new Error(e);return e.json()}).then(e=>{r.setAfterProcessing(e),Y(!1)}).catch(e=>{try{null!=e&&e.headers&&y(e.headers,r),e.json().then(e=>{var t,n,o;null!==(t=e.data)&&void 0!==t&&t.cart&&A(e.data.cart),V(Object(h.b)(e),{id:"checkout",context:"wc/checkout"}),null==e||null===(n=e.additional_errors)||void 0===n||null===(o=n.forEach)||void 0===o||o.call(n,e=>{V(e.message,{id:e.error_code,context:"wc/checkout"})}),r.setAfterProcessing(e)})}catch{var t;V(Object(d.sprintf)(// Translators: %s Error text.
|
4 |
Object(d.__)("%s Please try placing your order again.","woo-gutenberg-products-block"),null!==(t=null==e?void 0:e.message)&&void 0!==t?t:Object(d.__)("Something went wrong.","woo-gutenberg-products-block")),{id:"checkout",context:"wc/checkout"})}r.setHasError(!0),Y(!1)})},[q,B,T,$,I,F,P,v,k,S,x,r,V,A]);return Object(n.useEffect)(()=>{K&&!q&&J()},[J,K,q]),null};const k=e=>{let{children:t,isCart:r=!1,redirectUrl:d}=e;return Object(n.createElement)(u.a,{redirectUrl:d,isCart:r},Object(n.createElement)(l.a,null,Object(n.createElement)(i.a,null,Object(n.createElement)(a.a,null,t,Object(n.createElement)(c.a,{renderError:s.CURRENT_USER_IS_ADMIN?null:()=>null},Object(n.createElement)(o.PluginArea,{scope:"woocommerce-checkout"})),Object(n.createElement)(v,null)))))}},,,,,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return s}));var n=r(0);const o=Object(n.createContext)({allowCreateAccount:!1,showCompanyField:!1,showApartmentField:!1,showPhoneField:!1,requireCompanyField:!1,requirePhoneField:!1,showOrderNotes:!0,showPolicyLinks:!0,showReturnToCart:!0,cartPageId:0,showRateAfterTaxName:!1}),s=(Object(n.createContext)({addressFieldControls:()=>null,accountControls:()=>null}),()=>Object(n.useContext)(o))},,,,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=(e,t)=>{const r=[];return Object.keys(e).forEach(n=>{if(void 0!==t[n])switch(e[n].type){case"boolean":r[n]="false"!==t[n]&&!1!==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}},,,,,,,,,,,,,,,,,,,,,,function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-actions-block","version":"1.0.0","title":"Actions","description":"Allow customers to place their order.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-billing-address-block","version":"1.0.0","title":"Billing Address","description":"Collect your customer\'s billing address.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-contact-information-block","version":"1.0.0","title":"Contact Information","description":"Collect your customer\'s contact information.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-express-payment-block","version":"1.0.0","title":"Express Checkout","description":"Provide an express payment option for your customers.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-fields-block","version":"1.0.0","title":"Checkout Fields","description":"Column containing checkout address fields.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-note-block","version":"1.0.0","title":"Order Note","description":"Allow customers to add a note to their order.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":false,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-payment-block","version":"1.0.0","title":"Payment Options","description":"Payment options for your store.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-shipping-address-block","version":"1.0.0","title":"Shipping Address","description":"Collect your customer\'s shipping address.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-shipping-methods-block","version":"1.0.0","title":"Shipping Options","description":"Shipping options for your store.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-terms-block","version":"1.0.0","title":"Terms and Conditions","description":"Ensure customers agree to your terms and conditions and privacy policy.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"checkbox":{"type":"boolean","default":false},"text":{"type":"string","required":false}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-totals-block","version":"1.0.0","title":"Checkout Totals","description":"Column containing the checkout totals.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"className":{"type":"string","default":""},"checkbox":{"type":"boolean","default":false},"text":{"type":"string","required":false}},"parent":["woocommerce/checkout"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-block","version":"1.0.0","title":"Order Summary","description":"Show customers a summary of their order.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"lock":{"type":"object","default":{"remove":true}}},"parent":["woocommerce/checkout-totals-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-subtotal-block","version":"1.0.0","title":"Subtotal","description":"Shows the cart subtotal row.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-fee-block","version":"1.0.0","title":"Fees","description":"Shows the cart fee row.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-discount-block","version":"1.0.0","title":"Discount","description":"Shows the cart discount row.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-shipping-block","version":"1.0.0","title":"Shipping","description":"Shows the cart shipping row.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-coupon-form-block","version":"1.0.0","title":"Coupon Form","description":"Shows the apply coupon form.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":false,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-taxes-block","version":"1.0.0","title":"Taxes","description":"Shows the cart taxes row.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-cart-items-block","version":"1.0.0","title":"Cart Items","description":"Shows cart items.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout","version":"1.0.0","title":"Checkout","description":"Display a checkout form so your customers can submit orders.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":["wide"],"html":false,"multiple":false},"attributes":{"isPreview":{"type":"boolean","default":false,"save":false},"showCompanyField":{"type":"boolean","default":false},"requireCompanyField":{"type":"boolean","default":false},"allowCreateAccount":{"type":"boolean","default":false},"showApartmentField":{"type":"boolean","default":true},"showPhoneField":{"type":"boolean","default":true},"requirePhoneField":{"type":"boolean","default":false}},"textdomain":"woo-gutenberg-products-block","apiVersion":2}')},,,,,,,,,,,,function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return l}));var n=r(0),o=r(3),s=r(11),c=r.n(s);const a=Object(n.createContext)({getValidationError:()=>"",setValidationErrors:e=>{},clearValidationError:e=>{},clearAllValidationErrors:()=>{},hideValidationError:()=>{},showValidationError:()=>{},showAllValidationErrors:()=>{},hasValidationErrors:!1,getValidationErrorId:e=>e}),i=()=>Object(n.useContext)(a),l=e=>{let{children:t}=e;const[r,s]=Object(n.useState)({}),i=Object(n.useCallback)(e=>r[e],[r]),l=Object(n.useCallback)(e=>{const t=r[e];return!t||t.hidden?"":"validate-error-"+e},[r]),u=Object(n.useCallback)(e=>{s(t=>{if(!t[e])return t;const{[e]:r,...n}=t;return n})},[]),d=Object(n.useCallback)(()=>{s({})},[]),p=Object(n.useCallback)(e=>{e&&s(t=>(e=Object(o.pickBy)(e,(e,r)=>!("string"!=typeof e.message||t.hasOwnProperty(r)&&c()(t[r],e))),0===Object.values(e).length?t:{...t,...e}))},[]),m=Object(n.useCallback)((e,t)=>{s(r=>{if(!r.hasOwnProperty(e))return r;const n={...r[e],...t};return c()(r[e],n)?r:{...r,[e]:n}})},[]),f={getValidationError:i,setValidationErrors:p,clearValidationError:u,clearAllValidationErrors:d,hideValidationError:Object(n.useCallback)(e=>{m(e,{hidden:!0})},[m]),showValidationError:Object(n.useCallback)(e=>{m(e,{hidden:!1})},[m]),showAllValidationErrors:Object(n.useCallback)(()=>{s(e=>{const t={};return Object.keys(e).forEach(r=>{e[r].hidden&&(t[r]={...e[r],hidden:!1})}),0===Object.values(t).length?e:{...e,...t}})},[]),hasValidationErrors:Object.keys(r).length>0,getValidationErrorId:l};return Object(n.createElement)(a.Provider,{value:f},t)}},,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(94);const o=(e,t)=>function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;const s=n.a.addEventCallback(e,r,o);return t(s),()=>{t(n.a.removeEventCallback(e,s.id))}}},function(e,t){},function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return c}));const n=(e,t)=>e[t]?Array.from(e[t].values()).sort((e,t)=>e.priority-t.priority):[];var o=r(30);const s=async(e,t,r)=>{const o=n(e,t),s=[];for(const e of o)try{const t=await Promise.resolve(e.callback(r));"object"==typeof t&&s.push(t)}catch(e){console.error(e)}return!s.length||s},c=async(e,t,r)=>{const s=[],c=n(e,t);for(const e of c)try{const t=await Promise.resolve(e.callback(r));if("object"!=typeof t||null===t)continue;if(!t.hasOwnProperty("type"))throw new Error("Returned objects from event emitter observers must return an object with a type property");if(Object(o.a)(t)||Object(o.b)(t))return s.push(t),s;s.push(t)}catch(e){return console.error(e),s.push({type:"error"}),s}return s}},function(e,t,r){"use strict";r.d(t,"b",(function(){return U})),r.d(t,"a",(function(){return V}));var n=r(0),o=r(19),s=r(7);let c,a;!function(e){e.PRISTINE="pristine",e.STARTED="started",e.PROCESSING="processing",e.ERROR="has_error",e.FAILED="failed",e.SUCCESS="success",e.COMPLETE="complete"}(c||(c={})),function(e){e.SET_REGISTERED_PAYMENT_METHODS="set_registered_payment_methods",e.SET_REGISTERED_EXPRESS_PAYMENT_METHODS="set_registered_express_payment_methods",e.SET_SHOULD_SAVE_PAYMENT_METHOD="set_should_save_payment_method",e.SET_ACTIVE_PAYMENT_METHOD="set_active_payment_method"}(a||(a={}));const i={currentStatus:c.PRISTINE,shouldSavePaymentMethod:!1,activePaymentMethod:"",paymentMethodData:{payment_method:""},errorMessage:"",paymentMethods:{},expressPaymentMethods:{}},l={setPaymentStatus:()=>({pristine:()=>{},started:()=>{},processing:()=>{},completed:()=>{},error:e=>{},failed:(e,t)=>{},success:(e,t)=>{}}),currentStatus:{isPristine:!0,isStarted:!1,isProcessing:!1,isFinished:!1,hasError:!1,hasFailed:!1,isSuccessful:!1,isDoingExpressPayment:!1},paymentStatuses:c,paymentMethodData:{},errorMessage:"",activePaymentMethod:"",activeSavedToken:"",setActivePaymentMethod:()=>{},customerPaymentMethods:{},paymentMethods:{},expressPaymentMethods:{},paymentMethodsInitialized:!1,expressPaymentMethodsInitialized:!1,onPaymentProcessing:()=>()=>()=>{},setExpressPaymentError:()=>{},isExpressPaymentMethodActive:!1,setShouldSavePayment:()=>{},shouldSavePayment:!1};var u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,{type:t,paymentMethodData:r,shouldSavePaymentMethod:n=!1,errorMessage:o="",paymentMethods:s={},paymentMethod:l=""}=arguments.length>1?arguments[1]:void 0;switch(t){case c.PRISTINE:return{...i,...e,errorMessage:"",currentStatus:c.PRISTINE};case c.STARTED:return{...e,currentStatus:c.STARTED};case c.ERROR:return e.currentStatus!==c.ERROR?{...e,currentStatus:c.ERROR,errorMessage:o||e.errorMessage}:e;case c.FAILED:return e.currentStatus!==c.FAILED?{...e,currentStatus:c.FAILED,paymentMethodData:r||e.paymentMethodData,errorMessage:o||e.errorMessage}:e;case c.SUCCESS:return e.currentStatus!==c.SUCCESS?{...e,currentStatus:c.SUCCESS,paymentMethodData:r||e.paymentMethodData}:e;case c.PROCESSING:return e.currentStatus!==c.PROCESSING?{...e,currentStatus:c.PROCESSING,errorMessage:""}:e;case c.COMPLETE:return e.currentStatus!==c.COMPLETE?{...e,currentStatus:c.COMPLETE}:e;case a.SET_REGISTERED_PAYMENT_METHODS:return{...e,paymentMethods:s};case a.SET_REGISTERED_EXPRESS_PAYMENT_METHODS:return{...e,expressPaymentMethods:s};case a.SET_SHOULD_SAVE_PAYMENT_METHOD:return{...e,shouldSavePaymentMethod:n};case a.SET_ACTIVE_PAYMENT_METHOD:return{...e,activePaymentMethod:l,paymentMethodData:r||e.paymentMethodData}}},d=r(1),p=r(16),m=r(31),f=r(2),h=r(50),b=r(23),g=r.n(b),y=r(28),E=r(49),_=r(32),O=r(30),v=r(66);const k=(e,t,r,o)=>{const[c,a]=Object(n.useState)(!1),{isEditor:i}=Object(y.a)(),{selectedRates:l}=Object(v.a)(),{billingAddress:u,shippingAddress:p}=Object(E.b)(),b=Object(m.a)(l),O=Object(m.a)(r),k=Object(_.a)(),{cartTotals:S,cartIsLoading:w,cartNeedsShipping:j,paymentRequirements:C}=k,R=Object(n.useRef)({cart:k,cartTotals:S,cartNeedsShipping:j,billingData:u,billingAddress:u,shippingAddress:p,selectedShippingMethods:b,paymentRequirements:C}),{createErrorNotice:T}=Object(s.useDispatch)("core/notices");Object(n.useEffect)(()=>{R.current={cart:k,cartTotals:S,cartNeedsShipping:j,get billingData(){return g()("billingData",{alternative:"billingAddress",plugin:"woocommerce-gutenberg-products-block",link:"https://github.com/woocommerce/woocommerce-blocks/pull/6369"}),this.billingAddress},billingAddress:u,shippingAddress:p,selectedShippingMethods:b,paymentRequirements:C}},[k,S,j,u,p,b,C]);const x=Object(n.useCallback)(async()=>{let r={};const n=e=>{r={...r,[e.name]:e}};for(let e=0;e<O.length;e++){const r=O[e],s=t[r];if(s)try{const e=!!i||await Promise.resolve(s.canMakePayment(R.current));if(e){if("object"==typeof e&&null!==e&&e.error)throw new Error(e.error.message);n(s)}}catch(e){if(f.CURRENT_USER_IS_ADMIN||i){const t=Object(d.sprintf)(
|
1 |
+
!function(e){function t(t){for(var r,o,s=t[0],c=t[1],a=0,l=[];a<s.length;a++)o=s[a],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&l.push(n[o][0]),n[o]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);for(i&&i(t);l.length;)l.shift()()}var r={},n={28:0,7:0,73:0};function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.e=function(e){var t=[],r=n[e];if(0!==r)if(r)t.push(r[2]);else{var s=new Promise((function(t,o){r=n[e]=[t,o]}));t.push(r[2]=s);var c,a=document.createElement("script");a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=function(e){return o.p+""+({0:"vendors--cart-blocks/cart-line-items--cart-blocks/cart-order-summary--cart-blocks/order-summary-shi--c02aad66",1:"vendors--cart-blocks/order-summary-shipping--checkout-blocks/billing-address--checkout-blocks/order--decc3dc6",2:"vendors--cart-blocks/order-summary-shipping--checkout-blocks/billing-address--checkout-blocks/order--5b8feb0b",3:"vendors--cart-blocks/cart-line-items--checkout-blocks/order-summary-cart-items--mini-cart-contents---233ab542",5:"cart-blocks/order-summary-shipping--checkout-blocks/order-summary-shipping",6:"checkout-blocks/billing-address--checkout-blocks/shipping-address",29:"checkout-blocks/actions",30:"checkout-blocks/billing-address",31:"checkout-blocks/contact-information",32:"checkout-blocks/express-payment",33:"checkout-blocks/fields",34:"checkout-blocks/order-note",35:"checkout-blocks/order-summary",36:"checkout-blocks/order-summary-cart-items",37:"checkout-blocks/order-summary-coupon-form",38:"checkout-blocks/order-summary-discount",39:"checkout-blocks/order-summary-fee",40:"checkout-blocks/order-summary-shipping",41:"checkout-blocks/order-summary-subtotal",42:"checkout-blocks/order-summary-taxes",43:"checkout-blocks/payment",44:"checkout-blocks/shipping-address",45:"checkout-blocks/shipping-methods",46:"checkout-blocks/terms",47:"checkout-blocks/totals"}[e]||e)+"-frontend.js?ver="+{0:"ce589115ee0a038e954e",1:"54ef153108837b49179a",2:"0b35cefad1b5fde9f1e0",3:"2ebcfe3bde817c3021c4",5:"72e1dd08a4ab2d986c1a",6:"07aa817694c8f5a11550",29:"dba47cd50bce5004557d",30:"ce438289b0bcffe71dfd",31:"5478056e04e9c1a79dea",32:"7e13150f35e28234f2a9",33:"b87a2b1b6abb87f55d05",34:"46ff285277e8342f3580",35:"b96a3505b3f59bec7cd7",36:"76c4bb84c36487d5c309",37:"3cb64ac1cde487d1d492",38:"7675fedb78880cf56053",39:"aebd7f1c9d4bed41bf10",40:"88846f10bf76d586b075",41:"90275658736fe8dadb1d",42:"00c5e22719a93b03adbe",43:"a879026b145ee2473111",44:"a330728abac4fab5e3a8",45:"384de3365c3d66e8898c",46:"f14157022109815f94e5",47:"57e931d93a6387b7d118"}[e]}(e);var i=new Error;c=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=n[e];if(0!==r){if(r){var o=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+o+": "+s+")",i.name="ChunkLoadError",i.type=o,i.request=s,r[1](i)}n[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:a})}),12e4);a.onerror=a.onload=c,document.head.appendChild(a)}return Promise.all(t)},o.m=e,o.c=r,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var s=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],c=s.push.bind(s);s.push=t,s=s.slice();for(var a=0;a<s.length;a++)t(s[a]);var i=c;o(o.s=230)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wc.wcSettings},function(e,t){e.exports=window.lodash},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var c=o.apply(null,n);c&&e.push(c)}}else if("object"===s)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wc.wcBlocksData},function(e,t){e.exports=window.wp.data},function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wc.blocksCheckout},function(e,t){e.exports=window.wp.isShallowEqual},function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(this,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.wp.url},function(e,t,r){"use strict";var n=r(18),o=r.n(n),s=r(0),c=r(5),a=r(1),i=r(47),l=e=>{let{imageUrl:t=i.l+"/block-error.svg",header:r=Object(a.__)("Oops!","woo-gutenberg-products-block"),text:n=Object(a.__)("There was an error loading the content.","woo-gutenberg-products-block"),errorMessage:o,errorMessagePrefix:c=Object(a.__)("Error:","woo-gutenberg-products-block"),button:l,showErrorBlock:u=!0}=e;return u?Object(s.createElement)("div",{className:"wc-block-error wc-block-components-error"},t&&Object(s.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:t,alt:""}),Object(s.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},r&&Object(s.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},r),n&&Object(s.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},n),o&&Object(s.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},c?c+" ":"",o),l&&Object(s.createElement)("p",{className:"wc-block-error__button wc-block-components-error__button"},l))):null};r(35);class u extends c.Component{constructor(){super(...arguments),o()(this,"state",{errorMessage:"",hasError:!1})}static getDerivedStateFromError(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:Object(s.createElement)(s.Fragment,null,Object(s.createElement)("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}render(){const{header:e,imageUrl:t,showErrorMessage:r=!0,showErrorBlock:n=!0,text:o,errorMessagePrefix:c,renderError:a,button:i}=this.props,{errorMessage:u,hasError:d}=this.state;return d?"function"==typeof a?a({errorMessage:u}):Object(s.createElement)(l,{showErrorBlock:n,errorMessage:r?u:null,header:e,imageUrl:t,text:o,errorMessagePrefix:c,button:i}):this.props.children}}t.a=u},function(e,t){e.exports=window.wc.wcBlocksRegistry},function(e,t){e.exports=window.wp.htmlEntities},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));const n=e=>!(e=>null===e)(e)&&e instanceof Object&&e.constructor===Object;function o(e,t){return n(e)&&t in e}},function(e,t){e.exports=window.wp.a11y},function(e,t,r){"use strict";(function(e){var n=r(0);r(37);const o=Object(n.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==e&&e.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});t.a=o}).call(this,r(55))},,function(e,t){e.exports=window.wp.deprecated},,,,function(e,t){e.exports=window.wp.apiFetch},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(0);r(7);const o=Object(n.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>{}}),s=()=>Object(n.useContext)(o)},,function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return l})),r.d(t,"d",(function(){return d}));var n=r(19);let o,s;!function(e){e.SUCCESS="success",e.FAIL="failure",e.ERROR="error"}(o||(o={})),function(e){e.PAYMENTS="wc/payment-area",e.EXPRESS_PAYMENTS="wc/express-payment-area"}(s||(s={}));const c=(e,t)=>Object(n.a)(e)&&"type"in e&&e.type===t,a=e=>c(e,o.SUCCESS),i=e=>c(e,o.ERROR),l=e=>c(e,o.FAIL),u=e=>!Object(n.a)(e)||void 0===e.retry||!0===e.retry,d=()=>({responseTypes:o,noticeContexts:s,shouldRetry:u,isSuccessResponse:a,isErrorResponse:i,isFailResponse:l})},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(0),o=r(11),s=r.n(o);function c(e){const t=Object(n.useRef)(e);return s()(e,t.current)||(t.current=e),t.current}},function(e,t,r){"use strict";r.d(t,"a",(function(){return E}));var n=r(3),o=r(0),s=r(6),c=r(7),a=r(17),i=r(119),l=r(28),u=r(70);const d=e=>{const t=e.detail;t&&t.preserveCartData||Object(c.dispatch)(s.CART_STORE_KEY).invalidateResolutionForStore()},p=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},m=()=>{Object(o.useEffect)(()=>((()=>{if(window.wcBlocksStoreCartListeners||(window.wcBlocksStoreCartListeners={count:0,remove:()=>{}}),0===window.wcBlocksStoreCartListeners.count){const e=Object(u.b)("added_to_cart","wc-blocks_added_to_cart"),t=Object(u.b)("removed_from_cart","wc-blocks_removed_from_cart");document.body.addEventListener("wc-blocks_added_to_cart",d),document.body.addEventListener("wc-blocks_removed_from_cart",d),window.wcBlocksStoreCartListeners.count=0,window.wcBlocksStoreCartListeners.remove=()=>{e(),t(),document.body.removeEventListener("wc-blocks_added_to_cart",d),document.body.removeEventListener("wc-blocks_removed_from_cart",d)}}window.wcBlocksStoreCartListeners.count++})(),p),[])},f={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},h={...f,email:""},b={total_items:"",total_items_tax:"",total_fees:"",total_fees_tax:"",total_discount:"",total_discount_tax:"",total_shipping:"",total_shipping_tax:"",total_price:"",total_tax:"",tax_lines:s.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},g=e=>Object.fromEntries(Object.entries(e).map(e=>{let[t,r]=e;return[t,Object(a.decodeEntities)(r)]})),y={cartCoupons:s.EMPTY_CART_COUPONS,cartItems:s.EMPTY_CART_ITEMS,cartFees:s.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:s.EMPTY_CART_ITEM_ERRORS,cartTotals:b,cartIsLoading:!0,cartErrors:s.EMPTY_CART_ERRORS,billingAddress:h,shippingAddress:f,shippingRates:s.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentRequirements:s.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},extensions:s.EMPTY_EXTENSIONS},E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0};const{isEditor:t,previewData:r}=Object(l.a)(),a=null==r?void 0:r.previewCart,{shouldSelect:u}=e,d=Object(o.useRef)();m();const p=Object(c.useSelect)((e,r)=>{let{dispatch:n}=r;if(!u)return y;if(t)return{cartCoupons:a.coupons,cartItems:a.items,cartFees:a.fees,cartItemsCount:a.items_count,cartItemsWeight:a.items_weight,cartNeedsPayment:a.needs_payment,cartNeedsShipping:a.needs_shipping,cartItemErrors:s.EMPTY_CART_ITEM_ERRORS,cartTotals:a.totals,cartIsLoading:!1,cartErrors:s.EMPTY_CART_ERRORS,billingData:h,billingAddress:h,shippingAddress:f,extensions:s.EMPTY_EXTENSIONS,shippingRates:a.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:a.has_calculated_shipping,paymentRequirements:a.paymentRequirements,receiveCart:"function"==typeof(null==a?void 0:a.receiveCart)?a.receiveCart:()=>{}};const o=e(s.CART_STORE_KEY),c=o.getCartData(),l=o.getCartErrors(),d=o.getCartTotals(),p=!o.hasFinishedResolution("getCartData"),m=o.isCustomerDataUpdating(),{receiveCart:b}=n(s.CART_STORE_KEY),E=g(c.billingAddress),_=c.needsShipping?g(c.shippingAddress):E,O=c.fees.length>0?c.fees.map(e=>g(e)):s.EMPTY_CART_FEES;return{cartCoupons:c.coupons.length>0?c.coupons.map(e=>({...e,label:e.code})):s.EMPTY_CART_COUPONS,cartItems:c.items,cartFees:O,cartItemsCount:c.itemsCount,cartItemsWeight:c.itemsWeight,cartNeedsPayment:c.needsPayment,cartNeedsShipping:c.needsShipping,cartItemErrors:c.errors,cartTotals:d,cartIsLoading:p,cartErrors:l,billingData:Object(i.a)(E),billingAddress:Object(i.a)(E),shippingAddress:Object(i.a)(_),extensions:c.extensions,shippingRates:c.shippingRates,isLoadingRates:m,cartHasCalculatedShipping:c.hasCalculatedShipping,paymentRequirements:c.paymentRequirements,receiveCart:b}},[u]);return d.current&&Object(n.isEqual)(d.current,p)||(d.current=p),d.current}},function(e,t,r){"use strict";var n=r(4),o=r.n(n),s=r(0);t.a=Object(s.forwardRef)((function({as:e="div",className:t,...r},n){return function({as:e="div",...t}){return"function"==typeof t.children?t.children(t):Object(s.createElement)(e,t)}({as:e,className:o()("components-visually-hidden",t),...r,ref:n})}))},,function(e,t){},function(e,t,r){"use strict";r.d(t,"b",(function(){return A})),r.d(t,"a",(function(){return P}));var n=r(0),o=r(1),s=r(61),c=r(23),a=r.n(c),i=r(52),l=r(19),u=r(7);let d;!function(e){e.SET_IDLE="set_idle",e.SET_PRISTINE="set_pristine",e.SET_REDIRECT_URL="set_redirect_url",e.SET_COMPLETE="set_checkout_complete",e.SET_BEFORE_PROCESSING="set_before_processing",e.SET_AFTER_PROCESSING="set_after_processing",e.SET_PROCESSING_RESPONSE="set_processing_response",e.SET_PROCESSING="set_checkout_is_processing",e.SET_HAS_ERROR="set_checkout_has_error",e.SET_NO_ERROR="set_checkout_no_error",e.SET_CUSTOMER_ID="set_checkout_customer_id",e.SET_ORDER_ID="set_checkout_order_id",e.SET_ORDER_NOTES="set_checkout_order_notes",e.INCREMENT_CALCULATING="increment_calculating",e.DECREMENT_CALCULATING="decrement_calculating",e.SET_SHIPPING_ADDRESS_AS_BILLING_ADDRESS="set_shipping_address_as_billing_address",e.SET_SHOULD_CREATE_ACCOUNT="set_should_create_account",e.SET_EXTENSION_DATA="set_extension_data"}(d||(d={}));const p=()=>({type:d.SET_IDLE}),m=e=>({type:d.SET_REDIRECT_URL,redirectUrl:e}),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:d.SET_COMPLETE,data:e}},h=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:e?d.SET_HAS_ERROR:d.SET_NO_ERROR}};var b=r(2),g=r(119);let y;!function(e){e.PRISTINE="pristine",e.IDLE="idle",e.PROCESSING="processing",e.COMPLETE="complete",e.BEFORE_PROCESSING="before_processing",e.AFTER_PROCESSING="after_processing"}(y||(y={}));const E={order_id:0,customer_id:0,billing_address:{},shipping_address:{},...Object(b.getSetting)("checkoutData",{})||{}},_={redirectUrl:"",status:y.PRISTINE,hasError:!1,calculatingCount:0,orderId:E.order_id,orderNotes:"",customerId:E.customer_id,useShippingAsBilling:Object(g.b)(E.billing_address,E.shipping_address),shouldCreateAccount:!1,processingResponse:null,extensionData:{}},O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,{redirectUrl:t,type:r,customerId:n,orderId:o,orderNotes:s,extensionData:c,useShippingAsBilling:a,shouldCreateAccount:i,data:l}=arguments.length>1?arguments[1]:void 0,u=e;switch(r){case d.SET_PRISTINE:u=_;break;case d.SET_IDLE:u=e.status!==y.IDLE?{...e,status:y.IDLE}:e;break;case d.SET_REDIRECT_URL:u=void 0!==t&&t!==e.redirectUrl?{...e,redirectUrl:t}:e;break;case d.SET_PROCESSING_RESPONSE:u={...e,processingResponse:l};break;case d.SET_COMPLETE:u=e.status!==y.COMPLETE?{...e,status:y.COMPLETE,redirectUrl:"string"==typeof(null==l?void 0:l.redirectUrl)?l.redirectUrl:e.redirectUrl}:e;break;case d.SET_PROCESSING:u=e.status!==y.PROCESSING?{...e,status:y.PROCESSING,hasError:!1}:e,u=!1===u.hasError?u:{...u,hasError:!1};break;case d.SET_BEFORE_PROCESSING:u=e.status!==y.BEFORE_PROCESSING?{...e,status:y.BEFORE_PROCESSING,hasError:!1}:e;break;case d.SET_AFTER_PROCESSING:u=e.status!==y.AFTER_PROCESSING?{...e,status:y.AFTER_PROCESSING}:e;break;case d.SET_HAS_ERROR:u=e.hasError?e:{...e,hasError:!0},u=e.status===y.PROCESSING||e.status===y.BEFORE_PROCESSING?{...u,status:y.IDLE}:u;break;case d.SET_NO_ERROR:u=e.hasError?{...e,hasError:!1}:e;break;case d.INCREMENT_CALCULATING:u={...e,calculatingCount:e.calculatingCount+1};break;case d.DECREMENT_CALCULATING:u={...e,calculatingCount:Math.max(0,e.calculatingCount-1)};break;case d.SET_CUSTOMER_ID:u=void 0!==n?{...e,customerId:n}:e;break;case d.SET_ORDER_ID:u=void 0!==o?{...e,orderId:o}:e;break;case d.SET_SHIPPING_ADDRESS_AS_BILLING_ADDRESS:void 0!==a&&a!==e.useShippingAsBilling&&(u={...e,useShippingAsBilling:a});break;case d.SET_SHOULD_CREATE_ACCOUNT:void 0!==i&&i!==e.shouldCreateAccount&&(u={...e,shouldCreateAccount:i});break;case d.SET_ORDER_NOTES:void 0!==s&&e.orderNotes!==s&&(u={...e,orderNotes:s});break;case d.SET_EXTENSION_DATA:void 0!==c&&e.extensionData!==c&&(u={...e,extensionData:c})}return u!==e&&r!==d.SET_PRISTINE&&u.status===y.PRISTINE&&(u.status=y.IDLE),u};var v=r(17),k=r(94),S=r(204);var w=r(206),j=r(200),C=r(59),R=r(30),T=r(80);const x=Object(n.createContext)({dispatchActions:{resetCheckout:()=>{},setRedirectUrl:e=>{},setHasError:e=>{},setAfterProcessing:e=>{},incrementCalculating:()=>{},decrementCalculating:()=>{},setCustomerId:e=>{},setOrderId:e=>{},setOrderNotes:e=>{},setExtensionData:e=>{}},onSubmit:()=>{},isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,orderNotes:"",customerId:0,onCheckoutAfterProcessingWithSuccess:()=>()=>{},onCheckoutAfterProcessingWithError:()=>()=>{},onCheckoutBeforeProcessing:()=>()=>{},onCheckoutValidationBeforeProcessing:()=>()=>{},hasOrder:!1,isCart:!1,useShippingAsBilling:!1,setUseShippingAsBilling:e=>{},shouldCreateAccount:!1,setShouldCreateAccount:e=>{},extensionData:{}}),A=()=>Object(n.useContext)(x),P=e=>{let{children:t,redirectUrl:r,isCart:c=!1}=e;_.redirectUrl=r;const[b,g]=Object(n.useReducer)(O,_),{setValidationErrors:E}=Object(j.b)(),{createErrorNotice:A}=Object(u.useDispatch)("core/notices"),{dispatchCheckoutEvent:P}=Object(C.a)(),M=b.calculatingCount>0,{isSuccessResponse:N,isErrorResponse:I,isFailResponse:D,shouldRetry:L}=Object(R.d)(),{checkoutNotices:F,paymentNotices:U,expressPaymentNotices:V}=(()=>{const{noticeContexts:e}=Object(R.d)();return{checkoutNotices:Object(u.useSelect)(e=>e("core/notices").getNotices("wc/checkout"),[]),expressPaymentNotices:Object(u.useSelect)(t=>t("core/notices").getNotices(e.EXPRESS_PAYMENTS),[e.EXPRESS_PAYMENTS]),paymentNotices:Object(u.useSelect)(t=>t("core/notices").getNotices(e.PAYMENTS),[e.PAYMENTS])}})(),[B,H]=Object(n.useReducer)(k.b,{}),z=Object(n.useRef)(B),{onCheckoutAfterProcessingWithSuccess:G,onCheckoutAfterProcessingWithError:q,onCheckoutValidationBeforeProcessing:Y}=(e=>Object(n.useMemo)(()=>({onCheckoutAfterProcessingWithSuccess:Object(S.a)("checkout_after_processing_with_success",e),onCheckoutAfterProcessingWithError:Object(S.a)("checkout_after_processing_with_error",e),onCheckoutValidationBeforeProcessing:Object(S.a)("checkout_validation_before_processing",e)}),[e]))(H);Object(n.useEffect)(()=>{z.current=B},[B]);const $=Object(n.useMemo)(()=>function(){return a()("onCheckoutBeforeProcessing",{alternative:"onCheckoutValidationBeforeProcessing",plugin:"WooCommerce Blocks"}),Y(...arguments)},[Y]),W=Object(n.useMemo)(()=>({resetCheckout:()=>{g({type:d.SET_PRISTINE})},setRedirectUrl:e=>{g(m(e))},setHasError:e=>{g(h(e))},incrementCalculating:()=>{g({type:d.INCREMENT_CALCULATING})},decrementCalculating:()=>{g({type:d.DECREMENT_CALCULATING})},setCustomerId:e=>{var t;g((t=e,{type:d.SET_CUSTOMER_ID,customerId:t}))},setOrderId:e=>{g((e=>({type:d.SET_ORDER_ID,orderId:e}))(e))},setOrderNotes:e=>{g((e=>({type:d.SET_ORDER_NOTES,orderNotes:e}))(e))},setExtensionData:e=>{g((e=>({type:d.SET_EXTENSION_DATA,extensionData:e}))(e))},setAfterProcessing:e=>{const t=(e=>{const t={message:"",paymentStatus:"",redirectUrl:"",paymentDetails:{}};return"payment_result"in e&&(t.paymentStatus=e.payment_result.payment_status,t.redirectUrl=e.payment_result.redirect_url,e.payment_result.hasOwnProperty("payment_details")&&Array.isArray(e.payment_result.payment_details)&&e.payment_result.payment_details.forEach(e=>{let{key:r,value:n}=e;t.paymentDetails[r]=Object(v.decodeEntities)(n)})),"message"in e&&(t.message=Object(v.decodeEntities)(e.message)),!t.message&&"data"in e&&"status"in e.data&&e.data.status>299&&(t.message=Object(o.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block")),t})(e);var r;g(m((null==t?void 0:t.redirectUrl)||"")),g((r=t,{type:d.SET_PROCESSING_RESPONSE,data:r})),g({type:d.SET_AFTER_PROCESSING})}}),[]);Object(n.useEffect)(()=>{b.status===y.BEFORE_PROCESSING&&(Object(T.b)("error"),Object(w.a)(z.current,"checkout_validation_before_processing",{}).then(e=>{!0!==e?(Array.isArray(e)&&e.forEach(e=>{let{errorMessage:t,validationErrors:r}=e;A(t,{context:"wc/checkout"}),E(r)}),g(p()),g(h())):g({type:d.SET_PROCESSING})}))},[b.status,E,A,g]);const K=Object(s.a)(b.status),X=Object(s.a)(b.hasError);Object(n.useEffect)(()=>{if((b.status!==K||b.hasError!==X)&&b.status===y.AFTER_PROCESSING){const e={redirectUrl:b.redirectUrl,orderId:b.orderId,customerId:b.customerId,orderNotes:b.orderNotes,processingResponse:b.processingResponse};b.hasError?Object(w.b)(z.current,"checkout_after_processing_with_error",e).then(t=>{const r=(e=>{let t=null;return e.forEach(e=>{if((I(e)||D(e))&&e.message&&Object(i.a)(e.message)){const r=e.messageContext&&Object(i.a)(e.messageContent)?{context:e.messageContext}:void 0;t=e,A(e.message,r)}}),t})(t);if(null!==r)L(r)?g(p()):g(f(r));else{if(!(F.some(e=>"error"===e.status)||V.some(e=>"error"===e.status)||U.some(e=>"error"===e.status))){var n;const t=(null===(n=e.processingResponse)||void 0===n?void 0:n.message)||Object(o.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block");A(t,{id:"checkout",context:"wc/checkout"})}g(p())}}):Object(w.b)(z.current,"checkout_after_processing_with_success",e).then(e=>{let t=null,r=null;if(e.forEach(e=>{N(e)&&(t=e),(I(e)||D(e))&&(r=e)}),t&&!r)g(f(t));else if(Object(l.a)(r)){if(r.message&&Object(i.a)(r.message)){const e=r.messageContext&&Object(i.a)(r.messageContext)?{context:r.messageContext}:void 0;A(r.message,e)}L(r)?g(h(!0)):g(f(r))}else g(f())})}},[b.status,b.hasError,b.redirectUrl,b.orderId,b.customerId,b.orderNotes,b.processingResponse,K,X,W,A,I,D,N,L,F,V,U]);const J={onSubmit:Object(n.useCallback)(()=>{P("submit"),g({type:d.SET_BEFORE_PROCESSING})},[P]),isComplete:b.status===y.COMPLETE,isIdle:b.status===y.IDLE,isCalculating:M,isProcessing:b.status===y.PROCESSING,isBeforeProcessing:b.status===y.BEFORE_PROCESSING,isAfterProcessing:b.status===y.AFTER_PROCESSING,hasError:b.hasError,redirectUrl:b.redirectUrl,onCheckoutBeforeProcessing:$,onCheckoutValidationBeforeProcessing:Y,onCheckoutAfterProcessingWithSuccess:G,onCheckoutAfterProcessingWithError:q,dispatchActions:W,isCart:c,orderId:b.orderId,hasOrder:!!b.orderId,customerId:b.customerId,orderNotes:b.orderNotes,useShippingAsBilling:b.useShippingAsBilling,setUseShippingAsBilling:e=>{return g((t=e,{type:d.SET_SHIPPING_ADDRESS_AS_BILLING_ADDRESS,useShippingAsBilling:t}));var t},shouldCreateAccount:b.shouldCreateAccount,setShouldCreateAccount:e=>{return g((t=e,{type:d.SET_SHOULD_CREATE_ACCOUNT,shouldCreateAccount:t}));var t},extensionData:b.extensionData};return Object(n.createElement)(x.Provider,{value:J},t)}},function(e,t){e.exports=window.wp.warning},function(e,t,r){"use strict";var n=r(8),o=r(0),s=r(13),c=function({icon:e,className:t,...r}){const s=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" ");return Object(o.createElement)("span",Object(n.a)({className:s},r))};t.a=function({icon:e=null,size:t=24,...r}){if("string"==typeof e)return Object(o.createElement)(c,Object(n.a)({icon:e},r));if(Object(o.isValidElement)(e)&&c===e.type)return Object(o.cloneElement)(e,{...r});if("function"==typeof e)return e.prototype instanceof o.Component?Object(o.createElement)(e,{size:t,...r}):e({size:t,...r});if(e&&("svg"===e.type||e.type===s.SVG)){const n={width:t,height:t,...e.props,...r};return Object(o.createElement)(s.SVG,n)}return Object(o.isValidElement)(e)?Object(o.cloneElement)(e,{size:t,...r}):e}},,,function(e,t){e.exports=window.wc.priceFormat},function(e,t,r){"use strict";var n=r(8),o=r(0),s=r(4),c=r.n(s),a=r(3),i=r(23),l=r.n(i),u=r(9),d=r(44),p=r(71),m=r(1);function f(e,t,r){const{defaultView:n}=t,{frameElement:o}=n;if(!o||t===r.ownerDocument)return e;const s=o.getBoundingClientRect();return new n.DOMRect(e.left+s.left,e.top+s.top,e.width,e.height)}let h=0;function b(e){const t=document.scrollingElement||document.body;e&&(h=t.scrollTop);const r=e?"add":"remove";t.classList[r]("lockscroll"),document.documentElement.classList[r]("lockscroll"),e||(t.scrollTop=h)}let g=0;function y(){return Object(o.useEffect)(()=>(0===g&&b(!0),++g,()=>{1===g&&b(!1),--g}),[]),null}var E=r(21);function _(e){const t=Object(o.useContext)(E.a),r=t.slots[e]||{},n=t.fills[e],s=Object(o.useMemo)(()=>n||[],[n]);return{...r,updateSlot:Object(o.useCallback)(r=>{t.updateSlot(e,r)},[e,t.updateSlot]),unregisterSlot:Object(o.useCallback)(r=>{t.unregisterSlot(e,r)},[e,t.unregisterSlot]),fills:s,registerFill:Object(o.useCallback)(r=>{t.registerFill(e,r)},[e,t.registerFill]),unregisterFill:Object(o.useCallback)(r=>{t.unregisterFill(e,r)},[e,t.unregisterFill])}}var O=Object(o.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function v({name:e,children:t,registerFill:r,unregisterFill:n}){const s=(e=>{const{getSlot:t,subscribe:r}=Object(o.useContext)(O),[n,s]=Object(o.useState)(t(e));return Object(o.useEffect)(()=>(s(t(e)),r(()=>{s(t(e))})),[e]),n})(e),c=Object(o.useRef)({name:e,children:t});return Object(o.useLayoutEffect)(()=>(r(e,c.current),()=>n(e,c.current)),[]),Object(o.useLayoutEffect)(()=>{c.current.children=t,s&&s.forceUpdate()},[t]),Object(o.useLayoutEffect)(()=>{e!==c.current.name&&(n(c.current.name,c.current),c.current.name=e,r(e,c.current))},[e]),s&&s.node?(Object(a.isFunction)(t)&&(t=t(s.props.fillProps)),Object(o.createPortal)(t,s.node)):null}var k=e=>Object(o.createElement)(O.Consumer,null,({registerFill:t,unregisterFill:r})=>Object(o.createElement)(v,Object(n.a)({},e,{registerFill:t,unregisterFill:r})));class S extends o.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:r,registerSlot:n}=this.props;e.name!==t&&(r(e.name),n(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:r={},getFills:n}=this.props,s=Object(a.map)(n(t,this),e=>{const t=Object(a.isFunction)(e.children)?e.children(r):e.children;return o.Children.map(t,(e,t)=>{if(!e||Object(a.isString)(e))return e;const r=e.key||t;return Object(o.cloneElement)(e,{key:r})})}).filter(Object(a.negate)(o.isEmptyElement));return Object(o.createElement)(o.Fragment,null,Object(a.isFunction)(e)?e(s):s)}}var w=e=>Object(o.createElement)(O.Consumer,null,({registerSlot:t,unregisterSlot:r,getFills:s})=>Object(o.createElement)(S,Object(n.a)({},e,{registerSlot:t,unregisterSlot:r,getFills:s})));function j(){const[,e]=Object(o.useState)({}),t=Object(o.useRef)(!0);return Object(o.useEffect)(()=>()=>{t.current=!1},[]),()=>{t.current&&e({})}}function C({name:e,children:t}){const r=_(e),n=Object(o.useRef)({rerender:j()});return Object(o.useEffect)(()=>(r.registerFill(n),()=>{r.unregisterFill(n)}),[r.registerFill,r.unregisterFill]),r.ref&&r.ref.current?("function"==typeof t&&(t=t(r.fillProps)),Object(o.createPortal)(t,r.ref.current)):null}var R=Object(o.forwardRef)((function({name:e,fillProps:t={},as:r="div",...s},c){const a=Object(o.useContext)(E.a),i=Object(o.useRef)();return Object(o.useLayoutEffect)(()=>(a.registerSlot(e,i,t),()=>{a.unregisterSlot(e,i)}),[a.registerSlot,a.unregisterSlot,e]),Object(o.useLayoutEffect)(()=>{a.updateSlot(e,t)}),Object(o.createElement)(r,Object(n.a)({ref:Object(u.useMergeRefs)([c,i])},s))}));function T(e){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(k,e),Object(o.createElement)(C,e))}r(11),o.Component;const x=Object(o.forwardRef)(({bubblesVirtually:e,...t},r)=>e?Object(o.createElement)(R,Object(n.a)({},t,{ref:r})):Object(o.createElement)(w,t));function A(e){return"appear"===e?"top":"left"}function P(e,t){const{paddingTop:r,paddingBottom:n,paddingLeft:o,paddingRight:s}=(c=t).ownerDocument.defaultView.getComputedStyle(c);var c;const a=r?parseInt(r,10):0,i=n?parseInt(n,10):0,l=o?parseInt(o,10):0,u=s?parseInt(s,10):0;return{x:e.left+l,y:e.top+a,width:e.width-l-u,height:e.height-a-i,left:e.left+l,right:e.right-u,top:e.top+a,bottom:e.bottom-i}}function M(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function N(e,t,r=""){e.style[t]!==r&&(e.style[t]=r)}function I(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const D=Object(o.forwardRef)(({headerTitle:e,onClose:t,children:r,className:s,noArrow:a=!0,isAlternate:i,position:h="bottom right",range:b,focusOnMount:g="firstElement",anchorRef:E,shouldAnchorIncludePadding:O,anchorRect:v,getAnchorRect:k,expandOnMobile:S,animate:w=!0,onClickOutside:j,onFocusOutside:C,__unstableStickyBoundaryElement:R,__unstableSlotName:x="Popover",__unstableObserveElement:D,__unstableBoundaryParent:L,__unstableForcePosition:F,__unstableForceXAlignment:U,...V},B)=>{const H=Object(o.useRef)(null),z=Object(o.useRef)(null),G=Object(o.useRef)(),q=Object(u.useViewportMatch)("medium","<"),[Y,W]=Object(o.useState)(),K=_(x),X=S&&q,[J,Q]=Object(u.useResizeObserver)();a=X||a,Object(o.useLayoutEffect)(()=>{if(X)return I(G.current,"is-without-arrow",a),I(G.current,"is-alternate",i),M(G.current,"data-x-axis"),M(G.current,"data-y-axis"),N(G.current,"top"),N(G.current,"left"),N(z.current,"maxHeight"),void N(z.current,"maxWidth");const e=()=>{if(!G.current||!z.current)return;let e=function(e,t,r,n=!1,o,s){if(t)return t;if(r){if(!e.current)return;const t=r(e.current);return f(t,t.ownerDocument||e.current.ownerDocument,s)}if(!1!==n){if(!(n&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==n?void 0:n.cloneRange))return f(Object(d.getRectangleFromRange)(n),n.endContainer.ownerDocument,s);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=f(n.getBoundingClientRect(),n.ownerDocument,s);return o?e:P(e,n)}const{top:e,bottom:t}=n,r=e.getBoundingClientRect(),c=t.getBoundingClientRect(),a=f(new window.DOMRect(r.left,r.top,r.width,c.bottom-r.top),e.ownerDocument,s);return o?a:P(a,n)}if(!e.current)return;const{parentNode:c}=e.current,a=c.getBoundingClientRect();return o?a:P(a,c)}(H,v,k,E,O,G.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=G.current;let n,o=0;if(t&&t!==r.body){const r=t.getBoundingClientRect();o=r.top,e=new window.DOMRect(e.left-r.left,e.top-r.top,e.width,e.height)}var s;L&&(n=null===(s=G.current.closest(".popover-slot"))||void 0===s?void 0:s.parentNode);const c=Q.height?Q:z.current.getBoundingClientRect(),{popoverTop:l,popoverLeft:u,xAxis:p,yAxis:b,contentHeight:g,contentWidth:y}=function(e,t,r="top",n,o,s,c,a,i){const[l,u="center",d]=r.split(" "),p=function(e,t,r,n,o,s,c,a){const{height:i}=t;if(o){const t=o.getBoundingClientRect().top+i-c;if(e.top<=t)return{yAxis:r,popoverTop:Math.min(e.bottom,t)}}let l=e.top+e.height/2;"bottom"===n?l=e.bottom:"top"===n&&(l=e.top);const u={popoverTop:l,contentHeight:(l-i/2>0?i/2:l)+(l+i/2>window.innerHeight?window.innerHeight-l:i/2)},d={popoverTop:e.top,contentHeight:e.top-10-i>0?i:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+i>window.innerHeight?window.innerHeight-10-e.bottom:i};let m,f=r,h=null;if(!o&&!a)if("middle"===r&&u.contentHeight===i)f="middle";else if("top"===r&&d.contentHeight===i)f="top";else if("bottom"===r&&p.contentHeight===i)f="bottom";else{f=d.contentHeight>p.contentHeight?"top":"bottom";const e="top"===f?d.contentHeight:p.contentHeight;h=e!==i?e:null}return m="middle"===f?u.popoverTop:"top"===f?d.popoverTop:p.popoverTop,{yAxis:f,popoverTop:m,contentHeight:h}}(e,t,l,d,n,0,s,a);return{...function(e,t,r,n,o,s,c,a,i){const{width:l}=t;"left"===r&&Object(m.isRTL)()?r="right":"right"===r&&Object(m.isRTL)()&&(r="left"),"left"===n&&Object(m.isRTL)()?n="right":"right"===n&&Object(m.isRTL)()&&(n="left");const u=Math.round(e.left+e.width/2),d={popoverLeft:u,contentWidth:(u-l/2>0?l/2:u)+(u+l/2>window.innerWidth?window.innerWidth-u:l/2)};let p=e.left;"right"===n?p=e.right:"middle"===s||i||(p=u);let f=e.right;"left"===n?f=e.left:"middle"===s||i||(f=u);const h={popoverLeft:p,contentWidth:p-l>0?l:p},b={popoverLeft:f,contentWidth:f+l>window.innerWidth?window.innerWidth-f:l};let g,y=r,E=null;if(!o&&!a)if("center"===r&&d.contentWidth===l)y="center";else if("left"===r&&h.contentWidth===l)y="left";else if("right"===r&&b.contentWidth===l)y="right";else{y=h.contentWidth>b.contentWidth?"left":"right";const e="left"===y?h.contentWidth:b.contentWidth;l>window.innerWidth&&(E=window.innerWidth),e!==l&&(y="center",d.popoverLeft=window.innerWidth/2)}if(g="center"===y?d.popoverLeft:"left"===y?h.popoverLeft:b.popoverLeft,c){const e=c.getBoundingClientRect();g=Math.min(g,e.right-l),Object(m.isRTL)()||(g=Math.max(g,0))}return{xAxis:y,popoverLeft:g,contentWidth:E}}(e,t,u,d,n,p.yAxis,c,a,i),...p}}(e,c,h,R,G.current,o,n,F,U);"number"==typeof l&&"number"==typeof u&&(N(G.current,"top",l+"px"),N(G.current,"left",u+"px")),I(G.current,"is-without-arrow",a||"center"===p&&"middle"===b),I(G.current,"is-alternate",i),M(G.current,"data-x-axis",p),M(G.current,"data-y-axis",b),N(z.current,"maxHeight","number"==typeof g?g+"px":""),N(z.current,"maxWidth","number"==typeof y?y+"px":""),W(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))};e();const{ownerDocument:t}=G.current,{defaultView:r}=t,n=r.setInterval(e,500);let o;const s=()=>{r.cancelAnimationFrame(o),o=r.requestAnimationFrame(e)};r.addEventListener("click",s),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);const c=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(E);let l;return c&&c!==t&&(c.defaultView.addEventListener("resize",e),c.defaultView.addEventListener("scroll",e,!0)),D&&(l=new r.MutationObserver(e),l.observe(D,{attributes:!0})),()=>{r.clearInterval(n),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",s),r.cancelAnimationFrame(o),c&&c!==t&&(c.defaultView.removeEventListener("resize",e),c.defaultView.removeEventListener("scroll",e,!0)),l&&l.disconnect()}},[X,v,k,E,O,h,Q,R,D,L]);const Z=(e,r)=>{if("focus-outside"===e&&C)C(r);else if("focus-outside"===e&&j){const e=new window.MouseEvent("click");Object.defineProperty(e,"target",{get:()=>r.relatedTarget}),l()("Popover onClickOutside prop",{since:"5.3",alternative:"onFocusOutside"}),j(e)}else t&&t()},[ee,te]=Object(u.__experimentalUseDialog)({focusOnMount:g,__unstableOnClose:Z,onClose:Z}),re=Object(u.useMergeRefs)([G,ee,B]),ne=Boolean(w&&Y)&&function(e){if("loading"===e.type)return c()("components-animate__loading");const{type:t,origin:r=A(t)}=e;if("appear"===t){const[e,t="center"]=r.split(" ");return c()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?c()("components-animate__slide-in","is-from-"+r):void 0}({type:"appear",origin:Y});let oe=Object(o.createElement)("div",Object(n.a)({className:c()("components-popover",s,ne,{"is-expanded":X,"is-without-arrow":a,"is-alternate":i})},V,{ref:re},te,{tabIndex:"-1"}),X&&Object(o.createElement)(y,null),X&&Object(o.createElement)("div",{className:"components-popover__header"},Object(o.createElement)("span",{className:"components-popover__header-title"},e),Object(o.createElement)($,{className:"components-popover__close",icon:p.a,onClick:t})),Object(o.createElement)("div",{ref:z,className:"components-popover__content"},Object(o.createElement)("div",{style:{position:"relative"}},J,r)));return K.ref&&(oe=Object(o.createElement)(T,{name:x},oe)),E||v?oe:Object(o.createElement)("span",{ref:H},oe)});D.Slot=Object(o.forwardRef)((function({name:e="Popover"},t){return Object(o.createElement)(x,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}));var L=D,F=function({shortcut:e,className:t}){if(!e)return null;let r,n;return Object(a.isString)(e)&&(r=e),Object(a.isObject)(e)&&(r=e.display,n=e.ariaLabel),Object(o.createElement)("span",{className:t,"aria-label":n},r)};const U=Object(o.createElement)("div",{className:"event-catcher"}),V=({eventHandlers:e,child:t,childrenWithPopover:r})=>Object(o.cloneElement)(Object(o.createElement)("span",{className:"disabled-element-wrapper"},Object(o.cloneElement)(U,e),Object(o.cloneElement)(t,{children:r}),","),e),B=({child:e,eventHandlers:t,childrenWithPopover:r})=>Object(o.cloneElement)(e,{...t,children:r}),H=(e,t,r)=>{if(1!==o.Children.count(e))return;const n=o.Children.only(e);"function"==typeof n.props[t]&&n.props[t](r)};var z=function({children:e,position:t,text:r,shortcut:n}){const[s,c]=Object(o.useState)(!1),[i,l]=Object(o.useState)(!1),d=Object(u.useDebounce)(l,700),p=t=>{H(e,"onMouseDown",t),document.addEventListener("mouseup",h),c(!0)},m=t=>{H(e,"onMouseUp",t),document.removeEventListener("mouseup",h),c(!1)},f=e=>"mouseUp"===e?m:"mouseDown"===e?p:void 0,h=f("mouseUp"),b=(t,r)=>n=>{if(H(e,t,n),n.currentTarget.disabled)return;if("focus"===n.type&&s)return;d.cancel();const o=Object(a.includes)(["focus","mouseenter"],n.type);o!==i&&(r?d(o):l(o))},g=()=>{d.cancel(),document.removeEventListener("mouseup",h)};if(Object(o.useEffect)(()=>g,[]),1!==o.Children.count(e))return e;const y={onMouseEnter:b("onMouseEnter",!0),onMouseLeave:b("onMouseLeave"),onClick:b("onClick"),onFocus:b("onFocus"),onBlur:b("onBlur"),onMouseDown:f("mouseDown")},E=o.Children.only(e),{children:_,disabled:O}=E.props;return(O?V:B)({child:E,eventHandlers:y,childrenWithPopover:(({grandchildren:e,isOver:t,position:r,text:n,shortcut:s})=>Object(o.concatChildren)(e,t&&Object(o.createElement)(L,{focusOnMount:!1,position:r,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},n,Object(o.createElement)(F,{className:"components-tooltip__shortcut",shortcut:s}))))({grandchildren:_,isOver:i,position:t,text:r,shortcut:n})})},G=r(38),q=r(33);const Y=["onMouseDown","onClick"];var $=t.a=Object(o.forwardRef)((function(e,t){const{href:r,target:s,isSmall:i,isPressed:u,isBusy:d,isDestructive:p,className:m,disabled:f,icon:h,iconPosition:b="left",iconSize:g,showTooltip:y,tooltipPosition:E,shortcut:_,label:O,children:v,text:k,variant:S,__experimentalIsFocusable:w,describedBy:j,...C}=function({isDefault:e,isPrimary:t,isSecondary:r,isTertiary:n,isLink:o,variant:s,...c}){let a=s;var i,u,d,p,m;return t&&(null!==(i=a)&&void 0!==i||(a="primary")),n&&(null!==(u=a)&&void 0!==u||(a="tertiary")),r&&(null!==(d=a)&&void 0!==d||(a="secondary")),e&&(l()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(p=a)&&void 0!==p||(a="secondary")),o&&(null!==(m=a)&&void 0!==m||(a="link")),{...c,variant:a}}(e),R=c()("components-button",m,{"is-secondary":"secondary"===S,"is-primary":"primary"===S,"is-small":i,"is-tertiary":"tertiary"===S,"is-pressed":u,"is-busy":d,"is-link":"link"===S,"is-destructive":p,"has-text":!!h&&!!v,"has-icon":!!h}),T=f&&!w,x=void 0===r||T?"button":"a",A="a"===x?{href:r,target:s}:{type:"button",disabled:T,"aria-pressed":u};if(f&&w){A["aria-disabled"]=!0;for(const e of Y)C[e]=e=>{e.stopPropagation(),e.preventDefault()}}const P=!T&&(y&&O||_||!!O&&(!v||Object(a.isArray)(v)&&!v.length)&&!1!==y),M=j?Object(a.uniqueId)():null,N=C["aria-describedby"]||M,I=Object(o.createElement)(x,Object(n.a)({},A,C,{className:R,"aria-label":C["aria-label"]||O,"aria-describedby":N,ref:t}),h&&"left"===b&&Object(o.createElement)(G.a,{icon:h,size:g}),k&&Object(o.createElement)(o.Fragment,null,k),h&&"right"===b&&Object(o.createElement)(G.a,{icon:h,size:g}),v);return P?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(z,{text:j||O,shortcut:_,position:E},I),j&&Object(o.createElement)(q.a,null,Object(o.createElement)("span",{id:M},j))):Object(o.createElement)(o.Fragment,null,I,j&&Object(o.createElement)(q.a,null,Object(o.createElement)("span",{id:M},j)))}))},function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.wp.dom},,,function(e,t,r){"use strict";r.d(t,"n",(function(){return s})),r.d(t,"l",(function(){return c})),r.d(t,"k",(function(){return a})),r.d(t,"m",(function(){return i})),r.d(t,"i",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"f",(function(){return d})),r.d(t,"j",(function(){return p})),r.d(t,"c",(function(){return m})),r.d(t,"e",(function(){return f})),r.d(t,"g",(function(){return h})),r.d(t,"a",(function(){return b})),r.d(t,"h",(function(){return g})),r.d(t,"b",(function(){return y}));var n,o=r(2);const s=Object(o.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),c=s.pluginUrl+"images/",a=s.pluginUrl+"build/",i=s.buildPhase,l=null===(n=o.STORE_PAGES.shop)||void 0===n?void 0:n.permalink,u=(o.STORE_PAGES.checkout.id,o.STORE_PAGES.checkout.permalink),d=o.STORE_PAGES.privacy.permalink,p=(o.STORE_PAGES.privacy.title,o.STORE_PAGES.terms.permalink),m=(o.STORE_PAGES.terms.title,o.STORE_PAGES.cart.id,o.STORE_PAGES.cart.permalink),f=o.STORE_PAGES.myaccount.permalink?o.STORE_PAGES.myaccount.permalink:Object(o.getSetting)("wpLoginUrl","/wp-login.php"),h=Object(o.getSetting)("shippingCountries",{}),b=Object(o.getSetting)("allowedCountries",{}),g=Object(o.getSetting)("shippingStates",{}),y=Object(o.getSetting)("allowedStates",{})},function(e,t,r){"use strict";var n=r(2),o=r(1),s=r(72),c=r(52);const a=Object(n.getSetting)("countryLocale",{}),i=e=>{const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.required&&(t.required=e.required),void 0!==e.hidden&&(t.hidden=e.hidden),void 0===e.label||e.optionalLabel||(t.optionalLabel=Object(o.sprintf)(
|
2 |
/* translators: %s Field label. */
|
3 |
Object(o.__)("%s (optional)","woo-gutenberg-products-block"),e.label)),e.priority&&(Object(s.a)(e.priority)&&(t.index=e.priority),Object(c.a)(e.priority)&&(t.index=parseInt(e.priority,10))),e.hidden&&(t.required=!1),t},l=Object.entries(a).map(e=>{let[t,r]=e;return[t,Object.entries(r).map(e=>{let[t,r]=e;return[t,i(r)]}).reduce((e,t)=>{let[r,n]=t;return e[r]=n,e},{})]}).reduce((e,t)=>{let[r,n]=t;return e[r]=n,e},{});t.a=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const o=r&&void 0!==l[r]?l[r]:{};return e.map(e=>({key:e,...n.defaultAddressFields[e]||{},...o[e]||{},...t[e]||{}})).sort((e,t)=>e.index-t.index)}},function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return a}));var n=r(0),o=r(67);const s=Object(n.createContext)({isInitialized:!1,billingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},setBillingAddress:()=>{},setShippingAddress:()=>{}}),c=()=>Object(n.useContext)(s),a=e=>{let{children:t}=e;const r=Object(o.a)();return Object(n.createElement)(s.Provider,{value:r},t)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(5);function o(e,t,r){var o=this,s=Object(n.useRef)(null),c=Object(n.useRef)(0),a=Object(n.useRef)(null),i=Object(n.useRef)([]),l=Object(n.useRef)(),u=Object(n.useRef)(),d=Object(n.useRef)(e),p=Object(n.useRef)(!0);d.current=e;var m=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var f=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,b="maxWait"in r,g=b?Math.max(+r.maxWait||0,t):null;return Object(n.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]),Object(n.useMemo)((function(){var e=function(e){var t=i.current,r=l.current;return i.current=l.current=null,c.current=e,u.current=d.current.apply(r,t)},r=function(e,t){m&&cancelAnimationFrame(a.current),a.current=m?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!p.current)return!1;var r=e-s.current,n=e-c.current;return!s.current||r>=t||r<0||b&&n>=g},y=function(t){return a.current=null,h&&i.current?e(t):(i.current=l.current=null,u.current)},E=function(){var e=Date.now();if(n(e))return y(e);if(p.current){var o=e-s.current,a=e-c.current,i=t-o,l=b?Math.min(i,g-a):i;r(E,l)}},_=function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];var h=Date.now(),g=n(h);if(i.current=d,l.current=o,s.current=h,g){if(!a.current&&p.current)return c.current=s.current,r(E,t),f?e(s.current):u.current;if(b)return r(E,t),e(s.current)}return a.current||r(E,t),u.current};return _.cancel=function(){a.current&&(m?cancelAnimationFrame(a.current):clearTimeout(a.current)),c.current=0,i.current=s.current=l.current=a.current=null},_.isPending=function(){return!!a.current},_.flush=function(){return a.current?y(Date.now()):u.current},_}),[f,b,t,g,h,m])}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(12),o=r.n(n),s=r(0),c=r(15);const a=[".wp-block-woocommerce-cart"],i=e=>{let{Block:t,containers:r,getProps:n=(()=>({})),getErrorBoundaryProps:a=(()=>({}))}=e;0!==r.length&&Array.prototype.forEach.call(r,(e,r)=>{const i=n(e,r),l=a(e,r),u={...e.dataset,...i.attributes||{}};(e=>{let{Block:t,container:r,attributes:n={},props:a={},errorBoundaryProps:i={}}=e;Object(s.render)(Object(s.createElement)(c.a,i,Object(s.createElement)(s.Suspense,{fallback:Object(s.createElement)("div",{className:"wc-block-placeholder"})},t&&Object(s.createElement)(t,o()({},a,{attributes:n})))),r,()=>{r.classList&&r.classList.remove("is-loading")})})({Block:t,container:e,props:i,attributes:u,errorBoundaryProps:l})})},l=e=>{const t=document.body.querySelectorAll(a.join(",")),{Block:r,getProps:n,getErrorBoundaryProps:o,selector:s}=e;(e=>{let{Block:t,getProps:r,getErrorBoundaryProps:n,selector:o,wrappers:s}=e;const c=document.body.querySelectorAll(o);s&&s.length>0&&Array.prototype.filter.call(c,e=>!((e,t)=>Array.prototype.some.call(t,t=>t.contains(e)&&!t.isSameNode(e)))(e,s)),i({Block:t,containers:c,getProps:r,getErrorBoundaryProps:n})})({Block:r,getProps:n,getErrorBoundaryProps:o,selector:s,wrappers:t}),Array.prototype.forEach.call(t,t=>{t.addEventListener("wc-blocks_render_blocks_frontend",()=>{(e=>{let{Block:t,getProps:r,getErrorBoundaryProps:n,selector:o,wrapper:s}=e;const c=s.querySelectorAll(o);i({Block:t,containers:c,getProps:r,getErrorBoundaryProps:n})})({...e,wrapper:t})})})}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>"string"==typeof e},function(e,t){e.exports=window.wp.keycodes},,function(e,t){var r,n,o=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{n="function"==typeof clearTimeout?clearTimeout:c}catch(e){n=c}}();var i,l=[],u=!1,d=-1;function p(){u&&i&&(u=!1,i.length?l=i.concat(l):d=-1,l.length&&m())}function m(){if(!u){var e=a(p);u=!0;for(var t=l.length;t;){for(i=l,l=[];++d<t;)i&&i[d].run();d=-1,t=l.length}i=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===c||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||u||a(m)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){var n=r(83),o=r(57),s=o.setStyleProp,c=n.html,a=n.svg,i=n.isCustomAttribute,l=Object.prototype.hasOwnProperty;e.exports=function(e){var t,r,n,u;e=e||{};var d={};for(t in e)n=e[t],i(t)?d[t]=n:(r=t.toLowerCase(),l.call(c,r)?d[(u=c[r]).propertyName]=!!(u.hasBooleanValue||u.hasOverloadedBooleanValue&&!n)||n:l.call(a,t)?d[(u=a[t]).propertyName]=n:o.PRESERVE_CUSTOM_ATTRIBUTES&&(d[t]=n));return s(e.style,d),d}},function(e,t,r){var n=r(5),o=r(87).default,s={reactCompat:!0},c=n.version.split(".")[0]>=16;e.exports={PRESERVE_CUSTOM_ATTRIBUTES:c,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var r,n,o="function"==typeof t,s={},c={};for(r in e)n=e[r],o&&(s=t(r,n))&&2===s.length?c[s[0]]=s[1]:"string"==typeof n&&(c[n]=r);return c},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){null!=e&&(t.style=o(e,s))}}},function(e,t,r){for(var n,o=r(93).CASE_SENSITIVE_TAG_NAMES,s={},c=0,a=o.length;c<a;c++)n=o[c],s[n.toLowerCase()]=n;function i(e){for(var t,r={},n=0,o=e.length;n<o;n++)r[(t=e[n]).name]=t.value;return r}function l(e){return function(e){return s[e]}(e=e.toLowerCase())||e}e.exports={formatAttributes:i,formatDOM:function e(t,r,n){r=r||null;for(var o,s,c,a=[],u=0,d=t.length;u<d;u++){switch(o=t[u],c={next:null,prev:a[u-1]||null,parent:r},(s=a[u-1])&&(s.next=c),"#"!==o.nodeName[0]&&(c.name=l(o.nodeName),c.attribs={},o.attributes&&o.attributes.length&&(c.attribs=i(o.attributes))),o.nodeType){case 1:"script"===c.name||"style"===c.name?c.type=c.name:c.type="tag",c.children=e(o.childNodes,c);break;case 3:c.type="text",c.data=o.nodeValue;break;case 8:c.type="comment",c.data=o.nodeValue}a.push(c)}return n&&(a.unshift({name:n.substring(0,n.indexOf(" ")).toLowerCase(),data:n,type:"directive",next:a[0]?a[0]:null,prev:null,parent:r}),a[1]&&(a[1].prev=a[0])),a},isIE:function(e){return e?document.documentMode===e:/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(43),o=r(0),s=r(32);const c=()=>{const e=Object(s.a)(),t=Object(o.useRef)(e);return Object(o.useEffect)(()=>{t.current=e},[e]),{dispatchStoreEvent:Object(o.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{Object(n.doAction)("experimental__woocommerce_blocks-"+e,t)}catch(e){console.error(e)}}),[]),dispatchCheckoutEvent:Object(o.useCallback)((function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{Object(n.doAction)("experimental__woocommerce_blocks-checkout-"+e,{...r,storeCart:t.current})}catch(e){console.error(e)}}),[])}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return c}));var n=r(0);const o=Object(n.createContext)({setIsSuppressed:e=>{},isSuppressed:!1}),s=()=>Object(n.useContext)(o),c=e=>{let{children:t}=e;const[r,s]=Object(n.useState)(!1),c={setIsSuppressed:s,isSuppressed:r};return Object(n.createElement)(o.Provider,{value:c},t)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(5);function o(e,t){const r=Object(n.useRef)();return Object(n.useEffect)(()=>{r.current===e||t&&!t(e,r.current)||(r.current=e)},[e,t]),r.current}},function(e,t,r){var n=r(82),o=r(56),s=r(91),c={decodeEntities:!0,lowerCaseAttributeNames:!1};function a(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:n(s(e,(t=t||{}).htmlparser2||c),t)}a.domToReact=n,a.htmlToDOM=s,a.attributesToProps=o,e.exports=a,e.exports.default=a},,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(6),o=r(7),s=r(0),c=r(11),a=r.n(c),i=r(19),l=r(1),u=r(47),d=r(2);const p=[{destination:{address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},package_id:0,name:Object(l.__)("Shipping","woo-gutenberg-products-block"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:Object(l._x)("Beanie with Logo","example product in Cart Block","woo-gutenberg-products-block"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:Object(l._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(l.__)("Free shipping","woo-gutenberg-products-block"),description:"",delivery_time:"",price:"000",taxes:"0",rate_id:"free_shipping:1",instance_id:0,meta_data:[],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(l.__)("Local pickup","woo-gutenberg-products-block"),description:"",delivery_time:"",price:"200",taxes:"0",rate_id:"local_pickup:1",instance_id:1,meta_data:[],method_id:"local_pickup",selected:!1}]}],m=Object(d.getSetting)("displayCartPricesIncludingTax",!1),f={coupons:[],shipping_rates:Object(d.getSetting)("shippingMethodsExist",!1)?p:[],items:[{key:"1",id:1,quantity:2,name:Object(l.__)("Beanie","woo-gutenberg-products-block"),short_description:Object(l.__)("Warm hat for winter","woo-gutenberg-products-block"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-beanie",permalink:"https://example.org",low_stock_remaining:2,backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,images:[{id:10,src:u.l+"previews/beanie.jpg",thumbnail:u.l+"previews/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(l.__)("Color","woo-gutenberg-products-block"),value:Object(l.__)("Yellow","woo-gutenberg-products-block")},{attribute:Object(l.__)("Size","woo-gutenberg-products-block"),value:Object(l.__)("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:m?"12000":"10000",regular_price:m?"12000":"10000",sale_price:m?"12000":"10000",raw_prices:{precision:6,price:m?"12000000":"10000000",regular_price:m?"12000000":"10000000",sale_price:m?"12000000":"10000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"2000",line_subtotal_tax:"400",line_total:"2000",line_total_tax:"400"},extensions:{}},{key:"2",id:2,quantity:1,name:Object(l.__)("Cap","woo-gutenberg-products-block"),short_description:Object(l.__)("Lightweight baseball cap","woo-gutenberg-products-block"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-cap",permalink:"https://example.org",backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,images:[{id:11,src:u.l+"previews/cap.jpg",thumbnail:u.l+"previews/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(l.__)("Color","woo-gutenberg-products-block"),value:Object(l.__)("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:m?"2400":"2000",regular_price:m?"2400":"2000",sale_price:m?"2400":"2000",raw_prices:{precision:6,price:m?"24000000":"20000000",regular_price:m?"24000000":"20000000",sale_price:m?"24000000":"20000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"2000",line_subtotal_tax:"400",line_total:"2000",line_total_tax:"400"},extensions:{}}],fees:[{id:"fee",name:Object(l.__)("Fee","woo-gutenberg-products-block"),totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",total:"100",total_tax:"20",tax_lines:[{name:Object(l.__)("Sales tax","woo-gutenberg-products-block"),rate:"20%",price:"20"}]}}],items_count:3,items_weight:0,needs_payment:!0,needs_shipping:Object(d.getSetting)("shippingEnabled",!0),has_calculated_shipping:!0,shipping_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},billing_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",total_items:"4000",total_items_tax:"800",total_fees:"100",total_fees_tax:"20",total_discount:"0",total_discount_tax:"0",total_shipping:"0",total_shipping_tax:"0",total_tax:"820",total_price:"4920",tax_lines:[{name:Object(l.__)("Sales tax","woo-gutenberg-products-block"),rate:"20%",price:"820"}]},errors:[],payment_requirements:["products"],extensions:{}};var h=r(69);const b=()=>{const{shippingRates:e,needsShipping:t,hasCalculatedShipping:r,isLoadingRates:c}=Object(o.useSelect)(e=>{const t=!!e("core/editor"),r=e(n.CART_STORE_KEY);return{shippingRates:t?f.shipping_rates:r.getShippingRates(),needsShipping:t?f.needs_shipping:r.getNeedsShipping(),hasCalculatedShipping:t?f.has_calculated_shipping:r.getHasCalculatedShipping(),isLoadingRates:!t&&r.isCustomerDataUpdating()}}),{isSelectingRate:l,selectShippingRate:u}=Object(h.a)(),d=Object(s.useRef)({});return Object(s.useEffect)(()=>{const t=(e=>Object.fromEntries(e.map(e=>{var t;let{package_id:r,shipping_rates:n}=e;return[r,null===(t=n.find(e=>e.selected))||void 0===t?void 0:t.rate_id]})))(e);Object(i.a)(t)&&!a()(d.current,t)&&(d.current=t)},[e]),{isSelectingRate:l,selectedRates:d.current,selectShippingRate:u,shippingRates:e,needsShipping:t,hasCalculatedShipping:r,isLoadingRates:c}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(7),o=r(6);const s=()=>{const{customerData:e,isInitialized:t}=Object(n.useSelect)(e=>{const t=e(o.CART_STORE_KEY);return{customerData:t.getCustomerData(),isInitialized:t.hasFinishedResolution("getCartData")}}),{setShippingAddress:r,setBillingAddress:s}=Object(n.useDispatch)(o.CART_STORE_KEY);return{isInitialized:t,billingAddress:e.billingAddress,shippingAddress:e.shippingAddress,setBillingAddress:s,setShippingAddress:r}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return _})),r.d(t,"a",(function(){return O}));var n=r(0);const o={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},s={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"},c={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:()=>null,shippingErrorTypes:o,shippingRates:[],isLoadingRates:!1,selectedRates:[],setSelectedRates:()=>null,shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},setShippingAddress:()=>null,onShippingRateSuccess:()=>null,onShippingRateFail:()=>null,onShippingRateSelectSuccess:()=>null,onShippingRateSelectFail:()=>null,needsShipping:!1},a=(e,t)=>{let{type:r}=t;return Object.values(o).includes(r)?r:e};var i=r(94),l=r(204);const u=e=>({onSuccess:Object(l.a)("shipping_rates_success",e),onFail:Object(l.a)("shipping_rates_fail",e),onSelectSuccess:Object(l.a)("shipping_rate_select_success",e),onSelectFail:Object(l.a)("shipping_rate_select_fail",e)});var d=r(206),p=r(36),m=r(32),f=r(69),h=r(66);const{NONE:b,INVALID_ADDRESS:g,UNKNOWN:y}=o,E=Object(n.createContext)(c),_=()=>Object(n.useContext)(E),O=e=>{let{children:t}=e;const{dispatchActions:r}=Object(p.b)(),{shippingRates:c,isLoadingRates:l,cartErrors:_}=Object(m.a)(),{isSelectingRate:O}=Object(f.a)(),{selectedRates:v}=Object(h.a)(),[k,S]=Object(n.useReducer)(a,b),[w,j]=Object(n.useReducer)(i.b,{}),C=Object(n.useRef)(w),R=Object(n.useMemo)(()=>({onShippingRateSuccess:u(j).onSuccess,onShippingRateFail:u(j).onFail,onShippingRateSelectSuccess:u(j).onSelectSuccess,onShippingRateSelectFail:u(j).onSelectFail}),[j]);Object(n.useEffect)(()=>{C.current=w},[w]),Object(n.useEffect)(()=>{l?r.incrementCalculating():r.decrementCalculating()},[l,r]),Object(n.useEffect)(()=>{O?r.incrementCalculating():r.decrementCalculating()},[O,r]),Object(n.useEffect)(()=>{_.length>0&&_.some(e=>!(!e.code||!Object.values(s).includes(e.code)))?S({type:g}):S({type:b})},[_]);const T=Object(n.useMemo)(()=>({isPristine:k===b,isValid:k===b,hasInvalidAddress:k===g,hasError:k===y||k===g}),[k]);Object(n.useEffect)(()=>{l||0!==c.length&&!T.hasError||Object(d.a)(C.current,"shipping_rates_fail",{hasInvalidAddress:T.hasInvalidAddress,hasError:T.hasError})},[c,l,T.hasError,T.hasInvalidAddress]),Object(n.useEffect)(()=>{!l&&c.length>0&&!T.hasError&&Object(d.a)(C.current,"shipping_rates_success",c)},[c,l,T.hasError]),Object(n.useEffect)(()=>{O||(T.hasError?Object(d.a)(C.current,"shipping_rate_select_fail",{hasError:T.hasError,hasInvalidAddress:T.hasInvalidAddress}):Object(d.a)(C.current,"shipping_rate_select_success",v.current))},[v,O,T.hasError,T.hasInvalidAddress]);const x={shippingErrorStatus:T,dispatchErrorStatus:S,shippingErrorTypes:o,...R};return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(E.Provider,{value:x},t))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(7),o=r(0),s=r(6),c=r(74),a=r(59);const i=()=>{const e=Object(c.a)(),{dispatchCheckoutEvent:t}=Object(a.a)(),{selectShippingRate:r}=Object(n.useDispatch)(s.CART_STORE_KEY);return{selectShippingRate:Object(o.useCallback)((n,o)=>{r(n,o).then(()=>{t("set-selected-shipping-rate",{shippingRateId:n})}).catch(t=>{e(t)})},[r,t,e]),isSelectingRate:Object(n.useSelect)(e=>e(s.CART_STORE_KEY).isShippingRateBeingSelected(),[])}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return i}));const n=window.CustomEvent||null,o=(e,t)=>{let{bubbles:r=!1,cancelable:o=!1,element:s,detail:c={}}=t;if(!n)return;s||(s=document.body);const a=new n(e,{bubbles:r,cancelable:o,detail:c});s.dispatchEvent(a)};let s;const c=()=>{s&&clearTimeout(s),s=setTimeout(()=>{o("wc_fragment_refresh",{bubbles:!0,cancelable:!0})},50)},a=e=>{let{preserveCartData:t=!1}=e;o("wc-blocks_added_to_cart",{bubbles:!0,cancelable:!0,detail:{preserveCartData:t}})},i=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"!=typeof jQuery)return()=>{};const s=()=>{o(t,{bubbles:r,cancelable:n})};return jQuery(document).on(e,s),()=>jQuery(document).off(e,s)}},function(e,t,r){"use strict";var n=r(0),o=r(13);const s=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=s},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>"number"==typeof e},,function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0);const o=()=>{const[,e]=Object(n.useState)();return Object(n.useCallback)(t=>{e(()=>{throw t})},[])}},function(e,t,r){"use strict";var n=r(12),o=r.n(n),s=r(0);r(107);const c=e=>{if(!e)return;const t=e.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollIntoView()};t.a=e=>t=>{const r=Object(s.useRef)(null);return Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"with-scroll-to-top__scroll-point",ref:r,"aria-hidden":!0}),Object(s.createElement)(e,o()({},t,{scrollToTop:e=>{null!==r.current&&((e,t)=>{const{focusableSelector:r}=t||{};window&&Number.isFinite(window.innerHeight)&&(r?((e,t)=>{var r;const n=(null===(r=e.parentElement)||void 0===r?void 0:r.querySelectorAll(t))||[];if(n.length){const e=n[0];c(e),null==e||e.focus()}else c(e)})(e,r):c(e))})(r.current,e)}})))}},,function(e,t,r){"use strict";var n=r(0),o=r(3),s=r(4),c=r.n(s),a=r(1),i=r(20),l=r(71),u=r(42);function d(e){switch(e){case"success":case"warning":case"info":return"polite";case"error":default:return"assertive"}}t.a=function({className:e,status:t="info",children:r,spokenMessage:s=r,onRemove:p=o.noop,isDismissible:m=!0,actions:f=[],politeness:h=d(t),__unstableHTML:b,onDismiss:g=o.noop}){!function(e,t){const r="string"==typeof e?e:Object(n.renderToString)(e);Object(n.useEffect)(()=>{r&&Object(i.speak)(r,t)},[r,t])}(s,h);const y=c()(e,"components-notice","is-"+t,{"is-dismissible":m});return b&&(r=Object(n.createElement)(n.RawHTML,null,r)),Object(n.createElement)("div",{className:y},Object(n.createElement)("div",{className:"components-notice__content"},r,Object(n.createElement)("div",{className:"components-notice__actions"},f.map(({className:e,label:t,isPrimary:r,variant:o,noDefaultClasses:s=!1,onClick:a,url:i},l)=>{let d=o;return"primary"===o||s||(d=i?"link":"secondary"),void 0===d&&r&&(d="primary"),Object(n.createElement)(u.a,{key:l,href:i,variant:d,onClick:i?void 0:a,className:c()("components-notice__action",e)},t)}))),m&&Object(n.createElement)(u.a,{className:"components-notice__dismiss",icon:l.a,label:Object(a.__)("Dismiss this notice"),onClick:e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),g(),p()},showTooltip:!1}))}},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return s}));var n=r(7);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const r=Object(n.select)("core/notices").getNotices(e);return r.some(e=>e.type===t)},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=Object(n.select)("core/notices").getNotices(),{removeNotice:o}=Object(n.dispatch)("core/notices"),s=r.filter(t=>t.status===e);s.forEach(e=>o(e.id,t))}},function(e,t){},function(e,t,r){var n=r(5),o=r(56),s=r(57),c=s.setStyleProp;function a(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&s.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var s,i,l,u,d=(r=r||{}).library||n,p=d.cloneElement,m=d.createElement,f=d.isValidElement,h=[],b="function"==typeof r.replace,g=r.trim,y=0,E=t.length;y<E;y++)if(s=t[y],b&&f(i=r.replace(s)))E>1&&(i=p(i,{key:i.key||y})),h.push(i);else if("text"!==s.type){switch(l=s.attribs,a(s)?c(l.style,l):l&&(l=o(l)),u=null,s.type){case"script":case"style":s.children[0]&&(l.dangerouslySetInnerHTML={__html:s.children[0].data});break;case"tag":"textarea"===s.name&&s.children[0]?l.defaultValue=s.children[0].data:s.children&&s.children.length&&(u=e(s.children,r));break;default:continue}E>1&&(l.key=y),h.push(m(s.name,l,u))}else g?s.data.trim()&&h.push(s.data):h.push(s.data);return 1===h.length?h[0]:h}},function(e,t,r){var n=r(84),o=r(85),s=r(86),c=s.MUST_USE_PROPERTY,a=s.HAS_BOOLEAN_VALUE,i=s.HAS_NUMERIC_VALUE,l=s.HAS_POSITIVE_NUMERIC_VALUE,u=s.HAS_OVERLOADED_BOOLEAN_VALUE;function d(e,t){return(e&t)===t}function p(e,t,r){var n,o,s,p=e.Properties,m=e.DOMAttributeNames;for(o in p)n=m[o]||(r?o:o.toLowerCase()),s=p[o],t[n]={attributeName:n,propertyName:o,mustUseProperty:d(s,c),hasBooleanValue:d(s,a),hasNumericValue:d(s,i),hasPositiveNumericValue:d(s,l),hasOverloadedBooleanValue:d(s,u)}}var m={};p(n,m);var f={};p(o,f,!0);var h={};p(n,h),p(o,h,!0),e.exports={html:m,svg:f,properties:h,isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"))}},function(e,t){e.exports={Properties:{autoFocus:4,accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:4,allowTransparency:0,alt:0,as:0,async:4,autoComplete:0,autoPlay:4,capture:4,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:5,cite:0,classID:0,className:0,cols:24,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:4,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:4,defer:4,dir:0,disabled:4,download:32,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:4,formTarget:0,frameBorder:0,headers:0,height:0,hidden:4,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:4,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:5,muted:5,name:0,nonce:0,noValidate:4,open:4,optimum:0,pattern:0,placeholder:0,playsInline:4,poster:0,preload:0,profile:0,radioGroup:0,readOnly:4,referrerPolicy:0,rel:0,required:4,reversed:4,role:0,rows:24,rowSpan:8,sandbox:0,scope:0,scoped:4,scrolling:0,seamless:4,selected:5,shape:0,size:24,sizes:0,span:24,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:8,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:4,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}}},function(e,t){e.exports={Properties:{accentHeight:0,accumulate:0,additive:0,alignmentBaseline:0,allowReorder:0,alphabetic:0,amplitude:0,arabicForm:0,ascent:0,attributeName:0,attributeType:0,autoReverse:0,azimuth:0,baseFrequency:0,baseProfile:0,baselineShift:0,bbox:0,begin:0,bias:0,by:0,calcMode:0,capHeight:0,clip:0,clipPath:0,clipRule:0,clipPathUnits:0,colorInterpolation:0,colorInterpolationFilters:0,colorProfile:0,colorRendering:0,contentScriptType:0,contentStyleType:0,cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:0,direction:0,display:0,divisor:0,dominantBaseline:0,dur:0,dx:0,dy:0,edgeMode:0,elevation:0,enableBackground:0,end:0,exponent:0,externalResourcesRequired:0,fill:0,fillOpacity:0,fillRule:0,filter:0,filterRes:0,filterUnits:0,floodColor:0,floodOpacity:0,focusable:0,fontFamily:0,fontSize:0,fontSizeAdjust:0,fontStretch:0,fontStyle:0,fontVariant:0,fontWeight:0,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:0,glyphOrientationHorizontal:0,glyphOrientationVertical:0,glyphRef:0,gradientTransform:0,gradientUnits:0,hanging:0,horizAdvX:0,horizOriginX:0,ideographic:0,imageRendering:0,in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:0,kernelUnitLength:0,kerning:0,keyPoints:0,keySplines:0,keyTimes:0,lengthAdjust:0,letterSpacing:0,lightingColor:0,limitingConeAngle:0,local:0,markerEnd:0,markerMid:0,markerStart:0,markerHeight:0,markerUnits:0,markerWidth:0,mask:0,maskContentUnits:0,maskUnits:0,mathematical:0,mode:0,numOctaves:0,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:0,overlineThickness:0,paintOrder:0,panose1:0,pathLength:0,patternContentUnits:0,patternTransform:0,patternUnits:0,pointerEvents:0,points:0,pointsAtX:0,pointsAtY:0,pointsAtZ:0,preserveAlpha:0,preserveAspectRatio:0,primitiveUnits:0,r:0,radius:0,refX:0,refY:0,renderingIntent:0,repeatCount:0,repeatDur:0,requiredExtensions:0,requiredFeatures:0,restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:0,slope:0,spacing:0,specularConstant:0,specularExponent:0,speed:0,spreadMethod:0,startOffset:0,stdDeviation:0,stemh:0,stemv:0,stitchTiles:0,stopColor:0,stopOpacity:0,strikethroughPosition:0,strikethroughThickness:0,string:0,stroke:0,strokeDasharray:0,strokeDashoffset:0,strokeLinecap:0,strokeLinejoin:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0,surfaceScale:0,systemLanguage:0,tableValues:0,targetX:0,targetY:0,textAnchor:0,textDecoration:0,textRendering:0,textLength:0,to:0,transform:0,u1:0,u2:0,underlinePosition:0,underlineThickness:0,unicode:0,unicodeBidi:0,unicodeRange:0,unitsPerEm:0,vAlphabetic:0,vHanging:0,vIdeographic:0,vMathematical:0,values:0,vectorEffect:0,version:0,vertAdvY:0,vertOriginX:0,vertOriginY:0,viewBox:0,viewTarget:0,visibility:0,widths:0,wordSpacing:0,writingMode:0,x:0,xHeight:0,x1:0,x2:0,xChannelSelector:0,xlinkActuate:0,xlinkArcrole:0,xlinkHref:0,xlinkRole:0,xlinkShow:0,xlinkTitle:0,xlinkType:0,xmlBase:0,xmlns:0,xmlnsXlink:0,xmlLang:0,xmlSpace:0,y:0,y1:0,y2:0,yChannelSelector:0,z:0,zoomAndPan:0},DOMAttributeNames:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space"}}},function(e,t){e.exports={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=n(r(88)),s=r(90);t.default=function(e,t){var r={};return e&&"string"==typeof e?(o.default(e,(function(e,n){e&&n&&(r[s.camelCase(e,t)]=n)})),r):r}},function(e,t,r){var n=r(89);e.exports=function(e,t){var r,o=null;if(!e||"string"!=typeof e)return o;for(var s,c,a=n(e),i="function"==typeof t,l=0,u=a.length;l<u;l++)s=(r=a[l]).property,c=r.value,i?t(s,c,r):c&&(o||(o={}),o[s]=c);return o}},function(e,t){var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,s=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,c=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var l=1,d=1;function p(e){var t=e.match(n);t&&(l+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function m(){var e={line:l,column:d};return function(t){return t.position=new f(e),y(),t}}function f(e){this.start=e,this.end={line:l,column:d},this.source=t.source}f.prototype.content=e;var h=[];function b(r){var n=new Error(t.source+":"+l+":"+d+": "+r);if(n.reason=r,n.filename=t.source,n.line=l,n.column=d,n.source=e,!t.silent)throw n;h.push(n)}function g(t){var r=t.exec(e);if(r){var n=r[0];return p(n),e=e.slice(n.length),r}}function y(){g(o)}function E(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return b("End of comment missing");var n=e.slice(2,r-2);return d+=2,p(n),e=e.slice(r),d+=2,t({type:"comment",comment:n})}}function O(){var e=m(),t=g(s);if(t){if(_(),!g(c))return b("property missing ':'");var n=g(a),o=e({type:"declaration",property:u(t[0].replace(r,"")),value:n?u(n[0].replace(r,"")):""});return g(i),o}}return y(),function(){var e,t=[];for(E(t);e=O();)!1!==e&&(t.push(e),E(t));return t}()}},function(e,t,r){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,s=/^[^-]+$/,c=/^-(webkit|moz|ms|o|khtml)-/,a=function(e,t){return t.toUpperCase()},i=function(e,t){return t+"-"};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||s.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),t.reactCompat||(e=e.replace(c,i)),e.replace(o,a))}},function(e,t,r){var n=r(92),o=r(58),s=o.formatDOM,c=o.isIE(9),a=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t,r=e.match(a);return r&&r[1]&&(t=r[1],c&&(e=e.replace(r[0],""))),s(n(e),null,t)}},function(e,t,r){var n=r(58),o=/<([a-zA-Z]+[0-9]?)/,s=/<head.*>/i,c=/<body.*>/i,a=/<(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)(.*?)\/?>/gi,i=n.isIE(9),l=i||n.isIE(),u=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var p=new window.DOMParser,m=i?"text/xml":"text/html";u=d=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),i&&(e=e.replace(a,"<$1$2$3/>")),p.parseFromString(e,m)}}if(document.implementation){var f=document.implementation.createHTMLDocument(l?"html-dom-parser":void 0);u=function(e,t){if(t)return f.documentElement.getElementsByTagName(t)[0].innerHTML=e,f;try{return f.documentElement.innerHTML=e,f}catch(t){if(d)return d(e)}}}var h,b=document.createElement("template");b.content&&(h=function(e){return b.innerHTML=e,b.content.childNodes}),e.exports=function(e){var t,r,n,a,i=e.match(o);switch(i&&i[1]&&(t=i[1].toLowerCase()),t){case"html":return r=d(e),s.test(e)||(n=r.getElementsByTagName("head")[0])&&n.parentNode.removeChild(n),c.test(e)||(n=r.getElementsByTagName("body")[0])&&n.parentNode.removeChild(n),r.getElementsByTagName("html");case"head":case"body":return a=u(e).getElementsByTagName(t),c.test(e)&&s.test(e)?a[0].parentNode.childNodes:a;default:return h?h(e):u(e,"body").getElementsByTagName("body")[0].childNodes}}},function(e,t){e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return a}));var n=r(3);let o;!function(e){e.ADD_EVENT_CALLBACK="add_event_callback",e.REMOVE_EVENT_CALLBACK="remove_event_callback"}(o||(o={}));const s={addEventCallback:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:Object(n.uniqueId)(),type:o.ADD_EVENT_CALLBACK,eventType:e,callback:t,priority:r}},removeEventCallback:(e,t)=>({id:t,type:o.REMOVE_EVENT_CALLBACK,eventType:e})},c={},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,{type:t,eventType:r,id:n,callback:s,priority:a}=arguments.length>1?arguments[1]:void 0;const i=e.hasOwnProperty(r)?new Map(e[r]):new Map;switch(t){case o.ADD_EVENT_CALLBACK:return i.set(n,{priority:a,callback:s}),{...e,[r]:i};case o.REMOVE_EVENT_CALLBACK:return i.delete(n),{...e,[r]:i}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return c}));var n=r(1),o=r(17);const s=async e=>{if("function"==typeof e.json)try{const t=await e.json();return{message:t.message,type:t.type||"api"}}catch(e){return{message:e.message,type:"general"}}return{message:e.message,type:e.type||"general"}},c=e=>{if(e.data&&"rest_invalid_param"===e.code){const t=Object.values(e.data.params);if(t[0])return t[0]}return null!=e&&e.message?Object(o.decodeEntities)(e.message):Object(n.__)("Something went wrong. Please contact us to get assistance.","woo-gutenberg-products-block")}},function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(12)),s=n(r(128)),c=r(5),a=n(c),i=n(r(129)),l=n(r(131)),u={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(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var r;for(r in e)if(!(r in t))return!1;for(r in t)if(e[r]!==t[r])return!1;return!u.und(r)||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 u.und(e)||u.nul(e)?t:e}function m(e){return u.und(e)?[]:u.arr(e)?e:[e]}function f(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return u.fun(e)?e.apply(void 0,r):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,s(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return o({to:t},e);var r=Object.keys(e).reduce((function(r,n){var s;return u.und(t[n])?o({},r,((s={})[n]=e[n],s)):r}),{});return o({to:t},r)}var b,g,y=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),E=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.addChild(l(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.removeChild(l(t))}))},t}return i(t,e),t}(y),_=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&e.addChild(l(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&e.removeChild(l(t))}))},t}i(t,e);var r=t.prototype;return r.getValue=function(e){void 0===e&&(e=!1);var t={};for(var r in this.payload){var n=this.payload[r];(!e||n instanceof y)&&(t[r]=n instanceof y?n[e?"getAnimatedValue":"getValue"]():n)}return t},r.getAnimatedValue=function(){return this.getValue(!0)},t}(y);function O(e,t){b={fn:e,transform:t}}function v(e){g=e}var k,S=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},w=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function j(e){k=e}var C,R=function(){return Date.now()};function T(e){C=e}var x,A,P=function(e){return e.current};function M(e){x=e}var N=Object.freeze({get applyAnimatedValues(){return b},injectApplyAnimatedValues:O,get colorNames(){return g},injectColorNames:v,get requestFrame(){return S},get cancelFrame(){return w},injectFrame:function(e,t){S=e,w=t},get interpolation(){return k},injectStringInterpolator:j,get now(){return R},injectNow:function(e){R=e},get defaultElement(){return C},injectDefaultElement:T,get animatedApi(){return P},injectAnimatedApi:function(e){P=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:M,get manualFrameloop(){return A},injectManualFrameloop:function(e){A=e}}),I=function(e){function t(t,r){var n;return(n=e.call(this)||this).update=void 0,n.payload=t.style?o({},t,{style:x(t.style)}):t,n.update=r,n.attach(),n}return i(t,e),t}(_),D=!1,L=new Set,F=function e(){if(!D)return!1;var t=R(),r=L,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var s;if(n){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}for(var c=s,a=!1,i=0;i<c.configs.length;i++){for(var l=c.configs[i],u=void 0,d=void 0,p=0;p<l.animatedValues.length;p++){var m=l.animatedValues[p];if(!m.done){var f=l.fromValues[p],h=l.toValues[p],b=m.lastPosition,g=h instanceof y,E=Array.isArray(l.initialVelocity)?l.initialVelocity[p]:l.initialVelocity;if(g&&(h=h.getValue()),l.immediate)m.setValue(h),m.done=!0;else if("string"!=typeof f&&"string"!=typeof h){if(void 0!==l.duration)b=f+l.easing((t-m.startTime)/l.duration)*(h-f),u=t>=m.startTime+l.duration;else if(l.decay)b=f+E/(1-.998)*(1-Math.exp(-(1-.998)*(t-m.startTime))),(u=Math.abs(m.lastPosition-b)<.1)&&(h=b);else{d=void 0!==m.lastTime?m.lastTime:t,E=void 0!==m.lastVelocity?m.lastVelocity:l.initialVelocity,t>d+64&&(d=t);for(var _=Math.floor(t-d),O=0;O<_;++O)b+=1*(E+=(-l.tension*(b-h)+-l.friction*E)/l.mass*1/1e3)/1e3;var v=!(!l.clamp||0===l.tension)&&(f<h?b>h:b<h),k=Math.abs(E)<=l.precision,w=0===l.tension||Math.abs(h-b)<=l.precision;u=v||k&&w,m.lastVelocity=E,m.lastTime=t}g&&!l.toValues[p].done&&(u=!1),u?(m.value!==h&&(b=h),m.done=!0):a=!0,m.setValue(b),m.lastPosition=b}else m.setValue(h),m.done=!0}}c.props.onFrame&&(c.values[l.name]=l.interpolation.getValue())}c.props.onFrame&&c.props.onFrame(c.values),a||(L.delete(c),c.stop(!0))}return L.size?A?A():S(e):D=!1,D};function U(e,t,r){if("function"==typeof e)return e;if(Array.isArray(e))return U({range:e,output:t,extrapolate:r});if(k&&"string"==typeof e.output[0])return k(e);var n=e,o=n.output,s=n.range||[0,1],c=n.extrapolateLeft||n.extrapolate||"extend",a=n.extrapolateRight||n.extrapolate||"extend",i=n.easing||function(e){return e};return function(e){var t=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(e,s);return function(e,t,r,n,o,s,c,a,i){var l=i?i(e):e;if(l<t){if("identity"===c)return l;"clamp"===c&&(l=t)}if(l>r){if("identity"===a)return l;"clamp"===a&&(l=r)}return n===o?n:t===r?e<=t?n:o:(t===-1/0?l=-l:r===1/0?l-=t:l=(l-t)/(r-t),l=s(l),n===-1/0?l=-l:o===1/0?l+=n:l=l*(o-n)+n,l)}(e,s[t],s[t+1],o[t],o[t+1],i,c,a,n.map)}}var V=function(e){function t(r,n,o,s){var c;return(c=e.call(this)||this).calc=void 0,c.payload=r instanceof E&&!(r instanceof t)?r.getPayload():Array.isArray(r)?r:[r],c.calc=U(n,o,s),c}i(t,e);var r=t.prototype;return r.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},r.updateConfig=function(e,t,r){this.calc=U(e,t,r)},r.interpolate=function(e,r,n){return new t(this,e,r,n)},t}(E),B=function(e){function t(t){var r;return(r=e.call(this)||this).animatedStyles=new Set,r.value=void 0,r.startPosition=void 0,r.lastPosition=void 0,r.lastVelocity=void 0,r.startTime=void 0,r.lastTime=void 0,r.done=!1,r.setValue=function(e,t){void 0===t&&(t=!0),r.value=e,t&&r.flush()},r.value=t,r.startPosition=t,r.lastPosition=t,r}i(t,e);var r=t.prototype;return r.flush=function(){0===this.animatedStyles.size&&function e(t,r){"update"in t?r.add(t):t.getChildren().forEach((function(t){return e(t,r)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},r.clearStyles=function(){this.animatedStyles.clear()},r.getValue=function(){return this.value},r.interpolate=function(e,t,r){return new V(this,e,t,r)},t}(y),H=function(e){function t(t){var r;return(r=e.call(this)||this).payload=t.map((function(e){return new B(e)})),r}i(t,e);var r=t.prototype;return r.setValue=function(e,t){var r=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,n){return r.payload[n].setValue(e,t)})):this.payload.forEach((function(r){return r.setValue(e,t)}))},r.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},r.interpolate=function(e,t){return new V(this,e,t)},t}(E),z=0,G=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=z++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),r=t.delay,n=void 0===r?0:r,c=t.to,a=s(t,["delay","to"]);if(u.arr(c)||u.fun(c))this.queue.push(o({},a,{delay:n,to:c}));else if(c){var i={};Object.entries(c).forEach((function(e){var t,r=e[0],s=e[1],c=o({to:(t={},t[r]=s,t),delay:f(n,r)},a),l=i[c.delay]&&i[c.delay].to;i[c.delay]=o({},i[c.delay],c,{to:o({},l,c.to)})})),this.queue=Object.values(i)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var r=e.from,n=void 0===r?{}:r,s=e.to,c=void 0===s?{}:s;u.obj(n)&&(t.merged=o({},n,t.merged)),u.obj(c)&&(t.merged=o({},t.merged,c))}));var r=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach((function(o,c){var a=o.delay,i=s(o,["delay"]),l=function(o){c===n.length-1&&r===t.guid&&o&&(t.idle=!0,t.props.onRest&&t.props.onRest(t.merged)),e&&e()},d=u.arr(i.to)||u.fun(i.to);a?setTimeout((function(){r===t.guid&&(d?t.runAsync(i,l):t.diff(i).start(l))}),a):d?t.runAsync(i,l):t.diff(i).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),this,L.has(this)||L.add(this),D||(D=!0,S(A||F));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){return this.stop(!0),e&&(this,L.has(this)&&L.delete(this)),this},t.runAsync=function(e,t){var r=this,n=(e.delay,s(e,["delay"])),c=this.local,a=Promise.resolve(void 0);if(u.arr(n.to))for(var i=function(e){var t=e,s=o({},n,h(n.to[t]));u.arr(s.config)&&(s.config=s.config[t]),a=a.then((function(){if(c===r.guid)return new Promise((function(e){return r.diff(s).start(e)}))}))},l=0;l<n.to.length;l++)i(l);else if(u.fun(n.to)){var d,p=0;a=a.then((function(){return n.to((function(e){var t=o({},n,h(e));if(u.arr(t.config)&&(t.config=t.config[p]),p++,c===r.guid)return d=new Promise((function(e){return r.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),r.stop(e)})).then((function(){return d}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var r=this.props,n=r.from,s=void 0===n?{}:n,c=r.to,a=void 0===c?{}:c,i=r.config,l=void 0===i?{}:i,d=r.reverse,h=r.attach,b=r.reset,y=r.immediate;if(d){var E=[a,s];s=E[0],a=E[1]}this.merged=o({},s,this.merged,a),this.hasChanged=!1;var _=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,r){var n=r[0],c=r[1],a=e[n]||{},i=u.num(c),d=u.str(c)&&!c.startsWith("#")&&!/\d/.test(c)&&!g[c],h=u.arr(c),E=!i&&!h&&!d,O=u.und(s[n])?c:s[n],v=i||h||d?c:1,S=f(l,n);_&&(v=_.animations[n].parent);var w,j=a.parent,C=a.interpolation,T=m(_?v.getPayload():v),x=c;E&&(x=k({range:[0,1],output:[c,c]})(1));var A,P=C&&C.getValue(),M=!u.und(j)&&a.animatedValues.some((function(e){return!e.done})),N=!u.equ(x,P),I=!u.equ(x,a.previous),D=!u.equ(S,a.config);if(b||I&&N||D){var L;if(i||d)j=C=a.parent||new B(O);else if(h)j=C=a.parent||new H(O);else if(E){var F=a.interpolation&&a.interpolation.calc(a.parent.value);F=void 0===F||b?O:F,a.parent?(j=a.parent).setValue(0,!1):j=new B(0);var U={output:[F,c]};a.interpolation?(C=a.interpolation,a.interpolation.updateConfig(U)):C=j.interpolate(U)}return T=m(_?v.getPayload():v),w=m(j.getPayload()),b&&!E&&j.setValue(O,!1),t.hasChanged=!0,w.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=R(),e.done=!1,e.animatedStyles.clear()})),f(y,n)&&j.setValue(E?v:c,!1),o({},e,((L={})[n]=o({},a,{name:n,parent:j,interpolation:C,animatedValues:w,toValues:T,previous:x,config:S,fromValues:m(j.getValue()),immediate:f(y,n),initialVelocity:p(S.velocity,0),clamp:p(S.clamp,!1),precision:p(S.precision,.01),tension:p(S.tension,170),friction:p(S.friction,26),mass:p(S.mass,1),duration:S.duration,easing:p(S.easing,(function(e){return e})),decay:S.decay}),L))}return N?e:(E&&(j.setValue(1,!1),C.updateConfig({output:[x,x]})),j.done=!0,t.hasChanged=!0,o({},e,((A={})[n]=o({},e[n],{previous:x}),A)))}),this.animations),this.hasChanged)for(var O in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[O]=this.animations[O].interpolation,this.values[O]=this.animations[O].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),q=function(e,t){var r=c.useRef(!1),n=c.useRef(),o=u.fun(t),s=c.useMemo((function(){var r;return n.current&&(n.current.map((function(e){return e.destroy()})),n.current=void 0),[new Array(e).fill().map((function(e,n){var s=new G,c=o?f(t,n,s):t[n];return 0===n&&(r=c.ref),s.update(c),r||s.start(),s})),r]}),[e]),a=s[0],i=s[1];n.current=a,c.useImperativeHandle(i,(function(){return{start:function(){return Promise.all(n.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return n.current.forEach((function(t){return t.stop(e)}))},get controllers(){return n.current}}}));var l=c.useMemo((function(){return function(e){return n.current.map((function(t,r){t.update(o?f(e,r,t):e[r]),i||t.start()}))}}),[e]);c.useEffect((function(){r.current?o||l(t):i||n.current.forEach((function(e){return e.start()}))})),c.useEffect((function(){return r.current=!0,function(){return n.current.forEach((function(e){return e.destroy()}))}}),[]);var d=n.current.map((function(e){return e.getValues()}));return o?[d,l,function(e){return n.current.forEach((function(t){return t.pause(e)}))}]:d},Y=0,$=function(e,t){return("function"==typeof t?e.map(t):m(t)).map(String)},W=function(e){var t=e.items,r=e.keys,n=void 0===r?function(e){return e}:r,c=s(e,["items","keys"]);return t=m(void 0!==t?t:null),o({items:t,keys:$(t,n)},c)};function K(e,t){var r=function(){if(o){if(s>=n.length)return"break";c=n[s++]}else{if((s=n.next()).done)return"break";c=s.value}var r=c.key,a=function(e){return e.key!==r};(u.und(t)||t===r)&&(e.current.instances.delete(r),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},n=e.current.deleted,o=Array.isArray(n),s=0;for(n=o?n:n[Symbol.iterator]();;){var c;if("break"===r())break}e.current.forceUpdate()}var X=function(e){function t(t){var r;return void 0===t&&(t={}),r=e.call(this)||this,!t.transform||t.transform instanceof y||(t=b.transform(t)),r.payload=t,r}return i(t,e),t}(_),J={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},Q="[-+]?\\d*\\.?\\d+";function Z(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+Z(Q,Q,Q)),te=new RegExp("rgba"+Z(Q,Q,Q,Q)),re=new RegExp("hsl"+Z(Q,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ne=new RegExp("hsla"+Z(Q,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Q)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,se=/^#([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})$/,ae=/^#([0-9a-fA-F]{8})$/;function ie(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function le(e,t,r){var n=r<.5?r*(1+t):r+t-r*t,o=2*r-n,s=ie(o,n,e+1/3),c=ie(o,n,e),a=ie(o,n,e-1/3);return Math.round(255*s)<<24|Math.round(255*c)<<16|Math.round(255*a)<<8}function ue(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 me(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function fe(e){var t,r,n="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(r=ce.exec(t))?parseInt(r[1]+"ff",16)>>>0:J.hasOwnProperty(t)?J[t]:(r=ee.exec(t))?(ue(r[1])<<24|ue(r[2])<<16|ue(r[3])<<8|255)>>>0:(r=te.exec(t))?(ue(r[1])<<24|ue(r[2])<<16|ue(r[3])<<8|pe(r[4]))>>>0:(r=oe.exec(t))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+"ff",16)>>>0:(r=ae.exec(t))?parseInt(r[1],16)>>>0:(r=se.exec(t))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+r[4]+r[4],16)>>>0:(r=re.exec(t))?(255|le(de(r[1]),me(r[2]),me(r[3])))>>>0:(r=ne.exec(t))?(le(de(r[1]),me(r[2]),me(r[3]))|pe(r[4]))>>>0:null;return null===n?e:"rgba("+((4278190080&(n=n||0))>>>24)+", "+((16711680&n)>>>16)+", "+((65280&n)>>>8)+", "+(255&n)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,be=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ge=new RegExp("("+Object.keys(J).join("|")+")","g"),ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ee=["Webkit","Ms","Moz","O"];function _e(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return Ee.forEach((function(r){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(r,t)]=e[t]})),e}),ye);var Oe={};M((function(e){return new X(e)})),T("div"),j((function(e){var t=e.output.map((function(e){return e.replace(be,fe)})).map((function(e){return e.replace(ge,fe)})),r=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return r[t].push(+e)}))}));var n=t[0].match(he).map((function(t,n){return U(o({},e,{output:r[n]}))}));return function(e){var r=0;return t[0].replace(he,(function(){return n[r++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,r,n,o){return"rgba("+Math.round(t)+", "+Math.round(r)+", "+Math.round(n)+", "+o+")"}))}})),v(J),O((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var r=t.style,n=t.children,o=t.scrollTop,c=t.scrollLeft,a=s(t,["style","children","scrollTop","scrollLeft"]),i="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var l in void 0!==o&&(e.scrollTop=o),void 0!==c&&(e.scrollLeft=c),void 0!==n&&(e.textContent=n),r)if(r.hasOwnProperty(l)){var u=0===l.indexOf("--"),d=_e(l,r[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,d):e.style[l]=d}for(var p in a){var m=i?p:Oe[p]||(Oe[p]=p.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(m)&&e.setAttribute(m,a[p])}}),(function(e){return e}));var ve,ke,Se=(ve=function(e){return c.forwardRef((function(t,r){var n=d(),i=c.useRef(!0),l=c.useRef(null),p=c.useRef(null),m=c.useCallback((function(e){var t=l.current;l.current=new I(e,(function(){var e=!1;p.current&&(e=b.fn(p.current,l.current.getAnimatedValue())),p.current&&!1!==e||n()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){i.current=!1,l.current&&l.current.detach()}}),[]),c.useImperativeHandle(r,(function(){return P(p,i,n)})),m(t);var f,h=l.current.getValue(),g=(h.scrollTop,h.scrollLeft,s(h,["scrollTop","scrollLeft"])),y=(f=e,!u.fun(f)||f.prototype instanceof a.Component?function(e){return p.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,r)}:void 0);return a.createElement(e,o({},g,{ref:y}))}))},void 0===(ke=!1)&&(ke=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var r=ke?t[0].toLowerCase()+t.substring(1):t;return e[r]=ve(r),e}),ve)}),we=Se(["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=Se,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=F,t.animated=we,t.a=we,t.interpolate=function(e,t,r){return e&&new V(e,t,r)},t.Globals=N,t.useSpring=function(e){var t=u.fun(e),r=q(1,t?e:[e]),n=r[0],o=r[1],s=r[2];return t?[n[0],o,s]:n},t.useTrail=function(e,t){var r=c.useRef(!1),n=u.fun(t),s=f(t),a=c.useRef(),i=q(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},s,{config:f(s.config,e),attach:e>0&&function(){return a.current[e-1]}})})),l=i[0],d=i[1],p=i[2],m=c.useMemo((function(){return function(e){return d((function(t,r){e.reverse;var n=e.reverse?t+1:t-1,c=a.current[n];return o({},e,{config:f(e.config||s.config,t),attach:c&&function(){return c}})}))}}),[e,s.reverse]);return c.useEffect((function(){r.current&&!n&&m(t)})),c.useEffect((function(){r.current=!0}),[]),n?[l,m,p]:l},t.useTransition=function(e,t,r){var n=o({items:e,keys:t||function(e){return e}},r),a=W(n),i=a.lazy,l=void 0!==i&&i,u=(a.unique,a.reset),p=void 0!==u&&u,m=(a.enter,a.leave,a.update,a.onDestroyed),h=(a.keys,a.items,a.onFrame),b=a.onRest,g=a.onStart,y=a.ref,E=s(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),_=d(),O=c.useRef(!1),v=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!n.ref,instances:!O.current&&new Map,forceUpdate:_});return c.useImperativeHandle(n.ref,(function(){return{start:function(){return Promise.all(Array.from(v.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(v.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(v.current.instances).map((function(e){return e[1]}))}}})),v.current=function(e,t){for(var r=e.first,n=e.prevProps,c=s(e,["first","prevProps"]),a=W(t),i=a.items,l=a.keys,u=a.initial,d=a.from,p=a.enter,m=a.leave,h=a.update,b=a.trail,g=void 0===b?0:b,y=a.unique,E=a.config,_=a.order,O=void 0===_?["enter","leave","update"]:_,v=W(n),k=v.keys,S=v.items,w=o({},c.current),j=[].concat(c.deleted),C=Object.keys(w),R=new Set(C),T=new Set(l),x=l.filter((function(e){return!R.has(e)})),A=c.transitions.filter((function(e){return!e.destroyed&&!T.has(e.originalKey)})).map((function(e){return e.originalKey})),P=l.filter((function(e){return R.has(e)})),M=-g;O.length;)switch(O.shift()){case"enter":x.forEach((function(e,t){y&&j.find((function(t){return t.originalKey===e}))&&(j=j.filter((function(t){return t.originalKey!==e})));var n=l.indexOf(e),o=i[n],s=r&&void 0!==u?"initial":"enter";w[e]={slot:s,originalKey:e,key:y?String(e):Y++,item:o,trail:M+=g,config:f(E,o,s),from:f(r&&void 0!==u?u||{}:d,o),to:f(p,o)}}));break;case"leave":A.forEach((function(e){var t=k.indexOf(e),r=S[t];j.unshift(o({},w[e],{slot:"leave",destroyed:!0,left:k[Math.max(0,t-1)],right:k[Math.min(k.length,t+1)],trail:M+=g,config:f(E,r,"leave"),to:f(m,r)})),delete w[e]}));break;case"update":P.forEach((function(e){var t=l.indexOf(e),r=i[t];w[e]=o({},w[e],{item:r,slot:"update",trail:M+=g,config:f(E,r,"update"),to:f(h,r)})}))}var N=l.map((function(e){return w[e]}));return j.forEach((function(e){var t,r=e.left,n=(e.right,s(e,["left","right"]));-1!==(t=N.findIndex((function(e){return e.originalKey===r})))&&(t+=1),t=Math.max(0,t),N=[].concat(N.slice(0,t),[n],N.slice(t))})),o({},c,{changed:x.length||A.length||P.length,first:r&&0===x.length,transitions:N,current:w,deleted:j,prevProps:t})}(v.current,n),v.current.changed&&v.current.transitions.forEach((function(e){var t=e.slot,r=e.from,n=e.to,s=e.config,c=e.trail,a=e.key,i=e.item;v.current.instances.has(a)||v.current.instances.set(a,new G);var u=v.current.instances.get(a),d=o({},E,{to:n,from:r,config:s,ref:y,onRest:function(r){v.current.mounted&&(e.destroyed&&(y||l||K(v,a),m&&m(i)),!Array.from(v.current.instances).some((function(e){return!e[1].idle}))&&(y||l)&&v.current.deleted.length>0&&K(v),b&&b(i,t,r))},onStart:g&&function(){return g(i,t)},onFrame:h&&function(e){return h(i,t,e)},delay:c,reset:p&&"enter"===t});u.update(d),v.current.paused||u.start()})),c.useEffect((function(){return v.current.mounted=O.current=!0,function(){v.current.mounted=O.current=!1,Array.from(v.current.instances).map((function(e){return e[1].destroy()})),v.current.instances.clear()}}),[]),v.current.transitions.map((function(e){var t=e.item,r=e.slot,n=e.key;return{item:t,key:n,state:r,props:v.current.instances.get(n).getValues()}}))},t.useChain=function(e,t,r){void 0===r&&(r=1e3);var n=c.useRef();c.useEffect((function(){u.equ(e,n.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,n){var s=e.current;if(s){var c=s.controllers;if(c.length){var a=r*t[n];c.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,r){var n=t.current;return e.then((function(){return n.start()}))}),Promise.resolve()),n.current=e}))},t.useSprings=q},,,,,,,,,,,function(e,t){},,,,,function(e,t,r){"use strict";(function(e){var n=r(0),o=r(3),s=r(4),c=r.n(s),a=r(20),i=r(1),l=(r(37),r(42));t.a=Object(n.forwardRef)((function({className:t,children:r,spokenMessage:s=r,politeness:u="polite",actions:d=[],onRemove:p=o.noop,icon:m=null,explicitDismiss:f=!1,onDismiss:h=o.noop},b){function g(e){e&&e.preventDefault&&e.preventDefault(),h(),p()}h=h||o.noop,function(e,t){const r="string"==typeof e?e:Object(n.renderToString)(e);Object(n.useEffect)(()=>{r&&Object(a.speak)(r,t)},[r,t])}(s,u),Object(n.useEffect)(()=>{const e=setTimeout(()=>{f||(h(),p())},1e4);return()=>clearTimeout(e)},[h,p]);const y=c()(t,"components-snackbar",{"components-snackbar-explicit-dismiss":!!f});d&&d.length>1&&(void 0!==e&&e.env,d=[d[0]]);const E=c()("components-snackbar__content",{"components-snackbar__content-with-icon":!!m});return Object(n.createElement)("div",{ref:b,className:y,onClick:f?o.noop:g,tabIndex:"0",role:f?"":"button",onKeyPress:f?o.noop:g,"aria-label":f?"":Object(i.__)("Dismiss this notice")},Object(n.createElement)("div",{className:E},m&&Object(n.createElement)("div",{className:"components-snackbar__icon"},m),r,d.map(({label:e,onClick:t,url:r},o)=>Object(n.createElement)(l.a,{key:o,href:r,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),p(),t&&t(e)}(e,t),className:"components-snackbar__action"},e)),f&&Object(n.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:g,onKeyPress:g},"✕")))}))}).call(this,r(55))},function(e,t){e.exports=window.wp.plugins},,,function(e,t){e.exports=window.wp.wordcount},function(e,t){e.exports=window.wp.autop},function(e,t,r){"use strict";var n=r(0);t.a=function(e){let{icon:t,size:r=24,...o}=e;return Object(n.cloneElement)(t,{width:r,height:r,...o})}},function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return c}));var n=r(48),o=(r(14),r(2));const s=(e,t)=>Object.keys(o.defaultAddressFields).every(r=>e[r]===t[r]),c=e=>{const t=Object.keys(o.defaultAddressFields),r=Object(n.a)(t,{},e.country),s=Object.assign({},e);return r.forEach(t=>{let{key:r="",hidden:n=!1}=t;n&&((e,t)=>e in t)(r,e)&&(s[r]="")}),s}},function(e,t){e.exports=window.wc.wcBlocksSharedHocs},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(12),o=r.n(n),s=r(0),c=r(4),a=r.n(c),i=r(77),l=r(7),u=(r(81),r(60));const d=e=>{let{status:t="default"}=e;switch(t){case"error":return"woocommerce-error";case"success":return"woocommerce-message";case"info":case"warning":return"woocommerce-info"}return""},p=e=>{let{className:t,context:r="default",additionalNotices:n=[]}=e;const{isSuppressed:c}=Object(u.b)(),{notices:p}=Object(l.useSelect)(e=>({notices:e("core/notices").getNotices(r)})),{removeNotice:m}=Object(l.useDispatch)("core/notices"),f=p.filter(e=>"snackbar"!==e.type).concat(n);if(!f.length)return null;const h=a()(t,"wc-block-components-notices");return c?null:Object(s.createElement)("div",{className:h},f.map(e=>Object(s.createElement)(i.a,o()({key:"store-notice-"+e.id},e,{className:a()("wc-block-components-notices__notice",d(e)),onRemove:()=>{e.isDismissible&&m(e.id,r)}}),e.content)))}},,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(0),o=r(51),s=r(2),c=r(62),a=r.n(c),i=r(10),l=r(15);const u=(e,t)=>e&&t[e]?t[e]:null,d=e=>{let{block:t,blockMap:r,blockWrapper:o,children:c,depth:p=1}=e;return c&&0!==c.length?Array.from(c).map((e,c)=>{const{blockName:m="",...f}={key:`${t}_${p}_${c}`,...e instanceof HTMLElement?e.dataset:{},className:e instanceof Element?null==e?void 0:e.className:""},h=u(m,r);if(!h){const s=a()(e instanceof Element&&(null==e?void 0:e.outerHTML)||(null==e?void 0:e.textContent)||"");if("string"==typeof s&&s)return s;if(!Object(n.isValidElement)(s))return null;const c=e.childNodes.length?d({block:t,blockMap:r,children:e.childNodes,depth:p+1,blockWrapper:o}):void 0;return c?Object(n.cloneElement)(s,f,c):Object(n.cloneElement)(s,f)}const b=o||n.Fragment;return Object(n.createElement)(n.Suspense,{key:`${t}_${p}_${c}_suspense`,fallback:Object(n.createElement)("div",{className:"wc-block-placeholder"})},Object(n.createElement)(l.a,{text:"Unexpected error in: "+m,showErrorBlock:s.CURRENT_USER_IS_ADMIN},Object(n.createElement)(b,null,Object(n.createElement)(h,f,d({block:t,blockMap:r,children:e.childNodes,depth:p+1,blockWrapper:o}),((e,t,r,o)=>{if(!Object(i.hasInnerBlocks)(e))return null;const c=r?Array.from(r).map(e=>e instanceof HTMLElement&&(null==e?void 0:e.dataset.blockName)||null).filter(Boolean):[],a=Object(i.getRegisteredBlocks)(e).filter(e=>{let{blockName:t,force:r}=e;return!0===r&&!c.includes(t)}),d=o||n.Fragment;return Object(n.createElement)(n.Fragment,null,a.map((e,r)=>{let{blockName:o,component:c}=e;const a=c||u(o,t);return a?Object(n.createElement)(l.a,{key:o+"_blockerror",text:"Unexpected error in: "+o,showErrorBlock:s.CURRENT_USER_IS_ADMIN},Object(n.createElement)(d,null,Object(n.createElement)(a,{key:`${o}_forced_${r}`}))):null}))})(m,r,e.childNodes,o)))))}):null},p=e=>{let{Block:t,selector:r,blockName:n,getProps:s=(()=>({})),blockMap:c,blockWrapper:a}=e;Object(o.a)({Block:t,selector:r,getProps:(e,t)=>{const r=d({block:n,blockMap:c,children:e.children||[],blockWrapper:a});return{...s(e,t),children:r}}})}},function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(130);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t,n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r.d(t,"a",(function(){return k}));var n=r(0),o=r(113),s=r(2),c=r(15),a=r(207),i=r(68),l=r(49),u=r(36),d=r(1),p=r(27),m=r.n(p),f=r(119),h=r(95),b=r(7);const g=(e,t,r)=>{const n=Object.keys(e).map(t=>({key:t,value:e[t]}),[]),o=`wc-${r}-new-payment-method`;return n.push({key:o,value:t}),n},y=(e,t)=>{m.a.setNonce&&"function"==typeof m.a.setNonce&&m.a.setNonce(e),null!=e&&e.get("User-ID")&&t.setCustomerId(parseInt(e.get("User-ID")||"0",10))};var E=r(200),_=r(32),O=r(60),v=()=>{const{hasError:e,onCheckoutValidationBeforeProcessing:t,dispatchActions:r,redirectUrl:o,isProcessing:s,isBeforeProcessing:c,isComplete:p,orderNotes:v,shouldCreateAccount:k,extensionData:S}=Object(u.b)(),{hasValidationErrors:w}=Object(E.b)(),{shippingErrorStatus:j}=Object(i.b)(),{billingAddress:C,shippingAddress:R}=Object(l.b)(),{cartNeedsPayment:T,cartNeedsShipping:x,receiveCart:A}=Object(_.a)(),{activePaymentMethod:P,isExpressPaymentMethodActive:M,currentStatus:N,paymentMethodData:I,expressPaymentMethods:D,paymentMethods:L,shouldSavePayment:F}=Object(a.b)(),{setIsSuppressed:U}=Object(O.b)(),{createErrorNotice:V,removeNotice:B}=Object(b.useDispatch)("core/notices"),H=Object(n.useRef)(C),z=Object(n.useRef)(R),G=Object(n.useRef)(o),[q,Y]=Object(n.useState)(!1),$=Object(n.useMemo)(()=>{var e;const t={...D,...L};return null==t||null===(e=t[P])||void 0===e?void 0:e.paymentMethodId},[P,D,L]),W=w&&!M||N.hasError||j.hasError,K=!e&&!W&&(N.isSuccessful||!T)&&s;Object(n.useEffect)(()=>{U(M)},[M,U]),Object(n.useEffect)(()=>{W===e||!s&&!c||M||r.setHasError(W)},[W,e,s,c,M,r]),Object(n.useEffect)(()=>{H.current=C,z.current=R,G.current=o},[C,R,o]);const X=Object(n.useCallback)(()=>!w&&(N.hasError?{errorMessage:Object(d.__)("There was a problem with your payment option.","woo-gutenberg-products-block")}:!j.hasError||{errorMessage:Object(d.__)("There was a problem with your shipping option.","woo-gutenberg-products-block")}),[w,N.hasError,j.hasError]);Object(n.useEffect)(()=>{let e;return M||(e=t(X,0)),()=>{M||e()}},[t,X,M]),Object(n.useEffect)(()=>{G.current&&(window.location.href=G.current)},[p]);const J=Object(n.useCallback)(async()=>{if(q)return;Y(!0),B("checkout");const e=T?{payment_method:$,payment_data:g(I,F,P)}:{},t={billing_address:Object(f.a)(H.current),customer_note:v,create_account:k,...e,extensions:{...S}};x&&(t.shipping_address=Object(f.a)(z.current)),m()({path:"/wc/store/v1/checkout",method:"POST",data:t,cache:"no-store",parse:!1}).then(e=>{if(y(e.headers,r),!e.ok)throw new Error(e);return e.json()}).then(e=>{r.setAfterProcessing(e),Y(!1)}).catch(e=>{try{null!=e&&e.headers&&y(e.headers,r),e.json().then(e=>{var t,n,o;null!==(t=e.data)&&void 0!==t&&t.cart&&A(e.data.cart),V(Object(h.b)(e),{id:"checkout",context:"wc/checkout"}),null==e||null===(n=e.additional_errors)||void 0===n||null===(o=n.forEach)||void 0===o||o.call(n,e=>{V(e.message,{id:e.error_code,context:"wc/checkout"})}),r.setAfterProcessing(e)})}catch{var t;V(Object(d.sprintf)(// Translators: %s Error text.
|
4 |
Object(d.__)("%s Please try placing your order again.","woo-gutenberg-products-block"),null!==(t=null==e?void 0:e.message)&&void 0!==t?t:Object(d.__)("Something went wrong.","woo-gutenberg-products-block")),{id:"checkout",context:"wc/checkout"})}r.setHasError(!0),Y(!1)})},[q,B,T,$,I,F,P,v,k,S,x,r,V,A]);return Object(n.useEffect)(()=>{K&&!q&&J()},[J,K,q]),null};const k=e=>{let{children:t,isCart:r=!1,redirectUrl:d}=e;return Object(n.createElement)(u.a,{redirectUrl:d,isCart:r},Object(n.createElement)(l.a,null,Object(n.createElement)(i.a,null,Object(n.createElement)(a.a,null,t,Object(n.createElement)(c.a,{renderError:s.CURRENT_USER_IS_ADMIN?null:()=>null},Object(n.createElement)(o.PluginArea,{scope:"woocommerce-checkout"})),Object(n.createElement)(v,null)))))}},,,,,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return s}));var n=r(0);const o=Object(n.createContext)({allowCreateAccount:!1,showCompanyField:!1,showApartmentField:!1,showPhoneField:!1,requireCompanyField:!1,requirePhoneField:!1,showOrderNotes:!0,showPolicyLinks:!0,showReturnToCart:!0,cartPageId:0,showRateAfterTaxName:!1}),s=(Object(n.createContext)({addressFieldControls:()=>null,accountControls:()=>null}),()=>Object(n.useContext)(o))},,,,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=(e,t)=>{const r=[];return Object.keys(e).forEach(n=>{if(void 0!==t[n])switch(e[n].type){case"boolean":r[n]="false"!==t[n]&&!1!==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}},,,,,,,,,,,,,,,,,,,,,,function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-actions-block","version":"1.0.0","title":"Actions","description":"Allow customers to place their order.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-billing-address-block","version":"1.0.0","title":"Billing Address","description":"Collect your customer\'s billing address.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-contact-information-block","version":"1.0.0","title":"Contact Information","description":"Collect your customer\'s contact information.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-express-payment-block","version":"1.0.0","title":"Express Checkout","description":"Provide an express payment option for your customers.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-fields-block","version":"1.0.0","title":"Checkout Fields","description":"Column containing checkout address fields.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-note-block","version":"1.0.0","title":"Order Note","description":"Allow customers to add a note to their order.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":false,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-payment-block","version":"1.0.0","title":"Payment Options","description":"Payment options for your store.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-shipping-address-block","version":"1.0.0","title":"Shipping Address","description":"Collect your customer\'s shipping address.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-shipping-methods-block","version":"1.0.0","title":"Shipping Options","description":"Shipping options for your store.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-terms-block","version":"1.0.0","title":"Terms and Conditions","description":"Ensure customers agree to your terms and conditions and privacy policy.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"checkbox":{"type":"boolean","default":false},"text":{"type":"string","required":false}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-totals-block","version":"1.0.0","title":"Checkout Totals","description":"Column containing the checkout totals.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"className":{"type":"string","default":""},"checkbox":{"type":"boolean","default":false},"text":{"type":"string","required":false}},"parent":["woocommerce/checkout"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-block","version":"1.0.0","title":"Order Summary","description":"Show customers a summary of their order.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"lock":{"type":"object","default":{"remove":true}}},"parent":["woocommerce/checkout-totals-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-subtotal-block","version":"1.0.0","title":"Subtotal","description":"Shows the cart subtotal row.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-fee-block","version":"1.0.0","title":"Fees","description":"Shows the cart fee row.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-discount-block","version":"1.0.0","title":"Discount","description":"Shows the cart discount row.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-shipping-block","version":"1.0.0","title":"Shipping","description":"Shows the cart shipping row.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-coupon-form-block","version":"1.0.0","title":"Coupon Form","description":"Shows the apply coupon form.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":false,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-taxes-block","version":"1.0.0","title":"Taxes","description":"Shows the cart taxes row.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-cart-items-block","version":"1.0.0","title":"Cart Items","description":"Shows cart items.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"lock":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/checkout-order-summary-block"],"textdomain":"woo-gutenberg-products-block","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout","version":"1.0.0","title":"Checkout","description":"Display a checkout form so your customers can submit orders.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":["wide"],"html":false,"multiple":false},"attributes":{"isPreview":{"type":"boolean","default":false,"save":false},"showCompanyField":{"type":"boolean","default":false},"requireCompanyField":{"type":"boolean","default":false},"allowCreateAccount":{"type":"boolean","default":false},"showApartmentField":{"type":"boolean","default":true},"showPhoneField":{"type":"boolean","default":true},"requirePhoneField":{"type":"boolean","default":false}},"textdomain":"woo-gutenberg-products-block","apiVersion":2}')},,,,,,,,,,,,function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return l}));var n=r(0),o=r(3),s=r(11),c=r.n(s);const a=Object(n.createContext)({getValidationError:()=>"",setValidationErrors:e=>{},clearValidationError:e=>{},clearAllValidationErrors:()=>{},hideValidationError:()=>{},showValidationError:()=>{},showAllValidationErrors:()=>{},hasValidationErrors:!1,getValidationErrorId:e=>e}),i=()=>Object(n.useContext)(a),l=e=>{let{children:t}=e;const[r,s]=Object(n.useState)({}),i=Object(n.useCallback)(e=>r[e],[r]),l=Object(n.useCallback)(e=>{const t=r[e];return!t||t.hidden?"":"validate-error-"+e},[r]),u=Object(n.useCallback)(e=>{s(t=>{if(!t[e])return t;const{[e]:r,...n}=t;return n})},[]),d=Object(n.useCallback)(()=>{s({})},[]),p=Object(n.useCallback)(e=>{e&&s(t=>(e=Object(o.pickBy)(e,(e,r)=>!("string"!=typeof e.message||t.hasOwnProperty(r)&&c()(t[r],e))),0===Object.values(e).length?t:{...t,...e}))},[]),m=Object(n.useCallback)((e,t)=>{s(r=>{if(!r.hasOwnProperty(e))return r;const n={...r[e],...t};return c()(r[e],n)?r:{...r,[e]:n}})},[]),f={getValidationError:i,setValidationErrors:p,clearValidationError:u,clearAllValidationErrors:d,hideValidationError:Object(n.useCallback)(e=>{m(e,{hidden:!0})},[m]),showValidationError:Object(n.useCallback)(e=>{m(e,{hidden:!1})},[m]),showAllValidationErrors:Object(n.useCallback)(()=>{s(e=>{const t={};return Object.keys(e).forEach(r=>{e[r].hidden&&(t[r]={...e[r],hidden:!1})}),0===Object.values(t).length?e:{...e,...t}})},[]),hasValidationErrors:Object.keys(r).length>0,getValidationErrorId:l};return Object(n.createElement)(a.Provider,{value:f},t)}},,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(94);const o=(e,t)=>function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;const s=n.a.addEventCallback(e,r,o);return t(s),()=>{t(n.a.removeEventCallback(e,s.id))}}},function(e,t){},function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return c}));const n=(e,t)=>e[t]?Array.from(e[t].values()).sort((e,t)=>e.priority-t.priority):[];var o=r(30);const s=async(e,t,r)=>{const o=n(e,t),s=[];for(const e of o)try{const t=await Promise.resolve(e.callback(r));"object"==typeof t&&s.push(t)}catch(e){console.error(e)}return!s.length||s},c=async(e,t,r)=>{const s=[],c=n(e,t);for(const e of c)try{const t=await Promise.resolve(e.callback(r));if("object"!=typeof t||null===t)continue;if(!t.hasOwnProperty("type"))throw new Error("Returned objects from event emitter observers must return an object with a type property");if(Object(o.a)(t)||Object(o.b)(t))return s.push(t),s;s.push(t)}catch(e){return console.error(e),s.push({type:"error"}),s}return s}},function(e,t,r){"use strict";r.d(t,"b",(function(){return U})),r.d(t,"a",(function(){return V}));var n=r(0),o=r(19),s=r(7);let c,a;!function(e){e.PRISTINE="pristine",e.STARTED="started",e.PROCESSING="processing",e.ERROR="has_error",e.FAILED="failed",e.SUCCESS="success",e.COMPLETE="complete"}(c||(c={})),function(e){e.SET_REGISTERED_PAYMENT_METHODS="set_registered_payment_methods",e.SET_REGISTERED_EXPRESS_PAYMENT_METHODS="set_registered_express_payment_methods",e.SET_SHOULD_SAVE_PAYMENT_METHOD="set_should_save_payment_method",e.SET_ACTIVE_PAYMENT_METHOD="set_active_payment_method"}(a||(a={}));const i={currentStatus:c.PRISTINE,shouldSavePaymentMethod:!1,activePaymentMethod:"",paymentMethodData:{payment_method:""},errorMessage:"",paymentMethods:{},expressPaymentMethods:{}},l={setPaymentStatus:()=>({pristine:()=>{},started:()=>{},processing:()=>{},completed:()=>{},error:e=>{},failed:(e,t)=>{},success:(e,t)=>{}}),currentStatus:{isPristine:!0,isStarted:!1,isProcessing:!1,isFinished:!1,hasError:!1,hasFailed:!1,isSuccessful:!1,isDoingExpressPayment:!1},paymentStatuses:c,paymentMethodData:{},errorMessage:"",activePaymentMethod:"",activeSavedToken:"",setActivePaymentMethod:()=>{},customerPaymentMethods:{},paymentMethods:{},expressPaymentMethods:{},paymentMethodsInitialized:!1,expressPaymentMethodsInitialized:!1,onPaymentProcessing:()=>()=>()=>{},setExpressPaymentError:()=>{},isExpressPaymentMethodActive:!1,setShouldSavePayment:()=>{},shouldSavePayment:!1};var u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,{type:t,paymentMethodData:r,shouldSavePaymentMethod:n=!1,errorMessage:o="",paymentMethods:s={},paymentMethod:l=""}=arguments.length>1?arguments[1]:void 0;switch(t){case c.PRISTINE:return{...i,...e,errorMessage:"",currentStatus:c.PRISTINE};case c.STARTED:return{...e,currentStatus:c.STARTED};case c.ERROR:return e.currentStatus!==c.ERROR?{...e,currentStatus:c.ERROR,errorMessage:o||e.errorMessage}:e;case c.FAILED:return e.currentStatus!==c.FAILED?{...e,currentStatus:c.FAILED,paymentMethodData:r||e.paymentMethodData,errorMessage:o||e.errorMessage}:e;case c.SUCCESS:return e.currentStatus!==c.SUCCESS?{...e,currentStatus:c.SUCCESS,paymentMethodData:r||e.paymentMethodData}:e;case c.PROCESSING:return e.currentStatus!==c.PROCESSING?{...e,currentStatus:c.PROCESSING,errorMessage:""}:e;case c.COMPLETE:return e.currentStatus!==c.COMPLETE?{...e,currentStatus:c.COMPLETE}:e;case a.SET_REGISTERED_PAYMENT_METHODS:return{...e,paymentMethods:s};case a.SET_REGISTERED_EXPRESS_PAYMENT_METHODS:return{...e,expressPaymentMethods:s};case a.SET_SHOULD_SAVE_PAYMENT_METHOD:return{...e,shouldSavePaymentMethod:n};case a.SET_ACTIVE_PAYMENT_METHOD:return{...e,activePaymentMethod:l,paymentMethodData:r||e.paymentMethodData}}},d=r(1),p=r(16),m=r(31),f=r(2),h=r(50),b=r(23),g=r.n(b),y=r(28),E=r(49),_=r(32),O=r(30),v=r(66);const k=(e,t,r,o)=>{const[c,a]=Object(n.useState)(!1),{isEditor:i}=Object(y.a)(),{selectedRates:l}=Object(v.a)(),{billingAddress:u,shippingAddress:p}=Object(E.b)(),b=Object(m.a)(l),O=Object(m.a)(r),k=Object(_.a)(),{cartTotals:S,cartIsLoading:w,cartNeedsShipping:j,paymentRequirements:C}=k,R=Object(n.useRef)({cart:k,cartTotals:S,cartNeedsShipping:j,billingData:u,billingAddress:u,shippingAddress:p,selectedShippingMethods:b,paymentRequirements:C}),{createErrorNotice:T}=Object(s.useDispatch)("core/notices");Object(n.useEffect)(()=>{R.current={cart:k,cartTotals:S,cartNeedsShipping:j,get billingData(){return g()("billingData",{alternative:"billingAddress",plugin:"woocommerce-gutenberg-products-block",link:"https://github.com/woocommerce/woocommerce-blocks/pull/6369"}),this.billingAddress},billingAddress:u,shippingAddress:p,selectedShippingMethods:b,paymentRequirements:C}},[k,S,j,u,p,b,C]);const x=Object(n.useCallback)(async()=>{let r={};const n=e=>{r={...r,[e.name]:e}};for(let e=0;e<O.length;e++){const r=O[e],s=t[r];if(s)try{const e=!!i||await Promise.resolve(s.canMakePayment(R.current));if(e){if("object"==typeof e&&null!==e&&e.error)throw new Error(e.error.message);n(s)}}catch(e){if(f.CURRENT_USER_IS_ADMIN||i){const t=Object(d.sprintf)(
|
build/checkout.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-checkout', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-price-format', '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-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-checkout', 'wc-blocks-data-store', 'wc-blocks-registry', 'wc-price-format', '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-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '2e3bddf2d756db7a079181c8d236f477');
|
build/checkout.js
CHANGED
@@ -39,7 +39,7 @@ Object(d.__)("%1$s ending in %2$s (expires %3$s)","woo-gutenberg-products-block"
|
|
39 |
/* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card. */
|
40 |
Object(d.__)("%1$s ending in %2$s","woo-gutenberg-products-block"),t.brand,t.last4):Object(d.sprintf)(
|
41 |
/* translators: %s is the name of the payment method gateway. */
|
42 |
-
Object(d.__)("Saved token for %s","woo-gutenberg-products-block"),t.gateway)};var Xe=()=>{var e,t;const{customerPaymentMethods:c,activePaymentMethod:r,setActivePaymentMethod:n,activeSavedToken:s}=Object(pe.b)(),{paymentMethods:a}=Object(me.b)(),l=Object(Fe.a)(),{noticeContexts:i}=Object(Ue.d)(),{removeNotice:u}=Object(ie.useDispatch)("core/notices"),{dispatchCheckoutEvent:d}=Object($.a)(),b=Object(o.useMemo)(()=>Object.keys(c).flatMap(e=>c[e].map(t=>{const c="cc"===e||"echeck"===e,o=t.method.gateway;return{name:"wc-saved-payment-method-token-"+o,label:c?We(t):Ke(t),value:t.tokenId.toString(),onChange:e=>{n(o,{token:e,payment_method:o,[`wc-${o}-payment-token`]:e.toString(),isSavedToken:!0}),u("wc-payment-error",i.PAYMENTS),d("set-active-payment-method",{paymentMethodSlug:o})}}})).filter(Boolean),[c,n,u,i.PAYMENTS,d]),p=s&&a[r]&&null!==(e=a[r])&&void 0!==e&&e.savedTokenComponent?Object(o.cloneElement)(null===(t=a[r])||void 0===t?void 0:t.savedTokenComponent,{token:s,...l}):null;return b.length>0?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(ze.a,{id:"wc-payment-method-saved-tokens",selected:s,options:b}),p):null},Qe=()=>{const{isInitialized:e,paymentMethods:t}=Object(me.b)(),{customerPaymentMethods:c}=Object(pe.b)();return e&&0===Object.keys(t).length?Object(o.createElement)(Le,null):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(Xe,null),Object.keys(c).length>0&&Object(o.createElement)(Ae.a,{label:Object(d.__)("Use another payment method.","woo-gutenberg-products-block"),screenReaderLabel:Object(d.__)("Other available payment methods","woo-gutenberg-products-block"),wrapperElement:"p",wrapperProps:{className:["wc-block-components-checkout-step__description wc-block-components-checkout-step__description-payments-aligned"]}}),Object(o.createElement)(Ye,null))},Ze=()=>Object(o.createElement)(Qe,null),Je={...K({defaultTitle:Object(d.__)("Payment options","woo-gutenberg-products-block"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}};Object(i.d)("woocommerce/checkout-payment-block",{icon:{src:Object(o.createElement)(l.a,{icon:Re.a,className:"wc-block-editor-components-block-icon"})},attributes:Je,edit:e=>{let{attributes:t,setAttributes:c}=e;const r=Object(k.getSetting)("globalPaymentMethods");return Object(o.createElement)(D,{attributes:t,setAttributes:c,className:n()("wc-block-checkout__payment-method",null==t?void 0:t.className)},Object(o.createElement)(b.InspectorControls,null,r.length>0&&Object(o.createElement)(_.PanelBody,{title:Object(d.__)("Methods","woo-gutenberg-products-block")},Object(o.createElement)("p",{className:"wc-block-checkout__controls-text"},Object(d.__)("You currently have the following payment integrations active.","woo-gutenberg-products-block")),r.map(e=>Object(o.createElement)(Te,{key:e.id,href:`${k.ADMIN_URL}admin.php?page=wc-settings&tab=checkout§ion=${e.id}`,title:e.title,description:e.description})),Object(o.createElement)(_.ExternalLink,{href:k.ADMIN_URL+"admin.php?page=wc-settings&tab=checkout"},Object(d.__)("Manage payment methods","woo-gutenberg-products-block")))),Object(o.createElement)(H.a,null,Object(o.createElement)(Ze,null)),Object(o.createElement)(B,{block:v.innerBlockAreas.PAYMENT_METHODS}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save(),Object(o.createElement)(L,null))});var et=c(224),tt=c(71),ct=c(202);c(247);var ot=()=>{const{isCalculating:e,isProcessing:t,isAfterProcessing:c,isBeforeProcessing:r,isComplete:n,hasError:s}=Object(U.b)(),{currentStatus:a}=Object(pe.b)(),{paymentMethods:l,isInitialized:i}=Object(me.a)(),{isEditor:u}=Object(m.b)(),{noticeContexts:b}=Object(Ue.d)();if(!i||i&&0===Object.keys(l).length)return u||k.CURRENT_USER_IS_ADMIN?Object(o.createElement)(et.a,{context:b.EXPRESS_PAYMENTS}):null;const p=t||c||r||n&&!s;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(tt.a,{isLoading:e||p||a.isDoingExpressPayment},Object(o.createElement)("div",{className:"wc-block-components-express-payment wc-block-components-express-payment--checkout"},Object(o.createElement)("div",{className:"wc-block-components-express-payment__title-container"},Object(o.createElement)(I.a,{className:"wc-block-components-express-payment__title",headingLevel:"2"},Object(d.__)("Express checkout","woo-gutenberg-products-block"))),Object(o.createElement)("div",{className:"wc-block-components-express-payment__content"},Object(o.createElement)(et.a,{context:b.EXPRESS_PAYMENTS}),Object(o.createElement)("p",null,Object(d.__)("In a hurry? Use one of our express checkout options:","woo-gutenberg-products-block")),Object(o.createElement)(ct.a,null)))),Object(o.createElement)("div",{className:"wc-block-components-express-payment-continue-rule wc-block-components-express-payment-continue-rule--checkout"},Object(d.__)("Or continue below","woo-gutenberg-products-block")))},rt=e=>{let{className:t}=e;const{cartNeedsPayment:c}=Object(Ne.a)();return c?Object(o.createElement)("div",{className:t},Object(o.createElement)(ot,null)):null};c(430);const nt=()=>Object(o.createElement)(xe.a,{icon:Object(o.createElement)(l.a,{icon:Re.a}),label:Object(d.__)("Express Checkout","woo-gutenberg-products-block"),className:"wp-block-woocommerce-checkout-express-payment-block-placeholder"},Object(o.createElement)("span",{className:"wp-block-woocommerce-checkout-express-payment-block-placeholder__description"},Object(d.__)("Your store doesn't have any Payment Methods that support the Express Checkout Block. If they are added, they will be shown here.","woo-gutenberg-products-block")),Object(o.createElement)(Ie.a,{isPrimary:!0,href:k.ADMIN_URL+"admin.php?page=wc-settings&tab=checkout",target:"_blank",rel:"noopener noreferrer",className:"wp-block-woocommerce-checkout-express-payment-block-placeholder__button"},Object(d.__)("Configure Payment Methods","woo-gutenberg-products-block")));Object(i.d)("woocommerce/checkout-express-payment-block",{icon:{src:Object(o.createElement)(l.a,{icon:Re.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{paymentMethods:c,isInitialized:r}=Object(me.a)(),s=Object.keys(c).length>0,a=Object(b.useBlockProps)({className:n()({"wp-block-woocommerce-checkout-express-payment-block--has-express-payment-methods":s},null==t?void 0:t.className),attributes:t});return r?Object(o.createElement)("div",a,s?Object(o.createElement)(rt,null):Object(o.createElement)(nt,null)):null},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var st=c(521),at=c(209),lt=c(412),it=c(37),ut=c(13);c(432);var dt=()=>Object(o.createElement)(xe.a,{icon:Object(o.createElement)(l.a,{icon:st.a}),label:Object(d.__)("Shipping options","woo-gutenberg-products-block"),className:"wc-block-checkout__no-shipping-placeholder"},Object(o.createElement)("span",{className:"wc-block-checkout__no-shipping-placeholder-description"},Object(d.__)("Your store does not have any Shipping Options configured. Once you have added your Shipping Options they will appear here.","woo-gutenberg-products-block")),Object(o.createElement)(Ie.a,{isSecondary:!0,href:k.ADMIN_URL+"admin.php?page=wc-settings&tab=shipping",target:"_blank",rel:"noopener noreferrer"},Object(d.__)("Configure Shipping Options","woo-gutenberg-products-block")));c(431);const bt=e=>{const t=Object(k.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:Object(ut.decodeEntities)(e.name),value:e.rate_id,description:Object(ut.decodeEntities)(e.description),secondaryLabel:Object(o.createElement)(it.a,{currency:Object(Ce.getCurrencyFromPriceResponse)(e),value:t}),secondaryDescription:Object(ut.decodeEntities)(e.delivery_time)}};var pt=()=>{const{isEditor:e}=Object(m.b)(),{shippingRates:t,needsShipping:c,isLoadingRates:r,hasCalculatedShipping:s}=Object(G.a)();if(!c)return null;const a=Object(lt.a)(t);return e||s||a?Object(o.createElement)(o.Fragment,null,e&&!a?Object(o.createElement)(dt,null):Object(o.createElement)(at.a,{noResultsMessage:Object(o.createElement)(Me.a,{isDismissible:!1,className:n()("wc-block-components-shipping-rates-control__no-results-notice","woocommerce-error")},Object(d.__)("There are no shipping options available. Please check your shipping address.","woo-gutenberg-products-block")),renderOption:bt,shippingRates:t,isLoadingRates:r,context:"woocommerce/checkout"})):Object(o.createElement)("p",null,Object(d.__)("Shipping options will be displayed here after entering your full shipping address.","woo-gutenberg-products-block"))},mt={...K({defaultTitle:Object(d.__)("Shipping options","woo-gutenberg-products-block"),defaultDescription:""}),allowCreateAccount:{type:"boolean",default:!1},className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}};Object(i.d)("woocommerce/checkout-shipping-methods-block",{icon:{src:Object(o.createElement)(l.a,{icon:st.a,className:"wc-block-editor-components-block-icon"})},attributes:mt,edit:e=>{let{attributes:t,setAttributes:c}=e;const r=Object(k.getSetting)("globalShippingMethods"),s=Object(k.getSetting)("activeShippingZones");return Object(o.createElement)(D,{attributes:t,setAttributes:c,className:n()("wc-block-checkout__shipping-option",null==t?void 0:t.className)},Object(o.createElement)(b.InspectorControls,null,r.length>0&&Object(o.createElement)(_.PanelBody,{title:Object(d.__)("Methods","woo-gutenberg-products-block")},Object(o.createElement)("p",{className:"wc-block-checkout__controls-text"},Object(d.__)("You currently have the following shipping integrations active.","woo-gutenberg-products-block")),r.map(e=>Object(o.createElement)(Te,{key:e.id,href:`${k.ADMIN_URL}admin.php?page=wc-settings&tab=shipping§ion=${e.id}`,title:e.title,description:e.description})),Object(o.createElement)(_.ExternalLink,{href:k.ADMIN_URL+"admin.php?page=wc-settings&tab=shipping"},Object(d.__)("Manage shipping methods","woo-gutenberg-products-block"))),s.length&&Object(o.createElement)(_.PanelBody,{title:Object(d.__)("Zones","woo-gutenberg-products-block")},Object(o.createElement)("p",{className:"wc-block-checkout__controls-text"},Object(d.__)("You currently have the following shipping zones active.","woo-gutenberg-products-block")),s.map(e=>Object(o.createElement)(Te,{key:e.id,href:`${k.ADMIN_URL}admin.php?page=wc-settings&tab=shipping&zone_id=${e.id}`,title:e.title,description:e.description})),Object(o.createElement)(_.ExternalLink,{href:k.ADMIN_URL+"admin.php?page=wc-settings&tab=shipping"},Object(d.__)("Manage shipping zones","woo-gutenberg-products-block")))),Object(o.createElement)(H.a,null,Object(o.createElement)(pt,null)),Object(o.createElement)(B,{block:v.innerBlockAreas.SHIPPING_METHODS}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save(),Object(o.createElement)(L,null))});var gt=e=>{let{className:t=""}=e;const{cartTotals:c}=Object(Ne.a)(),r=Object(Ce.getCurrencyFromPriceResponse)(c);return Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(v.Subtotal,{currency:r,values:c}))};Object(i.d)("woocommerce/checkout-order-summary-subtotal-block",{icon:{src:Object(o.createElement)(l.a,{icon:ve.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(b.useBlockProps)();return Object(o.createElement)("div",r,Object(o.createElement)(gt,{className:c}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var ht=e=>{let{className:t=""}=e;const{cartFees:c,cartTotals:r}=Object(Ne.a)(),n=Object(Ce.getCurrencyFromPriceResponse)(r);return Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(v.TotalsFees,{currency:n,cartFees:c}))};Object(i.d)("woocommerce/checkout-order-summary-fee-block",{icon:{src:Object(o.createElement)(l.a,{icon:ve.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(b.useBlockProps)();return Object(o.createElement)("div",r,Object(o.createElement)(ht,{className:c}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var Ot=c(411),_t=c(203);const jt=()=>{const{extensions:e,receiveCart:t,...c}=Object(Ne.a)(),r={extensions:e,cart:c,context:"woocommerce/checkout"};return Object(o.createElement)(v.ExperimentalDiscountsMeta.Slot,r)};var Et=e=>{let{className:t=""}=e;const{cartTotals:c,cartCoupons:r}=Object(Ne.a)(),{removeCoupon:n,isRemovingCoupon:s}=Object(_t.a)("wc/checkout"),a=Object(Ce.getCurrencyFromPriceResponse)(c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(Ot.a,{cartCoupons:r,currency:a,isRemovingCoupon:s,removeCoupon:n,values:c})),Object(o.createElement)(jt,null))};Object(i.d)("woocommerce/checkout-order-summary-discount-block",{icon:{src:Object(o.createElement)(l.a,{icon:ve.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(b.useBlockProps)();return Object(o.createElement)("div",r,Object(o.createElement)(Et,{className:c}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var kt=c(454),ft=e=>{let{className:t=""}=e;const{cartTotals:c,cartNeedsShipping:r}=Object(Ne.a)();if(!r)return null;const n=Object(Ce.getCurrencyFromPriceResponse)(c);return Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(kt.a,{showCalculator:!1,showRateSelector:!1,values:c,currency:n}))};Object(i.d)("woocommerce/checkout-order-summary-shipping-block",{icon:{src:Object(o.createElement)(l.a,{icon:ve.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(b.useBlockProps)();return Object(o.createElement)("div",r,Object(o.createElement)(H.a,null,Object(o.createElement)(ft,{className:c})))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var yt=c(500),wt=c(413),vt=e=>{let{className:t=""}=e;const c=Object(k.getSetting)("couponsEnabled",!0),{applyCoupon:r,isApplyingCoupon:n}=Object(_t.a)("wc/checkout");return c?Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(wt.a,{onSubmit:r,isLoading:n})):null};Object(i.d)("woocommerce/checkout-order-summary-coupon-form-block",{icon:{src:Object(o.createElement)(l.a,{icon:yt.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(b.useBlockProps)();return Object(o.createElement)("div",r,Object(o.createElement)(H.a,null,Object(o.createElement)(vt,{className:c})))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var St=e=>{let{className:t,showRateAfterTaxName:c}=e;const{cartTotals:r}=Object(Ne.a)();if(Object(k.getSetting)("displayCartPricesIncludingTax",!1)||parseInt(r.total_tax,10)<=0)return null;const n=Object(Ce.getCurrencyFromPriceResponse)(r);return Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(v.TotalsTaxes,{showRateAfterTaxName:c,currency:n,values:r}))},Ct={showRateAfterTaxName:{type:"boolean",default:Object(k.getSetting)("displayCartPricesIncludingTax",!1)},lock:{type:"object",default:{remove:!0,move:!1}}};Object(i.d)("woocommerce/checkout-order-summary-taxes-block",{icon:{src:Object(o.createElement)(l.a,{icon:ve.a,className:"wc-block-editor-components-block-icon"})},attributes:Ct,edit:e=>{let{attributes:t,setAttributes:c}=e;const{className:r,showRateAfterTaxName:n}=t,s=Object(b.useBlockProps)(),a=Object(k.getSetting)("taxesEnabled"),l=Object(k.getSetting)("displayItemizedTaxes",!1),i=Object(k.getSetting)("displayCartPricesIncludingTax",!1);return Object(o.createElement)("div",s,Object(o.createElement)(b.InspectorControls,null,a&&l&&!i&&Object(o.createElement)(_.PanelBody,{title:Object(d.__)("Taxes","woo-gutenberg-products-block")},Object(o.createElement)(_.ToggleControl,{label:Object(d.__)("Show rate after tax name","woo-gutenberg-products-block"),help:Object(d.__)("Show the percentage rate alongside each tax line in the summary.","woo-gutenberg-products-block"),checked:n,onChange:()=>c({showRateAfterTaxName:!n})}))),Object(o.createElement)(St,{className:r,showRateAfterTaxName:n}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var Nt=c(241),Pt=c(273),Rt=c(95),Tt=c(117),At=c(113),xt=c(110),It=c(219),Mt=c(218),Dt=c(220),Bt=c(221);const Lt=e=>Object(v.mustContain)(e,"<price/>");var Ft=e=>{let{cartItem:t}=e;const{images:c,low_stock_remaining:r,show_backorder_badge:s,name:a,permalink:l,prices:i,quantity:u,short_description:b,description:p,item_data:m,variation:g,totals:h,extensions:O}=t,{receiveCart:_,...j}=Object(Ne.a)(),E=Object(o.useMemo)(()=>({context:"summary",cartItem:t,cart:j}),[t,j]),f=Object(Ce.getCurrencyFromPriceResponse)(i),y=Object(v.__experimentalApplyCheckoutFilter)({filterName:"itemName",defaultValue:a,extensions:O,arg:E}),w=Object(At.a)({amount:parseInt(i.raw_prices.regular_price,10),precision:Object(xt.a)(i.raw_prices.precision)?parseInt(i.raw_prices.precision,10):i.raw_prices.precision}).convertPrecision(f.minorUnit).getAmount(),S=Object(At.a)({amount:parseInt(i.raw_prices.price,10),precision:Object(xt.a)(i.raw_prices.precision)?parseInt(i.raw_prices.precision,10):i.raw_prices.precision}).convertPrecision(f.minorUnit).getAmount(),C=Object(Ce.getCurrencyFromPriceResponse)(h);let N=parseInt(h.line_subtotal,10);Object(k.getSetting)("displayCartPricesIncludingTax",!1)&&(N+=parseInt(h.line_subtotal_tax,10));const P=Object(At.a)({amount:N,precision:C.minorUnit}).getAmount(),R=Object(v.__experimentalApplyCheckoutFilter)({filterName:"subtotalPriceFormat",defaultValue:"<price/>",extensions:O,arg:E,validation:Lt}),T=Object(v.__experimentalApplyCheckoutFilter)({filterName:"cartItemPrice",defaultValue:"<price/>",extensions:O,arg:E,validation:Lt}),A=Object(v.__experimentalApplyCheckoutFilter)({filterName:"cartItemClass",defaultValue:"",extensions:O,arg:E});return Object(o.createElement)("div",{className:n()("wc-block-components-order-summary-item",A)},Object(o.createElement)("div",{className:"wc-block-components-order-summary-item__image"},Object(o.createElement)("div",{className:"wc-block-components-order-summary-item__quantity"},Object(o.createElement)(Ae.a,{label:u.toString(),screenReaderLabel:Object(d.sprintf)(
|
43 |
/* translators: %d number of products of the same type in the cart */
|
44 |
Object(d._n)("%d item","%d items",u,"woo-gutenberg-products-block"),u)})),Object(o.createElement)(Mt.a,{image:c.length?c[0]:{},fallbackAlt:y})),Object(o.createElement)("div",{className:"wc-block-components-order-summary-item__description"},Object(o.createElement)(Tt.a,{disabled:!0,name:y,permalink:l}),Object(o.createElement)(Rt.a,{currency:f,price:S,regularPrice:w,className:"wc-block-components-order-summary-item__individual-prices",priceClassName:"wc-block-components-order-summary-item__individual-price",regularPriceClassName:"wc-block-components-order-summary-item__regular-individual-price",format:R}),s?Object(o.createElement)(It.a,null):!!r&&Object(o.createElement)(Dt.a,{lowStockRemaining:r}),Object(o.createElement)(Bt.a,{shortDescription:b,fullDescription:p,itemData:m,variation:g})),Object(o.createElement)("span",{className:"screen-reader-text"},Object(d.sprintf)(
|
45 |
/* translators: %1$d is the number of items, %2$s is the item name and %3$s is the total price including the currency symbol. */
|
39 |
/* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card. */
|
40 |
Object(d.__)("%1$s ending in %2$s","woo-gutenberg-products-block"),t.brand,t.last4):Object(d.sprintf)(
|
41 |
/* translators: %s is the name of the payment method gateway. */
|
42 |
+
Object(d.__)("Saved token for %s","woo-gutenberg-products-block"),t.gateway)};var Xe=()=>{var e,t;const{customerPaymentMethods:c,activePaymentMethod:r,setActivePaymentMethod:n,activeSavedToken:s}=Object(pe.b)(),{paymentMethods:a}=Object(me.b)(),l=Object(Fe.a)(),{noticeContexts:i}=Object(Ue.d)(),{removeNotice:u}=Object(ie.useDispatch)("core/notices"),{dispatchCheckoutEvent:d}=Object($.a)(),b=Object(o.useMemo)(()=>Object.keys(c).flatMap(e=>c[e].map(t=>{const c="cc"===e||"echeck"===e,o=t.method.gateway;return{name:"wc-saved-payment-method-token-"+o,label:c?We(t):Ke(t),value:t.tokenId.toString(),onChange:e=>{n(o,{token:e,payment_method:o,[`wc-${o}-payment-token`]:e.toString(),isSavedToken:!0}),u("wc-payment-error",i.PAYMENTS),d("set-active-payment-method",{paymentMethodSlug:o})}}})).filter(Boolean),[c,n,u,i.PAYMENTS,d]),p=s&&a[r]&&null!==(e=a[r])&&void 0!==e&&e.savedTokenComponent?Object(o.cloneElement)(null===(t=a[r])||void 0===t?void 0:t.savedTokenComponent,{token:s,...l}):null;return b.length>0?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(ze.a,{id:"wc-payment-method-saved-tokens",selected:s,options:b,onChange:()=>{}}),p):null},Qe=()=>{const{isInitialized:e,paymentMethods:t}=Object(me.b)(),{customerPaymentMethods:c}=Object(pe.b)();return e&&0===Object.keys(t).length?Object(o.createElement)(Le,null):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(Xe,null),Object.keys(c).length>0&&Object(o.createElement)(Ae.a,{label:Object(d.__)("Use another payment method.","woo-gutenberg-products-block"),screenReaderLabel:Object(d.__)("Other available payment methods","woo-gutenberg-products-block"),wrapperElement:"p",wrapperProps:{className:["wc-block-components-checkout-step__description wc-block-components-checkout-step__description-payments-aligned"]}}),Object(o.createElement)(Ye,null))},Ze=()=>Object(o.createElement)(Qe,null),Je={...K({defaultTitle:Object(d.__)("Payment options","woo-gutenberg-products-block"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}};Object(i.d)("woocommerce/checkout-payment-block",{icon:{src:Object(o.createElement)(l.a,{icon:Re.a,className:"wc-block-editor-components-block-icon"})},attributes:Je,edit:e=>{let{attributes:t,setAttributes:c}=e;const r=Object(k.getSetting)("globalPaymentMethods");return Object(o.createElement)(D,{attributes:t,setAttributes:c,className:n()("wc-block-checkout__payment-method",null==t?void 0:t.className)},Object(o.createElement)(b.InspectorControls,null,r.length>0&&Object(o.createElement)(_.PanelBody,{title:Object(d.__)("Methods","woo-gutenberg-products-block")},Object(o.createElement)("p",{className:"wc-block-checkout__controls-text"},Object(d.__)("You currently have the following payment integrations active.","woo-gutenberg-products-block")),r.map(e=>Object(o.createElement)(Te,{key:e.id,href:`${k.ADMIN_URL}admin.php?page=wc-settings&tab=checkout§ion=${e.id}`,title:e.title,description:e.description})),Object(o.createElement)(_.ExternalLink,{href:k.ADMIN_URL+"admin.php?page=wc-settings&tab=checkout"},Object(d.__)("Manage payment methods","woo-gutenberg-products-block")))),Object(o.createElement)(H.a,null,Object(o.createElement)(Ze,null)),Object(o.createElement)(B,{block:v.innerBlockAreas.PAYMENT_METHODS}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save(),Object(o.createElement)(L,null))});var et=c(224),tt=c(71),ct=c(202);c(247);var ot=()=>{const{isCalculating:e,isProcessing:t,isAfterProcessing:c,isBeforeProcessing:r,isComplete:n,hasError:s}=Object(U.b)(),{currentStatus:a}=Object(pe.b)(),{paymentMethods:l,isInitialized:i}=Object(me.a)(),{isEditor:u}=Object(m.b)(),{noticeContexts:b}=Object(Ue.d)();if(!i||i&&0===Object.keys(l).length)return u||k.CURRENT_USER_IS_ADMIN?Object(o.createElement)(et.a,{context:b.EXPRESS_PAYMENTS}):null;const p=t||c||r||n&&!s;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(tt.a,{isLoading:e||p||a.isDoingExpressPayment},Object(o.createElement)("div",{className:"wc-block-components-express-payment wc-block-components-express-payment--checkout"},Object(o.createElement)("div",{className:"wc-block-components-express-payment__title-container"},Object(o.createElement)(I.a,{className:"wc-block-components-express-payment__title",headingLevel:"2"},Object(d.__)("Express checkout","woo-gutenberg-products-block"))),Object(o.createElement)("div",{className:"wc-block-components-express-payment__content"},Object(o.createElement)(et.a,{context:b.EXPRESS_PAYMENTS}),Object(o.createElement)("p",null,Object(d.__)("In a hurry? Use one of our express checkout options:","woo-gutenberg-products-block")),Object(o.createElement)(ct.a,null)))),Object(o.createElement)("div",{className:"wc-block-components-express-payment-continue-rule wc-block-components-express-payment-continue-rule--checkout"},Object(d.__)("Or continue below","woo-gutenberg-products-block")))},rt=e=>{let{className:t}=e;const{cartNeedsPayment:c}=Object(Ne.a)();return c?Object(o.createElement)("div",{className:t},Object(o.createElement)(ot,null)):null};c(430);const nt=()=>Object(o.createElement)(xe.a,{icon:Object(o.createElement)(l.a,{icon:Re.a}),label:Object(d.__)("Express Checkout","woo-gutenberg-products-block"),className:"wp-block-woocommerce-checkout-express-payment-block-placeholder"},Object(o.createElement)("span",{className:"wp-block-woocommerce-checkout-express-payment-block-placeholder__description"},Object(d.__)("Your store doesn't have any Payment Methods that support the Express Checkout Block. If they are added, they will be shown here.","woo-gutenberg-products-block")),Object(o.createElement)(Ie.a,{isPrimary:!0,href:k.ADMIN_URL+"admin.php?page=wc-settings&tab=checkout",target:"_blank",rel:"noopener noreferrer",className:"wp-block-woocommerce-checkout-express-payment-block-placeholder__button"},Object(d.__)("Configure Payment Methods","woo-gutenberg-products-block")));Object(i.d)("woocommerce/checkout-express-payment-block",{icon:{src:Object(o.createElement)(l.a,{icon:Re.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{paymentMethods:c,isInitialized:r}=Object(me.a)(),s=Object.keys(c).length>0,a=Object(b.useBlockProps)({className:n()({"wp-block-woocommerce-checkout-express-payment-block--has-express-payment-methods":s},null==t?void 0:t.className),attributes:t});return r?Object(o.createElement)("div",a,s?Object(o.createElement)(rt,null):Object(o.createElement)(nt,null)):null},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var st=c(521),at=c(209),lt=c(412),it=c(37),ut=c(13);c(432);var dt=()=>Object(o.createElement)(xe.a,{icon:Object(o.createElement)(l.a,{icon:st.a}),label:Object(d.__)("Shipping options","woo-gutenberg-products-block"),className:"wc-block-checkout__no-shipping-placeholder"},Object(o.createElement)("span",{className:"wc-block-checkout__no-shipping-placeholder-description"},Object(d.__)("Your store does not have any Shipping Options configured. Once you have added your Shipping Options they will appear here.","woo-gutenberg-products-block")),Object(o.createElement)(Ie.a,{isSecondary:!0,href:k.ADMIN_URL+"admin.php?page=wc-settings&tab=shipping",target:"_blank",rel:"noopener noreferrer"},Object(d.__)("Configure Shipping Options","woo-gutenberg-products-block")));c(431);const bt=e=>{const t=Object(k.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:Object(ut.decodeEntities)(e.name),value:e.rate_id,description:Object(ut.decodeEntities)(e.description),secondaryLabel:Object(o.createElement)(it.a,{currency:Object(Ce.getCurrencyFromPriceResponse)(e),value:t}),secondaryDescription:Object(ut.decodeEntities)(e.delivery_time)}};var pt=()=>{const{isEditor:e}=Object(m.b)(),{shippingRates:t,needsShipping:c,isLoadingRates:r,hasCalculatedShipping:s}=Object(G.a)();if(!c)return null;const a=Object(lt.a)(t);return e||s||a?Object(o.createElement)(o.Fragment,null,e&&!a?Object(o.createElement)(dt,null):Object(o.createElement)(at.a,{noResultsMessage:Object(o.createElement)(Me.a,{isDismissible:!1,className:n()("wc-block-components-shipping-rates-control__no-results-notice","woocommerce-error")},Object(d.__)("There are no shipping options available. Please check your shipping address.","woo-gutenberg-products-block")),renderOption:bt,shippingRates:t,isLoadingRates:r,context:"woocommerce/checkout"})):Object(o.createElement)("p",null,Object(d.__)("Shipping options will be displayed here after entering your full shipping address.","woo-gutenberg-products-block"))},mt={...K({defaultTitle:Object(d.__)("Shipping options","woo-gutenberg-products-block"),defaultDescription:""}),allowCreateAccount:{type:"boolean",default:!1},className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}};Object(i.d)("woocommerce/checkout-shipping-methods-block",{icon:{src:Object(o.createElement)(l.a,{icon:st.a,className:"wc-block-editor-components-block-icon"})},attributes:mt,edit:e=>{let{attributes:t,setAttributes:c}=e;const r=Object(k.getSetting)("globalShippingMethods"),s=Object(k.getSetting)("activeShippingZones");return Object(o.createElement)(D,{attributes:t,setAttributes:c,className:n()("wc-block-checkout__shipping-option",null==t?void 0:t.className)},Object(o.createElement)(b.InspectorControls,null,r.length>0&&Object(o.createElement)(_.PanelBody,{title:Object(d.__)("Methods","woo-gutenberg-products-block")},Object(o.createElement)("p",{className:"wc-block-checkout__controls-text"},Object(d.__)("You currently have the following shipping integrations active.","woo-gutenberg-products-block")),r.map(e=>Object(o.createElement)(Te,{key:e.id,href:`${k.ADMIN_URL}admin.php?page=wc-settings&tab=shipping§ion=${e.id}`,title:e.title,description:e.description})),Object(o.createElement)(_.ExternalLink,{href:k.ADMIN_URL+"admin.php?page=wc-settings&tab=shipping"},Object(d.__)("Manage shipping methods","woo-gutenberg-products-block"))),s.length&&Object(o.createElement)(_.PanelBody,{title:Object(d.__)("Zones","woo-gutenberg-products-block")},Object(o.createElement)("p",{className:"wc-block-checkout__controls-text"},Object(d.__)("You currently have the following shipping zones active.","woo-gutenberg-products-block")),s.map(e=>Object(o.createElement)(Te,{key:e.id,href:`${k.ADMIN_URL}admin.php?page=wc-settings&tab=shipping&zone_id=${e.id}`,title:e.title,description:e.description})),Object(o.createElement)(_.ExternalLink,{href:k.ADMIN_URL+"admin.php?page=wc-settings&tab=shipping"},Object(d.__)("Manage shipping zones","woo-gutenberg-products-block")))),Object(o.createElement)(H.a,null,Object(o.createElement)(pt,null)),Object(o.createElement)(B,{block:v.innerBlockAreas.SHIPPING_METHODS}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save(),Object(o.createElement)(L,null))});var gt=e=>{let{className:t=""}=e;const{cartTotals:c}=Object(Ne.a)(),r=Object(Ce.getCurrencyFromPriceResponse)(c);return Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(v.Subtotal,{currency:r,values:c}))};Object(i.d)("woocommerce/checkout-order-summary-subtotal-block",{icon:{src:Object(o.createElement)(l.a,{icon:ve.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(b.useBlockProps)();return Object(o.createElement)("div",r,Object(o.createElement)(gt,{className:c}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var ht=e=>{let{className:t=""}=e;const{cartFees:c,cartTotals:r}=Object(Ne.a)(),n=Object(Ce.getCurrencyFromPriceResponse)(r);return Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(v.TotalsFees,{currency:n,cartFees:c}))};Object(i.d)("woocommerce/checkout-order-summary-fee-block",{icon:{src:Object(o.createElement)(l.a,{icon:ve.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(b.useBlockProps)();return Object(o.createElement)("div",r,Object(o.createElement)(ht,{className:c}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var Ot=c(411),_t=c(203);const jt=()=>{const{extensions:e,receiveCart:t,...c}=Object(Ne.a)(),r={extensions:e,cart:c,context:"woocommerce/checkout"};return Object(o.createElement)(v.ExperimentalDiscountsMeta.Slot,r)};var Et=e=>{let{className:t=""}=e;const{cartTotals:c,cartCoupons:r}=Object(Ne.a)(),{removeCoupon:n,isRemovingCoupon:s}=Object(_t.a)("wc/checkout"),a=Object(Ce.getCurrencyFromPriceResponse)(c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(Ot.a,{cartCoupons:r,currency:a,isRemovingCoupon:s,removeCoupon:n,values:c})),Object(o.createElement)(jt,null))};Object(i.d)("woocommerce/checkout-order-summary-discount-block",{icon:{src:Object(o.createElement)(l.a,{icon:ve.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(b.useBlockProps)();return Object(o.createElement)("div",r,Object(o.createElement)(Et,{className:c}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var kt=c(454),ft=e=>{let{className:t=""}=e;const{cartTotals:c,cartNeedsShipping:r}=Object(Ne.a)();if(!r)return null;const n=Object(Ce.getCurrencyFromPriceResponse)(c);return Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(kt.a,{showCalculator:!1,showRateSelector:!1,values:c,currency:n}))};Object(i.d)("woocommerce/checkout-order-summary-shipping-block",{icon:{src:Object(o.createElement)(l.a,{icon:ve.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(b.useBlockProps)();return Object(o.createElement)("div",r,Object(o.createElement)(H.a,null,Object(o.createElement)(ft,{className:c})))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var yt=c(500),wt=c(413),vt=e=>{let{className:t=""}=e;const c=Object(k.getSetting)("couponsEnabled",!0),{applyCoupon:r,isApplyingCoupon:n}=Object(_t.a)("wc/checkout");return c?Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(wt.a,{onSubmit:r,isLoading:n})):null};Object(i.d)("woocommerce/checkout-order-summary-coupon-form-block",{icon:{src:Object(o.createElement)(l.a,{icon:yt.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(b.useBlockProps)();return Object(o.createElement)("div",r,Object(o.createElement)(H.a,null,Object(o.createElement)(vt,{className:c})))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var St=e=>{let{className:t,showRateAfterTaxName:c}=e;const{cartTotals:r}=Object(Ne.a)();if(Object(k.getSetting)("displayCartPricesIncludingTax",!1)||parseInt(r.total_tax,10)<=0)return null;const n=Object(Ce.getCurrencyFromPriceResponse)(r);return Object(o.createElement)(v.TotalsWrapper,{className:t},Object(o.createElement)(v.TotalsTaxes,{showRateAfterTaxName:c,currency:n,values:r}))},Ct={showRateAfterTaxName:{type:"boolean",default:Object(k.getSetting)("displayCartPricesIncludingTax",!1)},lock:{type:"object",default:{remove:!0,move:!1}}};Object(i.d)("woocommerce/checkout-order-summary-taxes-block",{icon:{src:Object(o.createElement)(l.a,{icon:ve.a,className:"wc-block-editor-components-block-icon"})},attributes:Ct,edit:e=>{let{attributes:t,setAttributes:c}=e;const{className:r,showRateAfterTaxName:n}=t,s=Object(b.useBlockProps)(),a=Object(k.getSetting)("taxesEnabled"),l=Object(k.getSetting)("displayItemizedTaxes",!1),i=Object(k.getSetting)("displayCartPricesIncludingTax",!1);return Object(o.createElement)("div",s,Object(o.createElement)(b.InspectorControls,null,a&&l&&!i&&Object(o.createElement)(_.PanelBody,{title:Object(d.__)("Taxes","woo-gutenberg-products-block")},Object(o.createElement)(_.ToggleControl,{label:Object(d.__)("Show rate after tax name","woo-gutenberg-products-block"),help:Object(d.__)("Show the percentage rate alongside each tax line in the summary.","woo-gutenberg-products-block"),checked:n,onChange:()=>c({showRateAfterTaxName:!n})}))),Object(o.createElement)(St,{className:r,showRateAfterTaxName:n}))},save:()=>Object(o.createElement)("div",b.useBlockProps.save())});var Nt=c(241),Pt=c(273),Rt=c(95),Tt=c(117),At=c(113),xt=c(110),It=c(219),Mt=c(218),Dt=c(220),Bt=c(221);const Lt=e=>Object(v.mustContain)(e,"<price/>");var Ft=e=>{let{cartItem:t}=e;const{images:c,low_stock_remaining:r,show_backorder_badge:s,name:a,permalink:l,prices:i,quantity:u,short_description:b,description:p,item_data:m,variation:g,totals:h,extensions:O}=t,{receiveCart:_,...j}=Object(Ne.a)(),E=Object(o.useMemo)(()=>({context:"summary",cartItem:t,cart:j}),[t,j]),f=Object(Ce.getCurrencyFromPriceResponse)(i),y=Object(v.__experimentalApplyCheckoutFilter)({filterName:"itemName",defaultValue:a,extensions:O,arg:E}),w=Object(At.a)({amount:parseInt(i.raw_prices.regular_price,10),precision:Object(xt.a)(i.raw_prices.precision)?parseInt(i.raw_prices.precision,10):i.raw_prices.precision}).convertPrecision(f.minorUnit).getAmount(),S=Object(At.a)({amount:parseInt(i.raw_prices.price,10),precision:Object(xt.a)(i.raw_prices.precision)?parseInt(i.raw_prices.precision,10):i.raw_prices.precision}).convertPrecision(f.minorUnit).getAmount(),C=Object(Ce.getCurrencyFromPriceResponse)(h);let N=parseInt(h.line_subtotal,10);Object(k.getSetting)("displayCartPricesIncludingTax",!1)&&(N+=parseInt(h.line_subtotal_tax,10));const P=Object(At.a)({amount:N,precision:C.minorUnit}).getAmount(),R=Object(v.__experimentalApplyCheckoutFilter)({filterName:"subtotalPriceFormat",defaultValue:"<price/>",extensions:O,arg:E,validation:Lt}),T=Object(v.__experimentalApplyCheckoutFilter)({filterName:"cartItemPrice",defaultValue:"<price/>",extensions:O,arg:E,validation:Lt}),A=Object(v.__experimentalApplyCheckoutFilter)({filterName:"cartItemClass",defaultValue:"",extensions:O,arg:E});return Object(o.createElement)("div",{className:n()("wc-block-components-order-summary-item",A)},Object(o.createElement)("div",{className:"wc-block-components-order-summary-item__image"},Object(o.createElement)("div",{className:"wc-block-components-order-summary-item__quantity"},Object(o.createElement)(Ae.a,{label:u.toString(),screenReaderLabel:Object(d.sprintf)(
|
43 |
/* translators: %d number of products of the same type in the cart */
|
44 |
Object(d._n)("%d item","%d items",u,"woo-gutenberg-products-block"),u)})),Object(o.createElement)(Mt.a,{image:c.length?c[0]:{},fallbackAlt:y})),Object(o.createElement)("div",{className:"wc-block-components-order-summary-item__description"},Object(o.createElement)(Tt.a,{disabled:!0,name:y,permalink:l}),Object(o.createElement)(Rt.a,{currency:f,price:S,regularPrice:w,className:"wc-block-components-order-summary-item__individual-prices",priceClassName:"wc-block-components-order-summary-item__individual-price",regularPriceClassName:"wc-block-components-order-summary-item__regular-individual-price",format:R}),s?Object(o.createElement)(It.a,null):!!r&&Object(o.createElement)(Dt.a,{lowStockRemaining:r}),Object(o.createElement)(Bt.a,{shortDescription:b,fullDescription:p,itemData:m,variation:g})),Object(o.createElement)("span",{className:"screen-reader-text"},Object(d.sprintf)(
|
45 |
/* translators: %1$d is the number of items, %2$s is the item name and %3$s is the total price including the currency symbol. */
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
|
|
4 |
Requires at least: 6.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 7.0
|
7 |
-
Stable tag: 8.2.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -86,6 +86,12 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/
|
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
= 8.2.0 - 2022-08-02 =
|
90 |
|
91 |
#### Enhancements
|
@@ -107,7 +113,6 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/
|
|
107 |
- Fix: Navigate through Mini Cart contents with keyboard. ([6731](https://github.com/woocommerce/woocommerce-blocks/pull/6731))
|
108 |
- Fix: Ensure add to cart notices are displayed on pages containing the Mini Cart block. ([6728](https://github.com/woocommerce/woocommerce-blocks/pull/6728))
|
109 |
- Fix Cart an d Checkout blocks compatiblity issue with wordpress.com in which blocks wouldn't load in the editor. ([6718](https://github.com/woocommerce/woocommerce-blocks/pull/6718))
|
110 |
-
- N/A. ([6716](https://github.com/woocommerce/woocommerce-blocks/pull/6716))
|
111 |
- Fixes an issue where search lists would not preserve the case of the original item. ([6551](https://github.com/woocommerce/woocommerce-blocks/pull/6551))
|
112 |
|
113 |
= 8.1.0 - 2022-07-18 =
|
4 |
Requires at least: 6.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 7.0
|
7 |
+
Stable tag: 8.2.1
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 8.2.1 - 2022-08-03 =
|
90 |
+
|
91 |
+
#### Bug Fixes
|
92 |
+
|
93 |
+
- Fixed an issue where shoppers could not switch between different saved payment methods. ([6825](https://github.com/woocommerce/woocommerce-blocks/pull/6825))
|
94 |
+
|
95 |
= 8.2.0 - 2022-08-02 =
|
96 |
|
97 |
#### Enhancements
|
113 |
- Fix: Navigate through Mini Cart contents with keyboard. ([6731](https://github.com/woocommerce/woocommerce-blocks/pull/6731))
|
114 |
- Fix: Ensure add to cart notices are displayed on pages containing the Mini Cart block. ([6728](https://github.com/woocommerce/woocommerce-blocks/pull/6728))
|
115 |
- Fix Cart an d Checkout blocks compatiblity issue with wordpress.com in which blocks wouldn't load in the editor. ([6718](https://github.com/woocommerce/woocommerce-blocks/pull/6718))
|
|
|
116 |
- Fixes an issue where search lists would not preserve the case of the original item. ([6551](https://github.com/woocommerce/woocommerce-blocks/pull/6551))
|
117 |
|
118 |
= 8.1.0 - 2022-07-18 =
|
src/Package.php
CHANGED
@@ -106,7 +106,7 @@ class Package {
|
|
106 |
NewPackage::class,
|
107 |
function ( $container ) {
|
108 |
// leave for automated version bumping.
|
109 |
-
$version = '8.2.
|
110 |
return new NewPackage(
|
111 |
$version,
|
112 |
dirname( __DIR__ ),
|
106 |
NewPackage::class,
|
107 |
function ( $container ) {
|
108 |
// leave for automated version bumping.
|
109 |
+
$version = '8.2.1';
|
110 |
return new NewPackage(
|
111 |
$version,
|
112 |
dirname( __DIR__ ),
|
vendor/autoload.php
CHANGED
@@ -2,6 +2,11 @@
|
|
2 |
|
3 |
// autoload.php @generated by Composer
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
2 |
|
3 |
// autoload.php @generated by Composer
|
4 |
|
5 |
+
if (PHP_VERSION_ID < 50600) {
|
6 |
+
echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
|
7 |
+
exit(1);
|
8 |
+
}
|
9 |
+
|
10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
11 |
|
12 |
+
return ComposerAutoloaderInitd9ef4ee5f692bd158818ac8b81af0b07::getLoader();
|
vendor/autoload_packages.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/composer/ClassLoader.php
CHANGED
@@ -149,7 +149,7 @@ class ClassLoader
|
|
149 |
|
150 |
/**
|
151 |
* @return string[] Array of classname => path
|
152 |
-
* @psalm-
|
153 |
*/
|
154 |
public function getClassMap()
|
155 |
{
|
149 |
|
150 |
/**
|
151 |
* @return string[] Array of classname => path
|
152 |
+
* @psalm-return array<string, string>
|
153 |
*/
|
154 |
public function getClassMap()
|
155 |
{
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -21,12 +21,14 @@ use Composer\Semver\VersionParser;
|
|
21 |
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
22 |
*
|
23 |
* To require its presence, you can require `composer-runtime-api ^2.0`
|
|
|
|
|
24 |
*/
|
25 |
class InstalledVersions
|
26 |
{
|
27 |
/**
|
28 |
* @var mixed[]|null
|
29 |
-
* @psalm-var array{root: array{name: string,
|
30 |
*/
|
31 |
private static $installed;
|
32 |
|
@@ -37,7 +39,7 @@ class InstalledVersions
|
|
37 |
|
38 |
/**
|
39 |
* @var array[]
|
40 |
-
* @psalm-var array<string, array{root: array{name: string,
|
41 |
*/
|
42 |
private static $installedByVendor = array();
|
43 |
|
@@ -241,7 +243,7 @@ class InstalledVersions
|
|
241 |
|
242 |
/**
|
243 |
* @return array
|
244 |
-
* @psalm-return array{name: string,
|
245 |
*/
|
246 |
public static function getRootPackage()
|
247 |
{
|
@@ -255,7 +257,7 @@ class InstalledVersions
|
|
255 |
*
|
256 |
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
257 |
* @return array[]
|
258 |
-
* @psalm-return array{root: array{name: string,
|
259 |
*/
|
260 |
public static function getRawData()
|
261 |
{
|
@@ -278,7 +280,7 @@ class InstalledVersions
|
|
278 |
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
279 |
*
|
280 |
* @return array[]
|
281 |
-
* @psalm-return list<array{root: array{name: string,
|
282 |
*/
|
283 |
public static function getAllRawData()
|
284 |
{
|
@@ -301,7 +303,7 @@ class InstalledVersions
|
|
301 |
* @param array[] $data A vendor/composer/installed.php data set
|
302 |
* @return void
|
303 |
*
|
304 |
-
* @psalm-param array{root: array{name: string,
|
305 |
*/
|
306 |
public static function reload($data)
|
307 |
{
|
@@ -311,7 +313,7 @@ class InstalledVersions
|
|
311 |
|
312 |
/**
|
313 |
* @return array[]
|
314 |
-
* @psalm-return list<array{root: array{name: string,
|
315 |
*/
|
316 |
private static function getInstalled()
|
317 |
{
|
21 |
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
22 |
*
|
23 |
* To require its presence, you can require `composer-runtime-api ^2.0`
|
24 |
+
*
|
25 |
+
* @final
|
26 |
*/
|
27 |
class InstalledVersions
|
28 |
{
|
29 |
/**
|
30 |
* @var mixed[]|null
|
31 |
+
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
|
32 |
*/
|
33 |
private static $installed;
|
34 |
|
39 |
|
40 |
/**
|
41 |
* @var array[]
|
42 |
+
* @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
43 |
*/
|
44 |
private static $installedByVendor = array();
|
45 |
|
243 |
|
244 |
/**
|
245 |
* @return array
|
246 |
+
* @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
|
247 |
*/
|
248 |
public static function getRootPackage()
|
249 |
{
|
257 |
*
|
258 |
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
259 |
* @return array[]
|
260 |
+
* @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
|
261 |
*/
|
262 |
public static function getRawData()
|
263 |
{
|
280 |
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
281 |
*
|
282 |
* @return array[]
|
283 |
+
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
284 |
*/
|
285 |
public static function getAllRawData()
|
286 |
{
|
303 |
* @param array[] $data A vendor/composer/installed.php data set
|
304 |
* @return void
|
305 |
*
|
306 |
+
* @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
|
307 |
*/
|
308 |
public static function reload($data)
|
309 |
{
|
313 |
|
314 |
/**
|
315 |
* @return array[]
|
316 |
+
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
317 |
*/
|
318 |
private static function getInstalled()
|
319 |
{
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_classmap.php @generated by Composer
|
4 |
|
5 |
-
$vendorDir = dirname(
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
2 |
|
3 |
// autoload_classmap.php @generated by Composer
|
4 |
|
5 |
+
$vendorDir = dirname(__DIR__);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
vendor/composer/autoload_files.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_files.php @generated by Composer
|
4 |
|
5 |
-
$vendorDir = dirname(
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
2 |
|
3 |
// autoload_files.php @generated by Composer
|
4 |
|
5 |
+
$vendorDir = dirname(__DIR__);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
vendor/composer/autoload_namespaces.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_namespaces.php @generated by Composer
|
4 |
|
5 |
-
$vendorDir = dirname(
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
2 |
|
3 |
// autoload_namespaces.php @generated by Composer
|
4 |
|
5 |
+
$vendorDir = dirname(__DIR__);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
vendor/composer/autoload_psr4.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_psr4.php @generated by Composer
|
4 |
|
5 |
-
$vendorDir = dirname(
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
2 |
|
3 |
// autoload_psr4.php @generated by Composer
|
4 |
|
5 |
+
$vendorDir = dirname(__DIR__);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,52 +22,34 @@ class ComposerAutoloaderInit2f553c14a5d37eeff52fc4e194e95f56
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
-
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
require __DIR__ . '/autoload_static.php';
|
32 |
-
|
33 |
-
call_user_func(\Composer\Autoload\ComposerStaticInit2f553c14a5d37eeff52fc4e194e95f56::getInitializer($loader));
|
34 |
-
} else {
|
35 |
-
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
-
foreach ($map as $namespace => $path) {
|
37 |
-
$loader->set($namespace, $path);
|
38 |
-
}
|
39 |
-
|
40 |
-
$map = require __DIR__ . '/autoload_psr4.php';
|
41 |
-
foreach ($map as $namespace => $path) {
|
42 |
-
$loader->setPsr4($namespace, $path);
|
43 |
-
}
|
44 |
-
|
45 |
-
$classMap = require __DIR__ . '/autoload_classmap.php';
|
46 |
-
if ($classMap) {
|
47 |
-
$loader->addClassMap($classMap);
|
48 |
-
}
|
49 |
-
}
|
50 |
|
51 |
$loader->register(true);
|
52 |
|
53 |
-
|
54 |
-
$includeFiles = Composer\Autoload\ComposerStaticInit2f553c14a5d37eeff52fc4e194e95f56::$files;
|
55 |
-
} else {
|
56 |
-
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
-
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
-
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
-
require $file;
|
70 |
-
|
71 |
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
|
|
|
|
72 |
}
|
73 |
}
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitd9ef4ee5f692bd158818ac8b81af0b07
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInitd9ef4ee5f692bd158818ac8b81af0b07', 'loadClassLoader'), true, true);
|
26 |
+
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitd9ef4ee5f692bd158818ac8b81af0b07', 'loadClassLoader'));
|
28 |
|
29 |
+
require __DIR__ . '/autoload_static.php';
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitd9ef4ee5f692bd158818ac8b81af0b07::getInitializer($loader));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
$loader->register(true);
|
33 |
|
34 |
+
$includeFiles = \Composer\Autoload\ComposerStaticInitd9ef4ee5f692bd158818ac8b81af0b07::$files;
|
|
|
|
|
|
|
|
|
35 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
36 |
+
composerRequired9ef4ee5f692bd158818ac8b81af0b07($fileIdentifier, $file);
|
37 |
}
|
38 |
|
39 |
return $loader;
|
40 |
}
|
41 |
}
|
42 |
|
43 |
+
/**
|
44 |
+
* @param string $fileIdentifier
|
45 |
+
* @param string $file
|
46 |
+
* @return void
|
47 |
+
*/
|
48 |
+
function composerRequired9ef4ee5f692bd158818ac8b81af0b07($fileIdentifier, $file)
|
49 |
{
|
50 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
|
|
|
|
51 |
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
52 |
+
|
53 |
+
require $file;
|
54 |
}
|
55 |
}
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'fcd5d7d87e03ff4f5b5a66c2b8968671' => __DIR__ . '/../..' . '/src/StoreApi/deprecated.php',
|
@@ -51,9 +51,9 @@ class ComposerStaticInit2f553c14a5d37eeff52fc4e194e95f56
|
|
51 |
public static function getInitializer(ClassLoader $loader)
|
52 |
{
|
53 |
return \Closure::bind(function () use ($loader) {
|
54 |
-
$loader->prefixLengthsPsr4 =
|
55 |
-
$loader->prefixDirsPsr4 =
|
56 |
-
$loader->classMap =
|
57 |
|
58 |
}, null, ClassLoader::class);
|
59 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitd9ef4ee5f692bd158818ac8b81af0b07
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'fcd5d7d87e03ff4f5b5a66c2b8968671' => __DIR__ . '/../..' . '/src/StoreApi/deprecated.php',
|
51 |
public static function getInitializer(ClassLoader $loader)
|
52 |
{
|
53 |
return \Closure::bind(function () use ($loader) {
|
54 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitd9ef4ee5f692bd158818ac8b81af0b07::$prefixLengthsPsr4;
|
55 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitd9ef4ee5f692bd158818ac8b81af0b07::$prefixDirsPsr4;
|
56 |
+
$loader->classMap = ComposerStaticInitd9ef4ee5f692bd158818ac8b81af0b07::$classMap;
|
57 |
|
58 |
}, null, ClassLoader::class);
|
59 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,31 +1,31 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
|
|
3 |
'pretty_version' => 'dev-trunk',
|
4 |
'version' => 'dev-trunk',
|
|
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => 'a14445c9b95b9c49d73136206121e7163f7378cc',
|
9 |
-
'name' => 'woocommerce/woocommerce-blocks',
|
10 |
'dev' => false,
|
11 |
),
|
12 |
'versions' => array(
|
13 |
'automattic/jetpack-autoloader' => array(
|
14 |
'pretty_version' => 'v2.11.6',
|
15 |
'version' => '2.11.6.0',
|
|
|
16 |
'type' => 'composer-plugin',
|
17 |
'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
|
18 |
'aliases' => array(),
|
19 |
-
'reference' => 'a22f41ff845b8bd4591a933b282270f57dd5bc1d',
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'composer/installers' => array(
|
23 |
'pretty_version' => 'v1.12.0',
|
24 |
'version' => '1.12.0.0',
|
|
|
25 |
'type' => 'composer-plugin',
|
26 |
'install_path' => __DIR__ . '/./installers',
|
27 |
'aliases' => array(),
|
28 |
-
'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'roundcube/plugin-installer' => array(
|
@@ -43,10 +43,10 @@
|
|
43 |
'woocommerce/woocommerce-blocks' => array(
|
44 |
'pretty_version' => 'dev-trunk',
|
45 |
'version' => 'dev-trunk',
|
|
|
46 |
'type' => 'wordpress-plugin',
|
47 |
'install_path' => __DIR__ . '/../../',
|
48 |
'aliases' => array(),
|
49 |
-
'reference' => 'a14445c9b95b9c49d73136206121e7163f7378cc',
|
50 |
'dev_requirement' => false,
|
51 |
),
|
52 |
),
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
+
'name' => 'woocommerce/woocommerce-blocks',
|
4 |
'pretty_version' => 'dev-trunk',
|
5 |
'version' => 'dev-trunk',
|
6 |
+
'reference' => '384d19d4ff02bd8565e8a05423d2648996600dee',
|
7 |
'type' => 'wordpress-plugin',
|
8 |
'install_path' => __DIR__ . '/../../',
|
9 |
'aliases' => array(),
|
|
|
|
|
10 |
'dev' => false,
|
11 |
),
|
12 |
'versions' => array(
|
13 |
'automattic/jetpack-autoloader' => array(
|
14 |
'pretty_version' => 'v2.11.6',
|
15 |
'version' => '2.11.6.0',
|
16 |
+
'reference' => 'a22f41ff845b8bd4591a933b282270f57dd5bc1d',
|
17 |
'type' => 'composer-plugin',
|
18 |
'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
|
19 |
'aliases' => array(),
|
|
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'composer/installers' => array(
|
23 |
'pretty_version' => 'v1.12.0',
|
24 |
'version' => '1.12.0.0',
|
25 |
+
'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',
|
26 |
'type' => 'composer-plugin',
|
27 |
'install_path' => __DIR__ . '/./installers',
|
28 |
'aliases' => array(),
|
|
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'roundcube/plugin-installer' => array(
|
43 |
'woocommerce/woocommerce-blocks' => array(
|
44 |
'pretty_version' => 'dev-trunk',
|
45 |
'version' => 'dev-trunk',
|
46 |
+
'reference' => '384d19d4ff02bd8565e8a05423d2648996600dee',
|
47 |
'type' => 'wordpress-plugin',
|
48 |
'install_path' => __DIR__ . '/../../',
|
49 |
'aliases' => array(),
|
|
|
50 |
'dev_requirement' => false,
|
51 |
),
|
52 |
),
|
vendor/composer/jetpack_autoload_filemap.php
CHANGED
@@ -7,11 +7,11 @@ $baseDir = dirname($vendorDir);
|
|
7 |
|
8 |
return array(
|
9 |
'fcd5d7d87e03ff4f5b5a66c2b8968671' => array(
|
10 |
-
'version' => '8.2.
|
11 |
'path' => $baseDir . '/src/StoreApi/deprecated.php'
|
12 |
),
|
13 |
'd0f16a186498c2ba04f1d0064fecf9cf' => array(
|
14 |
-
'version' => '8.2.
|
15 |
'path' => $baseDir . '/src/StoreApi/functions.php'
|
16 |
),
|
17 |
);
|
7 |
|
8 |
return array(
|
9 |
'fcd5d7d87e03ff4f5b5a66c2b8968671' => array(
|
10 |
+
'version' => '8.2.1.0',
|
11 |
'path' => $baseDir . '/src/StoreApi/deprecated.php'
|
12 |
),
|
13 |
'd0f16a186498c2ba04f1d0064fecf9cf' => array(
|
14 |
+
'version' => '8.2.1.0',
|
15 |
'path' => $baseDir . '/src/StoreApi/functions.php'
|
16 |
),
|
17 |
);
|
vendor/composer/jetpack_autoload_psr4.php
CHANGED
@@ -11,15 +11,15 @@ return array(
|
|
11 |
'path' => array( $vendorDir . '/composer/installers/src/Composer/Installers' )
|
12 |
),
|
13 |
'Automattic\\WooCommerce\\StoreApi\\' => array(
|
14 |
-
'version' => '8.2.
|
15 |
'path' => array( $baseDir . '/src/StoreApi' )
|
16 |
),
|
17 |
'Automattic\\WooCommerce\\Blocks\\Tests\\' => array(
|
18 |
-
'version' => '8.2.
|
19 |
'path' => array( $baseDir . '/tests/php' )
|
20 |
),
|
21 |
'Automattic\\WooCommerce\\Blocks\\' => array(
|
22 |
-
'version' => '8.2.
|
23 |
'path' => array( $baseDir . '/src' )
|
24 |
),
|
25 |
'Automattic\\Jetpack\\Autoloader\\' => array(
|
11 |
'path' => array( $vendorDir . '/composer/installers/src/Composer/Installers' )
|
12 |
),
|
13 |
'Automattic\\WooCommerce\\StoreApi\\' => array(
|
14 |
+
'version' => '8.2.1.0',
|
15 |
'path' => array( $baseDir . '/src/StoreApi' )
|
16 |
),
|
17 |
'Automattic\\WooCommerce\\Blocks\\Tests\\' => array(
|
18 |
+
'version' => '8.2.1.0',
|
19 |
'path' => array( $baseDir . '/tests/php' )
|
20 |
),
|
21 |
'Automattic\\WooCommerce\\Blocks\\' => array(
|
22 |
+
'version' => '8.2.1.0',
|
23 |
'path' => array( $baseDir . '/src' )
|
24 |
),
|
25 |
'Automattic\\Jetpack\\Autoloader\\' => array(
|
vendor/jetpack-autoloader/class-autoloader-handler.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-autoloader-locator.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-autoloader.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-container.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-hook-manager.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-latest-autoloader-guard.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-manifest-reader.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-path-processor.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-php-autoloader.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-plugin-locator.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-plugins-handler.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-shutdown-handler.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-version-loader.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-version-selector.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jpd9ef4ee5f692bd158818ac8b81af0b07;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
woocommerce-gutenberg-products-block.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce Blocks
|
4 |
* Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
|
5 |
* Description: WooCommerce blocks for the Gutenberg editor.
|
6 |
-
* Version: 8.2.
|
7 |
* Author: Automattic
|
8 |
* Author URI: https://woocommerce.com
|
9 |
* Text Domain: woo-gutenberg-products-block
|
3 |
* Plugin Name: WooCommerce Blocks
|
4 |
* Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
|
5 |
* Description: WooCommerce blocks for the Gutenberg editor.
|
6 |
+
* Version: 8.2.1
|
7 |
* Author: Automattic
|
8 |
* Author URI: https://woocommerce.com
|
9 |
* Text Domain: woo-gutenberg-products-block
|