Google Apps Script sweet alert not running

would like alert to popup when we click ‘re-assign reviewer’ to indicate a list of reviewers from Gsheet for the user to select from. however the sweet alert is not showing up when i run this script, the error seems to be due to InputOptionsPromise, how can i correct this please? i am completely new to Google Apps Script, please i would appreciate some help, thank you!

  if (action == 'Prepared') {

    Swal.fire({
      title: "Insert Google Drive Folder Link",
      input: 'text',
      inputPlaceholder: `Enter link for ${formName}`      
  }).then((result) => {
      if ((result.value).includes("drive.google.com/drive/folders/")) {
            Swal.fire({
              title: 'Please check reviewer',
              text: "Email will be sent to: " + newData[0]['Assigned Checker'],
              icon: 'info',
              showCancelButton: true,
              confirmButtonColor: '#3085d6',
              cancelButtonColor: '#d33',
              confirmButtonText: 'Yes, send!',
              cancelButtonText: 'Change reviewer'
            }).then((checking) => {
              if (checking.isConfirmed) {
              //ACTION WHEN SEND IS CONFIRMED
              Swal.fire({
                icon: 'success',
                title: 'Task has been prepared',
                showConfirmButton: false,
                timer: 1500
              })
            google.script.run.update_dashboard(id, newData[0], action, sheetName, result.value, newData[0]['Assigned Checker'].replace(' (cover)', ''));
              }
              else {
              Swal.fire({
                title: 'Select Reviewer',
                input: 'select',
                inputOptions: inputOptionsPromise,
                inputPlaceholder: 'Select Reviewer',
                showCancelButton: true,
                inputValidator: function(value) {
                  return new Promise(function(resolve, reject) {
                    if (value != '') {
                      resolve();
                    } else {
                      reject('You need to select a reviewer')
                      alert('Select reviewer required')
                    }
                  })
                }
              }).then((address) => {
                if (address.isConfirmed) {
                Swal.fire({
                  type: 'success',
                  html: 'Email will be sent to: ' + address.value
                })
                google.script.run.update_dashboard(id, newData[0], action, sheetName, result.value, address.value);
                }
              })
              }
            })
      }
      else {
          Swal.fire({
          icon: 'error',
          title: 'Oops...',
          text: 'Please insert Google Drive Folder Link. Folder path is required.',
          color: '#716add',
        })
      }
  });
  return
  }
  else if (action != 'Prepared') {
    Swal.fire({
      icon: 'success',
      title: 'Task has been ' + action,
      showConfirmButton: false,
      timer: 1500
    })
  google.script.run.update_dashboard(id, newData[0], action, sheetName, newData[0]['Link']);

  }
  
}

function tagPSC () {

  var id = $("#formID").val();
  Swal.fire({
    title: "Enter Pre-Submission Checklist ID:",
    text: "UID can be found in checklist tab",
    input: 'text',
    inputPlaceholder: 'e.g.: 3e44ead7-82c7-4782-a58c-471106c05d56',
    showCancelButton: true        
  }).then((result) => {
    if (result.value.length == 36) {
        google.script.run.tag_psc_dashboard(id, result.value);
        Swal.fire({
          icon: 'success',
          title: 'UID tagged successfully',
          showConfirmButton: false,
          timer: 1500
        })
    }
    else {
      Swal.fire({
      icon: 'error',
      title: 'Oops...',
      text: 'Please insert valid unique ID generated from Pre-Submission Checklist.',
      color: '#716add',
    })
  }
    
  });

}

function promiseLoadout () {
  waitFor(_ => selectLi != null && userMapping != null)
  .then(_ => 
    (promiseResolution(selectLi, userMapping, 'val'),
    google.script.run.withSuccessHandler(function(data) {
      var promiseOutput = {}
      JSON.parse(data).forEach(obj=>{
        promiseOutput[obj['userName']] = obj['userID'] + "@maribank.com.sg"
      })
      window.inputOptionsPromise = new Promise(function (resolve) {
        // get your data and pass it to resolve()
        setTimeout(function () {
          resolve(promiseOutput)
        }, 2000)
      })
    }).convertToJson("Users"))
  );
}


function reassign () {

  var id = $("#formID").val();
  Swal.fire({  
  title: 'Re-Assign Maker or Checker?',  
  showDenyButton: true,  showCancelButton: false,  
  confirmButtonText: `Maker`,  
  denyButtonText: `Checker`,
  }).then((result) => {  
    /* Read more about isConfirmed, isDenied below */  
      if (result.isConfirmed) {    
          Swal.fire({
          title: 'Select new preparer',
          input: 'select',
          inputOptions: inputOptionsPromise,
          inputPlaceholder: 'Select new preparer',
          showCancelButton: true,
          inputValidator: function(value) {
            return new Promise(function(resolve, reject) {
              if (value != '') {
                resolve();
              } else {
                reject('You need to select a preparer')
                alert('Select preparer required')
              }
            })
          }
        }).then((address) => {
          if (address.isConfirmed) {
          Swal.fire({
            type: 'success',
            html: 'Preparer has been changed to: ' + address.value
          })
          google.script.run.reassign_dashboard('maker', id, address.value);
          }
        })

      } else if (result.isDenied) {    
        
          Swal.fire({
          title: 'Select new reviewer',
          input: 'select',
          inputOptions: inputOptionsPromise,
          inputPlaceholder: 'Select new reviewer',
          showCancelButton: true,
          inputValidator: function(value) {
            return new Promise(function(resolve, reject) {
              if (value != '') {
                resolve();
              } else {
                reject('You need to select a reviewer')
                alert('Select reviewer required')
              }
            })
          }
        }).then((address) => {
          if (address.isConfirmed) {
          Swal.fire({
            type: 'success',
            html: 'Reviewer has been changed to: ' + address.value
          })
          google.script.run.reassign_dashboard('checker', id, address.value);
          }
        })

    }
  });


}

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật