import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{ht as r,t as i,x as a,y as o}from"./dist-DtfJeYQK.js";import{t as s}from"./jsx-runtime-C2wGStra.js";import{n as c,t as l}from"./dist-Cc1j9Pjk.js";import{a as u,c as d,i as f,n as p,o as m,r as h,s as g,t as _}from"./Stars-BU2A8ygV.js";var v,y,b=t((()=>{e(n(),1),l(),i(),d(),u(),h(),p(),v=s(),y=function({size:e=`large`,value:t,dataset:n}){let i=m(t),{ariaValueText:s}=f(i);return(0,v.jsx)(`div`,{className:o(g,`rating`,[a(`size`,e)]).join(` `),...r(n,{preplyDsComponent:c.Rating}),role:`img`,"aria-label":s,children:(0,v.jsx)(_,{filledPerc:i/5})})};try{y.displayName=`Rating`,y.__docgenInfo={description:`A component that visualizes the current rating.`,displayName:`Rating`,props:{value:{defaultValue:null,description:`Can be half values.`,name:`value`,required:!0,type:{name:`number`}},size:{defaultValue:{value:`large`},description:``,name:`size`,required:!1,type:{name:`enum`,value:[{value:`"small"`},{value:`"medium"`},{value:`"large"`},{value:`ResponsiveProp<"small" | "medium" | "large">`}]}},dataset:{defaultValue:null,description:`Sets data attributes on the DOM element.
@example <Rating dataset={{ 'qa-id': 'accept-conditions' }} /> // will add data-qa-id="accept-conditions" to the HTML element`,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}}}}}catch{}}));export{b as n,y as t};