import{j as a,m as $,n as j,f as R,cY as g,o as n,q as B,r as d,t as P,v as w,w as M,y as f,cX as z}from"./index-6f149d0c.js";import{S as O}from"./SwitchBase-2c6e76be.js";import{c as u}from"./Grow-aea427ae.js";const H=u(a.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),V=u(a.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),E=u(a.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function U(e){return $("MuiCheckbox",e)}const F=j("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),m=F,L=e=>{const{classes:o,indeterminate:t,color:s,size:r}=e,i={root:["root",t&&"indeterminate",`color${n(s)}`,`size${n(r)}`]},l=M(i,U,o);return{...o,...l}},N=R(O,{shouldForwardProp:e=>g(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.indeterminate&&o.indeterminate,o[`size${n(t.size)}`],t.color!=="default"&&o[`color${n(t.color)}`]]}})(B(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:f(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(z()).map(([o])=>({props:{color:o,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:f(e.palette[o].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(z()).map(([o])=>({props:{color:o},style:{[`&.${m.checked}, &.${m.indeterminate}`]:{color:(e.vars||e).palette[o].main},[`&.${m.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),q=a.jsx(V,{}),D=a.jsx(H,{}),T=a.jsx(E,{}),X=d.forwardRef(function(o,t){const s=P({props:o,name:"MuiCheckbox"}),{checkedIcon:r=q,color:i="primary",icon:l=D,indeterminate:c=!1,indeterminateIcon:x=T,inputProps:y,size:p="medium",disableRipple:h=!1,className:I,...S}=s,v=c?x:l,C=c?x:r,k={...s,disableRipple:h,color:i,indeterminate:c,size:p},b=L(k);return a.jsx(N,{type:"checkbox",inputProps:{"data-indeterminate":c,...y},icon:d.cloneElement(v,{fontSize:v.props.fontSize??p}),checkedIcon:d.cloneElement(C,{fontSize:C.props.fontSize??p}),ownerState:k,ref:t,className:w(b.root,I),disableRipple:h,...S,classes:b})}),J=X;export{J as C};
