import{m as A,n as C,f as E,q as I,r as h,t as P,j as r,v as S,T as j,o as c,w}from"./index-e79f7aad.js";import{h as L,F as $}from"./Select-8a61e5a6.js";function z(t){return A("MuiInputAdornment",t)}const R=C("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),f=R;var b;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 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 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=L()||{};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($.Provider,{value:null,children:r.jsx(M,{as:l,ownerState:v,className:S(y.root,i),ref:e,...g,children:typeof s=="string"&&!x?r.jsx(j,{color:"textSecondary",children:s}):r.jsxs(h.Fragment,{children:[m==="start"?b||(b=r.jsx("span",{className:"notranslate",children:"​"})):null,s]})})})}),B=U;export{B as I};
