"use strict";/*! * jquery.sumoselect - v3.0.3 * http://hemantnegi.github.io/jquery.sumoselect * 2016-12-12 * * Copyright 2015 Hemant Negi * Email : hemant.frnz@gmail.com * Compressor http://refresh-sf.com/ */(function(a){'use strict';"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"==typeof exports?a(jQuery):module.exports=a(require("jquery"))})(function(a){'namespace sumo';a.fn.SumoSelect=function(b){// This is the easiest way to have default options. var d=a.extend({placeholder:"Select Here",// Dont change it here. csvDispCount:3,// display no. of items in multiselect. 0 to display all. captionFormat:"{0} Selected",// format of caption text. you can set your locale. captionFormatAllSelected:"{0} all selected!",// format of caption text when all elements are selected. set null to use captionFormat. It will not work if there are disabled elements in select. floatWidth:400,// Screen width of device at which the list is rendered in floating popup fashion. forceCustomRendering:!1,// force the custom modal on all devices below floatWidth resolution. nativeOnDevice:["Android","BlackBerry","iPhone","iPad","iPod","Opera Mini","IEMobile","Silk"],// outputAsCSV:!1,// true to POST data as csv ( false for Html control array ie. default select ) csvSepChar:",",// separation char in csv mode okCancelInMulti:!1,// display ok cancel buttons in desktop mode multiselect also. isClickAwayOk:!1,// for okCancelInMulti=true. sets whether click outside will trigger Ok or Cancel (default is cancel). triggerChangeCombined:!0,// im multi select mode whether to trigger change event on individual selection or combined selection. selectAll:!1,// to display select all button in multiselect mode.|| also select all will not be available on mobile devices. search:!1,// to display input for filtering content. selectAlltext will be input text placeholder searchText:"Search...",// placeholder for search input searchFn:function searchFn(a,b){// search function return 0>a.toLowerCase().indexOf(b.toLowerCase())},noMatch:"No matches for \"{0}\"",prefix:"",// some prefix usually the field name. eg. 'Hello' locale:["OK","Cancel","Select All"],// all text that is used. don't change the index. up:!1,// set true to open upside. showTitle:!0,// set to false to prevent title (tooltip) from appearing max:null// Maximum number of options selected (when multiple) },b),e=this.each(function(){var c=this;// the original select object. this.sumo||!a(this).is("select")||(//already initialized this.sumo={E:a(c),//the jquery object of original select element. is_multi:a(c).attr("multiple"),//if its a multiple select select:"",caption:"",placeholder:"",optDiv:"",CaptionCont:"",ul:"",is_floating:!1,is_opened:!1,//backdrop: '', mob:!1,// if to open device default select Pstate:[],lastUnselected:null,selectedCount:0,createElems:function createElems(){var b=this;//break for mobile rendring.. if forceCustomRendering is false return b.E.wrap("