import{g as E,a as C,r as h,u as I,j as a,T as P,d as A,J as c,e as j,s as L,m as S}from"./main-BMMRv56V.js";import{u as z,e as R}from"./TextField-CWEE-Dgp.js";function w(t){return E("MuiInputAdornment",t)}const f=C("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var b;const T=(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${c(n.position)}`],n.disablePointerEvents===!0&&e.disablePointerEvents,e[n.variant]]},$=t=>{const{classes:e,disablePointerEvents:n,hiddenLabel:i,position:s,size:r,variant:l}=t,p={root:["root",n&&"disablePointerEvents",s&&`position${c(s)}`,l,i&&"hiddenLabel",r&&`size${c(r)}`]};return j(p,w,e)},F=L("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:T})(S(({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"}}]}))),N=h.forwardRef(function(e,n){const i=I({props:e,name:"MuiInputAdornment"}),{children:s,className:r,component:l="div",disablePointerEvents:p=!1,disableTypography:g=!1,position:m,variant:u,...x}=i,o=z()||{};let d=u;u&&o.variant,o&&!d&&(d=o.variant);const v={...i,hiddenLabel:o.hiddenLabel,size:o.size,disablePointerEvents:p,position:m,variant:d},y=$(v);return a.jsx(R.Provider,{value:null,children:a.jsx(F,{as:l,ownerState:v,className:A(y.root,r),ref:n,...x,children:typeof s=="string"&&!g?a.jsx(P,{color:"textSecondary",children:s}):a.jsxs(h.Fragment,{children:[m==="start"?b||(b=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})});export{N as I};
