!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={1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},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:()=>h});var i=t(6031),n=t.n(i),s=t(1116),a=t.n(s),p=t(2462),u=t.n(p),l=t(2015),c=t.n(l),d=t(9825),m=t.n(d),b=t(4),f=t(5643);const x=require("@mui/x-date-pickers/TimePicker");var y=t(3294);const O=["name","label","required","minTime","maxTime","timeZone","disabled","slotProps"];function P(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function v(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?P(Object(t),!0).forEach((function(r){a()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}const j=e=>{let{name:r,label:t,required:o,minTime:i,maxTime:s,timeZone:a,disabled:p=!1,slotProps:l}=e,d=u()(e,O);const[m,P,j]=(0,y.useField)(r),h=o?`${t} *`:t;return c().createElement(b.LocalizationProvider,{dateAdapter:f.AdapterMoment},c().createElement(x.TimePicker,n()({value:m.value,onChange:j.setValue,minTime:i,maxTime:s,timezone:a,views:["hours","minutes"],slotProps:v(v({},l),{},{textField:v({name:r,label:h,error:P.touched&&Boolean(P.error),helperText:P.touched&&P.error,size:"small",fullWidth:!0,disabled:p,sx:{"& .MuiPickersSectionList-root":{width:"100%"},"& .MuiFormHelperText-root":{marginLeft:"4px",marginRight:"4px"}}},(null==l?void 0:l.textField)||{})})},d)))};j.propTypes={name:m().string.isRequired};const h=j;return o})()));
//# sourceMappingURL=timepicker.js.map