!function(){"use strict";var e,t={267:function(){window.wp.i18n;var e=window.wp.blockEditor,t=window.ReactJSXRuntime;const r=[["core/group",{align:"wide",style:{spacing:{margin:{bottom:"30px"}}},layout:{type:"flex",flexWrap:"nowrap",justifyContent:"space-between",verticalAlignment:"bottom"}},[["core/heading",{content:"Customer Reviews",textAlign:"center",level:3,className:"is-style-default",style:{typography:{fontSize:"34px"}}}]]],["core/columns",{align:"wide",style:{spacing:{blockGap:{top:"30px",left:"60px"}}}},[["core/column",{style:{spacing:{blockGap:"var:preset|spacing|40"}}},[["core/group",{fontSize:"medium"},[["site-reviews/summary",{assigned_posts:["post_id"],id:"rating-summary-id",labels:"5,4,3,2,1",text:"From {num} customer reviews"}]]],["core/group",{fontSize:"medium"},[["site-reviews/reviews",{assigned_posts:["post_id"],id:"reviews-id",pagination:"ajax",schema:1}]]]]],["core/column",{width:"36%",style:{spacing:{blockGap:"var:preset|spacing|40"}}},[["core/group",{anchor:"review-form",fontSize:"medium",style:{spacing:{padding:{top:"var:preset|spacing|40",bottom:"var:preset|spacing|40",left:"var:preset|spacing|30",right:"var:preset|spacing|30"}},border:{radius:"10px",color:"#9da4b030",width:"1px"}}},[["core/heading",{className:"is-style-text-subtitle",content:"Submit a Review",level:4}],["site-reviews/form",{assigned_posts:["post_id"],hide:["email"],reviews_id:"reviews-id",summary_id:"rating-summary-id"}]]]]]]]];var i=JSON.parse('{"UU":"site-reviews/surecart-product-reviews"}');(0,window.wp.blocks.registerBlockType)(i.UU,{edit:function(i){const{context:n}=i,{postId:o}=n,s=(0,e.useBlockProps)(),a=(0,e.useInnerBlocksProps)(s,{template:r,templateLock:"all"});return(0,t.jsx)("div",{...a})},icon:"admin-comments",save:function(){return(0,t.jsx)("div",{...e.useBlockProps.save(),children:(0,t.jsx)(e.InnerBlocks.Content,{})})}})}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.m=t,e=[],i.O=function(t,r,n,o){if(!r){var s=1/0;for(l=0;l<e.length;l++){r=e[l][0],n=e[l][1],o=e[l][2];for(var a=!0,c=0;c<r.length;c++)(!1&o||s>=o)&&Object.keys(i.O).every(function(e){return i.O[e](r[c])})?r.splice(c--,1):(a=!1,o<s&&(s=o));if(a){e.splice(l--,1);var p=n();void 0!==p&&(t=p)}}return t}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[r,n,o]},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={821:0,745:0};i.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,o,s=r[0],a=r[1],c=r[2],p=0;if(s.some(function(t){return 0!==e[t]})){for(n in a)i.o(a,n)&&(i.m[n]=a[n]);if(c)var l=c(i)}for(t&&t(r);p<s.length;p++)o=s[p],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return i.O(l)},r=self.webpackChunk=self.webpackChunk||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var n=i.O(void 0,[745],function(){return i(267)});n=i.O(n)}();