async show() {
    return new Promise((resolve, reject) => {
      if (!this.visible) {
        reject(new Error('Cannot show the modal if the `visible` setting is false'));
        return;
      }

      this.container.classList.add('visible');

      // Adds a RenderLoop-staggered check for whether to show the Popup.
      if (this.openCheck) {
        this.openCheck.destroy(true);
      }

      this.openCheck = renderLoop.register(new IdsRenderLoopItem({
        duration: 70,
        timeoutCallback: () => {
          // Always fire the 'show' event
          this.triggerEvent('show', this, {
            bubbles: true,
            detail: {
              elem: this
            }
          });
          this.container.classList.add('open');
          if (this.isFlipped) {
            this.container.classList.add('flipped');
          }
          this.place().then(() => {
            // If an arrow is displayed, place it correctly.
            this.#setArrowDirection('', this.arrow);
            this.placeArrow();

            this.#correct3dMatrix();
            this.open = true;
            resolve();
          });
        }
      }));
    });
  }
/**
   * Shows the Popup
   * @async
   * @returns {Promise} resolved once showing and animating the Popup is completed.
   */
Shows the Popup
@async
@returns {Promise} resolved once showing and animating the Popup is completed.
Shows the Popup @async @returns { Promise } resolved once showing and animating the Popup is completed .
async show() {
    return new Promise((resolve, reject) => {
      if (!this.visible) {
        reject(new Error('Cannot show the modal if the `visible` setting is false'));
        return;
      }
      this.container.classList.add('visible');
      if (this.openCheck) {
        this.openCheck.destroy(true);
      }
      this.openCheck = renderLoop.register(new IdsRenderLoopItem({
        duration: 70,
        timeoutCallback: () => {
          this.triggerEvent('show', this, {
            bubbles: true,
            detail: {
              elem: this
            }
          });
          this.container.classList.add('open');
          if (this.isFlipped) {
            this.container.classList.add('flipped');
          }
          this.place().then(() => {
            this.#setArrowDirection('', this.arrow);
            this.placeArrow();
            this.#correct3dMatrix();
            this.open = true;
            resolve();
          });
        }
      }));
    });
  }
async show ( ) { return new Promise ( ( resolve , reject ) => { if ( ! this . visible ) { reject ( new Error ( 'Cannot show the modal if the `visible` setting is false' ) ) ; return ; } this . container . classList . add ( 'visible' ) ; if ( this . openCheck ) { this . openCheck . destroy ( true ) ; } this . openCheck = renderLoop . register ( new IdsRenderLoopItem ( { duration : 70 , timeoutCallback : ( ) => { this . triggerEvent ( 'show' , this , { bubbles : true , detail : { elem : this } } ) ; this . container . classList . add ( 'open' ) ; if ( this . isFlipped ) { this . container . classList . add ( 'flipped' ) ; } this . place ( ) . then ( ( ) => { this . #setArrowDirection ( '' , this . arrow ) ; this . placeArrow ( ) ; this . #correct3dMatrix ( ) ; this . open = true ; resolve ( ) ; } ) ; } } ) ) ; } ) ; }
Shows the Popup
 @async
 @returns {Promise} resolved once showing and animating the Popup is completed.
Shows the Popup @async @returns { Promise } resolved once showing and animating the Popup is completed .
// Adds a RenderLoop-staggered check for whether to show the Popup. // Always fire the 'show' event // If an arrow is displayed, place it correctly.