"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("@material-ui/pickers"),c=require("@material-ui/core"),n=require("moment"),t=require("../../constants/dateTimeFormat.js"),a=require("../../icons/iconParkIcons.js");function u(o){return o&&"object"==typeof o&&"default"in o?o:{default:o}}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 l=u(s),m=u(r),d=u(n),p=c.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":{borderRadius:8,color:o.palette.primary.text6,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}}})),I=function(s){var r,c,n=s.className,u=s.PopoverProps,m=o.__rest(s,["className","PopoverProps"]),I=p();return e.jsx(i.KeyboardDatePicker,o.__assign({disableToolbar:!0,variant:"inline",keyboardIcon:e.jsx(a.CalendarIcon,{size:16}),rightArrowIcon:e.jsx(a.RightIcon,{size:24}),leftArrowIcon:e.jsx(a.LeftIcon,{size:24}),format:t.DATE_FORMAT,placeholder:d.default().format(t.DATE_FORMAT),refuse:/[^(\w|\d)]+/gi,maxDate:null!==(r=m.maxDate)&&void 0!==r?r:void 0,minDate:null!==(c=m.minDate)&&void 0!==c?c:void 0},m,{PopoverProps:o.__assign({className:l.default(I.paper,u.className)},u),className:l.default(I.dateTimePickerInput,n)}))};I.propTypes={PopoverProps:m.default.shape({className:m.default.string}),className:m.default.string},I.defaultProps={PopoverProps:{},className:""},module.exports=I;
