import{n as A,o as C,f as E,t as I,r as h,v as P,j as a,w as S,T as j,q as c,x as w}from"./index-60657852.js";import{a as L,F as $}from"./Grow-a21bdd26.js";function z(t){return A("MuiInputAdornment",t)}const R=C("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),f=R;var x;const F=(t,n)=>{const{ownerState:e}=t;return[n.root,n[`position${c(e.position)}`],e.disablePointerEvents===!0&&n.disablePointerEvents,n[e.variant]]},T=t=>{const{classes:n,disablePointerEvents:e,hiddenLabel:r,position:s,size:i,variant:l}=t,p={root:["root",e&&"disablePointerEvents",s&&`position${c(s)}`,l,r&&"hiddenLabel",i&&`size${c(i)}`]};return w(p,z,n)},M=E("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:F})(I(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${f.positionStart}&:not(.${f.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),U=h.forwardRef(function(n,e){const r=P({props:n,name:"MuiInputAdornment"}),{children:s,className:i,component:l="div",disablePointerEvents:p=!1,disableTypography:b=!1,position:m,variant:u,...g}=r,o=L()||{};let d=u;u&&o.variant,o&&!d&&(d=o.variant);const v={...r,hiddenLabel:o.hiddenLabel,size:o.size,disablePointerEvents:p,position:m,variant:d},y=T(v);return a.jsx($.Provider,{value:null,children:a.jsx(M,{as:l,ownerState:v,className:S(y.root,i),ref:e,...g,children:typeof s=="string"&&!b?a.jsx(j,{color:"textSecondary",children:s}):a.jsxs(h.Fragment,{children:[m==="start"?x||(x=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})}),B=U;export{B as I};
