//>>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,k,l,m,n,p){k.experimental("dojox.widget.PlaceholderMenuItem");f=f("dojox.widget.PlaceholderMenuItem",p,{_replaced:!1,_replacedWith:null,_isPlaceholder:!0,postCreate:function(){h.set(this.domNode,"display","none");this._replacedWith=[];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(n,{getPlaceholders:function(c){var b=
[],d=this.getChildren();e.forEach(d,function(a){!a._isPlaceholder||c&&a.label!=c?a._started&&a.popup&&a.popup.getPlaceholders?b=b.concat(a.popup.getPlaceholders(c)):!a._started&&a.dropDownContainer&&(a=l("[widgetId]",a.dropDownContainer)[0],a=m.byNode(a),a.getPlaceholders&&(b=b.concat(a.getPlaceholders(c)))):b.push(a)},this);return b}});return f});