!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),a=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,l={},i=null,u=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(u=t.ref),t)c.call(t,n)&&!s.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:o,type:e,key:i,ref:u,props:l,_owner:a.current}}},9255:function(e,t,r){e.exports=r(7005)},2226:function(e,t,r){var n=window.wp.blocks,o=window.wp.primitives,c=r(9255),a=(0,c.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(o.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),s=window.wp.i18n,l=window.wp.blockEditor,i=window.wp.data,u=window.wp.element;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(null,arguments)}function p(e){let{template:t,renderAppender:r,...n}=e;const o=(0,l.useInnerBlocksProps)(n,{template:t,__unstableDisableLayoutClassNames:!0,renderAppender:r});return React.createElement("div",o)}const f=(0,u.memo)((function(e){let{blocks:t,blockContextId:r,isHidden:n,setActiveBlockContextId:o,...c}=e;const{style:a,className:s,...i}=c||{},u=(0,l.__experimentalUseBlockPreview)({blocks:t});return React.createElement("div",d({},u,{tabIndex:0,role:"button",onClick:()=>{o(r)},style:{...a,display:n?"none":void 0},className:s},i))}));function v(e){let{clientId:t,blockContexts:r,className:n,style:o,itemProps:c,template:a,renderAppender:s,attachBlockProps:v=!0}=e;const[m,k]=(0,u.useState)(),_=(0,i.useSelect)((e=>e(l.store).getBlocks(t)),[t]),b=v?(0,l.useBlockProps)({className:n,style:o}):{style:o,className:n};return React.createElement("div",b,r&&r.map((e=>React.createElement(l.BlockContextProvider,{key:e.id,value:e},e.id===(m||r[0]?.id)&&React.createElement(p,d({template:a,renderAppender:s},c)),React.createElement(f,d({blocks:_,blockContextId:e.id,setActiveBlockContextId:k,isHidden:e.id===(m||r[0]?.id)},c))))))}const m=[["surecart/product-review-list-filter-checkbox"]],k=[{id:"5","surecart/checkbox/name":(0,s.__)("5 Stars (10)")},{id:"4","surecart/checkbox/name":(0,s.__)("4 Stars (5)")},{id:"3","surecart/checkbox/name":(0,s.__)("3 Stars (0)")},{id:"2","surecart/checkbox/name":(0,s.__)("2 Stars (0)")},{id:"1","surecart/checkbox/name":(0,s.__)("1 Star (2)")}];var _=JSON.parse('{"UU":"surecart/product-review-list-filter-checkboxes-template"}');(0,n.registerBlockType)(_.UU,{icon:a,edit:e=>{let{clientId:t,__unstableLayoutClassNames:r}=e;const n=(0,i.useSelect)((e=>e(l.store).getBlockCount(t))),o=(0,l.useBlockProps)({className:r});return React.createElement("div",o,React.createElement(v,{template:m,blockContexts:k,className:r,clientId:t,renderAppender:n?void 0:l.InnerBlocks.ButtonBlockAppender}))},save:function(){return React.createElement(l.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 a=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,l=0;l<r.length;l++)(!1&c||a>=c)&&Object.keys(n.O).every((function(e){return n.O[e](r[l])}))?r.splice(l--,1):(s=!1,c<a&&(a=c));if(s){e.splice(u--,1);var i=o();void 0!==i&&(t=i)}}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={870:0,9354:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,c,a=r[0],s=r[1],l=r[2],i=0;if(a.some((function(t){return 0!==e[t]}))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)var u=l(n)}for(t&&t(r);i<a.length;i++)c=a[i],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,[9354],(function(){return n(2226)}));o=n.O(o)}();