!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],r):"object"==typeof exports?exports["openstack-uicore-foundation"]=r():e["openstack-uicore-foundation"]=r()}(this,(()=>(()=>{"use strict";var e={5643:e=>{e.exports=require("@mui/x-date-pickers/AdapterMoment")},4:e=>{e.exports=require("@mui/x-date-pickers/LocalizationProvider")},3294:e=>{e.exports=require("formik")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},r={};function t(o){var i=r[o];if(void 0!==i)return i.exports;var n=r[o]={exports:{}};return e[o](n,n.exports,t),n.exports}(()=>{t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r}})(),(()=>{t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})}})(),(()=>{t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})(),(()=>{t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};t.r(o),t.d(o,{default:()=>m});var i=t(2015),n=t.n(i),a=t(9825),s=t.n(a),u=t(4),p=t(5643);const d=require("@mui/x-date-pickers/TimePicker");var c=t(3294);const l=({name:e,minTime:r,maxTime:t,timeZone:o,disabled:i=!1})=>{const[a,s,l]=(0,c.useField)(e);return n().createElement(u.LocalizationProvider,{dateAdapter:p.AdapterMoment},n().createElement(d.TimePicker,{value:a.value,onChange:l.setValue,minTime:r,maxTime:t,timezone:o,label:o,views:["hours","minutes"],slotProps:{textField:{name:e,error:s.touched&&Boolean(s.error),helperText:s.touched&&s.error,size:"small",fullWidth:!0,disabled:i,sx:{"& .MuiPickersSectionList-root":{width:"100%"},"& .MuiFormHelperText-root":{marginLeft:"4px",marginRight:"4px"}}}}}))};l.propTypes={name:s().string.isRequired};const m=l;return o})()));
//# sourceMappingURL=timepicker.js.map