WooCommerce Gutenberg Products Block - Version 8.7.2

Version Description

  • 2022-10-13 =

Bug Fixes

  • Fixed a problem where Custom Order Tables compatibility declaration could fail due to the unpredictable plugin order load. (7395)
  • Refactor useCheckoutAddress hook to enable "Use same address for billing" option in Editor (7393)
Download this release

Release Info

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

Code changes from version 8.7.1 to 8.7.2

Files changed (34) hide show
  1. assets/js/base/context/hooks/use-checkout-address.ts +1 -2
  2. assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/frontend.tsx +2 -2
  3. build/checkout-blocks/billing-address--checkout-blocks/shipping-address-frontend.js +1 -1
  4. build/checkout-blocks/billing-address-frontend.js +1 -1
  5. build/checkout-blocks/contact-information-frontend.js +1 -1
  6. build/checkout-blocks/shipping-methods-frontend.js +1 -1
  7. build/checkout-frontend.asset.php +1 -1
  8. build/checkout-frontend.js +1 -1
  9. build/checkout.asset.php +1 -1
  10. build/checkout.js +1 -1
  11. readme.txt +10 -1
  12. src/Package.php +1 -1
  13. vendor/autoload.php +1 -1
  14. vendor/autoload_packages.php +1 -1
  15. vendor/composer/autoload_real.php +7 -7
  16. vendor/composer/autoload_static.php +4 -4
  17. vendor/composer/installed.php +2 -2
  18. vendor/composer/jetpack_autoload_filemap.php +2 -2
  19. vendor/composer/jetpack_autoload_psr4.php +3 -3
  20. vendor/jetpack-autoloader/class-autoloader-handler.php +1 -1
  21. vendor/jetpack-autoloader/class-autoloader-locator.php +1 -1
  22. vendor/jetpack-autoloader/class-autoloader.php +1 -1
  23. vendor/jetpack-autoloader/class-container.php +1 -1
  24. vendor/jetpack-autoloader/class-hook-manager.php +1 -1
  25. vendor/jetpack-autoloader/class-latest-autoloader-guard.php +1 -1
  26. vendor/jetpack-autoloader/class-manifest-reader.php +1 -1
  27. vendor/jetpack-autoloader/class-path-processor.php +1 -1
  28. vendor/jetpack-autoloader/class-php-autoloader.php +1 -1
  29. vendor/jetpack-autoloader/class-plugin-locator.php +1 -1
  30. vendor/jetpack-autoloader/class-plugins-handler.php +1 -1
  31. vendor/jetpack-autoloader/class-shutdown-handler.php +1 -1
  32. vendor/jetpack-autoloader/class-version-loader.php +1 -1
  33. vendor/jetpack-autoloader/class-version-selector.php +1 -1
  34. woocommerce-gutenberg-products-block.php +7 -7
assets/js/base/context/hooks/use-checkout-address.ts CHANGED
@@ -90,8 +90,7 @@ export const useCheckoutAddress = (): CheckoutAddress => {
90
  useShippingAsBilling,
91
  setUseShippingAsBilling: __internalSetUseShippingAsBilling,
92
  showShippingFields: ! forcedBillingAddress && needsShipping,
93
- showBillingFields:
94
- forcedBillingAddress || ! needsShipping || ! useShippingAsBilling,
95
  forcedBillingAddress,
96
  };
97
  };
90
  useShippingAsBilling,
91
  setUseShippingAsBilling: __internalSetUseShippingAsBilling,
92
  showShippingFields: ! forcedBillingAddress && needsShipping,
93
+ showBillingFields: ! needsShipping || ! useShippingAsBilling,
 
94
  forcedBillingAddress,
95
  };
96
  };
assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/frontend.tsx CHANGED
@@ -38,9 +38,9 @@ const FrontendBlock = ( {
38
  showCompanyField,
39
  showPhoneField,
40
  } = useCheckoutBlockContext();
41
- const { showBillingFields } = useCheckoutAddress();
42
 
43
- if ( ! showBillingFields ) {
44
  return null;
45
  }
46
 
38
  showCompanyField,
39
  showPhoneField,
40
  } = useCheckoutBlockContext();
41
+ const { showBillingFields, forcedBillingAddress } = useCheckoutAddress();
42
 
43
+ if ( ! showBillingFields && ! forcedBillingAddress ) {
44
  return null;
45
  }
46
 
build/checkout-blocks/billing-address--checkout-blocks/shipping-address-frontend.js CHANGED
@@ -1 +1 @@
1
- (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[8],{21:function(e,t,r){"use strict";var n=r(0),c=r(4),a=r.n(c);t.a=e=>{let t,{label:r,screenReaderLabel:c,wrapperElement:o,wrapperProps:l={}}=e;const s=null!=r,i=null!=c;return!s&&i?(t=o||"span",l={...l,className:a()(l.className,"screen-reader-text")},Object(n.createElement)(t,l,c)):(t=o||n.Fragment,s&&i&&r!==c?Object(n.createElement)(t,l,Object(n.createElement)("span",{"aria-hidden":"true"},r),Object(n.createElement)("span",{className:"screen-reader-text"},c)):Object(n.createElement)(t,l,r))}},26:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=r(12),a=r.n(c);function o(e){const t=Object(n.useRef)(e);return a()(e,t.current)||(t.current=e),t.current}},289:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=r(6),a=r(3);r(290);const o=e=>{let{errorMessage:t="",propertyName:r="",elementId:o=""}=e;const{validationError:l,validationErrorId:s}=Object(c.useSelect)(e=>{const t=e(a.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(r),validationErrorId:t.getValidationErrorId(o)}});if(!t||"string"!=typeof t){if(null==l||!l.message||null!=l&&l.hidden)return null;t=l.message}return Object(n.createElement)("div",{className:"wc-block-components-validation-error",role:"alert"},Object(n.createElement)("p",{id:s},t))};t.b=o},290:function(e,t){},292:function(e,t){},295:function(e,t,r){"use strict";var n=r(11),c=r.n(n),a=r(0),o=r(4),l=r.n(o);r(296),t.a=e=>{let{children:t,className:r,headingLevel:n,...o}=e;const s=l()("wc-block-components-title",r),i="h"+n;return Object(a.createElement)(i,c()({className:s},o),t)}},296:function(e,t){},300:function(e,t){},301:function(e,t,r){"use strict";var n=r(1);t.a=e=>{let{defaultTitle:t=Object(n.__)("Step","woo-gutenberg-products-block"),defaultDescription:r=Object(n.__)("Step description text.","woo-gutenberg-products-block"),defaultShowStepNumber:c=!0}=e;return{title:{type:"string",default:t},description:{type:"string",default:r},showStepNumber:{type:"boolean",default:c}}}},313:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(2),c=r(0),a=r(6),o=r(3),l=r(72),s=r(117);const i=()=>{const{needsShipping:e}=Object(s.a)(),{useShippingAsBilling:t}=Object(a.useSelect)(e=>e(o.CHECKOUT_STORE_KEY).getCheckoutState()),{__internalSetUseShippingAsBilling:r}=Object(a.useDispatch)(o.CHECKOUT_STORE_KEY),{billingAddress:i,setBillingAddress:u,shippingAddress:d,setShippingAddress:b}=Object(l.a)(),p=Object(c.useCallback)(e=>{u({email:e})},[u]),m=Object(c.useCallback)(e=>{u({phone:e})},[u]),g=Object(c.useCallback)(e=>{b({phone:e})},[b]),f=Object(n.getSetting)("forcedBillingAddress",!1);return{shippingAddress:d,billingAddress:i,setShippingAddress:b,setBillingAddress:u,setEmail:p,setBillingPhone:m,setShippingPhone:g,defaultAddressFields:n.defaultAddressFields,useShippingAsBilling:t,setUseShippingAsBilling:r,showShippingFields:!f&&e,showBillingFields:f||!e||!t,forcedBillingAddress:f}}},327:function(e,t,r){"use strict";var n=r(0),c=r(4),a=r.n(c),o=r(295);r(300);const l=e=>{let{title:t,stepHeadingContent:r}=e;return Object(n.createElement)("div",{className:"wc-block-components-checkout-step__heading"},Object(n.createElement)(o.a,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!r&&Object(n.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},r))};t.a=e=>{let{id:t,className:r,title:c,legend:o,description:s,children:i,disabled:u=!1,showStepNumber:d=!0,stepHeadingContent:b=(()=>{})}=e;const p=o||c?"fieldset":"div";return Object(n.createElement)(p,{className:a()(r,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":d,"wc-block-components-checkout-step--disabled":u}),id:t,disabled:u},!(!o&&!c)&&Object(n.createElement)("legend",{className:"screen-reader-text"},o||c),!!c&&Object(n.createElement)(l,{title:c,stepHeadingContent:b()}),Object(n.createElement)("div",{className:"wc-block-components-checkout-step__container"},!!s&&Object(n.createElement)("p",{className:"wc-block-components-checkout-step__description"},s),Object(n.createElement)("div",{className:"wc-block-components-checkout-step__content"},i)))}},330:function(e,t,r){"use strict";var n=r(11),c=r.n(n),a=r(0),o=r(1),l=r(7),s=r(4),i=r.n(s),u=r(10),d=r(27),b=r(6),p=r(3),m=r(21);r(292);var g=Object(l.forwardRef)((e,t)=>{let{className:r,id:n,type:o="text",ariaLabel:l,ariaDescribedBy:s,label:u,screenReaderLabel:d,disabled:b,help:p,autoCapitalize:g="off",autoComplete:f="off",value:O="",onChange:h,required:j=!1,onBlur:E=(()=>{}),feedback:v,...k}=e;const[y,C]=Object(a.useState)(!1);return Object(a.createElement)("div",{className:i()("wc-block-components-text-input",r,{"is-active":y||O})},Object(a.createElement)("input",c()({type:o,id:n,value:O,ref:t,autoCapitalize:g,autoComplete:f,onChange:e=>{h(e.target.value)},onFocus:()=>C(!0),onBlur:e=>{E(e.target.value),C(!1)},"aria-label":l||u,disabled:b,"aria-describedby":p&&!s?n+"__help":s,required:j},k)),Object(a.createElement)(m.a,{label:u,screenReaderLabel:d||u,wrapperElement:"label",wrapperProps:{htmlFor:n},htmlFor:n}),!!p&&Object(a.createElement)("p",{id:n+"__help",className:"wc-block-components-text-input__help"},p),v)}),f=r(289);t.a=Object(u.withInstanceId)(e=>{let{className:t,instanceId:r,id:n,ariaDescribedBy:s,errorId:u,focusOnMount:m=!1,onChange:O,showError:h=!0,errorMessage:j="",value:E="",...v}=e;const[k,y]=Object(l.useState)(!0),C=Object(l.useRef)(null),{setValidationErrors:w,hideValidationError:_,clearValidationError:N}=Object(b.dispatch)(p.VALIDATION_STORE_KEY),I=void 0!==n?n:"textinput-"+r,A=void 0!==u?u:I,{validationError:S,validationErrorId:T}=Object(b.useSelect)(e=>{const t=e(p.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(A),validationErrorId:t.getValidationErrorId(A)}}),L=Object(l.useCallback)((function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=C.current||null;if(!t)return;t.value=t.value.trim();const r=t.checkValidity();if(r)N(A);else{const r={[A]:{message:t.validationMessage||Object(o.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}};w(r)}}),[N,A,w]);Object(l.useEffect)(()=>{var e;k&&m&&(null===(e=C.current)||void 0===e||e.focus()),y(!1)},[m,k,y]),Object(l.useEffect)(()=>{var e,t;(null===(e=C.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.activeElement)!==C.current&&L(!0)},[E,L]),Object(l.useEffect)(()=>()=>{N(A)},[N,A]),Object(d.a)(j)&&""!==j&&(S.message=j);const R=(null==S?void 0:S.message)&&!(null!=S&&S.hidden),M=h&&R&&T?T:s;return Object(a.createElement)(g,c()({className:i()(t,{"has-error":R}),"aria-invalid":!0===R,id:I,onBlur:()=>{L(!1)},feedback:h&&Object(a.createElement)(f.a,{errorMessage:j,propertyName:A}),ref:C,onChange:e=>{_(A),O(e)},ariaDescribedBy:M,value:E},v))})},354:function(e,t){},355:function(e,t){},356:function(e,t){},378:function(e,t,r){"use strict";var n=r(11),c=r.n(n),a=r(0),o=r(45),l=r(50);const s=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"];t.a=e=>{let{children:t,style:r={},...n}=e;const i=Object(a.useRef)(null),u=()=>{i.current&&o.focus.focusable.find(i.current).forEach(e=>{s.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")})},d=Object(l.a)(u,0,{leading:!0});return Object(a.useLayoutEffect)(()=>{let e;return u(),i.current&&(e=new window.MutationObserver(d),e.observe(i.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),d.cancel()}},[d]),Object(a.createElement)("div",c()({ref:i,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...r}},n),t)}},379:function(e,t,r){"use strict";var n=r(0),c=r(1),a=r(330);t.a=e=>{let{id:t="phone",isRequired:r=!1,value:o="",onChange:l}=e;return Object(n.createElement)(a.a,{id:t,type:"tel",autoComplete:"tel",required:r,label:r?Object(c.__)("Phone","woo-gutenberg-products-block"):Object(c.__)("Phone (optional)","woo-gutenberg-products-block"),value:o,onChange:l})}},429:function(e,t,r){"use strict";var n=r(0),c=r(330),a=r(11),o=r.n(a),l=r(44),s=r(1),i=r(20),u=r(4),d=r.n(u),b=r(10),p=r(473),m=r(289),g=r(18),f=r(6),O=r(3);r(355);var h=Object(b.withInstanceId)(e=>{let{id:t,className:r,label:c,onChange:a,options:o,value:l,required:i=!1,errorMessage:u=Object(s.__)("Please select a value.","woo-gutenberg-products-block"),errorId:b,instanceId:h="0",autoComplete:j="off"}=e;const E=Object(n.useRef)(null),v=t||"control-"+h,k=b||v,{setValidationErrors:y,clearValidationError:C}=Object(f.useDispatch)(O.VALIDATION_STORE_KEY),w=Object(f.useSelect)(e=>e(O.VALIDATION_STORE_KEY).getValidationError(k));return Object(n.useEffect)(()=>(!i||l?C(k):y({[k]:{message:u,hidden:!0}}),()=>{C(k)}),[C,l,k,u,i,y]),Object(n.createElement)("div",{id:v,className:d()("wc-block-components-combobox",r,{"is-active":l,"has-error":(null==w?void 0:w.message)&&!(null!=w&&w.hidden)}),ref:E},Object(n.createElement)(p.a,{className:"wc-block-components-combobox-control",label:c,onChange:a,onFilterValueChange:e=>{if(e.length){const t=Object(g.a)(E.current)?E.current.ownerDocument.activeElement:void 0;if(t&&Object(g.a)(E.current)&&E.current.contains(t))return;const r=e.toLocaleUpperCase(),n=o.find(e=>e.label.toLocaleUpperCase().startsWith(r)||e.value.toLocaleUpperCase()===r);n&&a(n.value)}},options:o,value:l||"",allowReset:!1,autoComplete:j,"aria-invalid":(null==w?void 0:w.message)&&!(null!=w&&w.hidden)}),Object(n.createElement)(m.a,{propertyName:k}))});r(354);var j=e=>{let{className:t,countries:r,id:c,label:a,onChange:o,value:l="",autoComplete:u="off",required:b=!1,errorId:p,errorMessage:m=Object(s.__)("Please select a country.","woo-gutenberg-products-block")}=e;const g=Object(n.useMemo)(()=>Object.entries(r).map(e=>{let[t,r]=e;return{value:t,label:Object(i.decodeEntities)(r)}}),[r]);return Object(n.createElement)("div",{className:d()(t,"wc-block-components-country-input")},Object(n.createElement)(h,{id:c,label:a,onChange:o,options:g,value:l,errorId:p,errorMessage:m,required:b,autoComplete:u}),"off"!==u&&Object(n.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:u,value:l,onChange:e=>{const t=e.target.value.toLocaleUpperCase(),r=g.find(e=>2!==t.length&&e.label.toLocaleUpperCase()===t||2===t.length&&e.value.toLocaleUpperCase()===t);o(r?r.value:"")},style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1}))},E=e=>Object(n.createElement)(j,o()({countries:l.g},e)),v=e=>Object(n.createElement)(j,o()({countries:l.a},e));r(356);const k=(e,t)=>{const r=t.find(t=>t.label.toLocaleUpperCase()===e.toLocaleUpperCase()||t.value.toLocaleUpperCase()===e.toLocaleUpperCase());return r?r.value:""};var y=e=>{let{className:t,id:r,states:a,country:o,label:l,onChange:u,autoComplete:b="off",value:p="",required:m=!1}=e;const g=a[o],f=Object(n.useMemo)(()=>g?Object.keys(g).map(e=>({value:e,label:Object(i.decodeEntities)(g[e])})):[],[g]),O=Object(n.useCallback)(e=>{u(f.length>0?k(e,f):e)},[u,f]),j=Object(n.useRef)(p);return Object(n.useEffect)(()=>{j.current!==p&&(j.current=p)},[p]),Object(n.useEffect)(()=>{if(f.length>0&&j.current){const e=k(j.current,f);e!==j.current&&O(e)}},[f,O]),f.length>0?Object(n.createElement)(n.Fragment,null,Object(n.createElement)(h,{className:d()(t,"wc-block-components-state-input"),id:r,label:l,onChange:O,options:f,value:p,errorMessage:Object(s.__)("Please select a state.","woo-gutenberg-products-block"),required:m,autoComplete:b}),"off"!==b&&Object(n.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:b,value:p,onChange:e=>O(e.target.value),style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1})):Object(n.createElement)(c.a,{className:t,id:r,label:l,onChange:O,autoComplete:b,value:p,required:m})},C=e=>Object(n.createElement)(y,o()({states:l.h},e)),w=e=>Object(n.createElement)(y,o()({states:l.b},e)),_=r(26),N=r(2),I=r(56);t.a=Object(b.withInstanceId)(e=>{let{id:t="",fields:r=Object.keys(N.defaultAddressFields),fieldConfig:a={},instanceId:o,onChange:l,type:i="shipping",values:u}=e;const{setValidationErrors:d,clearValidationError:b}=Object(f.useDispatch)(O.VALIDATION_STORE_KEY),p=Object(f.useSelect)(e=>e(O.VALIDATION_STORE_KEY).getValidationError("shipping-missing-country")),m=Object(_.a)(r),g=Object(n.useMemo)(()=>Object(I.a)(m,a,u.country),[m,a,u.country]);return Object(n.useEffect)(()=>{g.forEach(e=>{e.hidden&&u[e.key]&&l({...u,[e.key]:""})})},[g,l,u]),Object(n.useEffect)(()=>{"shipping"===i&&((e,t,r,n)=>{n||e.country||!(e.city||e.state||e.postcode)||t({"shipping-missing-country":{message:Object(s.__)("Please select a country to calculate rates.","woo-gutenberg-products-block"),hidden:!1}}),n&&e.country&&r("shipping-missing-country")})(u,d,b,!(null==p||!p.message||null!=p&&p.hidden))},[u,null==p?void 0:p.message,null==p?void 0:p.hidden,d,b,i]),t=t||o,Object(n.createElement)("div",{id:t,className:"wc-block-components-address-form"},g.map(e=>{if(e.hidden)return null;if("country"===e.key){const r="shipping"===i?E:v;return Object(n.createElement)(r,{key:e.key,id:`${t}-${e.key}`,label:e.required?e.label:e.optionalLabel,value:u.country,autoComplete:e.autocomplete,onChange:e=>l({...u,country:e,state:""}),errorId:"shipping"===i?"shipping-missing-country":null,errorMessage:e.errorMessage,required:e.required})}if("state"===e.key){const r="shipping"===i?C:w;return Object(n.createElement)(r,{key:e.key,id:`${t}-${e.key}`,country:u.country,label:e.required?e.label:e.optionalLabel,value:u.state,autoComplete:e.autocomplete,onChange:e=>l({...u,state:e}),errorMessage:e.errorMessage,required:e.required})}return Object(n.createElement)(c.a,{key:e.key,id:`${t}-${e.key}`,className:"wc-block-components-address-form__"+e.key,label:e.required?e.label:e.optionalLabel,value:u[e.key],autoCapitalize:e.autocapitalize,autoComplete:e.autocomplete,onChange:t=>l({...u,[e.key]:t}),errorMessage:e.errorMessage,required:e.required})}))})},50:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(7);function c(e,t,r){var c=this,a=Object(n.useRef)(null),o=Object(n.useRef)(0),l=Object(n.useRef)(null),s=Object(n.useRef)([]),i=Object(n.useRef)(),u=Object(n.useRef)(),d=Object(n.useRef)(e),b=Object(n.useRef)(!0);d.current=e;var p=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var m=!!(r=r||{}).leading,g=!("trailing"in r)||!!r.trailing,f="maxWait"in r,O=f?Math.max(+r.maxWait||0,t):null;return Object(n.useEffect)((function(){return b.current=!0,function(){b.current=!1}}),[]),Object(n.useMemo)((function(){var e=function(e){var t=s.current,r=i.current;return s.current=i.current=null,o.current=e,u.current=d.current.apply(r,t)},r=function(e,t){p&&cancelAnimationFrame(l.current),l.current=p?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!b.current)return!1;var r=e-a.current,n=e-o.current;return!a.current||r>=t||r<0||f&&n>=O},h=function(t){return l.current=null,g&&s.current?e(t):(s.current=i.current=null,u.current)},j=function(){var e=Date.now();if(n(e))return h(e);if(b.current){var c=e-a.current,l=e-o.current,s=t-c,i=f?Math.min(s,O-l):s;r(j,i)}},E=function(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];var g=Date.now(),O=n(g);if(s.current=d,i.current=c,a.current=g,O){if(!l.current&&b.current)return o.current=a.current,r(j,t),m?e(a.current):u.current;if(f)return r(j,t),e(a.current)}return l.current||r(j,t),u.current};return E.cancel=function(){l.current&&(p?cancelAnimationFrame(l.current):clearTimeout(l.current)),o.current=0,s.current=a.current=i.current=l.current=null},E.isPending=function(){return!!l.current},E.flush=function(){return l.current?h(Date.now()):u.current},E}),[m,f,t,O,g,p])}}}]);
1
+ (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[8],{21:function(e,t,r){"use strict";var n=r(0),c=r(4),a=r.n(c);t.a=e=>{let t,{label:r,screenReaderLabel:c,wrapperElement:o,wrapperProps:l={}}=e;const s=null!=r,i=null!=c;return!s&&i?(t=o||"span",l={...l,className:a()(l.className,"screen-reader-text")},Object(n.createElement)(t,l,c)):(t=o||n.Fragment,s&&i&&r!==c?Object(n.createElement)(t,l,Object(n.createElement)("span",{"aria-hidden":"true"},r),Object(n.createElement)("span",{className:"screen-reader-text"},c)):Object(n.createElement)(t,l,r))}},26:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=r(12),a=r.n(c);function o(e){const t=Object(n.useRef)(e);return a()(e,t.current)||(t.current=e),t.current}},289:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=r(6),a=r(3);r(290);const o=e=>{let{errorMessage:t="",propertyName:r="",elementId:o=""}=e;const{validationError:l,validationErrorId:s}=Object(c.useSelect)(e=>{const t=e(a.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(r),validationErrorId:t.getValidationErrorId(o)}});if(!t||"string"!=typeof t){if(null==l||!l.message||null!=l&&l.hidden)return null;t=l.message}return Object(n.createElement)("div",{className:"wc-block-components-validation-error",role:"alert"},Object(n.createElement)("p",{id:s},t))};t.b=o},290:function(e,t){},292:function(e,t){},295:function(e,t,r){"use strict";var n=r(11),c=r.n(n),a=r(0),o=r(4),l=r.n(o);r(296),t.a=e=>{let{children:t,className:r,headingLevel:n,...o}=e;const s=l()("wc-block-components-title",r),i="h"+n;return Object(a.createElement)(i,c()({className:s},o),t)}},296:function(e,t){},300:function(e,t){},301:function(e,t,r){"use strict";var n=r(1);t.a=e=>{let{defaultTitle:t=Object(n.__)("Step","woo-gutenberg-products-block"),defaultDescription:r=Object(n.__)("Step description text.","woo-gutenberg-products-block"),defaultShowStepNumber:c=!0}=e;return{title:{type:"string",default:t},description:{type:"string",default:r},showStepNumber:{type:"boolean",default:c}}}},313:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(2),c=r(0),a=r(6),o=r(3),l=r(72),s=r(117);const i=()=>{const{needsShipping:e}=Object(s.a)(),{useShippingAsBilling:t}=Object(a.useSelect)(e=>e(o.CHECKOUT_STORE_KEY).getCheckoutState()),{__internalSetUseShippingAsBilling:r}=Object(a.useDispatch)(o.CHECKOUT_STORE_KEY),{billingAddress:i,setBillingAddress:u,shippingAddress:d,setShippingAddress:b}=Object(l.a)(),p=Object(c.useCallback)(e=>{u({email:e})},[u]),m=Object(c.useCallback)(e=>{u({phone:e})},[u]),g=Object(c.useCallback)(e=>{b({phone:e})},[b]),f=Object(n.getSetting)("forcedBillingAddress",!1);return{shippingAddress:d,billingAddress:i,setShippingAddress:b,setBillingAddress:u,setEmail:p,setBillingPhone:m,setShippingPhone:g,defaultAddressFields:n.defaultAddressFields,useShippingAsBilling:t,setUseShippingAsBilling:r,showShippingFields:!f&&e,showBillingFields:!e||!t,forcedBillingAddress:f}}},327:function(e,t,r){"use strict";var n=r(0),c=r(4),a=r.n(c),o=r(295);r(300);const l=e=>{let{title:t,stepHeadingContent:r}=e;return Object(n.createElement)("div",{className:"wc-block-components-checkout-step__heading"},Object(n.createElement)(o.a,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!r&&Object(n.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},r))};t.a=e=>{let{id:t,className:r,title:c,legend:o,description:s,children:i,disabled:u=!1,showStepNumber:d=!0,stepHeadingContent:b=(()=>{})}=e;const p=o||c?"fieldset":"div";return Object(n.createElement)(p,{className:a()(r,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":d,"wc-block-components-checkout-step--disabled":u}),id:t,disabled:u},!(!o&&!c)&&Object(n.createElement)("legend",{className:"screen-reader-text"},o||c),!!c&&Object(n.createElement)(l,{title:c,stepHeadingContent:b()}),Object(n.createElement)("div",{className:"wc-block-components-checkout-step__container"},!!s&&Object(n.createElement)("p",{className:"wc-block-components-checkout-step__description"},s),Object(n.createElement)("div",{className:"wc-block-components-checkout-step__content"},i)))}},330:function(e,t,r){"use strict";var n=r(11),c=r.n(n),a=r(0),o=r(1),l=r(7),s=r(4),i=r.n(s),u=r(10),d=r(27),b=r(6),p=r(3),m=r(21);r(292);var g=Object(l.forwardRef)((e,t)=>{let{className:r,id:n,type:o="text",ariaLabel:l,ariaDescribedBy:s,label:u,screenReaderLabel:d,disabled:b,help:p,autoCapitalize:g="off",autoComplete:f="off",value:O="",onChange:h,required:j=!1,onBlur:E=(()=>{}),feedback:v,...k}=e;const[y,C]=Object(a.useState)(!1);return Object(a.createElement)("div",{className:i()("wc-block-components-text-input",r,{"is-active":y||O})},Object(a.createElement)("input",c()({type:o,id:n,value:O,ref:t,autoCapitalize:g,autoComplete:f,onChange:e=>{h(e.target.value)},onFocus:()=>C(!0),onBlur:e=>{E(e.target.value),C(!1)},"aria-label":l||u,disabled:b,"aria-describedby":p&&!s?n+"__help":s,required:j},k)),Object(a.createElement)(m.a,{label:u,screenReaderLabel:d||u,wrapperElement:"label",wrapperProps:{htmlFor:n},htmlFor:n}),!!p&&Object(a.createElement)("p",{id:n+"__help",className:"wc-block-components-text-input__help"},p),v)}),f=r(289);t.a=Object(u.withInstanceId)(e=>{let{className:t,instanceId:r,id:n,ariaDescribedBy:s,errorId:u,focusOnMount:m=!1,onChange:O,showError:h=!0,errorMessage:j="",value:E="",...v}=e;const[k,y]=Object(l.useState)(!0),C=Object(l.useRef)(null),{setValidationErrors:w,hideValidationError:_,clearValidationError:N}=Object(b.dispatch)(p.VALIDATION_STORE_KEY),I=void 0!==n?n:"textinput-"+r,A=void 0!==u?u:I,{validationError:S,validationErrorId:T}=Object(b.useSelect)(e=>{const t=e(p.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(A),validationErrorId:t.getValidationErrorId(A)}}),L=Object(l.useCallback)((function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=C.current||null;if(!t)return;t.value=t.value.trim();const r=t.checkValidity();if(r)N(A);else{const r={[A]:{message:t.validationMessage||Object(o.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}};w(r)}}),[N,A,w]);Object(l.useEffect)(()=>{var e;k&&m&&(null===(e=C.current)||void 0===e||e.focus()),y(!1)},[m,k,y]),Object(l.useEffect)(()=>{var e,t;(null===(e=C.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.activeElement)!==C.current&&L(!0)},[E,L]),Object(l.useEffect)(()=>()=>{N(A)},[N,A]),Object(d.a)(j)&&""!==j&&(S.message=j);const R=(null==S?void 0:S.message)&&!(null!=S&&S.hidden),M=h&&R&&T?T:s;return Object(a.createElement)(g,c()({className:i()(t,{"has-error":R}),"aria-invalid":!0===R,id:I,onBlur:()=>{L(!1)},feedback:h&&Object(a.createElement)(f.a,{errorMessage:j,propertyName:A}),ref:C,onChange:e=>{_(A),O(e)},ariaDescribedBy:M,value:E},v))})},354:function(e,t){},355:function(e,t){},356:function(e,t){},378:function(e,t,r){"use strict";var n=r(11),c=r.n(n),a=r(0),o=r(45),l=r(50);const s=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"];t.a=e=>{let{children:t,style:r={},...n}=e;const i=Object(a.useRef)(null),u=()=>{i.current&&o.focus.focusable.find(i.current).forEach(e=>{s.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")})},d=Object(l.a)(u,0,{leading:!0});return Object(a.useLayoutEffect)(()=>{let e;return u(),i.current&&(e=new window.MutationObserver(d),e.observe(i.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),d.cancel()}},[d]),Object(a.createElement)("div",c()({ref:i,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...r}},n),t)}},379:function(e,t,r){"use strict";var n=r(0),c=r(1),a=r(330);t.a=e=>{let{id:t="phone",isRequired:r=!1,value:o="",onChange:l}=e;return Object(n.createElement)(a.a,{id:t,type:"tel",autoComplete:"tel",required:r,label:r?Object(c.__)("Phone","woo-gutenberg-products-block"):Object(c.__)("Phone (optional)","woo-gutenberg-products-block"),value:o,onChange:l})}},429:function(e,t,r){"use strict";var n=r(0),c=r(330),a=r(11),o=r.n(a),l=r(44),s=r(1),i=r(20),u=r(4),d=r.n(u),b=r(10),p=r(473),m=r(289),g=r(18),f=r(6),O=r(3);r(355);var h=Object(b.withInstanceId)(e=>{let{id:t,className:r,label:c,onChange:a,options:o,value:l,required:i=!1,errorMessage:u=Object(s.__)("Please select a value.","woo-gutenberg-products-block"),errorId:b,instanceId:h="0",autoComplete:j="off"}=e;const E=Object(n.useRef)(null),v=t||"control-"+h,k=b||v,{setValidationErrors:y,clearValidationError:C}=Object(f.useDispatch)(O.VALIDATION_STORE_KEY),w=Object(f.useSelect)(e=>e(O.VALIDATION_STORE_KEY).getValidationError(k));return Object(n.useEffect)(()=>(!i||l?C(k):y({[k]:{message:u,hidden:!0}}),()=>{C(k)}),[C,l,k,u,i,y]),Object(n.createElement)("div",{id:v,className:d()("wc-block-components-combobox",r,{"is-active":l,"has-error":(null==w?void 0:w.message)&&!(null!=w&&w.hidden)}),ref:E},Object(n.createElement)(p.a,{className:"wc-block-components-combobox-control",label:c,onChange:a,onFilterValueChange:e=>{if(e.length){const t=Object(g.a)(E.current)?E.current.ownerDocument.activeElement:void 0;if(t&&Object(g.a)(E.current)&&E.current.contains(t))return;const r=e.toLocaleUpperCase(),n=o.find(e=>e.label.toLocaleUpperCase().startsWith(r)||e.value.toLocaleUpperCase()===r);n&&a(n.value)}},options:o,value:l||"",allowReset:!1,autoComplete:j,"aria-invalid":(null==w?void 0:w.message)&&!(null!=w&&w.hidden)}),Object(n.createElement)(m.a,{propertyName:k}))});r(354);var j=e=>{let{className:t,countries:r,id:c,label:a,onChange:o,value:l="",autoComplete:u="off",required:b=!1,errorId:p,errorMessage:m=Object(s.__)("Please select a country.","woo-gutenberg-products-block")}=e;const g=Object(n.useMemo)(()=>Object.entries(r).map(e=>{let[t,r]=e;return{value:t,label:Object(i.decodeEntities)(r)}}),[r]);return Object(n.createElement)("div",{className:d()(t,"wc-block-components-country-input")},Object(n.createElement)(h,{id:c,label:a,onChange:o,options:g,value:l,errorId:p,errorMessage:m,required:b,autoComplete:u}),"off"!==u&&Object(n.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:u,value:l,onChange:e=>{const t=e.target.value.toLocaleUpperCase(),r=g.find(e=>2!==t.length&&e.label.toLocaleUpperCase()===t||2===t.length&&e.value.toLocaleUpperCase()===t);o(r?r.value:"")},style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1}))},E=e=>Object(n.createElement)(j,o()({countries:l.g},e)),v=e=>Object(n.createElement)(j,o()({countries:l.a},e));r(356);const k=(e,t)=>{const r=t.find(t=>t.label.toLocaleUpperCase()===e.toLocaleUpperCase()||t.value.toLocaleUpperCase()===e.toLocaleUpperCase());return r?r.value:""};var y=e=>{let{className:t,id:r,states:a,country:o,label:l,onChange:u,autoComplete:b="off",value:p="",required:m=!1}=e;const g=a[o],f=Object(n.useMemo)(()=>g?Object.keys(g).map(e=>({value:e,label:Object(i.decodeEntities)(g[e])})):[],[g]),O=Object(n.useCallback)(e=>{u(f.length>0?k(e,f):e)},[u,f]),j=Object(n.useRef)(p);return Object(n.useEffect)(()=>{j.current!==p&&(j.current=p)},[p]),Object(n.useEffect)(()=>{if(f.length>0&&j.current){const e=k(j.current,f);e!==j.current&&O(e)}},[f,O]),f.length>0?Object(n.createElement)(n.Fragment,null,Object(n.createElement)(h,{className:d()(t,"wc-block-components-state-input"),id:r,label:l,onChange:O,options:f,value:p,errorMessage:Object(s.__)("Please select a state.","woo-gutenberg-products-block"),required:m,autoComplete:b}),"off"!==b&&Object(n.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:b,value:p,onChange:e=>O(e.target.value),style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1})):Object(n.createElement)(c.a,{className:t,id:r,label:l,onChange:O,autoComplete:b,value:p,required:m})},C=e=>Object(n.createElement)(y,o()({states:l.h},e)),w=e=>Object(n.createElement)(y,o()({states:l.b},e)),_=r(26),N=r(2),I=r(56);t.a=Object(b.withInstanceId)(e=>{let{id:t="",fields:r=Object.keys(N.defaultAddressFields),fieldConfig:a={},instanceId:o,onChange:l,type:i="shipping",values:u}=e;const{setValidationErrors:d,clearValidationError:b}=Object(f.useDispatch)(O.VALIDATION_STORE_KEY),p=Object(f.useSelect)(e=>e(O.VALIDATION_STORE_KEY).getValidationError("shipping-missing-country")),m=Object(_.a)(r),g=Object(n.useMemo)(()=>Object(I.a)(m,a,u.country),[m,a,u.country]);return Object(n.useEffect)(()=>{g.forEach(e=>{e.hidden&&u[e.key]&&l({...u,[e.key]:""})})},[g,l,u]),Object(n.useEffect)(()=>{"shipping"===i&&((e,t,r,n)=>{n||e.country||!(e.city||e.state||e.postcode)||t({"shipping-missing-country":{message:Object(s.__)("Please select a country to calculate rates.","woo-gutenberg-products-block"),hidden:!1}}),n&&e.country&&r("shipping-missing-country")})(u,d,b,!(null==p||!p.message||null!=p&&p.hidden))},[u,null==p?void 0:p.message,null==p?void 0:p.hidden,d,b,i]),t=t||o,Object(n.createElement)("div",{id:t,className:"wc-block-components-address-form"},g.map(e=>{if(e.hidden)return null;if("country"===e.key){const r="shipping"===i?E:v;return Object(n.createElement)(r,{key:e.key,id:`${t}-${e.key}`,label:e.required?e.label:e.optionalLabel,value:u.country,autoComplete:e.autocomplete,onChange:e=>l({...u,country:e,state:""}),errorId:"shipping"===i?"shipping-missing-country":null,errorMessage:e.errorMessage,required:e.required})}if("state"===e.key){const r="shipping"===i?C:w;return Object(n.createElement)(r,{key:e.key,id:`${t}-${e.key}`,country:u.country,label:e.required?e.label:e.optionalLabel,value:u.state,autoComplete:e.autocomplete,onChange:e=>l({...u,state:e}),errorMessage:e.errorMessage,required:e.required})}return Object(n.createElement)(c.a,{key:e.key,id:`${t}-${e.key}`,className:"wc-block-components-address-form__"+e.key,label:e.required?e.label:e.optionalLabel,value:u[e.key],autoCapitalize:e.autocapitalize,autoComplete:e.autocomplete,onChange:t=>l({...u,[e.key]:t}),errorMessage:e.errorMessage,required:e.required})}))})},50:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(7);function c(e,t,r){var c=this,a=Object(n.useRef)(null),o=Object(n.useRef)(0),l=Object(n.useRef)(null),s=Object(n.useRef)([]),i=Object(n.useRef)(),u=Object(n.useRef)(),d=Object(n.useRef)(e),b=Object(n.useRef)(!0);d.current=e;var p=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var m=!!(r=r||{}).leading,g=!("trailing"in r)||!!r.trailing,f="maxWait"in r,O=f?Math.max(+r.maxWait||0,t):null;return Object(n.useEffect)((function(){return b.current=!0,function(){b.current=!1}}),[]),Object(n.useMemo)((function(){var e=function(e){var t=s.current,r=i.current;return s.current=i.current=null,o.current=e,u.current=d.current.apply(r,t)},r=function(e,t){p&&cancelAnimationFrame(l.current),l.current=p?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!b.current)return!1;var r=e-a.current,n=e-o.current;return!a.current||r>=t||r<0||f&&n>=O},h=function(t){return l.current=null,g&&s.current?e(t):(s.current=i.current=null,u.current)},j=function(){var e=Date.now();if(n(e))return h(e);if(b.current){var c=e-a.current,l=e-o.current,s=t-c,i=f?Math.min(s,O-l):s;r(j,i)}},E=function(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];var g=Date.now(),O=n(g);if(s.current=d,i.current=c,a.current=g,O){if(!l.current&&b.current)return o.current=a.current,r(j,t),m?e(a.current):u.current;if(f)return r(j,t),e(a.current)}return l.current||r(j,t),u.current};return E.cancel=function(){l.current&&(p?cancelAnimationFrame(l.current):clearTimeout(l.current)),o.current=0,s.current=a.current=i.current=l.current=null},E.isPending=function(){return!!l.current},E.flush=function(){return l.current?h(Date.now()):u.current},E}),[m,f,t,O,g,p])}}}]);
build/checkout-blocks/billing-address-frontend.js CHANGED
@@ -1 +1 @@
1
- (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[37],{479:function(e,t,i){"use strict";i.r(t);var l=i(0),s=i(4),n=i.n(s),d=i(131),o=i(327),c=i(313),r=i(6),a=i(3),b=i(66),u=i(42),h=i(429),p=i(378),m=i(379),g=e=>{let{showCompanyField:t=!1,showApartmentField:i=!1,showPhoneField:s=!1,requireCompanyField:n=!1,requirePhoneField:d=!1}=e;const{defaultAddressFields:o,billingAddress:r,setBillingAddress:a,setShippingAddress:g,setBillingPhone:w}=Object(c.a)(),{dispatchCheckoutEvent:O}=Object(b.a)(),{isEditor:j}=Object(u.a)(),{forcedBillingAddress:F}=Object(c.a)();Object(l.useEffect)(()=>{s||w("")},[s,w]);const f=Object(l.useMemo)(()=>({company:{hidden:!t,required:n},address_2:{hidden:!i}}),[t,n,i]),y=j?p.a:l.Fragment;return Object(l.createElement)(y,null,Object(l.createElement)(h.a,{id:"billing",type:"billing",onChange:e=>{a(e),F&&g(e),O("set-billing-address")},values:r,fields:Object.keys(o),fieldConfig:f}),s&&Object(l.createElement)(m.a,{isRequired:d,value:r.phone,onChange:e=>{w(e),O("set-phone-number",{step:"billing"})}}))},w=i(1),O=i(301),j={...Object(O.a)({defaultTitle:Object(w.__)("Billing address","woo-gutenberg-products-block"),defaultDescription:Object(w.__)("Enter the billing address that matches your payment method.","woo-gutenberg-products-block")}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},F=i(151);t.default=Object(d.withFilteredAttributes)(j)(e=>{let{title:t,description:i,showStepNumber:s,children:d,className:b}=e;const u=Object(r.useSelect)(e=>e(a.CHECKOUT_STORE_KEY).isProcessing()),{requireCompanyField:h,requirePhoneField:p,showApartmentField:m,showCompanyField:w,showPhoneField:O}=Object(F.b)(),{showBillingFields:j}=Object(c.a)();return j?Object(l.createElement)(o.a,{id:"billing-fields",disabled:u,className:n()("wc-block-checkout__billing-fields",b),title:t,description:i,showStepNumber:s},Object(l.createElement)(g,{requireCompanyField:h,showApartmentField:m,showCompanyField:w,showPhoneField:O,requirePhoneField:p}),d):null})}}]);
1
+ (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[37],{479:function(e,t,i){"use strict";i.r(t);var l=i(0),s=i(4),n=i.n(s),d=i(131),o=i(327),r=i(313),c=i(6),a=i(3),b=i(66),u=i(42),h=i(429),p=i(378),m=i(379),g=e=>{let{showCompanyField:t=!1,showApartmentField:i=!1,showPhoneField:s=!1,requireCompanyField:n=!1,requirePhoneField:d=!1}=e;const{defaultAddressFields:o,billingAddress:c,setBillingAddress:a,setShippingAddress:g,setBillingPhone:w}=Object(r.a)(),{dispatchCheckoutEvent:O}=Object(b.a)(),{isEditor:j}=Object(u.a)(),{forcedBillingAddress:F}=Object(r.a)();Object(l.useEffect)(()=>{s||w("")},[s,w]);const f=Object(l.useMemo)(()=>({company:{hidden:!t,required:n},address_2:{hidden:!i}}),[t,n,i]),y=j?p.a:l.Fragment;return Object(l.createElement)(y,null,Object(l.createElement)(h.a,{id:"billing",type:"billing",onChange:e=>{a(e),F&&g(e),O("set-billing-address")},values:c,fields:Object.keys(o),fieldConfig:f}),s&&Object(l.createElement)(m.a,{isRequired:d,value:c.phone,onChange:e=>{w(e),O("set-phone-number",{step:"billing"})}}))},w=i(1),O=i(301),j={...Object(O.a)({defaultTitle:Object(w.__)("Billing address","woo-gutenberg-products-block"),defaultDescription:Object(w.__)("Enter the billing address that matches your payment method.","woo-gutenberg-products-block")}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},F=i(151);t.default=Object(d.withFilteredAttributes)(j)(e=>{let{title:t,description:i,showStepNumber:s,children:d,className:b}=e;const u=Object(c.useSelect)(e=>e(a.CHECKOUT_STORE_KEY).isProcessing()),{requireCompanyField:h,requirePhoneField:p,showApartmentField:m,showCompanyField:w,showPhoneField:O}=Object(F.b)(),{showBillingFields:j,forcedBillingAddress:f}=Object(r.a)();return j||f?Object(l.createElement)(o.a,{id:"billing-fields",disabled:u,className:n()("wc-block-checkout__billing-fields",b),title:t,description:i,showStepNumber:s},Object(l.createElement)(g,{requireCompanyField:h,showApartmentField:m,showCompanyField:w,showPhoneField:O,requirePhoneField:p}),d):null})}}]);
build/checkout-blocks/contact-information-frontend.js CHANGED
@@ -1 +1 @@
1
- (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[38],{21:function(e,t,c){"use strict";var n=c(0),a=c(4),r=c.n(a);t.a=e=>{let t,{label:c,screenReaderLabel:a,wrapperElement:l,wrapperProps:o={}}=e;const s=null!=c,i=null!=a;return!s&&i?(t=l||"span",o={...o,className:r()(o.className,"screen-reader-text")},Object(n.createElement)(t,o,a)):(t=l||n.Fragment,s&&i&&c!==a?Object(n.createElement)(t,o,Object(n.createElement)("span",{"aria-hidden":"true"},c),Object(n.createElement)("span",{className:"screen-reader-text"},a)):Object(n.createElement)(t,o,c))}},289:function(e,t,c){"use strict";c.d(t,"a",(function(){return l}));var n=c(0),a=c(6),r=c(3);c(290);const l=e=>{let{errorMessage:t="",propertyName:c="",elementId:l=""}=e;const{validationError:o,validationErrorId:s}=Object(a.useSelect)(e=>{const t=e(r.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(c),validationErrorId:t.getValidationErrorId(l)}});if(!t||"string"!=typeof t){if(null==o||!o.message||null!=o&&o.hidden)return null;t=o.message}return Object(n.createElement)("div",{className:"wc-block-components-validation-error",role:"alert"},Object(n.createElement)("p",{id:s},t))};t.b=l},290:function(e,t){},292:function(e,t){},295:function(e,t,c){"use strict";var n=c(11),a=c.n(n),r=c(0),l=c(4),o=c.n(l);c(296),t.a=e=>{let{children:t,className:c,headingLevel:n,...l}=e;const s=o()("wc-block-components-title",c),i="h"+n;return Object(r.createElement)(i,a()({className:s},l),t)}},296:function(e,t){},300:function(e,t){},301:function(e,t,c){"use strict";var n=c(1);t.a=e=>{let{defaultTitle:t=Object(n.__)("Step","woo-gutenberg-products-block"),defaultDescription:c=Object(n.__)("Step description text.","woo-gutenberg-products-block"),defaultShowStepNumber:a=!0}=e;return{title:{type:"string",default:t},description:{type:"string",default:c},showStepNumber:{type:"boolean",default:a}}}},313:function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));var n=c(2),a=c(0),r=c(6),l=c(3),o=c(72),s=c(117);const i=()=>{const{needsShipping:e}=Object(s.a)(),{useShippingAsBilling:t}=Object(r.useSelect)(e=>e(l.CHECKOUT_STORE_KEY).getCheckoutState()),{__internalSetUseShippingAsBilling:c}=Object(r.useDispatch)(l.CHECKOUT_STORE_KEY),{billingAddress:i,setBillingAddress:d,shippingAddress:u,setShippingAddress:b}=Object(o.a)(),p=Object(a.useCallback)(e=>{d({email:e})},[d]),m=Object(a.useCallback)(e=>{d({phone:e})},[d]),g=Object(a.useCallback)(e=>{b({phone:e})},[b]),O=Object(n.getSetting)("forcedBillingAddress",!1);return{shippingAddress:u,billingAddress:i,setShippingAddress:b,setBillingAddress:d,setEmail:p,setBillingPhone:m,setShippingPhone:g,defaultAddressFields:n.defaultAddressFields,useShippingAsBilling:t,setUseShippingAsBilling:c,showShippingFields:!O&&e,showBillingFields:O||!e||!t,forcedBillingAddress:O}}},327:function(e,t,c){"use strict";var n=c(0),a=c(4),r=c.n(a),l=c(295);c(300);const o=e=>{let{title:t,stepHeadingContent:c}=e;return Object(n.createElement)("div",{className:"wc-block-components-checkout-step__heading"},Object(n.createElement)(l.a,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!c&&Object(n.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},c))};t.a=e=>{let{id:t,className:c,title:a,legend:l,description:s,children:i,disabled:d=!1,showStepNumber:u=!0,stepHeadingContent:b=(()=>{})}=e;const p=l||a?"fieldset":"div";return Object(n.createElement)(p,{className:r()(c,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":u,"wc-block-components-checkout-step--disabled":d}),id:t,disabled:d},!(!l&&!a)&&Object(n.createElement)("legend",{className:"screen-reader-text"},l||a),!!a&&Object(n.createElement)(o,{title:a,stepHeadingContent:b()}),Object(n.createElement)("div",{className:"wc-block-components-checkout-step__container"},!!s&&Object(n.createElement)("p",{className:"wc-block-components-checkout-step__description"},s),Object(n.createElement)("div",{className:"wc-block-components-checkout-step__content"},i)))}},330:function(e,t,c){"use strict";var n=c(11),a=c.n(n),r=c(0),l=c(1),o=c(7),s=c(4),i=c.n(s),d=c(10),u=c(27),b=c(6),p=c(3),m=c(21);c(292);var g=Object(o.forwardRef)((e,t)=>{let{className:c,id:n,type:l="text",ariaLabel:o,ariaDescribedBy:s,label:d,screenReaderLabel:u,disabled:b,help:p,autoCapitalize:g="off",autoComplete:O="off",value:h="",onChange:E,required:j=!1,onBlur:_=(()=>{}),feedback:f,...v}=e;const[k,w]=Object(r.useState)(!1);return Object(r.createElement)("div",{className:i()("wc-block-components-text-input",c,{"is-active":k||h})},Object(r.createElement)("input",a()({type:l,id:n,value:h,ref:t,autoCapitalize:g,autoComplete:O,onChange:e=>{E(e.target.value)},onFocus:()=>w(!0),onBlur:e=>{_(e.target.value),w(!1)},"aria-label":o||d,disabled:b,"aria-describedby":p&&!s?n+"__help":s,required:j},v)),Object(r.createElement)(m.a,{label:d,screenReaderLabel:u||d,wrapperElement:"label",wrapperProps:{htmlFor:n},htmlFor:n}),!!p&&Object(r.createElement)("p",{id:n+"__help",className:"wc-block-components-text-input__help"},p),f)}),O=c(289);t.a=Object(d.withInstanceId)(e=>{let{className:t,instanceId:c,id:n,ariaDescribedBy:s,errorId:d,focusOnMount:m=!1,onChange:h,showError:E=!0,errorMessage:j="",value:_="",...f}=e;const[v,k]=Object(o.useState)(!0),w=Object(o.useRef)(null),{setValidationErrors:C,hideValidationError:S,clearValidationError:N}=Object(b.dispatch)(p.VALIDATION_STORE_KEY),A=void 0!==n?n:"textinput-"+c,I=void 0!==d?d:A,{validationError:T,validationErrorId:y}=Object(b.useSelect)(e=>{const t=e(p.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(I),validationErrorId:t.getValidationErrorId(I)}}),B=Object(o.useCallback)((function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=w.current||null;if(!t)return;t.value=t.value.trim();const c=t.checkValidity();if(c)N(I);else{const c={[I]:{message:t.validationMessage||Object(l.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}};C(c)}}),[N,I,C]);Object(o.useEffect)(()=>{var e;v&&m&&(null===(e=w.current)||void 0===e||e.focus()),k(!1)},[m,v,k]),Object(o.useEffect)(()=>{var e,t;(null===(e=w.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.activeElement)!==w.current&&B(!0)},[_,B]),Object(o.useEffect)(()=>()=>{N(I)},[N,I]),Object(u.a)(j)&&""!==j&&(T.message=j);const R=(null==T?void 0:T.message)&&!(null!=T&&T.hidden),K=E&&R&&y?y:s;return Object(r.createElement)(g,a()({className:i()(t,{"has-error":R}),"aria-invalid":!0===R,id:A,onBlur:()=>{B(!1)},feedback:E&&Object(r.createElement)(O.a,{errorMessage:j,propertyName:I}),ref:w,onChange:e=>{S(I),h(e)},ariaDescribedBy:K,value:_},f))})},471:function(e,t,c){"use strict";c.r(t);var n=c(0),a=c(4),r=c.n(a),l=c(131),o=c(327),s=c(6),i=c(3),d=c(1),u=c(330),b=c(313),p=c(66),m=c(2),g=c(9),O=e=>{let{allowCreateAccount:t}=e;const{customerId:c,shouldCreateAccount:a}=Object(s.useSelect)(e=>e(i.CHECKOUT_STORE_KEY).getCheckoutState()),{__internalSetShouldCreateAccount:r}=Object(s.useDispatch)(i.CHECKOUT_STORE_KEY),{billingAddress:l,setEmail:o}=Object(b.a)(),{dispatchCheckoutEvent:O}=Object(p.a)(),h=!c&&t&&Object(m.getSetting)("checkoutAllowsGuest",!1)&&Object(m.getSetting)("checkoutAllowsSignup",!1)&&Object(n.createElement)(g.CheckboxControl,{className:"wc-block-checkout__create-account",label:Object(d.__)("Create an account?","woo-gutenberg-products-block"),checked:a,onChange:e=>r(e)});return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(u.a,{id:"email",type:"email",label:Object(d.__)("Email address","woo-gutenberg-products-block"),value:l.email,autoComplete:"email",onChange:e=>{o(e),O("set-email-address")},required:!0}),h)},h=c(301),E={...Object(h.a)({defaultTitle:Object(d.__)("Contact information","woo-gutenberg-products-block"),defaultDescription:Object(d.__)("We'll use this email to send you details and updates about your order.","woo-gutenberg-products-block")}),className:{type:"string",default:""},lock:{type:"object",default:{remove:!0,move:!0}}};const j=`${c(44).e}?redirect_to=${encodeURIComponent(window.location.href)}`;var _=()=>{const e=Object(s.useSelect)(e=>e(i.CHECKOUT_STORE_KEY).getCustomerId());return!Object(m.getSetting)("checkoutShowLoginReminder",!0)||e?null:Object(n.createElement)(n.Fragment,null,Object(d.__)("Already have an account? ","woo-gutenberg-products-block"),Object(n.createElement)("a",{href:j},Object(d.__)("Log in.","woo-gutenberg-products-block")))},f=c(151);t.default=Object(l.withFilteredAttributes)(E)(e=>{let{title:t,description:c,showStepNumber:a,children:l,className:d}=e;const u=Object(s.useSelect)(e=>e(i.CHECKOUT_STORE_KEY).isProcessing()),{allowCreateAccount:b}=Object(f.b)();return Object(n.createElement)(o.a,{id:"contact-fields",disabled:u,className:r()("wc-block-checkout__contact-fields",d),title:t,description:c,showStepNumber:a,stepHeadingContent:()=>Object(n.createElement)(_,null)},Object(n.createElement)(O,{allowCreateAccount:b}),l)})}}]);
1
+ (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[38],{21:function(e,t,c){"use strict";var n=c(0),a=c(4),r=c.n(a);t.a=e=>{let t,{label:c,screenReaderLabel:a,wrapperElement:l,wrapperProps:o={}}=e;const s=null!=c,i=null!=a;return!s&&i?(t=l||"span",o={...o,className:r()(o.className,"screen-reader-text")},Object(n.createElement)(t,o,a)):(t=l||n.Fragment,s&&i&&c!==a?Object(n.createElement)(t,o,Object(n.createElement)("span",{"aria-hidden":"true"},c),Object(n.createElement)("span",{className:"screen-reader-text"},a)):Object(n.createElement)(t,o,c))}},289:function(e,t,c){"use strict";c.d(t,"a",(function(){return l}));var n=c(0),a=c(6),r=c(3);c(290);const l=e=>{let{errorMessage:t="",propertyName:c="",elementId:l=""}=e;const{validationError:o,validationErrorId:s}=Object(a.useSelect)(e=>{const t=e(r.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(c),validationErrorId:t.getValidationErrorId(l)}});if(!t||"string"!=typeof t){if(null==o||!o.message||null!=o&&o.hidden)return null;t=o.message}return Object(n.createElement)("div",{className:"wc-block-components-validation-error",role:"alert"},Object(n.createElement)("p",{id:s},t))};t.b=l},290:function(e,t){},292:function(e,t){},295:function(e,t,c){"use strict";var n=c(11),a=c.n(n),r=c(0),l=c(4),o=c.n(l);c(296),t.a=e=>{let{children:t,className:c,headingLevel:n,...l}=e;const s=o()("wc-block-components-title",c),i="h"+n;return Object(r.createElement)(i,a()({className:s},l),t)}},296:function(e,t){},300:function(e,t){},301:function(e,t,c){"use strict";var n=c(1);t.a=e=>{let{defaultTitle:t=Object(n.__)("Step","woo-gutenberg-products-block"),defaultDescription:c=Object(n.__)("Step description text.","woo-gutenberg-products-block"),defaultShowStepNumber:a=!0}=e;return{title:{type:"string",default:t},description:{type:"string",default:c},showStepNumber:{type:"boolean",default:a}}}},313:function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));var n=c(2),a=c(0),r=c(6),l=c(3),o=c(72),s=c(117);const i=()=>{const{needsShipping:e}=Object(s.a)(),{useShippingAsBilling:t}=Object(r.useSelect)(e=>e(l.CHECKOUT_STORE_KEY).getCheckoutState()),{__internalSetUseShippingAsBilling:c}=Object(r.useDispatch)(l.CHECKOUT_STORE_KEY),{billingAddress:i,setBillingAddress:d,shippingAddress:u,setShippingAddress:b}=Object(o.a)(),p=Object(a.useCallback)(e=>{d({email:e})},[d]),m=Object(a.useCallback)(e=>{d({phone:e})},[d]),g=Object(a.useCallback)(e=>{b({phone:e})},[b]),O=Object(n.getSetting)("forcedBillingAddress",!1);return{shippingAddress:u,billingAddress:i,setShippingAddress:b,setBillingAddress:d,setEmail:p,setBillingPhone:m,setShippingPhone:g,defaultAddressFields:n.defaultAddressFields,useShippingAsBilling:t,setUseShippingAsBilling:c,showShippingFields:!O&&e,showBillingFields:!e||!t,forcedBillingAddress:O}}},327:function(e,t,c){"use strict";var n=c(0),a=c(4),r=c.n(a),l=c(295);c(300);const o=e=>{let{title:t,stepHeadingContent:c}=e;return Object(n.createElement)("div",{className:"wc-block-components-checkout-step__heading"},Object(n.createElement)(l.a,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!c&&Object(n.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},c))};t.a=e=>{let{id:t,className:c,title:a,legend:l,description:s,children:i,disabled:d=!1,showStepNumber:u=!0,stepHeadingContent:b=(()=>{})}=e;const p=l||a?"fieldset":"div";return Object(n.createElement)(p,{className:r()(c,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":u,"wc-block-components-checkout-step--disabled":d}),id:t,disabled:d},!(!l&&!a)&&Object(n.createElement)("legend",{className:"screen-reader-text"},l||a),!!a&&Object(n.createElement)(o,{title:a,stepHeadingContent:b()}),Object(n.createElement)("div",{className:"wc-block-components-checkout-step__container"},!!s&&Object(n.createElement)("p",{className:"wc-block-components-checkout-step__description"},s),Object(n.createElement)("div",{className:"wc-block-components-checkout-step__content"},i)))}},330:function(e,t,c){"use strict";var n=c(11),a=c.n(n),r=c(0),l=c(1),o=c(7),s=c(4),i=c.n(s),d=c(10),u=c(27),b=c(6),p=c(3),m=c(21);c(292);var g=Object(o.forwardRef)((e,t)=>{let{className:c,id:n,type:l="text",ariaLabel:o,ariaDescribedBy:s,label:d,screenReaderLabel:u,disabled:b,help:p,autoCapitalize:g="off",autoComplete:O="off",value:h="",onChange:E,required:j=!1,onBlur:_=(()=>{}),feedback:f,...v}=e;const[k,w]=Object(r.useState)(!1);return Object(r.createElement)("div",{className:i()("wc-block-components-text-input",c,{"is-active":k||h})},Object(r.createElement)("input",a()({type:l,id:n,value:h,ref:t,autoCapitalize:g,autoComplete:O,onChange:e=>{E(e.target.value)},onFocus:()=>w(!0),onBlur:e=>{_(e.target.value),w(!1)},"aria-label":o||d,disabled:b,"aria-describedby":p&&!s?n+"__help":s,required:j},v)),Object(r.createElement)(m.a,{label:d,screenReaderLabel:u||d,wrapperElement:"label",wrapperProps:{htmlFor:n},htmlFor:n}),!!p&&Object(r.createElement)("p",{id:n+"__help",className:"wc-block-components-text-input__help"},p),f)}),O=c(289);t.a=Object(d.withInstanceId)(e=>{let{className:t,instanceId:c,id:n,ariaDescribedBy:s,errorId:d,focusOnMount:m=!1,onChange:h,showError:E=!0,errorMessage:j="",value:_="",...f}=e;const[v,k]=Object(o.useState)(!0),w=Object(o.useRef)(null),{setValidationErrors:C,hideValidationError:S,clearValidationError:N}=Object(b.dispatch)(p.VALIDATION_STORE_KEY),A=void 0!==n?n:"textinput-"+c,I=void 0!==d?d:A,{validationError:T,validationErrorId:y}=Object(b.useSelect)(e=>{const t=e(p.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(I),validationErrorId:t.getValidationErrorId(I)}}),B=Object(o.useCallback)((function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=w.current||null;if(!t)return;t.value=t.value.trim();const c=t.checkValidity();if(c)N(I);else{const c={[I]:{message:t.validationMessage||Object(l.__)("Invalid value.","woo-gutenberg-products-block"),hidden:e}};C(c)}}),[N,I,C]);Object(o.useEffect)(()=>{var e;v&&m&&(null===(e=w.current)||void 0===e||e.focus()),k(!1)},[m,v,k]),Object(o.useEffect)(()=>{var e,t;(null===(e=w.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.activeElement)!==w.current&&B(!0)},[_,B]),Object(o.useEffect)(()=>()=>{N(I)},[N,I]),Object(u.a)(j)&&""!==j&&(T.message=j);const R=(null==T?void 0:T.message)&&!(null!=T&&T.hidden),K=E&&R&&y?y:s;return Object(r.createElement)(g,a()({className:i()(t,{"has-error":R}),"aria-invalid":!0===R,id:A,onBlur:()=>{B(!1)},feedback:E&&Object(r.createElement)(O.a,{errorMessage:j,propertyName:I}),ref:w,onChange:e=>{S(I),h(e)},ariaDescribedBy:K,value:_},f))})},471:function(e,t,c){"use strict";c.r(t);var n=c(0),a=c(4),r=c.n(a),l=c(131),o=c(327),s=c(6),i=c(3),d=c(1),u=c(330),b=c(313),p=c(66),m=c(2),g=c(9),O=e=>{let{allowCreateAccount:t}=e;const{customerId:c,shouldCreateAccount:a}=Object(s.useSelect)(e=>e(i.CHECKOUT_STORE_KEY).getCheckoutState()),{__internalSetShouldCreateAccount:r}=Object(s.useDispatch)(i.CHECKOUT_STORE_KEY),{billingAddress:l,setEmail:o}=Object(b.a)(),{dispatchCheckoutEvent:O}=Object(p.a)(),h=!c&&t&&Object(m.getSetting)("checkoutAllowsGuest",!1)&&Object(m.getSetting)("checkoutAllowsSignup",!1)&&Object(n.createElement)(g.CheckboxControl,{className:"wc-block-checkout__create-account",label:Object(d.__)("Create an account?","woo-gutenberg-products-block"),checked:a,onChange:e=>r(e)});return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(u.a,{id:"email",type:"email",label:Object(d.__)("Email address","woo-gutenberg-products-block"),value:l.email,autoComplete:"email",onChange:e=>{o(e),O("set-email-address")},required:!0}),h)},h=c(301),E={...Object(h.a)({defaultTitle:Object(d.__)("Contact information","woo-gutenberg-products-block"),defaultDescription:Object(d.__)("We'll use this email to send you details and updates about your order.","woo-gutenberg-products-block")}),className:{type:"string",default:""},lock:{type:"object",default:{remove:!0,move:!0}}};const j=`${c(44).e}?redirect_to=${encodeURIComponent(window.location.href)}`;var _=()=>{const e=Object(s.useSelect)(e=>e(i.CHECKOUT_STORE_KEY).getCustomerId());return!Object(m.getSetting)("checkoutShowLoginReminder",!0)||e?null:Object(n.createElement)(n.Fragment,null,Object(d.__)("Already have an account? ","woo-gutenberg-products-block"),Object(n.createElement)("a",{href:j},Object(d.__)("Log in.","woo-gutenberg-products-block")))},f=c(151);t.default=Object(l.withFilteredAttributes)(E)(e=>{let{title:t,description:c,showStepNumber:a,children:l,className:d}=e;const u=Object(s.useSelect)(e=>e(i.CHECKOUT_STORE_KEY).isProcessing()),{allowCreateAccount:b}=Object(f.b)();return Object(n.createElement)(o.a,{id:"contact-fields",disabled:u,className:r()("wc-block-checkout__contact-fields",d),title:t,description:c,showStepNumber:a,stepHeadingContent:()=>Object(n.createElement)(_,null)},Object(n.createElement)(O,{allowCreateAccount:b}),l)})}}]);
build/checkout-blocks/shipping-methods-frontend.js CHANGED
@@ -1,4 +1,4 @@
1
- (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[52],{113:function(e,t,n){"use strict";var c=n(11),a=n.n(c),s=n(0),o=n(146),i=n(4),l=n.n(i);n(212);const r=e=>({thousandSeparator:e.thousandSeparator,decimalSeparator:e.decimalSeparator,decimalScale:e.minorUnit,fixedDecimalScale:!0,prefix:e.prefix,suffix:e.suffix,isNumericString:!0});t.a=e=>{let{className:t,value:n,currency:c,onValueChange:i,displayType:p="text",...d}=e;const b="string"==typeof n?parseInt(n,10):n;if(!Number.isFinite(b))return null;const u=b/10**c.minorUnit;if(!Number.isFinite(u))return null;const m=l()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),g={...d,...r(c),value:void 0,currency:void 0,onValueChange:void 0},O=i?e=>{const t=+e.value*10**c.minorUnit;i(t)}:()=>{};return Object(s.createElement)(o.a,a()({className:m,displayType:p},g,{value:u,onValueChange:O}))}},144:function(e,t,n){"use strict";var c=n(0);n(213),t.a=()=>Object(c.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},145:function(e,t,n){"use strict";var c=n(0),a=n(1),s=n(4),o=n.n(s),i=(n(215),n(144));t.a=e=>{let{children:t,className:n,screenReaderLabel:s,showSpinner:l=!1,isLoading:r=!0}=e;return Object(c.createElement)("div",{className:o()(n,{"wc-block-components-loading-mask":r})},r&&l&&Object(c.createElement)(i.a,null),Object(c.createElement)("div",{className:o()({"wc-block-components-loading-mask__children":r}),"aria-hidden":r},t),r&&Object(c.createElement)("span",{className:"screen-reader-text"},s||Object(a.__)("Loading…","woo-gutenberg-products-block")))}},21:function(e,t,n){"use strict";var c=n(0),a=n(4),s=n.n(a);t.a=e=>{let t,{label:n,screenReaderLabel:a,wrapperElement:o,wrapperProps:i={}}=e;const l=null!=n,r=null!=a;return!l&&r?(t=o||"span",i={...i,className:s()(i.className,"screen-reader-text")},Object(c.createElement)(t,i,a)):(t=o||c.Fragment,l&&r&&n!==a?Object(c.createElement)(t,i,Object(c.createElement)("span",{"aria-hidden":"true"},n),Object(c.createElement)("span",{className:"screen-reader-text"},a)):Object(c.createElement)(t,i,n))}},212:function(e,t){},213:function(e,t){},215:function(e,t){},295:function(e,t,n){"use strict";var c=n(11),a=n.n(c),s=n(0),o=n(4),i=n.n(o);n(296),t.a=e=>{let{children:t,className:n,headingLevel:c,...o}=e;const l=i()("wc-block-components-title",n),r="h"+c;return Object(s.createElement)(r,a()({className:l},o),t)}},296:function(e,t){},297:function(e,t,n){"use strict";var c=n(0),a=n(4),s=n.n(a),o=n(298);t.a=e=>{let{checked:t,name:n,onChange:a,option:i}=e;const{value:l,label:r,description:p,secondaryLabel:d,secondaryDescription:b}=i;return Object(c.createElement)("label",{className:s()("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":t}),htmlFor:`${n}-${l}`},Object(c.createElement)("input",{id:`${n}-${l}`,className:"wc-block-components-radio-control__input",type:"radio",name:n,value:l,onChange:e=>a(e.target.value),checked:t,"aria-describedby":s()({[`${n}-${l}__label`]:r,[`${n}-${l}__secondary-label`]:d,[`${n}-${l}__description`]:p,[`${n}-${l}__secondary-description`]:b})}),Object(c.createElement)(o.a,{id:`${n}-${l}`,label:r,secondaryLabel:d,description:p,secondaryDescription:b}))}},298:function(e,t,n){"use strict";var c=n(0);t.a=e=>{let{label:t,secondaryLabel:n,description:a,secondaryDescription:s,id:o}=e;return Object(c.createElement)("div",{className:"wc-block-components-radio-control__option-layout"},Object(c.createElement)("div",{className:"wc-block-components-radio-control__label-group"},t&&Object(c.createElement)("span",{id:o&&o+"__label",className:"wc-block-components-radio-control__label"},t),n&&Object(c.createElement)("span",{id:o&&o+"__secondary-label",className:"wc-block-components-radio-control__secondary-label"},n)),Object(c.createElement)("div",{className:"wc-block-components-radio-control__description-group"},a&&Object(c.createElement)("span",{id:o&&o+"__description",className:"wc-block-components-radio-control__description"},a),s&&Object(c.createElement)("span",{id:o&&o+"__secondary-description",className:"wc-block-components-radio-control__secondary-description"},s)))}},300:function(e,t){},301:function(e,t,n){"use strict";var c=n(1);t.a=e=>{let{defaultTitle:t=Object(c.__)("Step","woo-gutenberg-products-block"),defaultDescription:n=Object(c.__)("Step description text.","woo-gutenberg-products-block"),defaultShowStepNumber:a=!0}=e;return{title:{type:"string",default:t},description:{type:"string",default:n},showStepNumber:{type:"boolean",default:a}}}},313:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var c=n(2),a=n(0),s=n(6),o=n(3),i=n(72),l=n(117);const r=()=>{const{needsShipping:e}=Object(l.a)(),{useShippingAsBilling:t}=Object(s.useSelect)(e=>e(o.CHECKOUT_STORE_KEY).getCheckoutState()),{__internalSetUseShippingAsBilling:n}=Object(s.useDispatch)(o.CHECKOUT_STORE_KEY),{billingAddress:r,setBillingAddress:p,shippingAddress:d,setShippingAddress:b}=Object(i.a)(),u=Object(a.useCallback)(e=>{p({email:e})},[p]),m=Object(a.useCallback)(e=>{p({phone:e})},[p]),g=Object(a.useCallback)(e=>{b({phone:e})},[b]),O=Object(c.getSetting)("forcedBillingAddress",!1);return{shippingAddress:d,billingAddress:r,setShippingAddress:b,setBillingAddress:p,setEmail:u,setBillingPhone:m,setShippingPhone:g,defaultAddressFields:c.defaultAddressFields,useShippingAsBilling:t,setUseShippingAsBilling:n,showShippingFields:!O&&e,showBillingFields:O||!e||!t,forcedBillingAddress:O}}},319:function(e,t,n){"use strict";var c=n(0),a=n(4),s=n.n(a),o=n(10),i=n(297);n(320);const l=e=>{let{className:t="",id:n,selected:a,onChange:r,options:p=[]}=e;const d=Object(o.useInstanceId)(l),b=n||d;return p.length?Object(c.createElement)("div",{className:s()("wc-block-components-radio-control",t)},p.map(e=>Object(c.createElement)(i.a,{key:`${b}-${e.value}`,name:"radio-control-"+b,checked:e.value===a,option:e,onChange:t=>{r(t),"function"==typeof e.onChange&&e.onChange(t)}}))):null};t.a=l},320:function(e,t){},327:function(e,t,n){"use strict";var c=n(0),a=n(4),s=n.n(a),o=n(295);n(300);const i=e=>{let{title:t,stepHeadingContent:n}=e;return Object(c.createElement)("div",{className:"wc-block-components-checkout-step__heading"},Object(c.createElement)(o.a,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!n&&Object(c.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},n))};t.a=e=>{let{id:t,className:n,title:a,legend:o,description:l,children:r,disabled:p=!1,showStepNumber:d=!0,stepHeadingContent:b=(()=>{})}=e;const u=o||a?"fieldset":"div";return Object(c.createElement)(u,{className:s()(n,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":d,"wc-block-components-checkout-step--disabled":p}),id:t,disabled:p},!(!o&&!a)&&Object(c.createElement)("legend",{className:"screen-reader-text"},o||a),!!a&&Object(c.createElement)(i,{title:a,stepHeadingContent:b()}),Object(c.createElement)("div",{className:"wc-block-components-checkout-step__container"},!!l&&Object(c.createElement)("p",{className:"wc-block-components-checkout-step__description"},l),Object(c.createElement)("div",{className:"wc-block-components-checkout-step__content"},r)))}},357:function(e,t){},370:function(e,t,n){"use strict";var c=n(8),a=n(0),s=n(4),o=n.n(s),i=n(10),l=n(39);t.a=function({icon:e,children:t,label:n,instructions:s,className:r,notices:p,preview:d,isColumnLayout:b,...u}){const[m,{width:g}]=Object(i.useResizeObserver)();let O;"number"==typeof g&&(O={"is-large":g>=480,"is-medium":g>=160&&g<480,"is-small":g<160});const h=o()("components-placeholder",r,O),j=o()("components-placeholder__fieldset",{"is-column-layout":b});return Object(a.createElement)("div",Object(c.a)({},u,{className:h}),m,p,d&&Object(a.createElement)("div",{className:"components-placeholder__preview"},d),Object(a.createElement)("div",{className:"components-placeholder__label"},Object(a.createElement)(l.a,{icon:e}),n),!!s&&Object(a.createElement)("div",{className:"components-placeholder__instructions"},s),Object(a.createElement)("div",{className:j},t))}},383:function(e,t,n){"use strict";var c=n(0),a=n(1),s=n(23),o=n(145),i=n(9),l=n(417),r=n(35),p=n(42),d=n(4),b=n.n(d),u=n(20),m=n(21),g=n(91),O=n(105),h=n(319),j=n(298),_=n(38),k=n(113),E=n(2);const w=e=>{const t=Object(E.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:Object(u.decodeEntities)(e.name),value:e.rate_id,description:Object(c.createElement)(c.Fragment,null,Number.isFinite(t)&&Object(c.createElement)(k.a,{currency:Object(_.getCurrencyFromPriceResponse)(e),value:t}),Number.isFinite(t)&&e.delivery_time?" — ":null,Object(u.decodeEntities)(e.delivery_time))}};var f=e=>{let{className:t="",noResultsMessage:n,onSelectRate:a,rates:s,renderOption:o=w,selectedRate:i}=e;const l=(null==i?void 0:i.rate_id)||"",[r,p]=Object(c.useState)(l);if(Object(c.useEffect)(()=>{l&&p(l)},[l]),0===s.length)return n;if(s.length>1)return Object(c.createElement)(h.a,{className:t,onChange:e=>{p(e),a(e)},selected:r,options:s.map(o)});const{label:d,secondaryLabel:b,description:u,secondaryDescription:m}=o(s[0]);return Object(c.createElement)(j.a,{label:d,secondaryLabel:b,description:u,secondaryDescription:m})};n(357);var v=e=>{let{packageId:t,className:n="",noResultsMessage:s,renderOption:o,packageData:l,collapsible:r=!1,collapse:p=!1,showItems:d=!1}=e;const{selectShippingRate:h}=Object(g.a)(),j=Object(c.createElement)(c.Fragment,null,(d||r)&&Object(c.createElement)("div",{className:"wc-block-components-shipping-rates-control__package-title",dangerouslySetInnerHTML:{__html:Object(O.a)(l.name)}}),d&&Object(c.createElement)("ul",{className:"wc-block-components-shipping-rates-control__package-items"},Object.values(l.items).map(e=>{const t=Object(u.decodeEntities)(e.name),n=e.quantity;return Object(c.createElement)("li",{key:e.key,className:"wc-block-components-shipping-rates-control__package-item"},Object(c.createElement)(m.a,{label:n>1?`${t} × ${n}`:""+t,screenReaderLabel:Object(a.sprintf)(
2
  /* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */
3
  Object(a._n)("%1$s (%2$d unit)","%1$s (%2$d units)",n,"woo-gutenberg-products-block"),t,n)}))}))),_=Object(c.createElement)(f,{className:n,noResultsMessage:s,rates:l.shipping_rates,onSelectRate:e=>h(e,t),selectedRate:l.shipping_rates.find(e=>e.selected),renderOption:o});return r?Object(c.createElement)(i.Panel,{className:"wc-block-components-shipping-rates-control__package",initialOpen:!p,title:j},_):Object(c.createElement)("div",{className:b()("wc-block-components-shipping-rates-control__package",n)},j,_)};const N=e=>{let{packages:t,collapse:n,showItems:a,collapsible:s,noResultsMessage:o,renderOption:i}=e;return t.length?Object(c.createElement)(c.Fragment,null,t.map(e=>{let{package_id:l,...r}=e;return Object(c.createElement)(v,{key:l,packageId:l,packageData:r,collapsible:!!s,collapse:!!n,showItems:a||t.length>1,noResultsMessage:o,renderOption:i})})):null};t.a=e=>{let{shippingRates:t,isLoadingRates:n,className:d,collapsible:b=!1,noResultsMessage:u,renderOption:m,context:g}=e;Object(c.useEffect)(()=>{if(n)return;const e=Object(l.a)(t),c=Object(l.b)(t);1===e?Object(s.speak)(Object(a.sprintf)(
4
  /* translators: %d number of shipping options found. */
1
+ (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[52],{113:function(e,t,n){"use strict";var c=n(11),a=n.n(c),s=n(0),o=n(146),i=n(4),l=n.n(i);n(212);const r=e=>({thousandSeparator:e.thousandSeparator,decimalSeparator:e.decimalSeparator,decimalScale:e.minorUnit,fixedDecimalScale:!0,prefix:e.prefix,suffix:e.suffix,isNumericString:!0});t.a=e=>{let{className:t,value:n,currency:c,onValueChange:i,displayType:p="text",...d}=e;const b="string"==typeof n?parseInt(n,10):n;if(!Number.isFinite(b))return null;const u=b/10**c.minorUnit;if(!Number.isFinite(u))return null;const m=l()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),g={...d,...r(c),value:void 0,currency:void 0,onValueChange:void 0},O=i?e=>{const t=+e.value*10**c.minorUnit;i(t)}:()=>{};return Object(s.createElement)(o.a,a()({className:m,displayType:p},g,{value:u,onValueChange:O}))}},144:function(e,t,n){"use strict";var c=n(0);n(213),t.a=()=>Object(c.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},145:function(e,t,n){"use strict";var c=n(0),a=n(1),s=n(4),o=n.n(s),i=(n(215),n(144));t.a=e=>{let{children:t,className:n,screenReaderLabel:s,showSpinner:l=!1,isLoading:r=!0}=e;return Object(c.createElement)("div",{className:o()(n,{"wc-block-components-loading-mask":r})},r&&l&&Object(c.createElement)(i.a,null),Object(c.createElement)("div",{className:o()({"wc-block-components-loading-mask__children":r}),"aria-hidden":r},t),r&&Object(c.createElement)("span",{className:"screen-reader-text"},s||Object(a.__)("Loading…","woo-gutenberg-products-block")))}},21:function(e,t,n){"use strict";var c=n(0),a=n(4),s=n.n(a);t.a=e=>{let t,{label:n,screenReaderLabel:a,wrapperElement:o,wrapperProps:i={}}=e;const l=null!=n,r=null!=a;return!l&&r?(t=o||"span",i={...i,className:s()(i.className,"screen-reader-text")},Object(c.createElement)(t,i,a)):(t=o||c.Fragment,l&&r&&n!==a?Object(c.createElement)(t,i,Object(c.createElement)("span",{"aria-hidden":"true"},n),Object(c.createElement)("span",{className:"screen-reader-text"},a)):Object(c.createElement)(t,i,n))}},212:function(e,t){},213:function(e,t){},215:function(e,t){},295:function(e,t,n){"use strict";var c=n(11),a=n.n(c),s=n(0),o=n(4),i=n.n(o);n(296),t.a=e=>{let{children:t,className:n,headingLevel:c,...o}=e;const l=i()("wc-block-components-title",n),r="h"+c;return Object(s.createElement)(r,a()({className:l},o),t)}},296:function(e,t){},297:function(e,t,n){"use strict";var c=n(0),a=n(4),s=n.n(a),o=n(298);t.a=e=>{let{checked:t,name:n,onChange:a,option:i}=e;const{value:l,label:r,description:p,secondaryLabel:d,secondaryDescription:b}=i;return Object(c.createElement)("label",{className:s()("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":t}),htmlFor:`${n}-${l}`},Object(c.createElement)("input",{id:`${n}-${l}`,className:"wc-block-components-radio-control__input",type:"radio",name:n,value:l,onChange:e=>a(e.target.value),checked:t,"aria-describedby":s()({[`${n}-${l}__label`]:r,[`${n}-${l}__secondary-label`]:d,[`${n}-${l}__description`]:p,[`${n}-${l}__secondary-description`]:b})}),Object(c.createElement)(o.a,{id:`${n}-${l}`,label:r,secondaryLabel:d,description:p,secondaryDescription:b}))}},298:function(e,t,n){"use strict";var c=n(0);t.a=e=>{let{label:t,secondaryLabel:n,description:a,secondaryDescription:s,id:o}=e;return Object(c.createElement)("div",{className:"wc-block-components-radio-control__option-layout"},Object(c.createElement)("div",{className:"wc-block-components-radio-control__label-group"},t&&Object(c.createElement)("span",{id:o&&o+"__label",className:"wc-block-components-radio-control__label"},t),n&&Object(c.createElement)("span",{id:o&&o+"__secondary-label",className:"wc-block-components-radio-control__secondary-label"},n)),Object(c.createElement)("div",{className:"wc-block-components-radio-control__description-group"},a&&Object(c.createElement)("span",{id:o&&o+"__description",className:"wc-block-components-radio-control__description"},a),s&&Object(c.createElement)("span",{id:o&&o+"__secondary-description",className:"wc-block-components-radio-control__secondary-description"},s)))}},300:function(e,t){},301:function(e,t,n){"use strict";var c=n(1);t.a=e=>{let{defaultTitle:t=Object(c.__)("Step","woo-gutenberg-products-block"),defaultDescription:n=Object(c.__)("Step description text.","woo-gutenberg-products-block"),defaultShowStepNumber:a=!0}=e;return{title:{type:"string",default:t},description:{type:"string",default:n},showStepNumber:{type:"boolean",default:a}}}},313:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var c=n(2),a=n(0),s=n(6),o=n(3),i=n(72),l=n(117);const r=()=>{const{needsShipping:e}=Object(l.a)(),{useShippingAsBilling:t}=Object(s.useSelect)(e=>e(o.CHECKOUT_STORE_KEY).getCheckoutState()),{__internalSetUseShippingAsBilling:n}=Object(s.useDispatch)(o.CHECKOUT_STORE_KEY),{billingAddress:r,setBillingAddress:p,shippingAddress:d,setShippingAddress:b}=Object(i.a)(),u=Object(a.useCallback)(e=>{p({email:e})},[p]),m=Object(a.useCallback)(e=>{p({phone:e})},[p]),g=Object(a.useCallback)(e=>{b({phone:e})},[b]),O=Object(c.getSetting)("forcedBillingAddress",!1);return{shippingAddress:d,billingAddress:r,setShippingAddress:b,setBillingAddress:p,setEmail:u,setBillingPhone:m,setShippingPhone:g,defaultAddressFields:c.defaultAddressFields,useShippingAsBilling:t,setUseShippingAsBilling:n,showShippingFields:!O&&e,showBillingFields:!e||!t,forcedBillingAddress:O}}},319:function(e,t,n){"use strict";var c=n(0),a=n(4),s=n.n(a),o=n(10),i=n(297);n(320);const l=e=>{let{className:t="",id:n,selected:a,onChange:r,options:p=[]}=e;const d=Object(o.useInstanceId)(l),b=n||d;return p.length?Object(c.createElement)("div",{className:s()("wc-block-components-radio-control",t)},p.map(e=>Object(c.createElement)(i.a,{key:`${b}-${e.value}`,name:"radio-control-"+b,checked:e.value===a,option:e,onChange:t=>{r(t),"function"==typeof e.onChange&&e.onChange(t)}}))):null};t.a=l},320:function(e,t){},327:function(e,t,n){"use strict";var c=n(0),a=n(4),s=n.n(a),o=n(295);n(300);const i=e=>{let{title:t,stepHeadingContent:n}=e;return Object(c.createElement)("div",{className:"wc-block-components-checkout-step__heading"},Object(c.createElement)(o.a,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!n&&Object(c.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},n))};t.a=e=>{let{id:t,className:n,title:a,legend:o,description:l,children:r,disabled:p=!1,showStepNumber:d=!0,stepHeadingContent:b=(()=>{})}=e;const u=o||a?"fieldset":"div";return Object(c.createElement)(u,{className:s()(n,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":d,"wc-block-components-checkout-step--disabled":p}),id:t,disabled:p},!(!o&&!a)&&Object(c.createElement)("legend",{className:"screen-reader-text"},o||a),!!a&&Object(c.createElement)(i,{title:a,stepHeadingContent:b()}),Object(c.createElement)("div",{className:"wc-block-components-checkout-step__container"},!!l&&Object(c.createElement)("p",{className:"wc-block-components-checkout-step__description"},l),Object(c.createElement)("div",{className:"wc-block-components-checkout-step__content"},r)))}},357:function(e,t){},370:function(e,t,n){"use strict";var c=n(8),a=n(0),s=n(4),o=n.n(s),i=n(10),l=n(39);t.a=function({icon:e,children:t,label:n,instructions:s,className:r,notices:p,preview:d,isColumnLayout:b,...u}){const[m,{width:g}]=Object(i.useResizeObserver)();let O;"number"==typeof g&&(O={"is-large":g>=480,"is-medium":g>=160&&g<480,"is-small":g<160});const h=o()("components-placeholder",r,O),j=o()("components-placeholder__fieldset",{"is-column-layout":b});return Object(a.createElement)("div",Object(c.a)({},u,{className:h}),m,p,d&&Object(a.createElement)("div",{className:"components-placeholder__preview"},d),Object(a.createElement)("div",{className:"components-placeholder__label"},Object(a.createElement)(l.a,{icon:e}),n),!!s&&Object(a.createElement)("div",{className:"components-placeholder__instructions"},s),Object(a.createElement)("div",{className:j},t))}},383:function(e,t,n){"use strict";var c=n(0),a=n(1),s=n(23),o=n(145),i=n(9),l=n(417),r=n(35),p=n(42),d=n(4),b=n.n(d),u=n(20),m=n(21),g=n(91),O=n(105),h=n(319),j=n(298),_=n(38),k=n(113),E=n(2);const w=e=>{const t=Object(E.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:Object(u.decodeEntities)(e.name),value:e.rate_id,description:Object(c.createElement)(c.Fragment,null,Number.isFinite(t)&&Object(c.createElement)(k.a,{currency:Object(_.getCurrencyFromPriceResponse)(e),value:t}),Number.isFinite(t)&&e.delivery_time?" — ":null,Object(u.decodeEntities)(e.delivery_time))}};var f=e=>{let{className:t="",noResultsMessage:n,onSelectRate:a,rates:s,renderOption:o=w,selectedRate:i}=e;const l=(null==i?void 0:i.rate_id)||"",[r,p]=Object(c.useState)(l);if(Object(c.useEffect)(()=>{l&&p(l)},[l]),0===s.length)return n;if(s.length>1)return Object(c.createElement)(h.a,{className:t,onChange:e=>{p(e),a(e)},selected:r,options:s.map(o)});const{label:d,secondaryLabel:b,description:u,secondaryDescription:m}=o(s[0]);return Object(c.createElement)(j.a,{label:d,secondaryLabel:b,description:u,secondaryDescription:m})};n(357);var v=e=>{let{packageId:t,className:n="",noResultsMessage:s,renderOption:o,packageData:l,collapsible:r=!1,collapse:p=!1,showItems:d=!1}=e;const{selectShippingRate:h}=Object(g.a)(),j=Object(c.createElement)(c.Fragment,null,(d||r)&&Object(c.createElement)("div",{className:"wc-block-components-shipping-rates-control__package-title",dangerouslySetInnerHTML:{__html:Object(O.a)(l.name)}}),d&&Object(c.createElement)("ul",{className:"wc-block-components-shipping-rates-control__package-items"},Object.values(l.items).map(e=>{const t=Object(u.decodeEntities)(e.name),n=e.quantity;return Object(c.createElement)("li",{key:e.key,className:"wc-block-components-shipping-rates-control__package-item"},Object(c.createElement)(m.a,{label:n>1?`${t} × ${n}`:""+t,screenReaderLabel:Object(a.sprintf)(
2
  /* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */
3
  Object(a._n)("%1$s (%2$d unit)","%1$s (%2$d units)",n,"woo-gutenberg-products-block"),t,n)}))}))),_=Object(c.createElement)(f,{className:n,noResultsMessage:s,rates:l.shipping_rates,onSelectRate:e=>h(e,t),selectedRate:l.shipping_rates.find(e=>e.selected),renderOption:o});return r?Object(c.createElement)(i.Panel,{className:"wc-block-components-shipping-rates-control__package",initialOpen:!p,title:j},_):Object(c.createElement)("div",{className:b()("wc-block-components-shipping-rates-control__package",n)},j,_)};const N=e=>{let{packages:t,collapse:n,showItems:a,collapsible:s,noResultsMessage:o,renderOption:i}=e;return t.length?Object(c.createElement)(c.Fragment,null,t.map(e=>{let{package_id:l,...r}=e;return Object(c.createElement)(v,{key:l,packageId:l,packageData:r,collapsible:!!s,collapse:!!n,showItems:a||t.length>1,noResultsMessage:o,renderOption:i})})):null};t.a=e=>{let{shippingRates:t,isLoadingRates:n,className:d,collapsible:b=!1,noResultsMessage:u,renderOption:m,context:g}=e;Object(c.useEffect)(()=>{if(n)return;const e=Object(l.a)(t),c=Object(l.b)(t);1===e?Object(s.speak)(Object(a.sprintf)(
4
  /* translators: %d number of shipping options found. */
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' => '6eba719df87a1f5c970a208d81453c3c');
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' => '87cf04ee1aeb65a12fcfa621b2b1c47b');
build/checkout-frontend.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){function t(t){for(var r,o,i=t[0],c=t[1],a=0,l=[];a<i.length;a++)o=i[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(s&&s(t);l.length;)l.shift()()}var r={},n={35:0,9: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 i=new Promise((function(t,o){r=n[e]=[t,o]}));t.push(r[2]=i);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-cross-sells-products--cart-blocks/cart-line-items--cart-blocks/cart-order--671ca56f",1:"vendors--cart-blocks/cart-cross-sells-products--cart-blocks/order-summary-shipping--checkout-blocks--18f9376a",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/cart-express-payment--checkout-blocks/express-payment",7:"cart-blocks/order-summary-shipping--checkout-blocks/order-summary-shipping",8:"checkout-blocks/billing-address--checkout-blocks/shipping-address",36:"checkout-blocks/actions",37:"checkout-blocks/billing-address",38:"checkout-blocks/contact-information",39:"checkout-blocks/express-payment",40:"checkout-blocks/fields",41:"checkout-blocks/order-note",42:"checkout-blocks/order-summary",43:"checkout-blocks/order-summary-cart-items",44:"checkout-blocks/order-summary-coupon-form",45:"checkout-blocks/order-summary-discount",46:"checkout-blocks/order-summary-fee",47:"checkout-blocks/order-summary-shipping",48:"checkout-blocks/order-summary-subtotal",49:"checkout-blocks/order-summary-taxes",50:"checkout-blocks/payment",51:"checkout-blocks/shipping-address",52:"checkout-blocks/shipping-methods",53:"checkout-blocks/terms",54:"checkout-blocks/totals"}[e]||e)+"-frontend.js?ver="+{0:"070996725b0f85b980b0",1:"07321dd2b38335dc8fab",2:"f5825d8c0d17b0570c67",3:"6d35da8c35248d2292f8",5:"44606933b44c1da30e3b",7:"ddf270ed783163111192",8:"83519094c9fc43ed0018",36:"f55cc55ed44415e0e5d4",37:"a5a218c3e7f2606696b8",38:"b5b85f96343fbbe26161",39:"7ac538b30218bb25c34a",40:"9917cfdfb851d993b18b",41:"57915deb9d71798bb275",42:"9a36a9eb0fd953de7c17",43:"eed2ba48b6be0926322e",44:"dc4a8edf0444027601b7",45:"fae41bd6c35961abd009",46:"f22c722edb5fad949c2e",47:"7a994ba4a90952b514ea",48:"482b0c2cfbfc06474d96",49:"d55739eabcaa7d64c59b",50:"b6f4a70940f02c839003",51:"eb8408683dce8c28b9b7",52:"8441cc60f7ff05a82291",53:"2951beacda541d740737",54:"8da6bde5a6da56ba5f78"}[e]}(e);var s=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),i=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}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 i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var s=c;o(o.s=253)}([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.wc.wcBlocksData},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 i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var c=o.apply(null,n);c&&e.push(c)}}else if("object"===i)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.lodash},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.React},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.wc.blocksCheckout},function(e,t){e.exports=window.wp.compose},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.isShallowEqual},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.wp.primitives},function(e,t,r){"use strict";var n=r(17),o=r.n(n),i=r(0),c=r(7),a=r(1),s=r(44),l=e=>{let{imageUrl:t=s.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(i.createElement)("div",{className:"wc-block-error wc-block-components-error"},t&&Object(i.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:t,alt:""}),Object(i.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},r&&Object(i.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},r),n&&Object(i.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},n),o&&Object(i.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},c?c+" ":"",o),l&&Object(i.createElement)("p",{className:"wc-block-error__button wc-block-components-error__button"},l))):null};r(33);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(i.createElement)(i.Fragment,null,Object(i.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:s}=this.props,{errorMessage:u,hasError:p}=this.state;return p?"function"==typeof a?a({errorMessage:u}):Object(i.createElement)(l,{showErrorBlock:n,errorMessage:r?u:null,header:e,imageUrl:t,text:o,errorMessagePrefix:c,button:s}):this.props.children}}t.a=u},function(e,t){e.exports=window.wc.wcBlocksRegistry},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.htmlEntities},,,function(e,t){e.exports=window.wp.a11y},,function(e,t,r){"use strict";(function(e){var n=r(0);r(36);const o=Object(n.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==e&&e.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});t.a=o}).call(this,r(65))},,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.deprecated},,,function(e,t){e.exports=window.wp.apiFetch},,function(e,t){},function(e,t,r){"use strict";var n=r(4),o=r.n(n),i=r(0);t.a=Object(i.forwardRef)((function({as:e="div",className:t,...r},n){return function({as:e="div",...t}){return"function"==typeof t.children?t.children(t):Object(i.createElement)(e,t)}({as:e,className:o()("components-visually-hidden",t),...r,ref:n})}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return _}));var n=r(5),o=r(0),i=r(3),c=r(6),a=r(20),s=r(129),l=r(42),u=r(89);const p=e=>{const t=e.detail;t&&t.preserveCartData||Object(c.dispatch)(i.CART_STORE_KEY).invalidateResolutionForStore()},d=()=>{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",p),document.body.addEventListener("wc-blocks_removed_from_cart",p),window.wcBlocksStoreCartListeners.count=0,window.wcBlocksStoreCartListeners.remove=()=>{e(),t(),document.body.removeEventListener("wc-blocks_added_to_cart",p),document.body.removeEventListener("wc-blocks_removed_from_cart",p)}}window.wcBlocksStoreCartListeners.count++})(),d),[])},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:i.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:i.EMPTY_CART_COUPONS,cartItems:i.EMPTY_CART_ITEMS,cartFees:i.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,crossSellsProducts:i.EMPTY_CART_CROSS_SELLS,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:i.EMPTY_CART_ITEM_ERRORS,cartTotals:b,cartIsLoading:!0,cartErrors:i.EMPTY_CART_ERRORS,billingAddress:h,shippingAddress:f,shippingRates:i.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentRequirements:i.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},extensions:i.EMPTY_EXTENSIONS},_=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,p=Object(o.useRef)();m();const d=Object(c.useSelect)((e,r)=>{let{dispatch:n}=r;if(!u)return y;if(t)return{cartCoupons:a.coupons,cartItems:a.items,crossSellsProducts:a.cross_sells,cartFees:a.fees,cartItemsCount:a.items_count,cartItemsWeight:a.items_weight,cartNeedsPayment:a.needs_payment,cartNeedsShipping:a.needs_shipping,cartItemErrors:i.EMPTY_CART_ITEM_ERRORS,cartTotals:a.totals,cartIsLoading:!1,cartErrors:i.EMPTY_CART_ERRORS,billingData:h,billingAddress:h,shippingAddress:f,extensions:i.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(i.CART_STORE_KEY),c=o.getCartData(),l=o.getCartErrors(),p=o.getCartTotals(),d=!o.hasFinishedResolution("getCartData"),m=o.isCustomerDataUpdating(),{receiveCart:b}=n(i.CART_STORE_KEY),_=g(c.billingAddress),v=c.needsShipping?g(c.shippingAddress):_,O=c.fees.length>0?c.fees.map(e=>g(e)):i.EMPTY_CART_FEES;return{cartCoupons:c.coupons.length>0?c.coupons.map(e=>({...e,label:e.code})):i.EMPTY_CART_COUPONS,cartItems:c.items,crossSellsProducts:c.crossSells,cartFees:O,cartItemsCount:c.itemsCount,cartItemsWeight:c.itemsWeight,cartNeedsPayment:c.needsPayment,cartNeedsShipping:c.needsShipping,cartItemErrors:c.errors,cartTotals:p,cartIsLoading:d,cartErrors:l,billingData:Object(s.a)(_),billingAddress:Object(s.a)(_),shippingAddress:Object(s.a)(v),extensions:c.extensions,shippingRates:c.shippingRates,isLoadingRates:m,cartHasCalculatedShipping:c.hasCalculatedShipping,paymentRequirements:c.paymentRequirements,receiveCart:b}},[u]);return p.current&&Object(n.isEqual)(p.current,d)||(p.current=d),p.current}},function(e,t){e.exports=window.wp.warning},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(11),o=r.n(n),i=r(0),c=r(15);const a=[".wp-block-woocommerce-cart"],s=e=>{let{Block:t,containers:r,getProps:n=(()=>({})),getErrorBoundaryProps:a=(()=>({}))}=e;0!==r.length&&Array.prototype.forEach.call(r,(e,r)=>{const s=n(e,r),l=a(e,r),u={...e.dataset,...s.attributes||{}};(e=>{let{Block:t,container:r,attributes:n={},props:a={},errorBoundaryProps:s={}}=e;Object(i.render)(Object(i.createElement)(c.a,s,Object(i.createElement)(i.Suspense,{fallback:Object(i.createElement)("div",{className:"wc-block-placeholder"})},t&&Object(i.createElement)(t,o()({},a,{attributes:n})))),r,()=>{r.classList&&r.classList.remove("is-loading")})})({Block:t,container:e,props:s,attributes:u,errorBoundaryProps:l})})},l=e=>{const t=document.body.querySelectorAll(a.join(",")),{Block:r,getProps:n,getErrorBoundaryProps:o,selector:i}=e;(e=>{let{Block:t,getProps:r,getErrorBoundaryProps:n,selector:o,wrappers:i}=e;const c=document.body.querySelectorAll(o);i&&i.length>0&&Array.prototype.filter.call(c,e=>!((e,t)=>Array.prototype.some.call(t,t=>t.contains(e)&&!t.isSameNode(e)))(e,i)),s({Block:t,containers:c,getProps:r,getErrorBoundaryProps:n})})({Block:r,getProps:n,getErrorBoundaryProps:o,selector:i,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:i}=e;const c=i.querySelectorAll(o);s({Block:t,containers:c,getProps:r,getErrorBoundaryProps:n})})({...e,wrapper:t})})})}},function(e,t){e.exports=window.wc.priceFormat},function(e,t,r){"use strict";var n=r(8),o=r(0),i=r(14),c=function({icon:e,className:t,...r}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" ");return Object(o.createElement)("span",Object(n.a)({className:i},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===i.SVG)){const n={width:t,height:t,...e.props,...r};return Object(o.createElement)(i.SVG,n)}return Object(o.isValidElement)(e)?Object(o.cloneElement)(e,{size:t,...r}):e}},,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"e",(function(){return i})),r.d(t,"d",(function(){return c})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return l}));var n=r(18);const o=(e,t)=>e[t]?Array.from(e[t].values()).sort((e,t)=>e.priority-t.priority):[];let i,c;!function(e){e.SUCCESS="success",e.FAIL="failure",e.ERROR="error"}(i||(i={})),function(e){e.PAYMENTS="wc/payment-area",e.EXPRESS_PAYMENTS="wc/express-payment-area"}(c||(c={}));const a=(e,t)=>Object(n.a)(e)&&"type"in e&&e.type===t,s=e=>a(e,i.ERROR),l=e=>a(e,i.FAIL)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0);r(6);const o=Object(n.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>{}}),i=()=>Object(n.useContext)(o)},function(e,t,r){"use strict";var n=r(8),o=r(0),i=r(4),c=r.n(i),a=r(5),s=r(28),l=r.n(s),u=r(10),p=r(45),d=r(90),m=r(1);function f(e,t,r){const{defaultView:n}=t,{frameElement:o}=n;if(!o||t===r.ownerDocument)return e;const i=o.getBoundingClientRect();return new n.DOMRect(e.left+i.left,e.top+i.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 _=r(25);function v(e){const t=Object(o.useContext)(_.a),r=t.slots[e]||{},n=t.fills[e],i=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:i,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 k({name:e,children:t,registerFill:r,unregisterFill:n}){const i=(e=>{const{getSlot:t,subscribe:r}=Object(o.useContext)(O),[n,i]=Object(o.useState)(t(e));return Object(o.useEffect)(()=>(i(t(e)),r(()=>{i(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,i&&i.forceUpdate()},[t]),Object(o.useLayoutEffect)(()=>{e!==c.current.name&&(n(c.current.name,c.current),c.current.name=e,r(e,c.current))},[e]),i&&i.node?(Object(a.isFunction)(t)&&(t=t(i.props.fillProps)),Object(o.createPortal)(t,i.node)):null}var E=e=>Object(o.createElement)(O.Consumer,null,({registerFill:t,unregisterFill:r})=>Object(o.createElement)(k,Object(n.a)({},e,{registerFill:t,unregisterFill:r})));class w 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,i=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(i):i)}}var j=e=>Object(o.createElement)(O.Consumer,null,({registerSlot:t,unregisterSlot:r,getFills:i})=>Object(o.createElement)(w,Object(n.a)({},e,{registerSlot:t,unregisterSlot:r,getFills:i})));function S(){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=v(e),n=Object(o.useRef)({rerender:S()});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 x=Object(o.forwardRef)((function({name:e,fillProps:t={},as:r="div",...i},c){const a=Object(o.useContext)(_.a),s=Object(o.useRef)();return Object(o.useLayoutEffect)(()=>(a.registerSlot(e,s,t),()=>{a.unregisterSlot(e,s)}),[a.registerSlot,a.unregisterSlot,e]),Object(o.useLayoutEffect)(()=>{a.updateSlot(e,t)}),Object(o.createElement)(r,Object(n.a)({ref:Object(u.useMergeRefs)([c,s])},i))}));function T(e){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E,e),Object(o.createElement)(C,e))}r(12),o.Component;const A=Object(o.forwardRef)(({bubblesVirtually:e,...t},r)=>e?Object(o.createElement)(x,Object(n.a)({},t,{ref:r})):Object(o.createElement)(j,t));function R(e){return"appear"===e?"top":"left"}function N(e,t){const{paddingTop:r,paddingBottom:n,paddingLeft:o,paddingRight:i}=(c=t).ownerDocument.defaultView.getComputedStyle(c);var c;const a=r?parseInt(r,10):0,s=n?parseInt(n,10):0,l=o?parseInt(o,10):0,u=i?parseInt(i,10):0;return{x:e.left+l,y:e.top+a,width:e.width-l-u,height:e.height-a-s,left:e.left+l,right:e.right-u,top:e.top+a,bottom:e.bottom-s}}function P(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function M(e,t,r=""){e.style[t]!==r&&(e.style[t]=r)}function D(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const L=Object(o.forwardRef)(({headerTitle:e,onClose:t,children:r,className:i,noArrow:a=!0,isAlternate:s,position:h="bottom right",range:b,focusOnMount:g="firstElement",anchorRef:_,shouldAnchorIncludePadding:O,anchorRect:k,getAnchorRect:E,expandOnMobile:w,animate:j=!0,onClickOutside:S,onFocusOutside:C,__unstableStickyBoundaryElement:x,__unstableSlotName:A="Popover",__unstableObserveElement:L,__unstableBoundaryParent:I,__unstableForcePosition:F,__unstableForceXAlignment:U,...V},B)=>{const H=Object(o.useRef)(null),z=Object(o.useRef)(null),K=Object(o.useRef)(),Y=Object(u.useViewportMatch)("medium","<"),[q,$]=Object(o.useState)(),G=v(A),X=w&&Y,[J,Z]=Object(u.useResizeObserver)();a=X||a,Object(o.useLayoutEffect)(()=>{if(X)return D(K.current,"is-without-arrow",a),D(K.current,"is-alternate",s),P(K.current,"data-x-axis"),P(K.current,"data-y-axis"),M(K.current,"top"),M(K.current,"left"),M(z.current,"maxHeight"),void M(z.current,"maxWidth");const e=()=>{if(!K.current||!z.current)return;let e=function(e,t,r,n=!1,o,i){if(t)return t;if(r){if(!e.current)return;const t=r(e.current);return f(t,t.ownerDocument||e.current.ownerDocument,i)}if(!1!==n){if(!(n&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==n?void 0:n.cloneRange))return f(Object(p.getRectangleFromRange)(n),n.endContainer.ownerDocument,i);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=f(n.getBoundingClientRect(),n.ownerDocument,i);return o?e:N(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,i);return o?a:N(a,n)}if(!e.current)return;const{parentNode:c}=e.current,a=c.getBoundingClientRect();return o?a:N(a,c)}(H,k,E,_,O,K.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=K.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 i;I&&(n=null===(i=K.current.closest(".popover-slot"))||void 0===i?void 0:i.parentNode);const c=Z.height?Z:z.current.getBoundingClientRect(),{popoverTop:l,popoverLeft:u,xAxis:d,yAxis:b,contentHeight:g,contentWidth:y}=function(e,t,r="top",n,o,i,c,a,s){const[l,u="center",p]=r.split(" "),d=function(e,t,r,n,o,i,c,a){const{height:s}=t;if(o){const t=o.getBoundingClientRect().top+s-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-s/2>0?s/2:l)+(l+s/2>window.innerHeight?window.innerHeight-l:s/2)},p={popoverTop:e.top,contentHeight:e.top-10-s>0?s:e.top-10},d={popoverTop:e.bottom,contentHeight:e.bottom+10+s>window.innerHeight?window.innerHeight-10-e.bottom:s};let m,f=r,h=null;if(!o&&!a)if("middle"===r&&u.contentHeight===s)f="middle";else if("top"===r&&p.contentHeight===s)f="top";else if("bottom"===r&&d.contentHeight===s)f="bottom";else{f=p.contentHeight>d.contentHeight?"top":"bottom";const e="top"===f?p.contentHeight:d.contentHeight;h=e!==s?e:null}return m="middle"===f?u.popoverTop:"top"===f?p.popoverTop:d.popoverTop,{yAxis:f,popoverTop:m,contentHeight:h}}(e,t,l,p,n,0,i,a);return{...function(e,t,r,n,o,i,c,a,s){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),p={popoverLeft:u,contentWidth:(u-l/2>0?l/2:u)+(u+l/2>window.innerWidth?window.innerWidth-u:l/2)};let d=e.left;"right"===n?d=e.right:"middle"===i||s||(d=u);let f=e.right;"left"===n?f=e.left:"middle"===i||s||(f=u);const h={popoverLeft:d,contentWidth:d-l>0?l:d},b={popoverLeft:f,contentWidth:f+l>window.innerWidth?window.innerWidth-f:l};let g,y=r,_=null;if(!o&&!a)if("center"===r&&p.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&&(_=window.innerWidth),e!==l&&(y="center",p.popoverLeft=window.innerWidth/2)}if(g="center"===y?p.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,t,u,p,n,d.yAxis,c,a,s),...d}}(e,c,h,x,K.current,o,n,F,U);"number"==typeof l&&"number"==typeof u&&(M(K.current,"top",l+"px"),M(K.current,"left",u+"px")),D(K.current,"is-without-arrow",a||"center"===d&&"middle"===b),D(K.current,"is-alternate",s),P(K.current,"data-x-axis",d),P(K.current,"data-y-axis",b),M(z.current,"maxHeight","number"==typeof g?g+"px":""),M(z.current,"maxWidth","number"==typeof y?y+"px":""),$(({left:"right",right:"left"}[d]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))};e();const{ownerDocument:t}=K.current,{defaultView:r}=t,n=r.setInterval(e,500);let o;const i=()=>{r.cancelAnimationFrame(o),o=r.requestAnimationFrame(e)};r.addEventListener("click",i),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}(_);let l;return c&&c!==t&&(c.defaultView.addEventListener("resize",e),c.defaultView.addEventListener("scroll",e,!0)),L&&(l=new r.MutationObserver(e),l.observe(L,{attributes:!0})),()=>{r.clearInterval(n),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",i),r.cancelAnimationFrame(o),c&&c!==t&&(c.defaultView.removeEventListener("resize",e),c.defaultView.removeEventListener("scroll",e,!0)),l&&l.disconnect()}},[X,k,E,_,O,h,Z,x,L,I]);const Q=(e,r)=>{if("focus-outside"===e&&C)C(r);else if("focus-outside"===e&&S){const e=new window.MouseEvent("click");Object.defineProperty(e,"target",{get:()=>r.relatedTarget}),l()("Popover onClickOutside prop",{since:"5.3",alternative:"onFocusOutside"}),S(e)}else t&&t()},[ee,te]=Object(u.__experimentalUseDialog)({focusOnMount:g,__unstableOnClose:Q,onClose:Q}),re=Object(u.useMergeRefs)([K,ee,B]),ne=Boolean(j&&q)&&function(e){if("loading"===e.type)return c()("components-animate__loading");const{type:t,origin:r=R(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:q});let oe=Object(o.createElement)("div",Object(n.a)({className:c()("components-popover",i,ne,{"is-expanded":X,"is-without-arrow":a,"is-alternate":s})},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)(W,{className:"components-popover__close",icon:d.a,onClick:t})),Object(o.createElement)("div",{ref:z,className:"components-popover__content"},Object(o.createElement)("div",{style:{position:"relative"}},J,r)));return G.ref&&(oe=Object(o.createElement)(T,{name:A},oe)),_||k?oe:Object(o.createElement)("span",{ref:H},oe)});L.Slot=Object(o.forwardRef)((function({name:e="Popover"},t){return Object(o.createElement)(A,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}));var I=L,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[i,c]=Object(o.useState)(!1),[s,l]=Object(o.useState)(!1),p=Object(u.useDebounce)(l,700),d=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?d:void 0,h=f("mouseUp"),b=(t,r)=>n=>{if(H(e,t,n),n.currentTarget.disabled)return;if("focus"===n.type&&i)return;p.cancel();const o=Object(a.includes)(["focus","mouseenter"],n.type);o!==s&&(r?p(o):l(o))},g=()=>{p.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")},_=o.Children.only(e),{children:v,disabled:O}=_.props;return(O?V:B)({child:_,eventHandlers:y,childrenWithPopover:(({grandchildren:e,isOver:t,position:r,text:n,shortcut:i})=>Object(o.concatChildren)(e,t&&Object(o.createElement)(I,{focusOnMount:!1,position:r,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},n,Object(o.createElement)(F,{className:"components-tooltip__shortcut",shortcut:i}))))({grandchildren:v,isOver:s,position:t,text:r,shortcut:n})})},K=r(39),Y=r(34);const q=["onMouseDown","onClick"];var W=t.a=Object(o.forwardRef)((function(e,t){const{href:r,target:i,isSmall:s,isPressed:u,isBusy:p,isDestructive:d,className:m,disabled:f,icon:h,iconPosition:b="left",iconSize:g,showTooltip:y,tooltipPosition:_,shortcut:v,label:O,children:k,text:E,variant:w,__experimentalIsFocusable:j,describedBy:S,...C}=function({isDefault:e,isPrimary:t,isSecondary:r,isTertiary:n,isLink:o,variant:i,...c}){let a=i;var s,u,p,d,m;return t&&(null!==(s=a)&&void 0!==s||(a="primary")),n&&(null!==(u=a)&&void 0!==u||(a="tertiary")),r&&(null!==(p=a)&&void 0!==p||(a="secondary")),e&&(l()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(d=a)&&void 0!==d||(a="secondary")),o&&(null!==(m=a)&&void 0!==m||(a="link")),{...c,variant:a}}(e),x=c()("components-button",m,{"is-secondary":"secondary"===w,"is-primary":"primary"===w,"is-small":s,"is-tertiary":"tertiary"===w,"is-pressed":u,"is-busy":p,"is-link":"link"===w,"is-destructive":d,"has-text":!!h&&!!k,"has-icon":!!h}),T=f&&!j,A=void 0===r||T?"button":"a",R="a"===A?{href:r,target:i}:{type:"button",disabled:T,"aria-pressed":u};if(f&&j){R["aria-disabled"]=!0;for(const e of q)C[e]=e=>{e.stopPropagation(),e.preventDefault()}}const N=!T&&(y&&O||v||!!O&&(!k||Object(a.isArray)(k)&&!k.length)&&!1!==y),P=S?Object(a.uniqueId)():null,M=C["aria-describedby"]||P,D=Object(o.createElement)(A,Object(n.a)({},R,C,{className:x,"aria-label":C["aria-label"]||O,"aria-describedby":M,ref:t}),h&&"left"===b&&Object(o.createElement)(K.a,{icon:h,size:g}),E&&Object(o.createElement)(o.Fragment,null,E),h&&"right"===b&&Object(o.createElement)(K.a,{icon:h,size:g}),k);return N?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(z,{text:S||O,shortcut:v,position:_},D),S&&Object(o.createElement)(Y.a,null,Object(o.createElement)("span",{id:P},S))):Object(o.createElement)(o.Fragment,null,D,S&&Object(o.createElement)(Y.a,null,Object(o.createElement)("span",{id:P},S)))}))},function(e,t,r){"use strict";r.d(t,"n",(function(){return i})),r.d(t,"l",(function(){return c})),r.d(t,"k",(function(){return a})),r.d(t,"m",(function(){return s})),r.d(t,"i",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"f",(function(){return p})),r.d(t,"j",(function(){return d})),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 i=Object(o.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),c=i.pluginUrl+"images/",a=i.pluginUrl+"build/",s=i.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),p=o.STORE_PAGES.privacy.permalink,d=(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){e.exports=window.wp.dom},function(e,t){e.exports=window.wp.hooks},,,,,,function(e,t,r){var n=r(75),o=r(53),i=o.setStyleProp,c=n.html,a=n.svg,s=n.isCustomAttribute,l=Object.prototype.hasOwnProperty;e.exports=function(e){var t,r,n,u;e=e||{};var p={};for(t in e)n=e[t],s(t)?p[t]=n:(r=t.toLowerCase(),l.call(c,r)?p[(u=c[r]).propertyName]=!!(u.hasBooleanValue||u.hasOverloadedBooleanValue&&!n)||n:l.call(a,t)?p[(u=a[t]).propertyName]=n:o.PRESERVE_CUSTOM_ATTRIBUTES&&(p[t]=n));return i(e.style,p),p}},function(e,t,r){var n=r(7),o=r(79).default,i={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,i={},c={};for(r in e)n=e[r],o&&(i=t(r,n))&&2===i.length?c[i[0]]=i[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,i))}}},function(e,t,r){for(var n,o=r(85).CASE_SENSITIVE_TAG_NAMES,i={},c=0,a=o.length;c<a;c++)n=o[c],i[n.toLowerCase()]=n;function s(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 i[e]}(e=e.toLowerCase())||e}e.exports={formatAttributes:s,formatDOM:function e(t,r,n){r=r||null;for(var o,i,c,a=[],u=0,p=t.length;u<p;u++){switch(o=t[u],c={next:null,prev:a[u-1]||null,parent:r},(i=a[u-1])&&(i.next=c),"#"!==o.nodeName[0]&&(c.name=l(o.nodeName),c.attribs={},o.attributes&&o.attributes.length&&(c.attribs=s(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";var n=r(2),o=r(1),i=r(92),c=r(27);const a=Object(n.getSetting)("countryLocale",{}),s=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(i.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,s(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){var n=r(74),o=r(52),i=r(83),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(i(e,(t=t||{}).htmlparser2||c),t)}a.domToReact=n,a.htmlToDOM=i,a.attributesToProps=o,e.exports=a,e.exports.default=a},function(e,t){e.exports=window.wp.keycodes},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(7);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){var r,n,o=e.exports={};function i(){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===i||!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:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:c}catch(e){n=c}}();var s,l=[],u=!1,p=-1;function d(){u&&s&&(u=!1,s.length?l=s.concat(l):p=-1,l.length&&m())}function m(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(s=l,l=[];++p<t;)s&&s[p].run();p=-1,t=l.length}s=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){"use strict";r.d(t,"a",(function(){return c}));var n=r(46),o=r(0),i=r(35);const c=()=>{const e=Object(i.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){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,r){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,r)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,o,i){return(n=r()?Reflect.construct:function(e,r,n){var o=[null];o.push.apply(o,r);var i=new(Function.bind.apply(e,o));return n&&t(i,n.prototype),i}).apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,void 0):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=Object.hasOwnProperty,a=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,p=Object.freeze,d=Object.seal,m=Object.create,f="undefined"!=typeof Reflect&&Reflect,h=f.apply,b=f.construct;h||(h=function(e,t,r){return e.apply(t,r)}),p||(p=function(e){return e}),d||(d=function(e){return e}),b||(b=function(e,t){return n(e,o(t))});var g,y=x(Array.prototype.forEach),_=x(Array.prototype.pop),v=x(Array.prototype.push),O=x(String.prototype.toLowerCase),k=x(String.prototype.match),E=x(String.prototype.replace),w=x(String.prototype.indexOf),j=x(String.prototype.trim),S=x(RegExp.prototype.test),C=(g=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return b(g,t)});function x(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return h(e,t,n)}}function T(e,t,r){r=r||O,a&&a(e,null);for(var n=t.length;n--;){var o=t[n];if("string"==typeof o){var i=r(o);i!==o&&(s(t)||(t[n]=i),o=i)}e[o]=!0}return e}function A(e){var t,r=m(null);for(t in e)h(c,e,[t])&&(r[t]=e[t]);return r}function R(e,t){for(;null!==e;){var r=u(e,t);if(r){if(r.get)return x(r.get);if("function"==typeof r.value)return x(r.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var N=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),P=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=p(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),L=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),I=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=p(["#text"]),U=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),V=p(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=p(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),K=d(/<%[\w\W]*|[\w\W]*%>/gm),Y=d(/^data-[\-\w.\u00B7-\uFFFF]/),q=d(/^aria-[\-\w]+$/),W=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=d(/^(?:\w+script|data):/i),G=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=d(/^html$/i),J=function(){return"undefined"==typeof window?null:window},Z=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null;r.currentScript&&r.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=r.currentScript.getAttribute("data-tt-policy-suffix"));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),n=function(e){return t(e)};if(n.version="2.4.0",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;var i=r.document,c=r.document,a=r.DocumentFragment,s=r.HTMLTemplateElement,l=r.Node,u=r.Element,d=r.NodeFilter,m=r.NamedNodeMap,f=void 0===m?r.NamedNodeMap||r.MozNamedAttrMap:m,h=r.HTMLFormElement,b=r.DOMParser,g=r.trustedTypes,x=u.prototype,Q=R(x,"cloneNode"),ee=R(x,"nextSibling"),te=R(x,"childNodes"),re=R(x,"parentNode");if("function"==typeof s){var ne=c.createElement("template");ne.content&&ne.content.ownerDocument&&(c=ne.content.ownerDocument)}var oe=Z(g,i),ie=oe?oe.createHTML(""):"",ce=c,ae=ce.implementation,se=ce.createNodeIterator,le=ce.createDocumentFragment,ue=ce.getElementsByTagName,pe=i.importNode,de={};try{de=A(c).documentMode?c.documentMode:{}}catch(e){}var me={};n.isSupported="function"==typeof re&&ae&&void 0!==ae.createHTMLDocument&&9!==de;var fe,he,be=z,ge=K,ye=Y,_e=q,ve=$,Oe=G,ke=W,Ee=null,we=T({},[].concat(o(N),o(P),o(M),o(L),o(F))),je=null,Se=T({},[].concat(o(U),o(V),o(B),o(H))),Ce=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Te=null,Ae=!0,Re=!0,Ne=!1,Pe=!1,Me=!1,De=!1,Le=!1,Ie=!1,Fe=!1,Ue=!1,Ve=!0,Be=!1,He="user-content-",ze=!0,Ke=!1,Ye={},qe=null,We=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,Ge=T({},["audio","video","img","source","image","track"]),Xe=null,Je=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,rt=!1,nt=["application/xhtml+xml","text/html"],ot="text/html",it=null,ct=c.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},st=function(t){it&&it===t||(t&&"object"===e(t)||(t={}),t=A(t),fe=fe=-1===nt.indexOf(t.PARSER_MEDIA_TYPE)?ot:t.PARSER_MEDIA_TYPE,he="application/xhtml+xml"===fe?function(e){return e}:O,Ee="ALLOWED_TAGS"in t?T({},t.ALLOWED_TAGS,he):we,je="ALLOWED_ATTR"in t?T({},t.ALLOWED_ATTR,he):Se,Xe="ADD_URI_SAFE_ATTR"in t?T(A(Je),t.ADD_URI_SAFE_ATTR,he):Je,$e="ADD_DATA_URI_TAGS"in t?T(A(Ge),t.ADD_DATA_URI_TAGS,he):Ge,qe="FORBID_CONTENTS"in t?T({},t.FORBID_CONTENTS,he):We,xe="FORBID_TAGS"in t?T({},t.FORBID_TAGS,he):{},Te="FORBID_ATTR"in t?T({},t.FORBID_ATTR,he):{},Ye="USE_PROFILES"in t&&t.USE_PROFILES,Ae=!1!==t.ALLOW_ARIA_ATTR,Re=!1!==t.ALLOW_DATA_ATTR,Ne=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=t.SAFE_FOR_TEMPLATES||!1,Me=t.WHOLE_DOCUMENT||!1,Ie=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,Le=t.FORCE_BODY||!1,Ve=!1!==t.SANITIZE_DOM,Be=t.SANITIZE_NAMED_PROPS||!1,ze=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Re=!1),Fe&&(Ie=!0),Ye&&(Ee=T({},o(F)),je=[],!0===Ye.html&&(T(Ee,N),T(je,U)),!0===Ye.svg&&(T(Ee,P),T(je,V),T(je,H)),!0===Ye.svgFilters&&(T(Ee,M),T(je,V),T(je,H)),!0===Ye.mathMl&&(T(Ee,L),T(je,B),T(je,H))),t.ADD_TAGS&&(Ee===we&&(Ee=A(Ee)),T(Ee,t.ADD_TAGS,he)),t.ADD_ATTR&&(je===Se&&(je=A(je)),T(je,t.ADD_ATTR,he)),t.ADD_URI_SAFE_ATTR&&T(Xe,t.ADD_URI_SAFE_ATTR,he),t.FORBID_CONTENTS&&(qe===We&&(qe=A(qe)),T(qe,t.FORBID_CONTENTS,he)),ze&&(Ee["#text"]=!0),Me&&T(Ee,["html","head","body"]),Ee.table&&(T(Ee,["tbody"]),delete xe.tbody),p&&p(t),it=t)},lt=T({},["mi","mo","mn","ms","mtext"]),ut=T({},["foreignobject","desc","title","annotation-xml"]),pt=T({},["title","style","font","a","script"]),dt=T({},P);T(dt,M),T(dt,D);var mt=T({},L);T(mt,I);var ft=function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var r=O(e.tagName),n=O(t.tagName);return e.namespaceURI===Qe?t.namespaceURI===et?"svg"===r:t.namespaceURI===Ze?"svg"===r&&("annotation-xml"===n||lt[n]):Boolean(dt[r]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===r:t.namespaceURI===Qe?"math"===r&&ut[n]:Boolean(mt[r]):e.namespaceURI===et&&!(t.namespaceURI===Qe&&!ut[n])&&!(t.namespaceURI===Ze&&!lt[n])&&!mt[r]&&(pt[r]||!dt[r])},ht=function(e){v(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},bt=function(e,t){try{v(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!je[e])if(Ie||Fe)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},gt=function(e){var t,r;if(Le)e="<remove></remove>"+e;else{var n=k(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===fe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(tt===et)try{t=(new b).parseFromString(o,fe)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(tt,"template",null);try{t.documentElement.innerHTML=rt?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&r&&i.insertBefore(c.createTextNode(r),i.childNodes[0]||null),tt===et?ue.call(t,Me?"html":"body")[0]:Me?t.documentElement:i},yt=function(e){return se.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},_t=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Ot=function(e,t,r){me[e]&&y(me[e],(function(e){e.call(n,t,r,it)}))},kt=function(e){var t;if(Ot("beforeSanitizeElements",e,null),_t(e))return ht(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return ht(e),!0;var r=he(e.nodeName);if(Ot("uponSanitizeElement",e,{tagName:r,allowedTags:Ee}),e.hasChildNodes()&&!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return ht(e),!0;if("select"===r&&S(/<template/i,e.innerHTML))return ht(e),!0;if(!Ee[r]||xe[r]){if(!xe[r]&&wt(r)){if(Ce.tagNameCheck instanceof RegExp&&S(Ce.tagNameCheck,r))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))return!1}if(ze&&!qe[r]){var o=re(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var c=i.length-1;c>=0;--c)o.insertBefore(Q(i[c],!0),ee(e))}return ht(e),!0}return e instanceof u&&!ft(e)?(ht(e),!0):"noscript"!==r&&"noembed"!==r||!S(/<\/no(script|embed)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,t=E(t,be," "),t=E(t,ge," "),e.textContent!==t&&(v(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ot("afterSanitizeElements",e,null),!1):(ht(e),!0)},Et=function(e,t,r){if(Ve&&("id"===t||"name"===t)&&(r in c||r in ct))return!1;if(Re&&!Te[t]&&S(ye,t));else if(Ae&&S(_e,t));else if(!je[t]||Te[t]){if(!(wt(e)&&(Ce.tagNameCheck instanceof RegExp&&S(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&S(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&S(Ce.tagNameCheck,r)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))))return!1}else if(Xe[t]);else if(S(ke,E(r,Oe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(r,"data:")||!$e[e])if(Ne&&!S(ve,E(r,Oe,"")));else if(r)return!1;return!0},wt=function(e){return e.indexOf("-")>0},jt=function(t){var r,o,i,c;Ot("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je};for(c=a.length;c--;){var l=r=a[c],u=l.name,p=l.namespaceURI;if(o="value"===u?r.value:j(r.value),i=he(u),s.attrName=i,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,Ot("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(bt(u,t),s.keepAttr))if(S(/\/>/i,o))bt(u,t);else{Pe&&(o=E(o,be," "),o=E(o,ge," "));var d=he(t.nodeName);if(Et(d,i,o)){if(!Be||"id"!==i&&"name"!==i||(bt(u,t),o=He+o),oe&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(p);else switch(g.getAttributeType(d,i)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{p?t.setAttributeNS(p,u,o):t.setAttribute(u,o),_(n.removed)}catch(e){}}}}Ot("afterSanitizeAttributes",t,null)}},St=function e(t){var r,n=yt(t);for(Ot("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)Ot("uponSanitizeShadowNode",r,null),kt(r)||(r.content instanceof a&&e(r.content),jt(r));Ot("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(t){var o,c,s,u,p,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((rt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!vt(t)){if("function"!=typeof t.toString)throw C("toString is not a function");if("string"!=typeof(t=t.toString()))throw C("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(r.toStaticHTML)||"function"==typeof r.toStaticHTML){if("string"==typeof t)return r.toStaticHTML(t);if(vt(t))return r.toStaticHTML(t.outerHTML)}return t}if(De||st(d),n.removed=[],"string"==typeof t&&(Ke=!1),Ke){if(t.nodeName){var m=he(t.nodeName);if(!Ee[m]||xe[m])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)1===(c=(o=gt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?o=c:o.appendChild(c);else{if(!Ie&&!Pe&&!Me&&-1===t.indexOf("<"))return oe&&Ue?oe.createHTML(t):t;if(!(o=gt(t)))return Ie?null:Ue?ie:""}o&&Le&&ht(o.firstChild);for(var f=yt(Ke?t:o);s=f.nextNode();)3===s.nodeType&&s===u||kt(s)||(s.content instanceof a&&St(s.content),jt(s),u=s);if(u=null,Ke)return t;if(Ie){if(Fe)for(p=le.call(o.ownerDocument);o.firstChild;)p.appendChild(o.firstChild);else p=o;return je.shadowroot&&(p=pe.call(i,p,!0)),p}var h=Me?o.outerHTML:o.innerHTML;return Me&&Ee["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&S(X,o.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+h),Pe&&(h=E(h,be," "),h=E(h,ge," ")),oe&&Ue?oe.createHTML(h):h},n.setConfig=function(e){st(e),De=!0},n.clearConfig=function(){it=null,De=!1},n.isValidAttribute=function(e,t,r){it||st({});var n=he(e),o=he(t);return Et(n,o,r)},n.addHook=function(e,t){"function"==typeof t&&(me[e]=me[e]||[],v(me[e],t))},n.removeHook=function(e){if(me[e])return _(me[e])},n.removeHooks=function(e){me[e]&&(me[e]=[])},n.removeAllHooks=function(){me={}},n}()}()},,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(6),o=r(3);const i=()=>{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:i}=Object(n.useDispatch)(o.CART_STORE_KEY);return{isInitialized:t,billingAddress:e.billingAddress,shippingAddress:e.shippingAddress,setBillingAddress:i,setShippingAddress:r}}},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){var n=r(7),o=r(52),i=r(53),c=i.setStyleProp;function a(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var i,s,l,u,p=(r=r||{}).library||n,d=p.cloneElement,m=p.createElement,f=p.isValidElement,h=[],b="function"==typeof r.replace,g=r.trim,y=0,_=t.length;y<_;y++)if(i=t[y],b&&f(s=r.replace(i)))_>1&&(s=d(s,{key:s.key||y})),h.push(s);else if("text"!==i.type){switch(l=i.attribs,a(i)?c(l.style,l):l&&(l=o(l)),u=null,i.type){case"script":case"style":i.children[0]&&(l.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?l.defaultValue=i.children[0].data:i.children&&i.children.length&&(u=e(i.children,r));break;default:continue}_>1&&(l.key=y),h.push(m(i.name,l,u))}else g?i.data.trim()&&h.push(i.data):h.push(i.data);return 1===h.length?h[0]:h}},function(e,t,r){var n=r(76),o=r(77),i=r(78),c=i.MUST_USE_PROPERTY,a=i.HAS_BOOLEAN_VALUE,s=i.HAS_NUMERIC_VALUE,l=i.HAS_POSITIVE_NUMERIC_VALUE,u=i.HAS_OVERLOADED_BOOLEAN_VALUE;function p(e,t){return(e&t)===t}function d(e,t,r){var n,o,i,d=e.Properties,m=e.DOMAttributeNames;for(o in d)n=m[o]||(r?o:o.toLowerCase()),i=d[o],t[n]={attributeName:n,propertyName:o,mustUseProperty:p(i,c),hasBooleanValue:p(i,a),hasNumericValue:p(i,s),hasPositiveNumericValue:p(i,l),hasOverloadedBooleanValue:p(i,u)}}var m={};d(n,m);var f={};d(o,f,!0);var h={};d(n,h),d(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(80)),i=r(82);t.default=function(e,t){var r={};return e&&"string"==typeof e?(o.default(e,(function(e,n){e&&n&&(r[i.camelCase(e,t)]=n)})),r):r}},function(e,t,r){var n=r(81);e.exports=function(e,t){var r,o=null;if(!e||"string"!=typeof e)return o;for(var i,c,a=n(e),s="function"==typeof t,l=0,u=a.length;l<u;l++)i=(r=a[l]).property,c=r.value,s?t(i,c,r):c&&(o||(o={}),o[i]=c);return o}},function(e,t){var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,c=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\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,p=1;function d(e){var t=e.match(n);t&&(l+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function m(){var e={line:l,column:p};return function(t){return t.position=new f(e),y(),t}}function f(e){this.start=e,this.end={line:l,column:p},this.source=t.source}f.prototype.content=e;var h=[];function b(r){var n=new Error(t.source+":"+l+":"+p+": "+r);if(n.reason=r,n.filename=t.source,n.line=l,n.column=p,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 d(n),e=e.slice(n.length),r}}function y(){g(o)}function _(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){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 p+=2,d(n),e=e.slice(r),p+=2,t({type:"comment",comment:n})}}function O(){var e=m(),t=g(i);if(t){if(v(),!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(s),o}}return y(),function(){var e,t=[];for(_(t);e=O();)!1!==e&&(t.push(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,i=/^[^-]+$/,c=/^-(webkit|moz|ms|o|khtml)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return t+"-"};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),t.reactCompat||(e=e.replace(c,s)),e.replace(o,a))}},function(e,t,r){var n=r(84),o=r(54),i=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],""))),i(n(e),null,t)}},function(e,t,r){var n=r(54),o=/<([a-zA-Z]+[0-9]?)/,i=/<head.*>/i,c=/<body.*>/i,a=/<(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)(.*?)\/?>/gi,s=n.isIE(9),l=s||n.isIE(),u=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},p=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var d=new window.DOMParser,m=s?"text/xml":"text/html";u=p=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),s&&(e=e.replace(a,"<$1$2$3/>")),d.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(p)return p(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,s=e.match(o);switch(s&&s[1]&&(t=s[1].toLowerCase()),t){case"html":return r=p(e),i.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)&&i.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,"b",(function(){return O})),r.d(t,"a",(function(){return k}));var n=r(0),o=r(6),i=r(3);const c={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},a={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"},s={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:()=>null,shippingErrorTypes:c,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},l=(e,t)=>{let{type:r}=t;return Object.values(c).includes(r)?r:e};var u=r(103),p=r(228);const d=e=>({onSuccess:Object(p.a)("shipping_rates_success",e),onFail:Object(p.a)("shipping_rates_fail",e),onSelectSuccess:Object(p.a)("shipping_rate_select_success",e),onSelectFail:Object(p.a)("shipping_rate_select_fail",e)});var m=r(231),f=r(35),h=r(91),b=r(117);const{NONE:g,INVALID_ADDRESS:y,UNKNOWN:_}=c,v=Object(n.createContext)(s),O=()=>Object(n.useContext)(v),k=e=>{let{children:t}=e;const{__internalIncrementCalculating:r,__internalDecrementCalculating:s}=Object(o.useDispatch)(i.CHECKOUT_STORE_KEY),{shippingRates:p,isLoadingRates:O,cartErrors:k}=Object(f.a)(),{isSelectingRate:E}=Object(h.a)(),{selectedRates:w}=Object(b.a)(),[j,S]=Object(n.useReducer)(l,g),[C,x]=Object(n.useReducer)(u.b,{}),T=Object(n.useRef)(C),A=Object(n.useMemo)(()=>({onShippingRateSuccess:d(x).onSuccess,onShippingRateFail:d(x).onFail,onShippingRateSelectSuccess:d(x).onSelectSuccess,onShippingRateSelectFail:d(x).onSelectFail}),[x]);Object(n.useEffect)(()=>{T.current=C},[C]),Object(n.useEffect)(()=>{O?r():s()},[O,r,s]),Object(n.useEffect)(()=>{E?r():s()},[r,s,E]),Object(n.useEffect)(()=>{k.length>0&&k.some(e=>!(!e.code||!Object.values(a).includes(e.code)))?S({type:y}):S({type:g})},[k]);const R=Object(n.useMemo)(()=>({isPristine:j===g,isValid:j===g,hasInvalidAddress:j===y,hasError:j===_||j===y}),[j]);Object(n.useEffect)(()=>{O||0!==p.length&&!R.hasError||Object(m.a)(T.current,"shipping_rates_fail",{hasInvalidAddress:R.hasInvalidAddress,hasError:R.hasError})},[p,O,R.hasError,R.hasInvalidAddress]),Object(n.useEffect)(()=>{!O&&p.length>0&&!R.hasError&&Object(m.a)(T.current,"shipping_rates_success",p)},[p,O,R.hasError]),Object(n.useEffect)(()=>{E||(R.hasError?Object(m.a)(T.current,"shipping_rate_select_fail",{hasError:R.hasError,hasInvalidAddress:R.hasInvalidAddress}):Object(m.a)(T.current,"shipping_rate_select_success",w.current))},[w,E,R.hasError,R.hasInvalidAddress]);const N={shippingErrorStatus:R,dispatchErrorStatus:S,shippingErrorTypes:c,...A};return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(v.Provider,{value:N},t))}},function(e,t,r){"use strict";r.d(t,"b",(function(){return b})),r.d(t,"a",(function(){return g}));var n=r(0),o=r(61),i=r(28),c=r.n(i),a=r(6),s=r(3),l=r(103),u=r(228);var p=r(2);let d;!function(e){e.PRISTINE="pristine",e.IDLE="idle",e.COMPLETE="complete",e.BEFORE_PROCESSING="before_processing",e.PROCESSING="processing",e.AFTER_PROCESSING="after_processing"}(d||(d={})),Object(p.getSetting)("checkoutData",{});var m=r(66),f=r(119);const h=Object(n.createContext)({onSubmit:()=>{},onCheckoutAfterProcessingWithSuccess:()=>()=>{},onCheckoutAfterProcessingWithError:()=>()=>{},onCheckoutBeforeProcessing:()=>()=>{},onCheckoutValidationBeforeProcessing:()=>()=>{}}),b=()=>Object(n.useContext)(h),g=e=>{let{children:t,redirectUrl:r}=e;const i=Object(a.useDispatch)(s.CHECKOUT_STORE_KEY),p=Object(a.useSelect)(e=>e(s.CHECKOUT_STORE_KEY).getCheckoutState());r&&r!==p.redirectUrl&&i.__internalSetRedirectUrl(r);const{setValidationErrors:b}=Object(a.useDispatch)(s.VALIDATION_STORE_KEY),{createErrorNotice:g}=Object(a.useDispatch)("core/notices"),{dispatchCheckoutEvent:y}=Object(m.a)(),{checkoutNotices:_,paymentNotices:v,expressPaymentNotices:O}=Object(f.a)(),[k,E]=Object(n.useReducer)(l.b,{}),w=Object(n.useRef)(k),{onCheckoutAfterProcessingWithSuccess:j,onCheckoutAfterProcessingWithError:S,onCheckoutValidationBeforeProcessing:C}=(e=>Object(n.useMemo)(()=>({onCheckoutAfterProcessingWithSuccess:Object(u.a)("checkout_after_processing_with_success",e),onCheckoutAfterProcessingWithError:Object(u.a)("checkout_after_processing_with_error",e),onCheckoutValidationBeforeProcessing:Object(u.a)("checkout_validation_before_processing",e)}),[e]))(E);Object(n.useEffect)(()=>{w.current=k},[k]);const x=Object(n.useMemo)(()=>function(){return c()("onCheckoutBeforeProcessing",{alternative:"onCheckoutValidationBeforeProcessing",plugin:"WooCommerce Blocks"}),C(...arguments)},[C]);Object(n.useEffect)(()=>{p.status===d.BEFORE_PROCESSING&&i.__internalEmitValidateEvent({observers:w.current,setValidationErrors:b})},[p.status,b,g,i]);const T=Object(o.a)(p.status),A=Object(o.a)(p.hasError);Object(n.useEffect)(()=>{p.status===T&&p.hasError===A||p.status===d.AFTER_PROCESSING&&i.__internalEmitAfterProcessingEvents({observers:w.current,notices:{checkoutNotices:_,paymentNotices:v,expressPaymentNotices:O}})},[p.status,p.hasError,p.redirectUrl,p.orderId,p.customerId,p.orderNotes,p.paymentResult,T,A,g,_,O,v,i]);const R={onSubmit:Object(n.useCallback)(()=>{y("submit"),i.__internalSetBeforeProcessing()},[y,i]),onCheckoutBeforeProcessing:x,onCheckoutValidationBeforeProcessing:C,onCheckoutAfterProcessingWithSuccess:j,onCheckoutAfterProcessingWithError:S};return Object(n.createElement)(h.Provider,{value:R},t)}},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(72);const i=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)(i),a=e=>{let{children:t}=e;const r=Object(o.a)();return Object(n.createElement)(i.Provider,{value:r},t)}},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 s}));const n=window.CustomEvent||null,o=(e,t)=>{let{bubbles:r=!1,cancelable:o=!1,element:i,detail:c={}}=t;if(!n)return;i||(i=document.body);const a=new n(e,{bubbles:r,cancelable:o,detail:c});i.dispatchEvent(a)};let i;const c=()=>{i&&clearTimeout(i),i=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}})},s=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 i=()=>{o(t,{bubbles:r,cancelable:n})};return jQuery(document).on(e,i),()=>jQuery(document).off(e,i)}},function(e,t,r){"use strict";var n=r(0),o=r(14);const i=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=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(6),o=r(0),i=r(3),c=r(73),a=r(66);const s=()=>{const e=Object(c.a)(),{dispatchCheckoutEvent:t}=Object(a.a)(),{selectShippingRate:r}=Object(n.useDispatch)(i.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(i.CART_STORE_KEY).isShippingRateBeingSelected(),[])}}},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";var n=r(0),o=r(5),i=r(4),c=r.n(i),a=r(1),s=r(23),l=r(90),u=r(43);function p(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:i=r,onRemove:d=o.noop,isDismissible:m=!0,actions:f=[],politeness:h=p(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(s.speak)(r,t)},[r,t])}(i,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:i=!1,onClick:a,url:s},l)=>{let p=o;return"primary"===o||i||(p=s?"link":"secondary"),void 0===p&&r&&(p="primary"),Object(n.createElement)(u.a,{key:l,href:s,variant:p,onClick:s?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(),d()},showTooltip:!1}))}},function(e,t,r){"use strict";var n=r(11),o=r.n(n),i=r(0);r(121);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(i.useRef)(null);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"with-scroll-to-top__scroll-point",ref:r,"aria-hidden":!0}),Object(i.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){},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));var n=r(5);let o;!function(e){e.ADD_EVENT_CALLBACK="add_event_callback",e.REMOVE_EVENT_CALLBACK="remove_event_callback"}(o||(o={}));const i={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:i,priority:a}=arguments.length>1?arguments[1]:void 0;const s=e.hasOwnProperty(r)?new Map(e[r]):new Map;switch(t){case o.ADD_EVENT_CALLBACK:return s.set(n,{priority:a,callback:i}),{...e,[r]:s};case o.REMOVE_EVENT_CALLBACK:return s.delete(n),{...e,[r]:s}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return c}));var n=r(1),o=r(20);const i=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";r.d(t,"a",(function(){return c}));var n=r(67);const o=["a","b","em","i","strong","p","br"],i=["target","href","rel","name","download"],c=(e,t)=>{const r=(null==t?void 0:t.tags)||o,c=(null==t?void 0:t.attr)||i;return Object(n.sanitize)(e,{ALLOWED_TAGS:r,ALLOWED_ATTR:c})}},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(11)),i=n(r(138)),c=r(7),a=n(c),s=n(r(139)),l=n(r(141)),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 p(){var e=c.useState(!1)[1];return c.useCallback((function(){return e((function(e){return!e}))}),[])}function d(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,i(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 i;return u.und(t[n])?o({},r,((i={})[n]=e[n],i)):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}(),_=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 s(t,e),t}(y),v=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}s(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 k(e){g=e}var E,w=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},j=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){E=e}var C,x=function(){return Date.now()};function T(e){C=e}var A,R,N=function(e){return e.current};function P(e){A=e}var M=Object.freeze({get applyAnimatedValues(){return b},injectApplyAnimatedValues:O,get colorNames(){return g},injectColorNames:k,get requestFrame(){return w},get cancelFrame(){return j},injectFrame:function(e,t){w=e,j=t},get interpolation(){return E},injectStringInterpolator:S,get now(){return x},injectNow:function(e){x=e},get defaultElement(){return C},injectDefaultElement:T,get animatedApi(){return N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return A},injectCreateAnimatedStyle:P,get manualFrameloop(){return R},injectManualFrameloop:function(e){R=e}}),D=function(e){function t(t,r){var n;return(n=e.call(this)||this).update=void 0,n.payload=t.style?o({},t,{style:A(t.style)}):t,n.update=r,n.attach(),n}return s(t,e),t}(v),L=!1,I=new Set,F=function e(){if(!L)return!1;var t=x(),r=I,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}for(var c=i,a=!1,s=0;s<c.configs.length;s++){for(var l=c.configs[s],u=void 0,p=void 0,d=0;d<l.animatedValues.length;d++){var m=l.animatedValues[d];if(!m.done){var f=l.fromValues[d],h=l.toValues[d],b=m.lastPosition,g=h instanceof y,_=Array.isArray(l.initialVelocity)?l.initialVelocity[d]: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+_/(1-.998)*(1-Math.exp(-(1-.998)*(t-m.startTime))),(u=Math.abs(m.lastPosition-b)<.1)&&(h=b);else{p=void 0!==m.lastTime?m.lastTime:t,_=void 0!==m.lastVelocity?m.lastVelocity:l.initialVelocity,t>p+64&&(p=t);for(var v=Math.floor(t-p),O=0;O<v;++O)b+=1*(_+=(-l.tension*(b-h)+-l.friction*_)/l.mass*1/1e3)/1e3;var k=!(!l.clamp||0===l.tension)&&(f<h?b>h:b<h),E=Math.abs(_)<=l.precision,j=0===l.tension||Math.abs(h-b)<=l.precision;u=k||E&&j,m.lastVelocity=_,m.lastTime=t}g&&!l.toValues[d].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||(I.delete(c),c.stop(!0))}return I.size?R?R():w(e):L=!1,L};function U(e,t,r){if("function"==typeof e)return e;if(Array.isArray(e))return U({range:e,output:t,extrapolate:r});if(E&&"string"==typeof e.output[0])return E(e);var n=e,o=n.output,i=n.range||[0,1],c=n.extrapolateLeft||n.extrapolate||"extend",a=n.extrapolateRight||n.extrapolate||"extend",s=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,i);return function(e,t,r,n,o,i,c,a,s){var l=s?s(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=i(l),n===-1/0?l=-l:o===1/0?l+=n:l=l*(o-n)+n,l)}(e,i[t],i[t+1],o[t],o[t+1],s,c,a,n.map)}}var V=function(e){function t(r,n,o,i){var c;return(c=e.call(this)||this).calc=void 0,c.payload=r instanceof _&&!(r instanceof t)?r.getPayload():Array.isArray(r)?r:[r],c.calc=U(n,o,i),c}s(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}(_),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}s(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}s(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}(_),z=0,K=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=i(t,["delay","to"]);if(u.arr(c)||u.fun(c))this.queue.push(o({},a,{delay:n,to:c}));else if(c){var s={};Object.entries(c).forEach((function(e){var t,r=e[0],i=e[1],c=o({to:(t={},t[r]=i,t),delay:f(n,r)},a),l=s[c.delay]&&s[c.delay].to;s[c.delay]=o({},s[c.delay],c,{to:o({},l,c.to)})})),this.queue=Object.values(s)}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,i=e.to,c=void 0===i?{}:i;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,s=i(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()},p=u.arr(s.to)||u.fun(s.to);a?setTimeout((function(){r===t.guid&&(p?t.runAsync(s,l):t.diff(s).start(l))}),a):p?t.runAsync(s,l):t.diff(s).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),this,I.has(this)||I.add(this),L||(L=!0,w(R||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,I.has(this)&&I.delete(this)),this},t.runAsync=function(e,t){var r=this,n=(e.delay,i(e,["delay"])),c=this.local,a=Promise.resolve(void 0);if(u.arr(n.to))for(var s=function(e){var t=e,i=o({},n,h(n.to[t]));u.arr(i.config)&&(i.config=i.config[t]),a=a.then((function(){if(c===r.guid)return new Promise((function(e){return r.diff(i).start(e)}))}))},l=0;l<n.to.length;l++)s(l);else if(u.fun(n.to)){var p,d=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[d]),d++,c===r.guid)return p=new Promise((function(e){return r.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),r.stop(e)})).then((function(){return p}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var r=this.props,n=r.from,i=void 0===n?{}:n,c=r.to,a=void 0===c?{}:c,s=r.config,l=void 0===s?{}:s,p=r.reverse,h=r.attach,b=r.reset,y=r.immediate;if(p){var _=[a,i];i=_[0],a=_[1]}this.merged=o({},i,this.merged,a),this.hasChanged=!1;var v=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,r){var n=r[0],c=r[1],a=e[n]||{},s=u.num(c),p=u.str(c)&&!c.startsWith("#")&&!/\d/.test(c)&&!g[c],h=u.arr(c),_=!s&&!h&&!p,O=u.und(i[n])?c:i[n],k=s||h||p?c:1,w=f(l,n);v&&(k=v.animations[n].parent);var j,S=a.parent,C=a.interpolation,T=m(v?k.getPayload():k),A=c;_&&(A=E({range:[0,1],output:[c,c]})(1));var R,N=C&&C.getValue(),P=!u.und(S)&&a.animatedValues.some((function(e){return!e.done})),M=!u.equ(A,N),D=!u.equ(A,a.previous),L=!u.equ(w,a.config);if(b||D&&M||L){var I;if(s||p)S=C=a.parent||new B(O);else if(h)S=C=a.parent||new H(O);else if(_){var F=a.interpolation&&a.interpolation.calc(a.parent.value);F=void 0===F||b?O:F,a.parent?(S=a.parent).setValue(0,!1):S=new B(0);var U={output:[F,c]};a.interpolation?(C=a.interpolation,a.interpolation.updateConfig(U)):C=S.interpolate(U)}return T=m(v?k.getPayload():k),j=m(S.getPayload()),b&&!_&&S.setValue(O,!1),t.hasChanged=!0,j.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=P?e.lastVelocity:void 0,e.lastTime=P?e.lastTime:void 0,e.startTime=x(),e.done=!1,e.animatedStyles.clear()})),f(y,n)&&S.setValue(_?k:c,!1),o({},e,((I={})[n]=o({},a,{name:n,parent:S,interpolation:C,animatedValues:j,toValues:T,previous:A,config:w,fromValues:m(S.getValue()),immediate:f(y,n),initialVelocity:d(w.velocity,0),clamp:d(w.clamp,!1),precision:d(w.precision,.01),tension:d(w.tension,170),friction:d(w.friction,26),mass:d(w.mass,1),duration:w.duration,easing:d(w.easing,(function(e){return e})),decay:w.decay}),I))}return M?e:(_&&(S.setValue(1,!1),C.updateConfig({output:[A,A]})),S.done=!0,t.hasChanged=!0,o({},e,((R={})[n]=o({},e[n],{previous:A}),R)))}),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}(),Y=function(e,t){var r=c.useRef(!1),n=c.useRef(),o=u.fun(t),i=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 i=new K,c=o?f(t,n,i):t[n];return 0===n&&(r=c.ref),i.update(c),r||i.start(),i})),r]}),[e]),a=i[0],s=i[1];n.current=a,c.useImperativeHandle(s,(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]),s||t.start()}))}}),[e]);c.useEffect((function(){r.current?o||l(t):s||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 p=n.current.map((function(e){return e.getValues()}));return o?[p,l,function(e){return n.current.forEach((function(t){return t.pause(e)}))}]:p},q=0,W=function(e,t){return("function"==typeof t?e.map(t):m(t)).map(String)},$=function(e){var t=e.items,r=e.keys,n=void 0===r?function(e){return e}:r,c=i(e,["items","keys"]);return t=m(void 0!==t?t:null),o({items:t,keys:W(t,n)},c)};function G(e,t){var r=function(){if(o){if(i>=n.length)return"break";c=n[i++]}else{if((i=n.next()).done)return"break";c=i.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),i=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 s(t,e),t}(v),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},Z="[-+]?\\d*\\.?\\d+";function Q(){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"+Q(Z,Z,Z)),te=new RegExp("rgba"+Q(Z,Z,Z,Z)),re=new RegExp("hsl"+Q(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ne=new RegExp("hsla"+Q(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function se(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,i=se(o,n,e+1/3),c=se(o,n,e),a=se(o,n,e-1/3);return Math.round(255*i)<<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 pe(e){return(parseFloat(e)%360+360)%360/360}function de(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function 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|de(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=ie.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(pe(r[1]),me(r[2]),me(r[3])))>>>0:(r=ne.exec(t))?(le(pe(r[1]),me(r[2]),me(r[3]))|de(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},_e=["Webkit","Ms","Moz","O"];function ve(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 _e.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={};P((function(e){return new X(e)})),T("div"),S((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+")"}))}})),k(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=i(t,["style","children","scrollTop","scrollLeft"]),s="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("--"),p=ve(l,r[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,p):e.style[l]=p}for(var d in a){var m=s?d:Oe[d]||(Oe[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(m)&&e.setAttribute(m,a[d])}}),(function(e){return e}));var ke,Ee,we=(ke=function(e){return c.forwardRef((function(t,r){var n=p(),s=c.useRef(!0),l=c.useRef(null),d=c.useRef(null),m=c.useCallback((function(e){var t=l.current;l.current=new D(e,(function(){var e=!1;d.current&&(e=b.fn(d.current,l.current.getAnimatedValue())),d.current&&!1!==e||n()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){s.current=!1,l.current&&l.current.detach()}}),[]),c.useImperativeHandle(r,(function(){return N(d,s,n)})),m(t);var f,h=l.current.getValue(),g=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),y=(f=e,!u.fun(f)||f.prototype instanceof a.Component?function(e){return d.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===(Ee=!1)&&(Ee=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var r=Ee?t[0].toLowerCase()+t.substring(1):t;return e[r]=ke(r),e}),ke)}),je=we(["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=we,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=je,t.a=je,t.interpolate=function(e,t,r){return e&&new V(e,t,r)},t.Globals=M,t.useSpring=function(e){var t=u.fun(e),r=Y(1,t?e:[e]),n=r[0],o=r[1],i=r[2];return t?[n[0],o,i]:n},t.useTrail=function(e,t){var r=c.useRef(!1),n=u.fun(t),i=f(t),a=c.useRef(),s=Y(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},i,{config:f(i.config,e),attach:e>0&&function(){return a.current[e-1]}})})),l=s[0],p=s[1],d=s[2],m=c.useMemo((function(){return function(e){return p((function(t,r){e.reverse;var n=e.reverse?t+1:t-1,c=a.current[n];return o({},e,{config:f(e.config||i.config,t),attach:c&&function(){return c}})}))}}),[e,i.reverse]);return c.useEffect((function(){r.current&&!n&&m(t)})),c.useEffect((function(){r.current=!0}),[]),n?[l,m,d]:l},t.useTransition=function(e,t,r){var n=o({items:e,keys:t||function(e){return e}},r),a=$(n),s=a.lazy,l=void 0!==s&&s,u=(a.unique,a.reset),d=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,_=i(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),v=p(),O=c.useRef(!1),k=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!n.ref,instances:!O.current&&new Map,forceUpdate:v});return c.useImperativeHandle(n.ref,(function(){return{start:function(){return Promise.all(Array.from(k.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(k.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(k.current.instances).map((function(e){return e[1]}))}}})),k.current=function(e,t){for(var r=e.first,n=e.prevProps,c=i(e,["first","prevProps"]),a=$(t),s=a.items,l=a.keys,u=a.initial,p=a.from,d=a.enter,m=a.leave,h=a.update,b=a.trail,g=void 0===b?0:b,y=a.unique,_=a.config,v=a.order,O=void 0===v?["enter","leave","update"]:v,k=$(n),E=k.keys,w=k.items,j=o({},c.current),S=[].concat(c.deleted),C=Object.keys(j),x=new Set(C),T=new Set(l),A=l.filter((function(e){return!x.has(e)})),R=c.transitions.filter((function(e){return!e.destroyed&&!T.has(e.originalKey)})).map((function(e){return e.originalKey})),N=l.filter((function(e){return x.has(e)})),P=-g;O.length;)switch(O.shift()){case"enter":A.forEach((function(e,t){y&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var n=l.indexOf(e),o=s[n],i=r&&void 0!==u?"initial":"enter";j[e]={slot:i,originalKey:e,key:y?String(e):q++,item:o,trail:P+=g,config:f(_,o,i),from:f(r&&void 0!==u?u||{}:p,o),to:f(d,o)}}));break;case"leave":R.forEach((function(e){var t=E.indexOf(e),r=w[t];S.unshift(o({},j[e],{slot:"leave",destroyed:!0,left:E[Math.max(0,t-1)],right:E[Math.min(E.length,t+1)],trail:P+=g,config:f(_,r,"leave"),to:f(m,r)})),delete j[e]}));break;case"update":N.forEach((function(e){var t=l.indexOf(e),r=s[t];j[e]=o({},j[e],{item:r,slot:"update",trail:P+=g,config:f(_,r,"update"),to:f(h,r)})}))}var M=l.map((function(e){return j[e]}));return S.forEach((function(e){var t,r=e.left,n=(e.right,i(e,["left","right"]));-1!==(t=M.findIndex((function(e){return e.originalKey===r})))&&(t+=1),t=Math.max(0,t),M=[].concat(M.slice(0,t),[n],M.slice(t))})),o({},c,{changed:A.length||R.length||N.length,first:r&&0===A.length,transitions:M,current:j,deleted:S,prevProps:t})}(k.current,n),k.current.changed&&k.current.transitions.forEach((function(e){var t=e.slot,r=e.from,n=e.to,i=e.config,c=e.trail,a=e.key,s=e.item;k.current.instances.has(a)||k.current.instances.set(a,new K);var u=k.current.instances.get(a),p=o({},_,{to:n,from:r,config:i,ref:y,onRest:function(r){k.current.mounted&&(e.destroyed&&(y||l||G(k,a),m&&m(s)),!Array.from(k.current.instances).some((function(e){return!e[1].idle}))&&(y||l)&&k.current.deleted.length>0&&G(k),b&&b(s,t,r))},onStart:g&&function(){return g(s,t)},onFrame:h&&function(e){return h(s,t,e)},delay:c,reset:d&&"enter"===t});u.update(p),k.current.paused||u.start()})),c.useEffect((function(){return k.current.mounted=O.current=!0,function(){k.current.mounted=O.current=!1,Array.from(k.current.instances).map((function(e){return e[1].destroy()})),k.current.instances.clear()}}),[]),k.current.transitions.map((function(e){var t=e.item,r=e.slot,n=e.key;return{item:t,key:n,state:r,props:k.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 i=e.current;if(i){var c=i.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=Y},,,,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,"a",(function(){return b}));var n=r(3),o=r(6),i=r(0),c=r(12),a=r.n(c),s=r(18),l=r(1),u=r(44),p=r(2);const d=[{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(p.getSetting)("displayCartPricesIncludingTax",!1),f={coupons:[],shipping_rates:Object(p.getSetting)("shippingMethodsExist",!1)?d:[],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:{}}],cross_sells:[{id:1,name:Object(l.__)("Polo","woo-gutenberg-products-block"),permalink:"https://example.org",prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"24000":"20000",regular_price:m?"24000":"20000",sale_price:m?"12000":"10000",raw_prices:{precision:6,price:m?"24000000":"20000000",regular_price:m?"24000000":"20000000",sale_price:m?"12000000":"10000000"}},images:[{id:17,src:u.l+"previews/polo.jpg",thumbnail:u.l+"previews/polo.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:4.5},{id:2,name:Object(l.__)("Long Sleeve Tee","woo-gutenberg-products-block"),permalink:"https://example.org",prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"30000":"25000",regular_price:m?"30000":"25000",sale_price:m?"30000":"25000",raw_prices:{precision:6,price:m?"30000000":"25000000",regular_price:m?"30000000":"25000000",sale_price:m?"30000000":"25000000"}},images:[{id:17,src:u.l+"previews/long-sleeve-tee.jpg",thumbnail:u.l+"previews/long-sleeve-tee.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:4},{id:3,name:Object(l.__)("Hoodie with Zipper","woo-gutenberg-products-block"),permalink:"https://example.org",on_sale:!0,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"15000":"12500",regular_price:m?"30000":"25000",sale_price:m?"15000":"12500",raw_prices:{precision:6,price:m?"15000000":"12500000",regular_price:m?"30000000":"25000000",sale_price:m?"15000000":"12500000"}},images:[{id:17,src:u.l+"previews/hoodie-with-zipper.jpg",thumbnail:u.l+"previews/hoodie-with-zipper.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:1},{id:4,name:Object(l.__)("Hoodie with Logo","woo-gutenberg-products-block"),permalink:"https://example.org",on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"4500":"4250",regular_price:m?"4500":"4250",sale_price:m?"4500":"4250",raw_prices:{precision:6,price:m?"45000000":"42500000",regular_price:m?"45000000":"42500000",sale_price:m?"45000000":"42500000"}},images:[{id:17,src:u.l+"previews/hoodie-with-logo.jpg",thumbnail:u.l+"previews/hoodie-with-logo.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:5},{id:5,name:Object(l.__)("Hoodie with Pocket","woo-gutenberg-products-block"),permalink:"https://example.org",on_sale:!0,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"3500":"3250",regular_price:m?"4500":"4250",sale_price:m?"3500":"3250",raw_prices:{precision:6,price:m?"35000000":"32500000",regular_price:m?"45000000":"42500000",sale_price:m?"35000000":"32500000"}},images:[{id:17,src:u.l+"previews/hoodie-with-pocket.jpg",thumbnail:u.l+"previews/hoodie-with-pocket.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:3.75},{id:6,name:Object(l.__)("T-Shirt","woo-gutenberg-products-block"),permalink:"https://example.org",on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"1800":"1500",regular_price:m?"1800":"1500",sale_price:m?"1800":"1500",raw_prices:{precision:6,price:m?"1800000":"1500000",regular_price:m?"1800000":"1500000",sale_price:m?"1800000":"1500000"}},images:[{id:17,src:u.l+"previews/tshirt.jpg",thumbnail:u.l+"previews/tshirt.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:3}],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(p.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(91);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)(),p=Object(i.useRef)({});return Object(i.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(s.a)(t)&&!a()(p.current,t)&&(p.current=t)},[e]),{isSelectingRate:l,selectedRates:p.current,selectShippingRate:u,shippingRates:e,needsShipping:t,hasCalculatedShipping:r,isLoadingRates:c}}},,function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(6),o=r(41);const i=()=>({checkoutNotices:Object(n.useSelect)(e=>e("core/notices").getNotices("wc/checkout"),[]),expressPaymentNotices:Object(n.useSelect)(e=>e("core/notices").getNotices(o.d.EXPRESS_PAYMENTS),[o.d.EXPRESS_PAYMENTS]),paymentNotices:Object(n.useSelect)(e=>e("core/notices").getNotices(o.d.PAYMENTS),[o.d.PAYMENTS])})},function(e,t,r){"use strict";r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return p}));var n=r(0),o=r(6),i=r(3),c=r(103),a=r(228);var s=r(72);const l=Object(n.createContext)({onPaymentProcessing:()=>()=>()=>{}}),u=()=>Object(n.useContext)(l),p=e=>{let{children:t}=e;const{isProcessing:r,isIdle:u,isCalculating:p,hasError:d}=Object(o.useSelect)(e=>{const t=e(i.CHECKOUT_STORE_KEY);return{isProcessing:t.isProcessing(),isIdle:t.isIdle(),hasError:t.hasError(),isCalculating:t.isCalculating()}}),{currentStatus:m}=Object(o.useSelect)(e=>({currentStatus:e(i.PAYMENT_STORE_KEY).getCurrentStatus()})),{createErrorNotice:f,removeNotice:h}=Object(o.useDispatch)("core/notices"),{setValidationErrors:b}=Object(o.useDispatch)(i.VALIDATION_STORE_KEY),[g,y]=Object(n.useReducer)(c.b,{}),{onPaymentProcessing:_}=(e=>Object(n.useMemo)(()=>({onPaymentProcessing:Object(a.a)("payment_processing",e)}),[e]))(y),v=Object(n.useRef)(g);Object(n.useEffect)(()=>{v.current=g},[g]);const{__internalSetPaymentStatus:O,__internalSetPaymentMethodData:k,__internalEmitPaymentProcessingEvent:E}=Object(o.useDispatch)(i.PAYMENT_STORE_KEY),{setBillingAddress:w,setShippingAddress:j}=Object(s.a)();Object(n.useEffect)(()=>{!r||d||p||m.isFinished||O({isProcessing:!0})},[r,d,p,m.isFinished,O]),Object(n.useEffect)(()=>{u&&!m.isSuccessful&&O({isPristine:!0})},[u,m.isSuccessful,O]),Object(n.useEffect)(()=>{d&&m.isSuccessful&&O({isPristine:!0})},[d,m.isSuccessful,O]),Object(n.useEffect)(()=>{m.isProcessing&&E(v.current,b)},[m.isProcessing,b,O,h,f,w,k,j,E]);const S={onPaymentProcessing:_};return Object(n.createElement)(l.Provider,{value:S},t)}},function(e,t){},,,function(e,t,r){"use strict";(function(e){var n=r(0),o=r(5),i=r(4),c=r.n(i),a=r(23),s=r(1),l=(r(36),r(43));t.a=Object(n.forwardRef)((function({className:t,children:r,spokenMessage:i=r,politeness:u="polite",actions:p=[],onRemove:d=o.noop,icon:m=null,explicitDismiss:f=!1,onDismiss:h=o.noop},b){function g(e){e&&e.preventDefault&&e.preventDefault(),h(),d()}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])}(i,u),Object(n.useEffect)(()=>{const e=setTimeout(()=>{f||(h(),d())},1e4);return()=>clearTimeout(e)},[h,d]);const y=c()(t,"components-snackbar",{"components-snackbar-explicit-dismiss":!!f});p&&p.length>1&&(void 0!==e&&e.env,p=[p[0]]);const _=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(s.__)("Dismiss this notice")},Object(n.createElement)("div",{className:_},m&&Object(n.createElement)("div",{className:"components-snackbar__icon"},m),r,p.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(),d(),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(65))},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";r.d(t,"a",(function(){return i}));var n=r(56),o=(r(13),r(2));const i=e=>{const t=Object.keys(o.defaultAddressFields),r=Object(n.a)(t,{},e.country),i=Object.assign({},e);return r.forEach(t=>{let{key:r="",hidden:n=!1}=t;n&&((e,t)=>e in t)(r,e)&&(i[r]="")}),i}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(0),o=r(37),i=r(2),c=r(57),a=r.n(c),s=r(9),l=r(15);const u=(e,t)=>e&&t[e]?t[e]:null,p=e=>{let{block:t,blockMap:r,blockWrapper:o,children:c,depth:d=1}=e;return c&&0!==c.length?Array.from(c).map((e,c)=>{const{blockName:m="",...f}={key:`${t}_${d}_${c}`,...e instanceof HTMLElement?e.dataset:{},className:e instanceof Element?null==e?void 0:e.className:""},h=u(m,r);if(!h){const i=a()(e instanceof Element&&(null==e?void 0:e.outerHTML)||(null==e?void 0:e.textContent)||"");if("string"==typeof i&&i)return i;if(!Object(n.isValidElement)(i))return null;const c=e.childNodes.length?p({block:t,blockMap:r,children:e.childNodes,depth:d+1,blockWrapper:o}):void 0;return c?Object(n.cloneElement)(i,f,c):Object(n.cloneElement)(i,f)}const b=o||n.Fragment;return Object(n.createElement)(n.Suspense,{key:`${t}_${d}_${c}_suspense`,fallback:Object(n.createElement)("div",{className:"wc-block-placeholder"})},Object(n.createElement)(l.a,{text:"Unexpected error in: "+m,showErrorBlock:i.CURRENT_USER_IS_ADMIN},Object(n.createElement)(b,null,Object(n.createElement)(h,f,p({block:t,blockMap:r,children:e.childNodes,depth:d+1,blockWrapper:o}),((e,t,r,o)=>{if(!Object(s.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(s.getRegisteredBlocks)(e).filter(e=>{let{blockName:t,force:r}=e;return!0===r&&!c.includes(t)}),p=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:i.CURRENT_USER_IS_ADMIN},Object(n.createElement)(p,null,Object(n.createElement)(a,{key:`${o}_forced_${r}`}))):null}))})(m,r,e.childNodes,o)))))}):null},d=e=>{let{Block:t,selector:r,blockName:n,getProps:i=(()=>({})),blockMap:c,blockWrapper:a}=e;Object(o.a)({Block:t,selector:r,getProps:(e,t)=>{const r=p({block:n,blockMap:c,children:e.children||[],blockWrapper:a});return{...i(e,t),children:r}}})}},function(e,t){e.exports=window.wc.wcBlocksSharedHocs},,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var n=r(11),o=r.n(n),i=r(0),c=r(4),a=r.n(c),s=r(98),l=r(105),u=r(6),p=r(3);r(102);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""},m=e=>{let{className:t,context:r="default",additionalNotices:n=[]}=e;const c=Object(u.useSelect)(e=>e(p.PAYMENT_STORE_KEY).isExpressPaymentMethodActive()),{notices:m}=Object(u.useSelect)(e=>({notices:e("core/notices").getNotices(r)})),{removeNotice:f}=Object(u.useDispatch)("core/notices"),h=m.filter(e=>"snackbar"!==e.type).concat(n);if(!h.length)return null;const b=a()(t,"wc-block-components-notices");return c?null:Object(i.createElement)("div",{className:b},h.map(e=>Object(i.createElement)(s.a,o()({key:"store-notice-"+e.id},e,{className:a()("wc-block-components-notices__notice",d(e)),onRemove:()=>{e.isDismissible&&f(e.id,r)}}),Object(l.a)(e.content))))}},,function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[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(140);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 E}));var n=r(0),o=r(125),i=r(2),c=r(15),a=r(120),s=r(86),l=r(88),u=r(87),p=r(1),d=r(31),m=r.n(d),f=r(129),h=r(104),b=r(6),g=r(3),y=r(16);const _=(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},v=e=>{const{__internalSetCustomerId:t}=Object(b.dispatch)(g.CHECKOUT_STORE_KEY);m.a.setNonce&&"function"==typeof m.a.setNonce&&m.a.setNonce(e),null!=e&&e.get("User-ID")&&t(parseInt(e.get("User-ID")||"0",10))};var O=r(35),k=()=>{const{onCheckoutValidationBeforeProcessing:e}=Object(u.b)(),{hasError:t,redirectUrl:r,isProcessing:o,isBeforeProcessing:i,isComplete:c,orderNotes:a,shouldCreateAccount:d,extensionData:k}=Object(b.useSelect)(e=>{const t=e(g.CHECKOUT_STORE_KEY);return{...t.getCheckoutState(),isProcessing:t.isProcessing(),isBeforeProcessing:t.isBeforeProcessing(),isComplete:t.isComplete()}}),{__internalSetHasError:E,__internalProcessCheckoutResponse:w}=Object(b.useDispatch)(g.CHECKOUT_STORE_KEY),j=Object(b.useSelect)(e=>e(g.VALIDATION_STORE_KEY).hasValidationErrors),{shippingErrorStatus:S}=Object(s.b)(),{billingAddress:C,shippingAddress:x}=Object(l.b)(),{cartNeedsPayment:T,cartNeedsShipping:A,receiveCart:R}=Object(O.a)(),{createErrorNotice:N,removeNotice:P}=Object(b.useDispatch)("core/notices"),{activePaymentMethod:M,paymentMethodData:D,isExpressPaymentMethodActive:L,currentPaymentStatus:I,shouldSavePayment:F}=Object(b.useSelect)(e=>{const t=e(g.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),paymentMethodData:t.getPaymentMethodData(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive(),currentPaymentStatus:t.getCurrentStatus(),shouldSavePayment:t.shouldSavePaymentMethod()}},[]),U=Object(y.getPaymentMethods)(),V=Object(y.getExpressPaymentMethods)(),B=Object(n.useRef)(C),H=Object(n.useRef)(x),z=Object(n.useRef)(r),[K,Y]=Object(n.useState)(!1),q=Object(n.useMemo)(()=>{var e;const t={...V,...U};return null==t||null===(e=t[M])||void 0===e?void 0:e.paymentMethodId},[M,V,U]),W=j()&&!L||I.hasError||S.hasError,$=!t&&!W&&(I.isSuccessful||!T)&&o;Object(n.useEffect)(()=>{W===t||!o&&!i||L||E(W)},[W,t,o,i,L,E]),Object(n.useEffect)(()=>{B.current=C,H.current=x,z.current=r},[C,x,r]);const G=Object(n.useCallback)(()=>!j()&&(I.hasError?{errorMessage:Object(p.__)("There was a problem with your payment option.","woo-gutenberg-products-block")}:!S.hasError||{errorMessage:Object(p.__)("There was a problem with your shipping option.","woo-gutenberg-products-block")}),[j,I.hasError,S.hasError]);Object(n.useEffect)(()=>{let t;return L||(t=e(G,0)),()=>{L||t()}},[e,G,L]),Object(n.useEffect)(()=>{z.current&&(window.location.href=z.current)},[c]);const X=Object(n.useCallback)(async()=>{if(K)return;Y(!0),P("checkout");const e=T?{payment_method:q,payment_data:_(D,F,M)}:{},t={billing_address:Object(f.a)(B.current),customer_note:a,create_account:d,...e,extensions:{...k}};A&&(t.shipping_address=Object(f.a)(H.current)),m()({path:"/wc/store/v1/checkout",method:"POST",data:t,cache:"no-store",parse:!1}).then(e=>{if(v(e.headers),!e.ok)throw new Error(e);return e.json()}).then(e=>{w(e),Y(!1)}).catch(e=>{try{null!=e&&e.headers&&v(e.headers),e.json().then(e=>{var t,r,n;null!==(t=e.data)&&void 0!==t&&t.cart&&R(e.data.cart),N(Object(h.b)(e),{id:"checkout",context:"wc/checkout",__unstableHTML:!0}),null==e||null===(r=e.additional_errors)||void 0===r||null===(n=r.forEach)||void 0===n||n.call(r,e=>{N(e.message,{id:e.error_code,context:"wc/checkout",__unstableHTML:!0})}),w(e)})}catch{var t;N(Object(p.sprintf)(// Translators: %s Error text.
4
  Object(p.__)("%s Please try placing your order again.","woo-gutenberg-products-block"),null!==(t=null==e?void 0:e.message)&&void 0!==t?t:Object(p.__)("Something went wrong. Please contact us for assistance.","woo-gutenberg-products-block")),{id:"checkout",context:"wc/checkout",__unstableHTML:!0})}E(!0),Y(!1)})},[K,P,T,q,D,F,M,a,d,k,A,N,R,E,w]);return Object(n.useEffect)(()=>{$&&!K&&X()},[X,$,K]),null};const E=e=>{let{children:t,redirectUrl:r}=e;return Object(n.createElement)(u.a,{redirectUrl:r},Object(n.createElement)(l.a,null,Object(n.createElement)(s.a,null,Object(n.createElement)(a.a,null,t,Object(n.createElement)(c.a,{renderError:i.CURRENT_USER_IS_ADMIN?null:()=>null},Object(n.createElement)(o.PluginArea,{scope:"woocommerce-checkout"})),Object(n.createElement)(k,null)))))}},,,,,,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));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}),i=(Object(n.createContext)({addressFieldControls:()=>null,accountControls:()=>null}),()=>Object(n.useContext)(o))},,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));var n=r(6);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)},i=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"),i=r.filter(t=>t.status===e);i.forEach(e=>o(e.id,t))}},,,,,,,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 that customers agree to your Terms & 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,"a",(function(){return o}));var n=r(103);const o=(e,t)=>function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;const i=n.a.addEventCallback(e,r,o);return t(i),()=>{t(n.a.removeEventCallback(e,i.id))}}},function(e,t){},,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));var n=r(41);const o=async(e,t,r)=>{const o=Object(n.a)(e,t),i=[];for(const e of o)try{const t=await Promise.resolve(e.callback(r));"object"==typeof t&&i.push(t)}catch(e){console.error(e)}return!i.length||i},i=async(e,t,r)=>{const o=[],i=Object(n.a)(e,t);for(const e of i)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(n.b)(t)||Object(n.c)(t))return o.push(t),o;o.push(t)}catch(e){return console.error(e),o.push({type:"error"}),o}return o}},,,,,,,,,,,,,,,,,,,,,,function(e,t,r){e.exports=r(264)},function(e,t){},function(e,t){},function(e,t){},,,,,,,,function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(162),i=r(35),c=r(277),a=r(278),s=r(16),l=r(130),u=r(44),p=r(9),d={CHECKOUT_ACTIONS:r(184),CHECKOUT_BILLING_ADDRESS:r(185),CHECKOUT_CONTACT_INFORMATION:r(186),CHECKOUT_EXPRESS_PAYMENT:r(187),CHECKOUT_FIELDS:r(188),CHECKOUT_ORDER_NOTE:r(189),CHECKOUT_PAYMENT:r(190),CHECKOUT_SHIPPING_ADDRESS:r(191),CHECKOUT_SHIPPING_METHODS:r(192),CHECKOUT_TERMS:r(193),CHECKOUT_TOTALS:r(194),CHECKOUT_ORDER_SUMMARY:r(195),CHECKOUT_ORDER_SUMMARY_SUBTOTAL:r(196),CHECKOUT_ORDER_SUMMARY_FEE:r(197),CHECKOUT_ORDER_SUMMARY_DISCOUNT:r(198),CHECKOUT_ORDER_SUMMARY_SHIPPING:r(199),CHECKOUT_ORDER_SUMMARY_COUPON_FORM:r(200),CHECKOUT_ORDER_SUMMARY_TAXES:r(201),CHECKOUT_ORDER_SUMMARY_CART_ITEMS:r(202)};r.p=u.k,Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_FIELDS,component:Object(n.lazy)(()=>r.e(40).then(r.bind(null,452)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_EXPRESS_PAYMENT,component:Object(n.lazy)(()=>Promise.all([r.e(5),r.e(39)]).then(r.bind(null,491)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_CONTACT_INFORMATION,component:Object(n.lazy)(()=>r.e(38).then(r.bind(null,471)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_SHIPPING_ADDRESS,component:Object(n.lazy)(()=>Promise.all([r.e(1),r.e(2),r.e(8),r.e(51)]).then(r.bind(null,478)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_BILLING_ADDRESS,component:Object(n.lazy)(()=>Promise.all([r.e(1),r.e(2),r.e(8),r.e(37)]).then(r.bind(null,479)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_SHIPPING_METHODS,component:Object(n.lazy)(()=>Promise.all([r.e(0),r.e(52)]).then(r.bind(null,469)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_PAYMENT,component:Object(n.lazy)(()=>r.e(50).then(r.bind(null,466)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_NOTE,component:Object(n.lazy)(()=>r.e(41).then(r.bind(null,480)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_TERMS,component:Object(n.lazy)(()=>r.e(53).then(r.bind(null,492)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ACTIONS,component:Object(n.lazy)(()=>r.e(36).then(r.bind(null,468)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_TOTALS,component:Object(n.lazy)(()=>r.e(54).then(r.bind(null,453)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY,component:Object(n.lazy)(()=>Promise.all([r.e(0),r.e(42)]).then(r.bind(null,493)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_CART_ITEMS,component:Object(n.lazy)(()=>Promise.all([r.e(0),r.e(3),r.e(43)]).then(r.bind(null,472)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_SUBTOTAL,component:Object(n.lazy)(()=>r.e(48).then(r.bind(null,494)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_FEE,component:Object(n.lazy)(()=>r.e(46).then(r.bind(null,495)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_DISCOUNT,component:Object(n.lazy)(()=>r.e(45).then(r.bind(null,496)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_COUPON_FORM,component:Object(n.lazy)(()=>r.e(44).then(r.bind(null,497)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_SHIPPING,component:Object(n.lazy)(()=>Promise.all([r.e(0),r.e(1),r.e(2),r.e(7),r.e(47)]).then(r.bind(null,498)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_TAXES,component:Object(n.lazy)(()=>r.e(49).then(r.bind(null,481)))});var m=r(1),f=r(4),h=r.n(f),b=r(272),g=r(142),y=r(136),_=r(15),v=r(283),O=r(2),k=r(99),E=r(6),w=r(3),j=(r(254),r(14)),S=Object(n.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"})),C=r(110);r(255);var x=()=>Object(n.createElement)("div",{className:"wc-block-checkout-empty"},Object(n.createElement)(C.a,{className:"wc-block-checkout-empty__image",icon:S,size:100}),Object(n.createElement)("strong",{className:"wc-block-checkout-empty__title"},Object(m.__)("Your cart is currently empty!","woo-gutenberg-products-block")),Object(n.createElement)("p",{className:"wc-block-checkout-empty__description"},Object(m.__)("Checkout is not available whilst your cart is empty—please take a look through our store and come back when you're ready to place an order.","woo-gutenberg-products-block")),u.i&&Object(n.createElement)("span",{className:"wp-block-button"},Object(n.createElement)("a",{href:u.i,className:"wp-block-button__link"},Object(m.__)("Browse store","woo-gutenberg-products-block")))),T=Object(n.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M22.7 22.7l-20-20L2 2l-.7-.7L0 2.5 4.4 7l2.2 4.7L5.2 14A2 2 0 007 17h7.5l1.3 1.4a2 2 0 102.8 2.8l2.9 2.8 1.2-1.3zM7.4 15a.2.2 0 01-.2-.3l.9-1.7h2.4l2 2h-5zm8.2-2a2 2 0 001.7-1l3.6-6.5.1-.5c0-.6-.4-1-1-1H6.5l9 9zM7 18a2 2 0 100 4 2 2 0 000-4z"}),Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"})),A=r(20);r(256);const R=["woocommerce_rest_product_out_of_stock","woocommerce_rest_product_not_purchasable","woocommerce_rest_product_partially_out_of_stock","woocommerce_rest_product_too_many_in_cart","woocommerce_rest_cart_item_error"],N=Object(O.getSetting)("checkoutData",{}),P=e=>{let{errorData:t}=e,r=Object(m.__)("Checkout error","woo-gutenberg-products-block");return R.includes(t.code)&&(r=Object(m.__)("There is a problem with your cart","woo-gutenberg-products-block")),Object(n.createElement)("strong",{className:"wc-block-checkout-error_title"},r)},M=e=>{let{errorData:t}=e,r=t.message;return R.includes(t.code)&&(r=r+" "+Object(m.__)("Please edit your cart and try again.","woo-gutenberg-products-block")),Object(n.createElement)("p",{className:"wc-block-checkout-error__description"},r)},D=e=>{let{errorData:t}=e,r=Object(m.__)("Retry","woo-gutenberg-products-block"),o="javascript:window.location.reload(true)";return R.includes(t.code)&&(r=Object(m.__)("Edit your cart","woo-gutenberg-products-block"),o=u.c),Object(n.createElement)("span",{className:"wp-block-button"},Object(n.createElement)("a",{href:o,className:"wp-block-button__link"},r))};var L=()=>{const e={code:"",message:"",...N||{}},t={code:e.code||"unknown",message:Object(A.decodeEntities)(e.message)||Object(m.__)("There was a problem checking out. Please try again. If the problem persists, please get in touch with us so we can assist.","woo-gutenberg-products-block")};return Object(n.createElement)("div",{className:"wc-block-checkout-error"},Object(n.createElement)(C.a,{className:"wc-block-checkout-error__image",icon:T,size:100}),Object(n.createElement)(P,{errorData:t}),Object(n.createElement)(M,{errorData:t}),Object(n.createElement)(D,{errorData:t}))};const I=`${u.e}?redirect_to=${encodeURIComponent(window.location.href)}`,F=()=>{window.location.reload(!0)};var U=r(151),V=r(155);const B=()=>Object(n.createElement)(n.Fragment,null,Object(m.__)("You must be logged in to checkout. ","woo-gutenberg-products-block"),Object(n.createElement)("a",{href:I},Object(m.__)("Click here to log in.","woo-gutenberg-products-block"))),H=e=>{let{attributes:t,children:r}=e;const{hasOrder:o,customerId:c}=Object(E.useSelect)(e=>{const t=e(w.CHECKOUT_STORE_KEY);return{hasOrder:t.hasOrder(),customerId:t.getCustomerId()}}),{cartItems:a,cartIsLoading:s}=Object(i.a)(),{allowCreateAccount:l,showCompanyField:u,requireCompanyField:p,showApartmentField:d,showPhoneField:m,requirePhoneField:f}=t;return s||0!==a.length?o?((e=>!e&&!Object(O.getSetting)("checkoutAllowsGuest",!1))(c)&&l&&Object(O.getSetting)("checkoutAllowsSignup",!1)&&Object(n.createElement)(B,null),Object(n.createElement)(U.a.Provider,{value:{allowCreateAccount:l,showCompanyField:u,requireCompanyField:p,showApartmentField:d,showPhoneField:m,requirePhoneField:f}},r)):Object(n.createElement)(L,null):Object(n.createElement)(x,null)},z=e=>{let{scrollToTop:t}=e;const{hasError:r,isIdle:o}=Object(E.useSelect)(e=>{const t=e(w.CHECKOUT_STORE_KEY);return{isIdle:t.isIdle(),hasError:t.hasError()}}),{hasValidationErrors:i}=Object(E.useSelect)(e=>({hasValidationErrors:e(w.VALIDATION_STORE_KEY).hasValidationErrors()})),{showAllValidationErrors:c}=Object(E.useDispatch)(w.VALIDATION_STORE_KEY),a=o&&r&&(i||Object(V.a)("wc/checkout","default"));return Object(n.useEffect)(()=>{let e;return a&&(c(),e=window.setTimeout(()=>{t({focusableSelector:"input:invalid, .has-error input"})},50)),()=>{clearTimeout(e)}},[a,t,c]),null};var K=Object(k.a)(e=>{let{attributes:t,children:r,scrollToTop:o}=e;return Object(n.createElement)(_.a,{header:Object(m.__)("Something went wrong. Please contact us for assistance.","woo-gutenberg-products-block"),text:Object(n.createInterpolateElement)(Object(m.__)("The checkout has encountered an unexpected error. <button>Try reloading the page</button>. If the error persists, please get in touch with us so we can assist.","woo-gutenberg-products-block"),{button:Object(n.createElement)("button",{className:"wc-block-link-button",onClick:F})}),showErrorMessage:O.CURRENT_USER_IS_ADMIN},Object(n.createElement)(b.a,{context:"wc/checkout"}),Object(n.createElement)(y.a,{context:"wc/checkout"}),Object(n.createElement)(p.SlotFillProvider,null,Object(n.createElement)(g.a,null,Object(n.createElement)(v.a,{className:h()("wc-block-checkout",{"has-dark-controls":t.hasDarkControls})},Object(n.createElement)(H,{attributes:t},r),Object(n.createElement)(z,{scrollToTop:o})))))});const Y={hasDarkControls:{type:"boolean",default:Object(O.getSetting)("hasDarkEditorStyleSupport",!1)},showRateAfterTaxName:{type:"boolean",default:Object(O.getSetting)("displayCartPricesIncludingTax",!1)}};var q=r(203);Object(l.a)({Block:K,blockName:"woocommerce/checkout",selector:".wp-block-woocommerce-checkout",getProps:e=>({attributes:Object(o.a)({...q.attributes,...Y},e instanceof HTMLElement?e.dataset:{})}),blockMap:Object(s.getRegisteredBlockComponents)("woocommerce/checkout"),blockWrapper:e=>{let{children:t}=e;const{extensions:r,receiveCart:o,...s}=Object(i.a)(),l=Object(c.a)(),u=Object(a.a)();return n.Children.map(t,e=>{if(Object(n.isValidElement)(e)){const t={extensions:r,cart:s,checkoutExtensionData:l,validation:u};return Object(n.cloneElement)(e,t)}return e})}})},,,,,,,function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return l}));var n=r(0),o=r(10),i=r(4),c=r.n(i);const a=Object(n.createContext)({hasContainerWidth:!1,containerClassName:"",isMobile:!1,isSmall:!1,isMedium:!1,isLarge:!1}),s=()=>Object(n.useContext)(a),l=e=>{let{children:t,className:r=""}=e;const[i,s]=(()=>{const[e,{width:t}]=Object(o.useResizeObserver)();let r="";return t>700?r="is-large":t>520?r="is-medium":t>400?r="is-small":t&&(r="is-mobile"),[e,r]})(),l={hasContainerWidth:""!==s,containerClassName:s,isMobile:"is-mobile"===s,isSmall:"is-small"===s,isMedium:"is-medium"===s,isLarge:"is-large"===s};return Object(n.createElement)(a.Provider,{value:l},Object(n.createElement)("div",{className:c()(r,s)},i,t))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(0),o=r(8),i=r(4),c=r.n(i),a=r(5),s=r(106),l=r(10),u=r(124),p=function({notices:e,className:t,children:r,onRemove:i=a.noop}){const p=Object(l.useReducedMotion)(),[d]=Object(n.useState)(()=>new WeakMap),m=Object(s.useTransition)(e,e=>e.id,{from:{opacity:0,height:0},enter:e=>async t=>await t({opacity:1,height:d.get(e).offsetHeight}),leave:()=>async e=>{await e({opacity:0}),await e({height:0})},immediate:p});t=c()("components-snackbar-list",t);const f=e=>()=>i(e.id);return Object(n.createElement)("div",{className:t},r,m.map(({item:e,key:t,props:r})=>Object(n.createElement)(s.animated.div,{key:t,style:r},Object(n.createElement)("div",{className:"components-snackbar-list__notice-container",ref:t=>t&&d.set(e,t)},Object(n.createElement)(u.a,Object(o.a)({},Object(a.omit)(e,["content"]),{onRemove:f(e)}),e.content)))))},d=r(9),m=r(6),f=r(42);const h={},b=e=>{let{className:t,context:r="default"}=e;const{isEditor:o}=Object(f.a)(),{notices:i}=Object(m.useSelect)(e=>({notices:e("core/notices").getNotices(r)})),{removeNotice:a}=Object(m.useDispatch)("core/notices");if(o)return null;const s=i.filter(e=>"snackbar"===e.type),l=s.length>0?s.reduce((e,t)=>{let{content:r}=t;return e[r]=!0,e},{}):h,u=Object(d.__experimentalApplyCheckoutFilter)({filterName:"snackbarNoticeVisibility",defaultValue:l}),b=s.filter(e=>!0===u[e.content]),g=c()(t,"wc-block-components-notices__snackbar");return Object(n.createElement)(p,{notices:b,className:g,onRemove:()=>{b.forEach(e=>a(e.id,r))}})}},,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(6),o=r(0),i=r(12),c=r.n(i),a=r(3);const s=()=>{const{__internalSetExtensionData:e}=Object(n.useDispatch)(a.CHECKOUT_STORE_KEY),{extensionData:t}=Object(n.useSelect)(e=>e(a.CHECKOUT_STORE_KEY).getCheckoutState()),r=Object(o.useRef)(t);Object(o.useEffect)(()=>{c()(t,r.current)||(r.current=t)},[t]);const i=Object(o.useCallback)((t,n,o)=>{const i=r.current[t]||{};e({...r.current,[t]:{...i,[n]:o}})},[e]);return{extensionData:r.current,setExtensionData:i}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(0),o=r(6),i=r(3);const c=()=>{const{clearValidationError:e,hideValidationError:t,setValidationErrors:r}=Object(o.useDispatch)(i.VALIDATION_STORE_KEY),c="extensions-errors",{hasValidationErrors:a,getValidationError:s}=Object(o.useSelect)(e=>{const t=e(i.VALIDATION_STORE_KEY);return{hasValidationErrors:t.hasValidationErrors(),getValidationError:e=>t.getValidationError(`${c}-${e}`)}});return{hasValidationErrors:a,getValidationError:s,clearValidationError:Object(n.useCallback)(t=>e(`${c}-${t}`),[e]),hideValidationError:Object(n.useCallback)(e=>t(`${c}-${e}`),[t]),setValidationErrors:Object(n.useCallback)(e=>r(Object.fromEntries(Object.entries(e).map(e=>{let[t,r]=e;return[`${c}-${t}`,r]}))),[r])}}},,,,,function(e,t,r){"use strict";var n=r(0),o=r(4),i=r.n(o),c=r(271);r(229),t.a=e=>{let{children:t,className:r}=e;return Object(n.createElement)(c.a,{className:i()("wc-block-components-sidebar-layout",r)},t)}}]);
1
+ !function(e){function t(t){for(var r,o,i=t[0],c=t[1],a=0,l=[];a<i.length;a++)o=i[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(s&&s(t);l.length;)l.shift()()}var r={},n={35:0,9: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 i=new Promise((function(t,o){r=n[e]=[t,o]}));t.push(r[2]=i);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-cross-sells-products--cart-blocks/cart-line-items--cart-blocks/cart-order--671ca56f",1:"vendors--cart-blocks/cart-cross-sells-products--cart-blocks/order-summary-shipping--checkout-blocks--18f9376a",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/cart-express-payment--checkout-blocks/express-payment",7:"cart-blocks/order-summary-shipping--checkout-blocks/order-summary-shipping",8:"checkout-blocks/billing-address--checkout-blocks/shipping-address",36:"checkout-blocks/actions",37:"checkout-blocks/billing-address",38:"checkout-blocks/contact-information",39:"checkout-blocks/express-payment",40:"checkout-blocks/fields",41:"checkout-blocks/order-note",42:"checkout-blocks/order-summary",43:"checkout-blocks/order-summary-cart-items",44:"checkout-blocks/order-summary-coupon-form",45:"checkout-blocks/order-summary-discount",46:"checkout-blocks/order-summary-fee",47:"checkout-blocks/order-summary-shipping",48:"checkout-blocks/order-summary-subtotal",49:"checkout-blocks/order-summary-taxes",50:"checkout-blocks/payment",51:"checkout-blocks/shipping-address",52:"checkout-blocks/shipping-methods",53:"checkout-blocks/terms",54:"checkout-blocks/totals"}[e]||e)+"-frontend.js?ver="+{0:"070996725b0f85b980b0",1:"07321dd2b38335dc8fab",2:"f5825d8c0d17b0570c67",3:"6d35da8c35248d2292f8",5:"44606933b44c1da30e3b",7:"ddf270ed783163111192",8:"0c473a2a590bc88b3345",36:"f55cc55ed44415e0e5d4",37:"5d83adce3bee5d812995",38:"f56a144a744787c95608",39:"7ac538b30218bb25c34a",40:"9917cfdfb851d993b18b",41:"57915deb9d71798bb275",42:"9a36a9eb0fd953de7c17",43:"eed2ba48b6be0926322e",44:"dc4a8edf0444027601b7",45:"fae41bd6c35961abd009",46:"f22c722edb5fad949c2e",47:"7a994ba4a90952b514ea",48:"482b0c2cfbfc06474d96",49:"d55739eabcaa7d64c59b",50:"b6f4a70940f02c839003",51:"eb8408683dce8c28b9b7",52:"690ab4a1db78c5eb84d9",53:"2951beacda541d740737",54:"8da6bde5a6da56ba5f78"}[e]}(e);var s=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),i=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}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 i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var s=c;o(o.s=253)}([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.wc.wcBlocksData},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 i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var c=o.apply(null,n);c&&e.push(c)}}else if("object"===i)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.lodash},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.React},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.wc.blocksCheckout},function(e,t){e.exports=window.wp.compose},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.isShallowEqual},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.wp.primitives},function(e,t,r){"use strict";var n=r(17),o=r.n(n),i=r(0),c=r(7),a=r(1),s=r(44),l=e=>{let{imageUrl:t=s.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(i.createElement)("div",{className:"wc-block-error wc-block-components-error"},t&&Object(i.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:t,alt:""}),Object(i.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},r&&Object(i.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},r),n&&Object(i.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},n),o&&Object(i.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},c?c+" ":"",o),l&&Object(i.createElement)("p",{className:"wc-block-error__button wc-block-components-error__button"},l))):null};r(33);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(i.createElement)(i.Fragment,null,Object(i.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:s}=this.props,{errorMessage:u,hasError:p}=this.state;return p?"function"==typeof a?a({errorMessage:u}):Object(i.createElement)(l,{showErrorBlock:n,errorMessage:r?u:null,header:e,imageUrl:t,text:o,errorMessagePrefix:c,button:s}):this.props.children}}t.a=u},function(e,t){e.exports=window.wc.wcBlocksRegistry},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.htmlEntities},,,function(e,t){e.exports=window.wp.a11y},,function(e,t,r){"use strict";(function(e){var n=r(0);r(36);const o=Object(n.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==e&&e.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});t.a=o}).call(this,r(65))},,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.deprecated},,,function(e,t){e.exports=window.wp.apiFetch},,function(e,t){},function(e,t,r){"use strict";var n=r(4),o=r.n(n),i=r(0);t.a=Object(i.forwardRef)((function({as:e="div",className:t,...r},n){return function({as:e="div",...t}){return"function"==typeof t.children?t.children(t):Object(i.createElement)(e,t)}({as:e,className:o()("components-visually-hidden",t),...r,ref:n})}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return _}));var n=r(5),o=r(0),i=r(3),c=r(6),a=r(20),s=r(129),l=r(42),u=r(89);const p=e=>{const t=e.detail;t&&t.preserveCartData||Object(c.dispatch)(i.CART_STORE_KEY).invalidateResolutionForStore()},d=()=>{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",p),document.body.addEventListener("wc-blocks_removed_from_cart",p),window.wcBlocksStoreCartListeners.count=0,window.wcBlocksStoreCartListeners.remove=()=>{e(),t(),document.body.removeEventListener("wc-blocks_added_to_cart",p),document.body.removeEventListener("wc-blocks_removed_from_cart",p)}}window.wcBlocksStoreCartListeners.count++})(),d),[])},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:i.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:i.EMPTY_CART_COUPONS,cartItems:i.EMPTY_CART_ITEMS,cartFees:i.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,crossSellsProducts:i.EMPTY_CART_CROSS_SELLS,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:i.EMPTY_CART_ITEM_ERRORS,cartTotals:b,cartIsLoading:!0,cartErrors:i.EMPTY_CART_ERRORS,billingAddress:h,shippingAddress:f,shippingRates:i.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentRequirements:i.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},extensions:i.EMPTY_EXTENSIONS},_=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,p=Object(o.useRef)();m();const d=Object(c.useSelect)((e,r)=>{let{dispatch:n}=r;if(!u)return y;if(t)return{cartCoupons:a.coupons,cartItems:a.items,crossSellsProducts:a.cross_sells,cartFees:a.fees,cartItemsCount:a.items_count,cartItemsWeight:a.items_weight,cartNeedsPayment:a.needs_payment,cartNeedsShipping:a.needs_shipping,cartItemErrors:i.EMPTY_CART_ITEM_ERRORS,cartTotals:a.totals,cartIsLoading:!1,cartErrors:i.EMPTY_CART_ERRORS,billingData:h,billingAddress:h,shippingAddress:f,extensions:i.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(i.CART_STORE_KEY),c=o.getCartData(),l=o.getCartErrors(),p=o.getCartTotals(),d=!o.hasFinishedResolution("getCartData"),m=o.isCustomerDataUpdating(),{receiveCart:b}=n(i.CART_STORE_KEY),_=g(c.billingAddress),v=c.needsShipping?g(c.shippingAddress):_,O=c.fees.length>0?c.fees.map(e=>g(e)):i.EMPTY_CART_FEES;return{cartCoupons:c.coupons.length>0?c.coupons.map(e=>({...e,label:e.code})):i.EMPTY_CART_COUPONS,cartItems:c.items,crossSellsProducts:c.crossSells,cartFees:O,cartItemsCount:c.itemsCount,cartItemsWeight:c.itemsWeight,cartNeedsPayment:c.needsPayment,cartNeedsShipping:c.needsShipping,cartItemErrors:c.errors,cartTotals:p,cartIsLoading:d,cartErrors:l,billingData:Object(s.a)(_),billingAddress:Object(s.a)(_),shippingAddress:Object(s.a)(v),extensions:c.extensions,shippingRates:c.shippingRates,isLoadingRates:m,cartHasCalculatedShipping:c.hasCalculatedShipping,paymentRequirements:c.paymentRequirements,receiveCart:b}},[u]);return p.current&&Object(n.isEqual)(p.current,d)||(p.current=d),p.current}},function(e,t){e.exports=window.wp.warning},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(11),o=r.n(n),i=r(0),c=r(15);const a=[".wp-block-woocommerce-cart"],s=e=>{let{Block:t,containers:r,getProps:n=(()=>({})),getErrorBoundaryProps:a=(()=>({}))}=e;0!==r.length&&Array.prototype.forEach.call(r,(e,r)=>{const s=n(e,r),l=a(e,r),u={...e.dataset,...s.attributes||{}};(e=>{let{Block:t,container:r,attributes:n={},props:a={},errorBoundaryProps:s={}}=e;Object(i.render)(Object(i.createElement)(c.a,s,Object(i.createElement)(i.Suspense,{fallback:Object(i.createElement)("div",{className:"wc-block-placeholder"})},t&&Object(i.createElement)(t,o()({},a,{attributes:n})))),r,()=>{r.classList&&r.classList.remove("is-loading")})})({Block:t,container:e,props:s,attributes:u,errorBoundaryProps:l})})},l=e=>{const t=document.body.querySelectorAll(a.join(",")),{Block:r,getProps:n,getErrorBoundaryProps:o,selector:i}=e;(e=>{let{Block:t,getProps:r,getErrorBoundaryProps:n,selector:o,wrappers:i}=e;const c=document.body.querySelectorAll(o);i&&i.length>0&&Array.prototype.filter.call(c,e=>!((e,t)=>Array.prototype.some.call(t,t=>t.contains(e)&&!t.isSameNode(e)))(e,i)),s({Block:t,containers:c,getProps:r,getErrorBoundaryProps:n})})({Block:r,getProps:n,getErrorBoundaryProps:o,selector:i,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:i}=e;const c=i.querySelectorAll(o);s({Block:t,containers:c,getProps:r,getErrorBoundaryProps:n})})({...e,wrapper:t})})})}},function(e,t){e.exports=window.wc.priceFormat},function(e,t,r){"use strict";var n=r(8),o=r(0),i=r(14),c=function({icon:e,className:t,...r}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" ");return Object(o.createElement)("span",Object(n.a)({className:i},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===i.SVG)){const n={width:t,height:t,...e.props,...r};return Object(o.createElement)(i.SVG,n)}return Object(o.isValidElement)(e)?Object(o.cloneElement)(e,{size:t,...r}):e}},,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"e",(function(){return i})),r.d(t,"d",(function(){return c})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return l}));var n=r(18);const o=(e,t)=>e[t]?Array.from(e[t].values()).sort((e,t)=>e.priority-t.priority):[];let i,c;!function(e){e.SUCCESS="success",e.FAIL="failure",e.ERROR="error"}(i||(i={})),function(e){e.PAYMENTS="wc/payment-area",e.EXPRESS_PAYMENTS="wc/express-payment-area"}(c||(c={}));const a=(e,t)=>Object(n.a)(e)&&"type"in e&&e.type===t,s=e=>a(e,i.ERROR),l=e=>a(e,i.FAIL)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0);r(6);const o=Object(n.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>{}}),i=()=>Object(n.useContext)(o)},function(e,t,r){"use strict";var n=r(8),o=r(0),i=r(4),c=r.n(i),a=r(5),s=r(28),l=r.n(s),u=r(10),p=r(45),d=r(90),m=r(1);function f(e,t,r){const{defaultView:n}=t,{frameElement:o}=n;if(!o||t===r.ownerDocument)return e;const i=o.getBoundingClientRect();return new n.DOMRect(e.left+i.left,e.top+i.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 _=r(25);function v(e){const t=Object(o.useContext)(_.a),r=t.slots[e]||{},n=t.fills[e],i=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:i,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 k({name:e,children:t,registerFill:r,unregisterFill:n}){const i=(e=>{const{getSlot:t,subscribe:r}=Object(o.useContext)(O),[n,i]=Object(o.useState)(t(e));return Object(o.useEffect)(()=>(i(t(e)),r(()=>{i(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,i&&i.forceUpdate()},[t]),Object(o.useLayoutEffect)(()=>{e!==c.current.name&&(n(c.current.name,c.current),c.current.name=e,r(e,c.current))},[e]),i&&i.node?(Object(a.isFunction)(t)&&(t=t(i.props.fillProps)),Object(o.createPortal)(t,i.node)):null}var E=e=>Object(o.createElement)(O.Consumer,null,({registerFill:t,unregisterFill:r})=>Object(o.createElement)(k,Object(n.a)({},e,{registerFill:t,unregisterFill:r})));class w 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,i=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(i):i)}}var j=e=>Object(o.createElement)(O.Consumer,null,({registerSlot:t,unregisterSlot:r,getFills:i})=>Object(o.createElement)(w,Object(n.a)({},e,{registerSlot:t,unregisterSlot:r,getFills:i})));function S(){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=v(e),n=Object(o.useRef)({rerender:S()});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 x=Object(o.forwardRef)((function({name:e,fillProps:t={},as:r="div",...i},c){const a=Object(o.useContext)(_.a),s=Object(o.useRef)();return Object(o.useLayoutEffect)(()=>(a.registerSlot(e,s,t),()=>{a.unregisterSlot(e,s)}),[a.registerSlot,a.unregisterSlot,e]),Object(o.useLayoutEffect)(()=>{a.updateSlot(e,t)}),Object(o.createElement)(r,Object(n.a)({ref:Object(u.useMergeRefs)([c,s])},i))}));function T(e){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E,e),Object(o.createElement)(C,e))}r(12),o.Component;const A=Object(o.forwardRef)(({bubblesVirtually:e,...t},r)=>e?Object(o.createElement)(x,Object(n.a)({},t,{ref:r})):Object(o.createElement)(j,t));function R(e){return"appear"===e?"top":"left"}function N(e,t){const{paddingTop:r,paddingBottom:n,paddingLeft:o,paddingRight:i}=(c=t).ownerDocument.defaultView.getComputedStyle(c);var c;const a=r?parseInt(r,10):0,s=n?parseInt(n,10):0,l=o?parseInt(o,10):0,u=i?parseInt(i,10):0;return{x:e.left+l,y:e.top+a,width:e.width-l-u,height:e.height-a-s,left:e.left+l,right:e.right-u,top:e.top+a,bottom:e.bottom-s}}function P(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function M(e,t,r=""){e.style[t]!==r&&(e.style[t]=r)}function D(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const L=Object(o.forwardRef)(({headerTitle:e,onClose:t,children:r,className:i,noArrow:a=!0,isAlternate:s,position:h="bottom right",range:b,focusOnMount:g="firstElement",anchorRef:_,shouldAnchorIncludePadding:O,anchorRect:k,getAnchorRect:E,expandOnMobile:w,animate:j=!0,onClickOutside:S,onFocusOutside:C,__unstableStickyBoundaryElement:x,__unstableSlotName:A="Popover",__unstableObserveElement:L,__unstableBoundaryParent:I,__unstableForcePosition:F,__unstableForceXAlignment:U,...V},B)=>{const H=Object(o.useRef)(null),z=Object(o.useRef)(null),K=Object(o.useRef)(),Y=Object(u.useViewportMatch)("medium","<"),[q,$]=Object(o.useState)(),G=v(A),X=w&&Y,[J,Z]=Object(u.useResizeObserver)();a=X||a,Object(o.useLayoutEffect)(()=>{if(X)return D(K.current,"is-without-arrow",a),D(K.current,"is-alternate",s),P(K.current,"data-x-axis"),P(K.current,"data-y-axis"),M(K.current,"top"),M(K.current,"left"),M(z.current,"maxHeight"),void M(z.current,"maxWidth");const e=()=>{if(!K.current||!z.current)return;let e=function(e,t,r,n=!1,o,i){if(t)return t;if(r){if(!e.current)return;const t=r(e.current);return f(t,t.ownerDocument||e.current.ownerDocument,i)}if(!1!==n){if(!(n&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==n?void 0:n.cloneRange))return f(Object(p.getRectangleFromRange)(n),n.endContainer.ownerDocument,i);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=f(n.getBoundingClientRect(),n.ownerDocument,i);return o?e:N(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,i);return o?a:N(a,n)}if(!e.current)return;const{parentNode:c}=e.current,a=c.getBoundingClientRect();return o?a:N(a,c)}(H,k,E,_,O,K.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=K.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 i;I&&(n=null===(i=K.current.closest(".popover-slot"))||void 0===i?void 0:i.parentNode);const c=Z.height?Z:z.current.getBoundingClientRect(),{popoverTop:l,popoverLeft:u,xAxis:d,yAxis:b,contentHeight:g,contentWidth:y}=function(e,t,r="top",n,o,i,c,a,s){const[l,u="center",p]=r.split(" "),d=function(e,t,r,n,o,i,c,a){const{height:s}=t;if(o){const t=o.getBoundingClientRect().top+s-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-s/2>0?s/2:l)+(l+s/2>window.innerHeight?window.innerHeight-l:s/2)},p={popoverTop:e.top,contentHeight:e.top-10-s>0?s:e.top-10},d={popoverTop:e.bottom,contentHeight:e.bottom+10+s>window.innerHeight?window.innerHeight-10-e.bottom:s};let m,f=r,h=null;if(!o&&!a)if("middle"===r&&u.contentHeight===s)f="middle";else if("top"===r&&p.contentHeight===s)f="top";else if("bottom"===r&&d.contentHeight===s)f="bottom";else{f=p.contentHeight>d.contentHeight?"top":"bottom";const e="top"===f?p.contentHeight:d.contentHeight;h=e!==s?e:null}return m="middle"===f?u.popoverTop:"top"===f?p.popoverTop:d.popoverTop,{yAxis:f,popoverTop:m,contentHeight:h}}(e,t,l,p,n,0,i,a);return{...function(e,t,r,n,o,i,c,a,s){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),p={popoverLeft:u,contentWidth:(u-l/2>0?l/2:u)+(u+l/2>window.innerWidth?window.innerWidth-u:l/2)};let d=e.left;"right"===n?d=e.right:"middle"===i||s||(d=u);let f=e.right;"left"===n?f=e.left:"middle"===i||s||(f=u);const h={popoverLeft:d,contentWidth:d-l>0?l:d},b={popoverLeft:f,contentWidth:f+l>window.innerWidth?window.innerWidth-f:l};let g,y=r,_=null;if(!o&&!a)if("center"===r&&p.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&&(_=window.innerWidth),e!==l&&(y="center",p.popoverLeft=window.innerWidth/2)}if(g="center"===y?p.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,t,u,p,n,d.yAxis,c,a,s),...d}}(e,c,h,x,K.current,o,n,F,U);"number"==typeof l&&"number"==typeof u&&(M(K.current,"top",l+"px"),M(K.current,"left",u+"px")),D(K.current,"is-without-arrow",a||"center"===d&&"middle"===b),D(K.current,"is-alternate",s),P(K.current,"data-x-axis",d),P(K.current,"data-y-axis",b),M(z.current,"maxHeight","number"==typeof g?g+"px":""),M(z.current,"maxWidth","number"==typeof y?y+"px":""),$(({left:"right",right:"left"}[d]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))};e();const{ownerDocument:t}=K.current,{defaultView:r}=t,n=r.setInterval(e,500);let o;const i=()=>{r.cancelAnimationFrame(o),o=r.requestAnimationFrame(e)};r.addEventListener("click",i),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}(_);let l;return c&&c!==t&&(c.defaultView.addEventListener("resize",e),c.defaultView.addEventListener("scroll",e,!0)),L&&(l=new r.MutationObserver(e),l.observe(L,{attributes:!0})),()=>{r.clearInterval(n),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",i),r.cancelAnimationFrame(o),c&&c!==t&&(c.defaultView.removeEventListener("resize",e),c.defaultView.removeEventListener("scroll",e,!0)),l&&l.disconnect()}},[X,k,E,_,O,h,Z,x,L,I]);const Q=(e,r)=>{if("focus-outside"===e&&C)C(r);else if("focus-outside"===e&&S){const e=new window.MouseEvent("click");Object.defineProperty(e,"target",{get:()=>r.relatedTarget}),l()("Popover onClickOutside prop",{since:"5.3",alternative:"onFocusOutside"}),S(e)}else t&&t()},[ee,te]=Object(u.__experimentalUseDialog)({focusOnMount:g,__unstableOnClose:Q,onClose:Q}),re=Object(u.useMergeRefs)([K,ee,B]),ne=Boolean(j&&q)&&function(e){if("loading"===e.type)return c()("components-animate__loading");const{type:t,origin:r=R(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:q});let oe=Object(o.createElement)("div",Object(n.a)({className:c()("components-popover",i,ne,{"is-expanded":X,"is-without-arrow":a,"is-alternate":s})},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)(W,{className:"components-popover__close",icon:d.a,onClick:t})),Object(o.createElement)("div",{ref:z,className:"components-popover__content"},Object(o.createElement)("div",{style:{position:"relative"}},J,r)));return G.ref&&(oe=Object(o.createElement)(T,{name:A},oe)),_||k?oe:Object(o.createElement)("span",{ref:H},oe)});L.Slot=Object(o.forwardRef)((function({name:e="Popover"},t){return Object(o.createElement)(A,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}));var I=L,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[i,c]=Object(o.useState)(!1),[s,l]=Object(o.useState)(!1),p=Object(u.useDebounce)(l,700),d=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?d:void 0,h=f("mouseUp"),b=(t,r)=>n=>{if(H(e,t,n),n.currentTarget.disabled)return;if("focus"===n.type&&i)return;p.cancel();const o=Object(a.includes)(["focus","mouseenter"],n.type);o!==s&&(r?p(o):l(o))},g=()=>{p.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")},_=o.Children.only(e),{children:v,disabled:O}=_.props;return(O?V:B)({child:_,eventHandlers:y,childrenWithPopover:(({grandchildren:e,isOver:t,position:r,text:n,shortcut:i})=>Object(o.concatChildren)(e,t&&Object(o.createElement)(I,{focusOnMount:!1,position:r,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},n,Object(o.createElement)(F,{className:"components-tooltip__shortcut",shortcut:i}))))({grandchildren:v,isOver:s,position:t,text:r,shortcut:n})})},K=r(39),Y=r(34);const q=["onMouseDown","onClick"];var W=t.a=Object(o.forwardRef)((function(e,t){const{href:r,target:i,isSmall:s,isPressed:u,isBusy:p,isDestructive:d,className:m,disabled:f,icon:h,iconPosition:b="left",iconSize:g,showTooltip:y,tooltipPosition:_,shortcut:v,label:O,children:k,text:E,variant:w,__experimentalIsFocusable:j,describedBy:S,...C}=function({isDefault:e,isPrimary:t,isSecondary:r,isTertiary:n,isLink:o,variant:i,...c}){let a=i;var s,u,p,d,m;return t&&(null!==(s=a)&&void 0!==s||(a="primary")),n&&(null!==(u=a)&&void 0!==u||(a="tertiary")),r&&(null!==(p=a)&&void 0!==p||(a="secondary")),e&&(l()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(d=a)&&void 0!==d||(a="secondary")),o&&(null!==(m=a)&&void 0!==m||(a="link")),{...c,variant:a}}(e),x=c()("components-button",m,{"is-secondary":"secondary"===w,"is-primary":"primary"===w,"is-small":s,"is-tertiary":"tertiary"===w,"is-pressed":u,"is-busy":p,"is-link":"link"===w,"is-destructive":d,"has-text":!!h&&!!k,"has-icon":!!h}),T=f&&!j,A=void 0===r||T?"button":"a",R="a"===A?{href:r,target:i}:{type:"button",disabled:T,"aria-pressed":u};if(f&&j){R["aria-disabled"]=!0;for(const e of q)C[e]=e=>{e.stopPropagation(),e.preventDefault()}}const N=!T&&(y&&O||v||!!O&&(!k||Object(a.isArray)(k)&&!k.length)&&!1!==y),P=S?Object(a.uniqueId)():null,M=C["aria-describedby"]||P,D=Object(o.createElement)(A,Object(n.a)({},R,C,{className:x,"aria-label":C["aria-label"]||O,"aria-describedby":M,ref:t}),h&&"left"===b&&Object(o.createElement)(K.a,{icon:h,size:g}),E&&Object(o.createElement)(o.Fragment,null,E),h&&"right"===b&&Object(o.createElement)(K.a,{icon:h,size:g}),k);return N?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(z,{text:S||O,shortcut:v,position:_},D),S&&Object(o.createElement)(Y.a,null,Object(o.createElement)("span",{id:P},S))):Object(o.createElement)(o.Fragment,null,D,S&&Object(o.createElement)(Y.a,null,Object(o.createElement)("span",{id:P},S)))}))},function(e,t,r){"use strict";r.d(t,"n",(function(){return i})),r.d(t,"l",(function(){return c})),r.d(t,"k",(function(){return a})),r.d(t,"m",(function(){return s})),r.d(t,"i",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"f",(function(){return p})),r.d(t,"j",(function(){return d})),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 i=Object(o.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),c=i.pluginUrl+"images/",a=i.pluginUrl+"build/",s=i.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),p=o.STORE_PAGES.privacy.permalink,d=(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){e.exports=window.wp.dom},function(e,t){e.exports=window.wp.hooks},,,,,,function(e,t,r){var n=r(75),o=r(53),i=o.setStyleProp,c=n.html,a=n.svg,s=n.isCustomAttribute,l=Object.prototype.hasOwnProperty;e.exports=function(e){var t,r,n,u;e=e||{};var p={};for(t in e)n=e[t],s(t)?p[t]=n:(r=t.toLowerCase(),l.call(c,r)?p[(u=c[r]).propertyName]=!!(u.hasBooleanValue||u.hasOverloadedBooleanValue&&!n)||n:l.call(a,t)?p[(u=a[t]).propertyName]=n:o.PRESERVE_CUSTOM_ATTRIBUTES&&(p[t]=n));return i(e.style,p),p}},function(e,t,r){var n=r(7),o=r(79).default,i={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,i={},c={};for(r in e)n=e[r],o&&(i=t(r,n))&&2===i.length?c[i[0]]=i[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,i))}}},function(e,t,r){for(var n,o=r(85).CASE_SENSITIVE_TAG_NAMES,i={},c=0,a=o.length;c<a;c++)n=o[c],i[n.toLowerCase()]=n;function s(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 i[e]}(e=e.toLowerCase())||e}e.exports={formatAttributes:s,formatDOM:function e(t,r,n){r=r||null;for(var o,i,c,a=[],u=0,p=t.length;u<p;u++){switch(o=t[u],c={next:null,prev:a[u-1]||null,parent:r},(i=a[u-1])&&(i.next=c),"#"!==o.nodeName[0]&&(c.name=l(o.nodeName),c.attribs={},o.attributes&&o.attributes.length&&(c.attribs=s(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";var n=r(2),o=r(1),i=r(92),c=r(27);const a=Object(n.getSetting)("countryLocale",{}),s=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(i.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,s(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){var n=r(74),o=r(52),i=r(83),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(i(e,(t=t||{}).htmlparser2||c),t)}a.domToReact=n,a.htmlToDOM=i,a.attributesToProps=o,e.exports=a,e.exports.default=a},function(e,t){e.exports=window.wp.keycodes},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(7);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){var r,n,o=e.exports={};function i(){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===i||!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:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:c}catch(e){n=c}}();var s,l=[],u=!1,p=-1;function d(){u&&s&&(u=!1,s.length?l=s.concat(l):p=-1,l.length&&m())}function m(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(s=l,l=[];++p<t;)s&&s[p].run();p=-1,t=l.length}s=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){"use strict";r.d(t,"a",(function(){return c}));var n=r(46),o=r(0),i=r(35);const c=()=>{const e=Object(i.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){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,r){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,r)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,o,i){return(n=r()?Reflect.construct:function(e,r,n){var o=[null];o.push.apply(o,r);var i=new(Function.bind.apply(e,o));return n&&t(i,n.prototype),i}).apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,void 0):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=Object.hasOwnProperty,a=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,p=Object.freeze,d=Object.seal,m=Object.create,f="undefined"!=typeof Reflect&&Reflect,h=f.apply,b=f.construct;h||(h=function(e,t,r){return e.apply(t,r)}),p||(p=function(e){return e}),d||(d=function(e){return e}),b||(b=function(e,t){return n(e,o(t))});var g,y=x(Array.prototype.forEach),_=x(Array.prototype.pop),v=x(Array.prototype.push),O=x(String.prototype.toLowerCase),k=x(String.prototype.match),E=x(String.prototype.replace),w=x(String.prototype.indexOf),j=x(String.prototype.trim),S=x(RegExp.prototype.test),C=(g=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return b(g,t)});function x(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return h(e,t,n)}}function T(e,t,r){r=r||O,a&&a(e,null);for(var n=t.length;n--;){var o=t[n];if("string"==typeof o){var i=r(o);i!==o&&(s(t)||(t[n]=i),o=i)}e[o]=!0}return e}function A(e){var t,r=m(null);for(t in e)h(c,e,[t])&&(r[t]=e[t]);return r}function R(e,t){for(;null!==e;){var r=u(e,t);if(r){if(r.get)return x(r.get);if("function"==typeof r.value)return x(r.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var N=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),P=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=p(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),L=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),I=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=p(["#text"]),U=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),V=p(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=p(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),K=d(/<%[\w\W]*|[\w\W]*%>/gm),Y=d(/^data-[\-\w.\u00B7-\uFFFF]/),q=d(/^aria-[\-\w]+$/),W=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=d(/^(?:\w+script|data):/i),G=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=d(/^html$/i),J=function(){return"undefined"==typeof window?null:window},Z=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null;r.currentScript&&r.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=r.currentScript.getAttribute("data-tt-policy-suffix"));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),n=function(e){return t(e)};if(n.version="2.4.0",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;var i=r.document,c=r.document,a=r.DocumentFragment,s=r.HTMLTemplateElement,l=r.Node,u=r.Element,d=r.NodeFilter,m=r.NamedNodeMap,f=void 0===m?r.NamedNodeMap||r.MozNamedAttrMap:m,h=r.HTMLFormElement,b=r.DOMParser,g=r.trustedTypes,x=u.prototype,Q=R(x,"cloneNode"),ee=R(x,"nextSibling"),te=R(x,"childNodes"),re=R(x,"parentNode");if("function"==typeof s){var ne=c.createElement("template");ne.content&&ne.content.ownerDocument&&(c=ne.content.ownerDocument)}var oe=Z(g,i),ie=oe?oe.createHTML(""):"",ce=c,ae=ce.implementation,se=ce.createNodeIterator,le=ce.createDocumentFragment,ue=ce.getElementsByTagName,pe=i.importNode,de={};try{de=A(c).documentMode?c.documentMode:{}}catch(e){}var me={};n.isSupported="function"==typeof re&&ae&&void 0!==ae.createHTMLDocument&&9!==de;var fe,he,be=z,ge=K,ye=Y,_e=q,ve=$,Oe=G,ke=W,Ee=null,we=T({},[].concat(o(N),o(P),o(M),o(L),o(F))),je=null,Se=T({},[].concat(o(U),o(V),o(B),o(H))),Ce=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Te=null,Ae=!0,Re=!0,Ne=!1,Pe=!1,Me=!1,De=!1,Le=!1,Ie=!1,Fe=!1,Ue=!1,Ve=!0,Be=!1,He="user-content-",ze=!0,Ke=!1,Ye={},qe=null,We=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,Ge=T({},["audio","video","img","source","image","track"]),Xe=null,Je=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,rt=!1,nt=["application/xhtml+xml","text/html"],ot="text/html",it=null,ct=c.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},st=function(t){it&&it===t||(t&&"object"===e(t)||(t={}),t=A(t),fe=fe=-1===nt.indexOf(t.PARSER_MEDIA_TYPE)?ot:t.PARSER_MEDIA_TYPE,he="application/xhtml+xml"===fe?function(e){return e}:O,Ee="ALLOWED_TAGS"in t?T({},t.ALLOWED_TAGS,he):we,je="ALLOWED_ATTR"in t?T({},t.ALLOWED_ATTR,he):Se,Xe="ADD_URI_SAFE_ATTR"in t?T(A(Je),t.ADD_URI_SAFE_ATTR,he):Je,$e="ADD_DATA_URI_TAGS"in t?T(A(Ge),t.ADD_DATA_URI_TAGS,he):Ge,qe="FORBID_CONTENTS"in t?T({},t.FORBID_CONTENTS,he):We,xe="FORBID_TAGS"in t?T({},t.FORBID_TAGS,he):{},Te="FORBID_ATTR"in t?T({},t.FORBID_ATTR,he):{},Ye="USE_PROFILES"in t&&t.USE_PROFILES,Ae=!1!==t.ALLOW_ARIA_ATTR,Re=!1!==t.ALLOW_DATA_ATTR,Ne=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=t.SAFE_FOR_TEMPLATES||!1,Me=t.WHOLE_DOCUMENT||!1,Ie=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,Le=t.FORCE_BODY||!1,Ve=!1!==t.SANITIZE_DOM,Be=t.SANITIZE_NAMED_PROPS||!1,ze=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Re=!1),Fe&&(Ie=!0),Ye&&(Ee=T({},o(F)),je=[],!0===Ye.html&&(T(Ee,N),T(je,U)),!0===Ye.svg&&(T(Ee,P),T(je,V),T(je,H)),!0===Ye.svgFilters&&(T(Ee,M),T(je,V),T(je,H)),!0===Ye.mathMl&&(T(Ee,L),T(je,B),T(je,H))),t.ADD_TAGS&&(Ee===we&&(Ee=A(Ee)),T(Ee,t.ADD_TAGS,he)),t.ADD_ATTR&&(je===Se&&(je=A(je)),T(je,t.ADD_ATTR,he)),t.ADD_URI_SAFE_ATTR&&T(Xe,t.ADD_URI_SAFE_ATTR,he),t.FORBID_CONTENTS&&(qe===We&&(qe=A(qe)),T(qe,t.FORBID_CONTENTS,he)),ze&&(Ee["#text"]=!0),Me&&T(Ee,["html","head","body"]),Ee.table&&(T(Ee,["tbody"]),delete xe.tbody),p&&p(t),it=t)},lt=T({},["mi","mo","mn","ms","mtext"]),ut=T({},["foreignobject","desc","title","annotation-xml"]),pt=T({},["title","style","font","a","script"]),dt=T({},P);T(dt,M),T(dt,D);var mt=T({},L);T(mt,I);var ft=function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var r=O(e.tagName),n=O(t.tagName);return e.namespaceURI===Qe?t.namespaceURI===et?"svg"===r:t.namespaceURI===Ze?"svg"===r&&("annotation-xml"===n||lt[n]):Boolean(dt[r]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===r:t.namespaceURI===Qe?"math"===r&&ut[n]:Boolean(mt[r]):e.namespaceURI===et&&!(t.namespaceURI===Qe&&!ut[n])&&!(t.namespaceURI===Ze&&!lt[n])&&!mt[r]&&(pt[r]||!dt[r])},ht=function(e){v(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},bt=function(e,t){try{v(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!je[e])if(Ie||Fe)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},gt=function(e){var t,r;if(Le)e="<remove></remove>"+e;else{var n=k(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===fe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(tt===et)try{t=(new b).parseFromString(o,fe)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(tt,"template",null);try{t.documentElement.innerHTML=rt?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&r&&i.insertBefore(c.createTextNode(r),i.childNodes[0]||null),tt===et?ue.call(t,Me?"html":"body")[0]:Me?t.documentElement:i},yt=function(e){return se.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},_t=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Ot=function(e,t,r){me[e]&&y(me[e],(function(e){e.call(n,t,r,it)}))},kt=function(e){var t;if(Ot("beforeSanitizeElements",e,null),_t(e))return ht(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return ht(e),!0;var r=he(e.nodeName);if(Ot("uponSanitizeElement",e,{tagName:r,allowedTags:Ee}),e.hasChildNodes()&&!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return ht(e),!0;if("select"===r&&S(/<template/i,e.innerHTML))return ht(e),!0;if(!Ee[r]||xe[r]){if(!xe[r]&&wt(r)){if(Ce.tagNameCheck instanceof RegExp&&S(Ce.tagNameCheck,r))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))return!1}if(ze&&!qe[r]){var o=re(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var c=i.length-1;c>=0;--c)o.insertBefore(Q(i[c],!0),ee(e))}return ht(e),!0}return e instanceof u&&!ft(e)?(ht(e),!0):"noscript"!==r&&"noembed"!==r||!S(/<\/no(script|embed)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,t=E(t,be," "),t=E(t,ge," "),e.textContent!==t&&(v(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ot("afterSanitizeElements",e,null),!1):(ht(e),!0)},Et=function(e,t,r){if(Ve&&("id"===t||"name"===t)&&(r in c||r in ct))return!1;if(Re&&!Te[t]&&S(ye,t));else if(Ae&&S(_e,t));else if(!je[t]||Te[t]){if(!(wt(e)&&(Ce.tagNameCheck instanceof RegExp&&S(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&S(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&S(Ce.tagNameCheck,r)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))))return!1}else if(Xe[t]);else if(S(ke,E(r,Oe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(r,"data:")||!$e[e])if(Ne&&!S(ve,E(r,Oe,"")));else if(r)return!1;return!0},wt=function(e){return e.indexOf("-")>0},jt=function(t){var r,o,i,c;Ot("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je};for(c=a.length;c--;){var l=r=a[c],u=l.name,p=l.namespaceURI;if(o="value"===u?r.value:j(r.value),i=he(u),s.attrName=i,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,Ot("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(bt(u,t),s.keepAttr))if(S(/\/>/i,o))bt(u,t);else{Pe&&(o=E(o,be," "),o=E(o,ge," "));var d=he(t.nodeName);if(Et(d,i,o)){if(!Be||"id"!==i&&"name"!==i||(bt(u,t),o=He+o),oe&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(p);else switch(g.getAttributeType(d,i)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{p?t.setAttributeNS(p,u,o):t.setAttribute(u,o),_(n.removed)}catch(e){}}}}Ot("afterSanitizeAttributes",t,null)}},St=function e(t){var r,n=yt(t);for(Ot("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)Ot("uponSanitizeShadowNode",r,null),kt(r)||(r.content instanceof a&&e(r.content),jt(r));Ot("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(t){var o,c,s,u,p,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((rt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!vt(t)){if("function"!=typeof t.toString)throw C("toString is not a function");if("string"!=typeof(t=t.toString()))throw C("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(r.toStaticHTML)||"function"==typeof r.toStaticHTML){if("string"==typeof t)return r.toStaticHTML(t);if(vt(t))return r.toStaticHTML(t.outerHTML)}return t}if(De||st(d),n.removed=[],"string"==typeof t&&(Ke=!1),Ke){if(t.nodeName){var m=he(t.nodeName);if(!Ee[m]||xe[m])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)1===(c=(o=gt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?o=c:o.appendChild(c);else{if(!Ie&&!Pe&&!Me&&-1===t.indexOf("<"))return oe&&Ue?oe.createHTML(t):t;if(!(o=gt(t)))return Ie?null:Ue?ie:""}o&&Le&&ht(o.firstChild);for(var f=yt(Ke?t:o);s=f.nextNode();)3===s.nodeType&&s===u||kt(s)||(s.content instanceof a&&St(s.content),jt(s),u=s);if(u=null,Ke)return t;if(Ie){if(Fe)for(p=le.call(o.ownerDocument);o.firstChild;)p.appendChild(o.firstChild);else p=o;return je.shadowroot&&(p=pe.call(i,p,!0)),p}var h=Me?o.outerHTML:o.innerHTML;return Me&&Ee["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&S(X,o.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+h),Pe&&(h=E(h,be," "),h=E(h,ge," ")),oe&&Ue?oe.createHTML(h):h},n.setConfig=function(e){st(e),De=!0},n.clearConfig=function(){it=null,De=!1},n.isValidAttribute=function(e,t,r){it||st({});var n=he(e),o=he(t);return Et(n,o,r)},n.addHook=function(e,t){"function"==typeof t&&(me[e]=me[e]||[],v(me[e],t))},n.removeHook=function(e){if(me[e])return _(me[e])},n.removeHooks=function(e){me[e]&&(me[e]=[])},n.removeAllHooks=function(){me={}},n}()}()},,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(6),o=r(3);const i=()=>{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:i}=Object(n.useDispatch)(o.CART_STORE_KEY);return{isInitialized:t,billingAddress:e.billingAddress,shippingAddress:e.shippingAddress,setBillingAddress:i,setShippingAddress:r}}},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){var n=r(7),o=r(52),i=r(53),c=i.setStyleProp;function a(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var i,s,l,u,p=(r=r||{}).library||n,d=p.cloneElement,m=p.createElement,f=p.isValidElement,h=[],b="function"==typeof r.replace,g=r.trim,y=0,_=t.length;y<_;y++)if(i=t[y],b&&f(s=r.replace(i)))_>1&&(s=d(s,{key:s.key||y})),h.push(s);else if("text"!==i.type){switch(l=i.attribs,a(i)?c(l.style,l):l&&(l=o(l)),u=null,i.type){case"script":case"style":i.children[0]&&(l.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?l.defaultValue=i.children[0].data:i.children&&i.children.length&&(u=e(i.children,r));break;default:continue}_>1&&(l.key=y),h.push(m(i.name,l,u))}else g?i.data.trim()&&h.push(i.data):h.push(i.data);return 1===h.length?h[0]:h}},function(e,t,r){var n=r(76),o=r(77),i=r(78),c=i.MUST_USE_PROPERTY,a=i.HAS_BOOLEAN_VALUE,s=i.HAS_NUMERIC_VALUE,l=i.HAS_POSITIVE_NUMERIC_VALUE,u=i.HAS_OVERLOADED_BOOLEAN_VALUE;function p(e,t){return(e&t)===t}function d(e,t,r){var n,o,i,d=e.Properties,m=e.DOMAttributeNames;for(o in d)n=m[o]||(r?o:o.toLowerCase()),i=d[o],t[n]={attributeName:n,propertyName:o,mustUseProperty:p(i,c),hasBooleanValue:p(i,a),hasNumericValue:p(i,s),hasPositiveNumericValue:p(i,l),hasOverloadedBooleanValue:p(i,u)}}var m={};d(n,m);var f={};d(o,f,!0);var h={};d(n,h),d(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(80)),i=r(82);t.default=function(e,t){var r={};return e&&"string"==typeof e?(o.default(e,(function(e,n){e&&n&&(r[i.camelCase(e,t)]=n)})),r):r}},function(e,t,r){var n=r(81);e.exports=function(e,t){var r,o=null;if(!e||"string"!=typeof e)return o;for(var i,c,a=n(e),s="function"==typeof t,l=0,u=a.length;l<u;l++)i=(r=a[l]).property,c=r.value,s?t(i,c,r):c&&(o||(o={}),o[i]=c);return o}},function(e,t){var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,c=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\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,p=1;function d(e){var t=e.match(n);t&&(l+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function m(){var e={line:l,column:p};return function(t){return t.position=new f(e),y(),t}}function f(e){this.start=e,this.end={line:l,column:p},this.source=t.source}f.prototype.content=e;var h=[];function b(r){var n=new Error(t.source+":"+l+":"+p+": "+r);if(n.reason=r,n.filename=t.source,n.line=l,n.column=p,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 d(n),e=e.slice(n.length),r}}function y(){g(o)}function _(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){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 p+=2,d(n),e=e.slice(r),p+=2,t({type:"comment",comment:n})}}function O(){var e=m(),t=g(i);if(t){if(v(),!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(s),o}}return y(),function(){var e,t=[];for(_(t);e=O();)!1!==e&&(t.push(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,i=/^[^-]+$/,c=/^-(webkit|moz|ms|o|khtml)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return t+"-"};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),t.reactCompat||(e=e.replace(c,s)),e.replace(o,a))}},function(e,t,r){var n=r(84),o=r(54),i=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],""))),i(n(e),null,t)}},function(e,t,r){var n=r(54),o=/<([a-zA-Z]+[0-9]?)/,i=/<head.*>/i,c=/<body.*>/i,a=/<(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)(.*?)\/?>/gi,s=n.isIE(9),l=s||n.isIE(),u=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},p=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var d=new window.DOMParser,m=s?"text/xml":"text/html";u=p=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),s&&(e=e.replace(a,"<$1$2$3/>")),d.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(p)return p(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,s=e.match(o);switch(s&&s[1]&&(t=s[1].toLowerCase()),t){case"html":return r=p(e),i.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)&&i.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,"b",(function(){return O})),r.d(t,"a",(function(){return k}));var n=r(0),o=r(6),i=r(3);const c={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},a={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"},s={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:()=>null,shippingErrorTypes:c,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},l=(e,t)=>{let{type:r}=t;return Object.values(c).includes(r)?r:e};var u=r(103),p=r(228);const d=e=>({onSuccess:Object(p.a)("shipping_rates_success",e),onFail:Object(p.a)("shipping_rates_fail",e),onSelectSuccess:Object(p.a)("shipping_rate_select_success",e),onSelectFail:Object(p.a)("shipping_rate_select_fail",e)});var m=r(231),f=r(35),h=r(91),b=r(117);const{NONE:g,INVALID_ADDRESS:y,UNKNOWN:_}=c,v=Object(n.createContext)(s),O=()=>Object(n.useContext)(v),k=e=>{let{children:t}=e;const{__internalIncrementCalculating:r,__internalDecrementCalculating:s}=Object(o.useDispatch)(i.CHECKOUT_STORE_KEY),{shippingRates:p,isLoadingRates:O,cartErrors:k}=Object(f.a)(),{isSelectingRate:E}=Object(h.a)(),{selectedRates:w}=Object(b.a)(),[j,S]=Object(n.useReducer)(l,g),[C,x]=Object(n.useReducer)(u.b,{}),T=Object(n.useRef)(C),A=Object(n.useMemo)(()=>({onShippingRateSuccess:d(x).onSuccess,onShippingRateFail:d(x).onFail,onShippingRateSelectSuccess:d(x).onSelectSuccess,onShippingRateSelectFail:d(x).onSelectFail}),[x]);Object(n.useEffect)(()=>{T.current=C},[C]),Object(n.useEffect)(()=>{O?r():s()},[O,r,s]),Object(n.useEffect)(()=>{E?r():s()},[r,s,E]),Object(n.useEffect)(()=>{k.length>0&&k.some(e=>!(!e.code||!Object.values(a).includes(e.code)))?S({type:y}):S({type:g})},[k]);const R=Object(n.useMemo)(()=>({isPristine:j===g,isValid:j===g,hasInvalidAddress:j===y,hasError:j===_||j===y}),[j]);Object(n.useEffect)(()=>{O||0!==p.length&&!R.hasError||Object(m.a)(T.current,"shipping_rates_fail",{hasInvalidAddress:R.hasInvalidAddress,hasError:R.hasError})},[p,O,R.hasError,R.hasInvalidAddress]),Object(n.useEffect)(()=>{!O&&p.length>0&&!R.hasError&&Object(m.a)(T.current,"shipping_rates_success",p)},[p,O,R.hasError]),Object(n.useEffect)(()=>{E||(R.hasError?Object(m.a)(T.current,"shipping_rate_select_fail",{hasError:R.hasError,hasInvalidAddress:R.hasInvalidAddress}):Object(m.a)(T.current,"shipping_rate_select_success",w.current))},[w,E,R.hasError,R.hasInvalidAddress]);const N={shippingErrorStatus:R,dispatchErrorStatus:S,shippingErrorTypes:c,...A};return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(v.Provider,{value:N},t))}},function(e,t,r){"use strict";r.d(t,"b",(function(){return b})),r.d(t,"a",(function(){return g}));var n=r(0),o=r(61),i=r(28),c=r.n(i),a=r(6),s=r(3),l=r(103),u=r(228);var p=r(2);let d;!function(e){e.PRISTINE="pristine",e.IDLE="idle",e.COMPLETE="complete",e.BEFORE_PROCESSING="before_processing",e.PROCESSING="processing",e.AFTER_PROCESSING="after_processing"}(d||(d={})),Object(p.getSetting)("checkoutData",{});var m=r(66),f=r(119);const h=Object(n.createContext)({onSubmit:()=>{},onCheckoutAfterProcessingWithSuccess:()=>()=>{},onCheckoutAfterProcessingWithError:()=>()=>{},onCheckoutBeforeProcessing:()=>()=>{},onCheckoutValidationBeforeProcessing:()=>()=>{}}),b=()=>Object(n.useContext)(h),g=e=>{let{children:t,redirectUrl:r}=e;const i=Object(a.useDispatch)(s.CHECKOUT_STORE_KEY),p=Object(a.useSelect)(e=>e(s.CHECKOUT_STORE_KEY).getCheckoutState());r&&r!==p.redirectUrl&&i.__internalSetRedirectUrl(r);const{setValidationErrors:b}=Object(a.useDispatch)(s.VALIDATION_STORE_KEY),{createErrorNotice:g}=Object(a.useDispatch)("core/notices"),{dispatchCheckoutEvent:y}=Object(m.a)(),{checkoutNotices:_,paymentNotices:v,expressPaymentNotices:O}=Object(f.a)(),[k,E]=Object(n.useReducer)(l.b,{}),w=Object(n.useRef)(k),{onCheckoutAfterProcessingWithSuccess:j,onCheckoutAfterProcessingWithError:S,onCheckoutValidationBeforeProcessing:C}=(e=>Object(n.useMemo)(()=>({onCheckoutAfterProcessingWithSuccess:Object(u.a)("checkout_after_processing_with_success",e),onCheckoutAfterProcessingWithError:Object(u.a)("checkout_after_processing_with_error",e),onCheckoutValidationBeforeProcessing:Object(u.a)("checkout_validation_before_processing",e)}),[e]))(E);Object(n.useEffect)(()=>{w.current=k},[k]);const x=Object(n.useMemo)(()=>function(){return c()("onCheckoutBeforeProcessing",{alternative:"onCheckoutValidationBeforeProcessing",plugin:"WooCommerce Blocks"}),C(...arguments)},[C]);Object(n.useEffect)(()=>{p.status===d.BEFORE_PROCESSING&&i.__internalEmitValidateEvent({observers:w.current,setValidationErrors:b})},[p.status,b,g,i]);const T=Object(o.a)(p.status),A=Object(o.a)(p.hasError);Object(n.useEffect)(()=>{p.status===T&&p.hasError===A||p.status===d.AFTER_PROCESSING&&i.__internalEmitAfterProcessingEvents({observers:w.current,notices:{checkoutNotices:_,paymentNotices:v,expressPaymentNotices:O}})},[p.status,p.hasError,p.redirectUrl,p.orderId,p.customerId,p.orderNotes,p.paymentResult,T,A,g,_,O,v,i]);const R={onSubmit:Object(n.useCallback)(()=>{y("submit"),i.__internalSetBeforeProcessing()},[y,i]),onCheckoutBeforeProcessing:x,onCheckoutValidationBeforeProcessing:C,onCheckoutAfterProcessingWithSuccess:j,onCheckoutAfterProcessingWithError:S};return Object(n.createElement)(h.Provider,{value:R},t)}},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(72);const i=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)(i),a=e=>{let{children:t}=e;const r=Object(o.a)();return Object(n.createElement)(i.Provider,{value:r},t)}},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 s}));const n=window.CustomEvent||null,o=(e,t)=>{let{bubbles:r=!1,cancelable:o=!1,element:i,detail:c={}}=t;if(!n)return;i||(i=document.body);const a=new n(e,{bubbles:r,cancelable:o,detail:c});i.dispatchEvent(a)};let i;const c=()=>{i&&clearTimeout(i),i=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}})},s=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 i=()=>{o(t,{bubbles:r,cancelable:n})};return jQuery(document).on(e,i),()=>jQuery(document).off(e,i)}},function(e,t,r){"use strict";var n=r(0),o=r(14);const i=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=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(6),o=r(0),i=r(3),c=r(73),a=r(66);const s=()=>{const e=Object(c.a)(),{dispatchCheckoutEvent:t}=Object(a.a)(),{selectShippingRate:r}=Object(n.useDispatch)(i.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(i.CART_STORE_KEY).isShippingRateBeingSelected(),[])}}},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";var n=r(0),o=r(5),i=r(4),c=r.n(i),a=r(1),s=r(23),l=r(90),u=r(43);function p(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:i=r,onRemove:d=o.noop,isDismissible:m=!0,actions:f=[],politeness:h=p(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(s.speak)(r,t)},[r,t])}(i,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:i=!1,onClick:a,url:s},l)=>{let p=o;return"primary"===o||i||(p=s?"link":"secondary"),void 0===p&&r&&(p="primary"),Object(n.createElement)(u.a,{key:l,href:s,variant:p,onClick:s?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(),d()},showTooltip:!1}))}},function(e,t,r){"use strict";var n=r(11),o=r.n(n),i=r(0);r(121);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(i.useRef)(null);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"with-scroll-to-top__scroll-point",ref:r,"aria-hidden":!0}),Object(i.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){},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));var n=r(5);let o;!function(e){e.ADD_EVENT_CALLBACK="add_event_callback",e.REMOVE_EVENT_CALLBACK="remove_event_callback"}(o||(o={}));const i={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:i,priority:a}=arguments.length>1?arguments[1]:void 0;const s=e.hasOwnProperty(r)?new Map(e[r]):new Map;switch(t){case o.ADD_EVENT_CALLBACK:return s.set(n,{priority:a,callback:i}),{...e,[r]:s};case o.REMOVE_EVENT_CALLBACK:return s.delete(n),{...e,[r]:s}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return c}));var n=r(1),o=r(20);const i=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";r.d(t,"a",(function(){return c}));var n=r(67);const o=["a","b","em","i","strong","p","br"],i=["target","href","rel","name","download"],c=(e,t)=>{const r=(null==t?void 0:t.tags)||o,c=(null==t?void 0:t.attr)||i;return Object(n.sanitize)(e,{ALLOWED_TAGS:r,ALLOWED_ATTR:c})}},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(11)),i=n(r(138)),c=r(7),a=n(c),s=n(r(139)),l=n(r(141)),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 p(){var e=c.useState(!1)[1];return c.useCallback((function(){return e((function(e){return!e}))}),[])}function d(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,i(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 i;return u.und(t[n])?o({},r,((i={})[n]=e[n],i)):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}(),_=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 s(t,e),t}(y),v=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}s(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 k(e){g=e}var E,w=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},j=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){E=e}var C,x=function(){return Date.now()};function T(e){C=e}var A,R,N=function(e){return e.current};function P(e){A=e}var M=Object.freeze({get applyAnimatedValues(){return b},injectApplyAnimatedValues:O,get colorNames(){return g},injectColorNames:k,get requestFrame(){return w},get cancelFrame(){return j},injectFrame:function(e,t){w=e,j=t},get interpolation(){return E},injectStringInterpolator:S,get now(){return x},injectNow:function(e){x=e},get defaultElement(){return C},injectDefaultElement:T,get animatedApi(){return N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return A},injectCreateAnimatedStyle:P,get manualFrameloop(){return R},injectManualFrameloop:function(e){R=e}}),D=function(e){function t(t,r){var n;return(n=e.call(this)||this).update=void 0,n.payload=t.style?o({},t,{style:A(t.style)}):t,n.update=r,n.attach(),n}return s(t,e),t}(v),L=!1,I=new Set,F=function e(){if(!L)return!1;var t=x(),r=I,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}for(var c=i,a=!1,s=0;s<c.configs.length;s++){for(var l=c.configs[s],u=void 0,p=void 0,d=0;d<l.animatedValues.length;d++){var m=l.animatedValues[d];if(!m.done){var f=l.fromValues[d],h=l.toValues[d],b=m.lastPosition,g=h instanceof y,_=Array.isArray(l.initialVelocity)?l.initialVelocity[d]: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+_/(1-.998)*(1-Math.exp(-(1-.998)*(t-m.startTime))),(u=Math.abs(m.lastPosition-b)<.1)&&(h=b);else{p=void 0!==m.lastTime?m.lastTime:t,_=void 0!==m.lastVelocity?m.lastVelocity:l.initialVelocity,t>p+64&&(p=t);for(var v=Math.floor(t-p),O=0;O<v;++O)b+=1*(_+=(-l.tension*(b-h)+-l.friction*_)/l.mass*1/1e3)/1e3;var k=!(!l.clamp||0===l.tension)&&(f<h?b>h:b<h),E=Math.abs(_)<=l.precision,j=0===l.tension||Math.abs(h-b)<=l.precision;u=k||E&&j,m.lastVelocity=_,m.lastTime=t}g&&!l.toValues[d].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||(I.delete(c),c.stop(!0))}return I.size?R?R():w(e):L=!1,L};function U(e,t,r){if("function"==typeof e)return e;if(Array.isArray(e))return U({range:e,output:t,extrapolate:r});if(E&&"string"==typeof e.output[0])return E(e);var n=e,o=n.output,i=n.range||[0,1],c=n.extrapolateLeft||n.extrapolate||"extend",a=n.extrapolateRight||n.extrapolate||"extend",s=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,i);return function(e,t,r,n,o,i,c,a,s){var l=s?s(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=i(l),n===-1/0?l=-l:o===1/0?l+=n:l=l*(o-n)+n,l)}(e,i[t],i[t+1],o[t],o[t+1],s,c,a,n.map)}}var V=function(e){function t(r,n,o,i){var c;return(c=e.call(this)||this).calc=void 0,c.payload=r instanceof _&&!(r instanceof t)?r.getPayload():Array.isArray(r)?r:[r],c.calc=U(n,o,i),c}s(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}(_),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}s(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}s(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}(_),z=0,K=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=i(t,["delay","to"]);if(u.arr(c)||u.fun(c))this.queue.push(o({},a,{delay:n,to:c}));else if(c){var s={};Object.entries(c).forEach((function(e){var t,r=e[0],i=e[1],c=o({to:(t={},t[r]=i,t),delay:f(n,r)},a),l=s[c.delay]&&s[c.delay].to;s[c.delay]=o({},s[c.delay],c,{to:o({},l,c.to)})})),this.queue=Object.values(s)}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,i=e.to,c=void 0===i?{}:i;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,s=i(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()},p=u.arr(s.to)||u.fun(s.to);a?setTimeout((function(){r===t.guid&&(p?t.runAsync(s,l):t.diff(s).start(l))}),a):p?t.runAsync(s,l):t.diff(s).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),this,I.has(this)||I.add(this),L||(L=!0,w(R||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,I.has(this)&&I.delete(this)),this},t.runAsync=function(e,t){var r=this,n=(e.delay,i(e,["delay"])),c=this.local,a=Promise.resolve(void 0);if(u.arr(n.to))for(var s=function(e){var t=e,i=o({},n,h(n.to[t]));u.arr(i.config)&&(i.config=i.config[t]),a=a.then((function(){if(c===r.guid)return new Promise((function(e){return r.diff(i).start(e)}))}))},l=0;l<n.to.length;l++)s(l);else if(u.fun(n.to)){var p,d=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[d]),d++,c===r.guid)return p=new Promise((function(e){return r.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),r.stop(e)})).then((function(){return p}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var r=this.props,n=r.from,i=void 0===n?{}:n,c=r.to,a=void 0===c?{}:c,s=r.config,l=void 0===s?{}:s,p=r.reverse,h=r.attach,b=r.reset,y=r.immediate;if(p){var _=[a,i];i=_[0],a=_[1]}this.merged=o({},i,this.merged,a),this.hasChanged=!1;var v=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,r){var n=r[0],c=r[1],a=e[n]||{},s=u.num(c),p=u.str(c)&&!c.startsWith("#")&&!/\d/.test(c)&&!g[c],h=u.arr(c),_=!s&&!h&&!p,O=u.und(i[n])?c:i[n],k=s||h||p?c:1,w=f(l,n);v&&(k=v.animations[n].parent);var j,S=a.parent,C=a.interpolation,T=m(v?k.getPayload():k),A=c;_&&(A=E({range:[0,1],output:[c,c]})(1));var R,N=C&&C.getValue(),P=!u.und(S)&&a.animatedValues.some((function(e){return!e.done})),M=!u.equ(A,N),D=!u.equ(A,a.previous),L=!u.equ(w,a.config);if(b||D&&M||L){var I;if(s||p)S=C=a.parent||new B(O);else if(h)S=C=a.parent||new H(O);else if(_){var F=a.interpolation&&a.interpolation.calc(a.parent.value);F=void 0===F||b?O:F,a.parent?(S=a.parent).setValue(0,!1):S=new B(0);var U={output:[F,c]};a.interpolation?(C=a.interpolation,a.interpolation.updateConfig(U)):C=S.interpolate(U)}return T=m(v?k.getPayload():k),j=m(S.getPayload()),b&&!_&&S.setValue(O,!1),t.hasChanged=!0,j.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=P?e.lastVelocity:void 0,e.lastTime=P?e.lastTime:void 0,e.startTime=x(),e.done=!1,e.animatedStyles.clear()})),f(y,n)&&S.setValue(_?k:c,!1),o({},e,((I={})[n]=o({},a,{name:n,parent:S,interpolation:C,animatedValues:j,toValues:T,previous:A,config:w,fromValues:m(S.getValue()),immediate:f(y,n),initialVelocity:d(w.velocity,0),clamp:d(w.clamp,!1),precision:d(w.precision,.01),tension:d(w.tension,170),friction:d(w.friction,26),mass:d(w.mass,1),duration:w.duration,easing:d(w.easing,(function(e){return e})),decay:w.decay}),I))}return M?e:(_&&(S.setValue(1,!1),C.updateConfig({output:[A,A]})),S.done=!0,t.hasChanged=!0,o({},e,((R={})[n]=o({},e[n],{previous:A}),R)))}),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}(),Y=function(e,t){var r=c.useRef(!1),n=c.useRef(),o=u.fun(t),i=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 i=new K,c=o?f(t,n,i):t[n];return 0===n&&(r=c.ref),i.update(c),r||i.start(),i})),r]}),[e]),a=i[0],s=i[1];n.current=a,c.useImperativeHandle(s,(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]),s||t.start()}))}}),[e]);c.useEffect((function(){r.current?o||l(t):s||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 p=n.current.map((function(e){return e.getValues()}));return o?[p,l,function(e){return n.current.forEach((function(t){return t.pause(e)}))}]:p},q=0,W=function(e,t){return("function"==typeof t?e.map(t):m(t)).map(String)},$=function(e){var t=e.items,r=e.keys,n=void 0===r?function(e){return e}:r,c=i(e,["items","keys"]);return t=m(void 0!==t?t:null),o({items:t,keys:W(t,n)},c)};function G(e,t){var r=function(){if(o){if(i>=n.length)return"break";c=n[i++]}else{if((i=n.next()).done)return"break";c=i.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),i=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 s(t,e),t}(v),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},Z="[-+]?\\d*\\.?\\d+";function Q(){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"+Q(Z,Z,Z)),te=new RegExp("rgba"+Q(Z,Z,Z,Z)),re=new RegExp("hsl"+Q(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ne=new RegExp("hsla"+Q(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function se(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,i=se(o,n,e+1/3),c=se(o,n,e),a=se(o,n,e-1/3);return Math.round(255*i)<<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 pe(e){return(parseFloat(e)%360+360)%360/360}function de(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function 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|de(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=ie.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(pe(r[1]),me(r[2]),me(r[3])))>>>0:(r=ne.exec(t))?(le(pe(r[1]),me(r[2]),me(r[3]))|de(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},_e=["Webkit","Ms","Moz","O"];function ve(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 _e.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={};P((function(e){return new X(e)})),T("div"),S((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+")"}))}})),k(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=i(t,["style","children","scrollTop","scrollLeft"]),s="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("--"),p=ve(l,r[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,p):e.style[l]=p}for(var d in a){var m=s?d:Oe[d]||(Oe[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(m)&&e.setAttribute(m,a[d])}}),(function(e){return e}));var ke,Ee,we=(ke=function(e){return c.forwardRef((function(t,r){var n=p(),s=c.useRef(!0),l=c.useRef(null),d=c.useRef(null),m=c.useCallback((function(e){var t=l.current;l.current=new D(e,(function(){var e=!1;d.current&&(e=b.fn(d.current,l.current.getAnimatedValue())),d.current&&!1!==e||n()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){s.current=!1,l.current&&l.current.detach()}}),[]),c.useImperativeHandle(r,(function(){return N(d,s,n)})),m(t);var f,h=l.current.getValue(),g=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),y=(f=e,!u.fun(f)||f.prototype instanceof a.Component?function(e){return d.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===(Ee=!1)&&(Ee=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var r=Ee?t[0].toLowerCase()+t.substring(1):t;return e[r]=ke(r),e}),ke)}),je=we(["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=we,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=je,t.a=je,t.interpolate=function(e,t,r){return e&&new V(e,t,r)},t.Globals=M,t.useSpring=function(e){var t=u.fun(e),r=Y(1,t?e:[e]),n=r[0],o=r[1],i=r[2];return t?[n[0],o,i]:n},t.useTrail=function(e,t){var r=c.useRef(!1),n=u.fun(t),i=f(t),a=c.useRef(),s=Y(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},i,{config:f(i.config,e),attach:e>0&&function(){return a.current[e-1]}})})),l=s[0],p=s[1],d=s[2],m=c.useMemo((function(){return function(e){return p((function(t,r){e.reverse;var n=e.reverse?t+1:t-1,c=a.current[n];return o({},e,{config:f(e.config||i.config,t),attach:c&&function(){return c}})}))}}),[e,i.reverse]);return c.useEffect((function(){r.current&&!n&&m(t)})),c.useEffect((function(){r.current=!0}),[]),n?[l,m,d]:l},t.useTransition=function(e,t,r){var n=o({items:e,keys:t||function(e){return e}},r),a=$(n),s=a.lazy,l=void 0!==s&&s,u=(a.unique,a.reset),d=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,_=i(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),v=p(),O=c.useRef(!1),k=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!n.ref,instances:!O.current&&new Map,forceUpdate:v});return c.useImperativeHandle(n.ref,(function(){return{start:function(){return Promise.all(Array.from(k.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(k.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(k.current.instances).map((function(e){return e[1]}))}}})),k.current=function(e,t){for(var r=e.first,n=e.prevProps,c=i(e,["first","prevProps"]),a=$(t),s=a.items,l=a.keys,u=a.initial,p=a.from,d=a.enter,m=a.leave,h=a.update,b=a.trail,g=void 0===b?0:b,y=a.unique,_=a.config,v=a.order,O=void 0===v?["enter","leave","update"]:v,k=$(n),E=k.keys,w=k.items,j=o({},c.current),S=[].concat(c.deleted),C=Object.keys(j),x=new Set(C),T=new Set(l),A=l.filter((function(e){return!x.has(e)})),R=c.transitions.filter((function(e){return!e.destroyed&&!T.has(e.originalKey)})).map((function(e){return e.originalKey})),N=l.filter((function(e){return x.has(e)})),P=-g;O.length;)switch(O.shift()){case"enter":A.forEach((function(e,t){y&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var n=l.indexOf(e),o=s[n],i=r&&void 0!==u?"initial":"enter";j[e]={slot:i,originalKey:e,key:y?String(e):q++,item:o,trail:P+=g,config:f(_,o,i),from:f(r&&void 0!==u?u||{}:p,o),to:f(d,o)}}));break;case"leave":R.forEach((function(e){var t=E.indexOf(e),r=w[t];S.unshift(o({},j[e],{slot:"leave",destroyed:!0,left:E[Math.max(0,t-1)],right:E[Math.min(E.length,t+1)],trail:P+=g,config:f(_,r,"leave"),to:f(m,r)})),delete j[e]}));break;case"update":N.forEach((function(e){var t=l.indexOf(e),r=s[t];j[e]=o({},j[e],{item:r,slot:"update",trail:P+=g,config:f(_,r,"update"),to:f(h,r)})}))}var M=l.map((function(e){return j[e]}));return S.forEach((function(e){var t,r=e.left,n=(e.right,i(e,["left","right"]));-1!==(t=M.findIndex((function(e){return e.originalKey===r})))&&(t+=1),t=Math.max(0,t),M=[].concat(M.slice(0,t),[n],M.slice(t))})),o({},c,{changed:A.length||R.length||N.length,first:r&&0===A.length,transitions:M,current:j,deleted:S,prevProps:t})}(k.current,n),k.current.changed&&k.current.transitions.forEach((function(e){var t=e.slot,r=e.from,n=e.to,i=e.config,c=e.trail,a=e.key,s=e.item;k.current.instances.has(a)||k.current.instances.set(a,new K);var u=k.current.instances.get(a),p=o({},_,{to:n,from:r,config:i,ref:y,onRest:function(r){k.current.mounted&&(e.destroyed&&(y||l||G(k,a),m&&m(s)),!Array.from(k.current.instances).some((function(e){return!e[1].idle}))&&(y||l)&&k.current.deleted.length>0&&G(k),b&&b(s,t,r))},onStart:g&&function(){return g(s,t)},onFrame:h&&function(e){return h(s,t,e)},delay:c,reset:d&&"enter"===t});u.update(p),k.current.paused||u.start()})),c.useEffect((function(){return k.current.mounted=O.current=!0,function(){k.current.mounted=O.current=!1,Array.from(k.current.instances).map((function(e){return e[1].destroy()})),k.current.instances.clear()}}),[]),k.current.transitions.map((function(e){var t=e.item,r=e.slot,n=e.key;return{item:t,key:n,state:r,props:k.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 i=e.current;if(i){var c=i.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=Y},,,,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,"a",(function(){return b}));var n=r(3),o=r(6),i=r(0),c=r(12),a=r.n(c),s=r(18),l=r(1),u=r(44),p=r(2);const d=[{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(p.getSetting)("displayCartPricesIncludingTax",!1),f={coupons:[],shipping_rates:Object(p.getSetting)("shippingMethodsExist",!1)?d:[],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:{}}],cross_sells:[{id:1,name:Object(l.__)("Polo","woo-gutenberg-products-block"),permalink:"https://example.org",prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"24000":"20000",regular_price:m?"24000":"20000",sale_price:m?"12000":"10000",raw_prices:{precision:6,price:m?"24000000":"20000000",regular_price:m?"24000000":"20000000",sale_price:m?"12000000":"10000000"}},images:[{id:17,src:u.l+"previews/polo.jpg",thumbnail:u.l+"previews/polo.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:4.5},{id:2,name:Object(l.__)("Long Sleeve Tee","woo-gutenberg-products-block"),permalink:"https://example.org",prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"30000":"25000",regular_price:m?"30000":"25000",sale_price:m?"30000":"25000",raw_prices:{precision:6,price:m?"30000000":"25000000",regular_price:m?"30000000":"25000000",sale_price:m?"30000000":"25000000"}},images:[{id:17,src:u.l+"previews/long-sleeve-tee.jpg",thumbnail:u.l+"previews/long-sleeve-tee.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:4},{id:3,name:Object(l.__)("Hoodie with Zipper","woo-gutenberg-products-block"),permalink:"https://example.org",on_sale:!0,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"15000":"12500",regular_price:m?"30000":"25000",sale_price:m?"15000":"12500",raw_prices:{precision:6,price:m?"15000000":"12500000",regular_price:m?"30000000":"25000000",sale_price:m?"15000000":"12500000"}},images:[{id:17,src:u.l+"previews/hoodie-with-zipper.jpg",thumbnail:u.l+"previews/hoodie-with-zipper.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:1},{id:4,name:Object(l.__)("Hoodie with Logo","woo-gutenberg-products-block"),permalink:"https://example.org",on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"4500":"4250",regular_price:m?"4500":"4250",sale_price:m?"4500":"4250",raw_prices:{precision:6,price:m?"45000000":"42500000",regular_price:m?"45000000":"42500000",sale_price:m?"45000000":"42500000"}},images:[{id:17,src:u.l+"previews/hoodie-with-logo.jpg",thumbnail:u.l+"previews/hoodie-with-logo.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:5},{id:5,name:Object(l.__)("Hoodie with Pocket","woo-gutenberg-products-block"),permalink:"https://example.org",on_sale:!0,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"3500":"3250",regular_price:m?"4500":"4250",sale_price:m?"3500":"3250",raw_prices:{precision:6,price:m?"35000000":"32500000",regular_price:m?"45000000":"42500000",sale_price:m?"35000000":"32500000"}},images:[{id:17,src:u.l+"previews/hoodie-with-pocket.jpg",thumbnail:u.l+"previews/hoodie-with-pocket.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:3.75},{id:6,name:Object(l.__)("T-Shirt","woo-gutenberg-products-block"),permalink:"https://example.org",on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:m?"1800":"1500",regular_price:m?"1800":"1500",sale_price:m?"1800":"1500",raw_prices:{precision:6,price:m?"1800000":"1500000",regular_price:m?"1800000":"1500000",sale_price:m?"1800000":"1500000"}},images:[{id:17,src:u.l+"previews/tshirt.jpg",thumbnail:u.l+"previews/tshirt.jpg",srcset:"",sizes:"",name:"",alt:""}],average_rating:3}],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(p.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(91);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)(),p=Object(i.useRef)({});return Object(i.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(s.a)(t)&&!a()(p.current,t)&&(p.current=t)},[e]),{isSelectingRate:l,selectedRates:p.current,selectShippingRate:u,shippingRates:e,needsShipping:t,hasCalculatedShipping:r,isLoadingRates:c}}},,function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(6),o=r(41);const i=()=>({checkoutNotices:Object(n.useSelect)(e=>e("core/notices").getNotices("wc/checkout"),[]),expressPaymentNotices:Object(n.useSelect)(e=>e("core/notices").getNotices(o.d.EXPRESS_PAYMENTS),[o.d.EXPRESS_PAYMENTS]),paymentNotices:Object(n.useSelect)(e=>e("core/notices").getNotices(o.d.PAYMENTS),[o.d.PAYMENTS])})},function(e,t,r){"use strict";r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return p}));var n=r(0),o=r(6),i=r(3),c=r(103),a=r(228);var s=r(72);const l=Object(n.createContext)({onPaymentProcessing:()=>()=>()=>{}}),u=()=>Object(n.useContext)(l),p=e=>{let{children:t}=e;const{isProcessing:r,isIdle:u,isCalculating:p,hasError:d}=Object(o.useSelect)(e=>{const t=e(i.CHECKOUT_STORE_KEY);return{isProcessing:t.isProcessing(),isIdle:t.isIdle(),hasError:t.hasError(),isCalculating:t.isCalculating()}}),{currentStatus:m}=Object(o.useSelect)(e=>({currentStatus:e(i.PAYMENT_STORE_KEY).getCurrentStatus()})),{createErrorNotice:f,removeNotice:h}=Object(o.useDispatch)("core/notices"),{setValidationErrors:b}=Object(o.useDispatch)(i.VALIDATION_STORE_KEY),[g,y]=Object(n.useReducer)(c.b,{}),{onPaymentProcessing:_}=(e=>Object(n.useMemo)(()=>({onPaymentProcessing:Object(a.a)("payment_processing",e)}),[e]))(y),v=Object(n.useRef)(g);Object(n.useEffect)(()=>{v.current=g},[g]);const{__internalSetPaymentStatus:O,__internalSetPaymentMethodData:k,__internalEmitPaymentProcessingEvent:E}=Object(o.useDispatch)(i.PAYMENT_STORE_KEY),{setBillingAddress:w,setShippingAddress:j}=Object(s.a)();Object(n.useEffect)(()=>{!r||d||p||m.isFinished||O({isProcessing:!0})},[r,d,p,m.isFinished,O]),Object(n.useEffect)(()=>{u&&!m.isSuccessful&&O({isPristine:!0})},[u,m.isSuccessful,O]),Object(n.useEffect)(()=>{d&&m.isSuccessful&&O({isPristine:!0})},[d,m.isSuccessful,O]),Object(n.useEffect)(()=>{m.isProcessing&&E(v.current,b)},[m.isProcessing,b,O,h,f,w,k,j,E]);const S={onPaymentProcessing:_};return Object(n.createElement)(l.Provider,{value:S},t)}},function(e,t){},,,function(e,t,r){"use strict";(function(e){var n=r(0),o=r(5),i=r(4),c=r.n(i),a=r(23),s=r(1),l=(r(36),r(43));t.a=Object(n.forwardRef)((function({className:t,children:r,spokenMessage:i=r,politeness:u="polite",actions:p=[],onRemove:d=o.noop,icon:m=null,explicitDismiss:f=!1,onDismiss:h=o.noop},b){function g(e){e&&e.preventDefault&&e.preventDefault(),h(),d()}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])}(i,u),Object(n.useEffect)(()=>{const e=setTimeout(()=>{f||(h(),d())},1e4);return()=>clearTimeout(e)},[h,d]);const y=c()(t,"components-snackbar",{"components-snackbar-explicit-dismiss":!!f});p&&p.length>1&&(void 0!==e&&e.env,p=[p[0]]);const _=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(s.__)("Dismiss this notice")},Object(n.createElement)("div",{className:_},m&&Object(n.createElement)("div",{className:"components-snackbar__icon"},m),r,p.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(),d(),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(65))},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";r.d(t,"a",(function(){return i}));var n=r(56),o=(r(13),r(2));const i=e=>{const t=Object.keys(o.defaultAddressFields),r=Object(n.a)(t,{},e.country),i=Object.assign({},e);return r.forEach(t=>{let{key:r="",hidden:n=!1}=t;n&&((e,t)=>e in t)(r,e)&&(i[r]="")}),i}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(0),o=r(37),i=r(2),c=r(57),a=r.n(c),s=r(9),l=r(15);const u=(e,t)=>e&&t[e]?t[e]:null,p=e=>{let{block:t,blockMap:r,blockWrapper:o,children:c,depth:d=1}=e;return c&&0!==c.length?Array.from(c).map((e,c)=>{const{blockName:m="",...f}={key:`${t}_${d}_${c}`,...e instanceof HTMLElement?e.dataset:{},className:e instanceof Element?null==e?void 0:e.className:""},h=u(m,r);if(!h){const i=a()(e instanceof Element&&(null==e?void 0:e.outerHTML)||(null==e?void 0:e.textContent)||"");if("string"==typeof i&&i)return i;if(!Object(n.isValidElement)(i))return null;const c=e.childNodes.length?p({block:t,blockMap:r,children:e.childNodes,depth:d+1,blockWrapper:o}):void 0;return c?Object(n.cloneElement)(i,f,c):Object(n.cloneElement)(i,f)}const b=o||n.Fragment;return Object(n.createElement)(n.Suspense,{key:`${t}_${d}_${c}_suspense`,fallback:Object(n.createElement)("div",{className:"wc-block-placeholder"})},Object(n.createElement)(l.a,{text:"Unexpected error in: "+m,showErrorBlock:i.CURRENT_USER_IS_ADMIN},Object(n.createElement)(b,null,Object(n.createElement)(h,f,p({block:t,blockMap:r,children:e.childNodes,depth:d+1,blockWrapper:o}),((e,t,r,o)=>{if(!Object(s.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(s.getRegisteredBlocks)(e).filter(e=>{let{blockName:t,force:r}=e;return!0===r&&!c.includes(t)}),p=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:i.CURRENT_USER_IS_ADMIN},Object(n.createElement)(p,null,Object(n.createElement)(a,{key:`${o}_forced_${r}`}))):null}))})(m,r,e.childNodes,o)))))}):null},d=e=>{let{Block:t,selector:r,blockName:n,getProps:i=(()=>({})),blockMap:c,blockWrapper:a}=e;Object(o.a)({Block:t,selector:r,getProps:(e,t)=>{const r=p({block:n,blockMap:c,children:e.children||[],blockWrapper:a});return{...i(e,t),children:r}}})}},function(e,t){e.exports=window.wc.wcBlocksSharedHocs},,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var n=r(11),o=r.n(n),i=r(0),c=r(4),a=r.n(c),s=r(98),l=r(105),u=r(6),p=r(3);r(102);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""},m=e=>{let{className:t,context:r="default",additionalNotices:n=[]}=e;const c=Object(u.useSelect)(e=>e(p.PAYMENT_STORE_KEY).isExpressPaymentMethodActive()),{notices:m}=Object(u.useSelect)(e=>({notices:e("core/notices").getNotices(r)})),{removeNotice:f}=Object(u.useDispatch)("core/notices"),h=m.filter(e=>"snackbar"!==e.type).concat(n);if(!h.length)return null;const b=a()(t,"wc-block-components-notices");return c?null:Object(i.createElement)("div",{className:b},h.map(e=>Object(i.createElement)(s.a,o()({key:"store-notice-"+e.id},e,{className:a()("wc-block-components-notices__notice",d(e)),onRemove:()=>{e.isDismissible&&f(e.id,r)}}),Object(l.a)(e.content))))}},,function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[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(140);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 E}));var n=r(0),o=r(125),i=r(2),c=r(15),a=r(120),s=r(86),l=r(88),u=r(87),p=r(1),d=r(31),m=r.n(d),f=r(129),h=r(104),b=r(6),g=r(3),y=r(16);const _=(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},v=e=>{const{__internalSetCustomerId:t}=Object(b.dispatch)(g.CHECKOUT_STORE_KEY);m.a.setNonce&&"function"==typeof m.a.setNonce&&m.a.setNonce(e),null!=e&&e.get("User-ID")&&t(parseInt(e.get("User-ID")||"0",10))};var O=r(35),k=()=>{const{onCheckoutValidationBeforeProcessing:e}=Object(u.b)(),{hasError:t,redirectUrl:r,isProcessing:o,isBeforeProcessing:i,isComplete:c,orderNotes:a,shouldCreateAccount:d,extensionData:k}=Object(b.useSelect)(e=>{const t=e(g.CHECKOUT_STORE_KEY);return{...t.getCheckoutState(),isProcessing:t.isProcessing(),isBeforeProcessing:t.isBeforeProcessing(),isComplete:t.isComplete()}}),{__internalSetHasError:E,__internalProcessCheckoutResponse:w}=Object(b.useDispatch)(g.CHECKOUT_STORE_KEY),j=Object(b.useSelect)(e=>e(g.VALIDATION_STORE_KEY).hasValidationErrors),{shippingErrorStatus:S}=Object(s.b)(),{billingAddress:C,shippingAddress:x}=Object(l.b)(),{cartNeedsPayment:T,cartNeedsShipping:A,receiveCart:R}=Object(O.a)(),{createErrorNotice:N,removeNotice:P}=Object(b.useDispatch)("core/notices"),{activePaymentMethod:M,paymentMethodData:D,isExpressPaymentMethodActive:L,currentPaymentStatus:I,shouldSavePayment:F}=Object(b.useSelect)(e=>{const t=e(g.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),paymentMethodData:t.getPaymentMethodData(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive(),currentPaymentStatus:t.getCurrentStatus(),shouldSavePayment:t.shouldSavePaymentMethod()}},[]),U=Object(y.getPaymentMethods)(),V=Object(y.getExpressPaymentMethods)(),B=Object(n.useRef)(C),H=Object(n.useRef)(x),z=Object(n.useRef)(r),[K,Y]=Object(n.useState)(!1),q=Object(n.useMemo)(()=>{var e;const t={...V,...U};return null==t||null===(e=t[M])||void 0===e?void 0:e.paymentMethodId},[M,V,U]),W=j()&&!L||I.hasError||S.hasError,$=!t&&!W&&(I.isSuccessful||!T)&&o;Object(n.useEffect)(()=>{W===t||!o&&!i||L||E(W)},[W,t,o,i,L,E]),Object(n.useEffect)(()=>{B.current=C,H.current=x,z.current=r},[C,x,r]);const G=Object(n.useCallback)(()=>!j()&&(I.hasError?{errorMessage:Object(p.__)("There was a problem with your payment option.","woo-gutenberg-products-block")}:!S.hasError||{errorMessage:Object(p.__)("There was a problem with your shipping option.","woo-gutenberg-products-block")}),[j,I.hasError,S.hasError]);Object(n.useEffect)(()=>{let t;return L||(t=e(G,0)),()=>{L||t()}},[e,G,L]),Object(n.useEffect)(()=>{z.current&&(window.location.href=z.current)},[c]);const X=Object(n.useCallback)(async()=>{if(K)return;Y(!0),P("checkout");const e=T?{payment_method:q,payment_data:_(D,F,M)}:{},t={billing_address:Object(f.a)(B.current),customer_note:a,create_account:d,...e,extensions:{...k}};A&&(t.shipping_address=Object(f.a)(H.current)),m()({path:"/wc/store/v1/checkout",method:"POST",data:t,cache:"no-store",parse:!1}).then(e=>{if(v(e.headers),!e.ok)throw new Error(e);return e.json()}).then(e=>{w(e),Y(!1)}).catch(e=>{try{null!=e&&e.headers&&v(e.headers),e.json().then(e=>{var t,r,n;null!==(t=e.data)&&void 0!==t&&t.cart&&R(e.data.cart),N(Object(h.b)(e),{id:"checkout",context:"wc/checkout",__unstableHTML:!0}),null==e||null===(r=e.additional_errors)||void 0===r||null===(n=r.forEach)||void 0===n||n.call(r,e=>{N(e.message,{id:e.error_code,context:"wc/checkout",__unstableHTML:!0})}),w(e)})}catch{var t;N(Object(p.sprintf)(// Translators: %s Error text.
4
  Object(p.__)("%s Please try placing your order again.","woo-gutenberg-products-block"),null!==(t=null==e?void 0:e.message)&&void 0!==t?t:Object(p.__)("Something went wrong. Please contact us for assistance.","woo-gutenberg-products-block")),{id:"checkout",context:"wc/checkout",__unstableHTML:!0})}E(!0),Y(!1)})},[K,P,T,q,D,F,M,a,d,k,A,N,R,E,w]);return Object(n.useEffect)(()=>{$&&!K&&X()},[X,$,K]),null};const E=e=>{let{children:t,redirectUrl:r}=e;return Object(n.createElement)(u.a,{redirectUrl:r},Object(n.createElement)(l.a,null,Object(n.createElement)(s.a,null,Object(n.createElement)(a.a,null,t,Object(n.createElement)(c.a,{renderError:i.CURRENT_USER_IS_ADMIN?null:()=>null},Object(n.createElement)(o.PluginArea,{scope:"woocommerce-checkout"})),Object(n.createElement)(k,null)))))}},,,,,,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));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}),i=(Object(n.createContext)({addressFieldControls:()=>null,accountControls:()=>null}),()=>Object(n.useContext)(o))},,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));var n=r(6);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)},i=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"),i=r.filter(t=>t.status===e);i.forEach(e=>o(e.id,t))}},,,,,,,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 that customers agree to your Terms & 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,"a",(function(){return o}));var n=r(103);const o=(e,t)=>function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;const i=n.a.addEventCallback(e,r,o);return t(i),()=>{t(n.a.removeEventCallback(e,i.id))}}},function(e,t){},,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));var n=r(41);const o=async(e,t,r)=>{const o=Object(n.a)(e,t),i=[];for(const e of o)try{const t=await Promise.resolve(e.callback(r));"object"==typeof t&&i.push(t)}catch(e){console.error(e)}return!i.length||i},i=async(e,t,r)=>{const o=[],i=Object(n.a)(e,t);for(const e of i)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(n.b)(t)||Object(n.c)(t))return o.push(t),o;o.push(t)}catch(e){return console.error(e),o.push({type:"error"}),o}return o}},,,,,,,,,,,,,,,,,,,,,,function(e,t,r){e.exports=r(264)},function(e,t){},function(e,t){},function(e,t){},,,,,,,,function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(162),i=r(35),c=r(277),a=r(278),s=r(16),l=r(130),u=r(44),p=r(9),d={CHECKOUT_ACTIONS:r(184),CHECKOUT_BILLING_ADDRESS:r(185),CHECKOUT_CONTACT_INFORMATION:r(186),CHECKOUT_EXPRESS_PAYMENT:r(187),CHECKOUT_FIELDS:r(188),CHECKOUT_ORDER_NOTE:r(189),CHECKOUT_PAYMENT:r(190),CHECKOUT_SHIPPING_ADDRESS:r(191),CHECKOUT_SHIPPING_METHODS:r(192),CHECKOUT_TERMS:r(193),CHECKOUT_TOTALS:r(194),CHECKOUT_ORDER_SUMMARY:r(195),CHECKOUT_ORDER_SUMMARY_SUBTOTAL:r(196),CHECKOUT_ORDER_SUMMARY_FEE:r(197),CHECKOUT_ORDER_SUMMARY_DISCOUNT:r(198),CHECKOUT_ORDER_SUMMARY_SHIPPING:r(199),CHECKOUT_ORDER_SUMMARY_COUPON_FORM:r(200),CHECKOUT_ORDER_SUMMARY_TAXES:r(201),CHECKOUT_ORDER_SUMMARY_CART_ITEMS:r(202)};r.p=u.k,Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_FIELDS,component:Object(n.lazy)(()=>r.e(40).then(r.bind(null,452)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_EXPRESS_PAYMENT,component:Object(n.lazy)(()=>Promise.all([r.e(5),r.e(39)]).then(r.bind(null,491)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_CONTACT_INFORMATION,component:Object(n.lazy)(()=>r.e(38).then(r.bind(null,471)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_SHIPPING_ADDRESS,component:Object(n.lazy)(()=>Promise.all([r.e(1),r.e(2),r.e(8),r.e(51)]).then(r.bind(null,478)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_BILLING_ADDRESS,component:Object(n.lazy)(()=>Promise.all([r.e(1),r.e(2),r.e(8),r.e(37)]).then(r.bind(null,479)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_SHIPPING_METHODS,component:Object(n.lazy)(()=>Promise.all([r.e(0),r.e(52)]).then(r.bind(null,469)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_PAYMENT,component:Object(n.lazy)(()=>r.e(50).then(r.bind(null,466)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_NOTE,component:Object(n.lazy)(()=>r.e(41).then(r.bind(null,480)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_TERMS,component:Object(n.lazy)(()=>r.e(53).then(r.bind(null,492)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ACTIONS,component:Object(n.lazy)(()=>r.e(36).then(r.bind(null,468)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_TOTALS,component:Object(n.lazy)(()=>r.e(54).then(r.bind(null,453)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY,component:Object(n.lazy)(()=>Promise.all([r.e(0),r.e(42)]).then(r.bind(null,493)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_CART_ITEMS,component:Object(n.lazy)(()=>Promise.all([r.e(0),r.e(3),r.e(43)]).then(r.bind(null,472)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_SUBTOTAL,component:Object(n.lazy)(()=>r.e(48).then(r.bind(null,494)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_FEE,component:Object(n.lazy)(()=>r.e(46).then(r.bind(null,495)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_DISCOUNT,component:Object(n.lazy)(()=>r.e(45).then(r.bind(null,496)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_COUPON_FORM,component:Object(n.lazy)(()=>r.e(44).then(r.bind(null,497)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_SHIPPING,component:Object(n.lazy)(()=>Promise.all([r.e(0),r.e(1),r.e(2),r.e(7),r.e(47)]).then(r.bind(null,498)))}),Object(p.registerCheckoutBlock)({metadata:d.CHECKOUT_ORDER_SUMMARY_TAXES,component:Object(n.lazy)(()=>r.e(49).then(r.bind(null,481)))});var m=r(1),f=r(4),h=r.n(f),b=r(272),g=r(142),y=r(136),_=r(15),v=r(283),O=r(2),k=r(99),E=r(6),w=r(3),j=(r(254),r(14)),S=Object(n.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(n.createElement)("path",{d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"})),C=r(110);r(255);var x=()=>Object(n.createElement)("div",{className:"wc-block-checkout-empty"},Object(n.createElement)(C.a,{className:"wc-block-checkout-empty__image",icon:S,size:100}),Object(n.createElement)("strong",{className:"wc-block-checkout-empty__title"},Object(m.__)("Your cart is currently empty!","woo-gutenberg-products-block")),Object(n.createElement)("p",{className:"wc-block-checkout-empty__description"},Object(m.__)("Checkout is not available whilst your cart is empty—please take a look through our store and come back when you're ready to place an order.","woo-gutenberg-products-block")),u.i&&Object(n.createElement)("span",{className:"wp-block-button"},Object(n.createElement)("a",{href:u.i,className:"wp-block-button__link"},Object(m.__)("Browse store","woo-gutenberg-products-block")))),T=Object(n.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M22.7 22.7l-20-20L2 2l-.7-.7L0 2.5 4.4 7l2.2 4.7L5.2 14A2 2 0 007 17h7.5l1.3 1.4a2 2 0 102.8 2.8l2.9 2.8 1.2-1.3zM7.4 15a.2.2 0 01-.2-.3l.9-1.7h2.4l2 2h-5zm8.2-2a2 2 0 001.7-1l3.6-6.5.1-.5c0-.6-.4-1-1-1H6.5l9 9zM7 18a2 2 0 100 4 2 2 0 000-4z"}),Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"})),A=r(20);r(256);const R=["woocommerce_rest_product_out_of_stock","woocommerce_rest_product_not_purchasable","woocommerce_rest_product_partially_out_of_stock","woocommerce_rest_product_too_many_in_cart","woocommerce_rest_cart_item_error"],N=Object(O.getSetting)("checkoutData",{}),P=e=>{let{errorData:t}=e,r=Object(m.__)("Checkout error","woo-gutenberg-products-block");return R.includes(t.code)&&(r=Object(m.__)("There is a problem with your cart","woo-gutenberg-products-block")),Object(n.createElement)("strong",{className:"wc-block-checkout-error_title"},r)},M=e=>{let{errorData:t}=e,r=t.message;return R.includes(t.code)&&(r=r+" "+Object(m.__)("Please edit your cart and try again.","woo-gutenberg-products-block")),Object(n.createElement)("p",{className:"wc-block-checkout-error__description"},r)},D=e=>{let{errorData:t}=e,r=Object(m.__)("Retry","woo-gutenberg-products-block"),o="javascript:window.location.reload(true)";return R.includes(t.code)&&(r=Object(m.__)("Edit your cart","woo-gutenberg-products-block"),o=u.c),Object(n.createElement)("span",{className:"wp-block-button"},Object(n.createElement)("a",{href:o,className:"wp-block-button__link"},r))};var L=()=>{const e={code:"",message:"",...N||{}},t={code:e.code||"unknown",message:Object(A.decodeEntities)(e.message)||Object(m.__)("There was a problem checking out. Please try again. If the problem persists, please get in touch with us so we can assist.","woo-gutenberg-products-block")};return Object(n.createElement)("div",{className:"wc-block-checkout-error"},Object(n.createElement)(C.a,{className:"wc-block-checkout-error__image",icon:T,size:100}),Object(n.createElement)(P,{errorData:t}),Object(n.createElement)(M,{errorData:t}),Object(n.createElement)(D,{errorData:t}))};const I=`${u.e}?redirect_to=${encodeURIComponent(window.location.href)}`,F=()=>{window.location.reload(!0)};var U=r(151),V=r(155);const B=()=>Object(n.createElement)(n.Fragment,null,Object(m.__)("You must be logged in to checkout. ","woo-gutenberg-products-block"),Object(n.createElement)("a",{href:I},Object(m.__)("Click here to log in.","woo-gutenberg-products-block"))),H=e=>{let{attributes:t,children:r}=e;const{hasOrder:o,customerId:c}=Object(E.useSelect)(e=>{const t=e(w.CHECKOUT_STORE_KEY);return{hasOrder:t.hasOrder(),customerId:t.getCustomerId()}}),{cartItems:a,cartIsLoading:s}=Object(i.a)(),{allowCreateAccount:l,showCompanyField:u,requireCompanyField:p,showApartmentField:d,showPhoneField:m,requirePhoneField:f}=t;return s||0!==a.length?o?((e=>!e&&!Object(O.getSetting)("checkoutAllowsGuest",!1))(c)&&l&&Object(O.getSetting)("checkoutAllowsSignup",!1)&&Object(n.createElement)(B,null),Object(n.createElement)(U.a.Provider,{value:{allowCreateAccount:l,showCompanyField:u,requireCompanyField:p,showApartmentField:d,showPhoneField:m,requirePhoneField:f}},r)):Object(n.createElement)(L,null):Object(n.createElement)(x,null)},z=e=>{let{scrollToTop:t}=e;const{hasError:r,isIdle:o}=Object(E.useSelect)(e=>{const t=e(w.CHECKOUT_STORE_KEY);return{isIdle:t.isIdle(),hasError:t.hasError()}}),{hasValidationErrors:i}=Object(E.useSelect)(e=>({hasValidationErrors:e(w.VALIDATION_STORE_KEY).hasValidationErrors()})),{showAllValidationErrors:c}=Object(E.useDispatch)(w.VALIDATION_STORE_KEY),a=o&&r&&(i||Object(V.a)("wc/checkout","default"));return Object(n.useEffect)(()=>{let e;return a&&(c(),e=window.setTimeout(()=>{t({focusableSelector:"input:invalid, .has-error input"})},50)),()=>{clearTimeout(e)}},[a,t,c]),null};var K=Object(k.a)(e=>{let{attributes:t,children:r,scrollToTop:o}=e;return Object(n.createElement)(_.a,{header:Object(m.__)("Something went wrong. Please contact us for assistance.","woo-gutenberg-products-block"),text:Object(n.createInterpolateElement)(Object(m.__)("The checkout has encountered an unexpected error. <button>Try reloading the page</button>. If the error persists, please get in touch with us so we can assist.","woo-gutenberg-products-block"),{button:Object(n.createElement)("button",{className:"wc-block-link-button",onClick:F})}),showErrorMessage:O.CURRENT_USER_IS_ADMIN},Object(n.createElement)(b.a,{context:"wc/checkout"}),Object(n.createElement)(y.a,{context:"wc/checkout"}),Object(n.createElement)(p.SlotFillProvider,null,Object(n.createElement)(g.a,null,Object(n.createElement)(v.a,{className:h()("wc-block-checkout",{"has-dark-controls":t.hasDarkControls})},Object(n.createElement)(H,{attributes:t},r),Object(n.createElement)(z,{scrollToTop:o})))))});const Y={hasDarkControls:{type:"boolean",default:Object(O.getSetting)("hasDarkEditorStyleSupport",!1)},showRateAfterTaxName:{type:"boolean",default:Object(O.getSetting)("displayCartPricesIncludingTax",!1)}};var q=r(203);Object(l.a)({Block:K,blockName:"woocommerce/checkout",selector:".wp-block-woocommerce-checkout",getProps:e=>({attributes:Object(o.a)({...q.attributes,...Y},e instanceof HTMLElement?e.dataset:{})}),blockMap:Object(s.getRegisteredBlockComponents)("woocommerce/checkout"),blockWrapper:e=>{let{children:t}=e;const{extensions:r,receiveCart:o,...s}=Object(i.a)(),l=Object(c.a)(),u=Object(a.a)();return n.Children.map(t,e=>{if(Object(n.isValidElement)(e)){const t={extensions:r,cart:s,checkoutExtensionData:l,validation:u};return Object(n.cloneElement)(e,t)}return e})}})},,,,,,,function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return l}));var n=r(0),o=r(10),i=r(4),c=r.n(i);const a=Object(n.createContext)({hasContainerWidth:!1,containerClassName:"",isMobile:!1,isSmall:!1,isMedium:!1,isLarge:!1}),s=()=>Object(n.useContext)(a),l=e=>{let{children:t,className:r=""}=e;const[i,s]=(()=>{const[e,{width:t}]=Object(o.useResizeObserver)();let r="";return t>700?r="is-large":t>520?r="is-medium":t>400?r="is-small":t&&(r="is-mobile"),[e,r]})(),l={hasContainerWidth:""!==s,containerClassName:s,isMobile:"is-mobile"===s,isSmall:"is-small"===s,isMedium:"is-medium"===s,isLarge:"is-large"===s};return Object(n.createElement)(a.Provider,{value:l},Object(n.createElement)("div",{className:c()(r,s)},i,t))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(0),o=r(8),i=r(4),c=r.n(i),a=r(5),s=r(106),l=r(10),u=r(124),p=function({notices:e,className:t,children:r,onRemove:i=a.noop}){const p=Object(l.useReducedMotion)(),[d]=Object(n.useState)(()=>new WeakMap),m=Object(s.useTransition)(e,e=>e.id,{from:{opacity:0,height:0},enter:e=>async t=>await t({opacity:1,height:d.get(e).offsetHeight}),leave:()=>async e=>{await e({opacity:0}),await e({height:0})},immediate:p});t=c()("components-snackbar-list",t);const f=e=>()=>i(e.id);return Object(n.createElement)("div",{className:t},r,m.map(({item:e,key:t,props:r})=>Object(n.createElement)(s.animated.div,{key:t,style:r},Object(n.createElement)("div",{className:"components-snackbar-list__notice-container",ref:t=>t&&d.set(e,t)},Object(n.createElement)(u.a,Object(o.a)({},Object(a.omit)(e,["content"]),{onRemove:f(e)}),e.content)))))},d=r(9),m=r(6),f=r(42);const h={},b=e=>{let{className:t,context:r="default"}=e;const{isEditor:o}=Object(f.a)(),{notices:i}=Object(m.useSelect)(e=>({notices:e("core/notices").getNotices(r)})),{removeNotice:a}=Object(m.useDispatch)("core/notices");if(o)return null;const s=i.filter(e=>"snackbar"===e.type),l=s.length>0?s.reduce((e,t)=>{let{content:r}=t;return e[r]=!0,e},{}):h,u=Object(d.__experimentalApplyCheckoutFilter)({filterName:"snackbarNoticeVisibility",defaultValue:l}),b=s.filter(e=>!0===u[e.content]),g=c()(t,"wc-block-components-notices__snackbar");return Object(n.createElement)(p,{notices:b,className:g,onRemove:()=>{b.forEach(e=>a(e.id,r))}})}},,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(6),o=r(0),i=r(12),c=r.n(i),a=r(3);const s=()=>{const{__internalSetExtensionData:e}=Object(n.useDispatch)(a.CHECKOUT_STORE_KEY),{extensionData:t}=Object(n.useSelect)(e=>e(a.CHECKOUT_STORE_KEY).getCheckoutState()),r=Object(o.useRef)(t);Object(o.useEffect)(()=>{c()(t,r.current)||(r.current=t)},[t]);const i=Object(o.useCallback)((t,n,o)=>{const i=r.current[t]||{};e({...r.current,[t]:{...i,[n]:o}})},[e]);return{extensionData:r.current,setExtensionData:i}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(0),o=r(6),i=r(3);const c=()=>{const{clearValidationError:e,hideValidationError:t,setValidationErrors:r}=Object(o.useDispatch)(i.VALIDATION_STORE_KEY),c="extensions-errors",{hasValidationErrors:a,getValidationError:s}=Object(o.useSelect)(e=>{const t=e(i.VALIDATION_STORE_KEY);return{hasValidationErrors:t.hasValidationErrors(),getValidationError:e=>t.getValidationError(`${c}-${e}`)}});return{hasValidationErrors:a,getValidationError:s,clearValidationError:Object(n.useCallback)(t=>e(`${c}-${t}`),[e]),hideValidationError:Object(n.useCallback)(e=>t(`${c}-${e}`),[t]),setValidationErrors:Object(n.useCallback)(e=>r(Object.fromEntries(Object.entries(e).map(e=>{let[t,r]=e;return[`${c}-${t}`,r]}))),[r])}}},,,,,function(e,t,r){"use strict";var n=r(0),o=r(4),i=r.n(o),c=r(271);r(229),t.a=e=>{let{children:t,className:r}=e;return Object(n.createElement)(c.a,{className:i()("wc-block-components-sidebar-layout",r)},t)}}]);
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-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', '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' => '5b5a711f676aa1e25e9e690cf6e8f16c');
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-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', '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' => '08db8a251e0d51140351f00ac2546e51');
build/checkout.js CHANGED
@@ -14,7 +14,7 @@ Object(r._n)("%d shipping option was found.","%d shipping options were found.",o
14
  /* translators: %d number of shipping packages packages. */
15
  Object(r._n)("Shipping option searched for %d package.","Shipping options searched for %d packages.",e,"woo-gutenberg-products-block"),e)+" "+Object(r.sprintf)(
16
  /* translators: %d number of shipping options available. */
17
- Object(r._n)("%d shipping option was found","%d shipping options were found",o,"woo-gutenberg-products-block"),o))},[c,t]);const{extensions:h,receiveCart:O,..._}=Object(i.a)(),j={className:d,collapsible:p,noResultsMessage:b,renderOption:m,extensions:h,cart:_,components:{ShippingRatesControlPackage:y},context:g,shippingRates:t},{isEditor:k}=Object(u.b)();return Object(o.createElement)(a.a,{isLoading:c,screenReaderLabel:Object(r.__)("Loading shipping rates…","woo-gutenberg-products-block"),showSpinner:!0},k?Object(o.createElement)(v,{packages:t,noResultsMessage:b,renderOption:m}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.ExperimentalOrderShippingPackages.Slot,j),Object(o.createElement)(s.ExperimentalOrderShippingPackages,null,Object(o.createElement)(v,{showItems:t.length>1,packages:t,noResultsMessage:b,renderOption:m}))))}},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var o=c(180);const r=["a","b","em","i","strong","p","br"],n=["target","href","rel","name","download"],a=(e,t)=>{const c=(null==t?void 0:t.tags)||r,a=(null==t?void 0:t.attr)||n;return Object(o.sanitize)(e,{ALLOWED_TAGS:c,ALLOWED_ATTR:a})}},,,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));var o=c(2),r=c(0),n=c(7),a=c(9),s=c(79),l=c(127);const i=()=>{const{needsShipping:e}=Object(l.a)(),{useShippingAsBilling:t}=Object(n.useSelect)(e=>e(a.CHECKOUT_STORE_KEY).getCheckoutState()),{__internalSetUseShippingAsBilling:c}=Object(n.useDispatch)(a.CHECKOUT_STORE_KEY),{billingAddress:i,setBillingAddress:u,shippingAddress:d,setShippingAddress:p}=Object(s.a)(),b=Object(r.useCallback)(e=>{u({email:e})},[u]),m=Object(r.useCallback)(e=>{u({phone:e})},[u]),g=Object(r.useCallback)(e=>{p({phone:e})},[p]),h=Object(o.getSetting)("forcedBillingAddress",!1);return{shippingAddress:d,billingAddress:i,setShippingAddress:p,setBillingAddress:u,setEmail:b,setBillingPhone:m,setShippingPhone:g,defaultAddressFields:o.defaultAddressFields,useShippingAsBilling:t,setUseShippingAsBilling:c,showShippingFields:!h&&e,showBillingFields:h||!e||!t,forcedBillingAddress:h}}},function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));var o=c(9),r=c(7),n=c(1),a=c(18),s=c(103),l=c(182);const i=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:c,isAfterProcessing:i,isComplete:u,hasError:d}=Object(r.useSelect)(e=>{const t=e(o.CHECKOUT_STORE_KEY);return{isCalculating:t.isCalculating(),isBeforeProcessing:t.isBeforeProcessing(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isComplete:t.isComplete(),hasError:t.hasError()}}),{currentStatus:p,activePaymentMethod:b}=Object(r.useSelect)(e=>{const t=e(o.PAYMENT_STORE_KEY);return{currentStatus:t.getCurrentStatus(),activePaymentMethod:t.getActivePaymentMethod()}}),{onSubmit:m}=Object(s.b)(),{paymentMethods:g={}}=Object(l.b)(),h=c||i||t,O=u&&!d,_=(g[b]||{}).placeOrderButtonLabel||Object(n.__)("Place Order","woo-gutenberg-products-block");return{submitButtonText:Object(a.__experimentalApplyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:_}),onSubmit:m,isCalculating:e,isDisabled:c||p.isDoingExpressPayment,waitingForProcessing:h,waitingForRedirect:O}}},,function(e,t,c){"use strict";var o=c(6),r=c.n(o),n=c(0),a=c(15),s=c(2);c(201),t.a=e=>{let{image:t={},fallbackAlt:c=""}=e;const o=t.thumbnail?{src:t.thumbnail,alt:Object(a.decodeEntities)(t.alt)||c||"Product Image"}:{src:s.PLACEHOLDER_IMG_SRC,alt:""};return Object(n.createElement)("img",r()({className:"wc-block-components-product-image"},o,{alt:o.alt}))}},function(e,t,c){"use strict";var o=c(0),r=c(1),n=c(81);t.a=()=>Object(o.createElement)(n.a,{className:"wc-block-components-product-backorder-badge"},Object(r.__)("Available on backorder","woo-gutenberg-products-block"))},function(e,t,c){"use strict";var o=c(0),r=c(1),n=c(81);t.a=e=>{let{lowStockRemaining:t}=e;return t?Object(o.createElement)(n.a,{className:"wc-block-components-product-low-stock-badge"},Object(r.sprintf)(
18
  /* translators: %d stock amount (number of items in stock for product) */
19
  Object(r.__)("%d left in stock","woo-gutenberg-products-block"),t)):null}},function(e,t,c){"use strict";var o=c(0),r=c(8),n=c(15);c(204);var a=e=>{let{details:t=[]}=e;return Array.isArray(t)?(t=t.filter(e=>!e.hidden),0===t.length?null:Object(o.createElement)("ul",{className:"wc-block-components-product-details"},t.map(e=>{const t=(null==e?void 0:e.key)||e.name||"",c=t?"wc-block-components-product-details__"+Object(r.kebabCase)(t):"";return Object(o.createElement)("li",{key:t+(e.display||e.value),className:c},t&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"wc-block-components-product-details__name"},Object(n.decodeEntities)(t),":")," "),Object(o.createElement)("span",{className:"wc-block-components-product-details__value"},Object(n.decodeEntities)(e.display||e.value)))}))):null},s=c(120),l=c(22),i=e=>{let{className:t,shortDescription:c="",fullDescription:r=""}=e;const n=c||r;return n?Object(o.createElement)(s.a,{className:t,source:n,maxLength:15,countType:l.o.wordCountType||"words"}):null};c(203),t.a=e=>{let{shortDescription:t="",fullDescription:c="",itemData:r=[],variation:n=[]}=e;return Object(o.createElement)("div",{className:"wc-block-components-product-metadata"},Object(o.createElement)(i,{className:"wc-block-components-product-metadata__description",shortDescription:t,fullDescription:c}),Object(o.createElement)(a,{details:r}),Object(o.createElement)(a,{details:n.map(e=>{let{attribute:t="",value:c}=e;return{key:t,value:c}})}))}},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return b}));var o=c(6),r=c.n(o),n=c(0),a=c(4),s=c.n(a),l=c(314),i=c(233),u=c(7),d=c(9);c(196);const p=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""},b=e=>{let{className:t,context:c="default",additionalNotices:o=[]}=e;const a=Object(u.useSelect)(e=>e(d.PAYMENT_STORE_KEY).isExpressPaymentMethodActive()),{notices:b}=Object(u.useSelect)(e=>({notices:e("core/notices").getNotices(c)})),{removeNotice:m}=Object(u.useDispatch)("core/notices"),g=b.filter(e=>"snackbar"!==e.type).concat(o);if(!g.length)return null;const h=s()(t,"wc-block-components-notices");return a?null:Object(n.createElement)("div",{className:h},g.map(e=>Object(n.createElement)(l.a,r()({key:"store-notice-"+e.id},e,{className:s()("wc-block-components-notices__notice",p(e)),onRemove:()=>{e.isDismissible&&m(e.id,c)}}),Object(i.a)(e.content))))}},,,,,function(e,t,c){"use strict";var o=c(6),r=c.n(o),n=c(0),a=c(4),s=c.n(a),l=c(1),i=c(118),u=c(551);c(200);var d=e=>{let{text:t,screenReaderText:c="",element:o="li",className:a="",radius:l="small",children:i=null,...u}=e;const d=o,p=s()(a,"wc-block-components-chip","wc-block-components-chip--radius-"+l),b=Boolean(c&&c!==t);return Object(n.createElement)(d,r()({className:p},u),Object(n.createElement)("span",{"aria-hidden":b,className:"wc-block-components-chip__text"},t),b&&Object(n.createElement)("span",{className:"screen-reader-text"},c),i)};t.a=e=>{let{ariaLabel:t="",className:c="",disabled:o=!1,onRemove:a=(()=>{}),removeOnAnyClick:p=!1,text:b,screenReaderText:m="",...g}=e;const h=p?"span":"button";if(!t){const e=m&&"string"==typeof m?m:b;t="string"!=typeof e?
20
  /* translators: Remove chip. */
14
  /* translators: %d number of shipping packages packages. */
15
  Object(r._n)("Shipping option searched for %d package.","Shipping options searched for %d packages.",e,"woo-gutenberg-products-block"),e)+" "+Object(r.sprintf)(
16
  /* translators: %d number of shipping options available. */
17
+ Object(r._n)("%d shipping option was found","%d shipping options were found",o,"woo-gutenberg-products-block"),o))},[c,t]);const{extensions:h,receiveCart:O,..._}=Object(i.a)(),j={className:d,collapsible:p,noResultsMessage:b,renderOption:m,extensions:h,cart:_,components:{ShippingRatesControlPackage:y},context:g,shippingRates:t},{isEditor:k}=Object(u.b)();return Object(o.createElement)(a.a,{isLoading:c,screenReaderLabel:Object(r.__)("Loading shipping rates…","woo-gutenberg-products-block"),showSpinner:!0},k?Object(o.createElement)(v,{packages:t,noResultsMessage:b,renderOption:m}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.ExperimentalOrderShippingPackages.Slot,j),Object(o.createElement)(s.ExperimentalOrderShippingPackages,null,Object(o.createElement)(v,{showItems:t.length>1,packages:t,noResultsMessage:b,renderOption:m}))))}},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var o=c(180);const r=["a","b","em","i","strong","p","br"],n=["target","href","rel","name","download"],a=(e,t)=>{const c=(null==t?void 0:t.tags)||r,a=(null==t?void 0:t.attr)||n;return Object(o.sanitize)(e,{ALLOWED_TAGS:c,ALLOWED_ATTR:a})}},,,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));var o=c(2),r=c(0),n=c(7),a=c(9),s=c(79),l=c(127);const i=()=>{const{needsShipping:e}=Object(l.a)(),{useShippingAsBilling:t}=Object(n.useSelect)(e=>e(a.CHECKOUT_STORE_KEY).getCheckoutState()),{__internalSetUseShippingAsBilling:c}=Object(n.useDispatch)(a.CHECKOUT_STORE_KEY),{billingAddress:i,setBillingAddress:u,shippingAddress:d,setShippingAddress:p}=Object(s.a)(),b=Object(r.useCallback)(e=>{u({email:e})},[u]),m=Object(r.useCallback)(e=>{u({phone:e})},[u]),g=Object(r.useCallback)(e=>{p({phone:e})},[p]),h=Object(o.getSetting)("forcedBillingAddress",!1);return{shippingAddress:d,billingAddress:i,setShippingAddress:p,setBillingAddress:u,setEmail:b,setBillingPhone:m,setShippingPhone:g,defaultAddressFields:o.defaultAddressFields,useShippingAsBilling:t,setUseShippingAsBilling:c,showShippingFields:!h&&e,showBillingFields:!e||!t,forcedBillingAddress:h}}},function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));var o=c(9),r=c(7),n=c(1),a=c(18),s=c(103),l=c(182);const i=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:c,isAfterProcessing:i,isComplete:u,hasError:d}=Object(r.useSelect)(e=>{const t=e(o.CHECKOUT_STORE_KEY);return{isCalculating:t.isCalculating(),isBeforeProcessing:t.isBeforeProcessing(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isComplete:t.isComplete(),hasError:t.hasError()}}),{currentStatus:p,activePaymentMethod:b}=Object(r.useSelect)(e=>{const t=e(o.PAYMENT_STORE_KEY);return{currentStatus:t.getCurrentStatus(),activePaymentMethod:t.getActivePaymentMethod()}}),{onSubmit:m}=Object(s.b)(),{paymentMethods:g={}}=Object(l.b)(),h=c||i||t,O=u&&!d,_=(g[b]||{}).placeOrderButtonLabel||Object(n.__)("Place Order","woo-gutenberg-products-block");return{submitButtonText:Object(a.__experimentalApplyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:_}),onSubmit:m,isCalculating:e,isDisabled:c||p.isDoingExpressPayment,waitingForProcessing:h,waitingForRedirect:O}}},,function(e,t,c){"use strict";var o=c(6),r=c.n(o),n=c(0),a=c(15),s=c(2);c(201),t.a=e=>{let{image:t={},fallbackAlt:c=""}=e;const o=t.thumbnail?{src:t.thumbnail,alt:Object(a.decodeEntities)(t.alt)||c||"Product Image"}:{src:s.PLACEHOLDER_IMG_SRC,alt:""};return Object(n.createElement)("img",r()({className:"wc-block-components-product-image"},o,{alt:o.alt}))}},function(e,t,c){"use strict";var o=c(0),r=c(1),n=c(81);t.a=()=>Object(o.createElement)(n.a,{className:"wc-block-components-product-backorder-badge"},Object(r.__)("Available on backorder","woo-gutenberg-products-block"))},function(e,t,c){"use strict";var o=c(0),r=c(1),n=c(81);t.a=e=>{let{lowStockRemaining:t}=e;return t?Object(o.createElement)(n.a,{className:"wc-block-components-product-low-stock-badge"},Object(r.sprintf)(
18
  /* translators: %d stock amount (number of items in stock for product) */
19
  Object(r.__)("%d left in stock","woo-gutenberg-products-block"),t)):null}},function(e,t,c){"use strict";var o=c(0),r=c(8),n=c(15);c(204);var a=e=>{let{details:t=[]}=e;return Array.isArray(t)?(t=t.filter(e=>!e.hidden),0===t.length?null:Object(o.createElement)("ul",{className:"wc-block-components-product-details"},t.map(e=>{const t=(null==e?void 0:e.key)||e.name||"",c=t?"wc-block-components-product-details__"+Object(r.kebabCase)(t):"";return Object(o.createElement)("li",{key:t+(e.display||e.value),className:c},t&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"wc-block-components-product-details__name"},Object(n.decodeEntities)(t),":")," "),Object(o.createElement)("span",{className:"wc-block-components-product-details__value"},Object(n.decodeEntities)(e.display||e.value)))}))):null},s=c(120),l=c(22),i=e=>{let{className:t,shortDescription:c="",fullDescription:r=""}=e;const n=c||r;return n?Object(o.createElement)(s.a,{className:t,source:n,maxLength:15,countType:l.o.wordCountType||"words"}):null};c(203),t.a=e=>{let{shortDescription:t="",fullDescription:c="",itemData:r=[],variation:n=[]}=e;return Object(o.createElement)("div",{className:"wc-block-components-product-metadata"},Object(o.createElement)(i,{className:"wc-block-components-product-metadata__description",shortDescription:t,fullDescription:c}),Object(o.createElement)(a,{details:r}),Object(o.createElement)(a,{details:n.map(e=>{let{attribute:t="",value:c}=e;return{key:t,value:c}})}))}},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return b}));var o=c(6),r=c.n(o),n=c(0),a=c(4),s=c.n(a),l=c(314),i=c(233),u=c(7),d=c(9);c(196);const p=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""},b=e=>{let{className:t,context:c="default",additionalNotices:o=[]}=e;const a=Object(u.useSelect)(e=>e(d.PAYMENT_STORE_KEY).isExpressPaymentMethodActive()),{notices:b}=Object(u.useSelect)(e=>({notices:e("core/notices").getNotices(c)})),{removeNotice:m}=Object(u.useDispatch)("core/notices"),g=b.filter(e=>"snackbar"!==e.type).concat(o);if(!g.length)return null;const h=s()(t,"wc-block-components-notices");return a?null:Object(n.createElement)("div",{className:h},g.map(e=>Object(n.createElement)(l.a,r()({key:"store-notice-"+e.id},e,{className:s()("wc-block-components-notices__notice",p(e)),onRemove:()=>{e.isDismissible&&m(e.id,c)}}),Object(i.a)(e.content))))}},,,,,function(e,t,c){"use strict";var o=c(6),r=c.n(o),n=c(0),a=c(4),s=c.n(a),l=c(1),i=c(118),u=c(551);c(200);var d=e=>{let{text:t,screenReaderText:c="",element:o="li",className:a="",radius:l="small",children:i=null,...u}=e;const d=o,p=s()(a,"wc-block-components-chip","wc-block-components-chip--radius-"+l),b=Boolean(c&&c!==t);return Object(n.createElement)(d,r()({className:p},u),Object(n.createElement)("span",{"aria-hidden":b,className:"wc-block-components-chip__text"},t),b&&Object(n.createElement)("span",{className:"screen-reader-text"},c),i)};t.a=e=>{let{ariaLabel:t="",className:c="",disabled:o=!1,onRemove:a=(()=>{}),removeOnAnyClick:p=!1,text:b,screenReaderText:m="",...g}=e;const h=p?"span":"button";if(!t){const e=m&&"string"==typeof m?m:b;t="string"!=typeof e?
20
  /* translators: Remove chip. */
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.7.1
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -80,8 +80,17 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/
80
 
81
  == Changelog ==
82
 
 
 
 
 
 
 
 
83
  = 8.7.1 - 2022-10-12 =
84
 
 
 
85
  - Fixed an issue where JavaScript errors would occur when more than one extension tried to filter specific payment methods in the Cart and Checkout blocks. ([7377](https://github.com/woocommerce/woocommerce-blocks/pull/7377))
86
 
87
  = 8.7.0 - 2022-10-10 =
4
  Requires at least: 6.0
5
  Tested up to: 6.0
6
  Requires PHP: 7.0
7
+ Stable tag: 8.7.2
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
80
 
81
  == Changelog ==
82
 
83
+ = 8.7.2 - 2022-10-13 =
84
+
85
+ #### Bug Fixes
86
+
87
+ - Fixed a problem where Custom Order Tables compatibility declaration could fail due to the unpredictable plugin order load. ([7395](https://github.com/woocommerce/woocommerce-blocks/pull/7395))
88
+ - Refactor useCheckoutAddress hook to enable "Use same address for billing" option in Editor ([7393](https://github.com/woocommerce/woocommerce-blocks/pull/7393))
89
+
90
  = 8.7.1 - 2022-10-12 =
91
 
92
+ #### Bug Fixes
93
+
94
  - Fixed an issue where JavaScript errors would occur when more than one extension tried to filter specific payment methods in the Cart and Checkout blocks. ([7377](https://github.com/woocommerce/woocommerce-blocks/pull/7377))
95
 
96
  = 8.7.0 - 2022-10-10 =
src/Package.php CHANGED
@@ -109,7 +109,7 @@ class Package {
109
  NewPackage::class,
110
  function ( $container ) {
111
  // leave for automated version bumping.
112
- $version = '8.7.1';
113
  return new NewPackage(
114
  $version,
115
  dirname( __DIR__ ),
109
  NewPackage::class,
110
  function ( $container ) {
111
  // leave for automated version bumping.
112
+ $version = '8.7.2';
113
  return new NewPackage(
114
  $version,
115
  dirname( __DIR__ ),
vendor/autoload.php CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInitfd87cadf5eb45d1ca7a37f396ccd5880::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInitdc8fac0bbe0f3764972891a228674527::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
9
 
10
  // phpcs:ignore
11
 
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitfd87cadf5eb45d1ca7a37f396ccd5880
6
  {
7
  private static $loader;
8
 
@@ -22,18 +22,18 @@ class ComposerAutoloaderInitfd87cadf5eb45d1ca7a37f396ccd5880
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitfd87cadf5eb45d1ca7a37f396ccd5880', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInitfd87cadf5eb45d1ca7a37f396ccd5880', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInitfd87cadf5eb45d1ca7a37f396ccd5880::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
- $includeFiles = \Composer\Autoload\ComposerStaticInitfd87cadf5eb45d1ca7a37f396ccd5880::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
- composerRequirefd87cadf5eb45d1ca7a37f396ccd5880($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
@@ -45,7 +45,7 @@ class ComposerAutoloaderInitfd87cadf5eb45d1ca7a37f396ccd5880
45
  * @param string $file
46
  * @return void
47
  */
48
- function composerRequirefd87cadf5eb45d1ca7a37f396ccd5880($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitdc8fac0bbe0f3764972891a228674527
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitdc8fac0bbe0f3764972891a228674527', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitdc8fac0bbe0f3764972891a228674527', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
+ call_user_func(\Composer\Autoload\ComposerStaticInitdc8fac0bbe0f3764972891a228674527::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
+ $includeFiles = \Composer\Autoload\ComposerStaticInitdc8fac0bbe0f3764972891a228674527::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
+ composerRequiredc8fac0bbe0f3764972891a228674527($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
45
  * @param string $file
46
  * @return void
47
  */
48
+ function composerRequiredc8fac0bbe0f3764972891a228674527($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitfd87cadf5eb45d1ca7a37f396ccd5880
8
  {
9
  public static $files = array (
10
  'fcd5d7d87e03ff4f5b5a66c2b8968671' => __DIR__ . '/../..' . '/src/StoreApi/deprecated.php',
@@ -51,9 +51,9 @@ class ComposerStaticInitfd87cadf5eb45d1ca7a37f396ccd5880
51
  public static function getInitializer(ClassLoader $loader)
52
  {
53
  return \Closure::bind(function () use ($loader) {
54
- $loader->prefixLengthsPsr4 = ComposerStaticInitfd87cadf5eb45d1ca7a37f396ccd5880::$prefixLengthsPsr4;
55
- $loader->prefixDirsPsr4 = ComposerStaticInitfd87cadf5eb45d1ca7a37f396ccd5880::$prefixDirsPsr4;
56
- $loader->classMap = ComposerStaticInitfd87cadf5eb45d1ca7a37f396ccd5880::$classMap;
57
 
58
  }, null, ClassLoader::class);
59
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitdc8fac0bbe0f3764972891a228674527
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 = ComposerStaticInitdc8fac0bbe0f3764972891a228674527::$prefixLengthsPsr4;
55
+ $loader->prefixDirsPsr4 = ComposerStaticInitdc8fac0bbe0f3764972891a228674527::$prefixDirsPsr4;
56
+ $loader->classMap = ComposerStaticInitdc8fac0bbe0f3764972891a228674527::$classMap;
57
 
58
  }, null, ClassLoader::class);
59
  }
vendor/composer/installed.php CHANGED
@@ -3,7 +3,7 @@
3
  'name' => 'woocommerce/woocommerce-blocks',
4
  'pretty_version' => 'dev-trunk',
5
  'version' => 'dev-trunk',
6
- 'reference' => '585b6a2e8f5eb8e42faeb4c18fd90fbf2195e44b',
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
@@ -43,7 +43,7 @@
43
  'woocommerce/woocommerce-blocks' => array(
44
  'pretty_version' => 'dev-trunk',
45
  'version' => 'dev-trunk',
46
- 'reference' => '585b6a2e8f5eb8e42faeb4c18fd90fbf2195e44b',
47
  'type' => 'wordpress-plugin',
48
  'install_path' => __DIR__ . '/../../',
49
  'aliases' => array(),
3
  'name' => 'woocommerce/woocommerce-blocks',
4
  'pretty_version' => 'dev-trunk',
5
  'version' => 'dev-trunk',
6
+ 'reference' => 'a022233a3135a0646a1ee75e553382e19895a6a3',
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
43
  'woocommerce/woocommerce-blocks' => array(
44
  'pretty_version' => 'dev-trunk',
45
  'version' => 'dev-trunk',
46
+ 'reference' => 'a022233a3135a0646a1ee75e553382e19895a6a3',
47
  'type' => 'wordpress-plugin',
48
  'install_path' => __DIR__ . '/../../',
49
  'aliases' => array(),
vendor/composer/jetpack_autoload_filemap.php CHANGED
@@ -7,11 +7,11 @@ $baseDir = dirname($vendorDir);
7
 
8
  return array(
9
  'fcd5d7d87e03ff4f5b5a66c2b8968671' => array(
10
- 'version' => '8.7.1.0',
11
  'path' => $baseDir . '/src/StoreApi/deprecated.php'
12
  ),
13
  'd0f16a186498c2ba04f1d0064fecf9cf' => array(
14
- 'version' => '8.7.1.0',
15
  'path' => $baseDir . '/src/StoreApi/functions.php'
16
  ),
17
  );
7
 
8
  return array(
9
  'fcd5d7d87e03ff4f5b5a66c2b8968671' => array(
10
+ 'version' => '8.7.2.0',
11
  'path' => $baseDir . '/src/StoreApi/deprecated.php'
12
  ),
13
  'd0f16a186498c2ba04f1d0064fecf9cf' => array(
14
+ 'version' => '8.7.2.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.7.1.0',
15
  'path' => array( $baseDir . '/src/StoreApi' )
16
  ),
17
  'Automattic\\WooCommerce\\Blocks\\Tests\\' => array(
18
- 'version' => '8.7.1.0',
19
  'path' => array( $baseDir . '/tests/php' )
20
  ),
21
  'Automattic\\WooCommerce\\Blocks\\' => array(
22
- 'version' => '8.7.1.0',
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.7.2.0',
15
  'path' => array( $baseDir . '/src/StoreApi' )
16
  ),
17
  'Automattic\\WooCommerce\\Blocks\\Tests\\' => array(
18
+ 'version' => '8.7.2.0',
19
  'path' => array( $baseDir . '/tests/php' )
20
  ),
21
  'Automattic\\WooCommerce\\Blocks\\' => array(
22
+ 'version' => '8.7.2.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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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\jpfd87cadf5eb45d1ca7a37f396ccd5880;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpdc8fac0bbe0f3764972891a228674527;
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.7.1
7
  * Author: Automattic
8
  * Author URI: https://woocommerce.com
9
  * Text Domain: woo-gutenberg-products-block
@@ -25,14 +25,14 @@ if ( ! defined( 'WC_BLOCKS_IS_FEATURE_PLUGIN' ) ) {
25
  }
26
 
27
  // Declare compatibility with custom order tables for WooCommerce.
28
- if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
29
- add_action(
30
- 'before_woocommerce_init',
31
- function () {
32
  \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
33
  }
34
- );
35
- }
36
 
37
  /**
38
  * Whether notices must be displayed in the current page (plugins and WooCommerce pages).
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.7.2
7
  * Author: Automattic
8
  * Author URI: https://woocommerce.com
9
  * Text Domain: woo-gutenberg-products-block
25
  }
26
 
27
  // Declare compatibility with custom order tables for WooCommerce.
28
+ add_action(
29
+ 'before_woocommerce_init',
30
+ function () {
31
+ if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
32
  \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
33
  }
34
+ }
35
+ );
36
 
37
  /**
38
  * Whether notices must be displayed in the current page (plugins and WooCommerce pages).