// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
require({cache:{"url:jimu/dijit/_filter/AdvancedListValueSelect.html":'\x3cdiv class\x3d"jimu-list-multiple-select" data-dojo-attach-point\x3d"multipleSelect" tabindex\x3d"0"\x3e\r\n  \x3cdiv class\x3d"selectedContainer" data-dojo-attach-point\x3d"selectedContainer"\x3e\r\n    \x3cdiv class\x3d"jimu-multiple-items-list items-content" data-dojo-attach-point\x3d"selectedListContent" tabindex\x3d"0"\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv\x3e\r\n    \x3c!-- \x3cdiv style\x3d"position:absolute;height:345px;width:100%;z-index:1;display:none;" data-dojo-attach-point\x3d"listContainerOverlay"\x3e\x3c/div\x3e --\x3e\r\n    \x3cdiv class\x3d"searchKeyInput" data-dojo-attach-point\x3d"searchKeyInput" style\x3d"display:none;"\x3e\r\n      \x3cinput value\x3d"" placeholder\x3d"${jimuCommonNls.search}" data-dojo-type\x3d"dijit/form/ValidationTextBox"\r\n       data-dojo-attach-point\x3d"valueInput" data-dojo-props\x3d\'"required":false,intermediateChanges:true\' style\x3d"width:100%;" tabindex\x3d"0"/\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"items-content loading-center" data-dojo-attach-point\x3d"listContainer"\x3e\r\n      \x3c!-- \x3cdiv data-dojo-attach-point\x3d"listContentStore"style\x3d"height:1px;visibility:hidden;overflow:hidden;"\x3e\r\n      \x3c/div\x3e --\x3e\r\n      \x3cdiv class\x3d"jimu-multiple-items-list" data-dojo-attach-point\x3d"listContent" tabindex\x3d"0"\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv data-dojo-attach-point\x3d"loadMoreDataBtn" class\x3d"jimu-list-multiple-select-Tips load-more-data-Tips"\x3e${jimuCommonNls.searchMore}\x3c/div\x3e\r\n      \x3c!-- \x3cdiv data-dojo-attach-point\x3d"noDataTips" class\x3d"jimu-list-multiple-select-Tips no-data-Tips"\x3e${Nls.noData}\x3c/div\x3e --\x3e\r\n      \x3cdiv data-dojo-attach-point\x3d"noDataTips" class\x3d"jimu-list-multiple-select-Tips no-data-Tips"\x3e${noDataNls}\x3c/div\x3e\r\n      \x3c!-- \x3cdiv class\x3d"createNewItem" data-dojo-attach-point\x3d"createNewItem" data-dojo-attach-event\x3d"click:_createTarget"\x3e\x26nbsp;\x3c/div\x3e --\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3c!--\r\n  \x3cdiv class\x3d"selectedToggleDiv" style\x3d"display:none;" data-dojo-attach-point\x3d"selectedToggleDiv"\x3e\r\n    \x3cspan class\x3d"selectedToggle" data-dojo-attach-point\x3d"selectedToggle"\x3e\x3c/span\x3e\r\n    \x3cspan class\x3d"toggleTxt" title\x3d"${Nls.showSelected}"\x3e${Nls.showSelected}\x3c/span\x3e\r\n  \x3c/div\x3e\r\n  --\x3e\r\n\r\n  \x3cdiv class\x3d"selectedToggleDiv" style\x3d"display:none;" data-dojo-attach-point\x3d"selectedToggleDiv"\x3e\r\n      \x3cdiv class\x3d"showAllIcon iconHover jimu-flipx" title\x3d"${Nls.showAll}" data-dojo-attach-point\x3d"showAllIconBtn"  tabindex\x3d"0"\x3e\x3c/div\x3e\r\n      \x3cdiv class\x3d"showSelectedIcon jimu-flipx" title\x3d"${Nls.showSelected}" data-dojo-attach-point\x3d"showSelectedIconBtn" tabindex\x3d"0"\x3e\x3c/div\x3e\r\n      \x3cdiv class\x3d"clearAllSelectedIcon jimu-flipx" title\x3d"${Nls.unCheckAll}" data-dojo-attach-point\x3d"clearAllSelectedBtn" tabindex\x3d"0"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n\x3c/div\x3e'}});
define("dojo/_base/lang dojo/Evented dojo/_base/html dojo/_base/declare dijit/_WidgetBase dojo/on dojo/keys dojo/query dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./AdvancedListValueSelect.html jimu/utils".split(" "),function(g,v,c,w,x,h,f,l,y,z,A,m){return w([x,y,z,v],{templateString:A,selectType:null,dataList:[],checkedList:[],checkedLabelList:[],_itemLabelW:215,ifFristPage:!0,queryState:!0,isCacheFinish:!1,keyQueryMode:!1,cacheQueryMode:!1,emptyStr:"",postMixInProperties:function(){this.inherited(arguments);
this.jimuCommonNls=window.jimuNls.common;this.Nls=window.jimuNls.filterBuilder;this.noDataNls=window.apiNls.widgets.FeatureTable.noData},postCreate:function(){this.inherited(arguments);this.inputType="unique"===this.selectType?"radio":"checkbox";if("multipleDynamic"===this.controlType||"uniqueDynamic"===this.controlType)c.addClass(this.listContainer,"items-setting-dropdown-content"),this.searchKeyInput.style.display="block";"uniqueDynamic"===this.controlType&&c.addClass(this.listContainer,"items_content_no_selected_toggle");
this.runtime?(c.addClass(this.listContainer,"items-widget-content"),"dropdown"!==this.selectUI&&(c.addClass(this.listContainer,"items-widget-expaned-content"),c.addClass(this.listContent,"jimu-multiple-items-expanded-list"),c.setAttr(this.listContent,"aria-label",this.label),c.addClass(this.listContent,m.lastFocusNodeClassInDOM),c.removeAttr(this.multipleSelect,"tabindex"))):(c.addClass(this.listContainer,"items-setting-popup-content"),this.searchKeyInput.style.display="block");this.runtime||"predefined"!==
this.controlType||(c.addClass(this.listContainer,"items-setting-dropdown-content"),c.addClass(this.listContainer,"items_content_no_selected_toggle"),this.searchKeyInput.style.display="block");this._addCBXClickEvent();this._addCBXHoverEvent();this.disPlayLabel="value";!this.runtime||"multiplePredefined"!==this.controlType&&"uniquePredefined"!==this.controlType||(this.disPlayLabel="alias");"multipleDynamic"===this.controlType&&(this.selectedToggleDiv.style.display="block",this.selectedToggle=l(".showAllIcon",
this.selectedToggleDiv)[0],this.own(h(this.selectedToggleDiv,"click",g.hitch(this,"_toggleFilter"))),this.own(h(this.selectedToggleDiv,"keydown",g.hitch(this,function(a){a.keyCode===f.ENTER&&this._toggleFilter(a)}))),this._addSelectedContainerEvent());this._addKeyDownEvent()},_addKeyDownEvent:function(){this.own(h(this.multipleSelect,"keydown",g.hitch(this,function(a){var b=a.which||a.keyCode,d=a.target;if(b===f.ESCAPE||"dropdown"===this.selectUI&&("INPUT"===d.tagName&&a.shiftKey&&b===f.TAB||("multipleDynamic"===
this.controlType&&c.hasClass(d,"clearAllSelectedIcon")||"multipleDynamic"!==this.controlType&&c.hasClass(d,"item"))&&!a.shiftKey&&b===f.TAB))a.preventDefault(),this.currentHoverItem&&(c.removeClass(this.currentHoverItem,"active"),this.currentHoverItem=null),this.emit("advancedListValueSelect_itemsConfirmed")})));this.own(h(this.listContent,"focus",g.hitch(this,function(){m.isInNavMode()&&(this.currentItem=(this.currentItem=this.getCurrentItem())?this.currentItem:this._getCheckInputItems()[0],this.currentHoverItem=
this.currentItem.parentNode,"dropdown"===this.selectUI?this.currentHoverItem.focus():this._isFocusFirstItem=!0,c.addClass(this.currentHoverItem,"active"),setTimeout(g.hitch(this,function(){c.addClass(this.currentHoverItem,"active")}),10))})));this.own(h(this.listContent,"blur",g.hitch(this,function(){this.currentHoverItem&&c.removeClass(this.currentHoverItem,"active")})));this.own(h(this.showAllIconBtn,"keydown",g.hitch(this,function(a){a.shiftKey&&a.keyCode===f.TAB&&(a.preventDefault(),"block"===
c.getStyle(this.selectedContainer,"display")?this.selectedListContent.focus():this.listContent.focus())})));this.own(h(this.listContent,"keydown",g.hitch(this,function(a){if(m.isInNavMode()){var b=a.which||a.keyCode;-1<[f.SPACE,f.UP_ARROW,f.DOWN_ARROW].indexOf(b)&&a.preventDefault();if(b===f.TAB&&c.hasClass(a.target,"item"))a.preventDefault(),this.currentHoverItem&&c.removeClass(this.currentHoverItem,"active"),"dropdown"===this.selectUI?(this.currentHoverItem=null,a.shiftKey?"block"===this.searchKeyInput.style.display?
this.valueInput.focus():this.emit("advancedListValueSelect_itemsConfirmed"):"multipleDynamic"===this.controlType&&this.showAllIconBtn.focus()):this.listContent.focus();else if(b===f.SPACE||b===f.ENTER)a=l(".checkInput",this.currentHoverItem)[0],b=l(".label",this.currentHoverItem)[0],this._setCBXChecked(a,this._getNodeText(b)),"radio"===this.inputType&&("dropdown"===this.selectUI&&(c.removeClass(this.currentHoverItem,"active"),this.currentHoverItem=null),this.emit("advancedListValueSelect_itemsConfirmed"));
else if(b===f.UP_ARROW||b===f.DOWN_ARROW)if("dropdown"!==this.selectUI&&this._isFocusFirstItem)this._isFocusFirstItem=!1,this.currentHoverItem.focus(),setTimeout(g.hitch(this,function(){c.addClass(this.currentHoverItem,"active")}),5);else{a=(a=b===f.UP_ARROW?this.currentHoverItem.previousSibling:this.currentHoverItem.nextSibling)?a:this.currentHoverItem;if(this.listContainer.scrollHeight>this.listContainer.clientHeight){b=this.listContainer.clientHeight+this.listContainer.scrollTop;var d=a.offsetTop+
a.offsetHeight;d-=30;d>b?this.listContainer.scrollTop=d-this.listContainer.clientHeight:a.offsetTop<this.listContainer.scrollTop+30&&(this.listContainer.scrollTop=a.offsetTop-30)}c.removeClass(this.currentHoverItem,"active");this.currentHoverItem=a;c.addClass(this.currentHoverItem,"active");this.currentHoverItem.focus()}}})));this.own(h(this.selectedListContent,"focus",g.hitch(this,function(){if(m.isInNavMode()){var a=l(".item",this.selectedListContent);a.length&&(this.currentHoverItem=a[0],this.currentHoverItem.focus(),
c.addClass(this.currentHoverItem,"active"),setTimeout(g.hitch(this,function(){c.addClass(this.currentHoverItem,"active")}),50))}})));this.own(h(this.selectedListContent,"blur",g.hitch(this,function(){m.isInNavMode()&&this.currentHoverItem&&c.removeClass(this.currentHoverItem,"active")})));this.own(h(this.selectedContainer,"keydown",g.hitch(this,function(a){if(m.isInNavMode()){var b=a.which||a.keyCode;if(b===f.TAB)a.preventDefault(),this.currentHoverItem&&c.removeClass(this.currentHoverItem,"active"),
this.showAllIconBtn.focus();else if(0!==l(".item",this.selectedListContent).length)if(-1<[f.SPACE,f.UP_ARROW,f.DOWN_ARROW].indexOf(b)&&a.preventDefault(),b===f.SPACE||b===f.ENTER)a=l(".checkInput",this.currentHoverItem)[0],b=l(".label",this.currentHoverItem)[0],this._setCBXSelectedChecked(a,this._getNodeText(b));else if(b===f.UP_ARROW||b===f.DOWN_ARROW)a=(a=b===f.UP_ARROW?this.currentHoverItem.previousSibling:this.currentHoverItem.nextSibling)?a:this.currentHoverItem,this.selectedContainer.scrollHeight>
this.selectedContainer.clientHeight&&(b=a.offsetTop+a.offsetHeight,b>this.selectedContainer.clientHeight+this.selectedContainer.scrollTop?this.selectedContainer.scrollTop=b-this.selectedContainer.clientHeight:a.offsetTop<this.selectedContainer.scrollTop&&(this.selectedContainer.scrollTop=a.offsetTop)),c.removeClass(this.currentHoverItem,"active"),this.currentHoverItem=a,c.addClass(this.currentHoverItem,"active"),this.currentHoverItem.focus()}})))},_toggleFilter:function(a){var b=a.target;c.hasClass(b,
"clearAllSelectedIcon")?(this._clearAllSelected(),this.currentHoverItem=this.currentItem=null):c.hasClass(b,"iconHover")||c.hasClass(b,"selectedToggleDiv")||(c.hasClass(b,"showAllIcon")?(this.selectedContainer.style.display="none",this.listContent.focus()):(this._initSelectedContainerItems(),this.selectedContainer.style.display="block",this.selectedListContent.focus()),c.removeClass(this.selectedToggle,"iconHover"),this.selectedToggle=b,c.addClass(this.selectedToggle,"iconHover"),a.stopPropagation())},
showAllList:function(){c.hasClass(this.selectedToggle,"showSelectedIcon")&&c.hasClass(this.selectedToggle,"iconHover")&&(c.removeClass(this.selectedToggle,"iconHover"),this.selectedToggle=l(".showAllIcon",this.selectedToggleDiv)[0],c.addClass(this.selectedToggle,"iconHover"),c.setStyle(this.selectedContainer,"display","none"))},_clearAllSelected:function(){var a=c.hasClass(this.selectedToggle,"showAllIcon")?this.listContainer:this.selectedListContent;a=l(".item .checkInput.checked",a);for(var b=0;b<
a.length;b++)a[b].click()},_initSelectedContainerItems:function(){for(var a=this.selectedListContent.innerHTML="",b=this.runtime?" labelRuntime":"",d=0;d<this.checkedList.length;d++){var e=this.checkedList[d],k="value"===this.disPlayLabel?e:this.checkedLabelList[d];e='data\x3d"'+(this.isNumberField?e:encodeURIComponent(e))+'"';a+='\x3cdiv role\x3d"option" class\x3d"item" tabindex\x3d"-1" aria-selected\x3d"true" aria-checked\x3d"true"\x3e\x3cdiv class\x3d"checkInput '+this.inputType+' checked" '+e+
'\x3e\x3c/div\x3e\x3cdiv class\x3d"label jimu-ellipsis-Blanks'+b+'" style\x3d"max-width:'+this._itemLabelW+'px"\x3e'+k+"\x3c/div\x3e\x3c/div\x3e"}this.selectedListContent.innerHTML=a},_addSelectedContainerEvent:function(){this.own(h(this.selectedListContent,"click",g.hitch(this,function(a){var b=a.target;if(c.hasClass(b,"item")){var d=b.firstElementChild;b=b.firstElementChild.nextSibling}else if(c.hasClass(b,"checkInput"))d=b,b=b.nextSibling;else if(c.hasClass(b,"label"))d=b.previousSibling;else{a.stopPropagation();
return}this._setCBXSelectedChecked(d,this._getNodeText(b));a.stopPropagation()})))},_setCBXSelectedChecked:function(a,b){var d=b;if("alias"===this.disPlayLabel||"label"===this.disPlayLabel)d=decodeURIComponent(c.getAttr(a,"data"));c.hasClass(a,"checked")?(c.setAttr(a.parentNode,"aria-checked","false"),"radio"!==this.inputType&&(c.removeClass(a,"checked"),this._updateCheckedList("remove",d,b),this.checkCBXItems(),this.emit("advancedListValueSelect_itemUnChecked",b))):(c.setAttr(a.parentNode,"aria-checked",
"true"),"radio"===this.inputType&&this.currentItem&&(!0===this.currentItem&&(this.currentItem=this.getCurrentItem()),c.removeClass(this.currentItem,"checked")),c.addClass(a,"checked"),this._updateCheckedList("add",d,b),this.checkCBXItems(),this.emit("advancedListValueSelect_itemChecked",b))},_getNodeText:function(a){return a.textContent||a.innerText||""},_updateCheckedList:function(a,b,d){b!==this.emptyStr&&(b=this.isNumberField?parseFloat(b):b);if("remove"===a)for(var e in this.checkedList){if(this.checkedList[e]===
b||this.isNumberField&&isNaN(this.checkedList[e])&&isNaN(b)){this.checkedList.splice(e,1);this.checkedLabelList.splice(e,1);break}}else"radio"===this.inputType?(this.checkedList=[b],this.checkedLabelList=[d]):(this.checkedList.push(b),this.checkedLabelList.push(d));this._updateListContentLabel()},_updateListContentLabel:function(){if("dropdown"!==this.selectUI&&this.runtime){var a=this.checkedLabelList.join(" ");a=a?a:this.emptyStr;c.setAttr(this.listContent,"aria-label",this.label+a)}},_updateCheckedLabelList:function(a){this.checkedLabelList=
[];for(var b=0;b<this.checkedList.length;b++)for(var d=0;d<a.length;d++)this.checkedList[b]===a[d].value&&this.checkedLabelList.push(a[d].label)},_updateCheckedLabelListFromCheckedList:function(){for(var a=0;a<this.checkedList.length;a++)this.checkedLabelList.push(this.checkedList[a]+"");this._updateListContentLabel()},_createTarget:function(a){a=this._getNodeText(a.target).split(": ")[1];this.emit("advancedListValueSelect_itemChecked",a)},_deleteCBXItem:function(){},_getCheckInputItems:function(){return l(".item .checkInput",
this.listContent)},getListCheckedValuesOrigin:function(){for(var a=[],b=this._getCheckInputItems(),d=0;d<b.length;d++){var e=b[d],k=this._getNodeText(e.nextSibling);c.hasClass(e,"checked")&&a.push(k)}return a},getListCheckedValues:function(){for(var a=[],b=g.clone(this.checkedList),d=0;d<b.length;d++){var e=b[d];e=this.isNumberField?parseFloat(e):e;a.push(e)}return a},getListValues:function(){var a=[],b=this._getCheckInputItems();if(0===b.length)return this.dataList;for(var d=0;d<b.length;d++){var e=
b[d],k=this._getNodeText(e.nextSibling);if("alias"===this.disPlayLabel||"label"===this.disPlayLabel)k=decodeURIComponent(c.getAttr(e,"data"));k=this.isNumberField?parseFloat(k):k;k={value:k,isChecked:!1};c.hasClass(e,"checked")&&(k.isChecked=!0);a.push(k)}return a},getIfValueExist:function(a){for(var b=this._getCheckInputItems(),d=0;d<b.length;d++){var e=this._getNodeText(b[d].nextSibling);if(a===e)return!0}return!1},getCurrentItem:function(){for(var a=this._getCheckInputItems(),b=0;b<a.length;b++){var d=
a[b];if(c.hasClass(d,"checked"))return d}return null},checkCBXItems:function(a){a=a?"":this.valueInput.get("value");this.valueInput.set("value",a);a=l(".item .label",this.listContent);for(var b=0;b<a.length;b++){var d=a[b],e="value"===this.disPlayLabel?this._getNodeText(d):decodeURIComponent(c.getAttr(d.previousSibling,"data"));e=this.isNumberField?parseFloat(e):e;0<=this.checkedList.indexOf(e)||this.isNumberField&&0<=this.checkedList.indexOf(parseFloat(e))?c.addClass(d.previousSibling,"checked"):
c.removeClass(d.previousSibling,"checked")}},reset:function(){this.listContent.innerHTML=""},setCBXData:function(a,b,d,e){e||(this.queryState=!1);a=a?a:[];if(this.listContent){c.setStyle(this.noDataTips,"display","none");var k=0,r="radio"===this.inputType?" labelBig":"",t=this.runtime?" labelRuntime":"";e=this.listContent.innerHTML;if(d){e=this.listContent.innerHTML="";if("uniquePredefined"===this.controlType&&this.enableEmpty||"uniqueDynamic"===this.controlType&&!this.keyQueryMode)d=e="",this.checkedList[0]===
this.emptyStr&&(e=" checked",d=" active",k=1),0===this.checkedList.length&&(e=" checked",this.currentItem=!0,k=1),e='\x3cdiv role\x3d"option" class\x3d"item emptyItem'+d+'" aria-selected\x3d"true" tabindex\x3d"-1" '+(e?'aria-checked\x3d"true"':'aria-checked\x3d"false"')+'\x3e\x3cdiv class\x3d"checkInput '+this.inputType+e+"\" data\x3d'"+(this.emptyStr+"'\x3e\x3c/div\x3e\x3cdiv class\x3d\"label")+r+" jimu-ellipsis-Blanks"+t+'" style\x3d"max-width:'+this._itemLabelW+'px"\x3e'+this.emptyStr+"\x3c/div\x3e\x3c/div\x3e";
this.listContainer.scrollTop=0}if(0===a.length)return a=this.listContent.innerHTML.replace(/(^\s*)|(\s*$)/g,""),""!==a||this.cacheQueryMode&&!this.isCacheFinish||c.setStyle(this.noDataTips,"display","block"),""===a&&(this.listContent.innerHTML=e),this.listContent;d="";for(var q=0;q<a.length;q++){var n=a[q],p="";if(b)if(this.runtime&&("multiplePredefined"===this.controlType||"uniquePredefined"===this.controlType))n.isChecked&&(p=" checked",this.currentItem=!0,k++);else if(0<=this.checkedList.indexOf(n.value)||
this.isNumberField&&0<=this.checkedList.indexOf(parseFloat(n.value)))p=" checked",this.currentItem=!0,k++;var u="";u=p?'aria-checked\x3d"true"':'aria-checked\x3d"false"';var B='data\x3d"'+(this.isNumberField?n.value:encodeURIComponent(n.value))+'"';d+='\x3cdiv class\x3d"item" role\x3d"option" tabindex\x3d"-1" aria-selected\x3d"true" '+u+'\x3e\x3cdiv class\x3d"checkInput '+this.inputType+p+'" '+B+'\x3e\x3c/div\x3e\x3cdiv class\x3d"label'+r+" jimu-ellipsis-Blanks"+t+'" style\x3d"max-width:'+this._itemLabelW+
'px"\x3e'+n[this.disPlayLabel]+"\x3c/div\x3e\x3c/div\x3e"}a=this.checkedList.length-k;if(this.runtime&&0<a)for(b=0;b<a;b++)this.emit("advancedListValueSelect_itemUnChecked","");this.listContent.innerHTML=e+d;return this.listContent}},setCBXContentBySearch:function(a,b){0===a.length?this.setCBXData([],!1,!0,b):this.setCBXData(a,!0,!0,b)},_onSearchKeyChange:function(){var a=this.valueInput.get("value");this.searchName=a;this.listContainer.scrollTop=0;this.reset();this.cacheQueryMode=this.keyQueryMode=
this.ifFristPage=!0;this.emit("advancedListValueSelect_searchKeyLocal",a);this.codedValues||(this.isCacheFinish||c.setStyle(this.loadMoreDataBtn,"display","block"),0===a.length&&(this.queryState=this.cacheQueryMode=this.keyQueryMode=!1,c.setStyle(this.loadMoreDataBtn,"display","none")))},_loadMoreDataFromServer:function(){this.keyQueryMode=this.ifFristPage=!0;this.cacheQueryMode=!1;this.queryState=!0;c.setStyle(this.loadMoreDataBtn,"display","none");var a=this.valueInput.get("value");this.searchName=
a;this.listContainer.scrollTop=0;"multipleDynamic"===this.controlType||"uniqueDynamic"===this.controlType?this.emit("advancedListValueSelect_searchKey",a):this.runtime||this.emit("advancedListValueSelect_searchKey",a)},currentHoverItem:null,_addCBXHoverEvent:function(){this.own(h(this.listContent,"mouseover",g.hitch(this,function(a){a=a.target||a.srcElement;if(a=c.hasClass(a,"item")?a:m.getAncestorDom(a,function(b){return c.hasClass(b,"item")},3))this.currentHoverItem&&c.removeClass(this.currentHoverItem,
"active"),c.addClass(a,"active"),this.currentHoverItem=a})));this.own(h(this.listContent,"mouseout",g.hitch(this,function(){this.currentHoverItem&&c.removeClass(this.currentHoverItem,"active");this.currentHoverItem=null})))},_addCBXClickEvent:function(){this.own(h(this.valueInput,"change",g.hitch(this,function(){this._onSearchKeyChange()})));this.own(h(this.loadMoreDataBtn,"click",g.hitch(this,function(){this._loadMoreDataFromServer()})));this.own(h(this.listContainer,"scroll",g.hitch(this,this.dropDownScroll)));
this.own(h(this.searchKeyInput,"click",g.hitch(this,function(a){a.stopPropagation()})));this.own(h(this.listContainer,"click",g.hitch(this,function(a){var b=a.target;if(c.hasClass(b,"item")){var d=b.firstElementChild;b=b.firstElementChild.nextSibling}else if(c.hasClass(b,"checkInput"))d=b,b=b.nextSibling;else if(c.hasClass(b,"label"))d=b.previousSibling;else{a.stopPropagation();return}this._setCBXChecked(d,this._getNodeText(b));a.stopPropagation()})))},scrollDiff:100,dropDownScroll:function(a){this.runtime&&
("uniquePredefined"===this.controlType||"multiplePredefined"===this.controlType)||this.cacheQueryMode||this.codedValues||(this.queryState?this.listContainer.scrollTop=this.containerScrollTop:(a=a.target,a.scrollHeight-a.clientHeight-a.scrollTop<=this.scrollDiff&&!this.queryState&&(this.containerScrollTop=this.listContainer.scrollTop,this.queryState=!0,this.ifFristPage=!1,this.emit("advancedListValueSelect_addNextPage"))))},_setCBXChecked:function(a,b){var d=b;if("alias"===this.disPlayLabel||"label"===
this.disPlayLabel)d=decodeURIComponent(c.getAttr(a,"data"));c.hasClass(a,"checked")?(c.setAttr(a.parentNode,"aria-checked","false"),"radio"===this.inputType?this.runtime||"predefined"!==this.controlType?this.emit("advancedListValueSelect_itemChecked",b):this.emit("advancedListValueSelect_itemCheckedForPredefined",d,b):(c.removeClass(a,"checked"),this._updateCheckedList("remove",d,b),this.emit("advancedListValueSelect_itemUnChecked",b))):(c.setAttr(a.parentNode,"aria-checked","true"),"radio"===this.inputType&&
this.currentItem&&(!0===this.currentItem&&(this.currentItem=this.getCurrentItem()),this.currentItem&&(c.removeClass(this.currentItem,"checked"),c.setAttr(this.currentItem.parentNode,"aria-checked","false"))),c.addClass(a,"checked"),this.currentItem=a,this._updateCheckedList("add",d,b),this.runtime||"predefined"!==this.controlType?this.emit("advancedListValueSelect_itemChecked",b):this.emit("advancedListValueSelect_itemCheckedForPredefined",d,b))},initDoms:function(a,b){this.setCBXData(a,b)},getData:function(){},
refreshData:function(){this.checkCBXItems()},validate:function(){var a=this.checkedList.length?"12345678":null;1===this.checkedList.length&&this.checkedList[0]===this.emptyStr&&(a=null);if(this.isNumberField)for(var b=0;b<this.checkedList.length;b++){var d=this.checkedList[b];if(d!==this.emptyStr&&isNaN(d)){a=null;break}}this.set("DisplayedValue",a);return!0},setRequired:function(a){this.mutiValuesSelect.set("required",a)},destroy:function(){c.destroy(this.domNode);this.inherited(arguments)}})});