@bbn/bbn 1.0.57 → 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/bundle.d.ts +12 -0
- package/dist/bundle.js +300 -115
- package/dist/db.d.ts +10 -0
- package/dist/db.js +183 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -497,6 +497,190 @@
|
|
|
497
497
|
};
|
|
498
498
|
exports.env = env;
|
|
499
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
|
+
});
|
|
500
684
|
define("fn/_addLoader", ["require", "exports", "fn/substr"], function (require, exports, substr_2) {
|
|
501
685
|
"use strict";
|
|
502
686
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -554,7 +738,7 @@
|
|
|
554
738
|
};
|
|
555
739
|
exports.getProperty = getProperty;
|
|
556
740
|
});
|
|
557
|
-
define("fn/removeAccents", ["require", "exports", "fn/isString", "fn/log"], function (require, exports, isString_3,
|
|
741
|
+
define("fn/removeAccents", ["require", "exports", "fn/isString", "fn/log"], function (require, exports, isString_3, log_5) {
|
|
558
742
|
"use strict";
|
|
559
743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
560
744
|
exports.removeAccents = void 0;
|
|
@@ -564,7 +748,7 @@
|
|
|
564
748
|
st = st.toString();
|
|
565
749
|
}
|
|
566
750
|
else {
|
|
567
|
-
(0,
|
|
751
|
+
(0, log_5.log)(st);
|
|
568
752
|
throw new Error(bbn._('removeAccent expects a string'));
|
|
569
753
|
}
|
|
570
754
|
}
|
|
@@ -731,7 +915,7 @@
|
|
|
731
915
|
};
|
|
732
916
|
exports.isCp = isCp;
|
|
733
917
|
});
|
|
734
|
-
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) {
|
|
735
919
|
"use strict";
|
|
736
920
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
737
921
|
exports.circularReplacer = void 0;
|
|
@@ -753,7 +937,7 @@
|
|
|
753
937
|
}
|
|
754
938
|
}
|
|
755
939
|
else if ((0, isCp_1.isCp)(value)) {
|
|
756
|
-
(0,
|
|
940
|
+
(0, log_6.log)('IS CP');
|
|
757
941
|
value = '__BBN_CP__' + value.$options.name + '/' + value.$cid;
|
|
758
942
|
}
|
|
759
943
|
else {
|
|
@@ -807,7 +991,7 @@
|
|
|
807
991
|
};
|
|
808
992
|
exports.simpleHash = simpleHash;
|
|
809
993
|
});
|
|
810
|
-
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) {
|
|
811
995
|
"use strict";
|
|
812
996
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
813
997
|
exports.hash = void 0;
|
|
@@ -826,7 +1010,7 @@
|
|
|
826
1010
|
}
|
|
827
1011
|
}
|
|
828
1012
|
else if ((0, isCp_2.isCp)(value)) {
|
|
829
|
-
(0,
|
|
1013
|
+
(0, log_7.log)('IS CP');
|
|
830
1014
|
st += '__BBN_CP__' + value.$options.name + '/' + value.$cid;
|
|
831
1015
|
}
|
|
832
1016
|
else {
|
|
@@ -843,7 +1027,7 @@
|
|
|
843
1027
|
};
|
|
844
1028
|
exports.hash = hash;
|
|
845
1029
|
});
|
|
846
|
-
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) {
|
|
847
1031
|
"use strict";
|
|
848
1032
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
849
1033
|
exports.isSame = void 0;
|
|
@@ -867,7 +1051,7 @@
|
|
|
867
1051
|
}
|
|
868
1052
|
done.push(obj1);
|
|
869
1053
|
}
|
|
870
|
-
(0,
|
|
1054
|
+
(0, each_3.each)(tmp1, (a) => {
|
|
871
1055
|
if (!isSame(obj1[a], obj2[a])) {
|
|
872
1056
|
ok = false;
|
|
873
1057
|
return false;
|
|
@@ -978,7 +1162,7 @@
|
|
|
978
1162
|
};
|
|
979
1163
|
exports.compare = compare;
|
|
980
1164
|
});
|
|
981
|
-
define("fn/compareConditions", ["require", "exports", "fn/isArray", "fn/each", "fn/compare", "fn/getProperty"], function (require, exports, isArray_3,
|
|
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) {
|
|
982
1166
|
"use strict";
|
|
983
1167
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
984
1168
|
exports.compareConditions = void 0;
|
|
@@ -987,7 +1171,7 @@
|
|
|
987
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');
|
|
988
1172
|
}
|
|
989
1173
|
let ok = filter.logic === 'AND' ? true : false;
|
|
990
|
-
(0,
|
|
1174
|
+
(0, each_4.each)(filter.conditions, (a) => {
|
|
991
1175
|
let comparator;
|
|
992
1176
|
if (a.conditions && (0, isArray_3.isArray)(a.conditions)) {
|
|
993
1177
|
comparator = compareConditions(data, a);
|
|
@@ -998,7 +1182,7 @@
|
|
|
998
1182
|
let bits = a.field.split('.');
|
|
999
1183
|
let prop = bits.pop();
|
|
1000
1184
|
if (bits.length) {
|
|
1001
|
-
(0,
|
|
1185
|
+
(0, each_4.each)(bits, (b) => (data = data[b]));
|
|
1002
1186
|
}
|
|
1003
1187
|
// Case where both are undefined: value and prop which doesn't exist; they are not the same!
|
|
1004
1188
|
if ((0, getProperty_2.getProperty)(data, prop) === undefined && a.value !== undefined) {
|
|
@@ -1021,7 +1205,7 @@
|
|
|
1021
1205
|
};
|
|
1022
1206
|
exports.compareConditions = compareConditions;
|
|
1023
1207
|
});
|
|
1024
|
-
define("fn/filterToConditions", ["require", "exports", "fn/isObject", "fn/isArray", "fn/iterate"], function (require, exports, isObject_2, isArray_4,
|
|
1208
|
+
define("fn/filterToConditions", ["require", "exports", "fn/isObject", "fn/isArray", "fn/iterate"], function (require, exports, isObject_2, isArray_4, iterate_3) {
|
|
1025
1209
|
"use strict";
|
|
1026
1210
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1027
1211
|
exports.filterToConditions = void 0;
|
|
@@ -1031,7 +1215,7 @@
|
|
|
1031
1215
|
}
|
|
1032
1216
|
if (!filter.conditions || !(0, isArray_4.isArray)(filter.conditions)) {
|
|
1033
1217
|
let tmp = [];
|
|
1034
|
-
(0,
|
|
1218
|
+
(0, iterate_3.iterate)(filter, (a, n) => {
|
|
1035
1219
|
if ((0, isObject_2.isObject)(a) && typeof a.conditions === 'object') {
|
|
1036
1220
|
tmp.push(filterToConditions(a));
|
|
1037
1221
|
}
|
|
@@ -1203,7 +1387,7 @@
|
|
|
1203
1387
|
};
|
|
1204
1388
|
exports.abort = abort;
|
|
1205
1389
|
});
|
|
1206
|
-
define("fn/filter", ["require", "exports", "fn/isArray", "fn/each", "fn/filterToConditions", "fn/compareConditions"], function (require, exports, isArray_5,
|
|
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) {
|
|
1207
1391
|
"use strict";
|
|
1208
1392
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1209
1393
|
exports.filter = void 0;
|
|
@@ -1230,7 +1414,7 @@
|
|
|
1230
1414
|
throw new Error('Search function error: The prop argument should be a string or an object');
|
|
1231
1415
|
}
|
|
1232
1416
|
if (typeof (prop) === 'function') {
|
|
1233
|
-
(0,
|
|
1417
|
+
(0, each_5.each)(arr, (a, i) => {
|
|
1234
1418
|
if (prop(a, i)) {
|
|
1235
1419
|
res.push(a);
|
|
1236
1420
|
}
|
|
@@ -1239,7 +1423,7 @@
|
|
|
1239
1423
|
else {
|
|
1240
1424
|
cfg = (0, filterToConditions_2.filterToConditions)(cfg, operator);
|
|
1241
1425
|
if (cfg.conditions && cfg.logic) {
|
|
1242
|
-
(0,
|
|
1426
|
+
(0, each_5.each)(arr, (a) => {
|
|
1243
1427
|
if ((0, compareConditions_2.compareConditions)(a, cfg)) {
|
|
1244
1428
|
res.push(a);
|
|
1245
1429
|
}
|
|
@@ -1251,12 +1435,12 @@
|
|
|
1251
1435
|
};
|
|
1252
1436
|
exports.filter = filter;
|
|
1253
1437
|
});
|
|
1254
|
-
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) {
|
|
1255
1439
|
"use strict";
|
|
1256
1440
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1257
1441
|
exports.abortURL = void 0;
|
|
1258
1442
|
const abortURL = function (url) {
|
|
1259
|
-
(0,
|
|
1443
|
+
(0, each_6.each)((0, filter_1.filter)(bbn.env.loaders, { url: url }), (a) => {
|
|
1260
1444
|
if (a && a.source) {
|
|
1261
1445
|
a.source.cancel('Operation canceled by the user.');
|
|
1262
1446
|
}
|
|
@@ -1267,7 +1451,7 @@
|
|
|
1267
1451
|
};
|
|
1268
1452
|
exports.abortURL = abortURL;
|
|
1269
1453
|
});
|
|
1270
|
-
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) {
|
|
1271
1455
|
"use strict";
|
|
1272
1456
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1273
1457
|
exports.addColors = void 0;
|
|
@@ -1281,7 +1465,7 @@
|
|
|
1281
1465
|
let sheet = element.sheet;
|
|
1282
1466
|
// Append style element to head
|
|
1283
1467
|
let i = 0;
|
|
1284
|
-
(0,
|
|
1468
|
+
(0, iterate_4.iterate)(colors, (v, n) => {
|
|
1285
1469
|
bbn.vars.colors[n] = v;
|
|
1286
1470
|
sheet.insertRule('.bbn-' + n + ', .bbn-color-text-' + n + ' {color: ' + v + ' !important;}', i);
|
|
1287
1471
|
sheet.insertRule('svg.bbn-' +
|
|
@@ -1311,7 +1495,7 @@
|
|
|
1311
1495
|
};
|
|
1312
1496
|
exports.addColors = addColors;
|
|
1313
1497
|
});
|
|
1314
|
-
define("fn/addInputs", ["require", "exports", "fn/iterate"], function (require, exports,
|
|
1498
|
+
define("fn/addInputs", ["require", "exports", "fn/iterate"], function (require, exports, iterate_5) {
|
|
1315
1499
|
"use strict";
|
|
1316
1500
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1317
1501
|
exports.addInputs = void 0;
|
|
@@ -1327,7 +1511,7 @@
|
|
|
1327
1511
|
params = JSON.parse(JSON.stringify(params || {}));
|
|
1328
1512
|
prefix = prefix || '';
|
|
1329
1513
|
if (params) {
|
|
1330
|
-
(0,
|
|
1514
|
+
(0, iterate_5.iterate)(params, (param, key) => {
|
|
1331
1515
|
let name = prefix ? `${prefix}[${key}]` : key;
|
|
1332
1516
|
if (param instanceof Date) {
|
|
1333
1517
|
appendToForm(name, param.toISOString());
|
|
@@ -1355,29 +1539,29 @@
|
|
|
1355
1539
|
};
|
|
1356
1540
|
exports.addInputs = addInputs;
|
|
1357
1541
|
});
|
|
1358
|
-
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) {
|
|
1359
1543
|
"use strict";
|
|
1360
1544
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1361
1545
|
exports.addStyle = void 0;
|
|
1362
1546
|
const addStyle = function (ele, o) {
|
|
1363
1547
|
if ((0, isObject_5.isObject)(o)) {
|
|
1364
|
-
(0,
|
|
1548
|
+
(0, iterate_6.iterate)(o, (v, k) => {
|
|
1365
1549
|
ele.style[k] = v;
|
|
1366
1550
|
});
|
|
1367
1551
|
}
|
|
1368
1552
|
};
|
|
1369
1553
|
exports.addStyle = addStyle;
|
|
1370
1554
|
});
|
|
1371
|
-
define("fn/adjustSize", ["require", "exports", "fn/each"], function (require, exports,
|
|
1555
|
+
define("fn/adjustSize", ["require", "exports", "fn/each"], function (require, exports, each_7) {
|
|
1372
1556
|
"use strict";
|
|
1373
1557
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1374
1558
|
exports.adjustSize = void 0;
|
|
1375
1559
|
const adjustSize = function (type, eles) {
|
|
1376
1560
|
let max = 0, idx;
|
|
1377
|
-
(0,
|
|
1561
|
+
(0, each_7.each)(eles, (el) => {
|
|
1378
1562
|
el.style[type] = 'auto';
|
|
1379
1563
|
});
|
|
1380
|
-
(0,
|
|
1564
|
+
(0, each_7.each)(eles, (el, i) => {
|
|
1381
1565
|
let rect = el.getBoundingClientRect(), s = rect[type] % 1 ? rect[type] - (rect[type] % 1) + 1 : rect[type];
|
|
1382
1566
|
//s = rect[type];
|
|
1383
1567
|
if (s > max) {
|
|
@@ -1385,7 +1569,7 @@
|
|
|
1385
1569
|
idx = i;
|
|
1386
1570
|
}
|
|
1387
1571
|
});
|
|
1388
|
-
(0,
|
|
1572
|
+
(0, each_7.each)(eles, (el, i) => {
|
|
1389
1573
|
if (max) {
|
|
1390
1574
|
el.style[type] = max + 'px';
|
|
1391
1575
|
}
|
|
@@ -1563,14 +1747,14 @@
|
|
|
1563
1747
|
};
|
|
1564
1748
|
exports.md5 = md5;
|
|
1565
1749
|
});
|
|
1566
|
-
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) {
|
|
1567
1751
|
"use strict";
|
|
1568
1752
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1569
1753
|
exports.getRequestId = void 0;
|
|
1570
1754
|
const getRequestId = function (url, data, datatype) {
|
|
1571
1755
|
let d = {};
|
|
1572
1756
|
if (data) {
|
|
1573
|
-
(0,
|
|
1757
|
+
(0, iterate_7.iterate)(data, (a, n) => {
|
|
1574
1758
|
if (n.indexOf('_bbn') === -1) {
|
|
1575
1759
|
d[n] = a;
|
|
1576
1760
|
}
|
|
@@ -1580,7 +1764,7 @@
|
|
|
1580
1764
|
};
|
|
1581
1765
|
exports.getRequestId = getRequestId;
|
|
1582
1766
|
});
|
|
1583
|
-
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) {
|
|
1584
1768
|
"use strict";
|
|
1585
1769
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1586
1770
|
exports.extend = void 0;
|
|
@@ -1606,11 +1790,11 @@
|
|
|
1606
1790
|
}
|
|
1607
1791
|
let out = args[0];
|
|
1608
1792
|
for (let i = 1; i < args.length; i++) {
|
|
1609
|
-
(0,
|
|
1793
|
+
(0, iterate_8.iterate)(args[i], (a, key) => {
|
|
1610
1794
|
if (deep) {
|
|
1611
1795
|
if ((0, isArray_6.isArray)(a)) {
|
|
1612
1796
|
out[key] = (0, isArray_6.isArray)(out[key]) ? out[key] : [];
|
|
1613
|
-
(0,
|
|
1797
|
+
(0, each_8.each)(a, (b, i) => {
|
|
1614
1798
|
if (b && typeof b === 'object') {
|
|
1615
1799
|
let tmp = out[key][i];
|
|
1616
1800
|
if ((0, isArray_6.isArray)(b)) {
|
|
@@ -1670,12 +1854,12 @@
|
|
|
1670
1854
|
};
|
|
1671
1855
|
exports.defaultAjaxErrorFunction = defaultAjaxErrorFunction;
|
|
1672
1856
|
});
|
|
1673
|
-
define("fn/defaultAjaxAbortFunction", ["require", "exports", "fn/log"], function (require, exports,
|
|
1857
|
+
define("fn/defaultAjaxAbortFunction", ["require", "exports", "fn/log"], function (require, exports, log_8) {
|
|
1674
1858
|
"use strict";
|
|
1675
1859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1676
1860
|
exports.defaultAjaxAbortFunction = void 0;
|
|
1677
1861
|
const defaultAjaxAbortFunction = function (message, url = '') {
|
|
1678
|
-
(0,
|
|
1862
|
+
(0, log_8.log)(message);
|
|
1679
1863
|
};
|
|
1680
1864
|
exports.defaultAjaxAbortFunction = defaultAjaxAbortFunction;
|
|
1681
1865
|
});
|
|
@@ -1973,13 +2157,13 @@
|
|
|
1973
2157
|
};
|
|
1974
2158
|
exports.arrayBuffer2String = arrayBuffer2String;
|
|
1975
2159
|
});
|
|
1976
|
-
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) {
|
|
1977
2161
|
"use strict";
|
|
1978
2162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1979
2163
|
exports.arrayFromProp = void 0;
|
|
1980
2164
|
const arrayFromProp = function (arr, prop) {
|
|
1981
2165
|
let r = [];
|
|
1982
|
-
(0,
|
|
2166
|
+
(0, each_9.each)(arr, (a, i) => {
|
|
1983
2167
|
r.push((0, getProperty_3.getProperty)(a, prop));
|
|
1984
2168
|
});
|
|
1985
2169
|
return r;
|
|
@@ -2159,7 +2343,7 @@
|
|
|
2159
2343
|
};
|
|
2160
2344
|
exports.defaultAlertFunction = defaultAlertFunction;
|
|
2161
2345
|
});
|
|
2162
|
-
define("fn/callback", ["require", "exports", "fn/error", "fn/defaultLinkFunction", "fn/isFunction", "fn/log", "fn/defaultPostLinkFunction", "fn/defaultAlertFunction"], function (require, exports, error_2, defaultLinkFunction_1, isFunction_4,
|
|
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) {
|
|
2163
2347
|
"use strict";
|
|
2164
2348
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2165
2349
|
exports.callback = void 0;
|
|
@@ -2211,7 +2395,7 @@
|
|
|
2211
2395
|
}
|
|
2212
2396
|
}
|
|
2213
2397
|
catch (e) {
|
|
2214
|
-
(0,
|
|
2398
|
+
(0, log_9.log)(e, res);
|
|
2215
2399
|
(0, error_2.error)((0, isFunction_4.isFunction)(e.getMessage) ? e.getMessage() : null);
|
|
2216
2400
|
}
|
|
2217
2401
|
return r;
|
|
@@ -2309,7 +2493,7 @@
|
|
|
2309
2493
|
};
|
|
2310
2494
|
exports.center = center;
|
|
2311
2495
|
});
|
|
2312
|
-
define("fn/checkPropsDetails", ["require", "exports", "fn/isArray", "fn/isObject", "fn/each", "fn/substr"], function (require, exports, isArray_7, isObject_9,
|
|
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) {
|
|
2313
2497
|
"use strict";
|
|
2314
2498
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2315
2499
|
exports.checkPropsDetails = void 0;
|
|
@@ -2329,7 +2513,7 @@
|
|
|
2329
2513
|
}
|
|
2330
2514
|
if (!res.error) {
|
|
2331
2515
|
let check;
|
|
2332
|
-
(0,
|
|
2516
|
+
(0, each_10.each)(props, (varName) => {
|
|
2333
2517
|
varName = varName.trim().split(':');
|
|
2334
2518
|
let type = varName[1] || false;
|
|
2335
2519
|
varName = varName[0];
|
|
@@ -2554,7 +2738,7 @@
|
|
|
2554
2738
|
};
|
|
2555
2739
|
exports.daysInMonth = daysInMonth;
|
|
2556
2740
|
});
|
|
2557
|
-
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) {
|
|
2558
2742
|
"use strict";
|
|
2559
2743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2560
2744
|
exports.deepPath = void 0;
|
|
@@ -2565,7 +2749,7 @@
|
|
|
2565
2749
|
res.push(idx);
|
|
2566
2750
|
return res;
|
|
2567
2751
|
}
|
|
2568
|
-
(0,
|
|
2752
|
+
(0, each_11.each)(arr, (it, i) => {
|
|
2569
2753
|
if ((0, isArray_9.isArray)(it[deepProperty])) {
|
|
2570
2754
|
let r = res.slice();
|
|
2571
2755
|
r.push(i);
|
|
@@ -2597,12 +2781,12 @@
|
|
|
2597
2781
|
};
|
|
2598
2782
|
exports.defaultConfirmFunction = defaultConfirmFunction;
|
|
2599
2783
|
});
|
|
2600
|
-
define("fn/defaultErrorFunction", ["require", "exports", "fn/log"], function (require, exports,
|
|
2784
|
+
define("fn/defaultErrorFunction", ["require", "exports", "fn/log"], function (require, exports, log_10) {
|
|
2601
2785
|
"use strict";
|
|
2602
2786
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2603
2787
|
exports.defaultErrorFunction = void 0;
|
|
2604
2788
|
const defaultErrorFunction = function (message) {
|
|
2605
|
-
(0,
|
|
2789
|
+
(0, log_10.log)(message);
|
|
2606
2790
|
};
|
|
2607
2791
|
exports.defaultErrorFunction = defaultErrorFunction;
|
|
2608
2792
|
});
|
|
@@ -2818,7 +3002,7 @@
|
|
|
2818
3002
|
};
|
|
2819
3003
|
exports.isCanvas = isCanvas;
|
|
2820
3004
|
});
|
|
2821
|
-
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) {
|
|
2822
3006
|
"use strict";
|
|
2823
3007
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2824
3008
|
exports.downloadContent = void 0;
|
|
@@ -2853,7 +3037,7 @@
|
|
|
2853
3037
|
src = content;
|
|
2854
3038
|
}
|
|
2855
3039
|
catch (e) {
|
|
2856
|
-
(0,
|
|
3040
|
+
(0, log_11.log)(e);
|
|
2857
3041
|
}
|
|
2858
3042
|
}
|
|
2859
3043
|
a.href = window.URL.createObjectURL(src);
|
|
@@ -2946,7 +3130,7 @@
|
|
|
2946
3130
|
};
|
|
2947
3131
|
exports.escapeTicks = escapeTicks;
|
|
2948
3132
|
});
|
|
2949
|
-
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) {
|
|
2950
3134
|
"use strict";
|
|
2951
3135
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2952
3136
|
exports.escapeUrl = void 0;
|
|
@@ -2962,7 +3146,7 @@
|
|
|
2962
3146
|
st += '://';
|
|
2963
3147
|
url = url.substring(3);
|
|
2964
3148
|
}
|
|
2965
|
-
(0,
|
|
3149
|
+
(0, each_12.each)((0, dirName_1.dirName)(url).split('/'), (a) => {
|
|
2966
3150
|
st += encodeURIComponent(a) + '/';
|
|
2967
3151
|
});
|
|
2968
3152
|
let base = (0, baseName_2.baseName)(url);
|
|
@@ -3044,7 +3228,7 @@
|
|
|
3044
3228
|
};
|
|
3045
3229
|
exports.fieldValue = fieldValue;
|
|
3046
3230
|
});
|
|
3047
|
-
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) {
|
|
3048
3232
|
"use strict";
|
|
3049
3233
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3050
3234
|
exports.findAll = void 0;
|
|
@@ -3055,7 +3239,7 @@
|
|
|
3055
3239
|
res.push(arr[idx]);
|
|
3056
3240
|
start = idx + 1;
|
|
3057
3241
|
}
|
|
3058
|
-
(0,
|
|
3242
|
+
(0, each_13.each)(arr, (it) => {
|
|
3059
3243
|
if ((0, isArray_10.isArray)(it[deepProperty])) {
|
|
3060
3244
|
findAll(it[deepProperty], filter, deepProperty, res);
|
|
3061
3245
|
}
|
|
@@ -3163,7 +3347,7 @@
|
|
|
3163
3347
|
};
|
|
3164
3348
|
exports.formatSize = formatSize;
|
|
3165
3349
|
});
|
|
3166
|
-
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) {
|
|
3167
3351
|
"use strict";
|
|
3168
3352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3169
3353
|
exports.formdata = void 0;
|
|
@@ -3172,7 +3356,7 @@
|
|
|
3172
3356
|
let res = {};
|
|
3173
3357
|
let n;
|
|
3174
3358
|
let v;
|
|
3175
|
-
(0,
|
|
3359
|
+
(0, each_14.each)($inputs, (input, i) => {
|
|
3176
3360
|
v = (0, fieldValue_1.fieldValue)(input);
|
|
3177
3361
|
if (v !== undefined && !input.disabled) {
|
|
3178
3362
|
let name = input.name;
|
|
@@ -3473,7 +3657,7 @@
|
|
|
3473
3657
|
};
|
|
3474
3658
|
exports.getDeviceType = getDeviceType;
|
|
3475
3659
|
});
|
|
3476
|
-
define("fn/getHTMLOfSelection", ["require", "exports", "fn/log"], function (require, exports,
|
|
3660
|
+
define("fn/getHTMLOfSelection", ["require", "exports", "fn/log"], function (require, exports, log_12) {
|
|
3477
3661
|
"use strict";
|
|
3478
3662
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3479
3663
|
exports.getHTMLOfSelection = void 0;
|
|
@@ -3482,9 +3666,9 @@
|
|
|
3482
3666
|
let selection = window.getSelection();
|
|
3483
3667
|
if (selection.rangeCount > 0) {
|
|
3484
3668
|
range = selection.getRangeAt(0);
|
|
3485
|
-
(0,
|
|
3669
|
+
(0, log_12.log)('RANGE', range);
|
|
3486
3670
|
let clonedSelection = range.cloneContents();
|
|
3487
|
-
(0,
|
|
3671
|
+
(0, log_12.log)('clonedSelection', clonedSelection);
|
|
3488
3672
|
let div = document.createElement('div');
|
|
3489
3673
|
div.appendChild(clonedSelection);
|
|
3490
3674
|
return div.innerHTML;
|
|
@@ -3495,7 +3679,7 @@
|
|
|
3495
3679
|
};
|
|
3496
3680
|
exports.getHTMLOfSelection = getHTMLOfSelection;
|
|
3497
3681
|
});
|
|
3498
|
-
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) {
|
|
3499
3683
|
"use strict";
|
|
3500
3684
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3501
3685
|
exports.getEventData = void 0;
|
|
@@ -3533,7 +3717,7 @@
|
|
|
3533
3717
|
if (!done) {
|
|
3534
3718
|
let strings = [];
|
|
3535
3719
|
let num = dt.items.length;
|
|
3536
|
-
(0,
|
|
3720
|
+
(0, each_15.each)(dt.items, (item, idx) => {
|
|
3537
3721
|
let kind = item.kind;
|
|
3538
3722
|
let type = item.type;
|
|
3539
3723
|
if (kind === 'file') {
|
|
@@ -3612,7 +3796,7 @@
|
|
|
3612
3796
|
};
|
|
3613
3797
|
exports.getField = getField;
|
|
3614
3798
|
});
|
|
3615
|
-
define("fn/getFieldValues", ["require", "exports", "fn/checkType", "fn/filter", "fn/each"], function (require, exports, checkType_4, filter_3,
|
|
3799
|
+
define("fn/getFieldValues", ["require", "exports", "fn/checkType", "fn/filter", "fn/each"], function (require, exports, checkType_4, filter_3, each_16) {
|
|
3616
3800
|
"use strict";
|
|
3617
3801
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3618
3802
|
exports.getFieldValues = void 0;
|
|
@@ -3622,7 +3806,7 @@
|
|
|
3622
3806
|
arr = (0, filter_3.filter)(arr, prop, val, operator);
|
|
3623
3807
|
}
|
|
3624
3808
|
let res = [];
|
|
3625
|
-
(0,
|
|
3809
|
+
(0, each_16.each)(arr, (a) => (res.indexOf(a[field]) === -1 ? res.push(a[field]) : null));
|
|
3626
3810
|
return res;
|
|
3627
3811
|
};
|
|
3628
3812
|
exports.getFieldValues = getFieldValues;
|
|
@@ -3760,7 +3944,7 @@
|
|
|
3760
3944
|
};
|
|
3761
3945
|
exports.getTimeoff = getTimeoff;
|
|
3762
3946
|
});
|
|
3763
|
-
define("fn/happy", ["require", "exports", "fn/log"], function (require, exports,
|
|
3947
|
+
define("fn/happy", ["require", "exports", "fn/log"], function (require, exports, log_13) {
|
|
3764
3948
|
"use strict";
|
|
3765
3949
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3766
3950
|
exports.happy = void 0;
|
|
@@ -3769,7 +3953,7 @@
|
|
|
3769
3953
|
_bbn_console_level: 3,
|
|
3770
3954
|
_bbn_console_style: 'color: white; background: green; font-size: 18px;',
|
|
3771
3955
|
});
|
|
3772
|
-
|
|
3956
|
+
log_13.log.apply(this, args);
|
|
3773
3957
|
return this;
|
|
3774
3958
|
};
|
|
3775
3959
|
exports.happy = happy;
|
|
@@ -3835,7 +4019,7 @@
|
|
|
3835
4019
|
};
|
|
3836
4020
|
exports.imgToBase64 = imgToBase64;
|
|
3837
4021
|
});
|
|
3838
|
-
define("fn/info", ["require", "exports", "fn/log"], function (require, exports,
|
|
4022
|
+
define("fn/info", ["require", "exports", "fn/log"], function (require, exports, log_14) {
|
|
3839
4023
|
"use strict";
|
|
3840
4024
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3841
4025
|
exports.info = void 0;
|
|
@@ -3845,7 +4029,7 @@
|
|
|
3845
4029
|
_bbn_console_level: 4,
|
|
3846
4030
|
_bbn_console_style: 'color: #EEE; background: blue; font-size: 12px;',
|
|
3847
4031
|
});
|
|
3848
|
-
|
|
4032
|
+
log_14.log.apply(this, args);
|
|
3849
4033
|
return this;
|
|
3850
4034
|
};
|
|
3851
4035
|
exports.info = info;
|
|
@@ -3985,7 +4169,7 @@
|
|
|
3985
4169
|
};
|
|
3986
4170
|
exports.setNavigationVars = setNavigationVars;
|
|
3987
4171
|
});
|
|
3988
|
-
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) {
|
|
3989
4173
|
"use strict";
|
|
3990
4174
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3991
4175
|
exports.link = void 0;
|
|
@@ -4059,12 +4243,12 @@
|
|
|
4059
4243
|
let errSt = bbn._('The Ajax call to') + ' ' + cfg.url + ' ';
|
|
4060
4244
|
return (0, ajax_2.ajax)(cfg.url, cfg.datatype, cfg.obj, function (res) {
|
|
4061
4245
|
if (!res) {
|
|
4062
|
-
(0,
|
|
4246
|
+
(0, log_15.log)(errSt + bbn._('returned no answer'));
|
|
4063
4247
|
}
|
|
4064
4248
|
if ((0, isObject_15.isObject)(res)) {
|
|
4065
4249
|
// If there's nothing in the result, just an empty object, the callback stops here and the URL is not changed
|
|
4066
4250
|
if (Object.keys(res).length === 0) {
|
|
4067
|
-
(0,
|
|
4251
|
+
(0, log_15.log)(errSt + bbn._('returned an empty object'));
|
|
4068
4252
|
}
|
|
4069
4253
|
if (res.new_url) {
|
|
4070
4254
|
res.old_path = cfg.url;
|
|
@@ -4137,7 +4321,7 @@
|
|
|
4137
4321
|
};
|
|
4138
4322
|
exports.submit = submit;
|
|
4139
4323
|
});
|
|
4140
|
-
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) {
|
|
4141
4325
|
"use strict";
|
|
4142
4326
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4143
4327
|
exports.resize = void 0;
|
|
@@ -4159,7 +4343,7 @@
|
|
|
4159
4343
|
let newCls = 'bbn-screen-' + (bbn.env.width < smallWidth ? 'small' : 'regular');
|
|
4160
4344
|
let classes = (document.body.className || '').split(' ');
|
|
4161
4345
|
let done = false;
|
|
4162
|
-
(0,
|
|
4346
|
+
(0, each_17.each)(classes, (cls, idx) => {
|
|
4163
4347
|
let bits = cls.split('-');
|
|
4164
4348
|
if (bits.length === 3 && cls.indexOf('bbn-screen-') === 0) {
|
|
4165
4349
|
done = true;
|
|
@@ -4205,7 +4389,7 @@
|
|
|
4205
4389
|
};
|
|
4206
4390
|
exports.isMobile = isMobile;
|
|
4207
4391
|
});
|
|
4208
|
-
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) {
|
|
4209
4393
|
"use strict";
|
|
4210
4394
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4211
4395
|
exports.init = void 0;
|
|
@@ -4217,7 +4401,7 @@
|
|
|
4217
4401
|
bbn.env.root += '/';
|
|
4218
4402
|
}
|
|
4219
4403
|
if (!bbn.env.isInit && typeof dayjs !== 'undefined') {
|
|
4220
|
-
(0,
|
|
4404
|
+
(0, each_18.each)([
|
|
4221
4405
|
'advancedFormat',
|
|
4222
4406
|
'arraySupport',
|
|
4223
4407
|
'badMutable',
|
|
@@ -4264,7 +4448,7 @@
|
|
|
4264
4448
|
bbn.env.path = (0, substr_11.substr)(bbn.env.url, bbn.env.root.length);
|
|
4265
4449
|
parts = bbn.env.path.split('/');
|
|
4266
4450
|
//$.each(parts, function(i, v){
|
|
4267
|
-
(0,
|
|
4451
|
+
(0, each_18.each)(parts, (v, i) => {
|
|
4268
4452
|
v = decodeURI(v.trim());
|
|
4269
4453
|
if (v !== '') {
|
|
4270
4454
|
bbn.env.params.push(v);
|
|
@@ -4317,7 +4501,7 @@
|
|
|
4317
4501
|
return false;
|
|
4318
4502
|
}
|
|
4319
4503
|
});
|
|
4320
|
-
(0,
|
|
4504
|
+
(0, each_18.each)(document.querySelectorAll('form:not(.bbn-no), form:not(.bbn-form)'), (ele) => {
|
|
4321
4505
|
ele.addEventListener('submit', (e) => {
|
|
4322
4506
|
(0, submit_1.submit)(ele, e);
|
|
4323
4507
|
});
|
|
@@ -4359,7 +4543,7 @@
|
|
|
4359
4543
|
bbn.env.isInit = true;
|
|
4360
4544
|
document.dispatchEvent(new Event('bbninit'));
|
|
4361
4545
|
if (bbn.env.logging) {
|
|
4362
|
-
(0,
|
|
4546
|
+
(0, log_16.log)('Logging in bbn is enabled');
|
|
4363
4547
|
}
|
|
4364
4548
|
}
|
|
4365
4549
|
};
|
|
@@ -4554,7 +4738,7 @@
|
|
|
4554
4738
|
};
|
|
4555
4739
|
exports.isHostname = isHostname;
|
|
4556
4740
|
});
|
|
4557
|
-
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) {
|
|
4558
4742
|
"use strict";
|
|
4559
4743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4560
4744
|
exports.isInside = void 0;
|
|
@@ -4563,7 +4747,7 @@
|
|
|
4563
4747
|
if (ancestors.length) {
|
|
4564
4748
|
if ((0, isString_23.isString)(ancestor)) {
|
|
4565
4749
|
let ok = false;
|
|
4566
|
-
(0,
|
|
4750
|
+
(0, each_19.each)(ancestors, (a) => {
|
|
4567
4751
|
if (a.matches && a.matches(ancestor)) {
|
|
4568
4752
|
ok = true;
|
|
4569
4753
|
return false;
|
|
@@ -4627,13 +4811,13 @@
|
|
|
4627
4811
|
};
|
|
4628
4812
|
exports.isPromise = isPromise;
|
|
4629
4813
|
});
|
|
4630
|
-
define("fn/isPropSize", ["require", "exports", "fn/each"], function (require, exports,
|
|
4814
|
+
define("fn/isPropSize", ["require", "exports", "fn/each"], function (require, exports, each_20) {
|
|
4631
4815
|
"use strict";
|
|
4632
4816
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4633
4817
|
exports.isPropSize = void 0;
|
|
4634
4818
|
const isPropSize = function (name) {
|
|
4635
4819
|
let isTrue = false;
|
|
4636
|
-
(0,
|
|
4820
|
+
(0, each_20.each)(['width', 'height', 'gap', 'margin', 'padding', 'top', 'left', 'right', 'bottom'], (a) => {
|
|
4637
4821
|
if (name.indexOf(a) !== -1) {
|
|
4638
4822
|
isTrue = true;
|
|
4639
4823
|
return false;
|
|
@@ -4772,7 +4956,7 @@
|
|
|
4772
4956
|
};
|
|
4773
4957
|
exports.lightenDarkenHex = lightenDarkenHex;
|
|
4774
4958
|
});
|
|
4775
|
-
define("fn/warning", ["require", "exports", "fn/log"], function (require, exports,
|
|
4959
|
+
define("fn/warning", ["require", "exports", "fn/log"], function (require, exports, log_17) {
|
|
4776
4960
|
"use strict";
|
|
4777
4961
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4778
4962
|
exports.warning = void 0;
|
|
@@ -4784,11 +4968,11 @@
|
|
|
4784
4968
|
_bbn_console_style: 'color: #E64141; background: #F7E195; font-size: 14px',
|
|
4785
4969
|
};
|
|
4786
4970
|
args.unshift(obj);
|
|
4787
|
-
|
|
4971
|
+
log_17.log.apply(this, args);
|
|
4788
4972
|
};
|
|
4789
4973
|
exports.warning = warning;
|
|
4790
4974
|
});
|
|
4791
|
-
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) {
|
|
4792
4976
|
"use strict";
|
|
4793
4977
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4794
4978
|
exports.makeReactive = void 0;
|
|
@@ -4800,7 +4984,7 @@
|
|
|
4800
4984
|
return obj;
|
|
4801
4985
|
}
|
|
4802
4986
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
4803
|
-
(0,
|
|
4987
|
+
(0, log_18.log)(['MAKING bbn-loadbar', obj]);
|
|
4804
4988
|
}
|
|
4805
4989
|
if (!obj.__bbnWatchers) {
|
|
4806
4990
|
Reflect.defineProperty(obj, '__bbnWatchers', {
|
|
@@ -4824,7 +5008,7 @@
|
|
|
4824
5008
|
return function (...args) {
|
|
4825
5009
|
let res = realTarget[key](...args);
|
|
4826
5010
|
(0, warning_1.warning)('DOING ARRAY STUFF');
|
|
4827
|
-
(0,
|
|
5011
|
+
(0, log_18.log)(target.__bbnParent);
|
|
4828
5012
|
onSet(target, 'length', parent);
|
|
4829
5013
|
return res;
|
|
4830
5014
|
};
|
|
@@ -4891,7 +5075,7 @@
|
|
|
4891
5075
|
return Reflect.get(target, key);
|
|
4892
5076
|
}
|
|
4893
5077
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
4894
|
-
(0,
|
|
5078
|
+
(0, log_18.log)(['Setting proxy prop in ' + parent.$options.name, target, key, value]);
|
|
4895
5079
|
}
|
|
4896
5080
|
if (!(0, isSame_2.isSame)(realTarget[key], value)) {
|
|
4897
5081
|
if (key.indexOf('__bbn_') === 0) {
|
|
@@ -4919,7 +5103,7 @@
|
|
|
4919
5103
|
}
|
|
4920
5104
|
}
|
|
4921
5105
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
4922
|
-
(0,
|
|
5106
|
+
(0, log_18.log)([
|
|
4923
5107
|
'Setting proxy prop in ' +
|
|
4924
5108
|
parent.$options.name +
|
|
4925
5109
|
' ' +
|
|
@@ -5141,7 +5325,7 @@
|
|
|
5141
5325
|
};
|
|
5142
5326
|
exports.nl2br = nl2br;
|
|
5143
5327
|
});
|
|
5144
|
-
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) {
|
|
5145
5329
|
"use strict";
|
|
5146
5330
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5147
5331
|
exports.objectToFormData = void 0;
|
|
@@ -5153,12 +5337,12 @@
|
|
|
5153
5337
|
formData.append(key, data);
|
|
5154
5338
|
}
|
|
5155
5339
|
else if ((0, isArray_15.isArray)(data)) {
|
|
5156
|
-
(0,
|
|
5340
|
+
(0, each_21.each)(data, (v, i) => {
|
|
5157
5341
|
appendFormData(v, key + '[' + i + ']');
|
|
5158
5342
|
});
|
|
5159
5343
|
}
|
|
5160
5344
|
else if ((0, isObject_16.isObject)(data) && Object.keys(data).length) {
|
|
5161
|
-
(0,
|
|
5345
|
+
(0, iterate_9.iterate)(data, (v, i) => {
|
|
5162
5346
|
if (i in data) {
|
|
5163
5347
|
appendFormData(v, !key ? i : key + '[' + i + ']');
|
|
5164
5348
|
}
|
|
@@ -5497,12 +5681,12 @@
|
|
|
5497
5681
|
};
|
|
5498
5682
|
exports.rgb2hex = rgb2hex;
|
|
5499
5683
|
});
|
|
5500
|
-
define("fn/riterate", ["require", "exports", "fn/iterate"], function (require, exports,
|
|
5684
|
+
define("fn/riterate", ["require", "exports", "fn/iterate"], function (require, exports, iterate_10) {
|
|
5501
5685
|
"use strict";
|
|
5502
5686
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5503
5687
|
exports.riterate = void 0;
|
|
5504
5688
|
const riterate = function (obj, fn, noPrivate) {
|
|
5505
|
-
return (0,
|
|
5689
|
+
return (0, iterate_10.iterate)(obj, fn, noPrivate, true);
|
|
5506
5690
|
};
|
|
5507
5691
|
exports.riterate = riterate;
|
|
5508
5692
|
});
|
|
@@ -5631,7 +5815,7 @@
|
|
|
5631
5815
|
};
|
|
5632
5816
|
exports.setProp = setProp;
|
|
5633
5817
|
});
|
|
5634
|
-
define("fn/setProperty", ["require", "exports", "fn/each"], function (require, exports,
|
|
5818
|
+
define("fn/setProperty", ["require", "exports", "fn/each"], function (require, exports, each_22) {
|
|
5635
5819
|
"use strict";
|
|
5636
5820
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5637
5821
|
exports.setProperty = void 0;
|
|
@@ -5639,7 +5823,7 @@
|
|
|
5639
5823
|
if (typeof obj === 'object' && typeof prop === 'string') {
|
|
5640
5824
|
let o = obj;
|
|
5641
5825
|
const bits = prop.split('.');
|
|
5642
|
-
(0,
|
|
5826
|
+
(0, each_22.each)(bits, (v, i) => {
|
|
5643
5827
|
if (!o) {
|
|
5644
5828
|
if (!force) {
|
|
5645
5829
|
throw new Error(bbn._('The object is invalid'));
|
|
@@ -5677,13 +5861,13 @@
|
|
|
5677
5861
|
};
|
|
5678
5862
|
exports.shorten = shorten;
|
|
5679
5863
|
});
|
|
5680
|
-
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) {
|
|
5681
5865
|
"use strict";
|
|
5682
5866
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5683
5867
|
exports.shortenObj = void 0;
|
|
5684
5868
|
const shortenObj = function (obj, max = 100) {
|
|
5685
5869
|
let o = (0, clone_1.clone)(obj);
|
|
5686
|
-
(0,
|
|
5870
|
+
(0, each_23.each)(o, (a, n) => {
|
|
5687
5871
|
if ((0, isString_26.isString)(a) && a.length > max) {
|
|
5688
5872
|
o[n] = (0, shorten_1.shorten)(a, max);
|
|
5689
5873
|
}
|
|
@@ -5713,7 +5897,7 @@
|
|
|
5713
5897
|
};
|
|
5714
5898
|
exports.shuffle = shuffle;
|
|
5715
5899
|
});
|
|
5716
|
-
define("fn/chrono", ["require", "exports", "fn/each"], function (require, exports,
|
|
5900
|
+
define("fn/chrono", ["require", "exports", "fn/each"], function (require, exports, each_24) {
|
|
5717
5901
|
"use strict";
|
|
5718
5902
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5719
5903
|
exports.stopChrono = exports.startChrono = void 0;
|
|
@@ -5722,7 +5906,7 @@
|
|
|
5722
5906
|
let now = new Date().getTime();
|
|
5723
5907
|
let h1 = 3600 * 1000;
|
|
5724
5908
|
if (_private.length) {
|
|
5725
|
-
(0,
|
|
5909
|
+
(0, each_24.each)(_private, (t, n) => {
|
|
5726
5910
|
if (now - t > h1) {
|
|
5727
5911
|
delete _private[n];
|
|
5728
5912
|
}
|
|
@@ -5809,13 +5993,13 @@
|
|
|
5809
5993
|
};
|
|
5810
5994
|
exports.string2ArrayBuffer = string2ArrayBuffer;
|
|
5811
5995
|
});
|
|
5812
|
-
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) {
|
|
5813
5997
|
"use strict";
|
|
5814
5998
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5815
5999
|
exports.sum = void 0;
|
|
5816
6000
|
const sum = function (arr, numberProp, prop, val, operator) {
|
|
5817
6001
|
let r = 0;
|
|
5818
|
-
(0,
|
|
6002
|
+
(0, each_25.each)((0, filter_5.filter)(arr, prop, val, operator), (a) => {
|
|
5819
6003
|
let tmp = typeof numberProp === 'function' ? numberProp(a) : a[numberProp];
|
|
5820
6004
|
if (tmp) {
|
|
5821
6005
|
r += parseFloat(tmp) || 0;
|
|
@@ -5835,7 +6019,7 @@
|
|
|
5835
6019
|
};
|
|
5836
6020
|
exports.timestamp = timestamp;
|
|
5837
6021
|
});
|
|
5838
|
-
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) {
|
|
5839
6023
|
"use strict";
|
|
5840
6024
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5841
6025
|
exports.toCSV = void 0;
|
|
@@ -5848,10 +6032,10 @@
|
|
|
5848
6032
|
}
|
|
5849
6033
|
let csvContent = '';
|
|
5850
6034
|
let total = arr.length;
|
|
5851
|
-
(0,
|
|
6035
|
+
(0, each_26.each)(arr, (a, i) => {
|
|
5852
6036
|
let num = (0, isArray_17.isArray)(a) ? a.length : Object.values(a).length;
|
|
5853
6037
|
let j = 0;
|
|
5854
|
-
(0,
|
|
6038
|
+
(0, each_26.each)(a, (b) => {
|
|
5855
6039
|
if (typeof b === 'string') {
|
|
5856
6040
|
csvContent += valEsc + (0, replaceAll_7.replaceAll)(valEsc, '\\' + valEsc, b) + valEsc;
|
|
5857
6041
|
}
|
|
@@ -5920,19 +6104,19 @@
|
|
|
5920
6104
|
};
|
|
5921
6105
|
exports.toggleFullScreen = toggleFullScreen;
|
|
5922
6106
|
});
|
|
5923
|
-
define("fn/translate", ["require", "exports", "fn/iterate"], function (require, exports,
|
|
6107
|
+
define("fn/translate", ["require", "exports", "fn/iterate"], function (require, exports, iterate_11) {
|
|
5924
6108
|
"use strict";
|
|
5925
6109
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5926
6110
|
exports.translate = void 0;
|
|
5927
6111
|
const translate = function (o, namespace) {
|
|
5928
6112
|
let lng = namespace ? bbn.lng[namespace.indexOf('_') === 0 ? namespace : '_' + namespace] : bbn.lng;
|
|
5929
|
-
(0,
|
|
6113
|
+
(0, iterate_11.iterate)(o, (v, k) => {
|
|
5930
6114
|
lng[k] = v;
|
|
5931
6115
|
});
|
|
5932
6116
|
};
|
|
5933
6117
|
exports.translate = translate;
|
|
5934
6118
|
});
|
|
5935
|
-
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) {
|
|
5936
6120
|
"use strict";
|
|
5937
6121
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5938
6122
|
exports.uniqString = void 0;
|
|
@@ -5950,7 +6134,7 @@
|
|
|
5950
6134
|
// An object with the same properties, even in different order, should produce the same answer
|
|
5951
6135
|
let tmp = {};
|
|
5952
6136
|
let ks = Object.keys(args[i]).sort();
|
|
5953
|
-
(0,
|
|
6137
|
+
(0, each_27.each)(ks, (k) => {
|
|
5954
6138
|
tmp[k] = args[i][k];
|
|
5955
6139
|
});
|
|
5956
6140
|
st += JSON.stringify(tmp);
|
|
@@ -5967,7 +6151,7 @@
|
|
|
5967
6151
|
};
|
|
5968
6152
|
exports.uniqString = uniqString;
|
|
5969
6153
|
});
|
|
5970
|
-
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) {
|
|
5971
6155
|
"use strict";
|
|
5972
6156
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5973
6157
|
exports.upload = void 0;
|
|
@@ -5992,13 +6176,13 @@
|
|
|
5992
6176
|
return fn()
|
|
5993
6177
|
.then((res) => {
|
|
5994
6178
|
if (success) {
|
|
5995
|
-
(0,
|
|
6179
|
+
(0, log_19.log)('SUCCESS', res);
|
|
5996
6180
|
success(res);
|
|
5997
6181
|
}
|
|
5998
6182
|
})
|
|
5999
6183
|
.catch((err) => {
|
|
6000
6184
|
if (failure) {
|
|
6001
|
-
(0,
|
|
6185
|
+
(0, log_19.log)('ERROR', err);
|
|
6002
6186
|
failure(err);
|
|
6003
6187
|
}
|
|
6004
6188
|
});
|
|
@@ -6006,7 +6190,7 @@
|
|
|
6006
6190
|
};
|
|
6007
6191
|
exports.upload = upload;
|
|
6008
6192
|
});
|
|
6009
|
-
define("fn", ["require", "exports", "fn/_addLoader", "fn/_compareValues", "fn/_deleteLoader", "fn/abort", "fn/abortURL", "fn/addColors", "fn/addInputs", "fn/addStyle", "fn/adjustHeight", "fn/adjustSize", "fn/adjustWidth", "fn/ajax", "fn/analyzeFunction", "fn/animateCss", "fn/arrayBuffer2String", "fn/arrayFromProp", "fn/autoExtend", "fn/baseName", "fn/br2nl", "fn/calendar", "fn/callback", "fn/camelize", "fn/camelToCss", "fn/canvasToImage", "fn/center", "fn/checkProps", "fn/checkPropsDetails", "fn/checkPropsOrDie", "fn/checkType", "fn/circularReplacer", "fn/clone", "fn/colorToHex", "fn/compare", "fn/compareConditions", "fn/copy", "fn/correctCase", "fn/count", "fn/crc32", "fn/createObject", "fn/cssExists", "fn/date", "fn/dateSQL", "fn/daysInMonth", "fn/deepPath", "fn/defaultAjaxAbortFunction", "fn/defaultAjaxErrorFunction", "fn/defaultAlertFunction", "fn/defaultConfirmFunction", "fn/defaultEndLoadingFunction", "fn/defaultErrorFunction", "fn/defaultHistoryFunction", "fn/defaultLinkFunction", "fn/defaultPostLinkFunction", "fn/defaultPreLinkFunction", "fn/defaultResizeFunction", "fn/defaultStartLoadingFunction", "fn/deleteProp", "fn/diffObj", "fn/dirName", "fn/download", "fn/downloadContent", "fn/each", "fn/eraseCookie", "fn/error", "fn/escapeDquotes", "fn/escapeRegExp", "fn/escapeSquotes", "fn/escapeTicks", "fn/escapeUrl", "fn/extend", "fn/extendOut", "fn/fdate", "fn/fdatetime", "fn/fieldValue", "fn/fileExt", "fn/filter", "fn/filterToConditions", "fn/findAll", "fn/fori", "fn/forir", "fn/format", "fn/formatBytes", "fn/formatDate", "fn/formatSize", "fn/formdata", "fn/fromXml", "fn/ftime", "fn/getAllTags", "fn/getAncestors", "fn/getAttributes", "fn/getBrowserName", "fn/getBrowserVersion", "fn/getCookie", "fn/getCssVar", "fn/getDay", "fn/getDeviceType", "fn/getEventData", "fn/getField", "fn/getFieldValues", "fn/getHtml", "fn/getHTMLOfSelection", "fn/getLoader", "fn/getPath", "fn/getProp", "fn/getProperty", "fn/getRequestId", "fn/getRow", "fn/getScrollBarSize", "fn/getText", "fn/getTimeoff", "fn/happy", "fn/hash", "fn/hex2rgb", "fn/history", "fn/html2text", "fn/imageToCanvas", "fn/imgToBase64", "fn/info", "fn/init", "fn/isActiveInterface", "fn/isArray", "fn/isBlob", "fn/isBoolean", "fn/isCanvas", "fn/isColor", "fn/isComment", "fn/isCp", "fn/isDate", "fn/isDesktopDevice", "fn/isDimension", "fn/isDom", "fn/isEmail", "fn/isEmpty", "fn/isEvent", "fn/isFocused", "fn/isFunction", "fn/isHostname", "fn/isInside", "fn/isInt", "fn/isIP", "fn/isIterable", "fn/isMobile", "fn/isMobileDevice", "fn/isNull", "fn/isNumber", "fn/isObject", "fn/isPercent", "fn/isPrimitive", "fn/isPromise", "fn/isPropSize", "fn/isSame", "fn/isSQLDate", "fn/isString", "fn/isSymbol", "fn/isTabletDevice", "fn/isURL", "fn/isValidDimension", "fn/isValidName", "fn/isValue", "fn/isVue", "fn/iterate", "fn/lightenDarkenHex", "fn/link", "fn/log", "fn/makeReactive", "fn/map", "fn/md5", "fn/money", "fn/move", "fn/multiorder", "fn/nl2br", "fn/numProperties", "fn/objectToFormData", "fn/order", "fn/outerHeight", "fn/outerWidth", "fn/percent", "fn/pickValue", "fn/post", "fn/postOut", "fn/printf", "fn/quotes2html", "fn/randomInt", "fn/randomString", "fn/removeAccents", "fn/removeEmpty", "fn/removeExtraSpaces", "fn/removeHtmlComments", "fn/removePrivateProp", "fn/removeTrailingChars", "fn/repeat", "fn/replaceAll", "fn/replaceSelection", "fn/resize", "fn/rgb2hex", "fn/riterate", "fn/roundDecimal", "fn/sanitize", "fn/search", "fn/selectElementText", "fn/selector", "fn/setCookie", "fn/setCssVar", "fn/setNavigationVars", "fn/setProp", "fn/setProperty", "fn/shorten", "fn/shortenObj", "fn/shuffle", "fn/simpleHash", "fn/simpleHash1", "fn/simpleHash2", "fn/chrono", "fn/stat", "fn/string2ArrayBuffer", "fn/submit", "fn/substr", "fn/sum", "fn/timestamp", "fn/toCSV", "fn/toggleFullScreen", "fn/translate", "fn/treatAjaxArguments", "fn/trim", "fn/uniqString", "fn/unique", "fn/upload", "fn/warning"], function (require, exports, _addLoader_2, _compareValues_3, _deleteLoader_2, abort_1, abortURL_1, addColors_2, addInputs_2, addStyle_1, adjustHeight_1, adjustSize_3, adjustWidth_1, ajax_4, analyzeFunction_1, animateCss_1, arrayBuffer2String_1, arrayFromProp_1, autoExtend_1, baseName_3, br2nl_1, calendar_1, callback_3, camelize_1, camelToCss_1, canvasToImage_1, center_1, checkProps_1, checkPropsDetails_3, checkPropsOrDie_1, checkType_6, circularReplacer_2, clone_2, colorToHex_1, compare_2, compareConditions_3, copy_1, correctCase_2, count_1, crc32_1, createObject_4, cssExists_1, date_8, dateSQL_1, daysInMonth_1, deepPath_1, defaultAjaxAbortFunction_2, defaultAjaxErrorFunction_3, defaultAlertFunction_2, defaultConfirmFunction_1, defaultEndLoadingFunction_2, defaultErrorFunction_2, defaultHistoryFunction_2, defaultLinkFunction_2, defaultPostLinkFunction_2, defaultPreLinkFunction_2, defaultResizeFunction_2, defaultStartLoadingFunction_2, deleteProp_1, diffObj_1, dirName_2, download_1, downloadContent_2,
|
|
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) {
|
|
6010
6194
|
"use strict";
|
|
6011
6195
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6012
6196
|
exports.fn = void 0;
|
|
@@ -6072,7 +6256,7 @@
|
|
|
6072
6256
|
dirName: dirName_2.dirName,
|
|
6073
6257
|
download: download_1.download,
|
|
6074
6258
|
downloadContent: downloadContent_2.downloadContent,
|
|
6075
|
-
each:
|
|
6259
|
+
each: each_28.each,
|
|
6076
6260
|
eraseCookie: eraseCookie_1.eraseCookie,
|
|
6077
6261
|
error: error_4.error,
|
|
6078
6262
|
escapeDquotes: escapeDquotes_1.escapeDquotes,
|
|
@@ -6171,10 +6355,10 @@
|
|
|
6171
6355
|
isValidName: isValidName_1.isValidName,
|
|
6172
6356
|
isValue: isValue_2.isValue,
|
|
6173
6357
|
isVue: isVue_1.isVue,
|
|
6174
|
-
iterate:
|
|
6358
|
+
iterate: iterate_12.iterate,
|
|
6175
6359
|
lightenDarkenHex: lightenDarkenHex_1.lightenDarkenHex,
|
|
6176
6360
|
link: link_2.link,
|
|
6177
|
-
log:
|
|
6361
|
+
log: log_20.log,
|
|
6178
6362
|
makeReactive: makeReactive_1.makeReactive,
|
|
6179
6363
|
map: map_1.map,
|
|
6180
6364
|
md5: md5_4.md5,
|
|
@@ -6243,7 +6427,7 @@
|
|
|
6243
6427
|
};
|
|
6244
6428
|
exports.fn = fn;
|
|
6245
6429
|
});
|
|
6246
|
-
define("index", ["require", "exports", "_", "$", "lng", "vars", "env", "fn"], function (require, exports,
|
|
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) {
|
|
6247
6431
|
"use strict";
|
|
6248
6432
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6249
6433
|
exports.bbn = void 0;
|
|
@@ -6253,11 +6437,12 @@
|
|
|
6253
6437
|
_cat: {}
|
|
6254
6438
|
},
|
|
6255
6439
|
app: {},
|
|
6256
|
-
_:
|
|
6257
|
-
$:
|
|
6440
|
+
_: _2._,
|
|
6441
|
+
$: _3.$,
|
|
6258
6442
|
lng: lng_1.lng,
|
|
6259
6443
|
vars: vars_1.vars,
|
|
6260
6444
|
env: env_1.env,
|
|
6445
|
+
db: db_1.db,
|
|
6261
6446
|
fn: fn_1.fn
|
|
6262
6447
|
};
|
|
6263
6448
|
exports.bbn = bbn;
|