!function(){"use strict";var e,t={7005:function(e,t,r){var n=r(1609),o=Symbol.for("react.element"),c=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var n,i={},a=null,u=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(u=t.ref),t)c.call(t,n)&&!s.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:a,ref:u,props:i,_owner:l.current}}},9255:function(e,t,r){e.exports=r(7005)},8873:function(e,t,r){var n=window.wp.blocks,o=window.wp.primitives,c=r(9255),l=(0,c.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(o.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})}),s=window.wp.data,i=window.wp.blockEditor;window.wp.i18n;const a=[["surecart/product-list-filter-tags-label"],["surecart/product-list-filter-tags-template"],["surecart/product-list-filter-tags-clear-all"]];var u=()=>{const e=(0,i.useBlockProps)(),t=(0,i.useInnerBlocksProps)(e,{template:a});return React.createElement("div",t)},f=JSON.parse('{"UU":"surecart/product-list-filter-tags"}'),p=window.wp.element,d=e=>{let{clientId:t}=e;const{replaceInnerBlocks:r}=(0,s.useDispatch)(i.store);(0,p.useEffect)((()=>{r&&t&&r(t,(0,n.createBlocksFromInnerBlocksTemplate)([["surecart/product-list-filter-tags-template"]]))}),[r,t])};(0,n.registerBlockType)(f.UU,{icon:l,edit:e=>{let{clientId:t}=e;const r=(0,s.select)("core/block-editor").getBlocks(t);return 0===r.length||"surecart/product-list-filter-tag"!==r[0]?.name?React.createElement(u,null):React.createElement(d,{clientId:t})},save:function(){return React.createElement(i.InnerBlocks.Content,null)}})},1609:function(e){e.exports=window.React}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var c=r[e]={exports:{}};return t[e](c,c.exports,n),c.exports}n.m=t,e=[],n.O=function(t,r,o,c){if(!r){var l=1/0;for(u=0;u<e.length;u++){r=e[u][0],o=e[u][1],c=e[u][2];for(var s=!0,i=0;i<r.length;i++)(!1&c||l>=c)&&Object.keys(n.O).every((function(e){return n.O[e](r[i])}))?r.splice(i--,1):(s=!1,c<l&&(l=c));if(s){e.splice(u--,1);var a=o();void 0!==a&&(t=a)}}return t}c=c||0;for(var u=e.length;u>0&&e[u-1][2]>c;u--)e[u]=e[u-1];e[u]=[r,o,c]},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={7912:0,7712:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,c,l=r[0],s=r[1],i=r[2],a=0;if(l.some((function(t){return 0!==e[t]}))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(i)var u=i(n)}for(t&&t(r);a<l.length;a++)c=l[a],n.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return n.O(u)},r=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var o=n.O(void 0,[7712],(function(){return n(8873)}));o=n.O(o)}();