!function(){"use strict";var e,t={7005:function(e,t,r){var o=r(1609),n=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var o,c={},s=null,u=null;for(o in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,o)&&!i.hasOwnProperty(o)&&(c[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===c[o]&&(c[o]=t[o]);return{$$typeof:n,type:e,key:s,ref:u,props:c,_owner:l.current}}},9255:function(e,t,r){e.exports=r(7005)},5381:function(e,t,r){var o=window.wp.blocks,n=window.wp.primitives,a=r(9255),l=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})}),i=window.wp.i18n,c=window.wp.blockEditor,s=window.wp.components,u=JSON.parse('{"UU":"surecart/product-review-total-rating"}');(0,o.registerBlockType)(u.UU,{icon:l,edit:e=>{let{attributes:t,setAttributes:r}=e;const{show_label:o,show_for_zero_reviews:n,link_to_reviews:a}=t,l=(0,c.useBlockProps)({className:"has-multiple-reviews"});return React.createElement(React.Fragment,null,React.createElement(c.InspectorControls,null,React.createElement(s.PanelBody,{title:(0,i.__)("Settings","surecart")},React.createElement(s.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,i.__)("Show label text","surecart"),help:(0,i.__)('Toggle off to hide the label text, e.g. "reviews".',"surecart"),onChange:e=>r({show_label:e}),checked:o}),React.createElement(s.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,i.__)("Show for zero reviews","surecart"),help:(0,i.__)("Toggle off to hide the total rating if there are no reviews.","surecart"),onChange:e=>r({show_for_zero_reviews:e}),checked:n}),React.createElement(s.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,i.__)("Link to reviews","surecart"),help:(0,i.__)("Toggle on to link to the reviews section.","surecart"),onChange:e=>r({link_to_reviews:e}),checked:a}))),React.createElement("div",l,React.createElement("span",{className:"sc-review-count"},"42")," ",o&&(0,i.__)("reviews","surecart")))}})},1609:function(e){e.exports=window.React}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=function(t,r,n,a){if(!r){var l=1/0;for(u=0;u<e.length;u++){r=e[u][0],n=e[u][1],a=e[u][2];for(var i=!0,c=0;c<r.length;c++)(!1&a||l>=a)&&Object.keys(o.O).every((function(e){return o.O[e](r[c])}))?r.splice(c--,1):(i=!1,a<l&&(l=a));if(i){e.splice(u--,1);var s=n();void 0!==s&&(t=s)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,n,a]},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={630:0,5386:0};o.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,a,l=r[0],i=r[1],c=r[2],s=0;if(l.some((function(t){return 0!==e[t]}))){for(n in i)o.o(i,n)&&(o.m[n]=i[n]);if(c)var u=c(o)}for(t&&t(r);s<l.length;s++)a=l[s],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.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 n=o.O(void 0,[5386],(function(){return o(5381)}));n=o.O(n)}();