"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[34871],{14858:function(i,n,e){e.r(n);var o,t,r=e(28430),a=e(97058),s=e(57567),c=e(25979),l=e(12463),f=e(16472),h=(e(16280),e(25276),e(15697)),u=e(57527),d=e(51209),g=e(77811),_=(e(34159),function(i){function n(){return(0,s.A)(this,n),(0,f.A)(this,n,arguments)}return(0,l.A)(n,i),(0,c.A)(n,[{key:"setConfig",value:function(i){if(!i||!i.url)throw new Error("URL required");this._config=(0,a.A)({icon:"mdi:link",name:i.url},i)}},{key:"render",value:function(){return this._config?(0,u.qy)(o||(o=(0,r.A)([" <a href="," target=",' rel="noreferrer" ?download=',"> <ha-icon .icon=","></ha-icon> <div .title=",">","</div> </a> "])),this._config.url,(0,g.J)(this._computeTargetValue()),this._config.download,this._config.icon,this._config.name,this._config.name):u.s6}},{key:"_computeTargetValue",value:function(){return!this._config||-1===this._config.url.indexOf("://")&&!0!==this._config.new_tab&&!0!==this._config.download?void 0:"_blank"}}])}(u.WF));_.styles=(0,u.AH)(t||(t=(0,r.A)(["a{color:var(--primary-color);align-items:center;display:flex}ha-icon{color:var(--state-icon-color);padding:8px}div{white-space:nowrap;text-overflow:ellipsis;margin-left:16px;flex:1;margin-inline-start:16px;margin-inline-end:initial;overflow:hidden}"]))),(0,h.Cg)([(0,d.wk)()],_.prototype,"_config",void 0),_=(0,h.Cg)([(0,d.EM)("hui-weblink-row")],_)}}]);
//# sourceMappingURL=34871.e3c95105ddfd38cc.js.map