PageSourceSearch

https://feelfour.com/plataforma/global/biitCore/biit-core.js?10062692

js feelfour.com collected 2026-10-06 09:37:43 UTC 6,951 bytes, 185 lines download raw bytes

1/**
2 *  bbbbbbbb
3 *  b::::::b              iiii    iiii          tttt                 CCCCCCCCCCCCC
4 *  b::::::b             i::::i  i::::i      ttt:::t              CCC::::::::::::C
5 *  b::::::b              iiii    iiii       t:::::t            CC:::::::::::::::C
6 *  b:::::b                                 t:::::t           C:::::CCCCCCCC::::C
7 *  b:::::bbbbbbbbb    iiiiiii iiiiiiittttttt:::::ttttttt    C:::::C       CCCCCC   ooooooooooo   rrrrr   rrrrrrrrr       eeeeeeeeeeee
8 *  b::::::::::::::bb  i:::::i i:::::it:::::::::::::::::t   C:::::C               oo:::::::::::oo r::::rrr:::::::::r    ee::::::::::::ee
9 *  b::::::::::::::::b  i::::i  i::::it:::::::::::::::::t   C:::::C              o:::::::::::::::or:::::::::::::::::r  e::::::eeeee:::::ee
10 *  b:::::bbbbb:::::::b i::::i  i::::itttttt:::::::tttttt   C:::::C              o:::::ooooo:::::orr::::::rrrrr::::::re::::::e     e:::::e
11 *  b:::::b    b::::::b i::::i  i::::i      t:::::t         C:::::C              o::::o     o::::o r:::::r     r:::::re:::::::eeeee::::::e
12 *  b:::::b     b:::::b i::::i  i::::i      t:::::t         C:::::C              o::::o     o::::o r:::::r     rrrrrrre:::::::::::::::::e
13 *  b:::::b     b:::::b i::::i  i::::i      t:::::t         C:::::C              o::::o     o::::o r:::::r            e::::::eeeeeeeeeee
14 *  b:::::b     b:::::b i::::i  i::::i      t:::::t    ttttttC:::::C       CCCCCCo::::o     o::::o r:::::r            e:::::::e
15 *  b:::::bbbbbb::::::bi::::::ii::::::i     t::::::tttt:::::t C:::::CCCCCCCC::::Co:::::ooooo:::::o r:::::r            e::::::::e
16 *  b::::::::::::::::b i::::::ii::::::i     tt::::::::::::::t  CC:::::::::::::::Co:::::::::::::::o r:::::r             e::::::::eeeeeeee
17 *  b:::::::::::::::b  i::::::ii::::::i       tt:::::::::::tt    CCC::::::::::::C oo:::::::::::oo  r:::::r              ee:::::::::::::e
18 *  bbbbbbbbbbbbbbbb   iiiiiiiiiiiiiiii         ttttttttttt         CCCCCCCCCCCCC   ooooooooooo    rrrrrrr                eeeeeeeeeeeeee
19 *
20 *      Docs:
21 *       - http://patorjk.com/software/taag/#p=display&f=Doh&t=biitCore
22 *       - http://javascript.info/
23 *
24 */
25// 'use strict';
26/**
27 * En desarrollo, por aqui imports etc. La idea es hacer un sistema con modulos js.
28 * De momento es un amago para no hacer algo demasiado avanzado respecto a lo que hay.
29 * @type {{page: {}, inputHelper: {}, ficheros: {}, sgaCore: {}, ready: biitCore.ready}}
30 */
31
32let biitCore = (() => {
33    let that = {};
34    // that.cola = {};
35
36    that.tablas = [];
37    that.$test = false;
38
39    that.ready = () => {
40        if (typeof biitCore.tabla !== "undefined") biitCore.tabla.init('.tablaBiit');
41        if (typeof biitCore.tablalight !== "undefined") biitCore.tablalight.init('.tablaBiit');
42        if (typeof biitCore.tabla2 !== "undefined") biitCore.tabla2.init('.tablaBiit');
43        if (typeof biitCore.explorador !== "undefined") biitCore.explorador.init('.fileupload');
44        if (typeof biitCore.sgaCore !== "undefined") biitCore.sgaCore.init('.sgaCoreForm');
45        if (typeof biitCore.planificador !== "undefined") biitCore.planificador.init('ajax[data-tipo="planificador"]');
46        if (typeof biitCore.inputHelper !== "undefined") biitCore.inputHelper.init('.inputHelper');
47
48        if (typeof biitCore.grafico !== "undefined") biitCore.grafico.init('.modulografico');
49        if (typeof biitCore.calendario !== "undefined") biitCore.calendario.init('.modulocalendario');
50        if (typeof biitCore.buscador !== "undefined") biitCore.buscador.init('.modulobuscador');
51
52        if (typeof biitCore.biitswitch !== "undefined") biitCore.biitswitch.init('.biit-switch');
53        
54
55        if (typeof $.fn.biitAutoDrop !== "undefined") $('.biit-autodrop').biitAutoDrop();
56    };
57    return that;
58})();
59
60
61function empty(data) {
62    if (typeof (data) === 'number' || typeof (data) === 'boolean') {
63        return false;
64    }
65    if (typeof (data) === 'undefined' || data === null) {
66        return true;
67    }
68    if (typeof (data.length) !== 'undefined') {
69        return data.length === 0;
70    }
71    let count = 0;
72    for (var i in data) {
73        if (data.hasOwnProperty(i)) {
74            count++;
75        }
76    }
77    return count === 0;
78}
79function inputsToArray($selector,$obj = false,$permiteEmpty=false){
80	let array = [];
81	if ($obj) {
82		array = {};
83	}
84    for(let ip of $selector.find(':input,select')) {
85        let $input = $(ip);
86		if (!empty($input.attr('name')) && ($permiteEmpty === true || !empty($input.val()))) {
87            let $value = $input.val();
88            if(!Array.isArray($value)) $value = [$input.val()];
89            for (let key in $value) {
90                if($obj) {
91                    array[$input.attr('name')] = $value[key];
92                } else {
93                    array.push({"name":$input.attr('name'), "value": $value[key]});
94                }
95            }
96        }
97    }
98    return array;
99}
100function isset(data) {
101    try {
102        if (typeof (data) !== 'undefined')
103            if (data != null)
104                return true;
105    } catch (e) {
106    }
107    return false;
108}
109
110function var_dump(data) {
111    console.log(data);
112}
113
114function die(data) {
115    console.error(data);
116}
117
118function IsJsonString(str) {
119    try {
120        JSON.parse(str);
121    } catch (e) {
122        return false;
123    }
124    return true;
125}
126
127const Toast = Swal.mixin({
128    toast: true,
129    position: 'top',
130    showConfirmButton: false,
131    timer: 3000,
132	timerProgressBar: true,
133	didOpen: (toast) => {
134		toast.addEventListener('mouseenter', Swal.stopTimer)
135		toast.addEventListener('mouseleave', Swal.resumeTimer)
136	}
137});
138
139//@TODO Repensar esta funcion
140//@TODO Proposito de año nuevo. Meter esto limpio y dinamico unificado con alerta en biit-util
141let alertaLog = function ($mensaje, $tipo = 'danger', $sonido = true) {
142    let $clase = $tipo;
143    let $claseToast = '';
144    if ($tipo === 'check') {
145        $clase = 'uk-text-primary';
146        $claseToast = 'info';
147        if ($sonido === true) {
148            // sonidoAlertas.warning.pause();
149            sonidoAlertas.warning.currentTime = 0;
150            sonidoAlertas.warning.play();
151        }
152    }
153    if ($tipo === 'info') {
154        $clase = 'uk-text-emphasis';
155        $claseToast = 'info';
156    }
157    if ($tipo === 'success') {
158        $clase = 'uk-text-success';
159        $claseToast = 'success';
160        if ($sonido === true) {
161            // sonidoAlertas.success.pause();
162            sonidoAlertas.success.currentTime = 0;
163            sonidoAlertas.success.play();
164        }
165    }
166    if ($tipo === 'warning') {
167        $clase = 'uk-text-warning';
168        $claseToast = 'warning';
169    }
170    if ($tipo === 'danger') {
171        $clase = 'uk-text-danger';
172        $claseToast = 'error';
173        if ($sonido === true) {
174            // sonidoAlertas.danger.pause();
175            sonidoAlertas.danger.currentTime = 0;
176            sonidoAlertas.danger.play();
177        }
178    }
179
180    Toast.fire({
181        icon: $claseToast,
182        title: $mensaje
183    })
184    
185};

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.