import{m as A,n as C,f as E,q as I,r as f,t as P,j as a,v as S,T as j,o as c,w}from"./index-dc933734.js";import{a as L,F as $}from"./Grow-3459ea54.js";function z(t){return A("MuiInputAdornment",t)}const R=C("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),h=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: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:{[`&.${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=f.forwardRef(function(n,e){const r=P({props:n,name:"MuiInputAdornment"}),{children:s,className:i,component:l="div",disablePointerEvents:p=!1,disableTypography:x=!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"&&!x?a.jsx(j,{color:"textSecondary",children:s}):a.jsxs(f.Fragment,{children:[m==="start"?b||(b=a.jsx("span",{className:"notranslate",children:"​"})):null,s]})})})}),B=U;export{B as I};
