text: /*!
   * hera.checkall.js v2.0.0
   * https://github.com/crewstyle/OlympusHera
   *
   * This plugin adds a check all feature with checkbox and radio fields.
   *
   * Example of JS:
   *      $('.master :checkbox').heraCheckall({
   *          container: '.container',                    //node containing all items to un/check
   *          items: '.list input[type="checkbox"]',      //item node to un/check
   *          closest: 'label',                           //closest node to item to add the selected class
   *          selected: 'selected'                        //selected class
   *      });
   * 
   * Example of HTML:
   *      <div class="container">
   *          <label class="master">
   *              <input type="checkbox" /> Un/check all
   *          </label>
   *          <fieldset class="list">
   *              <label><input type="checkbox" name="value" value="1" /> Value 1</label>
   *              <label><input type="checkbox" name="value" value="2" /> Value 2</label>
   *              <label><input type="checkbox" name="value" value="3" /> Value 3</label>
   *          </fieldset>
   *      </div>
   *
   * Copyright 2016 Achraf Chouk
   * Achraf Chouk (https://github.com/crewstyle)
   */
  !function(a){"use strict";var b=function(b,c){var d=this;d.$el=b,d.options=c;var e="INPUT"==b[0].nodeName?"change":"click";d.$checks=d.$el.closest(d.options.container).find(d.options.items),d.$el.on(e,a.proxy(d.click,d)),d.$checks.on(e,a.proxy(d.refresh,d))};b.prototype.$checks=null,b.prototype.$el=null,b.prototype.options=null,b.prototype.click=function(a){a.preventDefault();var b=this;b.$checks.filter(":not(:disabled)").attr("checked",b.$el.is(":checked")),b.$el.is(":checked")?b.$checks.closest(b.options.closest).addClass(b.options.selected):b.$checks.closest(b.options.closest).removeClass(b.options.selected)},b.prototype.refresh=function(a){a.preventDefault();var b=this,c=0===b.$checks.not(":checked").length;b.$el.attr("checked",c)};var c={init:function(c){if(!this.length)return!1;var d={container:".container",items:'input[type="checkbox"]',closest:"label",selected:"selected"};return this.each(function(){c&&a.extend(d,c),new b(a(this),d)})},update:function(){},destroy:function(){}};a.fn.heraCheckall=function(b){return c[b]?c[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?(a.error("Method "+b+" does not exist on heraCheckall"),!1):c.init.apply(this,arguments)}}(window.jQuery);