/*\ |*| ======================================================================== |*| Bootstrap Toggle: bootstrap4-toggle.js v3.6.1 |*| https://gitbrent.github.io/bootstrap4-toggle/ |*| ======================================================================== |*| Copyright 2018-2019 Brent Ely |*| Licensed under MIT |*| ======================================================================== \*/ !(function (a) { "use strict"; function l(t, e) { (this.$element = a(t)), (this.options = a.extend({}, this.defaults(), e)), this.render(); } (l.VERSION = "3.6.0"), (l.DEFAULTS = { on: "On", off: "Off", onstyle: "primary", offstyle: "light", size: "normal", style: "", width: null, height: null, }), (l.prototype.defaults = function () { return { on: this.$element.attr("data-on") || l.DEFAULTS.on, off: this.$element.attr("data-off") || l.DEFAULTS.off, onstyle: this.$element.attr("data-onstyle") || l.DEFAULTS.onstyle, offstyle: this.$element.attr("data-offstyle") || l.DEFAULTS.offstyle, size: this.$element.attr("data-size") || l.DEFAULTS.size, style: this.$element.attr("data-style") || l.DEFAULTS.style, width: this.$element.attr("data-width") || l.DEFAULTS.width, height: this.$element.attr("data-height") || l.DEFAULTS.height, }; }), (l.prototype.render = function () { (this._onstyle = "btn-" + this.options.onstyle), (this._offstyle = "btn-" + this.options.offstyle); var t = "large" === this.options.size || "lg" === this.options.size ? "btn-lg" : "small" === this.options.size || "sm" === this.options.size ? "btn-sm" : "mini" === this.options.size || "xs" === this.options.size ? "btn-xs" : "", e = a('