1/* Source and licensing information for the line(s) below can be found at https://bccjapan.com/themes/EventBank/js/select2.multi-checkboxes.js. */ 2(function($){var S2MultiCheckboxes=function(options,element){var self=this;self.options=options;self.$element=$(element);var values=self.$element.val();self.$element.removeAttr('multiple');self.select2=self.$element.select2({allowClear:true,minimumResultsForSearch:-1,placeholder:options.placeholder,closeOnSelect:false,templateSelection:function(){return self.options.templateSelection(self.$element.val()||[],$('option',self.$element).length)},templateResult:function(result){if(result.loading!==undefined)return result.text;return $('<div>').text(result.text).addClass(self.options.wrapClass)}}).data('select2');self.select2.$results.off("mouseup").on("mouseup",".select2-results__option[aria-selected]",(function(self){return function(evt){var $this=$(this),data=$this.data('data');if($this.attr('aria-selected')==='true'){self.trigger('unselect',{originalEvent:evt,data:data});return};self.trigger('select',{originalEvent:evt,data:data})}})(self.select2));self.$element.attr('multiple','multiple').val(values).trigger('change.select2')};$.fn.extend({select2MultiCheckboxes:function(){var options=$.extend({placeholder:'Choose elements',templateSelection:function(selected,total){return selected.length+' > '+total+' total'},wrapClass:'wrap'},arguments[0]);this.each(function(){new S2MultiCheckboxes(options,this)})}})})(jQuery) 3/* Source and licensing information for the above line(s) can be found at https://bccjapan.com/themes/EventBank/js/select2.multi-checkboxes.js. */
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.