(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[12],{260:function(t,e,c){"use strict";c.r(e);var n=c(0),a=(c(10),c(1)),o=c(4),r=c.n(o),s=c(29),u=c(54);c(300);e.default=Object(u.withProductDataContext)(t=>{let{className:e}=t;const{parentClassName:c}=Object(s.useInnerBlockLayoutContext)(),{product:o}=Object(s.useProductDataContext)(),u=(t=>{const e=parseFloat(t.average_rating);return Number.isFinite(e)&&e>0?e:0})(o);if(!u)return null;const l={width:u/5*100+"%"},i=Object(a.sprintf)(
/* translators: %f is referring to the average rating value */
Object(a.__)("Rated %f out of 5",'woocommerce'),u);return Object(n.createElement)("div",{className:r()(e,"wc-block-components-product-rating",{[c+"__product-rating"]:c})},Object(n.createElement)("div",{className:r()("wc-block-components-product-rating__stars",c+"__product-rating__stars"),role:"img","aria-label":i},Object(n.createElement)("span",{style:l},i)))})},300:function(t,e){}}]);