//>>built
define("dojox/mvc/Generate","dojo/_base/array dojo/_base/lang dojo/_base/declare ./_Container ./at ./Group dijit/form/TextBox".split(" "),function(l,f,m,n,p){return m("dojox.mvc.Generate",[n],{_counter:0,_defaultWidgetMapping:{String:"dijit/form/TextBox"},_defaultClassMapping:{Label:"generate-label-cell",String:"generate-dijit-cell",Heading:"generate-heading",Row:"row"},_defaultIdNameMapping:{String:"textbox_t"},children:null,_relTargetProp:"children",startup:function(){this.inherited(arguments);
this._setChildrenAttr(this.children)},_setChildrenAttr:function(a){var b=this.children;this._set("children",a);this.binding!=a&&this.set("ref",a);!this._started||this._builtOnce&&b==a||(this._builtOnce=!0,this._buildContained(a))},_buildContained:function(a){a&&(this._destroyBody(),this._counter=0,this.srcNodeRef.innerHTML=this._generateBody(a),this._createBody())},_generateBody:function(a,b){function d(c,g){if(h?c&&f.isFunction(c.toPlainObject):!f.isFunction(c))f.isArray(c)?e.push(this._generateRepeat(c,
g)):(h?!c.value:null!=c&&"[object Object]"=={}.toString.call(c)||(c||{}).set&&(c||{}).watch)?e.push(this._generateGroup(c,g,b)):e.push(this._generateTextBox(g,h))}if(void 0===a)return"";var e=[],h=f.isFunction(a.toPlainObject);if(f.isArray(a))l.forEach(a,d,this);else for(var k in a)a.hasOwnProperty(k)&&d.call(this,a[k],k);return e.join("")},_generateRepeat:function(a,b){var d=this.classMapping&&this.classMapping.Heading?this.classMapping.Heading:this._defaultClassMapping.Heading;return"\x3cdiv data-dojo-type\x3d\"dojox/mvc/Group\" data-dojo-props\x3d\"target: at('rel:', '"+
b+'\')" + id\x3d"'+this.id+"_r"+this._counter++ +'"\x3e\x3cdiv class\x3d"'+d+'"\x3e'+b+"\x3c/div\x3e"+this._generateBody(a,!0)+"\x3c/div\x3e"},_generateGroup:function(a,b,d){var e=["\x3cdiv data-dojo-type\x3d\"dojox/mvc/Group\" data-dojo-props\x3d\"target: at('rel:', '"+b+'\')" + id\x3d"'+this.id+"_g"+this._counter++ +'"\x3e'];d||e.push('\x3cdiv class\x3d"'+(this.classMapping&&this.classMapping.Heading?this.classMapping.Heading:this._defaultClassMapping.Heading)+'"\x3e'+b+"\x3c/div\x3e");e.push(this._generateBody(a)+
"\x3c/div\x3e");return e.join("")},_generateTextBox:function(a,b){var d=this.idNameMapping?this.idNameMapping.String:this._defaultIdNameMapping.String;d+=this._counter++;return'\x3cdiv class\x3d"'+(this.classMapping&&this.classMapping.Row?this.classMapping.Row:this._defaultClassMapping.Row)+'"\x3e\x3clabel class\x3d"'+(this.classMapping&&this.classMapping.Label?this.classMapping.Label:this._defaultClassMapping.Label)+'"\x3e'+a+':\x3c/label\x3e\x3cinput class\x3d"'+(this.classMapping&&this.classMapping.String?
this.classMapping.String:this._defaultClassMapping.String)+'" data-dojo-type\x3d"'+(this.widgetMapping?this.widgetMapping.String:this._defaultWidgetMapping.String)+'" data-dojo-props\x3d"name: \''+d+"', value: at('rel:"+((b&&a||"")+"', '"+(b?"value":a)+'\')" id\x3d"')+d+'"\x3e\x3c/input\x3e\x3c/div\x3e'}})});