2020-03-26 22:43:44 +01:00
|
|
|
/**
|
2023-09-04 16:12:21 +02:00
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
2020-04-23 00:49:23 +02:00
|
|
|
*
|
2023-09-04 16:12:21 +02:00
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
2020-08-24 10:28:55 +02:00
|
|
|
*
|
2023-09-04 16:12:21 +02:00
|
|
|
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
2020-06-16 18:09:43 +02:00
|
|
|
*/
|
|
|
|
|
2023-09-04 16:12:21 +02:00
|
|
|
import axios from 'axios';
|
|
|
|
import cardValidator from 'card-validator';
|
|
|
|
|
|
|
|
window.axios = axios;
|
|
|
|
window.valid = cardValidator;
|
2020-08-25 08:55:55 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove flashing message div after 3 seconds.
|
|
|
|
*/
|
|
|
|
document.querySelectorAll('.disposable-alert').forEach((element) => {
|
|
|
|
setTimeout(() => {
|
|
|
|
element.remove();
|
2021-01-27 14:10:24 +01:00
|
|
|
}, 5000);
|
2020-08-25 08:55:55 +02:00
|
|
|
});
|