"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_rollupPluginBabelHelpers.js"),r=require("@mui/material"),n=require("react"),t=require("react/jsx-runtime");exports.default=function(i){var a=n.useState(!1),l=e.slicedToArray(a,2),u=l[0],o=l[1],s=n.useState(null),d=e.slicedToArray(s,2),p=d[0],c=d[1],x=function(){return function(e){c(e.currentTarget),o(!u)}};return t.jsxs(t.Fragment,{children:[t.jsx(r.TextField,{id:"outlined-multiline-flexible",fullWidth:!0,type:"time",name:i.name,onChange:i.onChange,value:i.value||"",label:i.label,required:i.required,variant:i.variant,InputLabelProps:{shrink:!0,required:i.required},InputProps:{readOnly:i.readOnly},onFocus:x(),onBlur:x()}),t.jsx(r.Popper,{sx:{zIndex:1200},open:u&&i.popperActive,anchorEl:p,placement:"bottom",transition:!0,children:function(n){var a=n.TransitionProps;return t.jsx(r.Fade,e.objectSpread2(e.objectSpread2({},a),{},{timeout:350,children:t.jsx(r.Paper,{children:t.jsx(r.Typography,{sx:{p:2},children:i.value})})}))}})]})};
//# sourceMappingURL=TimeInputComponent.js.map
