import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import t from"classnames";import r from"prop-types";import c from"moment";import{KeyboardDateTimePicker as n}from"@material-ui/pickers";import{makeStyles as e}from"@material-ui/core";import{CalendarIcon as m,TimeIcon as a,RightIcon as p,LeftIcon as u}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import{DATE_TIME_FORMAT as l}from"../../constants/dateTimeFormat.js";var d=e((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(r){var e,l,I=r.className,j=r.PopoverProps,f=r.format,g=o(r,["className","PopoverProps","format"]),h=d();return i(n,s({dateRangeIcon:i(m,{size:24}),timeIcon:i(a,{size:24}),rightArrowIcon:i(p,{size:24}),leftArrowIcon:i(u,{size:24}),keyboardIcon:i(m,{size:16}),format:f,refuse:/[^(\w|\d)]+/gi,placeholder:c().format(f),maxDate:null!==(e=g.maxDate)&&void 0!==e?e:void 0,minDate:null!==(l=g.minDate)&&void 0!==l?l:void 0},g,{PopoverProps:s({className:h.paper},j),className:t(h.dateTimePickerInput,I)}))}I.propTypes={className:r.string,PopoverProps:r.shape({className:r.string}),format:r.string},I.defaultProps={className:"",PopoverProps:{},format:l};export{I as default};
