import{W as z,V as m,c as R,_ as x,b as s,s as y,d as C,e as t,f as B,n as u}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as I}from"./index-NdkWRN8K.js";import{j as $}from"./jsx-runtime-CnH95YSl.js";import{B as h}from"./ButtonBase-BNqa2TMD.js";function k(o){return m("MuiIconButton",o)}const M=z("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),E=["edge","children","className","color","disabled","disableFocusRipple","size"],_=o=>{const{classes:a,disabled:r,color:e,edge:i,size:l}=o,n={root:["root",r&&"disabled",e!=="default"&&`color${t(e)}`,i&&`edge${t(i)}`,`size${t(l)}`]};return B(n,k,a)},j=y(h,{name:"MuiIconButton",slot:"Root",overridesResolver:(o,a)=>{const{ownerState:r}=o;return[a.root,r.color!=="default"&&a[`color${t(r.color)}`],r.edge&&a[`edge${t(r.edge)}`],a[`size${t(r.size)}`]]}})(({theme:o,ownerState:a})=>s({textAlign:"center",flex:"0 0 auto",fontSize:o.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(o.vars||o).palette.action.active,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest})},!a.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:u.alpha(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},a.edge==="start"&&{marginLeft:a.size==="small"?-3:-12},a.edge==="end"&&{marginRight:a.size==="small"?-3:-12}),({theme:o,ownerState:a})=>{var r;const e=(r=(o.vars||o).palette)==null?void 0:r[a.color];return s({},a.color==="inherit"&&{color:"inherit"},a.color!=="inherit"&&a.color!=="default"&&s({color:e==null?void 0:e.main},!a.disableRipple&&{"&:hover":s({},e&&{backgroundColor:o.vars?`rgba(${e.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:u.alpha(e.main,o.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),a.size==="small"&&{padding:5,fontSize:o.typography.pxToRem(18)},a.size==="large"&&{padding:12,fontSize:o.typography.pxToRem(28)},{[`&.${M.disabled}`]:{backgroundColor:"transparent",color:(o.vars||o).palette.action.disabled}})}),P=I.forwardRef(function(a,r){const e=R({props:a,name:"MuiIconButton"}),{edge:i=!1,children:l,className:n,color:g="default",disabled:c=!1,disableFocusRipple:d=!1,size:v="medium"}=e,f=x(e,E),p=s({},e,{edge:i,color:g,disabled:c,disableFocusRipple:d,size:v}),b=_(p);return $.jsx(j,s({className:C(b.root,n),centerRipple:!0,focusRipple:!d,disabled:c,ref:r},f,{ownerState:p,children:l}))});export{P as I};
