//>>built
require({cache:{"url:mill/jssupport/form/selectListField.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${textPiece}\'" data-dojo-attach-point\x3d"textColumnNode" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"display: \'inline\'" data-dojo-attach-point\x3d"translatableNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${controlPiece}\'" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.form.SelectListWidget" data-dojo-attach-point\x3d"controlNode" class\x3d"controlNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/form/_selectListItem.html":'\x3cdiv onmousedown\x3d"return false"\x3e\x3cdiv class\x3d"Content-cell" data-dojo-attach-event\x3d"onClick: toggleItem"\x3e\x3cdiv class\x3d"Content-inner-cell Content-inner-left-cell"\x3e\x3cspan class\x3d"icon-set-radio-unchecked"\x3e\x3c/span\x3e\x3cspan class\x3d"icon-set-radio-checked"\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"Content-inner-cell Content-inner-right-cell" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'}});
define("mill/jssupport/form/SelectListField","dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-construct dojo/dom-class dojo/dom-style dojo/Deferred dijit/_WidgetBase dijit/_TemplatedMixin dijit/_Container dijit/_CssStateMixin dijit/form/_FormWidget dojo/text!mill/jssupport/form/selectListField.html dojo/text!mill/jssupport/form/_selectListItem.html mill/jssupport/form/_FieldMixin mill/jssupport/form/_RequiredFieldMixin mill/mill".split(" "),function(g,e,c,n,f,p,q,h,r,k,t,u,v,w,x,y,l){var z=
g("office.form._SelectListItem",[h,k,r,t],{baseClass:"SelectListItem",templateString:w,selected:!1,innerDijit:null,data:null,dataNodeID:null,postMixInProperties:function(){this.inherited(arguments);this.dataNodeID=l.fieldValue(this.data,"ID")},_setDataAttr:function(a){this.data=a;this.addChild(new this.innerDijit({data:this.data,attachScope:this}))},toggleItem:function(){this.get("disabled")||(this.set("selected",!this.get("selected")),this.getParent()&&e.isFunction(this.getParent().onChange)&&this.getParent().onChange.call(this.getParent()))}});
g("office.form.SelectListWidget",[u,k],{baseClass:"SelectList",templateString:"\x3cdiv\x3e\x3cinput type\x3d'hidden' data-dojo-attach-point\x3d'inputNode, focusNode'/\x3e\x3cdiv data-dojo-attach-point\x3d'containerNode'\x3e\x3c/div\x3e\x3c/div\x3e",scrollOnFocus:!1,onChange:new Function,data:null,orientation:null,itemHeight:null,required:null,value:null,_savedValue:"",_setDataAttr:function(a){this.data=a;c.forEach(this.getChildren(),function(d){d.destroyRecursive()});this._savedValue="";this.value=
null;for(a=0;a<this.data.dataNodes.length;a++){var b=new z({innerDijit:this.data.innerDijit,data:this.data.dataNodes[a]});this.addChild(b);"tile"===this.orientation&&p.set(b.domNode,{height:this.itemHeight})}n.create("div",{style:"clear:both"},this.containerNode)},_setOrientationAttr:function(a){this.orientation=a;"tile"===this.orientation&&f.add(this.domNode,"SelectListTile")},_setDisabledAttr:function(a){this.disabled=a;c.forEach(this.getChildren(),e.hitch(this,function(b){b.set("disabled",this.disabled)}))},
_setRequiredAttr:function(a){(this.required=a)?f.add(this.domNode,"SelectListRequired"):f.remove(this.domNode,"SelectListRequired")},_getValueAttr:function(){var a=c.filter(this.getChildren(),function(b){return b.get("selected")});return c.map(a,function(b){return b.dataNodeID}).join(";")},_setValueAttr:function(a){var b=(this.value=a)?this.value.split(";"):[];c.forEach(this.getChildren(),e.hitch(this,function(d){var m=c.indexOf(b,d.dataNodeID);d.get("selected")!==0<=m&&d.set("selected",0<=m)}));
e.isFunction(this.onChange)&&this.onChange.call(this)},queryData:function(a){var b=new q;l.queryCursor(a).then(b.resolve,b.reject);return b.promise},validate:function(){var a=!this.get("required");if(!a){var b=!0;c.forEach(this.getChildren(),function(d){d.get("selected")||(b=!1)});a=b}return a},hideForValue:function(a){if(a||"string"===typeof a)this._savedValue=a;this.set("value",this._savedValue);this.set("disabled",!0)},unhideForValue:function(){this.set("disabled",!1)}});return mill.registerAlias("office.form.SelectListField",
g("mill.jssupport.form.SelectListField",[h,x,y],{templateString:v,orientation:null,itemHeight:null,postMixInProperties:function(){this.inherited(arguments);"tile"===this.orientation&&(this.controlPiece=this.textPiece="12")},_setOrientationAttr:function(a){this.controlNode.set("orientation",this.orientation=a)},_setItemHeightAttr:function(a){this.controlNode.set("itemHeight",this.itemHeight=a)},buildRendering:function(){this.inherited(arguments);"tile"===this.orientation&&f.add(this.domNode,"officeSelectListTileFormField")}}))});