1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{Ht as t,Ut as n}from"./mui-BJexXp9T.js";import{n as r,y as i}from"./vendor-DuLXSWrv.js";import{_ as a,a as o,c as s,g as c,t as l}from"./mui-BwNRBanh.js";import{r as u}from"./Button-C4M77luo.js";import{n as d}from"./emotion-react-jsx-runtime.browser.esm-DJs9gvez.js";var f=e(i(),1),p=r(),m=e=>({display:`flex`,alignItems:`center`,borderRadius:`1px`,boxShadow:e?u[2]:`none`,border:`2px solid transparent`,"&:focus-visible":{border:`2px solid ${o[9]}`,outline:`1px solid ${a.content.white}`,outlineOffset:`-3px`},padding:`4px`}),h=(e,t,n)=>{switch(e){case`primary`:return{color:a.content.white,backgroundColor:o[9],"&:hover":{backgroundColor:o[10],borderRadius:`2px`},"&:active":{backgroundColor:o[11],borderRadius:`2px`}};case`secondary`:return{color:a.content.white,backgroundColor:s[12],"&:hover":{backgroundColor:s[11],borderRadius:`2px`},"&:active":{backgroundColor:s[10],borderRadius:`2px`}};case`tertiary`:return{color:g(t),backgroundColor:s[2],borderRadius:`2px`,"&:hover":{backgroundColor:s[3],borderRadius:`2px`},"&:active":{backgroundColor:s[2],borderRadius:`2px`}};case`ghost`:return{color:g(t),backgroundColor:`transparent`,"&:hover":{backgroundColor:s[2],borderRadius:`2px`},"&:active":{backgroundColor:s[3],borderRadius:`2px`}};case`true-ghost`:return{color:g(t),backgroundColor:`transparent`,"&:hover":{color:n.palette.common.doss.gray[9],borderRadius:`2px`},"&:active":{backgroundColor:s[2],borderRadius:`2px`}};case`danger`:return{color:a.content.white,backgroundColor:c[10],"&:hover":{backgroundColor:c[11],borderRadius:`2px`},"&:active":{backgroundColor:c[12],borderRadius:`2px`}}}},g=e=>{switch(e){case`primary`:return a.content.primary;case`secondary`:return a.content.secondary;case`danger`:return a.content.danger;case`warning`:return a.content.warning}},_=e=>{switch(e){case`primary`:case`secondary`:case`tertiary`:case`danger`:return{[`&.${n.disabled}`]:{backgroundColor:s[3],color:a.content.disabled}};case`ghost`:case`true-ghost`:return{[`&.${n.disabled}`]:{color:a.content.disabled}}}},v=e=>{switch(e){case`small`:return{height:`16px`,flexShrink:0,fontSize:`1rem`};case`medium`:return{height:`16px`,flexShrink:0,fontSize:`1.25rem`};case`large`:return{height:`24px`,flexShrink:0,fontSize:`1.5rem`}}},y=(0,f.forwardRef)((e,n)=>{let r=(0,p.c)(26),i,a,o,s,c,l;r[0]===e?(i=r[1],a=r[2],o=r[3],s=r[4],c=r[5],l=r[6]):({size:o,variant:l,floating:s,color:c,className:i,...a}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=c,r[6]=l);let u=o===void 0?`medium`:o,m=s!==void 0&&s,h=c===void 0?`primary`:c,g;r[7]!==h||r[8]!==m||r[9]!==a.classes||r[10]!==u||r[11]!==l?(g={classesOverrides:a.classes,variant:l,size:u,floating:m,color:h},r[7]=h,r[8]=m,r[9]=a.classes,r[10]=u,r[11]=l,r[12]=g):g=r[12];let{classes:_,cx:v}=b(g),y;r[13]!==_.icon||r[14]!==a.children?(y=(0,f.isValidElement)(a.children)?(0,f.cloneElement)(a.children,{className:_.icon}):null,r[13]=_.icon,r[14]=a.children,r[15]=y):y=r[15];let x=y,S;r[16]!==i||r[17]!==_.button||r[18]!==v?(S=v(_.button,i),r[16]=i,r[17]=_.button,r[18]=v,r[19]=S):S=r[19];let C;return r[20]!==x||r[21]!==n||r[22]!==a||r[23]!==u||r[24]!==S?(C=d(t,{ref:n,className:S,disableFocusRipple:!0,disableRipple:!0,disableTouchRipple:!0,size:u,...a,children:x}),r[20]=x,r[21]=n,r[22]=a,r[23]=u,r[24]=S,r[25]=C):C=r[25],C});y.displayName=`IconButton`;var b=l.withParams().create(({variant:e,size:t,floating:n,color:r,theme:i})=>({button:{...m(n),...h(e,r,i),..._(e)},icon:v(t)}));export{y 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.