       "ssl": true,
       "css": true,
       "debug": false,
+      "outOfOffice": false,
       "linkTarget": "_blank",
       "display": {
         "hideOnError": true,


  parseBasicEventData: (e) ->
    data = @parse e
    humanData = {
      state: @humanState(data.state),
      percentUptime: @humanPercentUptime(data.percent_uptime),
      incidentFreeStreak: @humanIncidentFreeStreak(data.incident_free_streak)
    }

    @updateState data.state
    @updatePercentUptime data.percent_uptime, humanData.percentUptime
    @updateIncidentFreeStreak data.incident_free_streak,
      humanData.incidentFreeStreak
    @updateToggle humanData
    data

  updateState: (state) ->
    state = "pending" if !state?
    setElDataAttr @elements.led, "state", state
    @state = state
    @updateIssuePaneText()

  updateToggle: (humanData) ->
    return unless @elements.state?
    text = template @i18n["toggle"], humanData
    setElText @elements.state, text
    @alignPane()


window.Status or= {}

class window.Status.Widget
  _version = "3.8.0"

  constructor: (@options = {}) ->
    requiredOptions = ["hostname", "selector"]
