import{bh as A,bi as C,d as E,bj as I,r as b,bk as P,j as r,bm as j,T as S,bo as c,bn as L}from"./index-d2b25495.js";import{u as $,F as w}from"./useFormControl-2b068664.js";function z(t){return A("MuiInputAdornment",t)}const R=C("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),h=R;var f;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:a,position:s,size:i,variant:l}=t,p={root:["root",e&&"disablePointerEvents",s&&`position${c(s)}`,l,a&&"hiddenLabel",i&&`size${c(i)}`]};return L(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:{[`&.${h.positionStart}&:not(.${h.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),U=b.forwardRef(function(n,e){const a=P({props:n,name:"MuiInputAdornment"}),{children:s,className:i,component:l="div",disablePointerEvents:p=!1,disableTypography:x=!1,position:m,variant:u,...g}=a,o=$()||{};let d=u;u&&o.variant,o&&!d&&(d=o.variant);const v={...a,hiddenLabel:o.hiddenLabel,size:o.size,disablePointerEvents:p,position:m,variant:d},y=T(v);return r.jsx(w.Provider,{value:null,children:r.jsx(M,{as:l,ownerState:v,className:j(y.root,i),ref:e,...g,children:typeof s=="string"&&!x?r.jsx(S,{color:"textSecondary",children:s}):r.jsxs(b.Fragment,{children:[m==="start"?f||(f=r.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})}),B=U;export{B as I};
