//>>built
require({cache:{"url:dojox/form/resources/_CheckedMultiSelectMenuItem.html":'<tr class="dijitReset dijitMenuItem" dojoAttachPoint="focusNode" role="menuitemcheckbox" tabIndex="-1"\n\tdojoAttachEvent="ondijitclick:_onClick"\n\t><td class="dijitReset dijitMenuItemIconCell" role="presentation"\n\t\t><div src="${_blankGif}" alt="" class="dijitMenuItemIcon ${_iconClass}" dojoAttachPoint="iconNode"\n\t\t\t><input class="dojoxCheckedMultiSelectCheckBoxInput" dojoAttachPoint="inputNode" type="${_type.type}"\n\t\t/></div></td\n\t><td class="dijitReset dijitMenuItemLabel" colspan="2" dojoAttachPoint="containerNode,labelNode"></td\n\t><td class="dijitReset dijitMenuItemAccelKey" style="display: none" dojoAttachPoint="accelKeyNode"></td\n\t><td class="dijitReset dijitMenuArrowCell" role="presentation">&nbsp;</td\n></tr>',
"url:dojox/form/resources/_CheckedMultiSelectItem.html":'<div class="dijitReset ${baseClass}"\n\t><input class="${baseClass}Box" data-dojo-type="dijit.form.CheckBox" data-dojo-attach-point="checkBox" \n\t\tdata-dojo-attach-event="_onClick:_changeBox" type="${_type.type}" data-dojo-props=\'disabled:${disabled}, readOnly:${readOnly}\' baseClass="${_type.baseClass}"\n\t/><div class="dijitInline ${baseClass}Label" data-dojo-attach-point="labelNode" data-dojo-attach-event="onclick:_onClick"></div\n></div>\n',
"url:dojox/form/resources/CheckedMultiSelect.html":'<div class="dijit dijitReset dijitInline dijitLeft" id="widget_${id}"\n\t><div data-dojo-attach-point="comboButtonNode"\n\t></div\n\t><div data-dojo-attach-point="selectNode" class="dijit dijitReset dijitInline ${baseClass}Wrapper" data-dojo-attach-event="onmousedown:_onMouseDown,onclick:focus"\n\t\t><select class="${baseClass}Select dojoxCheckedMultiSelectHidden" multiple="true" data-dojo-attach-point="containerNode,focusNode"></select\n\t\t><div data-dojo-attach-point="wrapperDiv"></div\n\t></div\n></div>'}});
define("dojox/form/CheckedMultiSelect","dojo/_base/declare,dojo/_base/lang,dojo/_base/array,dojo/_base/event,dojo/dom-geometry,dojo/dom-class,dojo/dom-construct,dojo/i18n,dijit/_WidgetBase,dijit/_TemplatedMixin,dijit/_WidgetsInTemplateMixin,dijit/registry,dijit/Menu,dijit/MenuItem,dijit/Tooltip,dijit/form/_FormSelectWidget,dijit/form/ComboButton,dojo/text!dojox/form/resources/_CheckedMultiSelectMenuItem.html,dojo/text!dojox/form/resources/_CheckedMultiSelectItem.html,dojo/text!dojox/form/resources/CheckedMultiSelect.html,dojo/i18n!dojox/form/nls/CheckedMultiSelect,dijit/form/CheckBox".split(","),
function(f,h,c,i,j,d,g,k,l,m,n,o,p,q,e,r,s,t,u,v){var w=f("dojox.form._CheckedMultiSelectItem",[l,m,n],{templateString:u,baseClass:"dojoxMultiSelectItem",option:null,parent:null,disabled:!1,readOnly:!1,postMixInProperties:function(){this._type=this.parent.multiple?{type:"checkbox",baseClass:"dijitCheckBox"}:{type:"radio",baseClass:"dijitRadio"};if(!this.disabled)this.disabled=this.option.disabled=this.option.disabled||!1;if(!this.readOnly)this.readOnly=this.option.readOnly=this.option.readOnly||!1;
this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this.labelNode.innerHTML=this.option.label},_changeBox:function(){if(!this.get("disabled")&&!this.get("readOnly"))this.parent.multiple?this.option.selected=this.checkBox.get("value")&&!0:this.parent.set("value",this.option.value),this.parent._updateSelection(),this.parent.focus()},_onClick:function(a){this.get("disabled")||this.get("readOnly")?i.stop(a):this.checkBox._onClick(a)},_updateBox:function(){this.checkBox.set("value",
this.option.selected)},_setDisabledAttr:function(a){this.disabled=a||this.option.disabled;this.checkBox.set("disabled",this.disabled);d.toggle(this.domNode,"dojoxMultiSelectDisabled",this.disabled)},_setReadOnlyAttr:function(a){this.checkBox.set("readOnly",a);this.readOnly=a}}),x=f("dojox.form._CheckedMultiSelectMenu",p,{multiple:!1,buildRendering:function(){this.inherited(arguments);var a=this.menuTableNode=this.domNode,b=this.domNode=g.create("div",{style:{overflowX:"hidden",overflowY:"scroll"}});
a.parentNode&&a.parentNode.replaceChild(b,a);d.remove(a,"dijitMenuTable");b.className=a.className+" dojoxCheckedMultiSelectMenu";a.className="dijitReset dijitMenuTable";a.setAttribute("role","listbox");b.setAttribute("role","presentation");b.appendChild(a)},resize:function(a){if(a&&(j.setMarginBox(this.domNode,a),"w"in a))this.menuTableNode.style.width="100%"},onClose:function(){this.inherited(arguments);if(this.menuTableNode)this.menuTableNode.style.width=""},onItemClick:function(a,b){"undefined"==
typeof this.isShowingNow&&this._markActive();this.focusChild(a);if(a.disabled||a.readOnly)return!1;if(!this.multiple)this.onExecute();a.onClick(b)}}),y=f("dojox.form._CheckedMultiSelectMenuItem",q,{templateString:t,option:null,parent:null,iconClass:"",postMixInProperties:function(){this.parent.multiple?(this._iconClass="dojoxCheckedMultiSelectMenuCheckBoxItemIcon",this._type={type:"checkbox"}):(this._iconClass="",this._type={type:"hidden"});this.disabled=this.option.disabled;this.checked=this.option.selected;
this.label=this.option.label;this.readOnly=this.option.readOnly;this.inherited(arguments)},onChange:function(){},_updateBox:function(){d.toggle(this.domNode,"dojoxCheckedMultiSelectMenuItemChecked",!!this.option.selected);this.domNode.setAttribute("aria-checked",this.option.selected);this.inputNode.checked=this.option.selected;this.parent.multiple||d.toggle(this.domNode,"dijitSelectSelectedOption",!!this.option.selected)},_onClick:function(a){if(!this.disabled&&!this.readOnly)if(this.parent.multiple)this.option.selected=
!this.option.selected,this.parent.onChange(),this.onChange(this.option.selected);else if(!this.option.selected)c.forEach(this.parent.getChildren(),function(a){a.option.selected=!1}),this.option.selected=!0,this.parent.onChange(),this.onChange(this.option.selected);this.inherited(arguments)}});return f("dojox.form.CheckedMultiSelect",r,{templateString:v,baseClass:"dojoxCheckedMultiSelect",required:!1,invalidMessage:"$_unset_$",_message:"",dropDown:!1,labelText:"",tooltipPosition:[],setStore:function(a,
b,d){this.inherited(arguments);this.store.fetch({query:{selected:!0},onComplete:function(a){a=c.map(a,function(a){return a.value[0]});a.length&&this.set("value",a)},scope:this})},postMixInProperties:function(){this.inherited(arguments);this._nlsResources=k.getLocalization("dojox.form","CheckedMultiSelect",this.lang);if("$_unset_$"==this.invalidMessage)this.invalidMessage=this._nlsResources.invalidMessage},_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var a=
this.srcNodeRef.selectedIndex||0;this.value=this.options[0<=a?a:0].value}if(this.dropDown)d.toggle(this.selectNode,"dojoxCheckedMultiSelectHidden"),this.dropDownMenu=new x({id:this.id+"_menu",style:"display: none;",multiple:this.multiple,onChange:h.hitch(this,"_updateSelection")})},startup:function(){if(this.dropDown)this.dropDownButton=new s({label:this.labelText,dropDown:this.dropDownMenu,baseClass:"dojoxCheckedMultiSelectButton",maxHeight:this.maxHeight},this.comboButtonNode);this.inherited(arguments)},
_onMouseDown:function(a){i.stop(a)},validator:function(){return!this.required?!0:c.some(this.getOptions(),function(a){return a.selected&&null!=a.value&&0!=a.value.toString().length})},validate:function(a){e.hide(this.domNode);(a=this.isValid(a))||this.displayMessage(this.invalidMessage);return a},isValid:function(){return this.validator()},getErrorMessage:function(){return this.invalidMessage},displayMessage:function(a){e.hide(this.domNode);a&&e.show(a,this.domNode,this.tooltipPosition)},onAfterAddOptionItem:function(){},
_addOptionItem:function(a){var b;this.dropDown?(b=new y({option:a,parent:this.dropDownMenu}),this.dropDownMenu.addChild(b)):(b=new w({option:a,parent:this,disabled:this.disabled,readOnly:this.readOnly}),this.wrapperDiv.appendChild(b.domNode));this.onAfterAddOptionItem(b,a)},_refreshState:function(){this.validate(this.focused)},onChange:function(){this._refreshState()},reset:function(){this.inherited(arguments);e.hide(this.domNode)},_updateSelection:function(){this.inherited(arguments);this._handleOnChange(this.value);
c.forEach(this._getChildren(),function(a){a._updateBox()});g.empty(this.containerNode);var a=this;c.forEach(this.value,function(b){b=g.create("option",{value:b,label:b,selected:"selected"});g.place(b,a.containerNode)});if(this.dropDown&&this.dropDownButton){var b=0,d="";c.forEach(this.options,function(a){if(a.selected)b++,d=a.label});this.dropDownButton.set("label",this.multiple?h.replace(this._nlsResources.multiSelectLabelText,{num:b}):d)}},_getChildren:function(){return this.dropDown?this.dropDownMenu.getChildren():
c.map(this.wrapperDiv.childNodes,function(a){return o.byNode(a)})},invertSelection:function(){this.multiple&&(c.forEach(this.options,function(a){a.selected=!a.selected}),this._updateSelection())},_setDisabledAttr:function(a){this.inherited(arguments);this.dropDown&&this.dropDownButton.set("disabled",a);c.forEach(this._getChildren(),function(b){b&&b.set&&b.set("disabled",a)})},_setReadOnlyAttr:function(a){this.inherited(arguments);"readOnly"in this.attributeMap&&this._attrToDom("readOnly",a);this.readOnly=
a;c.forEach(this._getChildren(),function(b){b&&b.set&&b.set("readOnly",a)})},uninitialize:function(){e.hide(this.domNode);c.forEach(this._getChildren(),function(a){a.destroyRecursive()});this.inherited(arguments)}})});