"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[3074],{693:function(r,s,a){a.r(s),a.d(s,{sc_review_stars:function(){return c}});var t=a(3029),e=a(2901),i=a(7364),c=function(){return(0,e.A)((function r(s){(0,t.A)(this,r),(0,i.r)(this,s),this.rating=0,this.size=20}),[{key:"render",value:function(){var r=this,s=Math.floor(this.rating),a=s<this.rating,t=Array.from({length:5}).map((function(t,e){var c=e+1,n=c<=s,o=a&&c===s+1;return(0,i.h)("sc-icon",{name:o?"half-star":"star",class:{"full-star":n,"half-star":o,"empty-star":!n&&!o},style:{width:"".concat(r.size,"px"),height:"".concat(r.size,"px")}})}));return(0,i.h)("div",{part:"base"},t)}}])}();c.style=":host{display:flex;gap:var(--star-gap, 2px);--sc-review-stars-primary:var(--sc-color-gray-500)}sc-icon.full-star::part(svg){fill:var(--sc-review-stars-primary);stroke:var(--sc-review-stars-primary);color:var(--sc-review-stars-primary)}sc-icon.half-star::part(svg){stroke:var(--sc-review-stars-primary);color:var(--sc-review-stars-primary)}sc-icon.empty-star::part(svg){color:var(--sc-review-stars-primary)}"}}]);