@bbn/bbn 1.0.56 → 1.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/$.d.ts +2 -0
- package/dist/$.js +7 -0
- package/dist/_.d.ts +8 -0
- package/dist/_.js +24 -0
- package/dist/bundle.d.ts +417 -36
- package/dist/bundle.js +701 -662
- package/dist/env.d.ts +33 -0
- package/dist/env.js +43 -0
- package/dist/fn.d.ts +245 -0
- package/dist/fn.js +460 -0
- package/dist/index.js +13 -621
- package/dist/lng.d.ts +26 -0
- package/dist/lng.js +27 -0
- package/dist/vars.d.ts +55 -0
- package/dist/vars.js +63 -0
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -9,6 +9,47 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__cjsModule", { value: true });
|
|
10
10
|
Object.defineProperty(exports, "default", { value: (name) => resolve(name) });
|
|
11
11
|
});
|
|
12
|
+
define("fn/isArray", ["require", "exports"], function (require, exports) {
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.isArray = void 0;
|
|
16
|
+
const isArray = function (...args) {
|
|
17
|
+
if (!args.length)
|
|
18
|
+
return false;
|
|
19
|
+
for (let a of args) {
|
|
20
|
+
if (!Array.isArray(a)) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return true;
|
|
25
|
+
};
|
|
26
|
+
exports.isArray = isArray;
|
|
27
|
+
});
|
|
28
|
+
define("fn/isNumber", ["require", "exports"], function (require, exports) {
|
|
29
|
+
"use strict";
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.isNumber = void 0;
|
|
32
|
+
const isNumber = function (...args) {
|
|
33
|
+
if (!args.length)
|
|
34
|
+
return false;
|
|
35
|
+
for (let a of args) {
|
|
36
|
+
if (['boolean', 'object', 'symbol'].includes(typeof a) || a === '' || isNaN(a)) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return true;
|
|
41
|
+
};
|
|
42
|
+
exports.isNumber = isNumber;
|
|
43
|
+
});
|
|
44
|
+
define("fn/isIterable", ["require", "exports"], function (require, exports) {
|
|
45
|
+
"use strict";
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.isIterable = void 0;
|
|
48
|
+
const isIterable = function (v) {
|
|
49
|
+
return v && typeof v === 'object' && Symbol.iterator in Object(v);
|
|
50
|
+
};
|
|
51
|
+
exports.isIterable = isIterable;
|
|
52
|
+
});
|
|
12
53
|
define("fn/isString", ["require", "exports"], function (require, exports) {
|
|
13
54
|
"use strict";
|
|
14
55
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -113,7 +154,350 @@
|
|
|
113
154
|
};
|
|
114
155
|
exports.substr = substr;
|
|
115
156
|
});
|
|
116
|
-
define("fn/
|
|
157
|
+
define("fn/removePrivateProp", ["require", "exports", "fn/substr"], function (require, exports, substr_1) {
|
|
158
|
+
"use strict";
|
|
159
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
160
|
+
exports.removePrivateProp = void 0;
|
|
161
|
+
const removePrivateProp = function (obj, deep = false) {
|
|
162
|
+
let r = null;
|
|
163
|
+
if (typeof obj === 'object') {
|
|
164
|
+
r = {};
|
|
165
|
+
for (var n in obj) {
|
|
166
|
+
if ((0, substr_1.substr)(n, 0, 1).match(/^[A-z0-9]$/) && (n in obj)) {
|
|
167
|
+
if (deep && typeof obj[n] === 'object') {
|
|
168
|
+
r[n] = removePrivateProp(obj[n], true);
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
r[n] = obj[n];
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return r || false;
|
|
177
|
+
};
|
|
178
|
+
exports.removePrivateProp = removePrivateProp;
|
|
179
|
+
});
|
|
180
|
+
define("fn/iterate", ["require", "exports", "fn/removePrivateProp"], function (require, exports, removePrivateProp_1) {
|
|
181
|
+
"use strict";
|
|
182
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
183
|
+
exports.iterate = void 0;
|
|
184
|
+
const iterate = function (obj, fn, noPrivate = false, reverse = false) {
|
|
185
|
+
if (obj !== null && typeof obj === 'object') {
|
|
186
|
+
let iter = Object.keys(noPrivate ? (0, removePrivateProp_1.removePrivateProp)(obj) : obj);
|
|
187
|
+
if (reverse) {
|
|
188
|
+
iter.reverse();
|
|
189
|
+
}
|
|
190
|
+
for (let prop of iter) {
|
|
191
|
+
if (fn(obj[prop], prop) === false) {
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return obj;
|
|
197
|
+
};
|
|
198
|
+
exports.iterate = iterate;
|
|
199
|
+
});
|
|
200
|
+
define("fn/each", ["require", "exports", "fn/isNumber", "fn/isIterable", "fn/iterate"], function (require, exports, isNumber_1, isIterable_1, iterate_1) {
|
|
201
|
+
"use strict";
|
|
202
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
203
|
+
exports.each = void 0;
|
|
204
|
+
const each = function (arr, fn) {
|
|
205
|
+
if ((0, isNumber_1.isNumber)(arr) && arr > 0) {
|
|
206
|
+
for (let i = 0; i < arr; i++) {
|
|
207
|
+
if (fn(i, i) === false) {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
if ((0, isIterable_1.isIterable)(arr)) {
|
|
214
|
+
for (let i = 0; i < arr.length; i++) {
|
|
215
|
+
if (fn(arr[i], i) === false) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return arr;
|
|
220
|
+
}
|
|
221
|
+
return (0, iterate_1.iterate)(arr, fn);
|
|
222
|
+
};
|
|
223
|
+
exports.each = each;
|
|
224
|
+
});
|
|
225
|
+
define("fn/correctCase", ["require", "exports"], function (require, exports) {
|
|
226
|
+
"use strict";
|
|
227
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
228
|
+
exports.correctCase = void 0;
|
|
229
|
+
const correctCase = function (str) {
|
|
230
|
+
return str.replace(/[A-z]{1}/, (c) => c.toUpperCase());
|
|
231
|
+
};
|
|
232
|
+
exports.correctCase = correctCase;
|
|
233
|
+
});
|
|
234
|
+
define("fn/error", ["require", "exports", "fn/log"], function (require, exports, log_2) {
|
|
235
|
+
"use strict";
|
|
236
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
237
|
+
exports.error = void 0;
|
|
238
|
+
const error = function (errorMsg) {
|
|
239
|
+
if (arguments.length > 1) {
|
|
240
|
+
const args = [];
|
|
241
|
+
for (let i = 1; i < arguments.length; i++) {
|
|
242
|
+
args.push(arguments[i]);
|
|
243
|
+
}
|
|
244
|
+
args.unshift({
|
|
245
|
+
_bbn_console_mode: 'error',
|
|
246
|
+
_bbn_console_level: 1,
|
|
247
|
+
_bbn_console_style: 'color: #E64141; background: #F7E195; font-size: 14px',
|
|
248
|
+
});
|
|
249
|
+
log_2.log.apply(this, args);
|
|
250
|
+
}
|
|
251
|
+
throw new Error(errorMsg);
|
|
252
|
+
};
|
|
253
|
+
exports.error = error;
|
|
254
|
+
});
|
|
255
|
+
define("fn/checkType", ["require", "exports", "fn/isArray", "fn/each", "fn/isFunction", "fn/isString", "fn/correctCase", "fn/error", "fn/log"], function (require, exports, isArray_1, each_1, isFunction_2, isString_2, correctCase_1, error_1, log_3) {
|
|
256
|
+
"use strict";
|
|
257
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
258
|
+
exports.checkType = void 0;
|
|
259
|
+
const checkType = function (value, type, msg, ...logs) {
|
|
260
|
+
let ok = false;
|
|
261
|
+
if (!(0, isArray_1.isArray)(type)) {
|
|
262
|
+
type = [type];
|
|
263
|
+
}
|
|
264
|
+
const typesList = [];
|
|
265
|
+
(0, each_1.each)(type, (t) => {
|
|
266
|
+
if (t === String) {
|
|
267
|
+
t = 'string';
|
|
268
|
+
}
|
|
269
|
+
else if (t === Number) {
|
|
270
|
+
t = 'number';
|
|
271
|
+
}
|
|
272
|
+
else if (t === Array) {
|
|
273
|
+
t = 'array';
|
|
274
|
+
}
|
|
275
|
+
else if (t === Boolean) {
|
|
276
|
+
t = 'boolean';
|
|
277
|
+
}
|
|
278
|
+
else if (t === Object) {
|
|
279
|
+
t = 'object';
|
|
280
|
+
}
|
|
281
|
+
else if (t === Function) {
|
|
282
|
+
t = 'function';
|
|
283
|
+
}
|
|
284
|
+
if ((0, isFunction_2.isFunction)(t)) {
|
|
285
|
+
typesList.push(t.name || t.constructor?.name || t.toString());
|
|
286
|
+
if (value instanceof t) {
|
|
287
|
+
ok = true;
|
|
288
|
+
return false;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
else if (!(0, isString_2.isString)(t) || !(0, isFunction_2.isFunction)(bbn.fn['is' + (0, correctCase_1.correctCase)(t)])) {
|
|
292
|
+
(0, error_1.error)(`The type ${t} is not recognized`);
|
|
293
|
+
}
|
|
294
|
+
else if (bbn.fn['is' + (0, correctCase_1.correctCase)(t)](value)) {
|
|
295
|
+
ok = true;
|
|
296
|
+
return false;
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
typesList.push(t);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
if (!ok) {
|
|
303
|
+
(0, log_3.log)(['Value given', value, 'type', typeof value, 'expected', typesList.join(' or ')]);
|
|
304
|
+
if (logs.length) {
|
|
305
|
+
(0, log_3.log)(logs);
|
|
306
|
+
}
|
|
307
|
+
throw new Error((msg ? msg + ' - ' : '') + bbn._('The value should be a %s', typesList.join(' ' + bbn._('or a') + ' ')));
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
exports.checkType = checkType;
|
|
311
|
+
});
|
|
312
|
+
define("_", ["require", "exports", "fn/checkType"], function (require, exports, checkType_1) {
|
|
313
|
+
"use strict";
|
|
314
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
315
|
+
exports._ = void 0;
|
|
316
|
+
/**
|
|
317
|
+
* Translate an expression using the object bbn.lng
|
|
318
|
+
*
|
|
319
|
+
* @param {String} st
|
|
320
|
+
* @returns {String}
|
|
321
|
+
*/
|
|
322
|
+
const _ = (...args) => {
|
|
323
|
+
let st = args.shift();
|
|
324
|
+
let res = bbn.lng[st] || st;
|
|
325
|
+
if (args.length) {
|
|
326
|
+
let i = 0;
|
|
327
|
+
return res.replace(/\%([d|s])/g, (match, type) => {
|
|
328
|
+
let tmp = args[i++];
|
|
329
|
+
if (!tmp) {
|
|
330
|
+
tmp = type === 'd' ? 0 : '';
|
|
331
|
+
}
|
|
332
|
+
(0, checkType_1.checkType)(tmp, type === 'd' ? 'number' : 'string', bbn._("The value you gave did not correspond, check the loggg"));
|
|
333
|
+
return tmp;
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
return res;
|
|
337
|
+
};
|
|
338
|
+
exports._ = _;
|
|
339
|
+
});
|
|
340
|
+
define("$", ["require", "exports"], function (require, exports) {
|
|
341
|
+
"use strict";
|
|
342
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
343
|
+
exports.$ = void 0;
|
|
344
|
+
const $ = (selector, context) => {
|
|
345
|
+
if (context?.querySelectorAll) {
|
|
346
|
+
return context.querySelectorAll(selector);
|
|
347
|
+
}
|
|
348
|
+
return document.body.querySelectorAll(selector);
|
|
349
|
+
};
|
|
350
|
+
exports.$ = $;
|
|
351
|
+
});
|
|
352
|
+
define("lng", ["require", "exports"], function (require, exports) {
|
|
353
|
+
"use strict";
|
|
354
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
355
|
+
exports.lng = void 0;
|
|
356
|
+
const lng = {
|
|
357
|
+
/* User-defined languages elements */
|
|
358
|
+
select_unselect_all: "Select/Clear all",
|
|
359
|
+
select_all: "Select all",
|
|
360
|
+
search: 'Search',
|
|
361
|
+
loading: 'Loading...',
|
|
362
|
+
choose: 'Choose',
|
|
363
|
+
error: 'Error',
|
|
364
|
+
server_response: 'Server response',
|
|
365
|
+
reload: 'Reload',
|
|
366
|
+
errorText: 'Something went wrong',
|
|
367
|
+
closeAll: "Close all",
|
|
368
|
+
closeOthers: "Close others",
|
|
369
|
+
pin: "Pin",
|
|
370
|
+
arrange: "Arrange",
|
|
371
|
+
cancel: "Cancel",
|
|
372
|
+
unpin: "Unpin",
|
|
373
|
+
yes: "Yes",
|
|
374
|
+
no: "No",
|
|
375
|
+
unknown: "Unknown",
|
|
376
|
+
untitled: "Untitled",
|
|
377
|
+
confirmation: "Confirmation",
|
|
378
|
+
Today: "Today",
|
|
379
|
+
Tomorrow: "Tomorrow",
|
|
380
|
+
Yesterday: "Yesterday"
|
|
381
|
+
};
|
|
382
|
+
exports.lng = lng;
|
|
383
|
+
});
|
|
384
|
+
define("vars", ["require", "exports"], function (require, exports) {
|
|
385
|
+
"use strict";
|
|
386
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
387
|
+
exports.vars = void 0;
|
|
388
|
+
const vars = {
|
|
389
|
+
loggers: {
|
|
390
|
+
_num: 0
|
|
391
|
+
},
|
|
392
|
+
/* Usable datatypes through Ajax function */
|
|
393
|
+
datatypes: ['xml', 'html', 'script', 'json', 'jsonp', 'text', 'blob'],
|
|
394
|
+
/* The default value used by the function shorten */
|
|
395
|
+
shortenLen: 30,
|
|
396
|
+
/* Categorizing keyboard map */
|
|
397
|
+
keys: {
|
|
398
|
+
upDown: [33, 34, 35, 36, 38, 40],
|
|
399
|
+
leftRight: [36, 35, 37, 39],
|
|
400
|
+
dels: [8, 46, 45],
|
|
401
|
+
confirm: [13, 9],
|
|
402
|
+
alt: [20, 16, 17, 18, 144],
|
|
403
|
+
numbers: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105],
|
|
404
|
+
numsigns: [109, 110, 189, 190]
|
|
405
|
+
},
|
|
406
|
+
comparators: [">=", "<=", ">", "<", "="],
|
|
407
|
+
operators: ["+", "-", "/", "*"],
|
|
408
|
+
tags: ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'menu', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'slot', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr'],
|
|
409
|
+
colors: {
|
|
410
|
+
darkgrey: '#5a6a62',
|
|
411
|
+
black: '#000000',
|
|
412
|
+
anthracite: '#454545',
|
|
413
|
+
grey: '#d3d3d3',
|
|
414
|
+
white: '#ffffff',
|
|
415
|
+
beige: '#fdfdfd',
|
|
416
|
+
lightgrey: '#dcdcdc',
|
|
417
|
+
pastelblue: '#ddebf6',
|
|
418
|
+
cyan: '#00c8f8',
|
|
419
|
+
blue: '#6e9ecf',
|
|
420
|
+
indigo: '#3f51b5',
|
|
421
|
+
navy: '#354458',
|
|
422
|
+
webblue: '#2196f3',
|
|
423
|
+
teal: '#009688',
|
|
424
|
+
turquoise: '#1fda9a',
|
|
425
|
+
pastelgreen: '#e2efda',
|
|
426
|
+
palegreen: '#ccffcc',
|
|
427
|
+
green: '#00a03e',
|
|
428
|
+
olive: '#92b06a',
|
|
429
|
+
pastelorange: '#fff2cc',
|
|
430
|
+
yellow: '#fdf200',
|
|
431
|
+
orange: '#ff9900',
|
|
432
|
+
pink: '#eb65a0',
|
|
433
|
+
purple: '#a333c8',
|
|
434
|
+
red: '#db3340',
|
|
435
|
+
brown: '#8c6954'
|
|
436
|
+
},
|
|
437
|
+
reserved: ['abstract', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'continue', 'const', 'debugger', 'default', 'delete', 'do', 'double', 'else', 'enum', 'export', 'extends', 'false', 'final', 'finally', 'float', 'for', 'function', 'goto', 'if', 'implements', 'import', 'in', 'instanceof', 'int', 'interface', 'long', 'native', 'new', 'null', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'true', 'try', 'typeof', 'var', 'void', 'while', 'with'],
|
|
438
|
+
mockText: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
439
|
+
regexp: {
|
|
440
|
+
url: new RegExp('^(https?:\\/\\/)?' + // protocol
|
|
441
|
+
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|' + // domain name
|
|
442
|
+
'((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address
|
|
443
|
+
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path
|
|
444
|
+
'(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
|
|
445
|
+
'(\\#[-a-z\\d_]*)?$', 'i'),
|
|
446
|
+
ip: /^((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,
|
|
447
|
+
hostname: /^[a-z\d]([a-z\d-]{0,61}[a-z\d])?(\.[a-z\d]([a-z\d-]{0,61}[a-z\d])?)*$/i,
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
exports.vars = vars;
|
|
451
|
+
});
|
|
452
|
+
define("env", ["require", "exports"], function (require, exports) {
|
|
453
|
+
"use strict";
|
|
454
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
455
|
+
exports.env = void 0;
|
|
456
|
+
const env = {
|
|
457
|
+
siteTitle: window.document.title,
|
|
458
|
+
/* This variable should be set to true in debugging mode only */
|
|
459
|
+
logging: false,
|
|
460
|
+
/* Address of the CDN (where this file should be hosted) */
|
|
461
|
+
cdn: '',
|
|
462
|
+
/* Default language */
|
|
463
|
+
lang: 'en',
|
|
464
|
+
host: window.location.protocol + '//' + window.location.hostname,
|
|
465
|
+
url: window.location.href,
|
|
466
|
+
old_path: null,
|
|
467
|
+
/* True when non asynchronous Ajax loads */
|
|
468
|
+
loading: false,
|
|
469
|
+
/* Window width */
|
|
470
|
+
width: 0,
|
|
471
|
+
/* Window height */
|
|
472
|
+
height: 0,
|
|
473
|
+
/* Element currently focused (Element object) */
|
|
474
|
+
focused: false,
|
|
475
|
+
/* Last time user has been active */
|
|
476
|
+
last_focus: (new Date()).getTime(),
|
|
477
|
+
/* Sleep mode (tab or window unfocused */
|
|
478
|
+
sleep: false,
|
|
479
|
+
/**
|
|
480
|
+
* @var bbn.env.loaders Object where the props are MD5 of data and url while the values are the requests,
|
|
481
|
+
* for preventing the same call to be made at the same time
|
|
482
|
+
**/
|
|
483
|
+
loaders: [],
|
|
484
|
+
loadersHistory: [],
|
|
485
|
+
maxLoadersHistory: 20,
|
|
486
|
+
/* bbn.env.params is an array of each element of the path */
|
|
487
|
+
resizeTimer: false,
|
|
488
|
+
hashChanged: 0,
|
|
489
|
+
params: [],
|
|
490
|
+
isInit: false,
|
|
491
|
+
isFocused: false,
|
|
492
|
+
timeoff: Math.round((new Date()).getTime() / 1000),
|
|
493
|
+
loggingLevel: 5,
|
|
494
|
+
ignoreUnload: false,
|
|
495
|
+
historyDisabled: false,
|
|
496
|
+
nav: 'ajax'
|
|
497
|
+
};
|
|
498
|
+
exports.env = env;
|
|
499
|
+
});
|
|
500
|
+
define("fn/_addLoader", ["require", "exports", "fn/substr"], function (require, exports, substr_2) {
|
|
117
501
|
"use strict";
|
|
118
502
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
119
503
|
exports._addLoader = void 0;
|
|
@@ -121,7 +505,7 @@
|
|
|
121
505
|
/** @var {Number} tst Current timestamp */
|
|
122
506
|
let tst = (new Date()).getTime();
|
|
123
507
|
/** @var {String} url The original URL (part of requestId before : and md5) */
|
|
124
|
-
let url = (0,
|
|
508
|
+
let url = (0, substr_2.substr)(requestId, 0, requestId.length - 33);
|
|
125
509
|
/** @var {Object} loader The loader object */
|
|
126
510
|
let loader = {
|
|
127
511
|
key: requestId,
|
|
@@ -170,17 +554,17 @@
|
|
|
170
554
|
};
|
|
171
555
|
exports.getProperty = getProperty;
|
|
172
556
|
});
|
|
173
|
-
define("fn/removeAccents", ["require", "exports", "fn/isString", "fn/log"], function (require, exports,
|
|
557
|
+
define("fn/removeAccents", ["require", "exports", "fn/isString", "fn/log"], function (require, exports, isString_3, log_4) {
|
|
174
558
|
"use strict";
|
|
175
559
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176
560
|
exports.removeAccents = void 0;
|
|
177
561
|
const removeAccents = function (st) {
|
|
178
|
-
if (!(0,
|
|
562
|
+
if (!(0, isString_3.isString)(st)) {
|
|
179
563
|
if (st.toString) {
|
|
180
564
|
st = st.toString();
|
|
181
565
|
}
|
|
182
566
|
else {
|
|
183
|
-
(0,
|
|
567
|
+
(0, log_4.log)(st);
|
|
184
568
|
throw new Error(bbn._('removeAccent expects a string'));
|
|
185
569
|
}
|
|
186
570
|
}
|
|
@@ -204,13 +588,13 @@
|
|
|
204
588
|
};
|
|
205
589
|
exports.isDate = isDate;
|
|
206
590
|
});
|
|
207
|
-
define("fn/_compareValues", ["require", "exports", "fn/getProperty", "fn/isString", "fn/removeAccents", "fn/isDate"], function (require, exports, getProperty_1,
|
|
591
|
+
define("fn/_compareValues", ["require", "exports", "fn/getProperty", "fn/isString", "fn/removeAccents", "fn/isDate"], function (require, exports, getProperty_1, isString_4, removeAccents_1, isDate_1) {
|
|
208
592
|
"use strict";
|
|
209
593
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
210
594
|
exports._compareValues = void 0;
|
|
211
595
|
const _compareValues = function (a, b, prop, dir = 'asc') {
|
|
212
596
|
let va = (0, getProperty_1.getProperty)(a, prop), vb = (0, getProperty_1.getProperty)(b, prop), ta = (typeof (va)).toLowerCase(), tb = (typeof (vb)).toLowerCase();
|
|
213
|
-
if ((dir !== 'asc') && (0,
|
|
597
|
+
if ((dir !== 'asc') && (0, isString_4.isString)(dir) && (dir.toLowerCase() === 'desc')) {
|
|
214
598
|
dir = 'desc';
|
|
215
599
|
}
|
|
216
600
|
if (ta !== tb) {
|
|
@@ -245,115 +629,6 @@
|
|
|
245
629
|
};
|
|
246
630
|
exports._compareValues = _compareValues;
|
|
247
631
|
});
|
|
248
|
-
define("fn/isIterable", ["require", "exports"], function (require, exports) {
|
|
249
|
-
"use strict";
|
|
250
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
251
|
-
exports.isIterable = void 0;
|
|
252
|
-
const isIterable = function (v) {
|
|
253
|
-
return v && typeof v === 'object' && Symbol.iterator in Object(v);
|
|
254
|
-
};
|
|
255
|
-
exports.isIterable = isIterable;
|
|
256
|
-
});
|
|
257
|
-
define("fn/isArray", ["require", "exports"], function (require, exports) {
|
|
258
|
-
"use strict";
|
|
259
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
260
|
-
exports.isArray = void 0;
|
|
261
|
-
const isArray = function (...args) {
|
|
262
|
-
if (!args.length)
|
|
263
|
-
return false;
|
|
264
|
-
for (let a of args) {
|
|
265
|
-
if (!Array.isArray(a)) {
|
|
266
|
-
return false;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
return true;
|
|
270
|
-
};
|
|
271
|
-
exports.isArray = isArray;
|
|
272
|
-
});
|
|
273
|
-
define("fn/isNumber", ["require", "exports"], function (require, exports) {
|
|
274
|
-
"use strict";
|
|
275
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
276
|
-
exports.isNumber = void 0;
|
|
277
|
-
const isNumber = function (...args) {
|
|
278
|
-
if (!args.length)
|
|
279
|
-
return false;
|
|
280
|
-
for (let a of args) {
|
|
281
|
-
if (['boolean', 'object', 'symbol'].includes(typeof a) || a === '' || isNaN(a)) {
|
|
282
|
-
return false;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
return true;
|
|
286
|
-
};
|
|
287
|
-
exports.isNumber = isNumber;
|
|
288
|
-
});
|
|
289
|
-
define("fn/removePrivateProp", ["require", "exports", "fn/substr"], function (require, exports, substr_2) {
|
|
290
|
-
"use strict";
|
|
291
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
292
|
-
exports.removePrivateProp = void 0;
|
|
293
|
-
const removePrivateProp = function (obj, deep = false) {
|
|
294
|
-
let r = null;
|
|
295
|
-
if (typeof obj === 'object') {
|
|
296
|
-
r = {};
|
|
297
|
-
for (var n in obj) {
|
|
298
|
-
if ((0, substr_2.substr)(n, 0, 1).match(/^[A-z0-9]$/) && (n in obj)) {
|
|
299
|
-
if (deep && typeof obj[n] === 'object') {
|
|
300
|
-
r[n] = removePrivateProp(obj[n], true);
|
|
301
|
-
}
|
|
302
|
-
else {
|
|
303
|
-
r[n] = obj[n];
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
return r || false;
|
|
309
|
-
};
|
|
310
|
-
exports.removePrivateProp = removePrivateProp;
|
|
311
|
-
});
|
|
312
|
-
define("fn/iterate", ["require", "exports", "fn/removePrivateProp"], function (require, exports, removePrivateProp_1) {
|
|
313
|
-
"use strict";
|
|
314
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
315
|
-
exports.iterate = void 0;
|
|
316
|
-
const iterate = function (obj, fn, noPrivate = false, reverse = false) {
|
|
317
|
-
if (obj !== null && typeof obj === 'object') {
|
|
318
|
-
let iter = Object.keys(noPrivate ? (0, removePrivateProp_1.removePrivateProp)(obj) : obj);
|
|
319
|
-
if (reverse) {
|
|
320
|
-
iter.reverse();
|
|
321
|
-
}
|
|
322
|
-
for (let prop of iter) {
|
|
323
|
-
if (fn(obj[prop], prop) === false) {
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
return obj;
|
|
329
|
-
};
|
|
330
|
-
exports.iterate = iterate;
|
|
331
|
-
});
|
|
332
|
-
define("fn/each", ["require", "exports", "fn/isNumber", "fn/isIterable", "fn/iterate"], function (require, exports, isNumber_1, isIterable_1, iterate_1) {
|
|
333
|
-
"use strict";
|
|
334
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
335
|
-
exports.each = void 0;
|
|
336
|
-
const each = function (arr, fn) {
|
|
337
|
-
if ((0, isNumber_1.isNumber)(arr) && arr > 0) {
|
|
338
|
-
for (let i = 0; i < arr; i++) {
|
|
339
|
-
if (fn(i, i) === false) {
|
|
340
|
-
return;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
return;
|
|
344
|
-
}
|
|
345
|
-
if ((0, isIterable_1.isIterable)(arr)) {
|
|
346
|
-
for (let i = 0; i < arr.length; i++) {
|
|
347
|
-
if (fn(arr[i], i) === false) {
|
|
348
|
-
return;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
return arr;
|
|
352
|
-
}
|
|
353
|
-
return (0, iterate_1.iterate)(arr, fn);
|
|
354
|
-
};
|
|
355
|
-
exports.each = each;
|
|
356
|
-
});
|
|
357
632
|
define("fn/numProperties", ["require", "exports"], function (require, exports) {
|
|
358
633
|
"use strict";
|
|
359
634
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -366,7 +641,7 @@
|
|
|
366
641
|
};
|
|
367
642
|
exports.numProperties = numProperties;
|
|
368
643
|
});
|
|
369
|
-
define("fn/isEmpty", ["require", "exports", "fn/isArray", "fn/numProperties"], function (require, exports,
|
|
644
|
+
define("fn/isEmpty", ["require", "exports", "fn/isArray", "fn/numProperties"], function (require, exports, isArray_2, numProperties_1) {
|
|
370
645
|
"use strict";
|
|
371
646
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
372
647
|
exports.isEmpty = void 0;
|
|
@@ -374,7 +649,7 @@
|
|
|
374
649
|
if (!obj) {
|
|
375
650
|
return true;
|
|
376
651
|
}
|
|
377
|
-
if ((0,
|
|
652
|
+
if ((0, isArray_2.isArray)(obj)) {
|
|
378
653
|
return obj.length ? false : true;
|
|
379
654
|
}
|
|
380
655
|
if (typeof obj === 'object') {
|
|
@@ -456,7 +731,7 @@
|
|
|
456
731
|
};
|
|
457
732
|
exports.isCp = isCp;
|
|
458
733
|
});
|
|
459
|
-
define("fn/circularReplacer", ["require", "exports", "fn/isDom", "fn/isCp", "fn/log"], function (require, exports, isDom_2, isCp_1,
|
|
734
|
+
define("fn/circularReplacer", ["require", "exports", "fn/isDom", "fn/isCp", "fn/log"], function (require, exports, isDom_2, isCp_1, log_5) {
|
|
460
735
|
"use strict";
|
|
461
736
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
462
737
|
exports.circularReplacer = void 0;
|
|
@@ -478,7 +753,7 @@
|
|
|
478
753
|
}
|
|
479
754
|
}
|
|
480
755
|
else if ((0, isCp_1.isCp)(value)) {
|
|
481
|
-
(0,
|
|
756
|
+
(0, log_5.log)('IS CP');
|
|
482
757
|
value = '__BBN_CP__' + value.$options.name + '/' + value.$cid;
|
|
483
758
|
}
|
|
484
759
|
else {
|
|
@@ -532,7 +807,7 @@
|
|
|
532
807
|
};
|
|
533
808
|
exports.simpleHash = simpleHash;
|
|
534
809
|
});
|
|
535
|
-
define("fn/hash", ["require", "exports", "fn/log", "fn/isDom", "fn/isCp", "fn/circularReplacer", "fn/simpleHash"], function (require, exports,
|
|
810
|
+
define("fn/hash", ["require", "exports", "fn/log", "fn/isDom", "fn/isCp", "fn/circularReplacer", "fn/simpleHash"], function (require, exports, log_6, isDom_3, isCp_2, circularReplacer_1, simpleHash_1) {
|
|
536
811
|
"use strict";
|
|
537
812
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
538
813
|
exports.hash = void 0;
|
|
@@ -551,7 +826,7 @@
|
|
|
551
826
|
}
|
|
552
827
|
}
|
|
553
828
|
else if ((0, isCp_2.isCp)(value)) {
|
|
554
|
-
(0,
|
|
829
|
+
(0, log_6.log)('IS CP');
|
|
555
830
|
st += '__BBN_CP__' + value.$options.name + '/' + value.$cid;
|
|
556
831
|
}
|
|
557
832
|
else {
|
|
@@ -568,7 +843,7 @@
|
|
|
568
843
|
};
|
|
569
844
|
exports.hash = hash;
|
|
570
845
|
});
|
|
571
|
-
define("fn/isSame", ["require", "exports", "fn/hash", "fn/each"], function (require, exports, hash_1,
|
|
846
|
+
define("fn/isSame", ["require", "exports", "fn/hash", "fn/each"], function (require, exports, hash_1, each_2) {
|
|
572
847
|
"use strict";
|
|
573
848
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
574
849
|
exports.isSame = void 0;
|
|
@@ -592,7 +867,7 @@
|
|
|
592
867
|
}
|
|
593
868
|
done.push(obj1);
|
|
594
869
|
}
|
|
595
|
-
(0,
|
|
870
|
+
(0, each_2.each)(tmp1, (a) => {
|
|
596
871
|
if (!isSame(obj1[a], obj2[a])) {
|
|
597
872
|
ok = false;
|
|
598
873
|
return false;
|
|
@@ -703,18 +978,18 @@
|
|
|
703
978
|
};
|
|
704
979
|
exports.compare = compare;
|
|
705
980
|
});
|
|
706
|
-
define("fn/compareConditions", ["require", "exports", "fn/isArray", "fn/each", "fn/compare", "fn/getProperty"], function (require, exports,
|
|
981
|
+
define("fn/compareConditions", ["require", "exports", "fn/isArray", "fn/each", "fn/compare", "fn/getProperty"], function (require, exports, isArray_3, each_3, compare_1, getProperty_2) {
|
|
707
982
|
"use strict";
|
|
708
983
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
709
984
|
exports.compareConditions = void 0;
|
|
710
985
|
const compareConditions = function (data, filter) {
|
|
711
|
-
if (!filter.conditions || !filter.logic || !(0,
|
|
986
|
+
if (!filter.conditions || !filter.logic || !(0, isArray_3.isArray)(filter.conditions)) {
|
|
712
987
|
throw new Error('Error in compareConditions: the filter should an abject with conditions and logic properties and conditions should be an array of objects');
|
|
713
988
|
}
|
|
714
989
|
let ok = filter.logic === 'AND' ? true : false;
|
|
715
|
-
(0,
|
|
990
|
+
(0, each_3.each)(filter.conditions, (a) => {
|
|
716
991
|
let comparator;
|
|
717
|
-
if (a.conditions && (0,
|
|
992
|
+
if (a.conditions && (0, isArray_3.isArray)(a.conditions)) {
|
|
718
993
|
comparator = compareConditions(data, a);
|
|
719
994
|
}
|
|
720
995
|
else {
|
|
@@ -723,7 +998,7 @@
|
|
|
723
998
|
let bits = a.field.split('.');
|
|
724
999
|
let prop = bits.pop();
|
|
725
1000
|
if (bits.length) {
|
|
726
|
-
(0,
|
|
1001
|
+
(0, each_3.each)(bits, (b) => (data = data[b]));
|
|
727
1002
|
}
|
|
728
1003
|
// Case where both are undefined: value and prop which doesn't exist; they are not the same!
|
|
729
1004
|
if ((0, getProperty_2.getProperty)(data, prop) === undefined && a.value !== undefined) {
|
|
@@ -746,7 +1021,7 @@
|
|
|
746
1021
|
};
|
|
747
1022
|
exports.compareConditions = compareConditions;
|
|
748
1023
|
});
|
|
749
|
-
define("fn/filterToConditions", ["require", "exports", "fn/isObject", "fn/isArray", "fn/iterate"], function (require, exports, isObject_2,
|
|
1024
|
+
define("fn/filterToConditions", ["require", "exports", "fn/isObject", "fn/isArray", "fn/iterate"], function (require, exports, isObject_2, isArray_4, iterate_2) {
|
|
750
1025
|
"use strict";
|
|
751
1026
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
752
1027
|
exports.filterToConditions = void 0;
|
|
@@ -754,7 +1029,7 @@
|
|
|
754
1029
|
if (!(0, isObject_2.isObject)(filter)) {
|
|
755
1030
|
throw new Error('Error in filterToCondition: filter must be an object');
|
|
756
1031
|
}
|
|
757
|
-
if (!filter.conditions || !(0,
|
|
1032
|
+
if (!filter.conditions || !(0, isArray_4.isArray)(filter.conditions)) {
|
|
758
1033
|
let tmp = [];
|
|
759
1034
|
(0, iterate_2.iterate)(filter, (a, n) => {
|
|
760
1035
|
if ((0, isObject_2.isObject)(a) && typeof a.conditions === 'object') {
|
|
@@ -928,12 +1203,12 @@
|
|
|
928
1203
|
};
|
|
929
1204
|
exports.abort = abort;
|
|
930
1205
|
});
|
|
931
|
-
define("fn/filter", ["require", "exports", "fn/isArray", "fn/each", "fn/filterToConditions", "fn/compareConditions"], function (require, exports,
|
|
1206
|
+
define("fn/filter", ["require", "exports", "fn/isArray", "fn/each", "fn/filterToConditions", "fn/compareConditions"], function (require, exports, isArray_5, each_4, filterToConditions_2, compareConditions_2) {
|
|
932
1207
|
"use strict";
|
|
933
1208
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
934
1209
|
exports.filter = void 0;
|
|
935
1210
|
const filter = function (arr, prop, val = null, operator = '=') {
|
|
936
|
-
if (!(0,
|
|
1211
|
+
if (!(0, isArray_5.isArray)(arr)) {
|
|
937
1212
|
bbn.fn.log("NOT ARRAY", arr);
|
|
938
1213
|
throw new Error('Error in filter: The first argument must be an array');
|
|
939
1214
|
}
|
|
@@ -955,7 +1230,7 @@
|
|
|
955
1230
|
throw new Error('Search function error: The prop argument should be a string or an object');
|
|
956
1231
|
}
|
|
957
1232
|
if (typeof (prop) === 'function') {
|
|
958
|
-
(0,
|
|
1233
|
+
(0, each_4.each)(arr, (a, i) => {
|
|
959
1234
|
if (prop(a, i)) {
|
|
960
1235
|
res.push(a);
|
|
961
1236
|
}
|
|
@@ -964,7 +1239,7 @@
|
|
|
964
1239
|
else {
|
|
965
1240
|
cfg = (0, filterToConditions_2.filterToConditions)(cfg, operator);
|
|
966
1241
|
if (cfg.conditions && cfg.logic) {
|
|
967
|
-
(0,
|
|
1242
|
+
(0, each_4.each)(arr, (a) => {
|
|
968
1243
|
if ((0, compareConditions_2.compareConditions)(a, cfg)) {
|
|
969
1244
|
res.push(a);
|
|
970
1245
|
}
|
|
@@ -976,12 +1251,12 @@
|
|
|
976
1251
|
};
|
|
977
1252
|
exports.filter = filter;
|
|
978
1253
|
});
|
|
979
|
-
define("fn/abortURL", ["require", "exports", "fn/each", "fn/filter"], function (require, exports,
|
|
1254
|
+
define("fn/abortURL", ["require", "exports", "fn/each", "fn/filter"], function (require, exports, each_5, filter_1) {
|
|
980
1255
|
"use strict";
|
|
981
1256
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
982
1257
|
exports.abortURL = void 0;
|
|
983
1258
|
const abortURL = function (url) {
|
|
984
|
-
(0,
|
|
1259
|
+
(0, each_5.each)((0, filter_1.filter)(bbn.env.loaders, { url: url }), (a) => {
|
|
985
1260
|
if (a && a.source) {
|
|
986
1261
|
a.source.cancel('Operation canceled by the user.');
|
|
987
1262
|
}
|
|
@@ -1093,16 +1368,16 @@
|
|
|
1093
1368
|
};
|
|
1094
1369
|
exports.addStyle = addStyle;
|
|
1095
1370
|
});
|
|
1096
|
-
define("fn/adjustSize", ["require", "exports", "fn/each"], function (require, exports,
|
|
1371
|
+
define("fn/adjustSize", ["require", "exports", "fn/each"], function (require, exports, each_6) {
|
|
1097
1372
|
"use strict";
|
|
1098
1373
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1099
1374
|
exports.adjustSize = void 0;
|
|
1100
1375
|
const adjustSize = function (type, eles) {
|
|
1101
1376
|
let max = 0, idx;
|
|
1102
|
-
(0,
|
|
1377
|
+
(0, each_6.each)(eles, (el) => {
|
|
1103
1378
|
el.style[type] = 'auto';
|
|
1104
1379
|
});
|
|
1105
|
-
(0,
|
|
1380
|
+
(0, each_6.each)(eles, (el, i) => {
|
|
1106
1381
|
let rect = el.getBoundingClientRect(), s = rect[type] % 1 ? rect[type] - (rect[type] % 1) + 1 : rect[type];
|
|
1107
1382
|
//s = rect[type];
|
|
1108
1383
|
if (s > max) {
|
|
@@ -1110,7 +1385,7 @@
|
|
|
1110
1385
|
idx = i;
|
|
1111
1386
|
}
|
|
1112
1387
|
});
|
|
1113
|
-
(0,
|
|
1388
|
+
(0, each_6.each)(eles, (el, i) => {
|
|
1114
1389
|
if (max) {
|
|
1115
1390
|
el.style[type] = max + 'px';
|
|
1116
1391
|
}
|
|
@@ -1305,7 +1580,7 @@
|
|
|
1305
1580
|
};
|
|
1306
1581
|
exports.getRequestId = getRequestId;
|
|
1307
1582
|
});
|
|
1308
|
-
define("fn/extend", ["require", "exports", "fn/iterate", "fn/isArray", "fn/each", "fn/isObject"], function (require, exports, iterate_7,
|
|
1583
|
+
define("fn/extend", ["require", "exports", "fn/iterate", "fn/isArray", "fn/each", "fn/isObject"], function (require, exports, iterate_7, isArray_6, each_7, isObject_7) {
|
|
1309
1584
|
"use strict";
|
|
1310
1585
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1311
1586
|
exports.extend = void 0;
|
|
@@ -1333,13 +1608,13 @@
|
|
|
1333
1608
|
for (let i = 1; i < args.length; i++) {
|
|
1334
1609
|
(0, iterate_7.iterate)(args[i], (a, key) => {
|
|
1335
1610
|
if (deep) {
|
|
1336
|
-
if ((0,
|
|
1337
|
-
out[key] = (0,
|
|
1338
|
-
(0,
|
|
1611
|
+
if ((0, isArray_6.isArray)(a)) {
|
|
1612
|
+
out[key] = (0, isArray_6.isArray)(out[key]) ? out[key] : [];
|
|
1613
|
+
(0, each_7.each)(a, (b, i) => {
|
|
1339
1614
|
if (b && typeof b === 'object') {
|
|
1340
1615
|
let tmp = out[key][i];
|
|
1341
|
-
if ((0,
|
|
1342
|
-
if (!(0,
|
|
1616
|
+
if ((0, isArray_6.isArray)(b)) {
|
|
1617
|
+
if (!(0, isArray_6.isArray)(tmp)) {
|
|
1343
1618
|
tmp = [];
|
|
1344
1619
|
}
|
|
1345
1620
|
}
|
|
@@ -1395,12 +1670,12 @@
|
|
|
1395
1670
|
};
|
|
1396
1671
|
exports.defaultAjaxErrorFunction = defaultAjaxErrorFunction;
|
|
1397
1672
|
});
|
|
1398
|
-
define("fn/defaultAjaxAbortFunction", ["require", "exports", "fn/log"], function (require, exports,
|
|
1673
|
+
define("fn/defaultAjaxAbortFunction", ["require", "exports", "fn/log"], function (require, exports, log_7) {
|
|
1399
1674
|
"use strict";
|
|
1400
1675
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1401
1676
|
exports.defaultAjaxAbortFunction = void 0;
|
|
1402
1677
|
const defaultAjaxAbortFunction = function (message, url = '') {
|
|
1403
|
-
(0,
|
|
1678
|
+
(0, log_7.log)(message);
|
|
1404
1679
|
};
|
|
1405
1680
|
exports.defaultAjaxAbortFunction = defaultAjaxAbortFunction;
|
|
1406
1681
|
});
|
|
@@ -1413,7 +1688,7 @@
|
|
|
1413
1688
|
};
|
|
1414
1689
|
exports.defaultStartLoadingFunction = defaultStartLoadingFunction;
|
|
1415
1690
|
});
|
|
1416
|
-
define("fn/ajax", ["require", "exports", "fn/isObject", "fn/replaceAll", "fn/getRequestId", "fn/getLoader", "fn/extend", "fn/numProperties", "fn/_deleteLoader", "fn/defaultEndLoadingFunction", "fn/isFunction", "fn/defaultAjaxErrorFunction", "fn/defaultAjaxAbortFunction", "fn/_addLoader", "fn/defaultStartLoadingFunction"], function (require, exports, isObject_8, replaceAll_1, getRequestId_1, getLoader_2, extend_1, numProperties_4, _deleteLoader_1, defaultEndLoadingFunction_1,
|
|
1691
|
+
define("fn/ajax", ["require", "exports", "fn/isObject", "fn/replaceAll", "fn/getRequestId", "fn/getLoader", "fn/extend", "fn/numProperties", "fn/_deleteLoader", "fn/defaultEndLoadingFunction", "fn/isFunction", "fn/defaultAjaxErrorFunction", "fn/defaultAjaxAbortFunction", "fn/_addLoader", "fn/defaultStartLoadingFunction"], function (require, exports, isObject_8, replaceAll_1, getRequestId_1, getLoader_2, extend_1, numProperties_4, _deleteLoader_1, defaultEndLoadingFunction_1, isFunction_3, defaultAjaxErrorFunction_1, defaultAjaxAbortFunction_1, _addLoader_1, defaultStartLoadingFunction_1) {
|
|
1417
1692
|
"use strict";
|
|
1418
1693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1419
1694
|
exports.ajax = void 0;
|
|
@@ -1480,7 +1755,7 @@
|
|
|
1480
1755
|
(0, defaultEndLoadingFunction_1.defaultEndLoadingFunction)(url, tst, data, res);
|
|
1481
1756
|
switch (res.status) {
|
|
1482
1757
|
case 200:
|
|
1483
|
-
if ((0,
|
|
1758
|
+
if ((0, isFunction_3.isFunction)(success)) {
|
|
1484
1759
|
success(res.data, res.headers);
|
|
1485
1760
|
}
|
|
1486
1761
|
break;
|
|
@@ -1495,7 +1770,7 @@
|
|
|
1495
1770
|
(0, defaultEndLoadingFunction_1.defaultEndLoadingFunction)(url, tst, data, err);
|
|
1496
1771
|
if (isAbort) {
|
|
1497
1772
|
let ok = 1;
|
|
1498
|
-
if ((0,
|
|
1773
|
+
if ((0, isFunction_3.isFunction)(abort)) {
|
|
1499
1774
|
ok = abort(err.message, url);
|
|
1500
1775
|
}
|
|
1501
1776
|
if (ok) {
|
|
@@ -1504,7 +1779,7 @@
|
|
|
1504
1779
|
}
|
|
1505
1780
|
else {
|
|
1506
1781
|
let ok = 1;
|
|
1507
|
-
if ((0,
|
|
1782
|
+
if ((0, isFunction_3.isFunction)(failure)) {
|
|
1508
1783
|
ok = failure(err.request, err);
|
|
1509
1784
|
}
|
|
1510
1785
|
if (ok) {
|
|
@@ -1698,13 +1973,13 @@
|
|
|
1698
1973
|
};
|
|
1699
1974
|
exports.arrayBuffer2String = arrayBuffer2String;
|
|
1700
1975
|
});
|
|
1701
|
-
define("fn/arrayFromProp", ["require", "exports", "fn/each", "fn/getProperty"], function (require, exports,
|
|
1976
|
+
define("fn/arrayFromProp", ["require", "exports", "fn/each", "fn/getProperty"], function (require, exports, each_8, getProperty_3) {
|
|
1702
1977
|
"use strict";
|
|
1703
1978
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1704
1979
|
exports.arrayFromProp = void 0;
|
|
1705
1980
|
const arrayFromProp = function (arr, prop) {
|
|
1706
1981
|
let r = [];
|
|
1707
|
-
(0,
|
|
1982
|
+
(0, each_8.each)(arr, (a, i) => {
|
|
1708
1983
|
r.push((0, getProperty_3.getProperty)(a, prop));
|
|
1709
1984
|
});
|
|
1710
1985
|
return r;
|
|
@@ -1728,12 +2003,12 @@
|
|
|
1728
2003
|
};
|
|
1729
2004
|
exports.autoExtend = autoExtend;
|
|
1730
2005
|
});
|
|
1731
|
-
define("fn/baseName", ["require", "exports", "fn/isString", "fn/substr"], function (require, exports,
|
|
2006
|
+
define("fn/baseName", ["require", "exports", "fn/isString", "fn/substr"], function (require, exports, isString_5, substr_3) {
|
|
1732
2007
|
"use strict";
|
|
1733
2008
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1734
2009
|
exports.baseName = void 0;
|
|
1735
2010
|
const baseName = function (path, suffix) {
|
|
1736
|
-
if (path && (0,
|
|
2011
|
+
if (path && (0, isString_5.isString)(path)) {
|
|
1737
2012
|
let bits = path.split('/');
|
|
1738
2013
|
let res = bits.pop();
|
|
1739
2014
|
if (!suffix) {
|
|
@@ -1787,14 +2062,14 @@
|
|
|
1787
2062
|
};
|
|
1788
2063
|
exports.date = date;
|
|
1789
2064
|
});
|
|
1790
|
-
define("fn/fdatetime", ["require", "exports", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, date_1, isDate_3,
|
|
2065
|
+
define("fn/fdatetime", ["require", "exports", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, date_1, isDate_3, isString_6) {
|
|
1791
2066
|
"use strict";
|
|
1792
2067
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1793
2068
|
exports.fdatetime = void 0;
|
|
1794
2069
|
const fdatetime = function (d, wrong_result) {
|
|
1795
2070
|
let r = (0, date_1.date)(d);
|
|
1796
2071
|
if (!(0, isDate_3.isDate)(r)) {
|
|
1797
|
-
return wrong_result && (0,
|
|
2072
|
+
return wrong_result && (0, isString_6.isString)(wrong_result) ? wrong_result : '';
|
|
1798
2073
|
}
|
|
1799
2074
|
if (undefined !== dayjs) {
|
|
1800
2075
|
//return dayjs(r).format('lll');
|
|
@@ -1812,7 +2087,7 @@
|
|
|
1812
2087
|
};
|
|
1813
2088
|
exports.fdatetime = fdatetime;
|
|
1814
2089
|
});
|
|
1815
|
-
define("fn/fdate", ["require", "exports", "fn/fdatetime", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, fdatetime_1, date_2, isDate_4,
|
|
2090
|
+
define("fn/fdate", ["require", "exports", "fn/fdatetime", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, fdatetime_1, date_2, isDate_4, isString_7) {
|
|
1816
2091
|
"use strict";
|
|
1817
2092
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1818
2093
|
exports.fdate = void 0;
|
|
@@ -1823,7 +2098,7 @@
|
|
|
1823
2098
|
}
|
|
1824
2099
|
let r = (0, date_2.date)(d);
|
|
1825
2100
|
if (!(0, isDate_4.isDate)(r)) {
|
|
1826
|
-
return wrong_result && (0,
|
|
2101
|
+
return wrong_result && (0, isString_7.isString)(wrong_result) ? wrong_result : '';
|
|
1827
2102
|
}
|
|
1828
2103
|
if (undefined !== dayjs) {
|
|
1829
2104
|
return dayjs(r).format('L');
|
|
@@ -1832,7 +2107,7 @@
|
|
|
1832
2107
|
};
|
|
1833
2108
|
exports.fdate = fdate;
|
|
1834
2109
|
});
|
|
1835
|
-
define("fn/calendar", ["require", "exports", "fn/fdate", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, fdate_1, date_3, isDate_5,
|
|
2110
|
+
define("fn/calendar", ["require", "exports", "fn/fdate", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, fdate_1, date_3, isDate_5, isString_8) {
|
|
1836
2111
|
"use strict";
|
|
1837
2112
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1838
2113
|
exports.calendar = void 0;
|
|
@@ -1843,7 +2118,7 @@
|
|
|
1843
2118
|
}
|
|
1844
2119
|
let r = (0, date_3.date)(d);
|
|
1845
2120
|
if (!(0, isDate_5.isDate)(r)) {
|
|
1846
|
-
return wrong_result && (0,
|
|
2121
|
+
return wrong_result && (0, isString_8.isString)(wrong_result) ? wrong_result : '';
|
|
1847
2122
|
}
|
|
1848
2123
|
return dayjs(r).calendar(null, {
|
|
1849
2124
|
sameDay: '[' + bbn._('Today') + ']',
|
|
@@ -1856,27 +2131,6 @@
|
|
|
1856
2131
|
};
|
|
1857
2132
|
exports.calendar = calendar;
|
|
1858
2133
|
});
|
|
1859
|
-
define("fn/error", ["require", "exports", "fn/log"], function (require, exports, log_6) {
|
|
1860
|
-
"use strict";
|
|
1861
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1862
|
-
exports.error = void 0;
|
|
1863
|
-
const error = function (errorMsg) {
|
|
1864
|
-
if (arguments.length > 1) {
|
|
1865
|
-
const args = [];
|
|
1866
|
-
for (let i = 1; i < arguments.length; i++) {
|
|
1867
|
-
args.push(arguments[i]);
|
|
1868
|
-
}
|
|
1869
|
-
args.unshift({
|
|
1870
|
-
_bbn_console_mode: 'error',
|
|
1871
|
-
_bbn_console_level: 1,
|
|
1872
|
-
_bbn_console_style: 'color: #E64141; background: #F7E195; font-size: 14px',
|
|
1873
|
-
});
|
|
1874
|
-
log_6.log.apply(this, args);
|
|
1875
|
-
}
|
|
1876
|
-
throw new Error(errorMsg);
|
|
1877
|
-
};
|
|
1878
|
-
exports.error = error;
|
|
1879
|
-
});
|
|
1880
2134
|
define("fn/defaultLinkFunction", ["require", "exports"], function (require, exports) {
|
|
1881
2135
|
"use strict";
|
|
1882
2136
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1905,7 +2159,7 @@
|
|
|
1905
2159
|
};
|
|
1906
2160
|
exports.defaultAlertFunction = defaultAlertFunction;
|
|
1907
2161
|
});
|
|
1908
|
-
define("fn/callback", ["require", "exports", "fn/error", "fn/defaultLinkFunction", "fn/isFunction", "fn/log", "fn/defaultPostLinkFunction", "fn/defaultAlertFunction"], function (require, exports,
|
|
2162
|
+
define("fn/callback", ["require", "exports", "fn/error", "fn/defaultLinkFunction", "fn/isFunction", "fn/log", "fn/defaultPostLinkFunction", "fn/defaultAlertFunction"], function (require, exports, error_2, defaultLinkFunction_1, isFunction_4, log_8, defaultPostLinkFunction_1, defaultAlertFunction_1) {
|
|
1909
2163
|
"use strict";
|
|
1910
2164
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1911
2165
|
exports.callback = void 0;
|
|
@@ -1922,7 +2176,7 @@
|
|
|
1922
2176
|
eval(res.prescript);
|
|
1923
2177
|
}
|
|
1924
2178
|
catch (e) {
|
|
1925
|
-
(0,
|
|
2179
|
+
(0, error_2.error)(e.message || '');
|
|
1926
2180
|
}
|
|
1927
2181
|
}
|
|
1928
2182
|
if (isObj && res.url === undefined) {
|
|
@@ -1952,13 +2206,13 @@
|
|
|
1952
2206
|
let r = null;
|
|
1953
2207
|
try {
|
|
1954
2208
|
r = eval(res.script);
|
|
1955
|
-
if ((0,
|
|
2209
|
+
if ((0, isFunction_4.isFunction)(r)) {
|
|
1956
2210
|
r = r(data, ele);
|
|
1957
2211
|
}
|
|
1958
2212
|
}
|
|
1959
2213
|
catch (e) {
|
|
1960
|
-
(0,
|
|
1961
|
-
(0,
|
|
2214
|
+
(0, log_8.log)(e, res);
|
|
2215
|
+
(0, error_2.error)((0, isFunction_4.isFunction)(e.getMessage) ? e.getMessage() : null);
|
|
1962
2216
|
}
|
|
1963
2217
|
return r;
|
|
1964
2218
|
})(res.data ? res.data : {}, ele ? ele : false);
|
|
@@ -2055,7 +2309,7 @@
|
|
|
2055
2309
|
};
|
|
2056
2310
|
exports.center = center;
|
|
2057
2311
|
});
|
|
2058
|
-
define("fn/checkPropsDetails", ["require", "exports", "fn/isArray", "fn/isObject", "fn/each", "fn/substr"], function (require, exports,
|
|
2312
|
+
define("fn/checkPropsDetails", ["require", "exports", "fn/isArray", "fn/isObject", "fn/each", "fn/substr"], function (require, exports, isArray_7, isObject_9, each_9, substr_5) {
|
|
2059
2313
|
"use strict";
|
|
2060
2314
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2061
2315
|
exports.checkPropsDetails = void 0;
|
|
@@ -2067,7 +2321,7 @@
|
|
|
2067
2321
|
if (typeof (props) === 'string') {
|
|
2068
2322
|
props = [props];
|
|
2069
2323
|
}
|
|
2070
|
-
if (!(0,
|
|
2324
|
+
if (!(0, isArray_7.isArray)(props)) {
|
|
2071
2325
|
res.error = bbn._('checkProps must receive a string or an array as props argument');
|
|
2072
2326
|
}
|
|
2073
2327
|
if (!(0, isObject_9.isObject)(obj)) {
|
|
@@ -2075,7 +2329,7 @@
|
|
|
2075
2329
|
}
|
|
2076
2330
|
if (!res.error) {
|
|
2077
2331
|
let check;
|
|
2078
|
-
(0,
|
|
2332
|
+
(0, each_9.each)(props, (varName) => {
|
|
2079
2333
|
varName = varName.trim().split(':');
|
|
2080
2334
|
let type = varName[1] || false;
|
|
2081
2335
|
varName = varName[0];
|
|
@@ -2128,72 +2382,6 @@
|
|
|
2128
2382
|
};
|
|
2129
2383
|
exports.checkPropsOrDie = checkPropsOrDie;
|
|
2130
2384
|
});
|
|
2131
|
-
define("fn/correctCase", ["require", "exports"], function (require, exports) {
|
|
2132
|
-
"use strict";
|
|
2133
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2134
|
-
exports.correctCase = void 0;
|
|
2135
|
-
const correctCase = function (str) {
|
|
2136
|
-
return str.replace(/[A-z]{1}/, (c) => c.toUpperCase());
|
|
2137
|
-
};
|
|
2138
|
-
exports.correctCase = correctCase;
|
|
2139
|
-
});
|
|
2140
|
-
define("fn/checkType", ["require", "exports", "fn/isArray", "fn/each", "fn/isFunction", "fn/isString", "fn/correctCase", "fn/error", "fn/log"], function (require, exports, isArray_7, each_9, isFunction_4, isString_8, correctCase_1, error_2, log_8) {
|
|
2141
|
-
"use strict";
|
|
2142
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2143
|
-
exports.checkType = void 0;
|
|
2144
|
-
const checkType = function (value, type, msg, ...logs) {
|
|
2145
|
-
let ok = false;
|
|
2146
|
-
if (!(0, isArray_7.isArray)(type)) {
|
|
2147
|
-
type = [type];
|
|
2148
|
-
}
|
|
2149
|
-
const typesList = [];
|
|
2150
|
-
(0, each_9.each)(type, (t) => {
|
|
2151
|
-
if (t === String) {
|
|
2152
|
-
t = 'string';
|
|
2153
|
-
}
|
|
2154
|
-
else if (t === Number) {
|
|
2155
|
-
t = 'number';
|
|
2156
|
-
}
|
|
2157
|
-
else if (t === Array) {
|
|
2158
|
-
t = 'array';
|
|
2159
|
-
}
|
|
2160
|
-
else if (t === Boolean) {
|
|
2161
|
-
t = 'boolean';
|
|
2162
|
-
}
|
|
2163
|
-
else if (t === Object) {
|
|
2164
|
-
t = 'object';
|
|
2165
|
-
}
|
|
2166
|
-
else if (t === Function) {
|
|
2167
|
-
t = 'function';
|
|
2168
|
-
}
|
|
2169
|
-
if ((0, isFunction_4.isFunction)(t)) {
|
|
2170
|
-
typesList.push(t.name || t.constructor?.name || t.toString());
|
|
2171
|
-
if (value instanceof t) {
|
|
2172
|
-
ok = true;
|
|
2173
|
-
return false;
|
|
2174
|
-
}
|
|
2175
|
-
}
|
|
2176
|
-
else if (!(0, isString_8.isString)(t) || !(0, isFunction_4.isFunction)(bbn.fn['is' + (0, correctCase_1.correctCase)(t)])) {
|
|
2177
|
-
(0, error_2.error)(`The type ${t} is not recognized`);
|
|
2178
|
-
}
|
|
2179
|
-
else if (bbn.fn['is' + (0, correctCase_1.correctCase)(t)](value)) {
|
|
2180
|
-
ok = true;
|
|
2181
|
-
return false;
|
|
2182
|
-
}
|
|
2183
|
-
else {
|
|
2184
|
-
typesList.push(t);
|
|
2185
|
-
}
|
|
2186
|
-
});
|
|
2187
|
-
if (!ok) {
|
|
2188
|
-
(0, log_8.log)(['Value given', value, 'type', typeof value, 'expected', typesList.join(' or ')]);
|
|
2189
|
-
if (logs.length) {
|
|
2190
|
-
(0, log_8.log)(logs);
|
|
2191
|
-
}
|
|
2192
|
-
throw new Error((msg ? msg + ' - ' : '') + bbn._('The value should be a %s', typesList.join(' ' + bbn._('or a') + ' ')));
|
|
2193
|
-
}
|
|
2194
|
-
};
|
|
2195
|
-
exports.checkType = checkType;
|
|
2196
|
-
});
|
|
2197
2385
|
define("fn/clone", ["require", "exports", "fn/isArray", "fn/isObject", "fn/extend"], function (require, exports, isArray_8, isObject_10, extend_3) {
|
|
2198
2386
|
"use strict";
|
|
2199
2387
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -2445,13 +2633,13 @@
|
|
|
2445
2633
|
};
|
|
2446
2634
|
exports.defaultResizeFunction = defaultResizeFunction;
|
|
2447
2635
|
});
|
|
2448
|
-
define("fn/deleteProp", ["require", "exports", "fn/checkType"], function (require, exports,
|
|
2636
|
+
define("fn/deleteProp", ["require", "exports", "fn/checkType"], function (require, exports, checkType_2) {
|
|
2449
2637
|
"use strict";
|
|
2450
2638
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2451
2639
|
exports.deleteProp = void 0;
|
|
2452
2640
|
const deleteProp = function (obj, prop) {
|
|
2453
|
-
(0,
|
|
2454
|
-
(0,
|
|
2641
|
+
(0, checkType_2.checkType)(obj, 'object', bbn._('The obj must be an object in setProp'));
|
|
2642
|
+
(0, checkType_2.checkType)(prop, 'string', bbn._('The prop must be a string in setProp'));
|
|
2455
2643
|
delete obj[prop];
|
|
2456
2644
|
};
|
|
2457
2645
|
exports.deleteProp = deleteProp;
|
|
@@ -2920,7 +3108,7 @@
|
|
|
2920
3108
|
};
|
|
2921
3109
|
exports.forir = forir;
|
|
2922
3110
|
});
|
|
2923
|
-
define("fn/format", ["require", "exports", "fn/checkType"], function (require, exports,
|
|
3111
|
+
define("fn/format", ["require", "exports", "fn/checkType"], function (require, exports, checkType_3) {
|
|
2924
3112
|
"use strict";
|
|
2925
3113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2926
3114
|
exports.format = void 0;
|
|
@@ -2930,7 +3118,7 @@
|
|
|
2930
3118
|
let i = 0;
|
|
2931
3119
|
return str.replace(/\%([d|s])/g, (match, type) => {
|
|
2932
3120
|
let tmp = args[i++];
|
|
2933
|
-
(0,
|
|
3121
|
+
(0, checkType_3.checkType)(tmp, type === 'd' ? 'number' : 'string', bbn._("The value doesn't correspond to the format"));
|
|
2934
3122
|
return tmp;
|
|
2935
3123
|
});
|
|
2936
3124
|
}
|
|
@@ -3424,12 +3612,12 @@
|
|
|
3424
3612
|
};
|
|
3425
3613
|
exports.getField = getField;
|
|
3426
3614
|
});
|
|
3427
|
-
define("fn/getFieldValues", ["require", "exports", "fn/checkType", "fn/filter", "fn/each"], function (require, exports,
|
|
3615
|
+
define("fn/getFieldValues", ["require", "exports", "fn/checkType", "fn/filter", "fn/each"], function (require, exports, checkType_4, filter_3, each_15) {
|
|
3428
3616
|
"use strict";
|
|
3429
3617
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3430
3618
|
exports.getFieldValues = void 0;
|
|
3431
3619
|
const getFieldValues = function (arr, field, prop, val, operator) {
|
|
3432
|
-
(0,
|
|
3620
|
+
(0, checkType_4.checkType)(field, 'string');
|
|
3433
3621
|
if (prop) {
|
|
3434
3622
|
arr = (0, filter_3.filter)(arr, prop, val, operator);
|
|
3435
3623
|
}
|
|
@@ -3510,13 +3698,13 @@
|
|
|
3510
3698
|
};
|
|
3511
3699
|
exports.getPath = getPath;
|
|
3512
3700
|
});
|
|
3513
|
-
define("fn/getProp", ["require", "exports", "fn/checkType"], function (require, exports,
|
|
3701
|
+
define("fn/getProp", ["require", "exports", "fn/checkType"], function (require, exports, checkType_5) {
|
|
3514
3702
|
"use strict";
|
|
3515
3703
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3516
3704
|
exports.getProp = void 0;
|
|
3517
3705
|
const getProp = function (obj, prop) {
|
|
3518
|
-
(0,
|
|
3519
|
-
(0,
|
|
3706
|
+
(0, checkType_5.checkType)(obj, 'object', bbn._('The obj must be an object in setProp'));
|
|
3707
|
+
(0, checkType_5.checkType)(prop, 'string', bbn._('The prop must be a string in setProp'));
|
|
3520
3708
|
return obj[prop];
|
|
3521
3709
|
};
|
|
3522
3710
|
exports.getProp = getProp;
|
|
@@ -5818,7 +6006,244 @@
|
|
|
5818
6006
|
};
|
|
5819
6007
|
exports.upload = upload;
|
|
5820
6008
|
});
|
|
5821
|
-
define("
|
|
6009
|
+
define("fn", ["require", "exports", "fn/_addLoader", "fn/_compareValues", "fn/_deleteLoader", "fn/abort", "fn/abortURL", "fn/addColors", "fn/addInputs", "fn/addStyle", "fn/adjustHeight", "fn/adjustSize", "fn/adjustWidth", "fn/ajax", "fn/analyzeFunction", "fn/animateCss", "fn/arrayBuffer2String", "fn/arrayFromProp", "fn/autoExtend", "fn/baseName", "fn/br2nl", "fn/calendar", "fn/callback", "fn/camelize", "fn/camelToCss", "fn/canvasToImage", "fn/center", "fn/checkProps", "fn/checkPropsDetails", "fn/checkPropsOrDie", "fn/checkType", "fn/circularReplacer", "fn/clone", "fn/colorToHex", "fn/compare", "fn/compareConditions", "fn/copy", "fn/correctCase", "fn/count", "fn/crc32", "fn/createObject", "fn/cssExists", "fn/date", "fn/dateSQL", "fn/daysInMonth", "fn/deepPath", "fn/defaultAjaxAbortFunction", "fn/defaultAjaxErrorFunction", "fn/defaultAlertFunction", "fn/defaultConfirmFunction", "fn/defaultEndLoadingFunction", "fn/defaultErrorFunction", "fn/defaultHistoryFunction", "fn/defaultLinkFunction", "fn/defaultPostLinkFunction", "fn/defaultPreLinkFunction", "fn/defaultResizeFunction", "fn/defaultStartLoadingFunction", "fn/deleteProp", "fn/diffObj", "fn/dirName", "fn/download", "fn/downloadContent", "fn/each", "fn/eraseCookie", "fn/error", "fn/escapeDquotes", "fn/escapeRegExp", "fn/escapeSquotes", "fn/escapeTicks", "fn/escapeUrl", "fn/extend", "fn/extendOut", "fn/fdate", "fn/fdatetime", "fn/fieldValue", "fn/fileExt", "fn/filter", "fn/filterToConditions", "fn/findAll", "fn/fori", "fn/forir", "fn/format", "fn/formatBytes", "fn/formatDate", "fn/formatSize", "fn/formdata", "fn/fromXml", "fn/ftime", "fn/getAllTags", "fn/getAncestors", "fn/getAttributes", "fn/getBrowserName", "fn/getBrowserVersion", "fn/getCookie", "fn/getCssVar", "fn/getDay", "fn/getDeviceType", "fn/getEventData", "fn/getField", "fn/getFieldValues", "fn/getHtml", "fn/getHTMLOfSelection", "fn/getLoader", "fn/getPath", "fn/getProp", "fn/getProperty", "fn/getRequestId", "fn/getRow", "fn/getScrollBarSize", "fn/getText", "fn/getTimeoff", "fn/happy", "fn/hash", "fn/hex2rgb", "fn/history", "fn/html2text", "fn/imageToCanvas", "fn/imgToBase64", "fn/info", "fn/init", "fn/isActiveInterface", "fn/isArray", "fn/isBlob", "fn/isBoolean", "fn/isCanvas", "fn/isColor", "fn/isComment", "fn/isCp", "fn/isDate", "fn/isDesktopDevice", "fn/isDimension", "fn/isDom", "fn/isEmail", "fn/isEmpty", "fn/isEvent", "fn/isFocused", "fn/isFunction", "fn/isHostname", "fn/isInside", "fn/isInt", "fn/isIP", "fn/isIterable", "fn/isMobile", "fn/isMobileDevice", "fn/isNull", "fn/isNumber", "fn/isObject", "fn/isPercent", "fn/isPrimitive", "fn/isPromise", "fn/isPropSize", "fn/isSame", "fn/isSQLDate", "fn/isString", "fn/isSymbol", "fn/isTabletDevice", "fn/isURL", "fn/isValidDimension", "fn/isValidName", "fn/isValue", "fn/isVue", "fn/iterate", "fn/lightenDarkenHex", "fn/link", "fn/log", "fn/makeReactive", "fn/map", "fn/md5", "fn/money", "fn/move", "fn/multiorder", "fn/nl2br", "fn/numProperties", "fn/objectToFormData", "fn/order", "fn/outerHeight", "fn/outerWidth", "fn/percent", "fn/pickValue", "fn/post", "fn/postOut", "fn/printf", "fn/quotes2html", "fn/randomInt", "fn/randomString", "fn/removeAccents", "fn/removeEmpty", "fn/removeExtraSpaces", "fn/removeHtmlComments", "fn/removePrivateProp", "fn/removeTrailingChars", "fn/repeat", "fn/replaceAll", "fn/replaceSelection", "fn/resize", "fn/rgb2hex", "fn/riterate", "fn/roundDecimal", "fn/sanitize", "fn/search", "fn/selectElementText", "fn/selector", "fn/setCookie", "fn/setCssVar", "fn/setNavigationVars", "fn/setProp", "fn/setProperty", "fn/shorten", "fn/shortenObj", "fn/shuffle", "fn/simpleHash", "fn/simpleHash1", "fn/simpleHash2", "fn/chrono", "fn/stat", "fn/string2ArrayBuffer", "fn/submit", "fn/substr", "fn/sum", "fn/timestamp", "fn/toCSV", "fn/toggleFullScreen", "fn/translate", "fn/treatAjaxArguments", "fn/trim", "fn/uniqString", "fn/unique", "fn/upload", "fn/warning"], function (require, exports, _addLoader_2, _compareValues_3, _deleteLoader_2, abort_1, abortURL_1, addColors_2, addInputs_2, addStyle_1, adjustHeight_1, adjustSize_3, adjustWidth_1, ajax_4, analyzeFunction_1, animateCss_1, arrayBuffer2String_1, arrayFromProp_1, autoExtend_1, baseName_3, br2nl_1, calendar_1, callback_3, camelize_1, camelToCss_1, canvasToImage_1, center_1, checkProps_1, checkPropsDetails_3, checkPropsOrDie_1, checkType_6, circularReplacer_2, clone_2, colorToHex_1, compare_2, compareConditions_3, copy_1, correctCase_2, count_1, crc32_1, createObject_4, cssExists_1, date_8, dateSQL_1, daysInMonth_1, deepPath_1, defaultAjaxAbortFunction_2, defaultAjaxErrorFunction_3, defaultAlertFunction_2, defaultConfirmFunction_1, defaultEndLoadingFunction_2, defaultErrorFunction_2, defaultHistoryFunction_2, defaultLinkFunction_2, defaultPostLinkFunction_2, defaultPreLinkFunction_2, defaultResizeFunction_2, defaultStartLoadingFunction_2, deleteProp_1, diffObj_1, dirName_2, download_1, downloadContent_2, each_27, eraseCookie_1, error_4, escapeDquotes_1, escapeRegExp_3, escapeSquotes_1, escapeTicks_1, escapeUrl_1, extend_7, extendOut_1, fdate_2, fdatetime_2, fieldValue_2, fileExt_2, filter_6, filterToConditions_3, findAll_1, fori_1, forir_1, format_1, formatBytes_1, formatDate_1, formatSize_1, formdata_2, fromXml_1, ftime_1, getAllTags_1, getAncestors_2, getAttributes_1, getBrowserName_1, getBrowserVersion_1, getCookie_1, getCssVar_2, getDay_1, getDeviceType_4, getEventData_1, getField_1, getFieldValues_1, getHtml_1, getHTMLOfSelection_2, getLoader_4, getPath_1, getProp_1, getProperty_4, getRequestId_2, getRow_3, getScrollBarSize_1, getText_1, getTimeoff_1, happy_1, hash_2, hex2rgb_1, history_1, html2text_2, imageToCanvas_2, imgToBase64_1, info_1, init_1, isActiveInterface_1, isArray_19, isBlob_2, isBoolean_1, isCanvas_2, isColor_1, isComment_1, isCp_3, isDate_8, isDesktopDevice_1, isDimension_1, isDom_5, isEmail_1, isEmpty_2, isEvent_1, isFocused_1, isFunction_11, isHostname_1, isInside_1, isInt_2, isIP_2, isIterable_5, isMobile_2, isMobileDevice_2, isNull_4, isNumber_10, isObject_18, isPercent_1, isPrimitive_1, isPromise_1, isPropSize_1, isSame_3, isSQLDate_1, isString_27, isSymbol_2, isTabletDevice_3, isURL_1, isValidDimension_2, isValidName_1, isValue_2, isVue_1, iterate_11, lightenDarkenHex_1, link_2, log_19, makeReactive_1, map_1, md5_4, money_1, move_1, multiorder_1, nl2br_1, numProperties_8, objectToFormData_2, order_1, outerHeight_1, outerWidth_1, percent_1, pickValue_1, post_2, postOut_1, printf_1, quotes2html_1, randomInt_2, randomString_1, removeAccents_4, removeEmpty_1, removeExtraSpaces_1, removeHtmlComments_2, removePrivateProp_2, removeTrailingChars_1, repeat_1, replaceAll_8, replaceSelection_1, resize_3, rgb2hex_1, riterate_1, roundDecimal_1, sanitize_1, search_6, selectElementText_1, selector_3, setCookie_1, setCssVar_1, setNavigationVars_2, setProp_1, setProperty_1, shorten_2, shortenObj_1, shuffle_1, simpleHash_2, simpleHash1_2, simpleHash2_2, chrono_1, stat_1, string2ArrayBuffer_1, submit_2, substr_16, sum_1, timestamp_1, toCSV_1, toggleFullScreen_1, translate_1, treatAjaxArguments_3, trim_2, uniqString_1, unique_2, upload_1, warning_2) {
|
|
6010
|
+
"use strict";
|
|
6011
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6012
|
+
exports.fn = void 0;
|
|
6013
|
+
const fn = {
|
|
6014
|
+
_addLoader: _addLoader_2._addLoader,
|
|
6015
|
+
_compareValues: _compareValues_3._compareValues,
|
|
6016
|
+
_deleteLoader: _deleteLoader_2._deleteLoader,
|
|
6017
|
+
abort: abort_1.abort,
|
|
6018
|
+
abortURL: abortURL_1.abortURL,
|
|
6019
|
+
addColors: addColors_2.addColors,
|
|
6020
|
+
addInputs: addInputs_2.addInputs,
|
|
6021
|
+
addStyle: addStyle_1.addStyle,
|
|
6022
|
+
adjustHeight: adjustHeight_1.adjustHeight,
|
|
6023
|
+
adjustSize: adjustSize_3.adjustSize,
|
|
6024
|
+
adjustWidth: adjustWidth_1.adjustWidth,
|
|
6025
|
+
ajax: ajax_4.ajax,
|
|
6026
|
+
analyzeFunction: analyzeFunction_1.analyzeFunction,
|
|
6027
|
+
animateCss: animateCss_1.animateCss,
|
|
6028
|
+
arrayBuffer2String: arrayBuffer2String_1.arrayBuffer2String,
|
|
6029
|
+
arrayFromProp: arrayFromProp_1.arrayFromProp,
|
|
6030
|
+
autoExtend: autoExtend_1.autoExtend,
|
|
6031
|
+
baseName: baseName_3.baseName,
|
|
6032
|
+
br2nl: br2nl_1.br2nl,
|
|
6033
|
+
calendar: calendar_1.calendar,
|
|
6034
|
+
callback: callback_3.callback,
|
|
6035
|
+
camelize: camelize_1.camelize,
|
|
6036
|
+
camelToCss: camelToCss_1.camelToCss,
|
|
6037
|
+
canvasToImage: canvasToImage_1.canvasToImage,
|
|
6038
|
+
center: center_1.center,
|
|
6039
|
+
checkProps: checkProps_1.checkProps,
|
|
6040
|
+
checkPropsDetails: checkPropsDetails_3.checkPropsDetails,
|
|
6041
|
+
checkPropsOrDie: checkPropsOrDie_1.checkPropsOrDie,
|
|
6042
|
+
checkType: checkType_6.checkType,
|
|
6043
|
+
circularReplacer: circularReplacer_2.circularReplacer,
|
|
6044
|
+
clone: clone_2.clone,
|
|
6045
|
+
colorToHex: colorToHex_1.colorToHex,
|
|
6046
|
+
compare: compare_2.compare,
|
|
6047
|
+
compareConditions: compareConditions_3.compareConditions,
|
|
6048
|
+
copy: copy_1.copy,
|
|
6049
|
+
correctCase: correctCase_2.correctCase,
|
|
6050
|
+
count: count_1.count,
|
|
6051
|
+
crc32: crc32_1.crc32,
|
|
6052
|
+
createObject: createObject_4.createObject,
|
|
6053
|
+
cssExists: cssExists_1.cssExists,
|
|
6054
|
+
date: date_8.date,
|
|
6055
|
+
dateSQL: dateSQL_1.dateSQL,
|
|
6056
|
+
daysInMonth: daysInMonth_1.daysInMonth,
|
|
6057
|
+
deepPath: deepPath_1.deepPath,
|
|
6058
|
+
defaultAjaxAbortFunction: defaultAjaxAbortFunction_2.defaultAjaxAbortFunction,
|
|
6059
|
+
defaultAjaxErrorFunction: defaultAjaxErrorFunction_3.defaultAjaxErrorFunction,
|
|
6060
|
+
defaultAlertFunction: defaultAlertFunction_2.defaultAlertFunction,
|
|
6061
|
+
defaultConfirmFunction: defaultConfirmFunction_1.defaultConfirmFunction,
|
|
6062
|
+
defaultEndLoadingFunction: defaultEndLoadingFunction_2.defaultEndLoadingFunction,
|
|
6063
|
+
defaultErrorFunction: defaultErrorFunction_2.defaultErrorFunction,
|
|
6064
|
+
defaultHistoryFunction: defaultHistoryFunction_2.defaultHistoryFunction,
|
|
6065
|
+
defaultLinkFunction: defaultLinkFunction_2.defaultLinkFunction,
|
|
6066
|
+
defaultPostLinkFunction: defaultPostLinkFunction_2.defaultPostLinkFunction,
|
|
6067
|
+
defaultPreLinkFunction: defaultPreLinkFunction_2.defaultPreLinkFunction,
|
|
6068
|
+
defaultResizeFunction: defaultResizeFunction_2.defaultResizeFunction,
|
|
6069
|
+
defaultStartLoadingFunction: defaultStartLoadingFunction_2.defaultStartLoadingFunction,
|
|
6070
|
+
deleteProp: deleteProp_1.deleteProp,
|
|
6071
|
+
diffObj: diffObj_1.diffObj,
|
|
6072
|
+
dirName: dirName_2.dirName,
|
|
6073
|
+
download: download_1.download,
|
|
6074
|
+
downloadContent: downloadContent_2.downloadContent,
|
|
6075
|
+
each: each_27.each,
|
|
6076
|
+
eraseCookie: eraseCookie_1.eraseCookie,
|
|
6077
|
+
error: error_4.error,
|
|
6078
|
+
escapeDquotes: escapeDquotes_1.escapeDquotes,
|
|
6079
|
+
escapeRegExp: escapeRegExp_3.escapeRegExp,
|
|
6080
|
+
escapeSquotes: escapeSquotes_1.escapeSquotes,
|
|
6081
|
+
escapeTicks: escapeTicks_1.escapeTicks,
|
|
6082
|
+
escapeUrl: escapeUrl_1.escapeUrl,
|
|
6083
|
+
extend: extend_7.extend,
|
|
6084
|
+
extendOut: extendOut_1.extendOut,
|
|
6085
|
+
fdate: fdate_2.fdate,
|
|
6086
|
+
fdatetime: fdatetime_2.fdatetime,
|
|
6087
|
+
fieldValue: fieldValue_2.fieldValue,
|
|
6088
|
+
fileExt: fileExt_2.fileExt,
|
|
6089
|
+
filter: filter_6.filter,
|
|
6090
|
+
filterToConditions: filterToConditions_3.filterToConditions,
|
|
6091
|
+
findAll: findAll_1.findAll,
|
|
6092
|
+
fori: fori_1.fori,
|
|
6093
|
+
forir: forir_1.forir,
|
|
6094
|
+
format: format_1.format,
|
|
6095
|
+
formatBytes: formatBytes_1.formatBytes,
|
|
6096
|
+
formatDate: formatDate_1.formatDate,
|
|
6097
|
+
formatSize: formatSize_1.formatSize,
|
|
6098
|
+
formdata: formdata_2.formdata,
|
|
6099
|
+
fromXml: fromXml_1.fromXml,
|
|
6100
|
+
ftime: ftime_1.ftime,
|
|
6101
|
+
getAllTags: getAllTags_1.getAllTags,
|
|
6102
|
+
getAncestors: getAncestors_2.getAncestors,
|
|
6103
|
+
getAttributes: getAttributes_1.getAttributes,
|
|
6104
|
+
getBrowserName: getBrowserName_1.getBrowserName,
|
|
6105
|
+
getBrowserVersion: getBrowserVersion_1.getBrowserVersion,
|
|
6106
|
+
getCookie: getCookie_1.getCookie,
|
|
6107
|
+
getCssVar: getCssVar_2.getCssVar,
|
|
6108
|
+
getDay: getDay_1.getDay,
|
|
6109
|
+
getDeviceType: getDeviceType_4.getDeviceType,
|
|
6110
|
+
getEventData: getEventData_1.getEventData,
|
|
6111
|
+
getField: getField_1.getField,
|
|
6112
|
+
getFieldValues: getFieldValues_1.getFieldValues,
|
|
6113
|
+
getHtml: getHtml_1.getHtml,
|
|
6114
|
+
getHTMLOfSelection: getHTMLOfSelection_2.getHTMLOfSelection,
|
|
6115
|
+
getLoader: getLoader_4.getLoader,
|
|
6116
|
+
getPath: getPath_1.getPath,
|
|
6117
|
+
getProp: getProp_1.getProp,
|
|
6118
|
+
getProperty: getProperty_4.getProperty,
|
|
6119
|
+
getRequestId: getRequestId_2.getRequestId,
|
|
6120
|
+
getRow: getRow_3.getRow,
|
|
6121
|
+
getScrollBarSize: getScrollBarSize_1.getScrollBarSize,
|
|
6122
|
+
getText: getText_1.getText,
|
|
6123
|
+
getTimeoff: getTimeoff_1.getTimeoff,
|
|
6124
|
+
happy: happy_1.happy,
|
|
6125
|
+
hash: hash_2.hash,
|
|
6126
|
+
hex2rgb: hex2rgb_1.hex2rgb,
|
|
6127
|
+
history: history_1.history,
|
|
6128
|
+
html2text: html2text_2.html2text,
|
|
6129
|
+
imageToCanvas: imageToCanvas_2.imageToCanvas,
|
|
6130
|
+
imgToBase64: imgToBase64_1.imgToBase64,
|
|
6131
|
+
info: info_1.info,
|
|
6132
|
+
init: init_1.init,
|
|
6133
|
+
isActiveInterface: isActiveInterface_1.isActiveInterface,
|
|
6134
|
+
isArray: isArray_19.isArray,
|
|
6135
|
+
isBlob: isBlob_2.isBlob,
|
|
6136
|
+
isBoolean: isBoolean_1.isBoolean,
|
|
6137
|
+
isCanvas: isCanvas_2.isCanvas,
|
|
6138
|
+
isColor: isColor_1.isColor,
|
|
6139
|
+
isComment: isComment_1.isComment,
|
|
6140
|
+
isCp: isCp_3.isCp,
|
|
6141
|
+
isDate: isDate_8.isDate,
|
|
6142
|
+
isDesktopDevice: isDesktopDevice_1.isDesktopDevice,
|
|
6143
|
+
isDimension: isDimension_1.isDimension,
|
|
6144
|
+
isDom: isDom_5.isDom,
|
|
6145
|
+
isEmail: isEmail_1.isEmail,
|
|
6146
|
+
isEmpty: isEmpty_2.isEmpty,
|
|
6147
|
+
isEvent: isEvent_1.isEvent,
|
|
6148
|
+
isFocused: isFocused_1.isFocused,
|
|
6149
|
+
isFunction: isFunction_11.isFunction,
|
|
6150
|
+
isHostname: isHostname_1.isHostname,
|
|
6151
|
+
isInside: isInside_1.isInside,
|
|
6152
|
+
isInt: isInt_2.isInt,
|
|
6153
|
+
isIP: isIP_2.isIP,
|
|
6154
|
+
isIterable: isIterable_5.isIterable,
|
|
6155
|
+
isMobile: isMobile_2.isMobile,
|
|
6156
|
+
isMobileDevice: isMobileDevice_2.isMobileDevice,
|
|
6157
|
+
isNull: isNull_4.isNull,
|
|
6158
|
+
isNumber: isNumber_10.isNumber,
|
|
6159
|
+
isObject: isObject_18.isObject,
|
|
6160
|
+
isPercent: isPercent_1.isPercent,
|
|
6161
|
+
isPrimitive: isPrimitive_1.isPrimitive,
|
|
6162
|
+
isPromise: isPromise_1.isPromise,
|
|
6163
|
+
isPropSize: isPropSize_1.isPropSize,
|
|
6164
|
+
isSame: isSame_3.isSame,
|
|
6165
|
+
isSQLDate: isSQLDate_1.isSQLDate,
|
|
6166
|
+
isString: isString_27.isString,
|
|
6167
|
+
isSymbol: isSymbol_2.isSymbol,
|
|
6168
|
+
isTabletDevice: isTabletDevice_3.isTabletDevice,
|
|
6169
|
+
isURL: isURL_1.isURL,
|
|
6170
|
+
isValidDimension: isValidDimension_2.isValidDimension,
|
|
6171
|
+
isValidName: isValidName_1.isValidName,
|
|
6172
|
+
isValue: isValue_2.isValue,
|
|
6173
|
+
isVue: isVue_1.isVue,
|
|
6174
|
+
iterate: iterate_11.iterate,
|
|
6175
|
+
lightenDarkenHex: lightenDarkenHex_1.lightenDarkenHex,
|
|
6176
|
+
link: link_2.link,
|
|
6177
|
+
log: log_19.log,
|
|
6178
|
+
makeReactive: makeReactive_1.makeReactive,
|
|
6179
|
+
map: map_1.map,
|
|
6180
|
+
md5: md5_4.md5,
|
|
6181
|
+
money: money_1.money,
|
|
6182
|
+
move: move_1.move,
|
|
6183
|
+
multiorder: multiorder_1.multiorder,
|
|
6184
|
+
nl2br: nl2br_1.nl2br,
|
|
6185
|
+
numProperties: numProperties_8.numProperties,
|
|
6186
|
+
objectToFormData: objectToFormData_2.objectToFormData,
|
|
6187
|
+
order: order_1.order,
|
|
6188
|
+
outerHeight: outerHeight_1.outerHeight,
|
|
6189
|
+
outerWidth: outerWidth_1.outerWidth,
|
|
6190
|
+
percent: percent_1.percent,
|
|
6191
|
+
pickValue: pickValue_1.pickValue,
|
|
6192
|
+
post: post_2.post,
|
|
6193
|
+
postOut: postOut_1.postOut,
|
|
6194
|
+
printf: printf_1.printf,
|
|
6195
|
+
quotes2html: quotes2html_1.quotes2html,
|
|
6196
|
+
randomInt: randomInt_2.randomInt,
|
|
6197
|
+
randomString: randomString_1.randomString,
|
|
6198
|
+
removeAccents: removeAccents_4.removeAccents,
|
|
6199
|
+
removeEmpty: removeEmpty_1.removeEmpty,
|
|
6200
|
+
removeExtraSpaces: removeExtraSpaces_1.removeExtraSpaces,
|
|
6201
|
+
removeHtmlComments: removeHtmlComments_2.removeHtmlComments,
|
|
6202
|
+
removePrivateProp: removePrivateProp_2.removePrivateProp,
|
|
6203
|
+
removeTrailingChars: removeTrailingChars_1.removeTrailingChars,
|
|
6204
|
+
repeat: repeat_1.repeat,
|
|
6205
|
+
replaceAll: replaceAll_8.replaceAll,
|
|
6206
|
+
replaceSelection: replaceSelection_1.replaceSelection,
|
|
6207
|
+
resize: resize_3.resize,
|
|
6208
|
+
rgb2hex: rgb2hex_1.rgb2hex,
|
|
6209
|
+
riterate: riterate_1.riterate,
|
|
6210
|
+
roundDecimal: roundDecimal_1.roundDecimal,
|
|
6211
|
+
sanitize: sanitize_1.sanitize,
|
|
6212
|
+
search: search_6.search,
|
|
6213
|
+
selectElementText: selectElementText_1.selectElementText,
|
|
6214
|
+
selector: selector_3.selector,
|
|
6215
|
+
setCookie: setCookie_1.setCookie,
|
|
6216
|
+
setCssVar: setCssVar_1.setCssVar,
|
|
6217
|
+
setNavigationVars: setNavigationVars_2.setNavigationVars,
|
|
6218
|
+
setProp: setProp_1.setProp,
|
|
6219
|
+
setProperty: setProperty_1.setProperty,
|
|
6220
|
+
shorten: shorten_2.shorten,
|
|
6221
|
+
shortenObj: shortenObj_1.shortenObj,
|
|
6222
|
+
shuffle: shuffle_1.shuffle,
|
|
6223
|
+
simpleHash: simpleHash_2.simpleHash,
|
|
6224
|
+
simpleHash1: simpleHash1_2.simpleHash1,
|
|
6225
|
+
simpleHash2: simpleHash2_2.simpleHash2,
|
|
6226
|
+
startChrono: chrono_1.startChrono,
|
|
6227
|
+
stat: stat_1.stat,
|
|
6228
|
+
stopChrono: chrono_1.stopChrono,
|
|
6229
|
+
string2ArrayBuffer: string2ArrayBuffer_1.string2ArrayBuffer,
|
|
6230
|
+
submit: submit_2.submit,
|
|
6231
|
+
substr: substr_16.substr,
|
|
6232
|
+
sum: sum_1.sum,
|
|
6233
|
+
timestamp: timestamp_1.timestamp,
|
|
6234
|
+
toCSV: toCSV_1.toCSV,
|
|
6235
|
+
toggleFullScreen: toggleFullScreen_1.toggleFullScreen,
|
|
6236
|
+
translate: translate_1.translate,
|
|
6237
|
+
treatAjaxArguments: treatAjaxArguments_3.treatAjaxArguments,
|
|
6238
|
+
trim: trim_2.trim,
|
|
6239
|
+
uniqString: uniqString_1.uniqString,
|
|
6240
|
+
unique: unique_2.unique,
|
|
6241
|
+
upload: upload_1.upload,
|
|
6242
|
+
warning: warning_2.warning,
|
|
6243
|
+
};
|
|
6244
|
+
exports.fn = fn;
|
|
6245
|
+
});
|
|
6246
|
+
define("index", ["require", "exports", "_", "$", "lng", "vars", "env", "fn"], function (require, exports, _1, _2, lng_1, vars_1, env_1, fn_1) {
|
|
5822
6247
|
"use strict";
|
|
5823
6248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5824
6249
|
exports.bbn = void 0;
|
|
@@ -5827,399 +6252,13 @@
|
|
|
5827
6252
|
opt: {
|
|
5828
6253
|
_cat: {}
|
|
5829
6254
|
},
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
let st = args.shift();
|
|
5838
|
-
let res = bbn.lng[st] || st;
|
|
5839
|
-
if (args.length) {
|
|
5840
|
-
let i = 0;
|
|
5841
|
-
return res.replace(/\%([d|s])/g, (match, type) => {
|
|
5842
|
-
let tmp = args[i++];
|
|
5843
|
-
if (!tmp) {
|
|
5844
|
-
tmp = type === 'd' ? 0 : '';
|
|
5845
|
-
}
|
|
5846
|
-
(0, checkType_5.checkType)(tmp, type === 'd' ? 'number' : 'string', bbn._("The value you gave did not correspond, check the loggg"));
|
|
5847
|
-
return tmp;
|
|
5848
|
-
});
|
|
5849
|
-
}
|
|
5850
|
-
return res;
|
|
5851
|
-
},
|
|
5852
|
-
$: (selector, context) => {
|
|
5853
|
-
if (context && context.querySelectorAll) {
|
|
5854
|
-
return context.querySelectorAll(selector);
|
|
5855
|
-
}
|
|
5856
|
-
return document.body.querySelectorAll(selector);
|
|
5857
|
-
},
|
|
5858
|
-
_popups: [],
|
|
5859
|
-
lng: {
|
|
5860
|
-
/* User-defined languages elements */
|
|
5861
|
-
select_unselect_all: "Select/Clear all",
|
|
5862
|
-
select_all: "Select all",
|
|
5863
|
-
search: 'Search',
|
|
5864
|
-
loading: 'Loading...',
|
|
5865
|
-
choose: 'Choose',
|
|
5866
|
-
error: 'Error',
|
|
5867
|
-
server_response: 'Server response',
|
|
5868
|
-
reload: 'Reload',
|
|
5869
|
-
errorText: 'Something went wrong',
|
|
5870
|
-
closeAll: "Close all",
|
|
5871
|
-
closeOthers: "Close others",
|
|
5872
|
-
pin: "Pin",
|
|
5873
|
-
arrange: "Arrange",
|
|
5874
|
-
cancel: "Cancel",
|
|
5875
|
-
unpin: "Unpin",
|
|
5876
|
-
yes: "Yes",
|
|
5877
|
-
no: "No",
|
|
5878
|
-
unknown: "Unknown",
|
|
5879
|
-
untitled: "Untitled",
|
|
5880
|
-
confirmation: "Confirmation",
|
|
5881
|
-
Today: "Today",
|
|
5882
|
-
Tomorrow: "Tomorrow",
|
|
5883
|
-
Yesterday: "Yesterday"
|
|
5884
|
-
},
|
|
5885
|
-
app: {
|
|
5886
|
-
popups: [],
|
|
5887
|
-
},
|
|
5888
|
-
vars: {
|
|
5889
|
-
loggers: {
|
|
5890
|
-
_num: 0
|
|
5891
|
-
},
|
|
5892
|
-
/* Usable datatypes through Ajax function */
|
|
5893
|
-
datatypes: ['xml', 'html', 'script', 'json', 'jsonp', 'text', 'blob'],
|
|
5894
|
-
/* The default value used by the function shorten */
|
|
5895
|
-
shortenLen: 30,
|
|
5896
|
-
/* Categorizing keyboard map */
|
|
5897
|
-
keys: {
|
|
5898
|
-
upDown: [33, 34, 35, 36, 38, 40],
|
|
5899
|
-
leftRight: [36, 35, 37, 39],
|
|
5900
|
-
dels: [8, 46, 45],
|
|
5901
|
-
confirm: [13, 9],
|
|
5902
|
-
alt: [20, 16, 17, 18, 144],
|
|
5903
|
-
numbers: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105],
|
|
5904
|
-
numsigns: [109, 110, 189, 190]
|
|
5905
|
-
},
|
|
5906
|
-
comparators: [">=", "<=", ">", "<", "="],
|
|
5907
|
-
operators: ["+", "-", "/", "*"],
|
|
5908
|
-
tags: ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'menu', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'slot', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr'],
|
|
5909
|
-
colors: {
|
|
5910
|
-
darkgrey: '#5a6a62',
|
|
5911
|
-
black: '#000000',
|
|
5912
|
-
anthracite: '#454545',
|
|
5913
|
-
grey: '#d3d3d3',
|
|
5914
|
-
white: '#ffffff',
|
|
5915
|
-
beige: '#fdfdfd',
|
|
5916
|
-
lightgrey: '#dcdcdc',
|
|
5917
|
-
pastelblue: '#ddebf6',
|
|
5918
|
-
cyan: '#00c8f8',
|
|
5919
|
-
blue: '#6e9ecf',
|
|
5920
|
-
indigo: '#3f51b5',
|
|
5921
|
-
navy: '#354458',
|
|
5922
|
-
webblue: '#2196f3',
|
|
5923
|
-
teal: '#009688',
|
|
5924
|
-
turquoise: '#1fda9a',
|
|
5925
|
-
pastelgreen: '#e2efda',
|
|
5926
|
-
palegreen: '#ccffcc',
|
|
5927
|
-
green: '#00a03e',
|
|
5928
|
-
olive: '#92b06a',
|
|
5929
|
-
pastelorange: '#fff2cc',
|
|
5930
|
-
yellow: '#fdf200',
|
|
5931
|
-
orange: '#ff9900',
|
|
5932
|
-
pink: '#eb65a0',
|
|
5933
|
-
purple: '#a333c8',
|
|
5934
|
-
red: '#db3340',
|
|
5935
|
-
brown: '#8c6954'
|
|
5936
|
-
},
|
|
5937
|
-
reserved: ['abstract', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'continue', 'const', 'debugger', 'default', 'delete', 'do', 'double', 'else', 'enum', 'export', 'extends', 'false', 'final', 'finally', 'float', 'for', 'function', 'goto', 'if', 'implements', 'import', 'in', 'instanceof', 'int', 'interface', 'long', 'native', 'new', 'null', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'true', 'try', 'typeof', 'var', 'void', 'while', 'with'],
|
|
5938
|
-
mockText: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
5939
|
-
regexp: {
|
|
5940
|
-
url: new RegExp('^(https?:\\/\\/)?' + // protocol
|
|
5941
|
-
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|' + // domain name
|
|
5942
|
-
'((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address
|
|
5943
|
-
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path
|
|
5944
|
-
'(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
|
|
5945
|
-
'(\\#[-a-z\\d_]*)?$', 'i'),
|
|
5946
|
-
ip: new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"),
|
|
5947
|
-
hostname: new RegExp("^[a-z\\d]([a-z\\d\\-]{0,61}[a-z\\d])?(\\.[a-z\\d]([a-z\\d\\-]{0,61}[a-z\\d])?)*$", 'i'),
|
|
5948
|
-
}
|
|
5949
|
-
},
|
|
5950
|
-
env: {
|
|
5951
|
-
siteTitle: window.document.title,
|
|
5952
|
-
/* This variable should be set to true in debugging mode only */
|
|
5953
|
-
logging: false,
|
|
5954
|
-
/* Address of the CDN (where this file should be hosted) */
|
|
5955
|
-
cdn: '',
|
|
5956
|
-
/* Default language */
|
|
5957
|
-
lang: 'en',
|
|
5958
|
-
host: window.location.protocol + '//' + window.location.hostname,
|
|
5959
|
-
url: window.location.href,
|
|
5960
|
-
old_path: null,
|
|
5961
|
-
/* True when non asynchronous Ajax loads */
|
|
5962
|
-
loading: false,
|
|
5963
|
-
/* Window width */
|
|
5964
|
-
width: 0,
|
|
5965
|
-
/* Window height */
|
|
5966
|
-
height: 0,
|
|
5967
|
-
/* Element currently focused (Element object) */
|
|
5968
|
-
focused: false,
|
|
5969
|
-
/* Last time user has been active */
|
|
5970
|
-
last_focus: (new Date()).getTime(),
|
|
5971
|
-
/* Sleep mode (tab or window unfocused */
|
|
5972
|
-
sleep: false,
|
|
5973
|
-
/**
|
|
5974
|
-
* @var bbn.env.loaders Object where the props are MD5 of data and url while the values are the requests,
|
|
5975
|
-
* for preventing the same call to be made at the same time
|
|
5976
|
-
**/
|
|
5977
|
-
loaders: [],
|
|
5978
|
-
loadersHistory: [],
|
|
5979
|
-
maxLoadersHistory: 20,
|
|
5980
|
-
/* bbn.env.params is an array of each element of the path */
|
|
5981
|
-
resizeTimer: false,
|
|
5982
|
-
hashChanged: 0,
|
|
5983
|
-
params: [],
|
|
5984
|
-
isInit: false,
|
|
5985
|
-
isFocused: false,
|
|
5986
|
-
timeoff: Math.round((new Date()).getTime() / 1000),
|
|
5987
|
-
loggingLevel: 5,
|
|
5988
|
-
ignoreUnload: false,
|
|
5989
|
-
historyDisabled: false,
|
|
5990
|
-
nav: 'ajax'
|
|
5991
|
-
},
|
|
5992
|
-
fn: {
|
|
5993
|
-
_addLoader: _addLoader_2._addLoader,
|
|
5994
|
-
_compareValues: _compareValues_3._compareValues,
|
|
5995
|
-
_deleteLoader: _deleteLoader_2._deleteLoader,
|
|
5996
|
-
abort: abort_1.abort,
|
|
5997
|
-
abortURL: abortURL_1.abortURL,
|
|
5998
|
-
addColors: addColors_2.addColors,
|
|
5999
|
-
addInputs: addInputs_2.addInputs,
|
|
6000
|
-
addStyle: addStyle_1.addStyle,
|
|
6001
|
-
adjustHeight: adjustHeight_1.adjustHeight,
|
|
6002
|
-
adjustSize: adjustSize_3.adjustSize,
|
|
6003
|
-
adjustWidth: adjustWidth_1.adjustWidth,
|
|
6004
|
-
ajax: ajax_4.ajax,
|
|
6005
|
-
analyzeFunction: analyzeFunction_1.analyzeFunction,
|
|
6006
|
-
animateCss: animateCss_1.animateCss,
|
|
6007
|
-
arrayBuffer2String: arrayBuffer2String_1.arrayBuffer2String,
|
|
6008
|
-
arrayFromProp: arrayFromProp_1.arrayFromProp,
|
|
6009
|
-
autoExtend: autoExtend_1.autoExtend,
|
|
6010
|
-
baseName: baseName_3.baseName,
|
|
6011
|
-
br2nl: br2nl_1.br2nl,
|
|
6012
|
-
calendar: calendar_1.calendar,
|
|
6013
|
-
callback: callback_3.callback,
|
|
6014
|
-
camelize: camelize_1.camelize,
|
|
6015
|
-
camelToCss: camelToCss_1.camelToCss,
|
|
6016
|
-
canvasToImage: canvasToImage_1.canvasToImage,
|
|
6017
|
-
center: center_1.center,
|
|
6018
|
-
checkProps: checkProps_1.checkProps,
|
|
6019
|
-
checkPropsDetails: checkPropsDetails_3.checkPropsDetails,
|
|
6020
|
-
checkPropsOrDie: checkPropsOrDie_1.checkPropsOrDie,
|
|
6021
|
-
checkType: checkType_5.checkType,
|
|
6022
|
-
circularReplacer: circularReplacer_2.circularReplacer,
|
|
6023
|
-
clone: clone_2.clone,
|
|
6024
|
-
colorToHex: colorToHex_1.colorToHex,
|
|
6025
|
-
compare: compare_2.compare,
|
|
6026
|
-
compareConditions: compareConditions_3.compareConditions,
|
|
6027
|
-
copy: copy_1.copy,
|
|
6028
|
-
correctCase: correctCase_2.correctCase,
|
|
6029
|
-
count: count_1.count,
|
|
6030
|
-
crc32: crc32_1.crc32,
|
|
6031
|
-
createObject: createObject_4.createObject,
|
|
6032
|
-
cssExists: cssExists_1.cssExists,
|
|
6033
|
-
date: date_8.date,
|
|
6034
|
-
dateSQL: dateSQL_1.dateSQL,
|
|
6035
|
-
daysInMonth: daysInMonth_1.daysInMonth,
|
|
6036
|
-
deepPath: deepPath_1.deepPath,
|
|
6037
|
-
defaultAjaxAbortFunction: defaultAjaxAbortFunction_2.defaultAjaxAbortFunction,
|
|
6038
|
-
defaultAjaxErrorFunction: defaultAjaxErrorFunction_3.defaultAjaxErrorFunction,
|
|
6039
|
-
defaultAlertFunction: defaultAlertFunction_2.defaultAlertFunction,
|
|
6040
|
-
defaultConfirmFunction: defaultConfirmFunction_1.defaultConfirmFunction,
|
|
6041
|
-
defaultEndLoadingFunction: defaultEndLoadingFunction_2.defaultEndLoadingFunction,
|
|
6042
|
-
defaultErrorFunction: defaultErrorFunction_2.defaultErrorFunction,
|
|
6043
|
-
defaultHistoryFunction: defaultHistoryFunction_2.defaultHistoryFunction,
|
|
6044
|
-
defaultLinkFunction: defaultLinkFunction_2.defaultLinkFunction,
|
|
6045
|
-
defaultPostLinkFunction: defaultPostLinkFunction_2.defaultPostLinkFunction,
|
|
6046
|
-
defaultPreLinkFunction: defaultPreLinkFunction_2.defaultPreLinkFunction,
|
|
6047
|
-
defaultResizeFunction: defaultResizeFunction_2.defaultResizeFunction,
|
|
6048
|
-
defaultStartLoadingFunction: defaultStartLoadingFunction_2.defaultStartLoadingFunction,
|
|
6049
|
-
deleteProp: deleteProp_1.deleteProp,
|
|
6050
|
-
diffObj: diffObj_1.diffObj,
|
|
6051
|
-
dirName: dirName_2.dirName,
|
|
6052
|
-
download: download_1.download,
|
|
6053
|
-
downloadContent: downloadContent_2.downloadContent,
|
|
6054
|
-
each: each_27.each,
|
|
6055
|
-
eraseCookie: eraseCookie_1.eraseCookie,
|
|
6056
|
-
error: error_4.error,
|
|
6057
|
-
escapeDquotes: escapeDquotes_1.escapeDquotes,
|
|
6058
|
-
escapeRegExp: escapeRegExp_3.escapeRegExp,
|
|
6059
|
-
escapeSquotes: escapeSquotes_1.escapeSquotes,
|
|
6060
|
-
escapeTicks: escapeTicks_1.escapeTicks,
|
|
6061
|
-
escapeUrl: escapeUrl_1.escapeUrl,
|
|
6062
|
-
extend: extend_7.extend,
|
|
6063
|
-
extendOut: extendOut_1.extendOut,
|
|
6064
|
-
fdate: fdate_2.fdate,
|
|
6065
|
-
fdatetime: fdatetime_2.fdatetime,
|
|
6066
|
-
fieldValue: fieldValue_2.fieldValue,
|
|
6067
|
-
fileExt: fileExt_2.fileExt,
|
|
6068
|
-
filter: filter_6.filter,
|
|
6069
|
-
filterToConditions: filterToConditions_3.filterToConditions,
|
|
6070
|
-
findAll: findAll_1.findAll,
|
|
6071
|
-
fori: fori_1.fori,
|
|
6072
|
-
forir: forir_1.forir,
|
|
6073
|
-
format: format_1.format,
|
|
6074
|
-
formatBytes: formatBytes_1.formatBytes,
|
|
6075
|
-
formatDate: formatDate_1.formatDate,
|
|
6076
|
-
formatSize: formatSize_1.formatSize,
|
|
6077
|
-
formdata: formdata_2.formdata,
|
|
6078
|
-
fromXml: fromXml_1.fromXml,
|
|
6079
|
-
ftime: ftime_1.ftime,
|
|
6080
|
-
getAllTags: getAllTags_1.getAllTags,
|
|
6081
|
-
getAncestors: getAncestors_2.getAncestors,
|
|
6082
|
-
getAttributes: getAttributes_1.getAttributes,
|
|
6083
|
-
getBrowserName: getBrowserName_1.getBrowserName,
|
|
6084
|
-
getBrowserVersion: getBrowserVersion_1.getBrowserVersion,
|
|
6085
|
-
getCookie: getCookie_1.getCookie,
|
|
6086
|
-
getCssVar: getCssVar_2.getCssVar,
|
|
6087
|
-
getDay: getDay_1.getDay,
|
|
6088
|
-
getDeviceType: getDeviceType_4.getDeviceType,
|
|
6089
|
-
getEventData: getEventData_1.getEventData,
|
|
6090
|
-
getField: getField_1.getField,
|
|
6091
|
-
getFieldValues: getFieldValues_1.getFieldValues,
|
|
6092
|
-
getHtml: getHtml_1.getHtml,
|
|
6093
|
-
getHTMLOfSelection: getHTMLOfSelection_2.getHTMLOfSelection,
|
|
6094
|
-
getLoader: getLoader_4.getLoader,
|
|
6095
|
-
getPath: getPath_1.getPath,
|
|
6096
|
-
getProp: getProp_1.getProp,
|
|
6097
|
-
getProperty: getProperty_4.getProperty,
|
|
6098
|
-
getRequestId: getRequestId_2.getRequestId,
|
|
6099
|
-
getRow: getRow_3.getRow,
|
|
6100
|
-
getScrollBarSize: getScrollBarSize_1.getScrollBarSize,
|
|
6101
|
-
getText: getText_1.getText,
|
|
6102
|
-
getTimeoff: getTimeoff_1.getTimeoff,
|
|
6103
|
-
happy: happy_1.happy,
|
|
6104
|
-
hash: hash_2.hash,
|
|
6105
|
-
hex2rgb: hex2rgb_1.hex2rgb,
|
|
6106
|
-
history: history_1.history,
|
|
6107
|
-
html2text: html2text_2.html2text,
|
|
6108
|
-
imageToCanvas: imageToCanvas_2.imageToCanvas,
|
|
6109
|
-
imgToBase64: imgToBase64_1.imgToBase64,
|
|
6110
|
-
info: info_1.info,
|
|
6111
|
-
init: init_1.init,
|
|
6112
|
-
isActiveInterface: isActiveInterface_1.isActiveInterface,
|
|
6113
|
-
isArray: isArray_19.isArray,
|
|
6114
|
-
isBlob: isBlob_2.isBlob,
|
|
6115
|
-
isBoolean: isBoolean_1.isBoolean,
|
|
6116
|
-
isCanvas: isCanvas_2.isCanvas,
|
|
6117
|
-
isColor: isColor_1.isColor,
|
|
6118
|
-
isComment: isComment_1.isComment,
|
|
6119
|
-
isCp: isCp_3.isCp,
|
|
6120
|
-
isDate: isDate_8.isDate,
|
|
6121
|
-
isDesktopDevice: isDesktopDevice_1.isDesktopDevice,
|
|
6122
|
-
isDimension: isDimension_1.isDimension,
|
|
6123
|
-
isDom: isDom_5.isDom,
|
|
6124
|
-
isEmail: isEmail_1.isEmail,
|
|
6125
|
-
isEmpty: isEmpty_2.isEmpty,
|
|
6126
|
-
isEvent: isEvent_1.isEvent,
|
|
6127
|
-
isFocused: isFocused_1.isFocused,
|
|
6128
|
-
isFunction: isFunction_11.isFunction,
|
|
6129
|
-
isHostname: isHostname_1.isHostname,
|
|
6130
|
-
isInside: isInside_1.isInside,
|
|
6131
|
-
isInt: isInt_2.isInt,
|
|
6132
|
-
isIP: isIP_2.isIP,
|
|
6133
|
-
isIterable: isIterable_5.isIterable,
|
|
6134
|
-
isMobile: isMobile_2.isMobile,
|
|
6135
|
-
isMobileDevice: isMobileDevice_2.isMobileDevice,
|
|
6136
|
-
isNull: isNull_4.isNull,
|
|
6137
|
-
isNumber: isNumber_10.isNumber,
|
|
6138
|
-
isObject: isObject_18.isObject,
|
|
6139
|
-
isPercent: isPercent_1.isPercent,
|
|
6140
|
-
isPrimitive: isPrimitive_1.isPrimitive,
|
|
6141
|
-
isPromise: isPromise_1.isPromise,
|
|
6142
|
-
isPropSize: isPropSize_1.isPropSize,
|
|
6143
|
-
isSame: isSame_3.isSame,
|
|
6144
|
-
isSQLDate: isSQLDate_1.isSQLDate,
|
|
6145
|
-
isString: isString_27.isString,
|
|
6146
|
-
isSymbol: isSymbol_2.isSymbol,
|
|
6147
|
-
isTabletDevice: isTabletDevice_3.isTabletDevice,
|
|
6148
|
-
isURL: isURL_1.isURL,
|
|
6149
|
-
isValidDimension: isValidDimension_2.isValidDimension,
|
|
6150
|
-
isValidName: isValidName_1.isValidName,
|
|
6151
|
-
isValue: isValue_2.isValue,
|
|
6152
|
-
isVue: isVue_1.isVue,
|
|
6153
|
-
iterate: iterate_11.iterate,
|
|
6154
|
-
lightenDarkenHex: lightenDarkenHex_1.lightenDarkenHex,
|
|
6155
|
-
link: link_2.link,
|
|
6156
|
-
log: log_19.log,
|
|
6157
|
-
makeReactive: makeReactive_1.makeReactive,
|
|
6158
|
-
map: map_1.map,
|
|
6159
|
-
md5: md5_4.md5,
|
|
6160
|
-
money: money_1.money,
|
|
6161
|
-
move: move_1.move,
|
|
6162
|
-
multiorder: multiorder_1.multiorder,
|
|
6163
|
-
nl2br: nl2br_1.nl2br,
|
|
6164
|
-
numProperties: numProperties_8.numProperties,
|
|
6165
|
-
objectToFormData: objectToFormData_2.objectToFormData,
|
|
6166
|
-
order: order_1.order,
|
|
6167
|
-
outerHeight: outerHeight_1.outerHeight,
|
|
6168
|
-
outerWidth: outerWidth_1.outerWidth,
|
|
6169
|
-
percent: percent_1.percent,
|
|
6170
|
-
pickValue: pickValue_1.pickValue,
|
|
6171
|
-
post: post_2.post,
|
|
6172
|
-
postOut: postOut_1.postOut,
|
|
6173
|
-
printf: printf_1.printf,
|
|
6174
|
-
quotes2html: quotes2html_1.quotes2html,
|
|
6175
|
-
randomInt: randomInt_2.randomInt,
|
|
6176
|
-
randomString: randomString_1.randomString,
|
|
6177
|
-
removeAccents: removeAccents_4.removeAccents,
|
|
6178
|
-
removeEmpty: removeEmpty_1.removeEmpty,
|
|
6179
|
-
removeExtraSpaces: removeExtraSpaces_1.removeExtraSpaces,
|
|
6180
|
-
removeHtmlComments: removeHtmlComments_2.removeHtmlComments,
|
|
6181
|
-
removePrivateProp: removePrivateProp_2.removePrivateProp,
|
|
6182
|
-
removeTrailingChars: removeTrailingChars_1.removeTrailingChars,
|
|
6183
|
-
repeat: repeat_1.repeat,
|
|
6184
|
-
replaceAll: replaceAll_8.replaceAll,
|
|
6185
|
-
replaceSelection: replaceSelection_1.replaceSelection,
|
|
6186
|
-
resize: resize_3.resize,
|
|
6187
|
-
rgb2hex: rgb2hex_1.rgb2hex,
|
|
6188
|
-
riterate: riterate_1.riterate,
|
|
6189
|
-
roundDecimal: roundDecimal_1.roundDecimal,
|
|
6190
|
-
sanitize: sanitize_1.sanitize,
|
|
6191
|
-
search: search_6.search,
|
|
6192
|
-
selectElementText: selectElementText_1.selectElementText,
|
|
6193
|
-
selector: selector_3.selector,
|
|
6194
|
-
setCookie: setCookie_1.setCookie,
|
|
6195
|
-
setCssVar: setCssVar_1.setCssVar,
|
|
6196
|
-
setNavigationVars: setNavigationVars_2.setNavigationVars,
|
|
6197
|
-
setProp: setProp_1.setProp,
|
|
6198
|
-
setProperty: setProperty_1.setProperty,
|
|
6199
|
-
shorten: shorten_2.shorten,
|
|
6200
|
-
shortenObj: shortenObj_1.shortenObj,
|
|
6201
|
-
shuffle: shuffle_1.shuffle,
|
|
6202
|
-
simpleHash: simpleHash_2.simpleHash,
|
|
6203
|
-
simpleHash1: simpleHash1_2.simpleHash1,
|
|
6204
|
-
simpleHash2: simpleHash2_2.simpleHash2,
|
|
6205
|
-
startChrono: chrono_1.startChrono,
|
|
6206
|
-
stat: stat_1.stat,
|
|
6207
|
-
stopChrono: chrono_1.stopChrono,
|
|
6208
|
-
string2ArrayBuffer: string2ArrayBuffer_1.string2ArrayBuffer,
|
|
6209
|
-
submit: submit_2.submit,
|
|
6210
|
-
substr: substr_16.substr,
|
|
6211
|
-
sum: sum_1.sum,
|
|
6212
|
-
timestamp: timestamp_1.timestamp,
|
|
6213
|
-
toCSV: toCSV_1.toCSV,
|
|
6214
|
-
toggleFullScreen: toggleFullScreen_1.toggleFullScreen,
|
|
6215
|
-
translate: translate_1.translate,
|
|
6216
|
-
treatAjaxArguments: treatAjaxArguments_3.treatAjaxArguments,
|
|
6217
|
-
trim: trim_2.trim,
|
|
6218
|
-
uniqString: uniqString_1.uniqString,
|
|
6219
|
-
unique: unique_2.unique,
|
|
6220
|
-
upload: upload_1.upload,
|
|
6221
|
-
warning: warning_2.warning,
|
|
6222
|
-
}
|
|
6255
|
+
app: {},
|
|
6256
|
+
_: _1._,
|
|
6257
|
+
$: _2.$,
|
|
6258
|
+
lng: lng_1.lng,
|
|
6259
|
+
vars: vars_1.vars,
|
|
6260
|
+
env: env_1.env,
|
|
6261
|
+
fn: fn_1.fn
|
|
6223
6262
|
};
|
|
6224
6263
|
exports.bbn = bbn;
|
|
6225
6264
|
window.bbn = bbn;
|