"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["69148"],{65751:function(i,n,e){e.r(n);e(16280);var o=e(40445),t=e(96196),r=e(77845),a=e(32288);e(88945);let s,l,c=i=>i;class f extends t.WF{setConfig(i){if(!i||!i.url)throw new Error("URL required");this._config=Object.assign({icon:"mdi:link",name:i.url},i)}render(){return this._config?(0,t.qy)(s||(s=c` <a href="${0}" target="${0}" rel="noreferrer" ?download="${0}"> <ha-icon .icon="${0}"></ha-icon> <div .title="${0}">${0}</div> </a> `),this._config.url,(0,a.J)(this._computeTargetValue()),this._config.download,this._config.icon,this._config.name,this._config.name):t.s6}_computeTargetValue(){return!this._config||-1===this._config.url.indexOf("://")&&!0!==this._config.new_tab&&!0!==this._config.download?void 0:"_blank"}}f.styles=(0,t.AH)(l||(l=c`a{display:flex;align-items:center;color:var(--primary-color)}ha-icon{padding:8px;color:var(--state-icon-color)}div{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:16px;margin-inline-start:16px;margin-inline-end:initial}`)),(0,o.Cg)([(0,r.wk)()],f.prototype,"_config",void 0),f=(0,o.Cg)([(0,r.EM)("hui-weblink-row")],f)}}]);
//# sourceMappingURL=69148.e03b115fdcfb85de.js.map