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{KeyboardDatePicker as c}from"@material-ui/pickers";import{makeStyles as n}from"@material-ui/core";import e from"moment";import{DATE_FORMAT as m}from"../../constants/dateTimeFormat.js";import{CalendarIcon 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";var l=n((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}}})),d=function(r){var n,d,I=r.className,j=r.PopoverProps,f=o(r,["className","PopoverProps"]),h=l();return i(c,s({disableToolbar:!0,variant:"inline",keyboardIcon:i(a,{size:16}),rightArrowIcon:i(p,{size:24}),leftArrowIcon:i(u,{size:24}),format:m,placeholder:e().format(m),refuse:/[^(\w|\d)]+/gi,maxDate:null!==(n=f.maxDate)&&void 0!==n?n:void 0,minDate:null!==(d=f.minDate)&&void 0!==d?d:void 0},f,{PopoverProps:s({className:t(h.paper,j.className)},j),className:t(h.dateTimePickerInput,I)}))};d.propTypes={PopoverProps:r.shape({className:r.string}),className:r.string},d.defaultProps={PopoverProps:{},className:""};export{d as default};
