import{Q as h,f as c,w as $,v as P,t as B,U as S,O as x,z as a,V as g,r as d,x as M,y as H,E as O}from"./index.8f299a7d.js";import{S as R}from"./FormControlLabel.4a0a74ee.js";const U=h(c("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=h(c("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"),_=h(c("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 w(o){return P("MuiCheckbox",o)}const E=$("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),p=E,L=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],j=o=>{const{classes:e,indeterminate:t,color:s}=o,r={root:["root",t&&"indeterminate",`color${x(s)}`]},n=O(r,w,e);return a({},e,n)},F=B(R,{shouldForwardProp:o=>S(o)||o==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.indeterminate&&e.indeterminate,t.color!=="default"&&e[`color${x(t.color)}`]]}})(({theme:o,ownerState:e})=>a({color:(o.vars||o).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${e.color==="default"?o.vars.palette.action.activeChannel:o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:g(e.color==="default"?o.palette.action.active:o.palette[e.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${p.checked}, &.${p.indeterminate}`]:{color:(o.vars||o).palette[e.color].main},[`&.${p.disabled}`]:{color:(o.vars||o).palette.action.disabled}})),Q=c(V,{}),T=c(U,{}),W=c(_,{}),q=d.exports.forwardRef(function(e,t){var s,r;const n=M({props:e,name:"MuiCheckbox"}),{checkedIcon:v=Q,color:f="primary",icon:b=T,indeterminate:i=!1,indeterminateIcon:u=W,inputProps:I,size:l="medium"}=n,z=H(n,L),C=i?u:b,k=i?u:v,m=a({},n,{color:f,indeterminate:i,size:l}),y=j(m);return c(F,a({type:"checkbox",inputProps:a({"data-indeterminate":i},I),icon:d.exports.cloneElement(C,{fontSize:(s=C.props.fontSize)!=null?s:l}),checkedIcon:d.exports.cloneElement(k,{fontSize:(r=k.props.fontSize)!=null?r:l}),ownerState:m,ref:t},z,{classes:y}))}),G=q;export{G as C};
