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