"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),i=require("../../utils/cn/cn.cjs.js"),r=require("../../src/components/RatingStars/ratingStars.module.css"),l=require("../Icon/Icon.cjs.js"),c=require("../Icon/constants.cjs.js"),u=(e,n)=>{const t=n<Math.floor(e),o=!t&&n<e;return t?c.EIconName.STAR_FILL:o?c.EIconName.STAR_HALF:c.EIconName.STAR_OUTLINE},m=({rating:e,className:n,size:t})=>s.jsx("div",{className:i.cn(r.stars,n),"data-size":t,children:Array.from({length:5}).map((o,a)=>s.jsx("div",{className:r.starContainer,children:s.jsx(l.Icon,{name:u(e,a),className:r.starIcon})},a))});exports.RatingStars=m;
