import{g as b}from"./vendor-1.0.63-CN03Eozo.js";import{r as E}from"./cjs-1.0.63-4A2xol4v.js";import{u as T,v as C,b as I,g as j,h as A,i as L,j as S,c as z,T as F,k as d,l as R,m as $}from"./Typography-1.0.63-mecuj_Wl.js";import{g as w}from"./getThemeProps-1.0.63-5ZzcWe3G.js";import{r as f}from"./redux-1.0.63-Df-eBzJn.js";import{u as M,F as U}from"./Select-1.0.63-BMejr8a7.js";import{j as a}from"./cm-1.0.63-CSIRHMXC.js";var D=E();const W=b(D);function N({props:t,name:e,defaultTheme:o,themeId:n}){let s=T(o);return n&&(s=s[n]||s),w({theme:s,name:e,props:t})}function X({props:t,name:e}){return N({props:t,name:e,defaultTheme:C,themeId:I})}function H(t){return A("MuiInputAdornment",t)}const h=j("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var g;const _=(t,e)=>{const{ownerState:o}=t;return[e.root,e[`position${d(o.position)}`],o.disablePointerEvents===!0&&e.disablePointerEvents,e[o.variant]]},k=t=>{const{classes:e,disablePointerEvents:o,hiddenLabel:n,position:s,size:i,variant:l}=t,p={root:["root",o&&"disablePointerEvents",s&&`position${d(s)}`,l,n&&"hiddenLabel",i&&`size${d(i)}`]};return R(p,H,e)},q=S("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:_})($(({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"}}]}))),Y=f.forwardRef(function(e,o){const n=L({props:e,name:"MuiInputAdornment"}),{children:s,className:i,component:l="div",disablePointerEvents:p=!1,disableTypography:x=!1,position:u,variant:c,...y}=n,r=M()||{};let m=c;c&&r.variant,r&&!m&&(m=r.variant);const v={...n,hiddenLabel:r.hiddenLabel,size:r.size,disablePointerEvents:p,position:u,variant:m},P=k(v);return a.jsx(U.Provider,{value:null,children:a.jsx(q,{as:l,ownerState:v,className:z(P.root,i),ref:o,...y,children:typeof s=="string"&&!x?a.jsx(F,{color:"textSecondary",children:s}):a.jsxs(f.Fragment,{children:[u==="start"?g||(g=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})});export{Y as I,W as P,N as a,X as u};
