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