import{a as e,n as t}from"./preload-helper-DxX6f4wy.js";import{$ as n,E as r,F as i,I as a,P as o,d as s,f as c,g as l,h as u,n as d}from"./Fade-Bj1YUcWe.js";import{r as f}from"./ButtonBase-dVPwHUcG.js";import{n as p,t as m}from"./useFormControl-DzT-9k0o.js";var h=e(t());function g(e){return i(`MuiInputAdornment`,e)}var _=o(`MuiInputAdornment`,[`root`,`filled`,`standard`,`outlined`,`positionStart`,`positionEnd`,`disablePointerEvents`,`hiddenLabel`,`sizeSmall`]),v=n(),y,b=(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${u(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},x=e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:i,position:a,size:o,variant:s}=e;return r({root:[`root`,n&&`disablePointerEvents`,a&&`position${u(a)}`,s,i&&`hiddenLabel`,o&&`size${u(o)}`]},g,t)},S=l(`div`,{name:`MuiInputAdornment`,slot:`Root`,overridesResolver:b})(c(({theme:e})=>({display:`flex`,maxHeight:`2em`,alignItems:`center`,whiteSpace:`nowrap`,color:(e.vars||e).palette.action.active,variants:[{props:{variant:`filled`},style:{[`&.${_.positionStart}&:not(.${_.hiddenLabel})`]:{marginTop:16}}},{props:{position:`start`},style:{marginRight:8}},{props:{position:`end`},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:`none`}}]}))),C=h.forwardRef(function(e,t){let n=s({props:e,name:`MuiInputAdornment`}),{children:r,className:i,component:o=`div`,disablePointerEvents:c=!1,disableTypography:l=!1,position:u,variant:f,...g}=n,_=m()||{},b=f;f&&_.variant,_&&!b&&(b=_.variant);let C={...n,hiddenLabel:_.hiddenLabel,size:_.size,disablePointerEvents:c,position:u,variant:b},w=x(C);return(0,v.jsx)(p.Provider,{value:null,children:(0,v.jsx)(S,{as:o,ownerState:C,className:a(w.root,i),ref:t,...g,children:typeof r==`string`&&!l?(0,v.jsx)(d,{color:`textSecondary`,children:r}):(0,v.jsxs)(h.Fragment,{children:[u===`start`?y||=(0,v.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):null,r]})})})}),w=f((0,v.jsx)(`path`,{d:`M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z`}),`VisibilityOff`);export{C as n,w as t};