!function(c){c.jqx.jqxWidget("jqxComboBox","",{}),c.extend(c.jqx._jqxComboBox.prototype,{defineInstance:function(){var e={disabled:!1,width:200,height:25,items:new Array,selectedIndex:-1,selectedItems:new Array,_selectedItems:new Array,source:null,autoItemsHeight:!1,scrollBarSize:c.jqx.utilities.scrollBarSize,arrowSize:17,enableHover:!0,enableSelection:!0,visualItems:new Array,groups:new Array,equalItemsWidth:!0,itemHeight:-1,visibleItems:new Array,hint:!0,emptyGroupText:"Group",emptyString:"",ready:null,openDelay:250,closeDelay:300,animationType:"default",dropDownWidth:"auto",dropDownHeight:"200px",autoDropDownHeight:!1,enableBrowserBoundsDetection:!1,dropDownHorizontalAlignment:"left",dropDownVerticalAlignment:"bottom",dropDownContainer:"default",searchMode:"startswithignorecase",autoComplete:!1,remoteAutoComplete:!1,remoteAutoCompleteDelay:500,selectionMode:"default",minLength:2,displayMember:"",valueMember:"",groupMember:"",searchMember:"",keyboardSelection:!0,renderer:null,autoOpen:!1,template:"",checkboxes:!1,promptText:"",placeHolder:"",rtl:!1,listBox:null,validateSelection:null,showCloseButtons:!0,renderSelectedItem:null,search:null,popupZIndex:2e3,searchString:null,multiSelect:!1,showArrow:!0,_disabledItems:new Array,touchMode:"auto",autoBind:!0,aria:{"aria-disabled":{name:"disabled",type:"boolean"}},events:["open","close","select","unselect","change","checkChange","bindingComplete","itemAdd","itemRemove","itemUpdate"]};return this===c.jqx._jqxComboBox.prototype||c.extend(!0,this,e),e},createInstance:function(e){var t,i,s;if(this.host.attr("role","combobox"),c.jqx.aria(this,"aria-autocomplete","both"),null==c.jqx._jqxListBox||null==c.jqx._jqxListBox)throw new Error("jqxComboBox: Missing reference to jqxlistbox.js.");c.jqx.aria(this),this.isMaterialized()&&(t=(s=window.getComputedStyle(this.element)).getPropertyValue("--jqx-dropdown-animation"),i=s.getPropertyValue("--jqx-list-item-height"),(s=s.getPropertyValue("--jqx-action-button-size"))&&(this.arrowSize=parseInt(s)),t&&"default"==this.animationType&&(this.animationType=t.trim()),i&&-1===this.itemHeight&&(this.itemHeight=parseInt(i))),""!=this.promptText&&(this.placeHolder=this.promptText),this.render()},render:function(){var e,t,o=this,i=o.element.nodeName.toLowerCase();"select"==i||"ul"==i||"ol"==i?(o.field=o.element,o.field.className&&(o._className=o.field.className),t={title:o.field.title},o.field.id.length?t.id=o.field.id.replace(/[^\w]/g,"_")+"_jqxComboBox":t.id=c.jqx.utilities.createId()+"_jqxComboBox",e=c("
",t),o.width||(o.width=c(o.field).width()),o.height||(o.height=c(o.field).outerHeight()),o.element.style.cssText=o.field.style.cssText,c(o.field).hide().after(e),i=o.host.data(),o.host=e,o.host.data(i),o.element=e[0],o.element.id=o.field.id,o.field.id=t.id,o._className&&(o.host.addClass(o._className),c(o.field).removeClass(o._className)),o.field.tabIndex&&(t=o.field.tabIndex,o.field.tabIndex=-1,o.element.tabIndex=t),""!=o.field.innerHTML&&(s=c.jqx.parseSourceTag(o.field),o.source=s.items,-1==o.selectedIndex&&(o.selectedIndex=s.index))):(0");if(o.comboStructure=s,null==c.jqx._jqxListBox||null==c.jqx._jqxListBox)throw"jqxComboBox: Missing reference to jqxlistbox.js.";o.touch=c.jqx.mobile.isTouchDevice(),!0===o.touchMode&&(o.touch=!0),o.host.append(s),o.dropdownlistWrapper=o.host.find("#dropdownlistWrapper"),o.dropdownlistArrow=o.host.find("#dropdownlistArrow"),o.dropdownlistContent=o.host.find("#dropdownlistContent"),o.dropdownlistContent.addClass(o.toThemeProperty("jqx-combobox-content")),o.dropdownlistContent.addClass(o.toThemeProperty("jqx-widget-content")),o.dropdownlistWrapper[0].id="dropdownlistWrapper"+o.element.id,o.dropdownlistArrow[0].id="dropdownlistArrow"+o.element.id,o.dropdownlistContent[0].id="dropdownlistContent"+o.element.id,o.template&&o.dropdownlistArrow.addClass(o.toThemeProperty("jqx-"+o.template)),o.dropdownlistContent.append(c('')),o.input=o.dropdownlistContent.find("input"),o.input.addClass(o.toThemeProperty("jqx-combobox-input")),o.input.addClass(o.toThemeProperty("jqx-widget-content")),o.host.attr("tabindex")&&(o.input.attr("tabindex",o.host.attr("tabindex")),o.host.removeAttr("tabindex"));s=c("");this.hint&&(s[0].innerHTML=this.placeHolder),s.addClass(o.toThemeProperty("jqx-input-label")),o.dropdownlistWrapper.append(s),o.label=s;s=c("");o.dropdownlistWrapper.append(s),s.addClass(o.toThemeProperty("jqx-input-bar")),o.bar=s,(o=this).template&&(o.bar.addClass(o.toThemeProperty("jqx-"+o.template)),o.label.addClass(o.toThemeProperty("jqx-"+o.template))),o._addInput(),o.rtl&&(o.input.css({direction:"rtl"}),o.dropdownlistContent.addClass(o.toThemeProperty("jqx-combobox-content-rtl")));try{var n="listBox"+o.id,r=c(c.find("#"+n));0");l.hide(),"element"==o.dropDownContainer?l.appendTo(o.host):l.appendTo(document.body),l.addClass(o.toThemeProperty("jqx-listbox-container")),o.container=l,o.listBoxContainer=c(c.find("#innerListBox"+o.id));n=o.width;"auto"!=o.dropDownWidth&&(n=o.dropDownWidth),null==o.dropDownHeight&&(o.dropDownHeight=200),o.container.width(parseInt(n)+25),o.container.height(parseInt(o.dropDownHeight)+25),o._ready=!1,o.addHandler(o.listBoxContainer,"bindingComplete",function(e){o.listBox||(o.listBox=c.data(o.listBoxContainer[0],"jqxListBox").instance),o._ready||(o.ready&&o.ready(),o._ready=!0),o._raiseEvent("6")}),o.addHandler(o.listBoxContainer,"itemAdd",function(e){o._raiseEvent("7",e.args)}),o.addHandler(o.listBoxContainer,"itemRemove",function(e){o._raiseEvent("8",e.args)}),o.addHandler(o.listBoxContainer,"itemUpdate",function(e){o._raiseEvent("9",e.args)});o.listBoxContainer.jqxListBox({autoItemsHeight:o.autoItemsHeight,_checkForHiddenParent:!1,allowDrop:!1,allowDrag:!1,checkboxes:o.checkboxes,emptyString:o.emptyString,autoBind:!o.remoteAutoComplete&&o.autoBind,renderer:o.renderer,rtl:o.rtl,itemHeight:o.itemHeight,selectedIndex:o.selectedIndex,incrementalSearch:!1,width:n,scrollBarSize:o.scrollBarSize,autoHeight:o.autoDropDownHeight,height:o.dropDownHeight,groupMember:o.groupMember,searchMember:o.searchMember,displayMember:o.displayMember,valueMember:o.valueMember,source:o.source,theme:o.theme,rendered:function(){var e;o.listBox=c.data(o.listBoxContainer[0],"jqxListBox").instance,o.remoteAutoComplete?(o.autoDropDownHeight?(o.container.height(o.listBox.virtualSize.height+25),o.listBoxContainer.height(o.listBox.virtualSize.height),o.listBox._arrange()):(o.listBox._arrange(),o.listBox.ensureVisible(0),o.listBox._renderItems(),o.container.height(o.listBoxContainer.height()+25)),null!=o.searchString&&o.searchString.length>=o.minLength&&(e=o.listBoxContainer.jqxListBox("items"))&&0"),"top"==o.dropDownVerticalAlignment?o.dropdownlistArrowIcon.addClass(o.toThemeProperty("jqx-icon-arrow-up")):o.dropdownlistArrowIcon.addClass(o.toThemeProperty("jqx-icon-arrow-down")),o.dropdownlistArrowIcon.addClass(o.toThemeProperty("jqx-icon")),o.dropdownlistArrow.append(o.dropdownlistArrowIcon),o.dropdownlistArrow.addClass(o.toThemeProperty("jqx-combobox-arrow-normal")),o.dropdownlistArrow.addClass(o.toThemeProperty("jqx-fill-state-normal")),o.rtl?o.dropdownlistArrow.addClass(o.toThemeProperty("jqx-rc-l")):o.dropdownlistArrow.addClass(o.toThemeProperty("jqx-rc-r")),o._setSize(),o._updateHandlers(),o.addHandler(o.input,"keyup.textchange",function(e){o._writeTimer&&clearTimeout(o._writeTimer),o._writeTimer=setTimeout(function(){o._search(e);o.cinput&&o.input&&(o.displayMember?o._updateInputSelection():o.cinput[0].value=o.input[0].value)},50)}),c.jqx.browser.msie&&c.jqx.browser.version<8&&0"),this.host.append(this.cinput),e&&this.cinput.attr("name",e)},_updateInputSelection:function(){if(this.cinput){var e,i=new Array;if(-1==this.selectedIndex?this.cinput.val(""):null!=(e=this.getSelectedItem())?(this.cinput.val(e.value),i.push(e.value)):this.cinput.val(this.dropdownlistContent.text()),this.checkboxes||this.multiSelect){var t,s="";if(null!=(t=this.multiSelect?this.getSelectedItems():this.getCheckedItems()))for(var o=0;o"+document.createTextNode(t.input.val())+"")).addClass(t.toThemeProperty("jqx-widget")),c(document.body).append(i),o=i.width()+15,i.remove(),o>t.host.width()&&(o=t.host.width()),o<25&&(o=25),t.input.css("width",o+"px"),0==t.selectedItems.length?(t.input.css("width","100%"),t.isMaterialized()||t.input.attr("placeholder",t.placeHolder)):t.isMaterialized()||t.input.attr("placeholder",""),i=parseInt(this._findPos(t.host[0])[1])+parseInt(t.host.outerHeight())-1+"px",t.container.css("top",i),o=parseInt(t.host.height()),t.dropdownlistArrow.height(o)),!t.isanimating){if(e.altKey&&38==e.keyCode)return t.hideListBox("altKey"),!1;if(e.altKey&&40==e.keyCode)return t.isOpened()||t.showListBox("altKey"),!1}if(37==e.keyCode||39==e.keyCode)return!1;if(!e.altKey&&18!=e.keyCode&&!(33<=e.keyCode&&e.keyCode<=40||(e.ctrlKey||t.ctrlKey)&&88!=e.keyCode&&86!=e.keyCode)){var i=t.input.val();if(0==i.length&&!t.autoComplete)return t.listBox.searchString=t.input.val(),t.listBox.clearSelection(),t.hideListBox("search"),void(t.searchString=t.input.val());if(t.remoteAutoComplete){function s(){t.listBox.vScrollInstance.value=0}t=this;i.length>=t.minLength?e.ctrlKey||e.altKey||(t.searchString!=i&&(null==t.listBoxContainer.jqxListBox("source")&&t.listBoxContainer.jqxListBox({source:t.source}),t._searchTimer&&clearTimeout(t._searchTimer),13!=e.keyCode&&27!=e.keyCode&&(t._searchTimer=setTimeout(function(){if(s(),t.autoDropDownHeight&&(t.listBox.autoHeight=!0),t.searchString=t.input.val(),null==t.search)throw"'search' function is not defined";t.search(t.input.val())},t.remoteAutoCompleteDelay))),t.searchString=i):(t._searchTimer&&clearTimeout(t._searchTimer),s(),t.searchString="",t.search(""),t.listBoxContainer.jqxListBox({source:null}))}else{var o,n,t=this;if(i!==t.searchString)if("27"!=e.keyCode&&"13"!=e.keyCode&&(o=t.input[0].value,i=(n=t._updateItemsVisibility(i)).matchItems,t.autoComplete&&t.autoItemsHeight&&(t.input[0].value=o),n=n.index,t.autoComplete||t.remoteAutoComplete||(!t.multiSelect||t.multiSelect&&0<=n)&&(t.listBox.selectIndex(n),t.listBox.isIndexInView(n)?t.listBox._renderItems():t.listBox.ensureVisible(n)),t.autoComplete&&0===i.length&&t.hideListBox("search")),"13"==e.keyCode)(l="block"==t.container.css("display"))&&!t.isanimating&&(t.hideListBox("keyboard"),t._oldvalue=t.listBox.selectedValue);else if("27"==e.keyCode){var r,l="block"==t.container.css("display");if(l&&!t.isanimating)return t.multiSelect?(t.input.val(""),t.listBox.selectedValue=null):(r=t.listBox.getVisibleItem(t._oldvalue))?(t=this,setTimeout(function(){t.autoComplete&&t._updateItemsVisibility(""),t.listBox.selectIndex(r.index),t.renderSelection("api")},t.closeDelay)):t.clearSelection(),t.hideListBox("keyboard"),t.renderSelection("api"),e.preventDefault(),!1}else t.isOpened()||t.opening||e.ctrlKey||t.listBox.visibleItems&&0=t&&e.pageY<=t+r.host.height()+2&&e.pageX>=i&&e.pageX=o&&e.pageY<=o+r.container.height()-20&&e.pageX>=s&&e.pageX");null!=t.label&&null!=t.label&&0n&&s>this.host.width()&&(n=this.host.coord().left,s=s-this.host.width(),t.left=n-s+2),t.left<0&&(t.left=parseInt(this.host.coord().left)+"px"),t.top-=Math.min(t.top,t.top+o>e&&othis.host.width()?this.container.css("left",25+parseInt(Math.round(l))-d+"px"):this.container.css("left",25+parseInt(Math.round(l))+d+"px")),"top"==this.dropDownVerticalAlignment&&(l=o.height(),a=!0,o.css("top",23),o.addClass(this.toThemeProperty("jqx-popup-up")),d=parseInt(this.host.outerHeight()),d=parseInt(r)-Math.abs(l+d+23),this.container.css("top",d)),this.enableBrowserBoundsDetection&&(h=this.testOffset(o,{left:parseInt(this.container.css("left")),top:parseInt(r)},parseInt(this.host.outerHeight())),parseInt(this.container.css("top"))!=h.top?(a=!0,o.css("top",23),o.addClass(this.toThemeProperty("jqx-popup-up"))):o.css("top",0),this.container.css("top",h.top),this.container.css("top",h.top),parseInt(this.container.css("left"))!=h.left&&this.container.css("left",h.left)),"none"==this.animationType||"transform"===this.animationType?(this.container.css("display","block"),c.data(document.body,"openedCombojqxListBoxParent",s),c.data(document.body,"openedCombojqxListBox"+s.element.id,o),o.css("margin-top",0),o.css("opacity",1)):(this.container.css("display","block"),h=o.outerHeight(),o.stop(),"fade"==this.animationType?(o.css("margin-top",0),o.css("opacity",0),o.animate({opacity:1},this.openDelay,function(){s.isanimating=!1,s.opening=!1,c.data(document.body,"openedCombojqxListBoxParent",s),c.data(document.body,"openedCombojqxListBox"+s.element.id,o)})):(o.css("opacity",1),a?o.css("margin-top",h):o.css("margin-top",-h),this.isanimating=!0,this.opening=!0,o.animate({"margin-top":0},this.openDelay,function(){s.isanimating=!1,s.opening=!1,c.data(document.body,"openedCombojqxListBoxParent",s),c.data(document.body,"openedCombojqxListBox"+s.element.id,o)}))),n._renderItems(),a?(this.host.addClass(this.toThemeProperty("jqx-rc-t-expanded")),o.addClass(this.toThemeProperty("jqx-rc-b-expanded")),this.dropdownlistArrow.addClass(this.toThemeProperty("jqx-rc-t-expanded"))):(this.host.addClass(this.toThemeProperty("jqx-rc-b-expanded")),o.addClass(this.toThemeProperty("jqx-rc-t-expanded")),this.dropdownlistArrow.addClass(this.toThemeProperty("jqx-rc-b-expanded"))),o.addClass(this.toThemeProperty("jqx-fill-state-focus")),this._raiseEvent("0",n),o.addClass(this.toThemeProperty("jqx-popup-show"))}},doMultiSelect:function(e){this.checkboxes&&(this.multiSelect=!1);var r=this;if(!this.multiSelect){var t=r.dropdownlistContent.find(".jqx-button"),i="mousedown";if(this.touch&&(i=c.jqx.mobile.getTouchEventName("touchstart")),this.removeHandler(t,i),this.removeHandler(t.find(".jqx-icon-close"),i),t.remove(),!(n=this.listBox.items))return;for(var s=0;s');s.addClass(r.toThemeProperty("jqx-button")),s.addClass(r.toThemeProperty("jqx-combobox-multi-item")),s.addClass(r.toThemeProperty("jqx-fill-state-normal")),s.addClass(r.toThemeProperty("jqx-rc-all")),t?(i=t.label,!r.renderSelectedItem||(e=r.renderSelectedItem(e,t))&&(i=e),""==s[0].innerHTML&&(s[0].innerHTML=''+i+""),r.rtl&&(s[0].innerHTML=''+i+""),t=r.rtl?"left":"right",r.showCloseButtons&&(i='',c.jqx.browser.msie&&c.jqx.browser.version<8&&(i=''),r.rtl&&(i='',c.jqx.browser.msie&&c.jqx.browser.version<8&&(i='')),s[0].innerHTML+=i)):""==s[0].innerHTML&&(s[0].innerHTML=''),r.dropdownlistContent.append(s)}),r.dropdownlistContent.append(r.input),r.input.val(""),!1!==e&&(r.input.focus(),setTimeout(function(){r.input.focus()},10));t=r.dropdownlistContent.find(".jqx-button");!0===this.touchMode&&(i="mousedown"),this.addHandler(t,i,function(e){if(0<=e.target.className.indexOf("jqx-icon-close"))return!0;if(r.disabled)return!0;var t=c(e.target).attr("data-value");return r.getItemByValue(t)&&(r.listBox.selectedValue=null,r.listBox.clearSelection()),r.listBox.scrollTo(0,0),r.open(),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1}),this.addHandler(t.find(".jqx-icon-close"),i,function(e){if(!r.disabled){var t=c(e.target).parent().parent().find("a").attr("data-value"),i=r.getItemByValue(t);if(i||r.remoteAutoComplete&&!i&&0<=r.selectedItems.indexOf(t)){r.listBox.selectedValue=null;var e=r.selectedItems.indexOf(t),s=i&&0<=i.index?i.index:e;if(0<=e)r.selectedItems.splice(e,1),o=(o=r._selectedItems[e])||i,r._selectedItems.splice(e,1),r._raiseEvent("3",{index:s,type:"mouse",item:o}),r._raiseEvent("4",{index:s,type:"mouse",item:o}),r.doMultiSelect();else for(var o,n=0;n