alVisibility('reject-modal', "close");
      });
    }

    const rejectModalBackdrop = document.getElementById('backdrop-reject-modal');
    if (rejectModalBackdrop) {
      rejectModalBackdrop.addEventListener('click', () => {
        toggleModalVisibility('reject-modal', "close");
      });
    }
  </script>
{% endmacro reject_modal -%}

{% macro preview_modal() -%}
  {% call preview::modal() -%}

  <script type="module">
    import {
      toggleModalVisibility,
      isSuccessfulXHRStatus
    } from '/