text: // Prompt is our JavaScript module for all alerts, notifications, and custom popup dialogs
  function Prompt() {
      let toast = function (c) {
          const {
              message = "",
              icon = "success",
              position = "top-end",
          } = c;
  
          const Toast = Swal.mixin({
              toast: true,
              title: message,
              position: position,
              icon: icon,
              showConfirmButton: false,
              timer: 3000,
              timerProgressBar: true,
              didOpen: (toast) => {
                  toast.addEventListener('mouseenter', Swal.stopTimer)
                  toast.addEventListener('mouseleave', Swal.resumeTimer)
              }
          })
  
          Toast.fire({})
      }
  
      let success = function (c) {
          const {
              message = "",
              title = "",
              footer = "",
          } = c;
  
          Swal.fire({
              icon: 'success',
              title: title,
              text: message,
              footer: footer,
          })
      }
  
      let error = function (c) {
          const {
              message = "",
              title = "",
              footer = "",
          } = c;
  
          Swal.fire({
              icon: 'error',
              title: title,
              text: message,
              footer: footer,
          })
      }
  
      async function custom(c) {
          const {
              icon = "",
              message = "",
              title = "",
              showConfirmButton = true,
          } = c;
  
          const { value: result } = await Swal.fire({
              icon: icon,
              title: title,
              html: message,
              backdrop: false,
              focusConfirm: false,
              showCancelButton: true,
              showConfirmButton: showConfirmButton,
              willOpen: () => {
                  if (c.willOpen !== undefined) {
                      c.willOpen();
                  }
              },
              didOpen: () => {
                  if (c.didOpen !== undefined) {
                      c.didOpen();
                  }
              }
          })
  
          if (result) {
              if (result.dismiss !== Swal.DismissReason.cancel) {
                  if (result.value !== "") {
                      if (c.callback !== undefined) {
                          c.callback(result);
                      }
                  }
                  else {
                      c.callback(false);
                  }
              }
              else {
                  c.callback(false);
              }
          }
      }
  
  
      return {
          toast: toast,
          success: success,
          error: error,
          custom: custom,
      }
  }