PageSourceSearch

https://zonaprivadaong.fundacionlealtad.org/js/validator/FormValidator.js

js fundacionlealtad.org collected 2026-10-02 10:10:58 UTC 2,059 bytes, 60 lines download raw bytes

1const validationMixin = vuelidate.validationMixin;
2
3Vue.use(vuelidate.default);
4Vue.use(VueTheMask);
5Vue.use(VMoney);
6
7var validatorForm = new Vue({
8    el: 'form',
9    mixins: [validationMixin],
10    delimiters: ['[[', ']]'],
11    validations: globalConfigValidations,
12    data: () => (globalConfigdata),
13    mounted() {
14        //this.$refs.recaptcha.setAttribute("data-callback", "recaptchaCallback");
15        //window.recaptchaCallback = this.recaptchaCallback;
16    },
17    methods: {
18        onSubmitForm: function onSubmitForm(formData) {
19            console.log(formData);
20            $.ajax({
21                url: this.form.url,
22                data: formData,
23                type: this.form.method,
24                contentType: false,
25                processData: false,
26                cache: false,
27                beforeSend: this.beforeSendForm.bind(this),
28                success: this.onSuccess.bind(this),
29                error: this.showErrors.bind(this)
30            });
31        },
32        division: function division(a,b) {
33            const result = Math.round(a/b * 100) / 100;
34            return isNaN(result) || !isFinite(result) ? 0 : result;
35        },
36        validateAll(){
37            //Metodo que valida todos los campos del formulario
38            this.$v.$touch();
39        },
40        beforeSendForm: function beforeSendForm(response) {
41            console.log("before send");
42        },
43        onSuccess: function onSuccess(response) {
44            console.log("on success");
45        },
46        showErrors: function showErrors(response) {
47            alert("Error " + response.status);
48        },
49        validateForm() {
50            this.validateAll();
51            //const isCaptchaValid = grecaptcha.getResponse();
52            this.hasInteracted = true;
53            if (!this.$v.$invalid) {
54                let form = document.getElementsByTagName('form')[0];
55                this.hasInteracted = false;
56                form.submit();
57            }
58        },
59    }
60});

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.