import{c as s,s as a,a6 as e,q as l,H as t,I as m,y as o,v as c,x as n,z as i,A as r,C as d,F as u,b0 as p,L as v,e as f,Q as g,B as _,b1 as b,bW as x,G as j}from"./base-lib.js?v=1761009159";import{S}from"./validator.js?v=1761009159";import{_ as y}from"./utils-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const k={class:"flex flex-col p-[2rem]"},C={class:"commentTitle"},P={class:"commentLeft"},h={class:"commentNum"},A={class:"commentNumTips"},B={class:"commentUserCount"},L={class:"commentPartake"},V={class:"commentRate"},w={class:"commentRight"},z={class:"commentStar"},F={class:"commentProgress"},G={class:"flex flex-col items-center"},H={class:"mt-[2rem]"},I=y(s({__name:"index",setup(s){const{getComment:y,getDetail:I,onSubmitScore:N,$reset_score:R}=S(),{loading:T,pluginScore:U,score:q}=a(S());return e(R),l(I),(s,a)=>{const e=b,l=x,S=j,I=t("bt-loading");return m((c(),n("div",k,[i("div",C,[i("div",P,[i("div",h,r(o(U).avg||"0.0"),1),i("ul",A,[i("li",null,[a[1]||(a[1]=d(" 使用人数 ",-1)),i("span",B,r(o(U).count),1)]),i("li",null,[a[2]||(a[2]=d(" 共 ",-1)),i("span",L,r(o(U).total),1),a[3]||(a[3]=d(" 人参与评分 ",-1))]),i("li",null,[i("span",V,r(o(U).rate)+"%",1),a[4]||(a[4]=d(" 好评率 ",-1))])])]),i("div",w,[(c(),n(u,null,p(5,s=>i("div",{key:s,class:"commentStarGroup"},[i("div",z,[(c(!0),n(u,null,p(5-s+1,s=>(c(),n("span",{key:s,class:"svgtofont-el-star-filled text-[#F6BA2A]","aria-hidden":"true"}))),128))]),i("div",F,[i("div",{class:"commentProgressBgw",style:v({width:"".concat(o(U).starList[s-1],"%")})},null,4),a[5]||(a[5]=i("div",{class:"commentProgressSpeed"},null,-1))])])),64))])]),f(e,{class:"mt-[0rem] mb-[2rem]"}),i("div",G,[f(l,{class:"",modelValue:o(q),"onUpdate:modelValue":a[0]||(a[0]=s=>g(q)?q.value=s:null)},null,8,["modelValue"]),i("div",H,r(o(y)(o(q)))+":"+r(o(q))+"分",1),f(S,{type:"primary",class:"submit",size:"large",title:"参与评分",onClick:o(N)},{default:_(()=>a[6]||(a[6]=[d("参与评分",-1)])),_:1,__:[6]},8,["onClick"])])])),[[I,o(T)],[I,"正在获取插件评分，请稍候...","title"]])}}}),[["__scopeId","data-v-d0affdfc"]]);export{I as default};
