"use strict";

function _jade_template_fn(locals) {
  locals = locals || {};;;
  var result_of_with = function ($helpers, Object, disabled, on) {
    var h = require('panel').h;
    return {
      value: h("div", {
        "on": {
          click: disabled ? null : $helpers.toggleSwitch
        },
        "class": Object.assign({}, {
          'switch-on': on,
          'switch-off': !on,
          'disabled': disabled
        }, {
          'mp-switch': true
        })
      })
    };
  }.call(this, "$helpers" in locals ? locals.$helpers : typeof $helpers !== "undefined" ? $helpers : undefined, "Object" in locals ? locals.Object : typeof Object !== "undefined" ? Object : undefined, "disabled" in locals ? locals.disabled : typeof disabled !== "undefined" ? disabled : undefined, "on" in locals ? locals.on : typeof on !== "undefined" ? on : undefined);
  if (result_of_with) return result_of_with.value;
}
module.exports = _jade_template_fn;