export const __rspack_esm_id="69148";export const __rspack_esm_ids=["69148"];export const __webpack_modules__={65751(i,o,e){e.r(o);var n=e(62826),r=e(96196),t=e(97735),a=e(32288);e(88945);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{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,n.Cg)([(0,t.wk)()],s.prototype,"_config",void 0),s=(0,n.Cg)([(0,t.EM)("hui-weblink-row")],s)}};
//# sourceMappingURL=69148.efb50d9a8d904969.js.map