mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
fba29de459
* checkout: fixes for view * alipay: fixes for method implementation * checkout: fixes for instant payments * livewire: revert back the local patch * remove livewire local patch
27 lines
695 B
JavaScript
Vendored
27 lines
695 B
JavaScript
Vendored
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
*/
|
|
|
|
import axios from 'axios';
|
|
import cardValidator from 'card-validator';
|
|
import { Livewire, Alpine } from '../../vendor/livewire/livewire/dist/livewire.esm';
|
|
|
|
Livewire.start()
|
|
window.axios = axios;
|
|
window.valid = cardValidator;
|
|
|
|
/**
|
|
* Remove flashing message div after 3 seconds.
|
|
*/
|
|
document.querySelectorAll('.disposable-alert').forEach((element) => {
|
|
setTimeout(() => {
|
|
element.remove();
|
|
}, 5000);
|
|
});
|