vendor: 3,435 bytes, line 1
1import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{D as t,G as n,O as r,Q as i,c as a,d as o,i as s,k as c,l,s as u,y as d}from"./Box-HcleqrfX.js";import{n as f,t as p}from"./CircularProgress-Bv-GSkkS.js";import{t as m}from"./useId-BGg01IWE.js";var h=e(i());function g(e){return r(`MuiIconButton`,e)}var _=t(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),v=n(),y=e=>{let{classes:t,disabled:n,color:r,edge:i,size:o,loading:s}=e;return d({root:[`root`,s&&`loading`,n&&`disabled`,r!=="default"&&`color${a(r)}`,i&&`edge${a(i)}`,`size${a(o)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},g,t)},b=o(f,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${a(n.color)}`],n.edge&&t[`edge${a(n.edge)}`],t[`size${a(n.size)}`]]}})(u(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),u(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(s()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(s()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${_.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${_.loading}`]:{color:`transparent`}}))),x=o(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),S=h.forwardRef(function(e,t){let n=l({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:u=!1,size:d=`medium`,id:f,loading:h=null,loadingIndicator:g,..._}=n,S=m(f),C=g??(0,v.jsx)(p,{"aria-labelledby":S,color:`inherit`,size:16}),w={...n,edge:r,color:o,disabled:s,disableFocusRipple:u,loading:h,loadingIndicator:C,size:d},T=y(w);return(0,v.jsxs)(b,{id:h?S:f,className:c(T.root,a),centerRipple:!0,focusRipple:!u,disabled:s||h,ref:t,..._,ownerState:w,children:[typeof h==`boolean`&&(0,v.jsx)(`span`,{className:T.loadingWrapper,style:{display:`contents`},children:(0,v.jsx)(x,{className:T.loadingIndicator,ownerState:w,children:h&&C})}),i]})});export{S as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.