var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(c,d,a){if(null==c)throw new TypeError("The 'this' value for String.prototype."+a+" must not be null or undefined");if(d instanceof RegExp)throw new TypeError("First argument to String.prototype."+a+" must not be a regular expression");return c+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,d,a){c!=Array.prototype&&c!=Object.prototype&&(c[d]=a.value)};$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(c,d,a,b){if(d){a=$jscomp.global;c=c.split(".");for(b=0;b<c.length-1;b++){var e=c[b];e in a||(a[e]={});a=a[e]}c=c[c.length-1];b=a[c];d=d(b);d!=b&&null!=d&&$jscomp.defineProperty(a,c,{configurable:!0,writable:!0,value:d})}};
$jscomp.polyfill("String.prototype.startsWith",function(c){return c?c:function(c,a){var b=$jscomp.checkStringArgs(this,c,"startsWith");c+="";var e=b.length,d=c.length;a=Math.max(0,Math.min(a|0,b.length));for(var f=0;f<d&&a<e;)if(b[a++]!=c[f++])return!1;return f>=d}},"es6","es3");
(function(){function c(a){zWatch.listen({onShow:a});var b;if(b=a._upload)a._uplder=new zul.Upload(a,a._getUploadRef(),b)}function d(a){var b;if(b=a._uplder)zWatch.unlisten({onShow:a}),a._uplder=null,b.destroy()}(zul.menu.Menuitem=zk.$extends(zul.LabelImageWidget,{_value:"",$define:{checkmark:_zkf=function(){this.rerender()},disabled:[function(a,b){b&&b.adbs?this._adbs=!0:b&&void 0!==b.adbs||(this._adbs=!1);if(!a)if(this._adbs)this._adbs=!1;else if(b&&!1===b.adbs)return this._disabled;return a},function(a,
b){this.rerender(b&&b.skip?-1:0)}],href:_zkf,value:null,checked:function(a){a&&(this._checkmark=a);var b=this.$n();!b||this.isTopmost()||this.getImage()||(b=jq(b),b[a?"addClass":"removeClass"](this.$s("checked")),this._checkmark&&b.addClass(this.$s("checkable")))},autocheck:null,target:function(a){if(a=this.$n("a"))this.isTopmost()&&(a=a.parentNode),a.target=this._target},autodisable:null,upload:function(a){this.$n()&&(d(this),a&&"false"!=a&&c(this))}},isTopmost:function(){return this._topmost},beforeParentChanged_:function(a){this._topmost=
a&&!a.$instanceof(zul.menu.Menupopup);this.$supers("beforeParentChanged_",arguments)},domClass_:function(a){var b=this.$supers("domClass_",arguments);if(!a||!a.zclass){var c=this.isDisabled()?this.$s("disabled"):"";c&&(b+=(b?" ":"")+c);(c=!this.getImage()&&this.isCheckmark()?this.$s("checkable")+(this.isChecked()?" "+this.$s("checked"):""):"")&&(b+=(b?" ":"")+c)}return b},domContent_:function(){var a='<span class="'+this.$s("text")+'">'+zUtl.encodeXML(this.getLabel())+"</span>",b='<i class="'+this.$s("icon")+
' z-icon-check"></i>',c=this.getImage(),d=this.domIcon_();c=c?'<img src="'+c+'" class="'+this.$s("image")+'" align="absmiddle" />'+(d?" "+d:""):d?d:"<img "+(this.isTopmost()?'style="display:none"':"")+' src="data:image/png;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" class="'+this.$s("image")+'" align="absmiddle" />';return c+(this.isAutocheck()||this.isCheckmark()?b:"")+a},getMenubar:function(){for(var a=this.parent;a;a=a.parent)if(a.$instanceof(zul.menu.Menubar))return a;
return null},bind_:function(){this.$supers(zul.menu.Menuitem,"bind_",arguments);if(!this.isDisabled()){var a=this.$n("a");this.isTopmost()&&this.domListen_(a,"onFocus","doFocus_").domListen_(a,"onBlur","doBlur_");this.domListen_(a,"onMouseEnter");this._upload&&c(this)}},unbind_:function(){if(!this.isDisabled()){this._upload&&d(this);var a=this.$n("a");this.isTopmost()&&this.domUnlisten_(a,"onFocus","doFocus_").domUnlisten_(a,"onBlur","doBlur_");this.domUnlisten_(a,"onMouseEnter")}this.$supers(zul.menu.Menuitem,
"unbind_",arguments)},doClick_:function(a){if(this._disabled)a.stop();else if(this._canActivate(a)){if(!this._upload)zul.wgt.ADBS.autodisable(this);else if(!zk.ie||10<zk.ie)zk.chrome&&"file"==a.domTarget.type||this._uplder.openFileDialog();var b=this.isTopmost(),c=this.$n("a");c.href.startsWith("javascript:")?(this.isAutocheck()&&(this.setChecked(!this.isChecked()),this.fire("onCheck",this.isChecked())),this.fireX(a),this._upload||a.stop()):c.href.toLowerCase().startsWith("mailto:")?(c=jq.newFrame("mailtoFrame",
c.href,null),jq(c).remove(),a.stop()):(11>zk.ie&&b&&this.$n().id!=c.id&&zUtl.go(c.href,{target:c.target}),zk.gecko&&b&&this.$n().id!=c.id&&(zUtl.go(c.href,{target:c.target}),a.stop()));if(!b)for(b=this.parent;b;b=b.parent)if(b.$instanceof(zul.menu.Menupopup)){if(!b.isOpen()||this._uplder)break;this._updateHoverImage();b.close({sendOnOpen:!0})}else if(b.$instanceof(zul.menu.Menu))b._updateHoverImage();else break;var d;zk.webkit&&(d=this.getMenubar())&&d._autodrop&&(d._noFloatUp=!0);this.$super("doClick_",
a,!0)}},_canActivate:function(a){return!this.isDisabled()&&(11>!zk.ie||!this.isTopmost()||this._uplder||jq.isAncestor(this.$n("a"),a.domTarget))},_getUploadRef:function(){return this.$n("a")},_doMouseEnter:function(a){(zul.menu._nOpen||this.isTopmost())&&zWatch.fire("onFloatUp",this)},deferRedrawHTML_:function(a){var b=this.isTopmost()?"td":"li";a.push("<",b,this.domAttrs_({domClass:1}),' class="z-renderdefer"></',b,">")},getImageNode:function(){!this._eimg&&(this._image||this._hoverImage)&&this.$n()&&
(this._eimg=this.$n("a").firstChild);return this._eimg}},{_isActive:function(a){return jq(a.$n()).hasClass(a.$s("hover"))},_addActive:function(a){var b=a.isTopmost();jq(a.$n()).addClass(a.$s("hover"));!b&&a.parent.parent.$instanceof(zul.menu.Menu)&&this._addActive(a.parent.parent)},_rmActive:function(a){return jq(a.$n()).removeClass(a.$s("hover"))}})).prototype.onShow=function(){this._uplder&&this._uplder.sync()}})();
