var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};$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(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,b,c,d){if(b){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};
$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
zul.LabelImageWidget=zk.$extends(zul.Widget,{_label:"",$define:{label:_zkf=function(){this.desktop&&this.updateDomContent_()},iconSclass:_zkf,image:function(a){a&&this._preloadImage&&zUtl.loadImage(a);var b=this.getImageNode(),c=jq(b);b?(a=a||"",jq.nodeName(b,"img")?b.src=a:c.css("background-image","url("+a+")"),c[a?"show":"hide"]()):this.desktop&&this.updateDomContent_()},hoverImage:null},updateDomContent_:function(){this.rerender()},domImage_:function(){var a=this._image;return a?'<img src="'+a+
'" align="absmiddle" />':""},domIcon_:function(){var a=this.getIconSclass(),b="";if(a){b=a.split(",");var c=b.length;if(1<c){a=['<span class="z-icon-stack">'];for(var d=0;d<c;d++){var e=b[d];e&&a.push('<i class="'+e+'"></i>')}a.push("</span>");b=a.join("")}else b='<i class="'+a+'"></i>'}return b},domLabel_:function(){return zUtl.encodeXML(this.getLabel())},domContent_:function(){var a=this.domLabel_(),b=this.domIcon_(),c=this.domImage_();return c?b?c+" "+b+(a?" "+a:""):a?c+" "+a:c:b?a?b+" "+a:b:a},
doMouseOver_:function(){this._updateHoverImage(!0);this.$supers("doMouseOver_",arguments)},doMouseOut_:function(){this._updateHoverImage();this.$supers("doMouseOut_",arguments)},getImageNode:function(){if(!this._eimg&&this._image){var a=this.$n();a&&(this._eimg=jq(a).find("img:first")[0])}return this._eimg},_updateHoverImage:function(a){var b=this.getImageNode();a=a?this._hoverImage:this._image;b&&this._hoverImage&&(jq.nodeName(b,"img")?b.src=a:jq(b).css("background-image","url("+a+")"))},clearCache:function(){this._eimg=
null;this.$supers("clearCache",arguments)}});
