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