PageSourceSearch

https://mahakal.com/public/assets/back-end/js/vendor/login.js

js mahakal.com collected 2026-10-02 00:18:45 UTC 2,779 bytes, 84 lines download raw bytes

1"use strict";
2
3$(document).on('ready', function () {
4    $('.js-toggle-password').each(function () {
5        new HSTogglePassword(this).init()
6    });
7    $('.js-validate').each(function () {
8        $.HSCore.components.HSValidation.init($(this));
9    });
10});
11
12$('.submit-login-form').on('click',function (){
13    var response = 1;
14    try{
15        response = grecaptcha.getResponse();
16        if(response === ""){
17            response = 1;
18        }
19    }catch (e) {
20
21    }
22    if (response.length === 0) {
23        e.preventDefault();
24        toastr.error($('#message-please-check-recaptcha').data('text'));
25    }else {
26        $.ajaxSetup({
27            headers: {
28                'X-XSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
29            }
30        });
31        $.post({
32            url: $('#vendor-login-form').attr('action'),
33            data: $('#vendor-login-form').serialize(),
34            beforeSend: function () {
35                $('#loading').fadeIn();
36            },
37            success: function (data) {
38                if (data.errors) {
39                    for (let index = 0; index < data.errors.length; index++) {
40                        toastr.error(data.errors[index].message, {
41                            CloseButton: true,
42                            ProgressBar: true
43                        });
44                    }
45                } else if(data.error){
46                    toastr.error(data.error, {
47                        CloseButton: true,
48                        ProgressBar: true
49                    });
50                }else if(data.status){
51                    $('.'+data.status+'-message').removeClass('d-none')
52                }else {
53                    location.href = data.redirectRoute;
54                    toastr.success(data.success)
55                }
56            },complete: function () {
57                $('#loading').fadeOut();
58            },
59        })
60
61    }
62})
63$('.clear-alter-message').on('click',function (){
64    $('.vendor-suspend').addClass('d-none')
65})
66$('.get-login-recaptcha-verify').on('click', function () {
67    document.getElementById('default_recaptcha_id').src = $(this).data('link') + "/" + Math.random()+'?captcha_session_id=vendorRecaptchaSessionKey';
68});
69
70$('#copyLoginInfo').on('click', function () {
71    let vendorEmail = $('#vendor-email').data('email');
72    let vendorPassword = $('#vendor-password').data('password');
73    $('#signingVendorEmail').val(vendorEmail);
74    $('#signingVendorPassword').val(vendorPassword);
75    toastr.success($('#message-copied_success').data('text'), 'Success!', {
76        CloseButton: true,
77        ProgressBar: true
78    });
79});
80
81$('.onerror-logo').on('error', function () {
82    let image = $('#onerror-logo').data('onerror-logo');
83    $(this).attr('src', image);
84});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.