"use strict";var o=require('./../../ext-esm/tslib/tslib.es6.js'),e=require("react/jsx-runtime"),s=require("classnames"),r=require("prop-types"),i=require("moment"),c=require("@material-ui/pickers"),n=require("@material-ui/core"),t=require("../../icons/iconParkIcons.js");require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js");var a=require("../../constants/dateTimeFormat.js");function u(o){return o&&"object"==typeof o&&"default"in o?o:{default:o}}var m=u(s),l=u(r),d=u(i),p=n.makeStyles((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused  .MuiIconButton-root":{color:o.palette.primary.main},"&:hover .MuiIconButton-root":{color:o.palette.primary.contrastText},"& .MuiIconButton-root":{color:o.palette.primary.text6,borderRadius:8,fontSize:"unset",marginRight:-3,marginBottom:-8,padding:6,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16)"}},"& .MuiIconButton-root > span > span svg":{fill:"transparent !important"}},paper:{marginTop:8}}}));function I(s){var r,i,n=s.className,a=s.PopoverProps,u=s.format,l=o.__rest(s,["className","PopoverProps","format"]),I=p();return e.jsx(c.KeyboardDateTimePicker,o.__assign({dateRangeIcon:e.jsx(t.CalendarIcon,{size:24}),timeIcon:e.jsx(t.TimeIcon,{size:24}),rightArrowIcon:e.jsx(t.RightIcon,{size:24}),leftArrowIcon:e.jsx(t.LeftIcon,{size:24}),keyboardIcon:e.jsx(t.CalendarIcon,{size:16}),format:u,refuse:/[^(\w|\d)]+/gi,placeholder:d.default().format(u),maxDate:null!==(r=l.maxDate)&&void 0!==r?r:void 0,minDate:null!==(i=l.minDate)&&void 0!==i?i:void 0},l,{PopoverProps:o.__assign({className:I.paper},a),className:m.default(I.dateTimePickerInput,n)}))}I.propTypes={className:l.default.string,PopoverProps:l.default.shape({className:l.default.string}),format:l.default.string},I.defaultProps={className:"",PopoverProps:{},format:a.DATE_TIME_FORMAT},module.exports=I;
