Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
build
/
atomic-block-components
:
rating.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[13],{531:function(t,e,c){"use strict";c.r(e);var a=c(4),n=c.n(a),r=c(0),o=(c(2),c(1)),s=c(7),u=c.n(s),i=c(38),l=c(69),p=(c(549),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,"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)))}))},549:function(t,e){}}]);