"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["69148"],{65751:function(i,n,e){e.r(n);var o,t,r=e(72153),a=e(44734),s=e(43080),c=e(69683),l=e(6454),f=(e(16280),e(25276),e(69085),e(40445)),h=e(96196),u=e(77845),g=e(32288),d=(e(88945),function(i){function n(){return(0,a.A)(this,n),(0,c.A)(this,n,arguments)}return(0,l.A)(n,i),(0,s.A)(n,[{key:"setConfig",value:function(i){if(!i||!i.url)throw new Error("URL required");this._config=Object.assign({icon:"mdi:link",name:i.url},i)}},{key:"render",value:function(){return this._config?(0,h.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):h.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"}}])}(h.WF));d.styles=(0,h.AH)(t||(t=(0,r.A)(["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,f.Cg)([(0,u.wk)()],d.prototype,"_config",void 0),d=(0,f.Cg)([(0,u.EM)("hui-weblink-row")],d)}}]);
//# sourceMappingURL=69148.81ad99f2b0acd8ad.js.map