 bootstrap.Modal.getInstance(element)
                if (modal)
                    modal.hide();
            }
        }


        function lockButtons(state) {
            $('.need-lock')[state ? 'addClass': 'removeClass']('disabled')
            let lockLoad = $('load-accounts')
            if(!state) {
                lockLoad.html('<i class="bi-person-fill-add"></i>')
                $('.choose-accounts')[$('input:checked.accounts.current').length ? 'removeClass' : 'addClass']('disabled')
            