const e=require("../_util/vue-types/index.js");let t=require("vue");var n={value:Number,index:Number,prefixCls:String,allowHalf:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},character:e.default.any,characterRender:Function,focused:{type:Boolean,default:void 0},count:Number,onClick:Function,onHover:Function},r=(0,t.defineComponent)({compatConfig:{MODE:3},name:`Star`,inheritAttrs:!1,props:n,emits:[`hover`,`click`],setup(e,{emit:n}){let r=t=>{let{index:r}=e;n(`hover`,t,r)},i=t=>{let{index:r}=e;n(`click`,t,r)},a=t=>{let{index:r}=e;t.keyCode===13&&n(`click`,t,r)},o=(0,t.computed)(()=>{let{prefixCls:t,index:n,value:r,allowHalf:i,focused:a}=e,o=n+1,s=t;return r===0&&n===0&&a?s+=` ${t}-focused`:i&&r+.5>=o&&r<o?(s+=` ${t}-half ${t}-active`,a&&(s+=` ${t}-focused`)):(s+=o<=r?` ${t}-full`:` ${t}-zero`,o===r&&a&&(s+=` ${t}-focused`)),s});return()=>{let{disabled:n,prefixCls:s,characterRender:c,character:l,index:u,count:d,value:f}=e,p=typeof l==`function`?l({disabled:n,prefixCls:s,index:u,count:d,value:f}):l,m=(0,t.createVNode)(`li`,{class:o.value},[(0,t.createVNode)(`div`,{onClick:n?null:i,onKeydown:n?null:a,onMousemove:n?null:r,role:`radio`,"aria-checked":f>u?`true`:`false`,"aria-posinset":u+1,"aria-setsize":d,tabindex:n?-1:0},[(0,t.createVNode)(`div`,{class:`${s}-first`},[p]),(0,t.createVNode)(`div`,{class:`${s}-second`},[p])])]);return c&&(m=c(m,e)),m}}});exports.default=r,exports.starProps=n;