text: !function(a){window.PluginInput={init:function(){this.checkboxIconChecked="fa fa-check";this.radioIconChecked="fa-circle-o";this.radioIconUnchecked="fa-circle";this.igRadioIconChecked="fa-circle";this.accordionIconOpen="fa-minus";this.accordionIconClose="fa-plus";this.initInputGroup();this.initCheckbox();this.initRadio();this.initSelect();this.initInputGroupCheckbox();this.initInputGroupRadio();this.initToggle();this.initAccordionIconToggle()},initInputGroup:function(){a(document).on("focusin",".input-group input",function(){a(this).parent().addClass("input-focused")}).on("focusout",".input-group input",function(){a(this).parent().removeClass("input-focused")})},initInputGroupCheckbox:function(){var b=this;a(".input-group-addon > input[type=checkbox]").not(".pui-init").each(function(){var e=a(this).addClass("pui-init"),d=e.parent();d.addClass("has-checkbox");var c=a('<span class="ctrl-overlay"/>').appendTo(d);if(e[0].checked){if(!e[0].disabled){d.addClass("checked")}}c.addClass(b.checkboxIconChecked)}).parent().on("click",function(){var c=a(this).find("input:checkbox");if(c[0].disabled){return}c[0].checked=!c[0].checked;a(this)[c[0].checked?"addClass":"removeClass"]("checked")})},initInputGroupRadio:function(){var b=this;a(".input-group-addon > input[type=radio]").not(".pui-init").each(function(){var d=a(this).addClass("pui-init"),e=d.parent();e.addClass("has-radio");var c=a('<span class="ctrl-overlay"/>').appendTo(e);if(d[0].checked){if(!d[0].disabled){e.addClass("checked")}}c.addClass(b.igRadioIconChecked)}).parent().on("click",function(){var e=a(this),d=e.find("input:radio"),c=e.find(".ctrl-overlay");if(d[0].disabled){return}a('input:radio[name="'+d.attr("name")+'"]').not(":disabled").parent().removeClass("checked");d[0].checked=!d[0].checked;e[d[0].checked?"addClass":"removeClass"]("checked")})},initRadio:function(){var b=this;a(".radio").not(".pui-init").each(function(){var f=a(this).addClass("pui-init"),e=f.find("input:radio"),d=f.children("label"),c=a('<span class="ctrl-overlay"/>').appendTo(d);c.addClass("fa-circle");if(e[0].checked){if(!e[0].disabled){f.addClass("checked")}c.addClass(b.radioIconChecked).removeClass(b.radioIconUnchecked)}}).on("click",function(){var e=a(this),d=e.find("input:radio"),c=e.find(".ctrl-overlay");if(d[0].disabled){return}a('input:radio[name="'+d.attr("name")+'"]').not(":disabled").siblings(".ctrl-overlay").removeClass(b.radioIconChecked).addClass(b.radioIconUnchecked).parent().parent().removeClass("checked");if(d[0].checked){e.addClass("checked");c.removeClass(b.radioIconUnchecked).addClass(b.radioIconChecked)}})},initCheckbox:function(){var b=this;a(".checkbox").not(".pui-init").each(function(){var f=a(this).addClass("pui-init"),e=f.find("input:checkbox"),d=f.children("label"),c=a('<span class="ctrl-overlay"/>').appendTo(d);if(e[0].checked){if(!e[0].disabled){f.addClass("checked")}c.addClass(b.checkboxIconChecked)}}).on("click",function(){var e=a(this),c=e.find("input:checkbox"),d=e.find(".ctrl-overlay");if(c[0].disabled){return}e[c[0].checked?"addClass":"removeClass"]("checked");d[c[0].checked?"addClass":"removeClass"](b.checkboxIconChecked)})},initToggle:function(){a(document).on("click",".toggle",function(){if(!a(this).hasClass("disabled")){a(this).toggleClass("on")}})},initAccordionIconToggle:function(){var b=this;a(document).on("show.bs.collapse hide.bs.collapse",".accordion",function(d){var c=a(d.target);c.siblings(".accordion-heading").find("em").toggleClass(b.accordionIconOpen+" "+b.accordionIconClose);if(d.type=="show"){c.prev(".accordion-heading").find(".accordion-toggle").addClass("active")}if(d.type=="hide"){a(this).find(".accordion-toggle").not(c).removeClass("active")}})},initSelect:function(){a("select").not(".form-control-multiple").not("pui-init").each(function(){a(this).addClass("pui-init");a(this).wrap('<label class="select"></label>')})}}}(window.jQuery);