code: function openModal() {
    var $modal = getModal();
    _removeClass$getTopMargin$fadeIn$show$addClass.fadeIn(getOverlay(), 10);
    _removeClass$getTopMargin$fadeIn$show$addClass.show($modal);
    _removeClass$getTopMargin$fadeIn$show$addClass.addClass($modal, 'showSweetAlert');
    _removeClass$getTopMargin$fadeIn$show$addClass.removeClass($modal, 'hideSweetAlert');
  
    window.previousActiveElement = document.activeElement;
    var $okButton = $modal.querySelector('button.confirm');
    $okButton.focus();
  
    setTimeout(function () {
      _removeClass$getTopMargin$fadeIn$show$addClass.addClass($modal, 'visible');
    }, 500);
  
    var timer = $modal.getAttribute('data-timer');
  
    if (timer !== 'null' && timer !== '') {
      $modal.timeout = setTimeout(function () {
        swal.close();
      }, timer);
    }
  }
docs: /*
  Animation when opening modal