(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[12],{535:function(t,e,c){"use strict";c.r(e);var a=c(8),n=c.n(a),r=c(0),o=(c(2),c(1)),s=c(7),u=c.n(s),i=c(45),l=c(73),p=(c(555),function(t){var e=parseFloat(t.average_rating);return Number.isFinite(e)&&e>0?e:0});e.default=Object(l.withProductDataContext)((function(t){var e=t.className,c=Object(i.useInnerBlockLayoutContext)().parentClassName,a=Object(i.useProductDataContext)().product,s=p(a);if(!s)return null;var l={width:s/5*100+"%"},b=Object(o.sprintf)(Object(o.__)("Rated %f out of 5",'woocommerce'),s);return Object(r.createElement)("div",{className:u()(e,"star-rating","wc-block-components-product-rating",n()({},"".concat(c,"__product-rating"),c))},Object(r.createElement)("div",{className:u()("wc-block-components-product-rating__stars","".concat(c,"__product-rating__stars")),role:"img","aria-label":b},Object(r.createElement)("span",{style:l},b)))}))},555:function(t,e){}}]);