export const __rspack_esm_id=34871;export const __rspack_esm_ids=[34871];export const __webpack_modules__={14858(i,o,e){e.r(o);var n=e(15697),r=e(57527),t=e(79224),a=e(5455);e(34159);class s extends r.WF{setConfig(i){if(!i||!i.url)throw new Error("URL required");this._config={icon:"mdi:link",name:i.url,...i}}render(){return this._config?r.qy` <a href=${this._config.url} target=${(0,a.J)(this._computeTargetValue())} rel="noreferrer" ?download=${this._config.download}> <ha-icon .icon=${this._config.icon}></ha-icon> <div .title=${this._config.name}>${this._config.name}</div> </a> `:r.s6}_computeTargetValue(){return!this._config||-1===this._config.url.indexOf("://")&&!0!==this._config.new_tab&&!0!==this._config.download?void 0:"_blank"}}s.styles=r.AH`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,n.Cg)([(0,t.wk)()],s.prototype,"_config",void 0),s=(0,n.Cg)([(0,t.EM)("hui-weblink-row")],s)}};
//# sourceMappingURL=34871.a59d4c95f93f8bf0.js.map