code: function handleConfirm(modal, params) {
    var callbackValue = true;
  
    if (_hasClass$isDescendant.hasClass(modal, 'show-input')) {
      callbackValue = modal.querySelector('input').value;
  
      if (!callbackValue) {
        callbackValue = '';
      }
    }
  
    params.doneFunction(callbackValue);
  
    if (params.closeOnConfirm) {
      sweetAlert.close();
    }
  }
docs: /*
  User clicked on "Confirm"/"OK"