l');

      const closeModal = () => {
        modal.dismiss();
      };

      const enterAnimation = (baseEl) => {
        const root = baseEl.shadowRoot;

        const backdropAnimation = createAnimation()
          .addElement(root.querySelector('ion-backdrop'))
          .fromTo('opacity', '0.01', 'var(--backdrop-opacity)');

        const wrapperAnimation = createAnimation()
          .addElement(root.querySelector('.modal-wrapper'))
          .keyframes([
            { offset: 0, opacity: '0', trans