{"version":3,"sources":["bootstrap-toggle/js/bootstrap-toggle.js"],"names":["$","Toggle","element","options","this","$element","extend","defaults","render","VERSION","DEFAULTS","on","off","onstyle","offstyle","size","style","width","height","prototype","attr","_onstyle","_offstyle","$toggleOn","html","addClass","$toggleOff","$toggleHandle","$toggleGroup","append","$toggle","prop","wrap","parent","Math","max","outerWidth","outerHeight","css","update","trigger","toggle","silent","removeClass","enable","removeAttr","disable","change","proxy","destroy","remove","removeData","unwrap","old","fn","bootstrapToggle","option","each","$this","data","Constructor","noConflict","document","e","find","preventDefault","jQuery"],"mappings":"CASE,SAAUA,GACV,aAKY,SAATC,EAAmBC,EAASC,GAC/BC,KAAKC,SAAYL,EAAEE,GACnBE,KAAKD,QAAYH,EAAEM,OAAO,GAAIF,KAAKG,WAAYJ,GAC/CC,KAAKI,SAGNP,EAAOQ,QAAW,QAElBR,EAAOS,SAAW,CACjBC,GAAI,KACJC,IAAK,MACLC,QAAS,UACTC,SAAU,UACVC,KAAM,SACNC,MAAO,GACPC,MAAO,KACPC,OAAQ,MAGTjB,EAAOkB,UAAUZ,SAAW,WAC3B,MAAO,CACNI,GAAIP,KAAKC,SAASe,KAAK,YAAcnB,EAAOS,SAASC,GACrDC,IAAKR,KAAKC,SAASe,KAAK,aAAenB,EAAOS,SAASE,IACvDC,QAAST,KAAKC,SAASe,KAAK,iBAAmBnB,EAAOS,SAASG,QAC/DC,SAAUV,KAAKC,SAASe,KAAK,kBAAoBnB,EAAOS,SAASI,SACjEC,KAAMX,KAAKC,SAASe,KAAK,cAAgBnB,EAAOS,SAASK,KACzDC,MAAOZ,KAAKC,SAASe,KAAK,eAAiBnB,EAAOS,SAASM,MAC3DC,MAAOb,KAAKC,SAASe,KAAK,eAAiBnB,EAAOS,SAASO,MAC3DC,OAAQd,KAAKC,SAASe,KAAK,gBAAkBnB,EAAOS,SAASQ,SAI/DjB,EAAOkB,UAAUX,OAAS,WACzBJ,KAAKiB,SAAW,OAASjB,KAAKD,QAAQU,QACtCT,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GAAGC,gBAbL,SAAgBC,GACf,OAAOpD,KAAKqD,KAAK,WAChB,IAAIC,EAAU1D,EAAEI,MACZuD,EAAUD,EAAMC,KAAK,aACrBxD,EAA2B,iBAAVqD,GAAsBA,EAEtCG,GAAMD,EAAMC,KAAK,YAAcA,EAAO,IAAI1D,EAAOG,KAAMD,IACvC,iBAAVqD,GAAsBG,EAAKH,IAASG,EAAKH,QAOtDxD,EAAEsD,GAAGC,gBAAgBK,YAAc3D,EAKnCD,EAAEsD,GAAGb,OAAOoB,WAAa,WAExB,OADA7D,EAAEsD,GAAGC,gBAAkBF,EAChBjD,MAMRJ,EAAE,WACDA,EAAE,6CAA6CuD,oBAGhDvD,EAAE8D,UAAUnD,GAAG,kBAAmB,2BAA4B,SAASoD,GACtD/D,EAAEI,MAAM4D,KAAK,wBACnBT,gBAAgB,UAC1BQ,EAAEE,mBAvKF,CA0KAC","file":"bootstrap-toggle.min.js","sourcesContent":["/*! ========================================================================\r\n * Bootstrap Toggle: bootstrap-toggle.js v2.2.0\r\n * http://www.bootstraptoggle.com\r\n * ========================================================================\r\n * Copyright 2014 Min Hur, The New York Times Company\r\n * Licensed under MIT\r\n * ======================================================================== */\r\n\r\n\r\n +function ($) {\r\n \t'use strict';\r\n\r\n\t// TOGGLE PUBLIC CLASS DEFINITION\r\n\t// ==============================\r\n\r\n\tvar Toggle = function (element, options) {\r\n\t\tthis.$element = $(element)\r\n\t\tthis.options = $.extend({}, this.defaults(), options)\r\n\t\tthis.render()\r\n\t}\r\n\r\n\tToggle.VERSION = '2.2.0'\r\n\r\n\tToggle.DEFAULTS = {\r\n\t\ton: 'On',\r\n\t\toff: 'Off',\r\n\t\tonstyle: 'primary',\r\n\t\toffstyle: 'default',\r\n\t\tsize: 'normal',\r\n\t\tstyle: '',\r\n\t\twidth: null,\r\n\t\theight: null\r\n\t}\r\n\r\n\tToggle.prototype.defaults = function() {\r\n\t\treturn {\r\n\t\t\ton: this.$element.attr('data-on') || Toggle.DEFAULTS.on,\r\n\t\t\toff: this.$element.attr('data-off') || Toggle.DEFAULTS.off,\r\n\t\t\tonstyle: this.$element.attr('data-onstyle') || Toggle.DEFAULTS.onstyle,\r\n\t\t\toffstyle: this.$element.attr('data-offstyle') || Toggle.DEFAULTS.offstyle,\r\n\t\t\tsize: this.$element.attr('data-size') || Toggle.DEFAULTS.size,\r\n\t\t\tstyle: this.$element.attr('data-style') || Toggle.DEFAULTS.style,\r\n\t\t\twidth: this.$element.attr('data-width') || Toggle.DEFAULTS.width,\r\n\t\t\theight: this.$element.attr('data-height') || Toggle.DEFAULTS.height\r\n\t\t}\r\n\t}\r\n\r\n\tToggle.prototype.render = function () {\r\n\t\tthis._onstyle = 'btn-' + this.options.onstyle\r\n\t\tthis._offstyle = 'btn-' + this.options.offstyle\r\n\t\tvar size = this.options.size === 'large' ? 'btn-lg'\r\n\t\t\t: this.options.size === 'small' ? 'btn-sm'\r\n\t\t\t: this.options.size === 'mini' ? 'btn-xs'\r\n\t\t\t: ''\r\n\t\tvar $toggleOn = $('