(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[48],{114:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n(103);var r=n(47);const s=()=>r.m>1},135:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return b}));var r=n(72),s=n(114),c=n(61),o=n(63);const a=t=>Object(c.a)(t)?JSON.parse(t)||{}:Object(o.a)(t)?t:{},i=t=>{if(!Object(s.a)()||"function"!=typeof r.__experimentalGetSpacingClassesAndStyles)return{style:{}};const e=Object(o.a)(t)?t:{},n=a(e.style);return Object(r.__experimentalGetSpacingClassesAndStyles)({...e,style:n})},u=t=>{const e=Object(o.a)(t)?t:{},n=a(e.style),r=Object(o.a)(n.typography)?n.typography:{};return{style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:r.fontSize,lineHeight:r.lineHeight,fontWeight:r.fontWeight,textTransform:r.textTransform,fontFamily:e.fontFamily}}},l=t=>{if(!Object(s.a)())return{className:"",style:{}};const e=Object(o.a)(t)?t:{},n=a(e.style);return Object(r.__experimentalUseColorProps)({...e,style:n})},b=t=>{if(!Object(s.a)())return{className:"",style:{}};const e=Object(o.a)(t)?t:{},n=a(e.style);return Object(r.__experimentalUseBorderProps)({...e,style:n})}},330:function(t,e){},378:function(t,e,n){"use strict";n.r(e);var r=n(0),s=(n(8),n(1)),c=n(4),o=n.n(c),a=n(46),i=n(118),u=(n(330),n(135));e.default=Object(i.withProductDataContext)(t=>{const{className:e}=t,{parentClassName:n}=Object(a.useInnerBlockLayoutContext)(),{product:c}=Object(a.useProductDataContext)(),i=(t=>{const e=parseFloat(t.average_rating);return Number.isFinite(e)&&e>0?e:0})(c),l=Object(u.b)(t);if(!i)return null;const b={width:i/5*100+"%"},f=Object(s.sprintf)(
/* translators: %f is referring to the average rating value */
Object(s.__)("Rated %f out of 5",'woocommerce'),i),p=(t=>{const e=parseInt(t.review_count,10);return Number.isFinite(e)&&e>0?e:0})(c),d={__html:Object(s.sprintf)(
/* translators: %1$s is referring to the average rating value, %2$s is referring to the number of ratings */
Object(s._n)("Rated %1$s out of 5 based on %2$s customer rating","Rated %1$s out of 5 based on %2$s customer ratings",p,'woocommerce'),Object(s.sprintf)('<strong class="rating">%f</strong>',i),Object(s.sprintf)('<span class="rating">%d</span>',p))};return Object(r.createElement)("div",{className:o()(e,l.className,"wc-block-components-product-rating",{[n+"__product-rating"]:n}),style:l.style},Object(r.createElement)("div",{className:o()("wc-block-components-product-rating__stars",n+"__product-rating__stars"),role:"img","aria-label":f},Object(r.createElement)("span",{style:b,dangerouslySetInnerHTML:d})))})},63:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s}));const r=t=>!(t=>null===t)(t)&&t instanceof Object&&t.constructor===Object;function s(t,e){return r(t)&&e in t}}}]);