1import{e as g,$ as C,j as i,f as r,W as p,F as H,E as M,m as w,v,u,a0 as h,d}from"./B6xHcVwH.js";const k=["width"],V=["onMouseover","onClick"],$=["onMouseover","onClick"],x=g({__name:"ZaprooRating",props:h({starsCount:{default:5},maxModelValue:{default:5},size:{default:16},fillColor:{default:"#FFC633"},emptyColor:{default:"#e5e5e5"},allowHalf:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:h(["starHover","starClick"],["update:modelValue"]),setup(o){const f=C(o,"modelValue"),t=o,n=d(()=>t.maxModelValue/t.starsCount),m=d(()=>new Array(t.starsCount).fill(0).map((l,a)=>({index:a,num:1+a,weight:(1+a)*n.value,weightHalf:(1+a)*n.value-n.value/2}))),c=d(()=>m.value.map(l=>f.value>=l.weight?2:t.allowHalf&&l.weightHalf<=f.value?1:0));return(l,a)=>(i(),r("div",{class:"rating",style:p({"--size":o.size,"--fill-color":o.fillColor,"--empty-color":o.emptyColor})},[(i(!0),r(H,null,M(u(m),e=>(i(),r("svg",{key:e.index,width:o.size,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 22 21"},[w("path",{class:v({filled:[2,1].includes(u(c)[e.index])}),d:"M10.737 16.731V0L7.538 6.887 0 7.801l5.562 5.17-1.46 7.452 6.635-3.692Z",onMouseover:s=>l.$emit("starHover",t.allowHalf?e.weightHalf:e.weight),onClick:s=>l.$emit("starClick",t.allowHalf?e.weightHalf:e.weight)},null,42,V),w("path",{class:v({filled:[2].includes(u(c)[e.index])}),d:"M10.736 16.731V0l3.198 6.887 7.539.914-5.562 5.17 1.46 7.452-6.635-3.692Z",onMouseover:s=>l.$emit("starHover",e.weight),onClick:s=>l.$emit("starClick",e.weight)},null,42,$)],8,k))),128))],4))}});export{x 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.