1import{d as p,B as f,o as n,c as i,F as c,y as u,I as m,a as o}from"./entry.fcc3f972.js";const h=["aria-label"],y=["width","height"],_=["id"],g=["offset","stop-color"],C=["offset","stop-color"],$=["fill"],F=p({__name:"StarRating",props:{value:{default:0},size:{default:18},gap:{default:2},fillColor:{default:"#FACC15"},emptyColor:{default:"#E5E7EB"}},setup(d){const t=d,s=f(()=>`${Number(t.value??0).toFixed(1).replace(".","-")}-${t.fillColor.replace("#","")}-${t.emptyColor.replace("#","")}`),a=e=>{const r=parseFloat((Number(t.value)||0).toFixed(1));return`${Math.max(0,Math.min(1,r-(e-1)))*100}%`};return(e,r)=>(n(),i("span",{class:"star-rating-display",style:m({display:"inline-flex",alignItems:"center",gap:e.gap+"px"}),role:"img","aria-label":`${Number(e.value||0).toFixed(1)} / 5`},[(n(),i(c,null,u(5,l=>o("svg",{key:l,width:e.size,height:e.size,viewBox:"0 0 24 24",style:{display:"block","flex-shrink":"0"}},[o("defs",null,[o("linearGradient",{id:`sr-${s.value}-${l}`,x1:"0",y1:"0",x2:"1",y2:"0"},[o("stop",{offset:a(l),"stop-color":e.fillColor},null,8,g),o("stop",{offset:a(l),"stop-color":e.emptyColor},null,8,C)],8,_)]),o("path",{d:"M12 2l2.9 6.3 6.9.6-5.2 4.6 1.6 6.7L12 17.3 5.8 20.8l1.6-6.7L2.2 8.9l6.9-.6z",fill:`url(#sr-${s.value}-${l})`},null,8,$)],8,y)),64))],12,h))}});export{F as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.