import*as i18n from"../i18n/i18n.js";import{VBox}from"./Widget.js";import{XLink}from"./XLink.js";const UIStrings={learnMore:"Learn more"},str_=i18n.i18n.registerUIStrings("ui/EmptyWidget.js",UIStrings),i18nString=i18n.i18n.getLocalizedString.bind(void 0,str_);export class EmptyWidget extends VBox{constructor(t){super(),this.registerRequiredCSS("ui/emptyWidget.css",{enableLegacyPatching:!1}),this.element.classList.add("empty-view-scroller"),this._contentElement=this.element.createChild("div","empty-view"),this._textElement=this._contentElement.createChild("div","empty-bold-text"),this._textElement.textContent=t}appendParagraph(){return this._contentElement.createChild("p")}appendLink(t){return this._contentElement.appendChild(XLink.create(t,i18nString(UIStrings.learnMore)))}set text(t){this._textElement.textContent=t}}