(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[28],{302:function(t,e,n){"use strict";n.r(e);var s=n(0),c=n(1),r=n(4),a=n.n(r),o=n(29),u=n(138),i=n(123),l=n(215),b=n(58);n(333);e.default=Object(b.withProductDataContext)(t=>{const{parentClassName:e}=Object(o.useInnerBlockLayoutContext)(),{product:n}=Object(o.useProductDataContext)(),r=(t=>{const e=parseFloat(t.average_rating);return Number.isFinite(e)&&e>0?e:0})(n),b=Object(u.a)(t),p=Object(i.a)(t),d=Object(l.a)(t);if(!r)return null;const g={width:r/5*100+"%"},j=Object(c.sprintf)(
/* translators: %f is referring to the average rating value */
Object(c.__)("Rated %f out of 5","woocommerce"),r),m=(t=>{const e=parseInt(t.review_count,10);return Number.isFinite(e)&&e>0?e:0})(n),O={__html:Object(c.sprintf)(
/* translators: %1$s is referring to the average rating value, %2$s is referring to the number of ratings */
Object(c._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",m,"woocommerce"),Object(c.sprintf)('<strong class="rating">%f</strong>',r),Object(c.sprintf)('<span class="rating">%d</span>',m))};return Object(s.createElement)("div",{className:a()(b.className,"wc-block-components-product-rating",{[e+"__product-rating"]:e}),style:{...b.style,...p.style,...d.style}},Object(s.createElement)("div",{className:a()("wc-block-components-product-rating__stars",e+"__product-rating__stars"),role:"img","aria-label":j},Object(s.createElement)("span",{style:g,dangerouslySetInnerHTML:O})))})},333:function(t,e){}}]);