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