import{bZ as z,bY as F,r as R,aO as k,aP as y,aS as i,ao as w,aU as V,aV as g,c3 as n,aW as $,aY as N,aZ as W}from"./index-DlNZgIG9.js";function I(o){return F("MuiFab",o)}const v=z("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),M=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],P=o=>{const{color:a,variant:s,classes:r,size:l}=o,t={root:["root",s,`size${n(l)}`,a==="inherit"?"colorInherit":a]},e=$(t,I,r);return i({},r,e)},U=V(N,{name:"MuiFab",slot:"Root",shouldForwardProp:o=>W(o)||o==="classes",overridesResolver:(o,a)=>{const{ownerState:s}=o;return[a.root,a[s.variant],a[`size${n(s.size)}`],s.color==="inherit"&&a.colorInherit,a[n(s.size)],a[s.color]]}})(({theme:o,ownerState:a})=>{var s,r;return i({},o.typography.button,{minHeight:36,transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(o.vars||o).zIndex.fab,boxShadow:(o.vars||o).shadows[6],"&:active":{boxShadow:(o.vars||o).shadows[12]},color:o.vars?o.vars.palette.text.primary:(s=(r=o.palette).getContrastText)==null?void 0:s.call(r,o.palette.grey[300]),backgroundColor:(o.vars||o).palette.grey[300],"&:hover":{backgroundColor:(o.vars||o).palette.grey.A100,"@media (hover: none)":{backgroundColor:(o.vars||o).palette.grey[300]},textDecoration:"none"},[`&.${v.focusVisible}`]:{boxShadow:(o.vars||o).shadows[6]}},a.size==="small"&&{width:40,height:40},a.size==="medium"&&{width:48,height:48},a.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},a.variant==="extended"&&a.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},a.variant==="extended"&&a.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},a.color==="inherit"&&{color:"inherit"})},({theme:o,ownerState:a})=>i({},a.color!=="inherit"&&a.color!=="default"&&(o.vars||o).palette[a.color]!=null&&{color:(o.vars||o).palette[a.color].contrastText,backgroundColor:(o.vars||o).palette[a.color].main,"&:hover":{backgroundColor:(o.vars||o).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[a.color].main}}}),({theme:o})=>({[`&.${v.disabled}`]:{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground}})),j=R.forwardRef(function(a,s){const r=k({props:a,name:"MuiFab"}),{children:l,className:t,color:e="default",component:c="button",disabled:u=!1,disableFocusRipple:b=!1,focusVisibleClassName:x,size:h="large",variant:f="circular"}=r,C=y(r,M),p=i({},r,{color:e,component:c,disabled:u,disableFocusRipple:b,size:h,variant:f}),d=P(p);return w.jsx(U,i({className:g(d.root,t),component:c,disabled:u,focusRipple:!b,focusVisibleClassName:g(d.focusVisible,x),ownerState:p,ref:s},C,{classes:d,children:l}))});export{j as F};
