1import{t as f}from"./BQ-_32WO.js";import{L as g,P as s,c as v,f as i,g as p,lt as h,nt as _,r as y,wt as b}from"./C89sYm7w.js";import{r as R}from"./B1NkGjfw.js";import{t as x}from"./BN9Ca40y.js";import{t as I}from"./K9rsuiWd.js";var L=f({default:()=>k}),M=["aria-label"],N=["onMouseenter"],V={__name:"Rating",props:{modelValue:{type:Number,default:5},length:{type:Number,default:5},min:{type:Number,default:3},hover:{type:Boolean,default:!1}},setup(t){const l=t,c=R("ratingIcon"),a=_(0),u=v(()=>{if(a.value>0)return a.value;const n=l.modelValue/(10/l.length);return Math.max(n,l.min)}),m=n=>{const o=n<=u.value,e=c.value;return typeof e=="object"&&e!==null?o?e.filled||"heroicons:star-solid":e.unfilled||"heroicons:star":e||"heroicons:star-solid"};return(n,o)=>{const e=x;return s(),i("div",{class:"rating-container",role:"img","aria-label":`Rating: ${t.modelValue} out of 10`},[(s(!0),i(y,null,g(t.length,r=>(s(),i("span",{key:r,class:b(["rating-star",r<=h(u)?"rating-filled":"rating-empty"]),onMouseenter:d=>t.hover&&(a.value=r),onMouseleave:o[0]||(o[0]=d=>t.hover&&(a.value=0))},[p(e,{name:m(r),class:"w-6 h-6","aria-hidden":"true"},null,8,["name"])],42,N))),128))],8,M)}}},k=I(V,[["__scopeId","data-v-bc1202d0"]]);export{L as n,k as t};
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.