import*as i18n from"../i18n/i18n.js";import*as UI from"../ui/ui.js";import{Events}from"./CSSOverviewController.js";const UIStrings={cancel:"Cancel"},str_=i18n.i18n.registerUIStrings("css_overview/CSSOverviewProcessingView.ts",UIStrings),i18nString=i18n.i18n.getLocalizedString.bind(void 0,str_);export class CSSOverviewProcessingView extends UI.Widget.Widget{constructor(e){super(),this.registerRequiredCSS("css_overview/cssOverviewProcessingView.css",{enableLegacyPatching:!1}),this._formatter=new Intl.NumberFormat("en-US"),this._controller=e,this._render()}_render(){const e=UI.UIUtils.createTextButton(i18nString(UIStrings.cancel),(()=>this._controller.dispatchEventToListeners(Events.RequestOverviewCancel)),"",!0);this.setDefaultFocusedElement(e),this.fragment=UI.Fragment.Fragment.build`
      <div class="vbox overview-processing-view">
        <h1>Processing page</h1>
        <div>${e}</div>
      </div>
    `,this.contentElement.appendChild(this.fragment.element()),this.contentElement.style.overflow="auto"}}