"use strict";exports.id=4302,exports.ids=[4302],exports.modules={84302:(e,s,t)=>{t.d(s,{Z:()=>i});var n=t(60080),o=t(9885),a=t(67932),l=t(23161),r=t(6170);function i({rating:e,setRating:s,readOnly:t=!1,size:i=20}){let[c,u]=(0,o.useState)(0),d=c||e;return n.jsx("div",{className:"flex gap-1",children:[1,2,3,4,5].map(e=>n.jsx(r.E.button,{type:"button",whileHover:{scale:t?1:1.2},whileTap:{scale:t?1:.9},onClick:()=>!t&&s&&s(e),onMouseEnter:()=>!t&&u(e),onMouseLeave:()=>!t&&u(0),className:(0,l.cn)("focus:outline-none transition-colors duration-200",t?"cursor-default":"cursor-pointer"),disabled:t,children:n.jsx(a.Z,{size:i,className:(0,l.cn)("transition-all",e<=d?"fill-[#D4AF37] text-[#D4AF37]":"fill-transparent text-gray-300")})},e))})}}};