//>>built
define("dojox/widget/PlaceholderMenuItem","dojo/_base/array,dojo/_base/declare,dojo/_base/lang,dojo/dom-style,dojo/_base/kernel,dojo/query,dijit/registry,dijit/Menu,dijit/MenuItem".split(","),function(e,f,g,h,i,j,k,l,m){i.experimental("dojox.widget.PlaceholderMenuItem");f=f("dojox.widget.PlaceholderMenuItem",m,{_replaced:!1,_replacedWith:null,_isPlaceholder:!0,postCreate:function(){h.set(this.domNode,"display","none");this._replacedWith=[];if(!this.label)this.label=this.containerNode.innerHTML;this.inherited(arguments)},
replace:function(c){if(this._replaced)return!1;var b=this.getIndexInParent();if(0>b)return!1;var d=this.getParent();e.forEach(c,function(a){d.addChild(a,b++)});this._replacedWith=c;return this._replaced=!0},unReplace:function(c){if(!this._replaced)return[];var b=this.getParent();if(!b)return[];var d=this._replacedWith;e.forEach(this._replacedWith,function(a){b.removeChild(a);c&&a.destroyRecursive()});this._replacedWith=[];this._replaced=!1;return d}});g.extend(l,{getPlaceholders:function(c){var b=
[],d=this.getChildren();e.forEach(d,function(a){a._isPlaceholder&&(!c||a.label==c)?b.push(a):a._started&&a.popup&&a.popup.getPlaceholders?b=b.concat(a.popup.getPlaceholders(c)):!a._started&&a.dropDownContainer&&(a=j("[widgetId]",a.dropDownContainer)[0],a=k.byNode(a),a.getPlaceholders&&(b=b.concat(a.getPlaceholders(c))))},this);return b}});return f});