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(){var t;this.$supers(zul.wgt.A,"bind_",arguments),this._disabled||(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.domImage_(),s=this.domIcon_();return i||s?(i?i+="".concat(s?" "+s:""):i=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,s=this.getHref();s&&s.toLowerCase().startsWith("mailto:")&&(i=jq.newFrame("mailtoFrame",s,null),zk.chrome?setTimeout(function(){jq(i).remove()},100):jq(i).remove(),t.stop()),zk.ie&&zk.ie<11&&!s&&t.stop({dom:!0}),this._disabled?t.stop():(zul.wgt.ADBS.autodisable(this),this.fireX(t),t.stopped||this.$super("doClick_",t,!0))}});