zul.wgt.A=zk.$extends(zul.LabelImageWidget,{_dir:"normal",$define:{disabled:[function(t,i){if(i&&i.adbs?this._adbs=!0:i&&void 0!==i.adbs||(this._adbs=!1),!t)if(this._adbs)this._adbs=!1;else if(i&&!1===i.adbs)return this._disabled;return t},function(t){var i=this;i.desktop&&jq(i.$n()).attr("disabled",t?"disabled":null)}],dir:function(){var t=this.$n();t&&(t.innerHTML=this.domContent_())},href:function(t){var i=this.$n();i&&(i.href=t||"")},target:function(t){var i=this.$n();i&&(i.target=t||"")},autodisable:null},bind_:function(){if(this.$supers(zul.wgt.A,"bind_",arguments),!this._disabled){var t=this.$n();this.domListen_(t,"onFocus","doFocus_").domListen_(t,"onBlur","doBlur_")}},unbind_:function(){var t=this.$n();this.domUnlisten_(t,"onFocus","doFocus_").domUnlisten_(t,"onBlur","doBlur_"),this.$supers(zul.wgt.A,"unbind_",arguments)},domContent_:function(){var t=zUtl.encodeXML(this.getLabel()),i=this.getImage(),s=this.domIcon_();return i||s?(i=i?'<img src="'.concat(i,'" align="absmiddle" />').concat(s?" "+s:""):s,"reverse"==this.getDir()?t+i:i+t):t},domAttrs_:function(){var t,i=this.$supers("domAttrs_",arguments);return(t=this.getTarget())&&(i+=' target="'.concat(t,'"')),(t=this.getHref())?i+=' href="'.concat(t,'"'):i+=' href="javascript:;"',this._disabled&&(i+=' disabled="disabled"'),i},doClick_:function(t){var i=this.getHref();if(i&&i.toLowerCase().startsWith("mailto:")){var s=jq.newFrame("mailtoFrame",i,null);zk.chrome?setTimeout(function(){jq(s).remove()},100):jq(s).remove(),t.stop()}zk.ie&&zk.ie<11&&!i&&t.stop({dom:!0}),this._disabled?t.stop():(zul.wgt.ADBS.autodisable(this),this.fireX(t),t.stopped||this.$super("doClick_",t,!0))}});