@bbn/bbn 1.0.56 → 1.0.58
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 +429 -36
- package/dist/bundle.js +962 -738
- package/dist/db.d.ts +10 -0
- package/dist/db.js +183 -0
- 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 +15 -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,534 @@
|
|
|
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("db", ["require", "exports", "_", "fn/each", "fn/iterate", "fn/log"], function (require, exports, _1, each_2, iterate_2, log_4) {
|
|
501
|
+
"use strict";
|
|
502
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
503
|
+
exports.db = void 0;
|
|
504
|
+
const idb = indexedDB || window['webkitIndexedDB'] || window['mozIndexedDB'] || window['OIndexedDB'] || window['msIndexedDB'];
|
|
505
|
+
const dbObject = function (dbName) {
|
|
506
|
+
const conn = db._connections[dbName];
|
|
507
|
+
const structure = db._structures[dbName];
|
|
508
|
+
this.insert = (table, data) => {
|
|
509
|
+
if (!Array.isArray(data)) {
|
|
510
|
+
data = [data];
|
|
511
|
+
}
|
|
512
|
+
return new Promise(resolve => {
|
|
513
|
+
const tx = conn.transaction(table, "readwrite");
|
|
514
|
+
const store = tx.objectStore(table);
|
|
515
|
+
let res = data.length;
|
|
516
|
+
(0, each_2.each)(data, a => {
|
|
517
|
+
const request = store.put(a);
|
|
518
|
+
request.onerror = () => {
|
|
519
|
+
(0, log_4.log)(request.error);
|
|
520
|
+
res--;
|
|
521
|
+
};
|
|
522
|
+
});
|
|
523
|
+
tx.onabort = () => {
|
|
524
|
+
throw new Error(tx.error);
|
|
525
|
+
};
|
|
526
|
+
tx.oncomplete = () => {
|
|
527
|
+
resolve(res);
|
|
528
|
+
};
|
|
529
|
+
});
|
|
530
|
+
};
|
|
531
|
+
this.update = (table, data, where) => {
|
|
532
|
+
return new Promise(resolve => {
|
|
533
|
+
const tx = conn.transaction(table, "readwrite");
|
|
534
|
+
const store = tx.objectStore(table);
|
|
535
|
+
const arch = structure[table];
|
|
536
|
+
const primary = arch.keys.PRIMARY.columns.length > 1 ? arch.keys.PRIMARY.columns : arch.keys.PRIMARY.columns[0];
|
|
537
|
+
if (!where[primary]) {
|
|
538
|
+
throw new Error((0, _1._)("No "));
|
|
539
|
+
}
|
|
540
|
+
let res = 1;
|
|
541
|
+
const request = store.put(data, where[primary]);
|
|
542
|
+
request.onerror = () => {
|
|
543
|
+
(0, log_4.log)(request.error);
|
|
544
|
+
res--;
|
|
545
|
+
};
|
|
546
|
+
tx.onabort = () => {
|
|
547
|
+
throw new Error(tx.error);
|
|
548
|
+
};
|
|
549
|
+
tx.oncomplete = () => {
|
|
550
|
+
resolve(res);
|
|
551
|
+
};
|
|
552
|
+
});
|
|
553
|
+
};
|
|
554
|
+
this.delete = (table, where) => {
|
|
555
|
+
return new Promise(resolve => {
|
|
556
|
+
const tx = conn.transaction(table, "readwrite");
|
|
557
|
+
const store = tx.objectStore(table);
|
|
558
|
+
const arch = structure[table];
|
|
559
|
+
const primary = arch.keys.PRIMARY.columns.length > 1 ? arch.keys.PRIMARY.columns : arch.keys.PRIMARY.columns[0];
|
|
560
|
+
if (!where[primary]) {
|
|
561
|
+
throw new Error((0, _1._)("No "));
|
|
562
|
+
}
|
|
563
|
+
let res = 1;
|
|
564
|
+
const request = store.delete(where[primary]);
|
|
565
|
+
request.onerror = () => {
|
|
566
|
+
(0, log_4.log)(request.error);
|
|
567
|
+
res--;
|
|
568
|
+
};
|
|
569
|
+
tx.onabort = () => {
|
|
570
|
+
throw new Error(tx.error);
|
|
571
|
+
};
|
|
572
|
+
tx.oncomplete = () => {
|
|
573
|
+
resolve(res);
|
|
574
|
+
};
|
|
575
|
+
});
|
|
576
|
+
};
|
|
577
|
+
this.selectOne = (table, field, where, order, start, limit) => {
|
|
578
|
+
return new Promise(resolve => {
|
|
579
|
+
this.select(table, [field], where, order, start, limit).then(d => {
|
|
580
|
+
resolve(d[field] ?? undefined);
|
|
581
|
+
});
|
|
582
|
+
});
|
|
583
|
+
};
|
|
584
|
+
this.select = (table, fields, where, order, start, limit) => {
|
|
585
|
+
const tx = conn.transaction(table, "readonly");
|
|
586
|
+
const store = tx.objectStore(table);
|
|
587
|
+
const arch = structure[table];
|
|
588
|
+
const primary = arch.keys.PRIMARY.columns.length > 1 ? arch.keys.PRIMARY.columns : arch.keys.PRIMARY.columns[0];
|
|
589
|
+
if (!where[primary]) {
|
|
590
|
+
throw new Error((0, _1._)("No "));
|
|
591
|
+
}
|
|
592
|
+
return new Promise(resolve => {
|
|
593
|
+
const req = store.get(where[primary]);
|
|
594
|
+
req.onsuccess = () => {
|
|
595
|
+
let obj = req.result;
|
|
596
|
+
if (fields.length) {
|
|
597
|
+
let res = {};
|
|
598
|
+
(0, iterate_2.iterate)(obj, (v, n) => {
|
|
599
|
+
if (fields.indexOf(n) > -1) {
|
|
600
|
+
res[n] = v;
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
return resolve(res);
|
|
604
|
+
}
|
|
605
|
+
else {
|
|
606
|
+
resolve(obj);
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
});
|
|
610
|
+
};
|
|
611
|
+
this.selectAll = (table, fields, where, order, start, limit) => {
|
|
612
|
+
const tx = conn.transaction(table, "read");
|
|
613
|
+
const store = tx.objectStore(table);
|
|
614
|
+
const arch = structure[table];
|
|
615
|
+
const primary = arch.keys.PRIMARY.columns.length > 1 ? arch.keys.PRIMARY.columns : arch.keys.PRIMARY.columns[0];
|
|
616
|
+
if (!where[primary]) {
|
|
617
|
+
throw new Error((0, _1._)("No "));
|
|
618
|
+
}
|
|
619
|
+
return new Promise(resolve => {
|
|
620
|
+
const req = store.get(structure.keys.PRIMARY);
|
|
621
|
+
});
|
|
622
|
+
};
|
|
623
|
+
this.getColumnValues = (table, field, where, order, start, limit) => {
|
|
624
|
+
return new Promise(resolve => {
|
|
625
|
+
const tx = conn.transaction(table, "read");
|
|
626
|
+
const store = tx.objectStore(table);
|
|
627
|
+
});
|
|
628
|
+
};
|
|
629
|
+
return this;
|
|
630
|
+
};
|
|
631
|
+
const db = {
|
|
632
|
+
_structures: {},
|
|
633
|
+
/* This variable should be set to true in debugging mode only */
|
|
634
|
+
_connections: {},
|
|
635
|
+
/* Address of the CDN (where this file should be hosted) */
|
|
636
|
+
_stores: {},
|
|
637
|
+
ok: idb !== undefined,
|
|
638
|
+
open(name) {
|
|
639
|
+
return new Promise((resolve) => {
|
|
640
|
+
if (!db._connections[name]) {
|
|
641
|
+
if (!db._structures[name]) {
|
|
642
|
+
throw new Error((0, _1._)("Impossible to find a structure for the database %s", name));
|
|
643
|
+
}
|
|
644
|
+
const conn = idb.open(name);
|
|
645
|
+
conn.onupgradeneeded = () => {
|
|
646
|
+
(0, log_4.log)("UPGRADE NEEDED");
|
|
647
|
+
const res = conn.result;
|
|
648
|
+
(0, iterate_2.iterate)(db._structures[name], (structure, storeName) => {
|
|
649
|
+
const primary = structure.keys.PRIMARY.columns.length > 1 ? structure.keys.PRIMARY.columns : structure.keys.PRIMARY.columns[0];
|
|
650
|
+
const store = res.createObjectStore(storeName, { keyPath: primary });
|
|
651
|
+
(0, iterate_2.iterate)(structure.keys, (a, n) => {
|
|
652
|
+
if (n !== 'PRIMARY') {
|
|
653
|
+
store.createIndex(n, a.columns.length > 1 ? a.columns : a.columns[0], {
|
|
654
|
+
unique: !!a.unique
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
});
|
|
659
|
+
};
|
|
660
|
+
conn.onsuccess = () => {
|
|
661
|
+
db._connections[name] = conn.result;
|
|
662
|
+
let obj = dbObject(name);
|
|
663
|
+
resolve(obj);
|
|
664
|
+
};
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
resolve(dbObject(db._connections[name]));
|
|
668
|
+
});
|
|
669
|
+
},
|
|
670
|
+
add(database, name, structure) {
|
|
671
|
+
if (structure?.keys?.PRIMARY && structure?.fields) {
|
|
672
|
+
if (!db._structures[database]) {
|
|
673
|
+
db._structures[database] = {};
|
|
674
|
+
}
|
|
675
|
+
db._structures[database][name] = structure;
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
throw new Error((0, _1._)("The database structure for %s is not valid (are there keys and field? Is there a primary?", name));
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
exports.db = db;
|
|
683
|
+
});
|
|
684
|
+
define("fn/_addLoader", ["require", "exports", "fn/substr"], function (require, exports, substr_2) {
|
|
117
685
|
"use strict";
|
|
118
686
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
119
687
|
exports._addLoader = void 0;
|
|
@@ -121,7 +689,7 @@
|
|
|
121
689
|
/** @var {Number} tst Current timestamp */
|
|
122
690
|
let tst = (new Date()).getTime();
|
|
123
691
|
/** @var {String} url The original URL (part of requestId before : and md5) */
|
|
124
|
-
let url = (0,
|
|
692
|
+
let url = (0, substr_2.substr)(requestId, 0, requestId.length - 33);
|
|
125
693
|
/** @var {Object} loader The loader object */
|
|
126
694
|
let loader = {
|
|
127
695
|
key: requestId,
|
|
@@ -170,17 +738,17 @@
|
|
|
170
738
|
};
|
|
171
739
|
exports.getProperty = getProperty;
|
|
172
740
|
});
|
|
173
|
-
define("fn/removeAccents", ["require", "exports", "fn/isString", "fn/log"], function (require, exports,
|
|
741
|
+
define("fn/removeAccents", ["require", "exports", "fn/isString", "fn/log"], function (require, exports, isString_3, log_5) {
|
|
174
742
|
"use strict";
|
|
175
743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176
744
|
exports.removeAccents = void 0;
|
|
177
745
|
const removeAccents = function (st) {
|
|
178
|
-
if (!(0,
|
|
746
|
+
if (!(0, isString_3.isString)(st)) {
|
|
179
747
|
if (st.toString) {
|
|
180
748
|
st = st.toString();
|
|
181
749
|
}
|
|
182
750
|
else {
|
|
183
|
-
(0,
|
|
751
|
+
(0, log_5.log)(st);
|
|
184
752
|
throw new Error(bbn._('removeAccent expects a string'));
|
|
185
753
|
}
|
|
186
754
|
}
|
|
@@ -204,13 +772,13 @@
|
|
|
204
772
|
};
|
|
205
773
|
exports.isDate = isDate;
|
|
206
774
|
});
|
|
207
|
-
define("fn/_compareValues", ["require", "exports", "fn/getProperty", "fn/isString", "fn/removeAccents", "fn/isDate"], function (require, exports, getProperty_1,
|
|
775
|
+
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
776
|
"use strict";
|
|
209
777
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
210
778
|
exports._compareValues = void 0;
|
|
211
779
|
const _compareValues = function (a, b, prop, dir = 'asc') {
|
|
212
780
|
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,
|
|
781
|
+
if ((dir !== 'asc') && (0, isString_4.isString)(dir) && (dir.toLowerCase() === 'desc')) {
|
|
214
782
|
dir = 'desc';
|
|
215
783
|
}
|
|
216
784
|
if (ta !== tb) {
|
|
@@ -245,115 +813,6 @@
|
|
|
245
813
|
};
|
|
246
814
|
exports._compareValues = _compareValues;
|
|
247
815
|
});
|
|
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
816
|
define("fn/numProperties", ["require", "exports"], function (require, exports) {
|
|
358
817
|
"use strict";
|
|
359
818
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -366,7 +825,7 @@
|
|
|
366
825
|
};
|
|
367
826
|
exports.numProperties = numProperties;
|
|
368
827
|
});
|
|
369
|
-
define("fn/isEmpty", ["require", "exports", "fn/isArray", "fn/numProperties"], function (require, exports,
|
|
828
|
+
define("fn/isEmpty", ["require", "exports", "fn/isArray", "fn/numProperties"], function (require, exports, isArray_2, numProperties_1) {
|
|
370
829
|
"use strict";
|
|
371
830
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
372
831
|
exports.isEmpty = void 0;
|
|
@@ -374,7 +833,7 @@
|
|
|
374
833
|
if (!obj) {
|
|
375
834
|
return true;
|
|
376
835
|
}
|
|
377
|
-
if ((0,
|
|
836
|
+
if ((0, isArray_2.isArray)(obj)) {
|
|
378
837
|
return obj.length ? false : true;
|
|
379
838
|
}
|
|
380
839
|
if (typeof obj === 'object') {
|
|
@@ -456,7 +915,7 @@
|
|
|
456
915
|
};
|
|
457
916
|
exports.isCp = isCp;
|
|
458
917
|
});
|
|
459
|
-
define("fn/circularReplacer", ["require", "exports", "fn/isDom", "fn/isCp", "fn/log"], function (require, exports, isDom_2, isCp_1,
|
|
918
|
+
define("fn/circularReplacer", ["require", "exports", "fn/isDom", "fn/isCp", "fn/log"], function (require, exports, isDom_2, isCp_1, log_6) {
|
|
460
919
|
"use strict";
|
|
461
920
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
462
921
|
exports.circularReplacer = void 0;
|
|
@@ -478,7 +937,7 @@
|
|
|
478
937
|
}
|
|
479
938
|
}
|
|
480
939
|
else if ((0, isCp_1.isCp)(value)) {
|
|
481
|
-
(0,
|
|
940
|
+
(0, log_6.log)('IS CP');
|
|
482
941
|
value = '__BBN_CP__' + value.$options.name + '/' + value.$cid;
|
|
483
942
|
}
|
|
484
943
|
else {
|
|
@@ -532,7 +991,7 @@
|
|
|
532
991
|
};
|
|
533
992
|
exports.simpleHash = simpleHash;
|
|
534
993
|
});
|
|
535
|
-
define("fn/hash", ["require", "exports", "fn/log", "fn/isDom", "fn/isCp", "fn/circularReplacer", "fn/simpleHash"], function (require, exports,
|
|
994
|
+
define("fn/hash", ["require", "exports", "fn/log", "fn/isDom", "fn/isCp", "fn/circularReplacer", "fn/simpleHash"], function (require, exports, log_7, isDom_3, isCp_2, circularReplacer_1, simpleHash_1) {
|
|
536
995
|
"use strict";
|
|
537
996
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
538
997
|
exports.hash = void 0;
|
|
@@ -551,7 +1010,7 @@
|
|
|
551
1010
|
}
|
|
552
1011
|
}
|
|
553
1012
|
else if ((0, isCp_2.isCp)(value)) {
|
|
554
|
-
(0,
|
|
1013
|
+
(0, log_7.log)('IS CP');
|
|
555
1014
|
st += '__BBN_CP__' + value.$options.name + '/' + value.$cid;
|
|
556
1015
|
}
|
|
557
1016
|
else {
|
|
@@ -568,7 +1027,7 @@
|
|
|
568
1027
|
};
|
|
569
1028
|
exports.hash = hash;
|
|
570
1029
|
});
|
|
571
|
-
define("fn/isSame", ["require", "exports", "fn/hash", "fn/each"], function (require, exports, hash_1,
|
|
1030
|
+
define("fn/isSame", ["require", "exports", "fn/hash", "fn/each"], function (require, exports, hash_1, each_3) {
|
|
572
1031
|
"use strict";
|
|
573
1032
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
574
1033
|
exports.isSame = void 0;
|
|
@@ -592,7 +1051,7 @@
|
|
|
592
1051
|
}
|
|
593
1052
|
done.push(obj1);
|
|
594
1053
|
}
|
|
595
|
-
(0,
|
|
1054
|
+
(0, each_3.each)(tmp1, (a) => {
|
|
596
1055
|
if (!isSame(obj1[a], obj2[a])) {
|
|
597
1056
|
ok = false;
|
|
598
1057
|
return false;
|
|
@@ -703,18 +1162,18 @@
|
|
|
703
1162
|
};
|
|
704
1163
|
exports.compare = compare;
|
|
705
1164
|
});
|
|
706
|
-
define("fn/compareConditions", ["require", "exports", "fn/isArray", "fn/each", "fn/compare", "fn/getProperty"], function (require, exports,
|
|
1165
|
+
define("fn/compareConditions", ["require", "exports", "fn/isArray", "fn/each", "fn/compare", "fn/getProperty"], function (require, exports, isArray_3, each_4, compare_1, getProperty_2) {
|
|
707
1166
|
"use strict";
|
|
708
1167
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
709
1168
|
exports.compareConditions = void 0;
|
|
710
1169
|
const compareConditions = function (data, filter) {
|
|
711
|
-
if (!filter.conditions || !filter.logic || !(0,
|
|
1170
|
+
if (!filter.conditions || !filter.logic || !(0, isArray_3.isArray)(filter.conditions)) {
|
|
712
1171
|
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
1172
|
}
|
|
714
1173
|
let ok = filter.logic === 'AND' ? true : false;
|
|
715
|
-
(0,
|
|
1174
|
+
(0, each_4.each)(filter.conditions, (a) => {
|
|
716
1175
|
let comparator;
|
|
717
|
-
if (a.conditions && (0,
|
|
1176
|
+
if (a.conditions && (0, isArray_3.isArray)(a.conditions)) {
|
|
718
1177
|
comparator = compareConditions(data, a);
|
|
719
1178
|
}
|
|
720
1179
|
else {
|
|
@@ -723,7 +1182,7 @@
|
|
|
723
1182
|
let bits = a.field.split('.');
|
|
724
1183
|
let prop = bits.pop();
|
|
725
1184
|
if (bits.length) {
|
|
726
|
-
(0,
|
|
1185
|
+
(0, each_4.each)(bits, (b) => (data = data[b]));
|
|
727
1186
|
}
|
|
728
1187
|
// Case where both are undefined: value and prop which doesn't exist; they are not the same!
|
|
729
1188
|
if ((0, getProperty_2.getProperty)(data, prop) === undefined && a.value !== undefined) {
|
|
@@ -746,7 +1205,7 @@
|
|
|
746
1205
|
};
|
|
747
1206
|
exports.compareConditions = compareConditions;
|
|
748
1207
|
});
|
|
749
|
-
define("fn/filterToConditions", ["require", "exports", "fn/isObject", "fn/isArray", "fn/iterate"], function (require, exports, isObject_2,
|
|
1208
|
+
define("fn/filterToConditions", ["require", "exports", "fn/isObject", "fn/isArray", "fn/iterate"], function (require, exports, isObject_2, isArray_4, iterate_3) {
|
|
750
1209
|
"use strict";
|
|
751
1210
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
752
1211
|
exports.filterToConditions = void 0;
|
|
@@ -754,9 +1213,9 @@
|
|
|
754
1213
|
if (!(0, isObject_2.isObject)(filter)) {
|
|
755
1214
|
throw new Error('Error in filterToCondition: filter must be an object');
|
|
756
1215
|
}
|
|
757
|
-
if (!filter.conditions || !(0,
|
|
1216
|
+
if (!filter.conditions || !(0, isArray_4.isArray)(filter.conditions)) {
|
|
758
1217
|
let tmp = [];
|
|
759
|
-
(0,
|
|
1218
|
+
(0, iterate_3.iterate)(filter, (a, n) => {
|
|
760
1219
|
if ((0, isObject_2.isObject)(a) && typeof a.conditions === 'object') {
|
|
761
1220
|
tmp.push(filterToConditions(a));
|
|
762
1221
|
}
|
|
@@ -928,12 +1387,12 @@
|
|
|
928
1387
|
};
|
|
929
1388
|
exports.abort = abort;
|
|
930
1389
|
});
|
|
931
|
-
define("fn/filter", ["require", "exports", "fn/isArray", "fn/each", "fn/filterToConditions", "fn/compareConditions"], function (require, exports,
|
|
1390
|
+
define("fn/filter", ["require", "exports", "fn/isArray", "fn/each", "fn/filterToConditions", "fn/compareConditions"], function (require, exports, isArray_5, each_5, filterToConditions_2, compareConditions_2) {
|
|
932
1391
|
"use strict";
|
|
933
1392
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
934
1393
|
exports.filter = void 0;
|
|
935
1394
|
const filter = function (arr, prop, val = null, operator = '=') {
|
|
936
|
-
if (!(0,
|
|
1395
|
+
if (!(0, isArray_5.isArray)(arr)) {
|
|
937
1396
|
bbn.fn.log("NOT ARRAY", arr);
|
|
938
1397
|
throw new Error('Error in filter: The first argument must be an array');
|
|
939
1398
|
}
|
|
@@ -955,7 +1414,7 @@
|
|
|
955
1414
|
throw new Error('Search function error: The prop argument should be a string or an object');
|
|
956
1415
|
}
|
|
957
1416
|
if (typeof (prop) === 'function') {
|
|
958
|
-
(0,
|
|
1417
|
+
(0, each_5.each)(arr, (a, i) => {
|
|
959
1418
|
if (prop(a, i)) {
|
|
960
1419
|
res.push(a);
|
|
961
1420
|
}
|
|
@@ -964,7 +1423,7 @@
|
|
|
964
1423
|
else {
|
|
965
1424
|
cfg = (0, filterToConditions_2.filterToConditions)(cfg, operator);
|
|
966
1425
|
if (cfg.conditions && cfg.logic) {
|
|
967
|
-
(0,
|
|
1426
|
+
(0, each_5.each)(arr, (a) => {
|
|
968
1427
|
if ((0, compareConditions_2.compareConditions)(a, cfg)) {
|
|
969
1428
|
res.push(a);
|
|
970
1429
|
}
|
|
@@ -976,12 +1435,12 @@
|
|
|
976
1435
|
};
|
|
977
1436
|
exports.filter = filter;
|
|
978
1437
|
});
|
|
979
|
-
define("fn/abortURL", ["require", "exports", "fn/each", "fn/filter"], function (require, exports,
|
|
1438
|
+
define("fn/abortURL", ["require", "exports", "fn/each", "fn/filter"], function (require, exports, each_6, filter_1) {
|
|
980
1439
|
"use strict";
|
|
981
1440
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
982
1441
|
exports.abortURL = void 0;
|
|
983
1442
|
const abortURL = function (url) {
|
|
984
|
-
(0,
|
|
1443
|
+
(0, each_6.each)((0, filter_1.filter)(bbn.env.loaders, { url: url }), (a) => {
|
|
985
1444
|
if (a && a.source) {
|
|
986
1445
|
a.source.cancel('Operation canceled by the user.');
|
|
987
1446
|
}
|
|
@@ -992,7 +1451,7 @@
|
|
|
992
1451
|
};
|
|
993
1452
|
exports.abortURL = abortURL;
|
|
994
1453
|
});
|
|
995
|
-
define("fn/addColors", ["require", "exports", "fn/numProperties", "fn/iterate"], function (require, exports, numProperties_3,
|
|
1454
|
+
define("fn/addColors", ["require", "exports", "fn/numProperties", "fn/iterate"], function (require, exports, numProperties_3, iterate_4) {
|
|
996
1455
|
"use strict";
|
|
997
1456
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
998
1457
|
exports.addColors = void 0;
|
|
@@ -1006,7 +1465,7 @@
|
|
|
1006
1465
|
let sheet = element.sheet;
|
|
1007
1466
|
// Append style element to head
|
|
1008
1467
|
let i = 0;
|
|
1009
|
-
(0,
|
|
1468
|
+
(0, iterate_4.iterate)(colors, (v, n) => {
|
|
1010
1469
|
bbn.vars.colors[n] = v;
|
|
1011
1470
|
sheet.insertRule('.bbn-' + n + ', .bbn-color-text-' + n + ' {color: ' + v + ' !important;}', i);
|
|
1012
1471
|
sheet.insertRule('svg.bbn-' +
|
|
@@ -1036,7 +1495,7 @@
|
|
|
1036
1495
|
};
|
|
1037
1496
|
exports.addColors = addColors;
|
|
1038
1497
|
});
|
|
1039
|
-
define("fn/addInputs", ["require", "exports", "fn/iterate"], function (require, exports,
|
|
1498
|
+
define("fn/addInputs", ["require", "exports", "fn/iterate"], function (require, exports, iterate_5) {
|
|
1040
1499
|
"use strict";
|
|
1041
1500
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1042
1501
|
exports.addInputs = void 0;
|
|
@@ -1052,7 +1511,7 @@
|
|
|
1052
1511
|
params = JSON.parse(JSON.stringify(params || {}));
|
|
1053
1512
|
prefix = prefix || '';
|
|
1054
1513
|
if (params) {
|
|
1055
|
-
(0,
|
|
1514
|
+
(0, iterate_5.iterate)(params, (param, key) => {
|
|
1056
1515
|
let name = prefix ? `${prefix}[${key}]` : key;
|
|
1057
1516
|
if (param instanceof Date) {
|
|
1058
1517
|
appendToForm(name, param.toISOString());
|
|
@@ -1080,29 +1539,29 @@
|
|
|
1080
1539
|
};
|
|
1081
1540
|
exports.addInputs = addInputs;
|
|
1082
1541
|
});
|
|
1083
|
-
define("fn/addStyle", ["require", "exports", "fn/isObject", "fn/iterate"], function (require, exports, isObject_5,
|
|
1542
|
+
define("fn/addStyle", ["require", "exports", "fn/isObject", "fn/iterate"], function (require, exports, isObject_5, iterate_6) {
|
|
1084
1543
|
"use strict";
|
|
1085
1544
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1086
1545
|
exports.addStyle = void 0;
|
|
1087
1546
|
const addStyle = function (ele, o) {
|
|
1088
1547
|
if ((0, isObject_5.isObject)(o)) {
|
|
1089
|
-
(0,
|
|
1548
|
+
(0, iterate_6.iterate)(o, (v, k) => {
|
|
1090
1549
|
ele.style[k] = v;
|
|
1091
1550
|
});
|
|
1092
1551
|
}
|
|
1093
1552
|
};
|
|
1094
1553
|
exports.addStyle = addStyle;
|
|
1095
1554
|
});
|
|
1096
|
-
define("fn/adjustSize", ["require", "exports", "fn/each"], function (require, exports,
|
|
1555
|
+
define("fn/adjustSize", ["require", "exports", "fn/each"], function (require, exports, each_7) {
|
|
1097
1556
|
"use strict";
|
|
1098
1557
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1099
1558
|
exports.adjustSize = void 0;
|
|
1100
1559
|
const adjustSize = function (type, eles) {
|
|
1101
1560
|
let max = 0, idx;
|
|
1102
|
-
(0,
|
|
1561
|
+
(0, each_7.each)(eles, (el) => {
|
|
1103
1562
|
el.style[type] = 'auto';
|
|
1104
1563
|
});
|
|
1105
|
-
(0,
|
|
1564
|
+
(0, each_7.each)(eles, (el, i) => {
|
|
1106
1565
|
let rect = el.getBoundingClientRect(), s = rect[type] % 1 ? rect[type] - (rect[type] % 1) + 1 : rect[type];
|
|
1107
1566
|
//s = rect[type];
|
|
1108
1567
|
if (s > max) {
|
|
@@ -1110,7 +1569,7 @@
|
|
|
1110
1569
|
idx = i;
|
|
1111
1570
|
}
|
|
1112
1571
|
});
|
|
1113
|
-
(0,
|
|
1572
|
+
(0, each_7.each)(eles, (el, i) => {
|
|
1114
1573
|
if (max) {
|
|
1115
1574
|
el.style[type] = max + 'px';
|
|
1116
1575
|
}
|
|
@@ -1288,14 +1747,14 @@
|
|
|
1288
1747
|
};
|
|
1289
1748
|
exports.md5 = md5;
|
|
1290
1749
|
});
|
|
1291
|
-
define("fn/getRequestId", ["require", "exports", "fn/iterate", "fn/md5"], function (require, exports,
|
|
1750
|
+
define("fn/getRequestId", ["require", "exports", "fn/iterate", "fn/md5"], function (require, exports, iterate_7, md5_1) {
|
|
1292
1751
|
"use strict";
|
|
1293
1752
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1294
1753
|
exports.getRequestId = void 0;
|
|
1295
1754
|
const getRequestId = function (url, data, datatype) {
|
|
1296
1755
|
let d = {};
|
|
1297
1756
|
if (data) {
|
|
1298
|
-
(0,
|
|
1757
|
+
(0, iterate_7.iterate)(data, (a, n) => {
|
|
1299
1758
|
if (n.indexOf('_bbn') === -1) {
|
|
1300
1759
|
d[n] = a;
|
|
1301
1760
|
}
|
|
@@ -1305,7 +1764,7 @@
|
|
|
1305
1764
|
};
|
|
1306
1765
|
exports.getRequestId = getRequestId;
|
|
1307
1766
|
});
|
|
1308
|
-
define("fn/extend", ["require", "exports", "fn/iterate", "fn/isArray", "fn/each", "fn/isObject"], function (require, exports,
|
|
1767
|
+
define("fn/extend", ["require", "exports", "fn/iterate", "fn/isArray", "fn/each", "fn/isObject"], function (require, exports, iterate_8, isArray_6, each_8, isObject_7) {
|
|
1309
1768
|
"use strict";
|
|
1310
1769
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1311
1770
|
exports.extend = void 0;
|
|
@@ -1331,15 +1790,15 @@
|
|
|
1331
1790
|
}
|
|
1332
1791
|
let out = args[0];
|
|
1333
1792
|
for (let i = 1; i < args.length; i++) {
|
|
1334
|
-
(0,
|
|
1793
|
+
(0, iterate_8.iterate)(args[i], (a, key) => {
|
|
1335
1794
|
if (deep) {
|
|
1336
|
-
if ((0,
|
|
1337
|
-
out[key] = (0,
|
|
1338
|
-
(0,
|
|
1795
|
+
if ((0, isArray_6.isArray)(a)) {
|
|
1796
|
+
out[key] = (0, isArray_6.isArray)(out[key]) ? out[key] : [];
|
|
1797
|
+
(0, each_8.each)(a, (b, i) => {
|
|
1339
1798
|
if (b && typeof b === 'object') {
|
|
1340
1799
|
let tmp = out[key][i];
|
|
1341
|
-
if ((0,
|
|
1342
|
-
if (!(0,
|
|
1800
|
+
if ((0, isArray_6.isArray)(b)) {
|
|
1801
|
+
if (!(0, isArray_6.isArray)(tmp)) {
|
|
1343
1802
|
tmp = [];
|
|
1344
1803
|
}
|
|
1345
1804
|
}
|
|
@@ -1395,12 +1854,12 @@
|
|
|
1395
1854
|
};
|
|
1396
1855
|
exports.defaultAjaxErrorFunction = defaultAjaxErrorFunction;
|
|
1397
1856
|
});
|
|
1398
|
-
define("fn/defaultAjaxAbortFunction", ["require", "exports", "fn/log"], function (require, exports,
|
|
1857
|
+
define("fn/defaultAjaxAbortFunction", ["require", "exports", "fn/log"], function (require, exports, log_8) {
|
|
1399
1858
|
"use strict";
|
|
1400
1859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1401
1860
|
exports.defaultAjaxAbortFunction = void 0;
|
|
1402
1861
|
const defaultAjaxAbortFunction = function (message, url = '') {
|
|
1403
|
-
(0,
|
|
1862
|
+
(0, log_8.log)(message);
|
|
1404
1863
|
};
|
|
1405
1864
|
exports.defaultAjaxAbortFunction = defaultAjaxAbortFunction;
|
|
1406
1865
|
});
|
|
@@ -1413,7 +1872,7 @@
|
|
|
1413
1872
|
};
|
|
1414
1873
|
exports.defaultStartLoadingFunction = defaultStartLoadingFunction;
|
|
1415
1874
|
});
|
|
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,
|
|
1875
|
+
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
1876
|
"use strict";
|
|
1418
1877
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1419
1878
|
exports.ajax = void 0;
|
|
@@ -1480,7 +1939,7 @@
|
|
|
1480
1939
|
(0, defaultEndLoadingFunction_1.defaultEndLoadingFunction)(url, tst, data, res);
|
|
1481
1940
|
switch (res.status) {
|
|
1482
1941
|
case 200:
|
|
1483
|
-
if ((0,
|
|
1942
|
+
if ((0, isFunction_3.isFunction)(success)) {
|
|
1484
1943
|
success(res.data, res.headers);
|
|
1485
1944
|
}
|
|
1486
1945
|
break;
|
|
@@ -1495,7 +1954,7 @@
|
|
|
1495
1954
|
(0, defaultEndLoadingFunction_1.defaultEndLoadingFunction)(url, tst, data, err);
|
|
1496
1955
|
if (isAbort) {
|
|
1497
1956
|
let ok = 1;
|
|
1498
|
-
if ((0,
|
|
1957
|
+
if ((0, isFunction_3.isFunction)(abort)) {
|
|
1499
1958
|
ok = abort(err.message, url);
|
|
1500
1959
|
}
|
|
1501
1960
|
if (ok) {
|
|
@@ -1504,7 +1963,7 @@
|
|
|
1504
1963
|
}
|
|
1505
1964
|
else {
|
|
1506
1965
|
let ok = 1;
|
|
1507
|
-
if ((0,
|
|
1966
|
+
if ((0, isFunction_3.isFunction)(failure)) {
|
|
1508
1967
|
ok = failure(err.request, err);
|
|
1509
1968
|
}
|
|
1510
1969
|
if (ok) {
|
|
@@ -1698,13 +2157,13 @@
|
|
|
1698
2157
|
};
|
|
1699
2158
|
exports.arrayBuffer2String = arrayBuffer2String;
|
|
1700
2159
|
});
|
|
1701
|
-
define("fn/arrayFromProp", ["require", "exports", "fn/each", "fn/getProperty"], function (require, exports,
|
|
2160
|
+
define("fn/arrayFromProp", ["require", "exports", "fn/each", "fn/getProperty"], function (require, exports, each_9, getProperty_3) {
|
|
1702
2161
|
"use strict";
|
|
1703
2162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1704
2163
|
exports.arrayFromProp = void 0;
|
|
1705
2164
|
const arrayFromProp = function (arr, prop) {
|
|
1706
2165
|
let r = [];
|
|
1707
|
-
(0,
|
|
2166
|
+
(0, each_9.each)(arr, (a, i) => {
|
|
1708
2167
|
r.push((0, getProperty_3.getProperty)(a, prop));
|
|
1709
2168
|
});
|
|
1710
2169
|
return r;
|
|
@@ -1728,12 +2187,12 @@
|
|
|
1728
2187
|
};
|
|
1729
2188
|
exports.autoExtend = autoExtend;
|
|
1730
2189
|
});
|
|
1731
|
-
define("fn/baseName", ["require", "exports", "fn/isString", "fn/substr"], function (require, exports,
|
|
2190
|
+
define("fn/baseName", ["require", "exports", "fn/isString", "fn/substr"], function (require, exports, isString_5, substr_3) {
|
|
1732
2191
|
"use strict";
|
|
1733
2192
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1734
2193
|
exports.baseName = void 0;
|
|
1735
2194
|
const baseName = function (path, suffix) {
|
|
1736
|
-
if (path && (0,
|
|
2195
|
+
if (path && (0, isString_5.isString)(path)) {
|
|
1737
2196
|
let bits = path.split('/');
|
|
1738
2197
|
let res = bits.pop();
|
|
1739
2198
|
if (!suffix) {
|
|
@@ -1787,14 +2246,14 @@
|
|
|
1787
2246
|
};
|
|
1788
2247
|
exports.date = date;
|
|
1789
2248
|
});
|
|
1790
|
-
define("fn/fdatetime", ["require", "exports", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, date_1, isDate_3,
|
|
2249
|
+
define("fn/fdatetime", ["require", "exports", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, date_1, isDate_3, isString_6) {
|
|
1791
2250
|
"use strict";
|
|
1792
2251
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1793
2252
|
exports.fdatetime = void 0;
|
|
1794
2253
|
const fdatetime = function (d, wrong_result) {
|
|
1795
2254
|
let r = (0, date_1.date)(d);
|
|
1796
2255
|
if (!(0, isDate_3.isDate)(r)) {
|
|
1797
|
-
return wrong_result && (0,
|
|
2256
|
+
return wrong_result && (0, isString_6.isString)(wrong_result) ? wrong_result : '';
|
|
1798
2257
|
}
|
|
1799
2258
|
if (undefined !== dayjs) {
|
|
1800
2259
|
//return dayjs(r).format('lll');
|
|
@@ -1812,7 +2271,7 @@
|
|
|
1812
2271
|
};
|
|
1813
2272
|
exports.fdatetime = fdatetime;
|
|
1814
2273
|
});
|
|
1815
|
-
define("fn/fdate", ["require", "exports", "fn/fdatetime", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, fdatetime_1, date_2, isDate_4,
|
|
2274
|
+
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
2275
|
"use strict";
|
|
1817
2276
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1818
2277
|
exports.fdate = void 0;
|
|
@@ -1823,7 +2282,7 @@
|
|
|
1823
2282
|
}
|
|
1824
2283
|
let r = (0, date_2.date)(d);
|
|
1825
2284
|
if (!(0, isDate_4.isDate)(r)) {
|
|
1826
|
-
return wrong_result && (0,
|
|
2285
|
+
return wrong_result && (0, isString_7.isString)(wrong_result) ? wrong_result : '';
|
|
1827
2286
|
}
|
|
1828
2287
|
if (undefined !== dayjs) {
|
|
1829
2288
|
return dayjs(r).format('L');
|
|
@@ -1832,7 +2291,7 @@
|
|
|
1832
2291
|
};
|
|
1833
2292
|
exports.fdate = fdate;
|
|
1834
2293
|
});
|
|
1835
|
-
define("fn/calendar", ["require", "exports", "fn/fdate", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, fdate_1, date_3, isDate_5,
|
|
2294
|
+
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
2295
|
"use strict";
|
|
1837
2296
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1838
2297
|
exports.calendar = void 0;
|
|
@@ -1843,7 +2302,7 @@
|
|
|
1843
2302
|
}
|
|
1844
2303
|
let r = (0, date_3.date)(d);
|
|
1845
2304
|
if (!(0, isDate_5.isDate)(r)) {
|
|
1846
|
-
return wrong_result && (0,
|
|
2305
|
+
return wrong_result && (0, isString_8.isString)(wrong_result) ? wrong_result : '';
|
|
1847
2306
|
}
|
|
1848
2307
|
return dayjs(r).calendar(null, {
|
|
1849
2308
|
sameDay: '[' + bbn._('Today') + ']',
|
|
@@ -1856,27 +2315,6 @@
|
|
|
1856
2315
|
};
|
|
1857
2316
|
exports.calendar = calendar;
|
|
1858
2317
|
});
|
|
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
2318
|
define("fn/defaultLinkFunction", ["require", "exports"], function (require, exports) {
|
|
1881
2319
|
"use strict";
|
|
1882
2320
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1905,7 +2343,7 @@
|
|
|
1905
2343
|
};
|
|
1906
2344
|
exports.defaultAlertFunction = defaultAlertFunction;
|
|
1907
2345
|
});
|
|
1908
|
-
define("fn/callback", ["require", "exports", "fn/error", "fn/defaultLinkFunction", "fn/isFunction", "fn/log", "fn/defaultPostLinkFunction", "fn/defaultAlertFunction"], function (require, exports,
|
|
2346
|
+
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_9, defaultPostLinkFunction_1, defaultAlertFunction_1) {
|
|
1909
2347
|
"use strict";
|
|
1910
2348
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1911
2349
|
exports.callback = void 0;
|
|
@@ -1922,7 +2360,7 @@
|
|
|
1922
2360
|
eval(res.prescript);
|
|
1923
2361
|
}
|
|
1924
2362
|
catch (e) {
|
|
1925
|
-
(0,
|
|
2363
|
+
(0, error_2.error)(e.message || '');
|
|
1926
2364
|
}
|
|
1927
2365
|
}
|
|
1928
2366
|
if (isObj && res.url === undefined) {
|
|
@@ -1952,13 +2390,13 @@
|
|
|
1952
2390
|
let r = null;
|
|
1953
2391
|
try {
|
|
1954
2392
|
r = eval(res.script);
|
|
1955
|
-
if ((0,
|
|
2393
|
+
if ((0, isFunction_4.isFunction)(r)) {
|
|
1956
2394
|
r = r(data, ele);
|
|
1957
2395
|
}
|
|
1958
2396
|
}
|
|
1959
2397
|
catch (e) {
|
|
1960
|
-
(0,
|
|
1961
|
-
(0,
|
|
2398
|
+
(0, log_9.log)(e, res);
|
|
2399
|
+
(0, error_2.error)((0, isFunction_4.isFunction)(e.getMessage) ? e.getMessage() : null);
|
|
1962
2400
|
}
|
|
1963
2401
|
return r;
|
|
1964
2402
|
})(res.data ? res.data : {}, ele ? ele : false);
|
|
@@ -2055,7 +2493,7 @@
|
|
|
2055
2493
|
};
|
|
2056
2494
|
exports.center = center;
|
|
2057
2495
|
});
|
|
2058
|
-
define("fn/checkPropsDetails", ["require", "exports", "fn/isArray", "fn/isObject", "fn/each", "fn/substr"], function (require, exports,
|
|
2496
|
+
define("fn/checkPropsDetails", ["require", "exports", "fn/isArray", "fn/isObject", "fn/each", "fn/substr"], function (require, exports, isArray_7, isObject_9, each_10, substr_5) {
|
|
2059
2497
|
"use strict";
|
|
2060
2498
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2061
2499
|
exports.checkPropsDetails = void 0;
|
|
@@ -2067,7 +2505,7 @@
|
|
|
2067
2505
|
if (typeof (props) === 'string') {
|
|
2068
2506
|
props = [props];
|
|
2069
2507
|
}
|
|
2070
|
-
if (!(0,
|
|
2508
|
+
if (!(0, isArray_7.isArray)(props)) {
|
|
2071
2509
|
res.error = bbn._('checkProps must receive a string or an array as props argument');
|
|
2072
2510
|
}
|
|
2073
2511
|
if (!(0, isObject_9.isObject)(obj)) {
|
|
@@ -2075,7 +2513,7 @@
|
|
|
2075
2513
|
}
|
|
2076
2514
|
if (!res.error) {
|
|
2077
2515
|
let check;
|
|
2078
|
-
(0,
|
|
2516
|
+
(0, each_10.each)(props, (varName) => {
|
|
2079
2517
|
varName = varName.trim().split(':');
|
|
2080
2518
|
let type = varName[1] || false;
|
|
2081
2519
|
varName = varName[0];
|
|
@@ -2128,72 +2566,6 @@
|
|
|
2128
2566
|
};
|
|
2129
2567
|
exports.checkPropsOrDie = checkPropsOrDie;
|
|
2130
2568
|
});
|
|
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
2569
|
define("fn/clone", ["require", "exports", "fn/isArray", "fn/isObject", "fn/extend"], function (require, exports, isArray_8, isObject_10, extend_3) {
|
|
2198
2570
|
"use strict";
|
|
2199
2571
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -2366,7 +2738,7 @@
|
|
|
2366
2738
|
};
|
|
2367
2739
|
exports.daysInMonth = daysInMonth;
|
|
2368
2740
|
});
|
|
2369
|
-
define("fn/deepPath", ["require", "exports", "fn/search", "fn/each", "fn/isArray"], function (require, exports, search_4,
|
|
2741
|
+
define("fn/deepPath", ["require", "exports", "fn/search", "fn/each", "fn/isArray"], function (require, exports, search_4, each_11, isArray_9) {
|
|
2370
2742
|
"use strict";
|
|
2371
2743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2372
2744
|
exports.deepPath = void 0;
|
|
@@ -2377,7 +2749,7 @@
|
|
|
2377
2749
|
res.push(idx);
|
|
2378
2750
|
return res;
|
|
2379
2751
|
}
|
|
2380
|
-
(0,
|
|
2752
|
+
(0, each_11.each)(arr, (it, i) => {
|
|
2381
2753
|
if ((0, isArray_9.isArray)(it[deepProperty])) {
|
|
2382
2754
|
let r = res.slice();
|
|
2383
2755
|
r.push(i);
|
|
@@ -2409,12 +2781,12 @@
|
|
|
2409
2781
|
};
|
|
2410
2782
|
exports.defaultConfirmFunction = defaultConfirmFunction;
|
|
2411
2783
|
});
|
|
2412
|
-
define("fn/defaultErrorFunction", ["require", "exports", "fn/log"], function (require, exports,
|
|
2784
|
+
define("fn/defaultErrorFunction", ["require", "exports", "fn/log"], function (require, exports, log_10) {
|
|
2413
2785
|
"use strict";
|
|
2414
2786
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2415
2787
|
exports.defaultErrorFunction = void 0;
|
|
2416
2788
|
const defaultErrorFunction = function (message) {
|
|
2417
|
-
(0,
|
|
2789
|
+
(0, log_10.log)(message);
|
|
2418
2790
|
};
|
|
2419
2791
|
exports.defaultErrorFunction = defaultErrorFunction;
|
|
2420
2792
|
});
|
|
@@ -2445,13 +2817,13 @@
|
|
|
2445
2817
|
};
|
|
2446
2818
|
exports.defaultResizeFunction = defaultResizeFunction;
|
|
2447
2819
|
});
|
|
2448
|
-
define("fn/deleteProp", ["require", "exports", "fn/checkType"], function (require, exports,
|
|
2820
|
+
define("fn/deleteProp", ["require", "exports", "fn/checkType"], function (require, exports, checkType_2) {
|
|
2449
2821
|
"use strict";
|
|
2450
2822
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2451
2823
|
exports.deleteProp = void 0;
|
|
2452
2824
|
const deleteProp = function (obj, prop) {
|
|
2453
|
-
(0,
|
|
2454
|
-
(0,
|
|
2825
|
+
(0, checkType_2.checkType)(obj, 'object', bbn._('The obj must be an object in setProp'));
|
|
2826
|
+
(0, checkType_2.checkType)(prop, 'string', bbn._('The prop must be a string in setProp'));
|
|
2455
2827
|
delete obj[prop];
|
|
2456
2828
|
};
|
|
2457
2829
|
exports.deleteProp = deleteProp;
|
|
@@ -2630,7 +3002,7 @@
|
|
|
2630
3002
|
};
|
|
2631
3003
|
exports.isCanvas = isCanvas;
|
|
2632
3004
|
});
|
|
2633
|
-
define("fn/downloadContent", ["require", "exports", "fn/isCanvas", "fn/isObject", "fn/isString", "fn/log"], function (require, exports, isCanvas_1, isObject_12, isString_11,
|
|
3005
|
+
define("fn/downloadContent", ["require", "exports", "fn/isCanvas", "fn/isObject", "fn/isString", "fn/log"], function (require, exports, isCanvas_1, isObject_12, isString_11, log_11) {
|
|
2634
3006
|
"use strict";
|
|
2635
3007
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2636
3008
|
exports.downloadContent = void 0;
|
|
@@ -2665,7 +3037,7 @@
|
|
|
2665
3037
|
src = content;
|
|
2666
3038
|
}
|
|
2667
3039
|
catch (e) {
|
|
2668
|
-
(0,
|
|
3040
|
+
(0, log_11.log)(e);
|
|
2669
3041
|
}
|
|
2670
3042
|
}
|
|
2671
3043
|
a.href = window.URL.createObjectURL(src);
|
|
@@ -2758,7 +3130,7 @@
|
|
|
2758
3130
|
};
|
|
2759
3131
|
exports.escapeTicks = escapeTicks;
|
|
2760
3132
|
});
|
|
2761
|
-
define("fn/escapeUrl", ["require", "exports", "fn/each", "fn/dirName", "fn/baseName", "fn/isString"], function (require, exports,
|
|
3133
|
+
define("fn/escapeUrl", ["require", "exports", "fn/each", "fn/dirName", "fn/baseName", "fn/isString"], function (require, exports, each_12, dirName_1, baseName_2, isString_15) {
|
|
2762
3134
|
"use strict";
|
|
2763
3135
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2764
3136
|
exports.escapeUrl = void 0;
|
|
@@ -2774,7 +3146,7 @@
|
|
|
2774
3146
|
st += '://';
|
|
2775
3147
|
url = url.substring(3);
|
|
2776
3148
|
}
|
|
2777
|
-
(0,
|
|
3149
|
+
(0, each_12.each)((0, dirName_1.dirName)(url).split('/'), (a) => {
|
|
2778
3150
|
st += encodeURIComponent(a) + '/';
|
|
2779
3151
|
});
|
|
2780
3152
|
let base = (0, baseName_2.baseName)(url);
|
|
@@ -2856,7 +3228,7 @@
|
|
|
2856
3228
|
};
|
|
2857
3229
|
exports.fieldValue = fieldValue;
|
|
2858
3230
|
});
|
|
2859
|
-
define("fn/findAll", ["require", "exports", "fn/search", "fn/each", "fn/isArray"], function (require, exports, search_5,
|
|
3231
|
+
define("fn/findAll", ["require", "exports", "fn/search", "fn/each", "fn/isArray"], function (require, exports, search_5, each_13, isArray_10) {
|
|
2860
3232
|
"use strict";
|
|
2861
3233
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2862
3234
|
exports.findAll = void 0;
|
|
@@ -2867,7 +3239,7 @@
|
|
|
2867
3239
|
res.push(arr[idx]);
|
|
2868
3240
|
start = idx + 1;
|
|
2869
3241
|
}
|
|
2870
|
-
(0,
|
|
3242
|
+
(0, each_13.each)(arr, (it) => {
|
|
2871
3243
|
if ((0, isArray_10.isArray)(it[deepProperty])) {
|
|
2872
3244
|
findAll(it[deepProperty], filter, deepProperty, res);
|
|
2873
3245
|
}
|
|
@@ -2920,7 +3292,7 @@
|
|
|
2920
3292
|
};
|
|
2921
3293
|
exports.forir = forir;
|
|
2922
3294
|
});
|
|
2923
|
-
define("fn/format", ["require", "exports", "fn/checkType"], function (require, exports,
|
|
3295
|
+
define("fn/format", ["require", "exports", "fn/checkType"], function (require, exports, checkType_3) {
|
|
2924
3296
|
"use strict";
|
|
2925
3297
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2926
3298
|
exports.format = void 0;
|
|
@@ -2930,7 +3302,7 @@
|
|
|
2930
3302
|
let i = 0;
|
|
2931
3303
|
return str.replace(/\%([d|s])/g, (match, type) => {
|
|
2932
3304
|
let tmp = args[i++];
|
|
2933
|
-
(0,
|
|
3305
|
+
(0, checkType_3.checkType)(tmp, type === 'd' ? 'number' : 'string', bbn._("The value doesn't correspond to the format"));
|
|
2934
3306
|
return tmp;
|
|
2935
3307
|
});
|
|
2936
3308
|
}
|
|
@@ -2975,7 +3347,7 @@
|
|
|
2975
3347
|
};
|
|
2976
3348
|
exports.formatSize = formatSize;
|
|
2977
3349
|
});
|
|
2978
|
-
define("fn/formdata", ["require", "exports", "fn/each", "fn/fieldValue", "fn/replaceAll", "fn/substr"], function (require, exports,
|
|
3350
|
+
define("fn/formdata", ["require", "exports", "fn/each", "fn/fieldValue", "fn/replaceAll", "fn/substr"], function (require, exports, each_14, fieldValue_1, replaceAll_3, substr_8) {
|
|
2979
3351
|
"use strict";
|
|
2980
3352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2981
3353
|
exports.formdata = void 0;
|
|
@@ -2984,7 +3356,7 @@
|
|
|
2984
3356
|
let res = {};
|
|
2985
3357
|
let n;
|
|
2986
3358
|
let v;
|
|
2987
|
-
(0,
|
|
3359
|
+
(0, each_14.each)($inputs, (input, i) => {
|
|
2988
3360
|
v = (0, fieldValue_1.fieldValue)(input);
|
|
2989
3361
|
if (v !== undefined && !input.disabled) {
|
|
2990
3362
|
let name = input.name;
|
|
@@ -3285,7 +3657,7 @@
|
|
|
3285
3657
|
};
|
|
3286
3658
|
exports.getDeviceType = getDeviceType;
|
|
3287
3659
|
});
|
|
3288
|
-
define("fn/getHTMLOfSelection", ["require", "exports", "fn/log"], function (require, exports,
|
|
3660
|
+
define("fn/getHTMLOfSelection", ["require", "exports", "fn/log"], function (require, exports, log_12) {
|
|
3289
3661
|
"use strict";
|
|
3290
3662
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3291
3663
|
exports.getHTMLOfSelection = void 0;
|
|
@@ -3294,9 +3666,9 @@
|
|
|
3294
3666
|
let selection = window.getSelection();
|
|
3295
3667
|
if (selection.rangeCount > 0) {
|
|
3296
3668
|
range = selection.getRangeAt(0);
|
|
3297
|
-
(0,
|
|
3669
|
+
(0, log_12.log)('RANGE', range);
|
|
3298
3670
|
let clonedSelection = range.cloneContents();
|
|
3299
|
-
(0,
|
|
3671
|
+
(0, log_12.log)('clonedSelection', clonedSelection);
|
|
3300
3672
|
let div = document.createElement('div');
|
|
3301
3673
|
div.appendChild(clonedSelection);
|
|
3302
3674
|
return div.innerHTML;
|
|
@@ -3307,7 +3679,7 @@
|
|
|
3307
3679
|
};
|
|
3308
3680
|
exports.getHTMLOfSelection = getHTMLOfSelection;
|
|
3309
3681
|
});
|
|
3310
|
-
define("fn/getEventData", ["require", "exports", "fn/getHTMLOfSelection", "fn/each", "fn/defaultErrorFunction"], function (require, exports, getHTMLOfSelection_1,
|
|
3682
|
+
define("fn/getEventData", ["require", "exports", "fn/getHTMLOfSelection", "fn/each", "fn/defaultErrorFunction"], function (require, exports, getHTMLOfSelection_1, each_15, defaultErrorFunction_1) {
|
|
3311
3683
|
"use strict";
|
|
3312
3684
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3313
3685
|
exports.getEventData = void 0;
|
|
@@ -3345,7 +3717,7 @@
|
|
|
3345
3717
|
if (!done) {
|
|
3346
3718
|
let strings = [];
|
|
3347
3719
|
let num = dt.items.length;
|
|
3348
|
-
(0,
|
|
3720
|
+
(0, each_15.each)(dt.items, (item, idx) => {
|
|
3349
3721
|
let kind = item.kind;
|
|
3350
3722
|
let type = item.type;
|
|
3351
3723
|
if (kind === 'file') {
|
|
@@ -3424,17 +3796,17 @@
|
|
|
3424
3796
|
};
|
|
3425
3797
|
exports.getField = getField;
|
|
3426
3798
|
});
|
|
3427
|
-
define("fn/getFieldValues", ["require", "exports", "fn/checkType", "fn/filter", "fn/each"], function (require, exports,
|
|
3799
|
+
define("fn/getFieldValues", ["require", "exports", "fn/checkType", "fn/filter", "fn/each"], function (require, exports, checkType_4, filter_3, each_16) {
|
|
3428
3800
|
"use strict";
|
|
3429
3801
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3430
3802
|
exports.getFieldValues = void 0;
|
|
3431
3803
|
const getFieldValues = function (arr, field, prop, val, operator) {
|
|
3432
|
-
(0,
|
|
3804
|
+
(0, checkType_4.checkType)(field, 'string');
|
|
3433
3805
|
if (prop) {
|
|
3434
3806
|
arr = (0, filter_3.filter)(arr, prop, val, operator);
|
|
3435
3807
|
}
|
|
3436
3808
|
let res = [];
|
|
3437
|
-
(0,
|
|
3809
|
+
(0, each_16.each)(arr, (a) => (res.indexOf(a[field]) === -1 ? res.push(a[field]) : null));
|
|
3438
3810
|
return res;
|
|
3439
3811
|
};
|
|
3440
3812
|
exports.getFieldValues = getFieldValues;
|
|
@@ -3510,13 +3882,13 @@
|
|
|
3510
3882
|
};
|
|
3511
3883
|
exports.getPath = getPath;
|
|
3512
3884
|
});
|
|
3513
|
-
define("fn/getProp", ["require", "exports", "fn/checkType"], function (require, exports,
|
|
3885
|
+
define("fn/getProp", ["require", "exports", "fn/checkType"], function (require, exports, checkType_5) {
|
|
3514
3886
|
"use strict";
|
|
3515
3887
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3516
3888
|
exports.getProp = void 0;
|
|
3517
3889
|
const getProp = function (obj, prop) {
|
|
3518
|
-
(0,
|
|
3519
|
-
(0,
|
|
3890
|
+
(0, checkType_5.checkType)(obj, 'object', bbn._('The obj must be an object in setProp'));
|
|
3891
|
+
(0, checkType_5.checkType)(prop, 'string', bbn._('The prop must be a string in setProp'));
|
|
3520
3892
|
return obj[prop];
|
|
3521
3893
|
};
|
|
3522
3894
|
exports.getProp = getProp;
|
|
@@ -3572,7 +3944,7 @@
|
|
|
3572
3944
|
};
|
|
3573
3945
|
exports.getTimeoff = getTimeoff;
|
|
3574
3946
|
});
|
|
3575
|
-
define("fn/happy", ["require", "exports", "fn/log"], function (require, exports,
|
|
3947
|
+
define("fn/happy", ["require", "exports", "fn/log"], function (require, exports, log_13) {
|
|
3576
3948
|
"use strict";
|
|
3577
3949
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3578
3950
|
exports.happy = void 0;
|
|
@@ -3581,7 +3953,7 @@
|
|
|
3581
3953
|
_bbn_console_level: 3,
|
|
3582
3954
|
_bbn_console_style: 'color: white; background: green; font-size: 18px;',
|
|
3583
3955
|
});
|
|
3584
|
-
|
|
3956
|
+
log_13.log.apply(this, args);
|
|
3585
3957
|
return this;
|
|
3586
3958
|
};
|
|
3587
3959
|
exports.happy = happy;
|
|
@@ -3647,7 +4019,7 @@
|
|
|
3647
4019
|
};
|
|
3648
4020
|
exports.imgToBase64 = imgToBase64;
|
|
3649
4021
|
});
|
|
3650
|
-
define("fn/info", ["require", "exports", "fn/log"], function (require, exports,
|
|
4022
|
+
define("fn/info", ["require", "exports", "fn/log"], function (require, exports, log_14) {
|
|
3651
4023
|
"use strict";
|
|
3652
4024
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3653
4025
|
exports.info = void 0;
|
|
@@ -3657,7 +4029,7 @@
|
|
|
3657
4029
|
_bbn_console_level: 4,
|
|
3658
4030
|
_bbn_console_style: 'color: #EEE; background: blue; font-size: 12px;',
|
|
3659
4031
|
});
|
|
3660
|
-
|
|
4032
|
+
log_14.log.apply(this, args);
|
|
3661
4033
|
return this;
|
|
3662
4034
|
};
|
|
3663
4035
|
exports.info = info;
|
|
@@ -3797,7 +4169,7 @@
|
|
|
3797
4169
|
};
|
|
3798
4170
|
exports.setNavigationVars = setNavigationVars;
|
|
3799
4171
|
});
|
|
3800
|
-
define("fn/link", ["require", "exports", "fn/treatAjaxArguments", "fn/getLoader", "fn/defaultPreLinkFunction", "fn/ajax", "fn/log", "fn/isObject", "fn/callback", "fn/setNavigationVars"], function (require, exports, treatAjaxArguments_1, getLoader_3, defaultPreLinkFunction_1, ajax_2,
|
|
4172
|
+
define("fn/link", ["require", "exports", "fn/treatAjaxArguments", "fn/getLoader", "fn/defaultPreLinkFunction", "fn/ajax", "fn/log", "fn/isObject", "fn/callback", "fn/setNavigationVars"], function (require, exports, treatAjaxArguments_1, getLoader_3, defaultPreLinkFunction_1, ajax_2, log_15, isObject_15, callback_1, setNavigationVars_1) {
|
|
3801
4173
|
"use strict";
|
|
3802
4174
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3803
4175
|
exports.link = void 0;
|
|
@@ -3871,12 +4243,12 @@
|
|
|
3871
4243
|
let errSt = bbn._('The Ajax call to') + ' ' + cfg.url + ' ';
|
|
3872
4244
|
return (0, ajax_2.ajax)(cfg.url, cfg.datatype, cfg.obj, function (res) {
|
|
3873
4245
|
if (!res) {
|
|
3874
|
-
(0,
|
|
4246
|
+
(0, log_15.log)(errSt + bbn._('returned no answer'));
|
|
3875
4247
|
}
|
|
3876
4248
|
if ((0, isObject_15.isObject)(res)) {
|
|
3877
4249
|
// If there's nothing in the result, just an empty object, the callback stops here and the URL is not changed
|
|
3878
4250
|
if (Object.keys(res).length === 0) {
|
|
3879
|
-
(0,
|
|
4251
|
+
(0, log_15.log)(errSt + bbn._('returned an empty object'));
|
|
3880
4252
|
}
|
|
3881
4253
|
if (res.new_url) {
|
|
3882
4254
|
res.old_path = cfg.url;
|
|
@@ -3949,7 +4321,7 @@
|
|
|
3949
4321
|
};
|
|
3950
4322
|
exports.submit = submit;
|
|
3951
4323
|
});
|
|
3952
|
-
define("fn/resize", ["require", "exports", "fn/getCssVar", "fn/each", "fn/defaultResizeFunction"], function (require, exports, getCssVar_1,
|
|
4324
|
+
define("fn/resize", ["require", "exports", "fn/getCssVar", "fn/each", "fn/defaultResizeFunction"], function (require, exports, getCssVar_1, each_17, defaultResizeFunction_1) {
|
|
3953
4325
|
"use strict";
|
|
3954
4326
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3955
4327
|
exports.resize = void 0;
|
|
@@ -3971,7 +4343,7 @@
|
|
|
3971
4343
|
let newCls = 'bbn-screen-' + (bbn.env.width < smallWidth ? 'small' : 'regular');
|
|
3972
4344
|
let classes = (document.body.className || '').split(' ');
|
|
3973
4345
|
let done = false;
|
|
3974
|
-
(0,
|
|
4346
|
+
(0, each_17.each)(classes, (cls, idx) => {
|
|
3975
4347
|
let bits = cls.split('-');
|
|
3976
4348
|
if (bits.length === 3 && cls.indexOf('bbn-screen-') === 0) {
|
|
3977
4349
|
done = true;
|
|
@@ -4017,7 +4389,7 @@
|
|
|
4017
4389
|
};
|
|
4018
4390
|
exports.isMobile = isMobile;
|
|
4019
4391
|
});
|
|
4020
|
-
define("fn/init", ["require", "exports", "fn/substr", "fn/each", "fn/extend", "fn/addColors", "fn/link", "fn/submit", "fn/resize", "fn/isMobile", "fn/isTabletDevice", "fn/defaultHistoryFunction", "fn/isFunction", "fn/log"], function (require, exports, substr_11,
|
|
4392
|
+
define("fn/init", ["require", "exports", "fn/substr", "fn/each", "fn/extend", "fn/addColors", "fn/link", "fn/submit", "fn/resize", "fn/isMobile", "fn/isTabletDevice", "fn/defaultHistoryFunction", "fn/isFunction", "fn/log"], function (require, exports, substr_11, each_18, extend_6, addColors_1, link_1, submit_1, resize_1, isMobile_1, isTabletDevice_2, defaultHistoryFunction_1, isFunction_9, log_16) {
|
|
4021
4393
|
"use strict";
|
|
4022
4394
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4023
4395
|
exports.init = void 0;
|
|
@@ -4029,7 +4401,7 @@
|
|
|
4029
4401
|
bbn.env.root += '/';
|
|
4030
4402
|
}
|
|
4031
4403
|
if (!bbn.env.isInit && typeof dayjs !== 'undefined') {
|
|
4032
|
-
(0,
|
|
4404
|
+
(0, each_18.each)([
|
|
4033
4405
|
'advancedFormat',
|
|
4034
4406
|
'arraySupport',
|
|
4035
4407
|
'badMutable',
|
|
@@ -4076,7 +4448,7 @@
|
|
|
4076
4448
|
bbn.env.path = (0, substr_11.substr)(bbn.env.url, bbn.env.root.length);
|
|
4077
4449
|
parts = bbn.env.path.split('/');
|
|
4078
4450
|
//$.each(parts, function(i, v){
|
|
4079
|
-
(0,
|
|
4451
|
+
(0, each_18.each)(parts, (v, i) => {
|
|
4080
4452
|
v = decodeURI(v.trim());
|
|
4081
4453
|
if (v !== '') {
|
|
4082
4454
|
bbn.env.params.push(v);
|
|
@@ -4129,7 +4501,7 @@
|
|
|
4129
4501
|
return false;
|
|
4130
4502
|
}
|
|
4131
4503
|
});
|
|
4132
|
-
(0,
|
|
4504
|
+
(0, each_18.each)(document.querySelectorAll('form:not(.bbn-no), form:not(.bbn-form)'), (ele) => {
|
|
4133
4505
|
ele.addEventListener('submit', (e) => {
|
|
4134
4506
|
(0, submit_1.submit)(ele, e);
|
|
4135
4507
|
});
|
|
@@ -4171,7 +4543,7 @@
|
|
|
4171
4543
|
bbn.env.isInit = true;
|
|
4172
4544
|
document.dispatchEvent(new Event('bbninit'));
|
|
4173
4545
|
if (bbn.env.logging) {
|
|
4174
|
-
(0,
|
|
4546
|
+
(0, log_16.log)('Logging in bbn is enabled');
|
|
4175
4547
|
}
|
|
4176
4548
|
}
|
|
4177
4549
|
};
|
|
@@ -4366,7 +4738,7 @@
|
|
|
4366
4738
|
};
|
|
4367
4739
|
exports.isHostname = isHostname;
|
|
4368
4740
|
});
|
|
4369
|
-
define("fn/isInside", ["require", "exports", "fn/getAncestors", "fn/isString", "fn/each"], function (require, exports, getAncestors_1, isString_23,
|
|
4741
|
+
define("fn/isInside", ["require", "exports", "fn/getAncestors", "fn/isString", "fn/each"], function (require, exports, getAncestors_1, isString_23, each_19) {
|
|
4370
4742
|
"use strict";
|
|
4371
4743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4372
4744
|
exports.isInside = void 0;
|
|
@@ -4375,7 +4747,7 @@
|
|
|
4375
4747
|
if (ancestors.length) {
|
|
4376
4748
|
if ((0, isString_23.isString)(ancestor)) {
|
|
4377
4749
|
let ok = false;
|
|
4378
|
-
(0,
|
|
4750
|
+
(0, each_19.each)(ancestors, (a) => {
|
|
4379
4751
|
if (a.matches && a.matches(ancestor)) {
|
|
4380
4752
|
ok = true;
|
|
4381
4753
|
return false;
|
|
@@ -4439,13 +4811,13 @@
|
|
|
4439
4811
|
};
|
|
4440
4812
|
exports.isPromise = isPromise;
|
|
4441
4813
|
});
|
|
4442
|
-
define("fn/isPropSize", ["require", "exports", "fn/each"], function (require, exports,
|
|
4814
|
+
define("fn/isPropSize", ["require", "exports", "fn/each"], function (require, exports, each_20) {
|
|
4443
4815
|
"use strict";
|
|
4444
4816
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4445
4817
|
exports.isPropSize = void 0;
|
|
4446
4818
|
const isPropSize = function (name) {
|
|
4447
4819
|
let isTrue = false;
|
|
4448
|
-
(0,
|
|
4820
|
+
(0, each_20.each)(['width', 'height', 'gap', 'margin', 'padding', 'top', 'left', 'right', 'bottom'], (a) => {
|
|
4449
4821
|
if (name.indexOf(a) !== -1) {
|
|
4450
4822
|
isTrue = true;
|
|
4451
4823
|
return false;
|
|
@@ -4584,7 +4956,7 @@
|
|
|
4584
4956
|
};
|
|
4585
4957
|
exports.lightenDarkenHex = lightenDarkenHex;
|
|
4586
4958
|
});
|
|
4587
|
-
define("fn/warning", ["require", "exports", "fn/log"], function (require, exports,
|
|
4959
|
+
define("fn/warning", ["require", "exports", "fn/log"], function (require, exports, log_17) {
|
|
4588
4960
|
"use strict";
|
|
4589
4961
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4590
4962
|
exports.warning = void 0;
|
|
@@ -4596,11 +4968,11 @@
|
|
|
4596
4968
|
_bbn_console_style: 'color: #E64141; background: #F7E195; font-size: 14px',
|
|
4597
4969
|
};
|
|
4598
4970
|
args.unshift(obj);
|
|
4599
|
-
|
|
4971
|
+
log_17.log.apply(this, args);
|
|
4600
4972
|
};
|
|
4601
4973
|
exports.warning = warning;
|
|
4602
4974
|
});
|
|
4603
|
-
define("fn/makeReactive", ["require", "exports", "fn/log", "fn/createObject", "fn/isSymbol", "fn/isNumber", "fn/isArray", "fn/warning", "fn/isFunction", "fn/isSame"], function (require, exports,
|
|
4975
|
+
define("fn/makeReactive", ["require", "exports", "fn/log", "fn/createObject", "fn/isSymbol", "fn/isNumber", "fn/isArray", "fn/warning", "fn/isFunction", "fn/isSame"], function (require, exports, log_18, createObject_2, isSymbol_1, isNumber_8, isArray_13, warning_1, isFunction_10, isSame_2) {
|
|
4604
4976
|
"use strict";
|
|
4605
4977
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4606
4978
|
exports.makeReactive = void 0;
|
|
@@ -4612,7 +4984,7 @@
|
|
|
4612
4984
|
return obj;
|
|
4613
4985
|
}
|
|
4614
4986
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
4615
|
-
(0,
|
|
4987
|
+
(0, log_18.log)(['MAKING bbn-loadbar', obj]);
|
|
4616
4988
|
}
|
|
4617
4989
|
if (!obj.__bbnWatchers) {
|
|
4618
4990
|
Reflect.defineProperty(obj, '__bbnWatchers', {
|
|
@@ -4636,7 +5008,7 @@
|
|
|
4636
5008
|
return function (...args) {
|
|
4637
5009
|
let res = realTarget[key](...args);
|
|
4638
5010
|
(0, warning_1.warning)('DOING ARRAY STUFF');
|
|
4639
|
-
(0,
|
|
5011
|
+
(0, log_18.log)(target.__bbnParent);
|
|
4640
5012
|
onSet(target, 'length', parent);
|
|
4641
5013
|
return res;
|
|
4642
5014
|
};
|
|
@@ -4703,7 +5075,7 @@
|
|
|
4703
5075
|
return Reflect.get(target, key);
|
|
4704
5076
|
}
|
|
4705
5077
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
4706
|
-
(0,
|
|
5078
|
+
(0, log_18.log)(['Setting proxy prop in ' + parent.$options.name, target, key, value]);
|
|
4707
5079
|
}
|
|
4708
5080
|
if (!(0, isSame_2.isSame)(realTarget[key], value)) {
|
|
4709
5081
|
if (key.indexOf('__bbn_') === 0) {
|
|
@@ -4731,7 +5103,7 @@
|
|
|
4731
5103
|
}
|
|
4732
5104
|
}
|
|
4733
5105
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
4734
|
-
(0,
|
|
5106
|
+
(0, log_18.log)([
|
|
4735
5107
|
'Setting proxy prop in ' +
|
|
4736
5108
|
parent.$options.name +
|
|
4737
5109
|
' ' +
|
|
@@ -4953,7 +5325,7 @@
|
|
|
4953
5325
|
};
|
|
4954
5326
|
exports.nl2br = nl2br;
|
|
4955
5327
|
});
|
|
4956
|
-
define("fn/objectToFormData", ["require", "exports", "fn/isArray", "fn/each", "fn/isObject", "fn/iterate", "fn/isNull"], function (require, exports, isArray_15,
|
|
5328
|
+
define("fn/objectToFormData", ["require", "exports", "fn/isArray", "fn/each", "fn/isObject", "fn/iterate", "fn/isNull"], function (require, exports, isArray_15, each_21, isObject_16, iterate_9, isNull_3) {
|
|
4957
5329
|
"use strict";
|
|
4958
5330
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4959
5331
|
exports.objectToFormData = void 0;
|
|
@@ -4965,12 +5337,12 @@
|
|
|
4965
5337
|
formData.append(key, data);
|
|
4966
5338
|
}
|
|
4967
5339
|
else if ((0, isArray_15.isArray)(data)) {
|
|
4968
|
-
(0,
|
|
5340
|
+
(0, each_21.each)(data, (v, i) => {
|
|
4969
5341
|
appendFormData(v, key + '[' + i + ']');
|
|
4970
5342
|
});
|
|
4971
5343
|
}
|
|
4972
5344
|
else if ((0, isObject_16.isObject)(data) && Object.keys(data).length) {
|
|
4973
|
-
(0,
|
|
5345
|
+
(0, iterate_9.iterate)(data, (v, i) => {
|
|
4974
5346
|
if (i in data) {
|
|
4975
5347
|
appendFormData(v, !key ? i : key + '[' + i + ']');
|
|
4976
5348
|
}
|
|
@@ -5309,12 +5681,12 @@
|
|
|
5309
5681
|
};
|
|
5310
5682
|
exports.rgb2hex = rgb2hex;
|
|
5311
5683
|
});
|
|
5312
|
-
define("fn/riterate", ["require", "exports", "fn/iterate"], function (require, exports,
|
|
5684
|
+
define("fn/riterate", ["require", "exports", "fn/iterate"], function (require, exports, iterate_10) {
|
|
5313
5685
|
"use strict";
|
|
5314
5686
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5315
5687
|
exports.riterate = void 0;
|
|
5316
5688
|
const riterate = function (obj, fn, noPrivate) {
|
|
5317
|
-
return (0,
|
|
5689
|
+
return (0, iterate_10.iterate)(obj, fn, noPrivate, true);
|
|
5318
5690
|
};
|
|
5319
5691
|
exports.riterate = riterate;
|
|
5320
5692
|
});
|
|
@@ -5443,7 +5815,7 @@
|
|
|
5443
5815
|
};
|
|
5444
5816
|
exports.setProp = setProp;
|
|
5445
5817
|
});
|
|
5446
|
-
define("fn/setProperty", ["require", "exports", "fn/each"], function (require, exports,
|
|
5818
|
+
define("fn/setProperty", ["require", "exports", "fn/each"], function (require, exports, each_22) {
|
|
5447
5819
|
"use strict";
|
|
5448
5820
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5449
5821
|
exports.setProperty = void 0;
|
|
@@ -5451,7 +5823,7 @@
|
|
|
5451
5823
|
if (typeof obj === 'object' && typeof prop === 'string') {
|
|
5452
5824
|
let o = obj;
|
|
5453
5825
|
const bits = prop.split('.');
|
|
5454
|
-
(0,
|
|
5826
|
+
(0, each_22.each)(bits, (v, i) => {
|
|
5455
5827
|
if (!o) {
|
|
5456
5828
|
if (!force) {
|
|
5457
5829
|
throw new Error(bbn._('The object is invalid'));
|
|
@@ -5489,13 +5861,13 @@
|
|
|
5489
5861
|
};
|
|
5490
5862
|
exports.shorten = shorten;
|
|
5491
5863
|
});
|
|
5492
|
-
define("fn/shortenObj", ["require", "exports", "fn/clone", "fn/each", "fn/isString", "fn/shorten"], function (require, exports, clone_1,
|
|
5864
|
+
define("fn/shortenObj", ["require", "exports", "fn/clone", "fn/each", "fn/isString", "fn/shorten"], function (require, exports, clone_1, each_23, isString_26, shorten_1) {
|
|
5493
5865
|
"use strict";
|
|
5494
5866
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5495
5867
|
exports.shortenObj = void 0;
|
|
5496
5868
|
const shortenObj = function (obj, max = 100) {
|
|
5497
5869
|
let o = (0, clone_1.clone)(obj);
|
|
5498
|
-
(0,
|
|
5870
|
+
(0, each_23.each)(o, (a, n) => {
|
|
5499
5871
|
if ((0, isString_26.isString)(a) && a.length > max) {
|
|
5500
5872
|
o[n] = (0, shorten_1.shorten)(a, max);
|
|
5501
5873
|
}
|
|
@@ -5525,7 +5897,7 @@
|
|
|
5525
5897
|
};
|
|
5526
5898
|
exports.shuffle = shuffle;
|
|
5527
5899
|
});
|
|
5528
|
-
define("fn/chrono", ["require", "exports", "fn/each"], function (require, exports,
|
|
5900
|
+
define("fn/chrono", ["require", "exports", "fn/each"], function (require, exports, each_24) {
|
|
5529
5901
|
"use strict";
|
|
5530
5902
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5531
5903
|
exports.stopChrono = exports.startChrono = void 0;
|
|
@@ -5534,7 +5906,7 @@
|
|
|
5534
5906
|
let now = new Date().getTime();
|
|
5535
5907
|
let h1 = 3600 * 1000;
|
|
5536
5908
|
if (_private.length) {
|
|
5537
|
-
(0,
|
|
5909
|
+
(0, each_24.each)(_private, (t, n) => {
|
|
5538
5910
|
if (now - t > h1) {
|
|
5539
5911
|
delete _private[n];
|
|
5540
5912
|
}
|
|
@@ -5621,13 +5993,13 @@
|
|
|
5621
5993
|
};
|
|
5622
5994
|
exports.string2ArrayBuffer = string2ArrayBuffer;
|
|
5623
5995
|
});
|
|
5624
|
-
define("fn/sum", ["require", "exports", "fn/each", "fn/filter"], function (require, exports,
|
|
5996
|
+
define("fn/sum", ["require", "exports", "fn/each", "fn/filter"], function (require, exports, each_25, filter_5) {
|
|
5625
5997
|
"use strict";
|
|
5626
5998
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5627
5999
|
exports.sum = void 0;
|
|
5628
6000
|
const sum = function (arr, numberProp, prop, val, operator) {
|
|
5629
6001
|
let r = 0;
|
|
5630
|
-
(0,
|
|
6002
|
+
(0, each_25.each)((0, filter_5.filter)(arr, prop, val, operator), (a) => {
|
|
5631
6003
|
let tmp = typeof numberProp === 'function' ? numberProp(a) : a[numberProp];
|
|
5632
6004
|
if (tmp) {
|
|
5633
6005
|
r += parseFloat(tmp) || 0;
|
|
@@ -5647,7 +6019,7 @@
|
|
|
5647
6019
|
};
|
|
5648
6020
|
exports.timestamp = timestamp;
|
|
5649
6021
|
});
|
|
5650
|
-
define("fn/toCSV", ["require", "exports", "fn/each", "fn/isArray", "fn/replaceAll"], function (require, exports,
|
|
6022
|
+
define("fn/toCSV", ["require", "exports", "fn/each", "fn/isArray", "fn/replaceAll"], function (require, exports, each_26, isArray_17, replaceAll_7) {
|
|
5651
6023
|
"use strict";
|
|
5652
6024
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5653
6025
|
exports.toCSV = void 0;
|
|
@@ -5660,10 +6032,10 @@
|
|
|
5660
6032
|
}
|
|
5661
6033
|
let csvContent = '';
|
|
5662
6034
|
let total = arr.length;
|
|
5663
|
-
(0,
|
|
6035
|
+
(0, each_26.each)(arr, (a, i) => {
|
|
5664
6036
|
let num = (0, isArray_17.isArray)(a) ? a.length : Object.values(a).length;
|
|
5665
6037
|
let j = 0;
|
|
5666
|
-
(0,
|
|
6038
|
+
(0, each_26.each)(a, (b) => {
|
|
5667
6039
|
if (typeof b === 'string') {
|
|
5668
6040
|
csvContent += valEsc + (0, replaceAll_7.replaceAll)(valEsc, '\\' + valEsc, b) + valEsc;
|
|
5669
6041
|
}
|
|
@@ -5732,19 +6104,19 @@
|
|
|
5732
6104
|
};
|
|
5733
6105
|
exports.toggleFullScreen = toggleFullScreen;
|
|
5734
6106
|
});
|
|
5735
|
-
define("fn/translate", ["require", "exports", "fn/iterate"], function (require, exports,
|
|
6107
|
+
define("fn/translate", ["require", "exports", "fn/iterate"], function (require, exports, iterate_11) {
|
|
5736
6108
|
"use strict";
|
|
5737
6109
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5738
6110
|
exports.translate = void 0;
|
|
5739
6111
|
const translate = function (o, namespace) {
|
|
5740
6112
|
let lng = namespace ? bbn.lng[namespace.indexOf('_') === 0 ? namespace : '_' + namespace] : bbn.lng;
|
|
5741
|
-
(0,
|
|
6113
|
+
(0, iterate_11.iterate)(o, (v, k) => {
|
|
5742
6114
|
lng[k] = v;
|
|
5743
6115
|
});
|
|
5744
6116
|
};
|
|
5745
6117
|
exports.translate = translate;
|
|
5746
6118
|
});
|
|
5747
|
-
define("fn/uniqString", ["require", "exports", "fn/isArray", "fn/each", "fn/md5"], function (require, exports, isArray_18,
|
|
6119
|
+
define("fn/uniqString", ["require", "exports", "fn/isArray", "fn/each", "fn/md5"], function (require, exports, isArray_18, each_27, md5_3) {
|
|
5748
6120
|
"use strict";
|
|
5749
6121
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5750
6122
|
exports.uniqString = void 0;
|
|
@@ -5762,7 +6134,7 @@
|
|
|
5762
6134
|
// An object with the same properties, even in different order, should produce the same answer
|
|
5763
6135
|
let tmp = {};
|
|
5764
6136
|
let ks = Object.keys(args[i]).sort();
|
|
5765
|
-
(0,
|
|
6137
|
+
(0, each_27.each)(ks, (k) => {
|
|
5766
6138
|
tmp[k] = args[i][k];
|
|
5767
6139
|
});
|
|
5768
6140
|
st += JSON.stringify(tmp);
|
|
@@ -5779,7 +6151,7 @@
|
|
|
5779
6151
|
};
|
|
5780
6152
|
exports.uniqString = uniqString;
|
|
5781
6153
|
});
|
|
5782
|
-
define("fn/upload", ["require", "exports", "fn/objectToFormData", "fn/log"], function (require, exports, objectToFormData_1,
|
|
6154
|
+
define("fn/upload", ["require", "exports", "fn/objectToFormData", "fn/log"], function (require, exports, objectToFormData_1, log_19) {
|
|
5783
6155
|
"use strict";
|
|
5784
6156
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5785
6157
|
exports.upload = void 0;
|
|
@@ -5804,13 +6176,13 @@
|
|
|
5804
6176
|
return fn()
|
|
5805
6177
|
.then((res) => {
|
|
5806
6178
|
if (success) {
|
|
5807
|
-
(0,
|
|
6179
|
+
(0, log_19.log)('SUCCESS', res);
|
|
5808
6180
|
success(res);
|
|
5809
6181
|
}
|
|
5810
6182
|
})
|
|
5811
6183
|
.catch((err) => {
|
|
5812
6184
|
if (failure) {
|
|
5813
|
-
(0,
|
|
6185
|
+
(0, log_19.log)('ERROR', err);
|
|
5814
6186
|
failure(err);
|
|
5815
6187
|
}
|
|
5816
6188
|
});
|
|
@@ -5818,7 +6190,244 @@
|
|
|
5818
6190
|
};
|
|
5819
6191
|
exports.upload = upload;
|
|
5820
6192
|
});
|
|
5821
|
-
define("
|
|
6193
|
+
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_28, 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_12, lightenDarkenHex_1, link_2, log_20, 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) {
|
|
6194
|
+
"use strict";
|
|
6195
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6196
|
+
exports.fn = void 0;
|
|
6197
|
+
const fn = {
|
|
6198
|
+
_addLoader: _addLoader_2._addLoader,
|
|
6199
|
+
_compareValues: _compareValues_3._compareValues,
|
|
6200
|
+
_deleteLoader: _deleteLoader_2._deleteLoader,
|
|
6201
|
+
abort: abort_1.abort,
|
|
6202
|
+
abortURL: abortURL_1.abortURL,
|
|
6203
|
+
addColors: addColors_2.addColors,
|
|
6204
|
+
addInputs: addInputs_2.addInputs,
|
|
6205
|
+
addStyle: addStyle_1.addStyle,
|
|
6206
|
+
adjustHeight: adjustHeight_1.adjustHeight,
|
|
6207
|
+
adjustSize: adjustSize_3.adjustSize,
|
|
6208
|
+
adjustWidth: adjustWidth_1.adjustWidth,
|
|
6209
|
+
ajax: ajax_4.ajax,
|
|
6210
|
+
analyzeFunction: analyzeFunction_1.analyzeFunction,
|
|
6211
|
+
animateCss: animateCss_1.animateCss,
|
|
6212
|
+
arrayBuffer2String: arrayBuffer2String_1.arrayBuffer2String,
|
|
6213
|
+
arrayFromProp: arrayFromProp_1.arrayFromProp,
|
|
6214
|
+
autoExtend: autoExtend_1.autoExtend,
|
|
6215
|
+
baseName: baseName_3.baseName,
|
|
6216
|
+
br2nl: br2nl_1.br2nl,
|
|
6217
|
+
calendar: calendar_1.calendar,
|
|
6218
|
+
callback: callback_3.callback,
|
|
6219
|
+
camelize: camelize_1.camelize,
|
|
6220
|
+
camelToCss: camelToCss_1.camelToCss,
|
|
6221
|
+
canvasToImage: canvasToImage_1.canvasToImage,
|
|
6222
|
+
center: center_1.center,
|
|
6223
|
+
checkProps: checkProps_1.checkProps,
|
|
6224
|
+
checkPropsDetails: checkPropsDetails_3.checkPropsDetails,
|
|
6225
|
+
checkPropsOrDie: checkPropsOrDie_1.checkPropsOrDie,
|
|
6226
|
+
checkType: checkType_6.checkType,
|
|
6227
|
+
circularReplacer: circularReplacer_2.circularReplacer,
|
|
6228
|
+
clone: clone_2.clone,
|
|
6229
|
+
colorToHex: colorToHex_1.colorToHex,
|
|
6230
|
+
compare: compare_2.compare,
|
|
6231
|
+
compareConditions: compareConditions_3.compareConditions,
|
|
6232
|
+
copy: copy_1.copy,
|
|
6233
|
+
correctCase: correctCase_2.correctCase,
|
|
6234
|
+
count: count_1.count,
|
|
6235
|
+
crc32: crc32_1.crc32,
|
|
6236
|
+
createObject: createObject_4.createObject,
|
|
6237
|
+
cssExists: cssExists_1.cssExists,
|
|
6238
|
+
date: date_8.date,
|
|
6239
|
+
dateSQL: dateSQL_1.dateSQL,
|
|
6240
|
+
daysInMonth: daysInMonth_1.daysInMonth,
|
|
6241
|
+
deepPath: deepPath_1.deepPath,
|
|
6242
|
+
defaultAjaxAbortFunction: defaultAjaxAbortFunction_2.defaultAjaxAbortFunction,
|
|
6243
|
+
defaultAjaxErrorFunction: defaultAjaxErrorFunction_3.defaultAjaxErrorFunction,
|
|
6244
|
+
defaultAlertFunction: defaultAlertFunction_2.defaultAlertFunction,
|
|
6245
|
+
defaultConfirmFunction: defaultConfirmFunction_1.defaultConfirmFunction,
|
|
6246
|
+
defaultEndLoadingFunction: defaultEndLoadingFunction_2.defaultEndLoadingFunction,
|
|
6247
|
+
defaultErrorFunction: defaultErrorFunction_2.defaultErrorFunction,
|
|
6248
|
+
defaultHistoryFunction: defaultHistoryFunction_2.defaultHistoryFunction,
|
|
6249
|
+
defaultLinkFunction: defaultLinkFunction_2.defaultLinkFunction,
|
|
6250
|
+
defaultPostLinkFunction: defaultPostLinkFunction_2.defaultPostLinkFunction,
|
|
6251
|
+
defaultPreLinkFunction: defaultPreLinkFunction_2.defaultPreLinkFunction,
|
|
6252
|
+
defaultResizeFunction: defaultResizeFunction_2.defaultResizeFunction,
|
|
6253
|
+
defaultStartLoadingFunction: defaultStartLoadingFunction_2.defaultStartLoadingFunction,
|
|
6254
|
+
deleteProp: deleteProp_1.deleteProp,
|
|
6255
|
+
diffObj: diffObj_1.diffObj,
|
|
6256
|
+
dirName: dirName_2.dirName,
|
|
6257
|
+
download: download_1.download,
|
|
6258
|
+
downloadContent: downloadContent_2.downloadContent,
|
|
6259
|
+
each: each_28.each,
|
|
6260
|
+
eraseCookie: eraseCookie_1.eraseCookie,
|
|
6261
|
+
error: error_4.error,
|
|
6262
|
+
escapeDquotes: escapeDquotes_1.escapeDquotes,
|
|
6263
|
+
escapeRegExp: escapeRegExp_3.escapeRegExp,
|
|
6264
|
+
escapeSquotes: escapeSquotes_1.escapeSquotes,
|
|
6265
|
+
escapeTicks: escapeTicks_1.escapeTicks,
|
|
6266
|
+
escapeUrl: escapeUrl_1.escapeUrl,
|
|
6267
|
+
extend: extend_7.extend,
|
|
6268
|
+
extendOut: extendOut_1.extendOut,
|
|
6269
|
+
fdate: fdate_2.fdate,
|
|
6270
|
+
fdatetime: fdatetime_2.fdatetime,
|
|
6271
|
+
fieldValue: fieldValue_2.fieldValue,
|
|
6272
|
+
fileExt: fileExt_2.fileExt,
|
|
6273
|
+
filter: filter_6.filter,
|
|
6274
|
+
filterToConditions: filterToConditions_3.filterToConditions,
|
|
6275
|
+
findAll: findAll_1.findAll,
|
|
6276
|
+
fori: fori_1.fori,
|
|
6277
|
+
forir: forir_1.forir,
|
|
6278
|
+
format: format_1.format,
|
|
6279
|
+
formatBytes: formatBytes_1.formatBytes,
|
|
6280
|
+
formatDate: formatDate_1.formatDate,
|
|
6281
|
+
formatSize: formatSize_1.formatSize,
|
|
6282
|
+
formdata: formdata_2.formdata,
|
|
6283
|
+
fromXml: fromXml_1.fromXml,
|
|
6284
|
+
ftime: ftime_1.ftime,
|
|
6285
|
+
getAllTags: getAllTags_1.getAllTags,
|
|
6286
|
+
getAncestors: getAncestors_2.getAncestors,
|
|
6287
|
+
getAttributes: getAttributes_1.getAttributes,
|
|
6288
|
+
getBrowserName: getBrowserName_1.getBrowserName,
|
|
6289
|
+
getBrowserVersion: getBrowserVersion_1.getBrowserVersion,
|
|
6290
|
+
getCookie: getCookie_1.getCookie,
|
|
6291
|
+
getCssVar: getCssVar_2.getCssVar,
|
|
6292
|
+
getDay: getDay_1.getDay,
|
|
6293
|
+
getDeviceType: getDeviceType_4.getDeviceType,
|
|
6294
|
+
getEventData: getEventData_1.getEventData,
|
|
6295
|
+
getField: getField_1.getField,
|
|
6296
|
+
getFieldValues: getFieldValues_1.getFieldValues,
|
|
6297
|
+
getHtml: getHtml_1.getHtml,
|
|
6298
|
+
getHTMLOfSelection: getHTMLOfSelection_2.getHTMLOfSelection,
|
|
6299
|
+
getLoader: getLoader_4.getLoader,
|
|
6300
|
+
getPath: getPath_1.getPath,
|
|
6301
|
+
getProp: getProp_1.getProp,
|
|
6302
|
+
getProperty: getProperty_4.getProperty,
|
|
6303
|
+
getRequestId: getRequestId_2.getRequestId,
|
|
6304
|
+
getRow: getRow_3.getRow,
|
|
6305
|
+
getScrollBarSize: getScrollBarSize_1.getScrollBarSize,
|
|
6306
|
+
getText: getText_1.getText,
|
|
6307
|
+
getTimeoff: getTimeoff_1.getTimeoff,
|
|
6308
|
+
happy: happy_1.happy,
|
|
6309
|
+
hash: hash_2.hash,
|
|
6310
|
+
hex2rgb: hex2rgb_1.hex2rgb,
|
|
6311
|
+
history: history_1.history,
|
|
6312
|
+
html2text: html2text_2.html2text,
|
|
6313
|
+
imageToCanvas: imageToCanvas_2.imageToCanvas,
|
|
6314
|
+
imgToBase64: imgToBase64_1.imgToBase64,
|
|
6315
|
+
info: info_1.info,
|
|
6316
|
+
init: init_1.init,
|
|
6317
|
+
isActiveInterface: isActiveInterface_1.isActiveInterface,
|
|
6318
|
+
isArray: isArray_19.isArray,
|
|
6319
|
+
isBlob: isBlob_2.isBlob,
|
|
6320
|
+
isBoolean: isBoolean_1.isBoolean,
|
|
6321
|
+
isCanvas: isCanvas_2.isCanvas,
|
|
6322
|
+
isColor: isColor_1.isColor,
|
|
6323
|
+
isComment: isComment_1.isComment,
|
|
6324
|
+
isCp: isCp_3.isCp,
|
|
6325
|
+
isDate: isDate_8.isDate,
|
|
6326
|
+
isDesktopDevice: isDesktopDevice_1.isDesktopDevice,
|
|
6327
|
+
isDimension: isDimension_1.isDimension,
|
|
6328
|
+
isDom: isDom_5.isDom,
|
|
6329
|
+
isEmail: isEmail_1.isEmail,
|
|
6330
|
+
isEmpty: isEmpty_2.isEmpty,
|
|
6331
|
+
isEvent: isEvent_1.isEvent,
|
|
6332
|
+
isFocused: isFocused_1.isFocused,
|
|
6333
|
+
isFunction: isFunction_11.isFunction,
|
|
6334
|
+
isHostname: isHostname_1.isHostname,
|
|
6335
|
+
isInside: isInside_1.isInside,
|
|
6336
|
+
isInt: isInt_2.isInt,
|
|
6337
|
+
isIP: isIP_2.isIP,
|
|
6338
|
+
isIterable: isIterable_5.isIterable,
|
|
6339
|
+
isMobile: isMobile_2.isMobile,
|
|
6340
|
+
isMobileDevice: isMobileDevice_2.isMobileDevice,
|
|
6341
|
+
isNull: isNull_4.isNull,
|
|
6342
|
+
isNumber: isNumber_10.isNumber,
|
|
6343
|
+
isObject: isObject_18.isObject,
|
|
6344
|
+
isPercent: isPercent_1.isPercent,
|
|
6345
|
+
isPrimitive: isPrimitive_1.isPrimitive,
|
|
6346
|
+
isPromise: isPromise_1.isPromise,
|
|
6347
|
+
isPropSize: isPropSize_1.isPropSize,
|
|
6348
|
+
isSame: isSame_3.isSame,
|
|
6349
|
+
isSQLDate: isSQLDate_1.isSQLDate,
|
|
6350
|
+
isString: isString_27.isString,
|
|
6351
|
+
isSymbol: isSymbol_2.isSymbol,
|
|
6352
|
+
isTabletDevice: isTabletDevice_3.isTabletDevice,
|
|
6353
|
+
isURL: isURL_1.isURL,
|
|
6354
|
+
isValidDimension: isValidDimension_2.isValidDimension,
|
|
6355
|
+
isValidName: isValidName_1.isValidName,
|
|
6356
|
+
isValue: isValue_2.isValue,
|
|
6357
|
+
isVue: isVue_1.isVue,
|
|
6358
|
+
iterate: iterate_12.iterate,
|
|
6359
|
+
lightenDarkenHex: lightenDarkenHex_1.lightenDarkenHex,
|
|
6360
|
+
link: link_2.link,
|
|
6361
|
+
log: log_20.log,
|
|
6362
|
+
makeReactive: makeReactive_1.makeReactive,
|
|
6363
|
+
map: map_1.map,
|
|
6364
|
+
md5: md5_4.md5,
|
|
6365
|
+
money: money_1.money,
|
|
6366
|
+
move: move_1.move,
|
|
6367
|
+
multiorder: multiorder_1.multiorder,
|
|
6368
|
+
nl2br: nl2br_1.nl2br,
|
|
6369
|
+
numProperties: numProperties_8.numProperties,
|
|
6370
|
+
objectToFormData: objectToFormData_2.objectToFormData,
|
|
6371
|
+
order: order_1.order,
|
|
6372
|
+
outerHeight: outerHeight_1.outerHeight,
|
|
6373
|
+
outerWidth: outerWidth_1.outerWidth,
|
|
6374
|
+
percent: percent_1.percent,
|
|
6375
|
+
pickValue: pickValue_1.pickValue,
|
|
6376
|
+
post: post_2.post,
|
|
6377
|
+
postOut: postOut_1.postOut,
|
|
6378
|
+
printf: printf_1.printf,
|
|
6379
|
+
quotes2html: quotes2html_1.quotes2html,
|
|
6380
|
+
randomInt: randomInt_2.randomInt,
|
|
6381
|
+
randomString: randomString_1.randomString,
|
|
6382
|
+
removeAccents: removeAccents_4.removeAccents,
|
|
6383
|
+
removeEmpty: removeEmpty_1.removeEmpty,
|
|
6384
|
+
removeExtraSpaces: removeExtraSpaces_1.removeExtraSpaces,
|
|
6385
|
+
removeHtmlComments: removeHtmlComments_2.removeHtmlComments,
|
|
6386
|
+
removePrivateProp: removePrivateProp_2.removePrivateProp,
|
|
6387
|
+
removeTrailingChars: removeTrailingChars_1.removeTrailingChars,
|
|
6388
|
+
repeat: repeat_1.repeat,
|
|
6389
|
+
replaceAll: replaceAll_8.replaceAll,
|
|
6390
|
+
replaceSelection: replaceSelection_1.replaceSelection,
|
|
6391
|
+
resize: resize_3.resize,
|
|
6392
|
+
rgb2hex: rgb2hex_1.rgb2hex,
|
|
6393
|
+
riterate: riterate_1.riterate,
|
|
6394
|
+
roundDecimal: roundDecimal_1.roundDecimal,
|
|
6395
|
+
sanitize: sanitize_1.sanitize,
|
|
6396
|
+
search: search_6.search,
|
|
6397
|
+
selectElementText: selectElementText_1.selectElementText,
|
|
6398
|
+
selector: selector_3.selector,
|
|
6399
|
+
setCookie: setCookie_1.setCookie,
|
|
6400
|
+
setCssVar: setCssVar_1.setCssVar,
|
|
6401
|
+
setNavigationVars: setNavigationVars_2.setNavigationVars,
|
|
6402
|
+
setProp: setProp_1.setProp,
|
|
6403
|
+
setProperty: setProperty_1.setProperty,
|
|
6404
|
+
shorten: shorten_2.shorten,
|
|
6405
|
+
shortenObj: shortenObj_1.shortenObj,
|
|
6406
|
+
shuffle: shuffle_1.shuffle,
|
|
6407
|
+
simpleHash: simpleHash_2.simpleHash,
|
|
6408
|
+
simpleHash1: simpleHash1_2.simpleHash1,
|
|
6409
|
+
simpleHash2: simpleHash2_2.simpleHash2,
|
|
6410
|
+
startChrono: chrono_1.startChrono,
|
|
6411
|
+
stat: stat_1.stat,
|
|
6412
|
+
stopChrono: chrono_1.stopChrono,
|
|
6413
|
+
string2ArrayBuffer: string2ArrayBuffer_1.string2ArrayBuffer,
|
|
6414
|
+
submit: submit_2.submit,
|
|
6415
|
+
substr: substr_16.substr,
|
|
6416
|
+
sum: sum_1.sum,
|
|
6417
|
+
timestamp: timestamp_1.timestamp,
|
|
6418
|
+
toCSV: toCSV_1.toCSV,
|
|
6419
|
+
toggleFullScreen: toggleFullScreen_1.toggleFullScreen,
|
|
6420
|
+
translate: translate_1.translate,
|
|
6421
|
+
treatAjaxArguments: treatAjaxArguments_3.treatAjaxArguments,
|
|
6422
|
+
trim: trim_2.trim,
|
|
6423
|
+
uniqString: uniqString_1.uniqString,
|
|
6424
|
+
unique: unique_2.unique,
|
|
6425
|
+
upload: upload_1.upload,
|
|
6426
|
+
warning: warning_2.warning,
|
|
6427
|
+
};
|
|
6428
|
+
exports.fn = fn;
|
|
6429
|
+
});
|
|
6430
|
+
define("index", ["require", "exports", "_", "$", "lng", "vars", "env", "db", "fn"], function (require, exports, _2, _3, lng_1, vars_1, env_1, db_1, fn_1) {
|
|
5822
6431
|
"use strict";
|
|
5823
6432
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5824
6433
|
exports.bbn = void 0;
|
|
@@ -5827,399 +6436,14 @@
|
|
|
5827
6436
|
opt: {
|
|
5828
6437
|
_cat: {}
|
|
5829
6438
|
},
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
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
|
-
}
|
|
6439
|
+
app: {},
|
|
6440
|
+
_: _2._,
|
|
6441
|
+
$: _3.$,
|
|
6442
|
+
lng: lng_1.lng,
|
|
6443
|
+
vars: vars_1.vars,
|
|
6444
|
+
env: env_1.env,
|
|
6445
|
+
db: db_1.db,
|
|
6446
|
+
fn: fn_1.fn
|
|
6223
6447
|
};
|
|
6224
6448
|
exports.bbn = bbn;
|
|
6225
6449
|
window.bbn = bbn;
|