import{j as s,cF as M,cG as w,f as O,cS as F,cH as r,cI as H,r as m,cJ as B,cK as V,cL as E,cT as U,cM as L,o as z,cN as I}from"./index-55b8aeb0.js";import{S as N}from"./SwitchBase-02f489c2.js";import{c as v}from"./createSvgIcon-61f1439a.js";const T=v(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=v(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"})),G=v(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 J(e){return M("MuiCheckbox",e)}const K=w("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),x=K,q=e=>{const{classes:o,indeterminate:t,color:a,size:n}=e,i={root:["root",t&&"indeterminate",`color${r(a)}`,`size${r(n)}`]},l=L(i,J,o);return{...o,...l}},A=O(N,{shouldForwardProp:e=>F(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)}`]]}})(H(({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})`:z(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})`:z(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(D,{}),W=s.jsx(T,{}),X=s.jsx(G,{}),Y=m.forwardRef(function(o,t){const a=B({props:o,name:"MuiCheckbox"}),{checkedIcon:n=Q,color:i="primary",icon:l=W,indeterminate:c=!1,indeterminateIcon:h=X,inputProps:P,size:p="medium",disableRipple:C=!1,className:$,slots:f={},slotProps:b={},...j}=a,k=c?h:l,S=c?h:n,d={...a,disableRipple:C,color:i,indeterminate:c,size:p},y=q(d),u=b.input??P,[g,R]=V("root",{ref:t,elementType:A,className:E(y.root,$),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:b,...j},ownerState:d,additionalProps:{type:"checkbox",icon:m.cloneElement(k,{fontSize:k.props.fontSize??p}),checkedIcon:m.cloneElement(S,{fontSize:S.props.fontSize??p}),disableRipple:C,slots:f,slotProps:{input:U(typeof u=="function"?u(d):u,{"data-indeterminate":c})}}});return s.jsx(g,{...R,classes:y})}),oe=Y;export{oe as C};
