import{j as e,D as l,S as x,o as C}from"./vendor-mui-CBBEb17G.js";import{a as n}from"./vendor-react-BBazpZul.js";import{bE as m,I as p}from"./index-DdWwwZXu.js";const f=({onClose:c,open:i,onChange:a,value:o})=>{const[r,t]=n.useState(0),s=()=>{a(r),c()};return n.useEffect(()=>{o&&t(o)},[o]),e.jsx(l,{onClose:s,open:i,children:e.jsxs(x,{direction:"row",alignItems:"center",spacing:1,p:1,children:[e.jsx(m,{autoFocus:!0,onKeyDown:u=>u.key==="Enter"&&s(),onChange:t,value:r,isMoney:!0}),e.jsx(C,{color:"success",onClick:s,children:e.jsx(p.CheckCircleIcon,{})})]})})};export{f as C};
