import{X as u,o as s,E as l,K as d,d as h,aj as w,ak as k,j as b,f as g,S as y,ai as $,n as x,ae as B,G as C,x as I}from"./uWTF-yrm.js";import M from"./CB4L5qjc.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="230c367a-c2e7-4278-83db-78b69b245362",o._sentryDebugIdIdentifier="sentry-dbid-230c367a-c2e7-4278-83db-78b69b245362")}catch{}})();const V={},D={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L=d("path",{"clip-rule":"evenodd",d:"m12.648 2.4 2.975 5.891 5.725.567a.724.724 0 0 1 .61.474.713.713 0 0 1-.17.748l-4.715 4.67 1.747 6.344a.713.713 0 0 1-.24.744.73.73 0 0 1-.783.086L12 19.054l-5.797 2.87a.73.73 0 0 1-.782-.087.713.713 0 0 1-.24-.743L6.93 14.75l-4.716-4.67a.713.713 0 0 1-.171-.75.724.724 0 0 1 .611-.473l5.724-.568 2.972-5.89A.725.725 0 0 1 12 2c.275 0 .527.155.649.4Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),j=[L];function A(o,n){return s(),l("svg",D,j)}const E=u(V,[["render",A]]),S={},Y={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Z=d("path",{"clip-rule":"evenodd",d:"m12.648 2.4 2.975 5.891 5.725.567a.724.724 0 0 1 .61.474.713.713 0 0 1-.17.748l-4.715 4.67 1.747 6.344a.713.713 0 0 1-.24.744.73.73 0 0 1-.783.086L12 19.054l-5.797 2.87a.73.73 0 0 1-.782-.087.713.713 0 0 1-.24-.743L6.93 14.75l-4.716-4.67a.713.713 0 0 1-.171-.75.724.724 0 0 1 .611-.473l5.724-.568 2.972-5.89A.725.725 0 0 1 12 2c.275 0 .527.155.649.4Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),H=d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.999 2.222H12v16.676l-5.667 2.806a.714.714 0 0 1-.765-.085.698.698 0 0 1-.235-.726l1.709-6.204-4.61-4.565a.697.697 0 0 1-.168-.734.71.71 0 0 1 .598-.463l5.596-.555 2.906-5.759a.708.708 0 0 1 .635-.39Z",fill:"currentColor"},null,-1),z=[Z,H];function F(o,n){return s(),l("svg",Y,z)}const G=u(S,[["render",F]]),K=["onClick","onMouseover"],X=h({__name:"YscRating",props:w({rating:{default:5},small:{type:Boolean,default:!1},editable:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const n=o,r=k(o,"modelValue"),a=b(),f=g(()=>[...Array(n.rating).keys()].map(e=>{const t=a.value??r.value??1;return e+1<=t?M:e<t&&t<e+1?G:E})),_=e=>{n.editable&&e>0&&(r.value=e)},m=e=>{n.editable&&(a.value=e)},v=()=>{a.value=void 0};return(e,t)=>(s(),l("div",{class:"flex items-center",onMouseleave:t[0]||(t[0]=i=>v())},[(s(!0),l(y,null,$(I(f),(i,c)=>(s(),l("div",{key:c,onClick:p=>_(c+1),onMouseover:p=>m(c+1)},[(s(),x(C(i),{class:B(["text-current",[e.small?"h-5 w-5":"h-8 w-8",{"cursor-pointer":e.editable}]])},null,8,["class"]))],40,K))),128))],32))}});export{X as _}; //# sourceMappingURL=DM63eE2b.js.map