import{j as s,n as w,o as B,f as M,d5 as O,q as r,t as F,r as m,v as H,y as V,w as E,dq as U,x as q,z as S,d4 as I}from"./index-c3f592b2.js";import{S as L}from"./SwitchBase-38103115.js";import{c as h}from"./Grow-f61cc5ca.js";const N=h(s.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"),T=h(s.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"),D=h(s.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 A(e){return w("MuiCheckbox",e)}const G=B("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),x=G,J=e=>{const{classes:o,indeterminate:t,color:a,size:c}=e,i={root:["root",t&&"indeterminate",`color${r(a)}`,`size${r(c)}`]},l=q(i,A,o);return{...o,...l}},K=M(L,{shouldForwardProp:e=>O(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.indeterminate&&o.indeterminate,o[`size${r(t.size)}`],t.color!=="default"&&o[`color${r(t.color)}`]]}})(F(({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})`:S(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(I()).map(([o])=>({props:{color:o,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:S(e.palette[o].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(I()).map(([o])=>({props:{color:o},style:{[`&.${x.checked}, &.${x.indeterminate}`]:{color:(e.vars||e).palette[o].main},[`&.${x.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Q=s.jsx(T,{}),W=s.jsx(N,{}),X=s.jsx(D,{}),Y=m.forwardRef(function(o,t){const a=H({props:o,name:"MuiCheckbox"}),{checkedIcon:c=Q,color:i="primary",icon:l=W,indeterminate:n=!1,indeterminateIcon:C=X,inputProps:P,size:p="medium",disableRipple:v=!1,className:$,slots:k={},slotProps:f={},...j}=a,b=n?C:l,y=n?C:c,d={...a,disableRipple:v,color:i,indeterminate:n,size:p},z=J(d),u=f.input??P,[g,R]=V("root",{ref:t,elementType:K,className:E(z.root,$),shouldForwardComponentProp:!0,externalForwardedProps:{slots:k,slotProps:f,...j},ownerState:d,additionalProps:{type:"checkbox",icon:m.cloneElement(b,{fontSize:b.props.fontSize??p}),checkedIcon:m.cloneElement(y,{fontSize:y.props.fontSize??p}),disableRipple:v,slots:k,slotProps:{input:U(typeof u=="function"?u(d):u,{"data-indeterminate":n})}}});return s.jsx(g,{...R,classes:z})}),oe=Y;export{oe as C};
