!function(){"use strict";var e={7005:function(e,r,t){var a=t(1609),o=Symbol.for("react.element"),n=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};r.jsx=function(e,r,t){var a,l={},p=null,c=null;for(a in void 0!==t&&(p=""+t),void 0!==r.key&&(p=""+r.key),void 0!==r.ref&&(c=r.ref),r)n.call(r,a)&&!i.hasOwnProperty(a)&&(l[a]=r[a]);if(e&&e.defaultProps)for(a in r=e.defaultProps)void 0===l[a]&&(l[a]=r[a]);return{$$typeof:o,type:e,key:p,ref:c,props:l,_owner:s.current}}},9255:function(e,r,t){e.exports=t(7005)},1609:function(e){e.exports=window.React}},r={};function t(a){var o=r[a];if(void 0!==o)return o.exports;var n=r[a]={exports:{}};return e[a](n,n.exports,t),n.exports}!function(){var e=window.wp.blocks,r=window.wp.primitives,a=t(9255),o=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.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"})}),n=window.wp.blockEditor;window.wp.i18n;var s=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"surecart/product-review-summary","title":"Product Review Summary","description":"Display the product review summary.","version":"1.0.0","category":"surecart-product-page","example":{},"supports":{"interactivity":true,"layout":true,"align":true,"color":{"gradients":true,"link":false,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"blockGap":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontWeight":true}},"textdomain":"surecart","render":"file:./view.php","editorScript":"file:./index.js","style":["surecart-block-ui","surecart-spinner"]}');(0,e.registerBlockType)(s,{icon:o,edit:function(){const e=(0,n.useBlockProps)({className:"sc-lightbox-overlay"}),r=(0,n.useInnerBlocksProps)(e,{template:[["core/group",{style:{color:{background:"#f7f9fb"},spacing:{padding:{top:"var:preset|spacing|60",bottom:"var:preset|spacing|60",left:"var:preset|spacing|60",right:"var:preset|spacing|60"},margin:{bottom:"var:preset|spacing|50"}}},layout:{type:"flex",flexWrap:"nowrap"}},[["core/group",{style:{spacing:{padding:{top:"var:preset|spacing|50",bottom:"var:preset|spacing|50",left:"var:preset|spacing|50",right:"var:preset|spacing|50"},blockGap:"var:preset|spacing|30"},layout:{selfStretch:"fill",flexSize:null}},layout:{type:"flex",selfStretch:"fill",flexWrap:"nowrap",orientation:"vertical"}},[["surecart/product-review-average-rating-value",{className:"is-style-slash",style:{typography:{fontStyle:"normal",fontWeight:"600"}},fontSize:"large"}],["surecart/product-review-average-rating-stars"]],["core/group",{style:{spacing:{blockGap:"var:preset|spacing|20"}},layout:{type:"flex",flexWrap:"nowrap"}},[["surecart/product-review-total-rating",{className:"is-style-plus-sign",style:{spacing:{blockGap:"var:preset|spacing|20",margin:{right:"0",left:"0"},padding:{right:"0",left:"0"}}}}]]]]],["surecart/product-review-breakdown",{columns:1,row_gap:2,className:"is-style-default",style:{layout:{selfStretch:"fill",flexSize:null}},layout:{type:"flex",justifyContent:"left",orientation:"horizontal"}}]]]});return React.createElement("div",r)},save:function(){return React.createElement(n.InnerBlocks.Content,null)}})}()}();