import{j as s,bh as w,bi as M,d as O,by as B,bo as n,bj as F,r as u,bk as H,bl as V,bm as E,bx as U,bn as L,e as S,bp as P}from"./index-76d4793e.js";import{S as N}from"./SwitchBase-25e1ee17.js";import{c as x}from"./createSvgIcon-01ec10fc.js";const T=x(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"})),D=x(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"})),q=x(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"}));function A(e){return w("MuiCheckbox",e)}const G=M("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),m=G,J=e=>{const{classes:o,indeterminate:t,color:a,size:c}=e,i={root:["root",t&&"indeterminate",`color${n(a)}`,`size${n(c)}`]},l=L(i,A,o);return{...o,...l}},K=O(N,{shouldForwardProp:e=>B(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)}`]]}})(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(P()).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(P()).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=s.jsx(D,{}),W=s.jsx(T,{}),X=s.jsx(q,{}),Y=u.forwardRef(function(o,t){const a=H({props:o,name:"MuiCheckbox"}),{checkedIcon:c=Q,color:i="primary",icon:l=W,indeterminate:r=!1,indeterminateIcon:h=X,inputProps:I,size:p="medium",disableRipple:v=!1,className:$,slots:C={},slotProps:f={},...j}=a,k=r?h:l,y=r?h:c,d={...a,disableRipple:v,color:i,indeterminate:r,size:p},z=J(d),b=f.input??I,[g,R]=V("root",{ref:t,elementType:K,className:E(z.root,$),shouldForwardComponentProp:!0,externalForwardedProps:{slots:C,slotProps:f,...j},ownerState:d,additionalProps:{type:"checkbox",icon:u.cloneElement(k,{fontSize:k.props.fontSize??p}),checkedIcon:u.cloneElement(y,{fontSize:y.props.fontSize??p}),disableRipple:v,slots:C,slotProps:{input:U(typeof b=="function"?b(d):b,{"data-indeterminate":r})}}});return s.jsx(g,{...R,classes:z})}),oe=Y;export{oe as C};
