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MAAO,CAAC,UAAW,mBAAoB,IAAK,kBAC9D,MAAM,cAAc,QAAS,MAAM,SAAS,CAAC,KAAM,OAAQ,UAAW,eAAgB,SAAU,KAAK,SAAU,MAAO,KAAK,MAAM,WAAY,YAAa,KAAK,MAAM,aAAe,KAAK,MAAM,aAC/L,MAAM,cAAc,OAAQ,CAAC,UAAW,oBAAqB,QAAS,KAAK,QAAS,OAAQ,KAAK,OAAQ,IAAK,aAAc,MAAM,cAAc,UAAW,CAAC,MAAO,KAAK,MAAM,eAI1L,IAGF,OAAO,QAAU","file":"/npm/react-bootstrap-datetimepicker-placeholder@0.0.19/lib/DateTimeField.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-bootstrap-datetimepicker-placeholder@0.0.19/lib/DateTimeField.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var DateTimeField, DateTimePicker, Glyphicon, React, moment;\n\nReact = require('react');\n\nDateTimePicker = require('./DateTimePicker');\n\nmoment = require('moment');\n\nvar Glyphicon = require('react-bootstrap').Glyphicon;\n\nvar Constants = require('./Constants');\n\nDateTimeField = React.createClass({displayName: \"DateTimeField\",\n  propTypes: {\n    dateTime: React.PropTypes.string,\n    onChange: React.PropTypes.func,\n    format: React.PropTypes.string,\n    inputProps: React.PropTypes.object,\n    inputFormat: React.PropTypes.string,\n    defaultText: React.PropTypes.string,\n    mode: React.PropTypes.oneOf([Constants.MODE_DATE, Constants.MODE_DATETIME, Constants.MODE_TIME]),\n    minDate: React.PropTypes.object,\n    maxDate: React.PropTypes.object,\n    placeholder: React.PropTypes.string\n  },\n  getDefaultProps: function() {\n    return {\n      dateTime: moment().format('x'),\n      format: 'x',\n      showToday: true,\n      viewMode: 'days',\n      daysOfWeekDisabled: [],\n      mode: Constants.MODE_DATETIME,\n      onChange: function (x) {\n        console.log(x);\n      }\n    };\n  },\n  getInitialState: function() {\n    var state =  {\n      showDatePicker: this.props.mode !== Constants.MODE_TIME,\n      showTimePicker: this.props.mode === Constants.MODE_TIME,\n      inputFormat: this.resolvePropsInputFormat(),\n      buttonIcon: this.props.mode === Constants.MODE_TIME ? \"time\" : \"calendar\",\n      widgetStyle: {\n        display: 'block',\n        position: 'absolute',\n        left: -9999,\n        zIndex: '9999 !important'\n      },\n      viewDate: moment(this.props.dateTime, this.props.format, true).startOf(\"month\"),\n      selectedDate: moment(this.props.dateTime, this.props.format, true)\n    };\n\n    if (this.props.placeholder && !this.props.defaultText) {\n      state.placeholder = this.props.placeholder;\n    } else {\n      state.inputValue = typeof this.props.defaultText != 'undefined' ?  this.props.defaultText : moment(this.props.dateTime, this.props.format, true).format(this.resolvePropsInputFormat());\n    }\n    return state;\n  },\n  componentWillReceiveProps: function(nextProps) {\n    if(moment(nextProps.dateTime, nextProps.format, true).isValid()) {\n      return this.setState({\n        viewDate: moment(nextProps.dateTime, nextProps.format, true).startOf(\"month\"),\n        selectedDate: moment(nextProps.dateTime, nextProps.format, true),\n        inputValue: moment(nextProps.dateTime, nextProps.format, true).format(nextProps.inputFormat)\n      });\n    }\n    if (nextProps.inputFormat !== this.props.inputFormat) {\n      return this.setState({\n        inputFormat: nextProps.inputFormat\n      });\n    }\n  },\n  resolvePropsInputFormat: function() {\n    if(this.props.inputFormat) return this.props.inputFormat;\n    switch(this.props.mode) {\n      case Constants.MODE_TIME:\n        return \"h:mm A\";\n      case Constants.MODE_DATE:\n        return \"MM/DD/YY\";\n      default:\n        return \"MM/DD/YY h:mm A\";\n    }\n  },\n  onChange: function(event) {\n    var value = event.target == null ? event : event.target.value;\n    if (moment(value, this.state.inputFormat, true).isValid()) {\n      this.setState({\n        selectedDate: moment(value, this.state.inputFormat, true),\n        viewDate: moment(value, this.state.inputFormat, true).startOf(\"month\")\n      });\n    }\n\n    return this.setState({\n      inputValue: value\n    }, function() {\n      return this.props.onChange(moment(this.state.inputValue, this.state.inputFormat, true).format(this.props.format));\n    });\n\n  },\n  setSelectedDate: function(e) {\n    var target = e.target;\n    if (target.className && !target.className.match(/disabled/g)) {\n      var month;\n      if(target.className.indexOf(\"new\") >= 0) month = this.state.viewDate.month() + 1;\n      else if(target.className.indexOf(\"old\") >= 0) month = this.state.viewDate.month() - 1;\n      else month = this.state.viewDate.month();\n      return this.setState({\n        selectedDate: this.state.viewDate.clone().month(month).date(parseInt(e.target.innerHTML)).hour(this.state.selectedDate.hours()).minute(this.state.selectedDate.minutes())\n      }, function() {\n        this.closePicker();\n        this.props.onChange(this.state.selectedDate.format(this.props.format));\n        return this.setState({\n          inputValue: this.state.selectedDate.format(this.state.inputFormat)\n        });\n      });\n    }\n  },\n  setSelectedHour: function(e) {\n    return this.setState({\n      selectedDate: this.state.selectedDate.clone().hour(parseInt(e.target.innerHTML)).minute(this.state.selectedDate.minutes())\n    }, function() {\n      this.closePicker();\n      this.props.onChange(this.state.selectedDate.format(this.props.format));\n      return this.setState({\n        inputValue: this.state.selectedDate.format(this.state.inputFormat)\n      });\n    });\n  },\n  setSelectedMinute: function(e) {\n    return this.setState({\n      selectedDate: this.state.selectedDate.clone().hour(this.state.selectedDate.hours()).minute(parseInt(e.target.innerHTML))\n    }, function() {\n      this.closePicker();\n      this.props.onChange(this.state.selectedDate.format(this.props.format));\n      return this.setState({\n        inputValue: this.state.selectedDate.format(this.state.inputFormat)\n      });\n    });\n  },\n  setViewMonth: function(month) {\n    return this.setState({\n      viewDate: this.state.viewDate.clone().month(month)\n    });\n  },\n  setViewYear: function(year) {\n    return this.setState({\n      viewDate: this.state.viewDate.clone().year(year)\n    });\n  },\n  addMinute: function() {\n    return this.setState({\n      selectedDate: this.state.selectedDate.clone().add(1, \"minutes\")\n    }, function() {\n      this.props.onChange(this.state.selectedDate.format(this.props.format));\n      return this.setState({\n        inputValue: this.state.selectedDate.format(this.resolvePropsInputFormat())\n      });\n    });\n  },\n  addHour: function() {\n    return this.setState({\n      selectedDate: this.state.selectedDate.clone().add(1, \"hours\")\n    }, function() {\n      this.props.onChange(this.state.selectedDate.format(this.props.format));\n      return this.setState({\n        inputValue: this.state.selectedDate.format(this.resolvePropsInputFormat())\n      });\n    });\n  },\n  addMonth: function() {\n    return this.setState({\n      viewDate: this.state.viewDate.add(1, \"months\")\n    });\n  },\n  addYear: function() {\n    return this.setState({\n      viewDate: this.state.viewDate.add(1, \"years\")\n    });\n  },\n  addDecade: function() {\n    return this.setState({\n      viewDate: this.state.viewDate.add(10, \"years\")\n    });\n  },\n  subtractMinute: function() {\n    return this.setState({\n      selectedDate: this.state.selectedDate.clone().subtract(1, \"minutes\")\n    }, function() {\n      this.props.onChange(this.state.selectedDate.format(this.props.format));\n      return this.setState({\n        inputValue: this.state.selectedDate.format(this.resolvePropsInputFormat())\n      });\n    });\n  },\n  subtractHour: function() {\n    return this.setState({\n      selectedDate: this.state.selectedDate.clone().subtract(1, \"hours\")\n    }, function() {\n      this.props.onChange(this.state.selectedDate.format(this.props.format));\n      return this.setState({\n        inputValue: this.state.selectedDate.format(this.resolvePropsInputFormat())\n      });\n    });\n  },\n  subtractMonth: function() {\n    return this.setState({\n      viewDate: this.state.viewDate.subtract(1, \"months\")\n    });\n  },\n  subtractYear: function() {\n    return this.setState({\n      viewDate: this.state.viewDate.subtract(1, \"years\")\n    });\n  },\n  subtractDecade: function() {\n    return this.setState({\n      viewDate: this.state.viewDate.subtract(10, \"years\")\n    });\n  },\n  togglePeriod: function() {\n    if (this.state.selectedDate.hour() > 12) {\n      return this.onChange(this.state.selectedDate.clone().subtract(12, 'hours').format(this.state.inputFormat));\n    } else {\n      return this.onChange(this.state.selectedDate.clone().add(12, 'hours').format(this.state.inputFormat));\n    }\n  },\n  togglePicker: function() {\n    return this.setState({\n      showDatePicker: !this.state.showDatePicker,\n      showTimePicker: !this.state.showTimePicker\n    });\n  },\n  onClick: function() {\n    var classes, gBCR, offset, placePosition, scrollTop, styles;\n    if (this.state.showPicker) {\n      return this.closePicker();\n    } else {\n      this.setState({\n        showPicker: true\n      });\n      gBCR = this.refs.dtpbutton.getDOMNode().getBoundingClientRect();\n      classes = {\n        \"bootstrap-datetimepicker-widget\": true,\n        \"dropdown-menu\": true\n      };\n      offset = {\n        top: gBCR.top + window.pageYOffset - document.documentElement.clientTop,\n        left: gBCR.left + window.pageXOffset - document.documentElement.clientLeft\n      };\n      offset.top = offset.top + this.refs.datetimepicker.getDOMNode().offsetHeight;\n      scrollTop = (window.pageYOffset !== undefined) ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop;\n      placePosition = this.props.direction === 'up' ? 'top' : this.props.direction === 'bottom' ? 'bottom' : this.props.direction === 'auto' ? offset.top + this.refs.widget.getDOMNode().offsetHeight > window.offsetHeight + scrollTop && this.refs.widget.offsetHeight + this.refs.datetimepicker.getDOMNode().offsetHeight > offset.top ? 'top' : 'bottom' : void 0;\n      if (placePosition === 'top') {\n        offset.top = -this.refs.widget.getDOMNode().offsetHeight - this.getDOMNode().clientHeight - 2;\n        classes[\"top\"] = true;\n        classes[\"bottom\"] = false;\n        classes['pull-right'] = true;\n      } else {\n        offset.top = 40;\n        classes[\"top\"] = false;\n        classes[\"bottom\"] = true;\n        classes['pull-right'] = true;\n      }\n      styles = {\n        display: 'block',\n        position: 'absolute',\n        top: offset.top,\n        left: 'auto',\n        right: 40\n      };\n      return this.setState({\n        widgetStyle: styles,\n        widgetClasses: classes\n      });\n    }\n  },\n  closePicker: function(e) {\n    var style;\n    style = this.state.widgetStyle;\n    style['left'] = -9999;\n    style['display'] = 'none';\n    return this.setState({\n      showPicker: false,\n      widgetStyle: style\n    });\n  },\n  renderOverlay: function() {\n    var styles;\n    styles = {\n      position: 'fixed',\n      top: 0,\n      bottom: 0,\n      left: 0,\n      right: 0,\n      zIndex: '999'\n    };\n    if (this.state.showPicker) {\n      return (React.createElement(\"div\", {style: styles, onClick: this.closePicker}));\n    } else {\n      return React.createElement(\"span\", null);\n    }\n  },\n  render: function() {\n    return (\n          React.createElement(\"div\", null, \n            this.renderOverlay(), \n            React.createElement(DateTimePicker, {ref: \"widget\", \n                  widgetClasses: this.state.widgetClasses, \n                  widgetStyle: this.state.widgetStyle, \n                  showDatePicker: this.state.showDatePicker, \n                  showTimePicker: this.state.showTimePicker, \n                  viewDate: this.state.viewDate, \n                  selectedDate: this.state.selectedDate, \n                  showToday: this.props.showToday, \n                  viewMode: this.props.viewMode, \n                  daysOfWeekDisabled: this.props.daysOfWeekDisabled, \n                  mode: this.props.mode, \n                  minDate: this.props.minDate, \n                  maxDate: this.props.maxDate, \n                  addDecade: this.addDecade, \n                  addYear: this.addYear, \n                  addMonth: this.addMonth, \n                  addHour: this.addHour, \n                  addMinute: this.addMinute, \n                  subtractDecade: this.subtractDecade, \n                  subtractYear: this.subtractYear, \n                  subtractMonth: this.subtractMonth, \n                  subtractHour: this.subtractHour, \n                  subtractMinute: this.subtractMinute, \n                  setViewYear: this.setViewYear, \n                  setViewMonth: this.setViewMonth, \n                  setSelectedDate: this.setSelectedDate, \n                  setSelectedHour: this.setSelectedHour, \n                  setSelectedMinute: this.setSelectedMinute, \n                  togglePicker: this.togglePicker, \n                  togglePeriod: this.togglePeriod}\n            ), \n            React.createElement(\"div\", {className: \"input-group date\", ref: \"datetimepicker\"}, \n              React.createElement(\"input\", React.__spread({type: \"text\", className: \"form-control\", onChange: this.onChange, value: this.state.inputValue, placeholder: this.state.placeholder},  this.props.inputProps)), \n              React.createElement(\"span\", {className: \"input-group-addon\", onClick: this.onClick, onBlur: this.onBlur, ref: \"dtpbutton\"}, React.createElement(Glyphicon, {glyph: this.state.buttonIcon}))\n            )\n          )\n    );\n  }\n});\n\nmodule.exports = DateTimeField;\n"]}