(()=>{"use strict";var e,r={91:(e,r,o)=>{e.exports=o(753)},534:(e,r,o)=>{const t=window.ReactDOM,n=window.wp.element,i=window.wp.hooks,l=(window.wp.apiFetch,window.lodash);var a=o(609),s=o(91);const p=({pageType:e})=>{const[r,o]=(0,n.useState)([]),t=(0,a.useCallback)((0,l.debounce)(()=>{wp.apiFetch({path:"flexible-shipping/v1/free-shipping-notice",method:"GET"}).then(e=>{o(e)}).catch(e=>{console.log(e)})},2e3),[]);return(0,n.useEffect)(()=>{document.body.addEventListener("wc-blocks_added_to_cart",e=>{t()}),(0,i.addAction)("flexible-shipping-cart-updated","flexible-shipping",t),t()},[]),(0,s.jsx)(s.Fragment,{children:r.map((r,o)=>null==e||r.blocks.includes(e)?(0,s.jsx)("div",{className:"woocommerce-info",dangerouslySetInnerHTML:{__html:r.content}},o):null)})},c=Array.from(document.getElementsByClassName("flexible-shipping-free-shipping-root"));c.length>0&&(0,t.createRoot)(c[0]).render((0,s.jsx)(p,{}))},609:e=>{e.exports=window.React},753:(e,r,o)=>{var t=o(609),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};r.Fragment=i,r.jsx=function(e,r,o){var t,i={},p=null,c=null;for(t in void 0!==o&&(p=""+o),void 0!==r.key&&(p=""+r.key),void 0!==r.ref&&(c=r.ref),r)l.call(r,t)&&!s.hasOwnProperty(t)&&(i[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===i[t]&&(i[t]=r[t]);return{$$typeof:n,type:e,key:p,ref:c,props:i,_owner:a.current}}}},o={};function t(e){var n=o[e];if(void 0!==n)return n.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,t),i.exports}t.m=r,e=[],t.O=(r,o,n,i)=>{if(!o){var l=1/0;for(c=0;c<e.length;c++){for(var[o,n,i]=e[c],a=!0,s=0;s<o.length;s++)(!1&i||l>=i)&&Object.keys(t.O).every(e=>t.O[e](o[s]))?o.splice(s--,1):(a=!1,i<l&&(l=i));if(a){e.splice(c--,1);var p=n();void 0!==p&&(r=p)}}return r}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[o,n,i]},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={523:0,966:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var n,i,[l,a,s]=o,p=0;if(l.some(r=>0!==e[r])){for(n in a)t.o(a,n)&&(t.m[n]=a[n]);if(s)var c=s(t)}for(r&&r(o);p<l.length;p++)i=l[p],t.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return t.O(c)},o=globalThis.webpackChunkflexible_shipping=globalThis.webpackChunkflexible_shipping||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})();var n=t.O(void 0,[966],()=>t(534));n=t.O(n)})();