import{r as f}from"./redux-1.0.74-D8bIc6ki.js";import{e as E,g as C,u as I,f as P,h as A,i as m,j,m as L}from"./CircularProgress-1.0.74-QfwfRJ7i.js";import{u as S,F as z}from"./Select-1.0.74-DHOnlEEH.js";import{j as r}from"./tanstack-1.0.74-aU0azVkW.js";import{T as R}from"./Typography-1.0.74-B4mhsevh.js";function w(t){return C("MuiInputAdornment",t)}const h=E("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var b;const F=(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${m(n.position)}`],n.disablePointerEvents===!0&&e.disablePointerEvents,e[n.variant]]},T=t=>{const{classes:e,disablePointerEvents:n,hiddenLabel:i,position:o,size:a,variant:l}=t,p={root:["root",n&&"disablePointerEvents",o&&`position${m(o)}`,l,i&&"hiddenLabel",a&&`size${m(a)}`]};return j(p,w,e)},$=P("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:F})(L(({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"}}]}))),_=f.forwardRef(function(e,n){const i=I({props:e,name:"MuiInputAdornment"}),{children:o,className:a,component:l="div",disablePointerEvents:p=!1,disableTypography:g=!1,position:c,variant:u,...x}=i,s=S()||{};let d=u;u&&s.variant,s&&!d&&(d=s.variant);const v={...i,hiddenLabel:s.hiddenLabel,size:s.size,disablePointerEvents:p,position:c,variant:d},y=T(v);return r.jsx(z.Provider,{value:null,children:r.jsx($,{as:l,ownerState:v,className:A(y.root,a),ref:n,...x,children:typeof o=="string"&&!g?r.jsx(R,{color:"textSecondary",children:o}):r.jsxs(f.Fragment,{children:[c==="start"?b||(b=r.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});export{_ as I};
