close(escPressed = false, preventRegistryUpdate = false, preventFocusRestore = false) {
      if (!this.opened) {
        return;
      }
      const prevented = !this.fireEvent("before-close", {
        escPressed
      }, true, false);
      if (prevented) {
        return;
      }
      if (this.isModal) {
        this._blockLayerHidden = true;
        Popup_1.unblockPageScrolling(this);
      }
      this.hide();
      this.opened = false;
      this.open = false;
      if (!preventRegistryUpdate) {
        this._removeOpenedPopup();
      }
      if (!this.preventFocusRestore && !preventFocusRestore) {
        this.resetFocus();
      }
      this.fireEvent("after-close", {}, false, false);
    }
Closes the popup.
@public
@method
@name sap.ui.webc.main.Popup#close
@returns {void}