1import{as as S,at as M,r as I,au as U,fh as N,j as t,fR as k,s as $,af as B,T as q,ax as E,ay as D,az as H,dm as J,F as O,t as V}from"./WarningIcon-Bebxa2Ar.js";import{F as G,E as K}from"./sessionStorageManager-DEcT-BUt.js";import{q as Q,g as W}from"./requests-DX1SWHAV.js";import{T as X}from"./TextField-DS5dfenV.js";function Y(n){return M("MuiInputAdornment",n)}const T=S("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var A;const Z=(n,s)=>{const{ownerState:a}=n;return[s.root,s[`position${E(a.position)}`],a.disablePointerEvents===!0&&s.disablePointerEvents,s[a.variant]]},tt=n=>{const{classes:s,disablePointerEvents:a,hiddenLabel:r,position:o,size:l,variant:d}=n,p={root:["root",a&&"disablePointerEvents",o&&`position${E(o)}`,d,r&&"hiddenLabel",l&&`size${E(l)}`]};return D(p,Y,s)},et=$("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Z})(H(({theme:n})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(n.vars||n).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${T.positionStart}&:not(.${T.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),y=I.forwardRef(function(s,a){const r=U({props:s,name:"MuiInputAdornment"}),{children:o,className:l,component:d="div",disablePointerEvents:p=!1,disableTypography:h=!1,position:u,variant:x,...f}=r,i=N()||{};let c=x;x&&i.variant,i&&!c&&(c=i.variant);const e={...r,hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:p,position:u,variant:c},b=tt(e);return t.jsx(k.Provider,{value:null,children:t.jsx(et,{as:d,ownerState:e,className:B(b.root,l),ref:a,...f,children:typeof o=="string"&&!h?t.jsx(q,{color:"textSecondary",children:o}):t.jsxs(I.Fragment,{children:[u==="start"?A||(A=t.jsx("span",{className:"notranslate","aria-hidden":!0,children:"â"})):null,o]})})})}),nt=$(O)(()=>({color:V.palette.error.dark})),it=I.forwardRef(function({ariaLabel:s,startAdornment:a,endAdornment:r,className:o="",color:l="primary",disabled:d=!1,error:p=!1,fullWidth:h=!0,helperText:u,size:x="medium",label:f,required:i=!0,readOnly:c=!1,field:e,showErrorIcon:b=!0,customLabelComponent:z,customError:P,multiline:L=!1,hideErrorDisplay:R=!1,labelVariant:_,...m},w){const[v,g]=Q(e),{t:C}=W(),F=g.touched&&g.error?C(g.error):"",j=p||!!F||!!P;return t.jsxs(t.Fragment,{children:[z||t.jsx(G,{labelVariantOverride:_||void 0,error:j,label:f??C(`${e}_label`),disabled:d,id:e,required:i}),t.jsx(X,{id:e,autoComplete:e,"data-testid":e,ref:w,"aria-label":s,className:o,color:l,disabled:d,error:j,fullWidth:h,helperText:u,size:"small",variant:"outlined",onBlur:v.onBlur,onChange:v.onChange,label:"",name:v.name,value:v.value??"",multiline:L,sx:m.sx,inputProps:{"aria-labelledby":`${e}-label`,...m.inputProps},InputProps:{readOnly:c,startAdornment:a?t.jsx(y,{position:"start",children:a}):void 0,endAdornment:j&&b?t.jsx(y,{position:"end",children:t.jsx(nt,{icon:J,"data-testid":`${e}__error-icon`})}):r?t.jsx(y,{position:"end",children:r}):void 0,...m.InputProps},...m}),!R&&t.jsx(K,{id:`${e}__error`,"data-testid":`${e}__error`,"aria-live":"polite",children:t.jsx("span",{children:P||F})})]})});export{y as I,it as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.