@bbn/bbn 1.0.14 → 1.0.15

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.
Files changed (51) hide show
  1. package/dist/bundle.d.ts +3 -3
  2. package/dist/bundle.js +180 -191
  3. package/dist/fn/_addLoader.js +3 -15
  4. package/dist/fn/_compareValues.js +2 -2
  5. package/dist/fn/_deleteLoader.js +0 -1
  6. package/dist/fn/abortURL.js +0 -1
  7. package/dist/fn/addColors.js +3 -4
  8. package/dist/fn/ajax.js +0 -1
  9. package/dist/fn/autoExtend.js +0 -1
  10. package/dist/fn/calendar.js +0 -1
  11. package/dist/fn/callback.js +0 -1
  12. package/dist/fn/checkPropsDetails.js +0 -1
  13. package/dist/fn/checkType.js +0 -1
  14. package/dist/fn/deleteProp.js +0 -1
  15. package/dist/fn/extend.js +0 -1
  16. package/dist/fn/fdatetime.js +0 -1
  17. package/dist/fn/format.js +0 -1
  18. package/dist/fn/getEventData.js +0 -1
  19. package/dist/fn/getLoader.d.ts +1 -1
  20. package/dist/fn/getLoader.js +0 -1
  21. package/dist/fn/getProp.js +0 -1
  22. package/dist/fn/getScrollBarSize.d.ts +1 -1
  23. package/dist/fn/getScrollBarSize.js +0 -1
  24. package/dist/fn/getTimeoff.js +0 -1
  25. package/dist/fn/init.js +2 -3
  26. package/dist/fn/isActiveInterface.js +0 -1
  27. package/dist/fn/isCp.js +0 -1
  28. package/dist/fn/isHostname.js +1 -2
  29. package/dist/fn/isIP.js +1 -2
  30. package/dist/fn/isString.d.ts +1 -1
  31. package/dist/fn/isString.js +3 -3
  32. package/dist/fn/isURL.js +1 -2
  33. package/dist/fn/isVue.js +0 -1
  34. package/dist/fn/link.js +0 -1
  35. package/dist/fn/log.js +0 -1
  36. package/dist/fn/money.js +0 -1
  37. package/dist/fn/removeAccents.js +0 -1
  38. package/dist/fn/resize.js +0 -1
  39. package/dist/fn/search.js +0 -1
  40. package/dist/fn/setNavigationVars.js +0 -1
  41. package/dist/fn/setProp.js +0 -1
  42. package/dist/fn/setProperty.js +0 -1
  43. package/dist/fn/shorten.js +1 -2
  44. package/dist/fn/stat.js +1 -2
  45. package/dist/fn/submit.js +0 -1
  46. package/dist/fn/substr.js +0 -1
  47. package/dist/fn/translate.js +0 -1
  48. package/dist/fn/treatAjaxArguments.js +0 -1
  49. package/dist/fn/upload.js +0 -1
  50. package/dist/index.js +1 -1
  51. package/package.json +1 -1
package/dist/bundle.js CHANGED
@@ -13,10 +13,10 @@
13
13
  "use strict";
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.isString = void 0;
16
- const isString = function (...args) {
17
- if (!args.length)
16
+ const isString = function () {
17
+ if (!arguments.length)
18
18
  return false;
19
- for (let a of args) {
19
+ for (let a of arguments) {
20
20
  if ({}.toString.apply(a) !== '[object String]') {
21
21
  return false;
22
22
  }
@@ -57,7 +57,7 @@
57
57
  };
58
58
  exports.isFunction = isFunction;
59
59
  });
60
- define("fn/log", ["require", "exports", "../definitions", "fn/isFunction"], function (require, exports, definitions_1, isFunction_1) {
60
+ define("fn/log", ["require", "exports", "fn/isFunction"], function (require, exports, isFunction_1) {
61
61
  "use strict";
62
62
  Object.defineProperty(exports, "__esModule", { value: true });
63
63
  exports.log = void 0;
@@ -76,7 +76,7 @@
76
76
  }
77
77
  args.shift();
78
78
  }
79
- if (definitions_1.bbn.env.loggingLevel >= level) {
79
+ if (bbn.env.loggingLevel >= level) {
80
80
  let i = 0;
81
81
  while (i < args.length) {
82
82
  let t = typeof args[i];
@@ -94,14 +94,14 @@
94
94
  };
95
95
  exports.log = log;
96
96
  });
97
- define("fn/substr", ["require", "exports", "../definitions", "fn/isString", "fn/isInt", "fn/log"], function (require, exports, definitions_2, isString_1, isInt_1, log_1) {
97
+ define("fn/substr", ["require", "exports", "fn/isString", "fn/isInt", "fn/log"], function (require, exports, isString_1, isInt_1, log_1) {
98
98
  "use strict";
99
99
  Object.defineProperty(exports, "__esModule", { value: true });
100
100
  exports.substr = void 0;
101
101
  const substr = function (str, from, length) {
102
102
  if (!(0, isString_1.isString)(str) || !(0, isInt_1.isInt)(from)) {
103
103
  (0, log_1.log)(arguments);
104
- throw new Error(definitions_2.bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));
104
+ throw new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));
105
105
  }
106
106
  if (from < 0) {
107
107
  from = str.length + from;
@@ -113,32 +113,21 @@
113
113
  };
114
114
  exports.substr = substr;
115
115
  });
116
- define("fn/_addLoader", ["require", "exports", "../definitions", "fn/substr"], function (require, exports, definitions_3, substr_1) {
116
+ define("fn/_addLoader", ["require", "exports", "fn/substr"], function (require, exports, substr_1) {
117
117
  "use strict";
118
118
  Object.defineProperty(exports, "__esModule", { value: true });
119
119
  exports._addLoader = void 0;
120
120
  const _addLoader = function (requestId, prom, source) {
121
- let tst = new Date().getTime();
121
+ let tst = (new Date()).getTime();
122
122
  let url = (0, substr_1.substr)(requestId, 0, requestId.length - 33);
123
- let loader = {
124
- key: requestId,
125
- url: url,
126
- loader: prom,
127
- source: source,
128
- loading: true,
129
- error: false,
130
- abort: false,
131
- errorMessage: false,
132
- success: false,
133
- start: tst,
134
- };
135
- definitions_3.bbn.env.loaders.push(loader);
136
- definitions_3.bbn.env.loadersHistory.unshift(loader);
137
- let idx = definitions_3.bbn.env.loadersHistory.length;
138
- while (idx && definitions_3.bbn.env.loadersHistory.length > definitions_3.bbn.env.maxLoadersHistory) {
123
+ let loader = { key: requestId, url: url, loader: prom, source: source, loading: true, error: false, abort: false, errorMessage: false, success: false, start: tst };
124
+ bbn.env.loaders.push(loader);
125
+ bbn.env.loadersHistory.unshift(loader);
126
+ let idx = bbn.env.loadersHistory.length;
127
+ while (idx && (bbn.env.loadersHistory.length > bbn.env.maxLoadersHistory)) {
139
128
  idx--;
140
- if (!definitions_3.bbn.env.loadersHistory.loading) {
141
- definitions_3.bbn.env.loadersHistory.splice(idx, 1);
129
+ if (!bbn.env.loadersHistory.loading) {
130
+ bbn.env.loadersHistory.splice(idx, 1);
142
131
  }
143
132
  }
144
133
  return tst;
@@ -161,7 +150,7 @@
161
150
  };
162
151
  exports.getProperty = getProperty;
163
152
  });
164
- define("fn/removeAccents", ["require", "exports", "../definitions", "fn/isString", "fn/log"], function (require, exports, definitions_4, isString_2, log_2) {
153
+ define("fn/removeAccents", ["require", "exports", "fn/isString", "fn/log"], function (require, exports, isString_2, log_2) {
165
154
  "use strict";
166
155
  Object.defineProperty(exports, "__esModule", { value: true });
167
156
  exports.removeAccents = void 0;
@@ -172,7 +161,7 @@
172
161
  }
173
162
  else {
174
163
  (0, log_2.log)(st);
175
- throw new Error(definitions_4.bbn._("removeAccent expects a string"));
164
+ throw new Error(bbn._("removeAccent expects a string"));
176
165
  }
177
166
  }
178
167
  return st.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
@@ -200,8 +189,8 @@
200
189
  Object.defineProperty(exports, "__esModule", { value: true });
201
190
  exports._compareValues = void 0;
202
191
  const _compareValues = function (a, b, prop, dir = 'asc') {
203
- let va = (0, getProperty_1.getProperty)(a, prop), vb = (0, getProperty_1.getProperty)(b, prop), ta = (typeof va).toLowerCase(), tb = (typeof vb).toLowerCase();
204
- if (dir !== 'asc' && (0, isString_3.isString)(dir) && dir.toLowerCase() === 'desc') {
192
+ let va = (0, getProperty_1.getProperty)(a, prop), vb = (0, getProperty_1.getProperty)(b, prop), ta = (typeof (va)).toLowerCase(), tb = (typeof (vb)).toLowerCase();
193
+ if ((dir !== 'asc') && (0, isString_3.isString)(dir) && (dir.toLowerCase() === 'desc')) {
205
194
  dir = 'desc';
206
195
  }
207
196
  if (ta !== tb) {
@@ -422,7 +411,7 @@
422
411
  };
423
412
  exports.isDom = isDom;
424
413
  });
425
- define("fn/isCp", ["require", "exports", "../definitions", "fn/isDom"], function (require, exports, definitions_5, isDom_1) {
414
+ define("fn/isCp", ["require", "exports", "fn/isDom"], function (require, exports, isDom_1) {
426
415
  "use strict";
427
416
  Object.defineProperty(exports, "__esModule", { value: true });
428
417
  exports.isCp = void 0;
@@ -430,11 +419,11 @@
430
419
  if (!arguments.length) {
431
420
  return false;
432
421
  }
433
- if (!Object.hasOwn(definitions_5.bbn, 'cp')) {
422
+ if (!Object.hasOwn(bbn, 'cp')) {
434
423
  return false;
435
424
  }
436
425
  for (let a of arguments) {
437
- let res = definitions_5.bbn.cp.isComponent(a);
426
+ let res = bbn.cp.isComponent(a);
438
427
  if (!res || (0, isDom_1.isDom)(res) || !res.$el) {
439
428
  return false;
440
429
  }
@@ -738,13 +727,13 @@
738
727
  };
739
728
  exports.filterToConditions = filterToConditions;
740
729
  });
741
- define("fn/search", ["require", "exports", "../definitions", "fn/isIterable", "fn/isString", "fn/compareConditions", "fn/filterToConditions", "fn/isObject", "fn/numProperties", "fn/isNumber"], function (require, exports, definitions_6, isIterable_2, isString_4, compareConditions_1, filterToConditions_1, isObject_3, numProperties_2, isNumber_2) {
730
+ define("fn/search", ["require", "exports", "fn/isIterable", "fn/isString", "fn/compareConditions", "fn/filterToConditions", "fn/isObject", "fn/numProperties", "fn/isNumber"], function (require, exports, isIterable_2, isString_4, compareConditions_1, filterToConditions_1, isObject_3, numProperties_2, isNumber_2) {
742
731
  "use strict";
743
732
  Object.defineProperty(exports, "__esModule", { value: true });
744
733
  exports.search = void 0;
745
734
  const search = function (arr, prop, val, operator, startFrom) {
746
735
  if (!(0, isIterable_2.isIterable)(arr)) {
747
- throw new Error(definitions_6.bbn._("The first argument for a search should be iterable") + " " + (typeof arr) + " " + definitions_6.bbn._("given"));
736
+ throw new Error(bbn._("The first argument for a search should be iterable") + " " + (typeof arr) + " " + bbn._("given"));
748
737
  }
749
738
  if (!arr.length) {
750
739
  return -1;
@@ -810,15 +799,15 @@
810
799
  };
811
800
  exports.getRow = getRow;
812
801
  });
813
- define("fn/_deleteLoader", ["require", "exports", "../definitions", "fn/search", "fn/getRow", "fn/isObject"], function (require, exports, definitions_7, search_2, getRow_1, isObject_4) {
802
+ define("fn/_deleteLoader", ["require", "exports", "fn/search", "fn/getRow", "fn/isObject"], function (require, exports, search_2, getRow_1, isObject_4) {
814
803
  "use strict";
815
804
  Object.defineProperty(exports, "__esModule", { value: true });
816
805
  exports._deleteLoader = void 0;
817
806
  const _deleteLoader = function (requestId, res, isAbort) {
818
- let idx = (0, search_2.search)(definitions_7.bbn.env.loaders, { key: requestId });
807
+ let idx = (0, search_2.search)(bbn.env.loaders, { key: requestId });
819
808
  if (idx > -1) {
820
- let loader = definitions_7.bbn.env.loaders.splice(idx, 1)[0];
821
- let history = (0, getRow_1.getRow)(definitions_7.bbn.env.loadersHistory, { key: requestId, start: loader.start });
809
+ let loader = bbn.env.loaders.splice(idx, 1)[0];
810
+ let history = (0, getRow_1.getRow)(bbn.env.loadersHistory, { key: requestId, start: loader.start });
822
811
  if (history) {
823
812
  history.loading = false;
824
813
  history.duration = (new Date()).getTime() - loader.start;
@@ -837,14 +826,14 @@
837
826
  };
838
827
  exports._deleteLoader = _deleteLoader;
839
828
  });
840
- define("fn/getLoader", ["require", "exports", "../definitions", "fn/search"], function (require, exports, definitions_8, search_3) {
829
+ define("fn/getLoader", ["require", "exports", "fn/search"], function (require, exports, search_3) {
841
830
  "use strict";
842
831
  Object.defineProperty(exports, "__esModule", { value: true });
843
832
  exports.getLoader = void 0;
844
833
  const getLoader = function (requestId) {
845
- let idx = (0, search_3.search)(definitions_8.bbn.env.loaders, { key: requestId });
834
+ let idx = (0, search_3.search)(bbn.env.loaders, { key: requestId });
846
835
  if (idx > -1) {
847
- return definitions_8.bbn.env.loaders[idx];
836
+ return bbn.env.loaders[idx];
848
837
  }
849
838
  return false;
850
839
  };
@@ -900,12 +889,12 @@
900
889
  };
901
890
  exports.filter = filter;
902
891
  });
903
- define("fn/abortURL", ["require", "exports", "../definitions", "fn/each", "fn/filter"], function (require, exports, definitions_9, each_5, filter_1) {
892
+ define("fn/abortURL", ["require", "exports", "fn/each", "fn/filter"], function (require, exports, each_5, filter_1) {
904
893
  "use strict";
905
894
  Object.defineProperty(exports, "__esModule", { value: true });
906
895
  exports.abortURL = void 0;
907
896
  const abortURL = function (url) {
908
- (0, each_5.each)((0, filter_1.filter)(definitions_9.bbn.env.loaders, { url: url }), a => {
897
+ (0, each_5.each)((0, filter_1.filter)(bbn.env.loaders, { url: url }), a => {
909
898
  if (a && a.source) {
910
899
  a.source.cancel('Operation canceled by the user.');
911
900
  }
@@ -916,21 +905,21 @@
916
905
  };
917
906
  exports.abortURL = abortURL;
918
907
  });
919
- define("fn/addColors", ["require", "exports", "../definitions", "fn/numProperties", "fn/iterate"], function (require, exports, definitions_10, numProperties_3, iterate_3) {
908
+ define("fn/addColors", ["require", "exports", "fn/numProperties", "fn/iterate"], function (require, exports, numProperties_3, iterate_3) {
920
909
  "use strict";
921
910
  Object.defineProperty(exports, "__esModule", { value: true });
922
911
  exports.addColors = void 0;
923
912
  const addColors = function (colors) {
924
913
  let st = '';
925
914
  if ((0, numProperties_3.numProperties)(colors)) {
926
- if (!definitions_10.bbn.var.colors) {
927
- definitions_10.bbn.var.colors = {};
915
+ if (!bbn.vars.colors) {
916
+ bbn.vars.colors = {};
928
917
  }
929
918
  let element = document.createElement('style');
930
919
  document.head.appendChild(element);
931
920
  let sheet = element.sheet;
932
921
  let i = 0;
933
- (0, iterate_3.iterate)(colors, (v, n) => { definitions_10.bbn.var.colors[n] = v; sheet.insertRule('.bbn-' + n + ', .bbn-color-text-' + n + ' {color: ' + v + ' !important;}', i); sheet.insertRule('svg.bbn-' + n + ', .bbn-' + n + ' svg, svg.bbn-color-text-' + n + ', .bbn-color-text-' + n + ' svg {fill: ' + v + ';}', i); sheet.insertRule('.bbn-bg-' + n + ', .bbn-color-bg-' + n + ', .bbn-color-background-' + n + ' {background-color: ' + v + ' !important;}', i); sheet.insertRule('.bbn-border-' + n + ', .bbn-color-border-' + n + ' {border-color: ' + v + ' !important;}', i); sheet.insertRule('.bbn-color-' + n + ' {border-color: ' + v + '; background-color: ' + v + '; color: ' + v + ';}', i); });
922
+ (0, iterate_3.iterate)(colors, (v, n) => { bbn.vars.colors[n] = v; sheet.insertRule('.bbn-' + n + ', .bbn-color-text-' + n + ' {color: ' + v + ' !important;}', i); sheet.insertRule('svg.bbn-' + n + ', .bbn-' + n + ' svg, svg.bbn-color-text-' + n + ', .bbn-color-text-' + n + ' svg {fill: ' + v + ';}', i); sheet.insertRule('.bbn-bg-' + n + ', .bbn-color-bg-' + n + ', .bbn-color-background-' + n + ' {background-color: ' + v + ' !important;}', i); sheet.insertRule('.bbn-border-' + n + ', .bbn-color-border-' + n + ' {border-color: ' + v + ' !important;}', i); sheet.insertRule('.bbn-color-' + n + ' {border-color: ' + v + '; background-color: ' + v + '; color: ' + v + ';}', i); });
934
923
  }
935
924
  };
936
925
  exports.addColors = addColors;
@@ -1151,7 +1140,7 @@
1151
1140
  };
1152
1141
  exports.getRequestId = getRequestId;
1153
1142
  });
1154
- define("fn/extend", ["require", "exports", "../definitions", "fn/iterate", "fn/isArray", "fn/each", "fn/isObject"], function (require, exports, definitions_11, iterate_7, isArray_5, each_7, isObject_8) {
1143
+ define("fn/extend", ["require", "exports", "fn/iterate", "fn/isArray", "fn/each", "fn/isObject"], function (require, exports, iterate_7, isArray_5, each_7, isObject_8) {
1155
1144
  "use strict";
1156
1145
  Object.defineProperty(exports, "__esModule", { value: true });
1157
1146
  exports.extend = void 0;
@@ -1166,7 +1155,7 @@
1166
1155
  continue;
1167
1156
  }
1168
1157
  else if (typeof arguments[i] !== 'object') {
1169
- throw new Error(definitions_11.bbn._("Error in extend: all arguments should be object, you have given ") + typeof (arguments[i]));
1158
+ throw new Error(bbn._("Error in extend: all arguments should be object, you have given ") + typeof (arguments[i]));
1170
1159
  }
1171
1160
  else {
1172
1161
  args.push(arguments[i]);
@@ -1246,7 +1235,7 @@
1246
1235
  const defaultStartLoadingFunction = function (url, data) { return true; };
1247
1236
  exports.defaultStartLoadingFunction = defaultStartLoadingFunction;
1248
1237
  });
1249
- define("fn/ajax", ["require", "exports", "../definitions", "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, definitions_12, isObject_9, replaceAll_1, getRequestId_1, getLoader_2, extend_1, numProperties_4, _deleteLoader_1, defaultEndLoadingFunction_1, isFunction_3, defaultAjaxErrorFunction_1, defaultAjaxAbortFunction_1, _addLoader_1, defaultStartLoadingFunction_1) {
1238
+ 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_9, replaceAll_1, getRequestId_1, getLoader_2, extend_1, numProperties_4, _deleteLoader_1, defaultEndLoadingFunction_1, isFunction_3, defaultAjaxErrorFunction_1, defaultAjaxAbortFunction_1, _addLoader_1, defaultStartLoadingFunction_1) {
1250
1239
  "use strict";
1251
1240
  Object.defineProperty(exports, "__esModule", { value: true });
1252
1241
  exports.ajax = void 0;
@@ -1284,8 +1273,8 @@
1284
1273
  if (loaderObj && loaderObj.loader) {
1285
1274
  return loaderObj.loader;
1286
1275
  }
1287
- if (definitions_12.bbn.env.token) {
1288
- (0, extend_1.extend)(data || {}, { _bbn_token: definitions_12.bbn.env.token });
1276
+ if (bbn.env.token) {
1277
+ (0, extend_1.extend)(data || {}, { _bbn_token: bbn.env.token });
1289
1278
  }
1290
1279
  let cancelToken = axios.CancelToken;
1291
1280
  let source = cancelToken.source();
@@ -1508,17 +1497,17 @@
1508
1497
  const arrayFromProp = function (arr, prop) { let r = []; (0, each_8.each)(arr, (a, i) => { r.push((0, getProperty_3.getProperty)(a, prop)); }); return r; };
1509
1498
  exports.arrayFromProp = arrayFromProp;
1510
1499
  });
1511
- define("fn/autoExtend", ["require", "exports", "../definitions", "fn/extend"], function (require, exports, definitions_13, extend_2) {
1500
+ define("fn/autoExtend", ["require", "exports", "fn/extend"], function (require, exports, extend_2) {
1512
1501
  "use strict";
1513
1502
  Object.defineProperty(exports, "__esModule", { value: true });
1514
1503
  exports.autoExtend = void 0;
1515
1504
  const autoExtend = function (namespace, obj) {
1516
- if (!definitions_13.bbn[namespace]) {
1517
- definitions_13.bbn[namespace] = {};
1518
- (0, extend_2.extend)(definitions_13.bbn[namespace], obj);
1505
+ if (!bbn[namespace]) {
1506
+ bbn[namespace] = {};
1507
+ (0, extend_2.extend)(bbn[namespace], obj);
1519
1508
  }
1520
1509
  else {
1521
- (0, extend_2.extend)(definitions_13.bbn[namespace], obj);
1510
+ (0, extend_2.extend)(bbn[namespace], obj);
1522
1511
  }
1523
1512
  };
1524
1513
  exports.autoExtend = autoExtend;
@@ -1580,7 +1569,7 @@
1580
1569
  };
1581
1570
  exports.date = date;
1582
1571
  });
1583
- define("fn/fdatetime", ["require", "exports", "../definitions", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, definitions_14, date_1, isDate_3, isString_6) {
1572
+ define("fn/fdatetime", ["require", "exports", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, date_1, isDate_3, isString_6) {
1584
1573
  "use strict";
1585
1574
  Object.defineProperty(exports, "__esModule", { value: true });
1586
1575
  exports.fdatetime = void 0;
@@ -1590,7 +1579,7 @@
1590
1579
  return wrong_result && (0, isString_6.isString)(wrong_result) ? wrong_result : '';
1591
1580
  }
1592
1581
  if (undefined !== dayjs) {
1593
- return dayjs(r).calendar(null, { sameDay: '[' + definitions_14.bbn._('Today') + '] HH:mm', nextDay: '[' + definitions_14.bbn._('Tomorrow') + '] HH:mm', nextWeek: 'ddd D HH:mm', lastDay: '[' + definitions_14.bbn._('Yesterday') + '] HH:mm', lastWeek: 'ddd D HH:mm', sameElse: 'DD/MM/YYYY HH:mm' });
1582
+ return dayjs(r).calendar(null, { sameDay: '[' + bbn._('Today') + '] HH:mm', nextDay: '[' + bbn._('Tomorrow') + '] HH:mm', nextWeek: 'ddd D HH:mm', lastDay: '[' + bbn._('Yesterday') + '] HH:mm', lastWeek: 'ddd D HH:mm', sameElse: 'DD/MM/YYYY HH:mm' });
1594
1583
  }
1595
1584
  return r.toLocaleDateString();
1596
1585
  };
@@ -1615,7 +1604,7 @@
1615
1604
  };
1616
1605
  exports.fdate = fdate;
1617
1606
  });
1618
- define("fn/calendar", ["require", "exports", "../definitions", "fn/fdate", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, definitions_15, fdate_1, date_3, isDate_5, isString_8) {
1607
+ define("fn/calendar", ["require", "exports", "fn/fdate", "fn/date", "fn/isDate", "fn/isString"], function (require, exports, fdate_1, date_3, isDate_5, isString_8) {
1619
1608
  "use strict";
1620
1609
  Object.defineProperty(exports, "__esModule", { value: true });
1621
1610
  exports.calendar = void 0;
@@ -1627,7 +1616,7 @@
1627
1616
  if (!(0, isDate_5.isDate)(r)) {
1628
1617
  return wrong_result && (0, isString_8.isString)(wrong_result) ? wrong_result : '';
1629
1618
  }
1630
- return dayjs(r).calendar(null, { sameDay: '[' + definitions_15.bbn._('Today') + ']', nextDay: '[' + definitions_15.bbn._('Tomorrow') + ']', nextWeek: 'ddd D', lastDay: '[' + definitions_15.bbn._('Yesterday') + ']', lastWeek: 'ddd D', sameElse: 'L' });
1619
+ return dayjs(r).calendar(null, { sameDay: '[' + bbn._('Today') + ']', nextDay: '[' + bbn._('Tomorrow') + ']', nextWeek: 'ddd D', lastDay: '[' + bbn._('Yesterday') + ']', lastWeek: 'ddd D', sameElse: 'L' });
1631
1620
  };
1632
1621
  exports.calendar = calendar;
1633
1622
  });
@@ -1669,7 +1658,7 @@
1669
1658
  const defaultAlertFunction = function (text, title) { alert(text); };
1670
1659
  exports.defaultAlertFunction = defaultAlertFunction;
1671
1660
  });
1672
- define("fn/callback", ["require", "exports", "../definitions", "fn/error", "fn/defaultLinkFunction", "./insertContent", "fn/isFunction", "fn/log", "fn/defaultPostLinkFunction", "fn/defaultAlertFunction"], function (require, exports, definitions_16, error_1, defaultLinkFunction_1, insertContent_1, isFunction_4, log_8, defaultPostLinkFunction_1, defaultAlertFunction_1) {
1661
+ define("fn/callback", ["require", "exports", "fn/error", "fn/defaultLinkFunction", "./insertContent", "fn/isFunction", "fn/log", "fn/defaultPostLinkFunction", "fn/defaultAlertFunction"], function (require, exports, error_1, defaultLinkFunction_1, insertContent_1, isFunction_4, log_8, defaultPostLinkFunction_1, defaultAlertFunction_1) {
1673
1662
  "use strict";
1674
1663
  Object.defineProperty(exports, "__esModule", { value: true });
1675
1664
  exports.callback = void 0;
@@ -1736,12 +1725,12 @@
1736
1725
  eval(res.postscript);
1737
1726
  }
1738
1727
  if (isObj && res.error) {
1739
- errTitle = res.errorTitle || definitions_16.bbn.lng.server_response;
1728
+ errTitle = res.errorTitle || bbn.lng.server_response;
1740
1729
  (0, defaultAlertFunction_1.defaultAlertFunction)(res.error, errTitle);
1741
1730
  }
1742
1731
  }
1743
1732
  else {
1744
- (0, defaultAlertFunction_1.defaultAlertFunction)(definitions_16.bbn.lng.errorText, definitions_16.bbn.lng.error);
1733
+ (0, defaultAlertFunction_1.defaultAlertFunction)(bbn.lng.errorText, bbn.lng.error);
1745
1734
  }
1746
1735
  return tmp;
1747
1736
  };
@@ -1794,7 +1783,7 @@
1794
1783
  };
1795
1784
  exports.center = center;
1796
1785
  });
1797
- define("fn/checkPropsDetails", ["require", "exports", "../definitions", "fn/isString", "fn/isArray", "fn/isObject", "fn/each", "fn/substr"], function (require, exports, definitions_17, isString_9, isArray_6, isObject_10, each_9, substr_5) {
1786
+ define("fn/checkPropsDetails", ["require", "exports", "fn/isString", "fn/isArray", "fn/isObject", "fn/each", "fn/substr"], function (require, exports, isString_9, isArray_6, isObject_10, each_9, substr_5) {
1798
1787
  "use strict";
1799
1788
  Object.defineProperty(exports, "__esModule", { value: true });
1800
1789
  exports.checkPropsDetails = void 0;
@@ -1804,10 +1793,10 @@
1804
1793
  props = [props];
1805
1794
  }
1806
1795
  if (!(0, isArray_6.isArray)(props)) {
1807
- res.error = definitions_17.bbn._("checkProps must receive a string or an array as props argument");
1796
+ res.error = bbn._("checkProps must receive a string or an array as props argument");
1808
1797
  }
1809
1798
  if (!(0, isObject_10.isObject)(obj)) {
1810
- res.error = definitions_17.bbn._("checkProps must receive an object as obj argument");
1799
+ res.error = bbn._("checkProps must receive an object as obj argument");
1811
1800
  }
1812
1801
  if (!res.error) {
1813
1802
  let check;
@@ -1816,19 +1805,19 @@
1816
1805
  let type = varName[1] || false;
1817
1806
  varName = varName[0];
1818
1807
  if (obj[varName] === undefined) {
1819
- res.error = varName + ' ' + definitions_17.bbn._("is not defined");
1808
+ res.error = varName + ' ' + bbn._("is not defined");
1820
1809
  }
1821
1810
  else if (type) {
1822
1811
  check = 'is' + (0, substr_5.substr)(type, 0, 1).toUpperCase() + (0, substr_5.substr)(type, 1).toLowerCase();
1823
- if (definitions_17.bbn.fn[check] === undefined) {
1824
- res.error = type + ' ' + definitions_17.bbn._("is not a valid type");
1812
+ if (bbn.fn[check] === undefined) {
1813
+ res.error = type + ' ' + bbn._("is not a valid type");
1825
1814
  }
1826
- else if (!definitions_17.bbn.fn[check](obj[varName])) {
1827
- res.error = varName + ' ' + definitions_17.bbn._("is not a") + ' ' + type;
1815
+ else if (!bbn.fn[check](obj[varName])) {
1816
+ res.error = varName + ' ' + bbn._("is not a") + ' ' + type;
1828
1817
  }
1829
1818
  }
1830
1819
  else if (checkEmpty && !obj[varName]) {
1831
- res.error = varName + ' ' + definitions_17.bbn._("is empty");
1820
+ res.error = varName + ' ' + bbn._("is empty");
1832
1821
  }
1833
1822
  if (res.error) {
1834
1823
  return false;
@@ -1869,7 +1858,7 @@
1869
1858
  const correctCase = function (str) { return str.replace(/[A-z]{1}/, c => c.toUpperCase()); };
1870
1859
  exports.correctCase = correctCase;
1871
1860
  });
1872
- define("fn/checkType", ["require", "exports", "../definitions", "fn/isArray", "fn/each", "fn/isFunction", "fn/isString", "fn/correctCase", "fn/error", "fn/log"], function (require, exports, definitions_18, isArray_7, each_10, isFunction_5, isString_10, correctCase_1, error_2, log_10) {
1861
+ 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_10, isFunction_5, isString_10, correctCase_1, error_2, log_10) {
1873
1862
  "use strict";
1874
1863
  Object.defineProperty(exports, "__esModule", { value: true });
1875
1864
  exports.checkType = void 0;
@@ -1906,10 +1895,10 @@
1906
1895
  return false;
1907
1896
  }
1908
1897
  }
1909
- else if (!(0, isString_10.isString)(t) || !(0, isFunction_5.isFunction)(definitions_18.bbn.fn['is' + (0, correctCase_1.correctCase)(t)])) {
1898
+ else if (!(0, isString_10.isString)(t) || !(0, isFunction_5.isFunction)(bbn.fn['is' + (0, correctCase_1.correctCase)(t)])) {
1910
1899
  (0, error_2.error)(`The type ${t} is not recognized`);
1911
1900
  }
1912
- else if (definitions_18.bbn.fn['is' + (0, correctCase_1.correctCase)(t)](value)) {
1901
+ else if (bbn.fn['is' + (0, correctCase_1.correctCase)(t)](value)) {
1913
1902
  ok = true;
1914
1903
  return false;
1915
1904
  }
@@ -1922,7 +1911,7 @@
1922
1911
  if (logs.length) {
1923
1912
  (0, log_10.log)(logs);
1924
1913
  }
1925
- throw new Error((msg ? msg + ' - ' : '') + definitions_18.bbn._("The value should be a %s", typesList.join(' ' + definitions_18.bbn._("or a") + ' ')));
1914
+ throw new Error((msg ? msg + ' - ' : '') + bbn._("The value should be a %s", typesList.join(' ' + bbn._("or a") + ' ')));
1926
1915
  }
1927
1916
  };
1928
1917
  exports.checkType = checkType;
@@ -2138,11 +2127,11 @@
2138
2127
  const defaultResizeFunction = function () { return true; };
2139
2128
  exports.defaultResizeFunction = defaultResizeFunction;
2140
2129
  });
2141
- define("fn/deleteProp", ["require", "exports", "../definitions"], function (require, exports, definitions_19) {
2130
+ define("fn/deleteProp", ["require", "exports"], function (require, exports) {
2142
2131
  "use strict";
2143
2132
  Object.defineProperty(exports, "__esModule", { value: true });
2144
2133
  exports.deleteProp = void 0;
2145
- const deleteProp = function (obj, prop) { checkType(obj, "object", definitions_19.bbn._("The obj must be an object in setProp")); checkType(prop, "string", definitions_19.bbn._("The prop must be a string in setProp")); delete obj[prop]; };
2134
+ const deleteProp = function (obj, prop) { checkType(obj, "object", bbn._("The obj must be an object in setProp")); checkType(prop, "string", bbn._("The prop must be a string in setProp")); delete obj[prop]; };
2146
2135
  exports.deleteProp = deleteProp;
2147
2136
  });
2148
2137
  define("fn/isValue", ["require", "exports", "fn/isNull"], function (require, exports, isNull_2) {
@@ -2576,7 +2565,7 @@
2576
2565
  };
2577
2566
  exports.forir = forir;
2578
2567
  });
2579
- define("fn/format", ["require", "exports", "../definitions", "fn/checkType"], function (require, exports, definitions_20, checkType_1) {
2568
+ define("fn/format", ["require", "exports", "fn/checkType"], function (require, exports, checkType_1) {
2580
2569
  "use strict";
2581
2570
  Object.defineProperty(exports, "__esModule", { value: true });
2582
2571
  exports.format = void 0;
@@ -2584,7 +2573,7 @@
2584
2573
  let args = Array.prototype.slice.call(arguments, 1);
2585
2574
  if (args.length) {
2586
2575
  let i = 0;
2587
- return str.replace(/\%([d|s])/g, (match, type) => { let tmp = args[i++]; (0, checkType_1.checkType)(tmp, type === 'd' ? 'number' : 'string', definitions_20.bbn._("The value doesn't correspond to the format")); return tmp; });
2576
+ return str.replace(/\%([d|s])/g, (match, type) => { let tmp = args[i++]; (0, checkType_1.checkType)(tmp, type === 'd' ? 'number' : 'string', bbn._("The value doesn't correspond to the format")); return tmp; });
2588
2577
  }
2589
2578
  return str;
2590
2579
  };
@@ -2933,7 +2922,7 @@
2933
2922
  };
2934
2923
  exports.getHTMLOfSelection = getHTMLOfSelection;
2935
2924
  });
2936
- define("fn/getEventData", ["require", "exports", "../definitions", "fn/getHTMLOfSelection", "fn/each"], function (require, exports, definitions_21, getHTMLOfSelection_1, each_15) {
2925
+ define("fn/getEventData", ["require", "exports", "fn/getHTMLOfSelection", "fn/each"], function (require, exports, getHTMLOfSelection_1, each_15) {
2937
2926
  "use strict";
2938
2927
  Object.defineProperty(exports, "__esModule", { value: true });
2939
2928
  exports.getEventData = void 0;
@@ -2969,7 +2958,7 @@
2969
2958
  let bits = cp.name.split('.');
2970
2959
  type = bits[bits.length - 1];
2971
2960
  }
2972
- let name = cp ? cp.name : definitions_21.bbn._('untitled');
2961
+ let name = cp ? cp.name : bbn._('untitled');
2973
2962
  let size = cp ? cp.size : null;
2974
2963
  let lastModified = cp ? cp.lastModified : null;
2975
2964
  let blob = item.getAsFile();
@@ -2986,7 +2975,7 @@
2986
2975
  }
2987
2976
  }
2988
2977
  else {
2989
- appui.error(definitions_21.bbn._("Impossible to read the file") + ' ' + name);
2978
+ appui.error(bbn._("Impossible to read the file") + ' ' + name);
2990
2979
  }
2991
2980
  }
2992
2981
  else {
@@ -3103,19 +3092,19 @@
3103
3092
  };
3104
3093
  exports.getPath = getPath;
3105
3094
  });
3106
- define("fn/getProp", ["require", "exports", "../definitions"], function (require, exports, definitions_22) {
3095
+ define("fn/getProp", ["require", "exports"], function (require, exports) {
3107
3096
  "use strict";
3108
3097
  Object.defineProperty(exports, "__esModule", { value: true });
3109
3098
  exports.getProp = void 0;
3110
- const getProp = function (obj, prop) { checkType(obj, "object", definitions_22.bbn._("The obj must be an object in setProp")); checkType(prop, "string", definitions_22.bbn._("The prop must be a string in setProp")); return obj[prop]; };
3099
+ const getProp = function (obj, prop) { checkType(obj, "object", bbn._("The obj must be an object in setProp")); checkType(prop, "string", bbn._("The prop must be a string in setProp")); return obj[prop]; };
3111
3100
  exports.getProp = getProp;
3112
3101
  });
3113
- define("fn/getScrollBarSize", ["require", "exports", "../definitions"], function (require, exports, definitions_23) {
3102
+ define("fn/getScrollBarSize", ["require", "exports"], function (require, exports) {
3114
3103
  "use strict";
3115
3104
  Object.defineProperty(exports, "__esModule", { value: true });
3116
3105
  exports.getScrollBarSize = void 0;
3117
3106
  const getScrollBarSize = function () {
3118
- if (definitions_23.bbn.env.scrollBarSize === undefined) {
3107
+ if (bbn.env.scrollBarSize === undefined) {
3119
3108
  let outer = document.createElement("div");
3120
3109
  outer.style.visibility = "hidden";
3121
3110
  outer.style.width = "100px";
@@ -3129,9 +3118,9 @@
3129
3118
  let widthWithScroll = inner.offsetWidth;
3130
3119
  outer.parentNode.removeChild(outer);
3131
3120
  let sz = widthNoScroll - widthWithScroll;
3132
- definitions_23.bbn.env.scrollBarSize = sz ? sz + 1 : 0;
3121
+ bbn.env.scrollBarSize = sz ? sz + 1 : 0;
3133
3122
  }
3134
- return definitions_23.bbn.env.scrollBarSize;
3123
+ return bbn.env.scrollBarSize;
3135
3124
  };
3136
3125
  exports.getScrollBarSize = getScrollBarSize;
3137
3126
  });
@@ -3142,13 +3131,13 @@
3142
3131
  const getText = function (ele) { return ele.innerText().trim(); };
3143
3132
  exports.getText = getText;
3144
3133
  });
3145
- define("fn/getTimeoff", ["require", "exports", "../definitions"], function (require, exports, definitions_24) {
3134
+ define("fn/getTimeoff", ["require", "exports"], function (require, exports) {
3146
3135
  "use strict";
3147
3136
  Object.defineProperty(exports, "__esModule", { value: true });
3148
3137
  exports.getTimeoff = void 0;
3149
3138
  const getTimeoff = function () {
3150
- if (!definitions_24.bbn.env.isFocused) {
3151
- return Math.round((new Date()).getTime() / 1000 - definitions_24.bbn.env.timeoff);
3139
+ if (!bbn.env.isFocused) {
3140
+ return Math.round((new Date()).getTime() / 1000 - bbn.env.timeoff);
3152
3141
  }
3153
3142
  return 0;
3154
3143
  };
@@ -3203,7 +3192,7 @@
3203
3192
  const info = function (...args) { args.unshift({ _bbn_console_level: 4, _bbn_console_style: "color: #EEE; background: blue; font-size: 12px;" }); log_15.log.apply(this, args); return this; };
3204
3193
  exports.info = info;
3205
3194
  });
3206
- define("fn/treatAjaxArguments", ["require", "exports", "../definitions", "fn/isObject", "fn/isFunction", "fn/substr", "fn/numProperties"], function (require, exports, definitions_25, isObject_16, isFunction_9, substr_9, numProperties_6) {
3195
+ define("fn/treatAjaxArguments", ["require", "exports", "fn/isObject", "fn/isFunction", "fn/substr", "fn/numProperties"], function (require, exports, isObject_16, isFunction_9, substr_9, numProperties_6) {
3207
3196
  "use strict";
3208
3197
  Object.defineProperty(exports, "__esModule", { value: true });
3209
3198
  exports.treatAjaxArguments = void 0;
@@ -3231,13 +3220,13 @@
3231
3220
  }
3232
3221
  else if (t === 'string') {
3233
3222
  if (!cfg.url) {
3234
- if (args[i].indexOf('#') === 0 || args[i].indexOf(definitions_25.bbn.env.root + '#') === 0) {
3235
- cfg.url = (0, substr_9.substr)(args[i], definitions_25.bbn.env.root.length);
3223
+ if (args[i].indexOf('#') === 0 || args[i].indexOf(bbn.env.root + '#') === 0) {
3224
+ cfg.url = (0, substr_9.substr)(args[i], bbn.env.root.length);
3236
3225
  }
3237
3226
  else {
3238
3227
  cfg.url = args[i];
3239
- if (cfg.url.indexOf(definitions_25.bbn.env.root) === 0) {
3240
- cfg.url = (0, substr_9.substr)(cfg.url, definitions_25.bbn.env.root.length);
3228
+ if (cfg.url.indexOf(bbn.env.root) === 0) {
3229
+ cfg.url = (0, substr_9.substr)(cfg.url, bbn.env.root.length);
3241
3230
  }
3242
3231
  }
3243
3232
  }
@@ -3258,7 +3247,7 @@
3258
3247
  }
3259
3248
  }
3260
3249
  if (!cfg.url && (0, numProperties_6.numProperties)(cfg)) {
3261
- cfg.url = definitions_25.bbn.env.path;
3250
+ cfg.url = bbn.env.path;
3262
3251
  }
3263
3252
  if (cfg.obj === undefined) {
3264
3253
  cfg.obj = { _bbn: "public" };
@@ -3270,20 +3259,20 @@
3270
3259
  };
3271
3260
  exports.treatAjaxArguments = treatAjaxArguments;
3272
3261
  });
3273
- define("fn/setNavigationVars", ["require", "exports", "../definitions", "fn/substr", "fn/filter", "fn/extend", "fn/html2text"], function (require, exports, definitions_26, substr_10, filter_4, extend_5, html2text_1) {
3262
+ define("fn/setNavigationVars", ["require", "exports", "fn/substr", "fn/filter", "fn/extend", "fn/html2text"], function (require, exports, substr_10, filter_4, extend_5, html2text_1) {
3274
3263
  "use strict";
3275
3264
  Object.defineProperty(exports, "__esModule", { value: true });
3276
3265
  exports.setNavigationVars = void 0;
3277
3266
  const setNavigationVars = function (url, title, data, repl) {
3278
- definitions_26.bbn.env.old_path = definitions_26.bbn.env.path;
3279
- definitions_26.bbn.env.url = ['https:/', 'http://'].includes((0, substr_10.substr)(url, 0, 7)) ? url : definitions_26.bbn.env.root + url;
3280
- definitions_26.bbn.env.path = (0, substr_10.substr)(definitions_26.bbn.env.url, definitions_26.bbn.env.root.length);
3281
- definitions_26.bbn.env.params = (0, filter_4.filter)(definitions_26.bbn.env.path.split("/"), (v) => { return v !== ''; });
3267
+ bbn.env.old_path = bbn.env.path;
3268
+ bbn.env.url = ['https:/', 'http://'].includes((0, substr_10.substr)(url, 0, 7)) ? url : bbn.env.root + url;
3269
+ bbn.env.path = (0, substr_10.substr)(bbn.env.url, bbn.env.root.length);
3270
+ bbn.env.params = (0, filter_4.filter)(bbn.env.path.split("/"), (v) => { return v !== ''; });
3282
3271
  let h = window.history;
3283
3272
  if (h) {
3284
3273
  let state = h.state;
3285
- let obj = { url: definitions_26.bbn.env.path, old_path: definitions_26.bbn.env.old_path || null, data: data || {} };
3286
- if (state && (state.url === definitions_26.bbn.env.path)) {
3274
+ let obj = { url: bbn.env.path, old_path: bbn.env.old_path || null, data: data || {} };
3275
+ if (state && (state.url === bbn.env.path)) {
3287
3276
  if (state.data) {
3288
3277
  (0, extend_5.extend)(obj.data, state.data);
3289
3278
  }
@@ -3293,23 +3282,23 @@
3293
3282
  repl = 1;
3294
3283
  }
3295
3284
  if (!title) {
3296
- title = definitions_26.bbn.env.siteTitle;
3285
+ title = bbn.env.siteTitle;
3297
3286
  }
3298
3287
  else {
3299
3288
  title = (0, html2text_1.html2text)(title);
3300
3289
  }
3301
3290
  if (repl) {
3302
3291
  obj.reload = 1;
3303
- h.replaceState(obj, title, definitions_26.bbn.env.url);
3292
+ h.replaceState(obj, title, bbn.env.url);
3304
3293
  }
3305
3294
  else {
3306
- h.pushState(obj, title, definitions_26.bbn.env.url);
3295
+ h.pushState(obj, title, bbn.env.url);
3307
3296
  }
3308
3297
  }
3309
3298
  };
3310
3299
  exports.setNavigationVars = setNavigationVars;
3311
3300
  });
3312
- define("fn/link", ["require", "exports", "../definitions", "fn/treatAjaxArguments", "fn/getLoader", "fn/defaultPreLinkFunction", "fn/extend", "fn/ajax", "fn/log", "fn/isObject", "fn/callback", "fn/setNavigationVars"], function (require, exports, definitions_27, treatAjaxArguments_1, getLoader_3, defaultPreLinkFunction_1, extend_6, ajax_2, log_16, isObject_17, callback_1, setNavigationVars_1) {
3301
+ define("fn/link", ["require", "exports", "fn/treatAjaxArguments", "fn/getLoader", "fn/defaultPreLinkFunction", "fn/extend", "fn/ajax", "fn/log", "fn/isObject", "fn/callback", "fn/setNavigationVars"], function (require, exports, treatAjaxArguments_1, getLoader_3, defaultPreLinkFunction_1, extend_6, ajax_2, log_16, isObject_17, callback_1, setNavigationVars_1) {
3313
3302
  "use strict";
3314
3303
  Object.defineProperty(exports, "__esModule", { value: true });
3315
3304
  exports.link = void 0;
@@ -3328,26 +3317,26 @@
3328
3317
  return true;
3329
3318
  }
3330
3319
  if (cfg.url.indexOf('#') === 0) {
3331
- location.href = definitions_27.bbn.env.url + cfg.url;
3320
+ location.href = bbn.env.url + cfg.url;
3332
3321
  return true;
3333
3322
  }
3334
3323
  else if (cfg.url.indexOf('mailto:') === 0) {
3335
- definitions_27.bbn.env.ignoreUnload = true;
3324
+ bbn.env.ignoreUnload = true;
3336
3325
  window.location.href = cfg.url;
3337
- setTimeout(() => { definitions_27.bbn.env.ignoreUnload = false; }, 0);
3326
+ setTimeout(() => { bbn.env.ignoreUnload = false; }, 0);
3338
3327
  return false;
3339
3328
  }
3340
3329
  if ((0, getLoader_3.getLoader)(cfg.url)) {
3341
3330
  return false;
3342
3331
  }
3343
- if (((cfg.url.indexOf("http://") === 0) || (cfg.url.indexOf("https://") === 0)) && (cfg.url.indexOf(definitions_27.bbn.env.host) !== 0)) {
3332
+ if (((cfg.url.indexOf("http://") === 0) || (cfg.url.indexOf("https://") === 0)) && (cfg.url.indexOf(bbn.env.host) !== 0)) {
3344
3333
  if (cfg.e) {
3345
3334
  cfg.e.preventDefault();
3346
3335
  }
3347
3336
  window.open(cfg.url);
3348
3337
  return false;
3349
3338
  }
3350
- else if ((cfg.url !== definitions_27.bbn.env.params.join("/")) || (cfg.force === 1)) {
3339
+ else if ((cfg.url !== bbn.env.params.join("/")) || (cfg.force === 1)) {
3351
3340
  if (cfg.successFn) {
3352
3341
  ok = cfg.successFn(cfg.url);
3353
3342
  }
@@ -3362,14 +3351,14 @@
3362
3351
  if (ok !== 1 && (typeof ok === 'string')) {
3363
3352
  cfg.url = ok;
3364
3353
  }
3365
- let errSt = definitions_27.bbn._("The Ajax call to") + ' ' + cfg.url + ' ';
3354
+ let errSt = bbn._("The Ajax call to") + ' ' + cfg.url + ' ';
3366
3355
  return (0, ajax_2.ajax)(cfg.url, cfg.datatype, cfg.obj, function (res) {
3367
3356
  if (!res) {
3368
- (0, log_16.log)(errSt + definitions_27.bbn._("returned no answer"));
3357
+ (0, log_16.log)(errSt + bbn._("returned no answer"));
3369
3358
  }
3370
3359
  if ((0, isObject_17.isObject)(res)) {
3371
3360
  if ((Object.keys(res).length === 0)) {
3372
- (0, log_16.log)(errSt + definitions_27.bbn._("returned an empty object"));
3361
+ (0, log_16.log)(errSt + bbn._("returned an empty object"));
3373
3362
  }
3374
3363
  if (res.new_url) {
3375
3364
  res.old_path = cfg.url;
@@ -3380,8 +3369,8 @@
3380
3369
  }
3381
3370
  }
3382
3371
  if ((0, callback_1.callback)(cfg.url, res, cfg.successFn, null, cfg.ele) && res.noNav === undefined) {
3383
- if (definitions_27.bbn.env.path.indexOf(cfg.url) !== 0) {
3384
- (0, setNavigationVars_1.setNavigationVars)(cfg.url, (res.title ? res.title + ' - ' : '') + definitions_27.bbn.env.siteTitle);
3372
+ if (bbn.env.path.indexOf(cfg.url) !== 0) {
3373
+ (0, setNavigationVars_1.setNavigationVars)(cfg.url, (res.title ? res.title + ' - ' : '') + bbn.env.siteTitle);
3385
3374
  }
3386
3375
  }
3387
3376
  }, cfg.errorFn || null);
@@ -3400,12 +3389,12 @@
3400
3389
  } };
3401
3390
  exports.post = post;
3402
3391
  });
3403
- define("fn/submit", ["require", "exports", "../definitions", "fn/formdata", "fn/isFunction", "fn/isString", "fn/post"], function (require, exports, definitions_28, formdata_1, isFunction_10, isString_22, post_1) {
3392
+ define("fn/submit", ["require", "exports", "fn/formdata", "fn/isFunction", "fn/isString", "fn/post"], function (require, exports, formdata_1, isFunction_10, isString_22, post_1) {
3404
3393
  "use strict";
3405
3394
  Object.defineProperty(exports, "__esModule", { value: true });
3406
3395
  exports.submit = void 0;
3407
3396
  const submit = function (form, e, fn) {
3408
- let url = form.getAttribute("action") || definitions_28.bbn.env.path, data;
3397
+ let url = form.getAttribute("action") || bbn.env.path, data;
3409
3398
  if (url === '') {
3410
3399
  url = '.';
3411
3400
  }
@@ -3438,24 +3427,24 @@
3438
3427
  };
3439
3428
  exports.submit = submit;
3440
3429
  });
3441
- define("fn/resize", ["require", "exports", "../definitions", "fn/getCssVar", "fn/each", "fn/defaultResizeFunction"], function (require, exports, definitions_29, getCssVar_1, each_17, defaultResizeFunction_1) {
3430
+ define("fn/resize", ["require", "exports", "fn/getCssVar", "fn/each", "fn/defaultResizeFunction"], function (require, exports, getCssVar_1, each_17, defaultResizeFunction_1) {
3442
3431
  "use strict";
3443
3432
  Object.defineProperty(exports, "__esModule", { value: true });
3444
3433
  exports.resize = void 0;
3445
3434
  const resize = function () {
3446
- let diffW = definitions_29.bbn.env.width !== window.innerWidth;
3447
- let diffH = definitions_29.bbn.env.height !== window.innerHeight;
3435
+ let diffW = bbn.env.width !== window.innerWidth;
3436
+ let diffH = bbn.env.height !== window.innerHeight;
3448
3437
  if (diffW || diffH) {
3449
3438
  if (diffW) {
3450
- definitions_29.bbn.env.width = window.innerWidth || window.document.documentElement.clientWidth || window.document.body.clientWidth;
3451
- document.documentElement.style.setProperty('--vw', (definitions_29.bbn.env.width * 0.01) + 'px');
3439
+ bbn.env.width = window.innerWidth || window.document.documentElement.clientWidth || window.document.body.clientWidth;
3440
+ document.documentElement.style.setProperty('--vw', (bbn.env.width * 0.01) + 'px');
3452
3441
  }
3453
3442
  if (diffH) {
3454
- definitions_29.bbn.env.height = window.innerHeight || window.document.documentElement.clientHeight || window.document.body.clientHeight;
3455
- document.documentElement.style.setProperty('--vh', (definitions_29.bbn.env.height * 0.01) + 'px');
3443
+ bbn.env.height = window.innerHeight || window.document.documentElement.clientHeight || window.document.body.clientHeight;
3444
+ document.documentElement.style.setProperty('--vh', (bbn.env.height * 0.01) + 'px');
3456
3445
  }
3457
3446
  let smallWidth = (0, getCssVar_1.getCssVar)('mobile-limit') || 650;
3458
- let newCls = 'bbn-screen-' + (definitions_29.bbn.env.width < parseInt(smallWidth) ? 'small' : 'regular');
3447
+ let newCls = 'bbn-screen-' + (bbn.env.width < parseInt(smallWidth) ? 'small' : 'regular');
3459
3448
  let classes = (document.body.className || '').split(' ');
3460
3449
  let done = false;
3461
3450
  (0, each_17.each)(classes, (cls, idx) => {
@@ -3498,18 +3487,18 @@
3498
3487
  const isMobile = function () { return (0, isMobileDevice_1.isMobileDevice)() || (0, isTabletDevice_1.isTabletDevice)(); };
3499
3488
  exports.isMobile = isMobile;
3500
3489
  });
3501
- define("fn/init", ["require", "exports", "../definitions", "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, definitions_30, substr_11, each_18, extend_7, addColors_1, link_1, submit_1, resize_1, isMobile_1, isTabletDevice_2, defaultHistoryFunction_1, isFunction_11, log_17) {
3490
+ 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_7, addColors_1, link_1, submit_1, resize_1, isMobile_1, isTabletDevice_2, defaultHistoryFunction_1, isFunction_11, log_17) {
3502
3491
  "use strict";
3503
3492
  Object.defineProperty(exports, "__esModule", { value: true });
3504
3493
  exports.init = void 0;
3505
3494
  const init = function (cfg, force) {
3506
3495
  let parts;
3507
- if (!definitions_30.bbn.env.isInit || force) {
3508
- definitions_30.bbn.env.root = document.baseURI.length > 0 ? document.baseURI : definitions_30.bbn.env.host;
3509
- if (definitions_30.bbn.env.root.length && ((0, substr_11.substr)(definitions_30.bbn.env.root, -1) !== '/')) {
3510
- definitions_30.bbn.env.root += '/';
3496
+ if (!bbn.env.isInit || force) {
3497
+ bbn.env.root = document.baseURI.length > 0 ? document.baseURI : bbn.env.host;
3498
+ if (bbn.env.root.length && ((0, substr_11.substr)(bbn.env.root, -1) !== '/')) {
3499
+ bbn.env.root += '/';
3511
3500
  }
3512
- if (!definitions_30.bbn.env.isInit && (typeof dayjs !== 'undefined')) {
3501
+ if (!bbn.env.isInit && (typeof dayjs !== 'undefined')) {
3513
3502
  (0, each_18.each)(['advancedFormat', 'arraySupport', 'badMutable', 'buddhistEra', 'calendar', 'customParseFormat', 'dayOfYear', 'devHelper', 'duration', 'isBetween', 'isLeapYear', 'isSameOrAfter', 'isSameOrBefore', 'isToday', 'isTomorrow', 'isYesterday', 'isoWeek', 'isoWeeksInYear', 'localeData', 'localizedFormat', 'minMax', 'objectSupport', 'pluralGetSet', 'quarterOfYear', 'relativeTime', 'timezone', 'toArray', 'toObject', 'updateLocale', 'utc', 'weekOfYear', 'weekYear', 'weekday'], plugin => { if (window['dayjs_plugin_' + plugin]) {
3514
3503
  dayjs.extend(window['dayjs_plugin_' + plugin]);
3515
3504
  } });
@@ -3517,28 +3506,28 @@
3517
3506
  if (typeof (cfg) === 'object') {
3518
3507
  (0, extend_7.extend)(true, window.bbn, cfg);
3519
3508
  }
3520
- definitions_30.bbn.env.path = (0, substr_11.substr)(definitions_30.bbn.env.url, definitions_30.bbn.env.root.length);
3521
- parts = definitions_30.bbn.env.path.split("/");
3509
+ bbn.env.path = (0, substr_11.substr)(bbn.env.url, bbn.env.root.length);
3510
+ parts = bbn.env.path.split("/");
3522
3511
  (0, each_18.each)(parts, (v, i) => { v = decodeURI(v.trim()); if (v !== "") {
3523
- definitions_30.bbn.env.params.push(v);
3512
+ bbn.env.params.push(v);
3524
3513
  } });
3525
- if (definitions_30.bbn.var.colors) {
3526
- (0, addColors_1.addColors)(definitions_30.bbn.var.colors);
3514
+ if (bbn.vars.colors) {
3515
+ (0, addColors_1.addColors)(bbn.vars.colors);
3527
3516
  }
3528
- if (definitions_30.bbn.env.lang && (undefined !== dayjs)) {
3529
- dayjs.locale(definitions_30.bbn.env.lang);
3517
+ if (bbn.env.lang && (undefined !== dayjs)) {
3518
+ dayjs.locale(bbn.env.lang);
3530
3519
  }
3531
- window.onfocus = () => { definitions_30.bbn.env.isFocused = true; };
3532
- window.onblur = () => { definitions_30.bbn.env.isFocused = false; definitions_30.bbn.env.timeoff = Math.round((new Date()).getTime() / 1000); };
3520
+ window.onfocus = () => { bbn.env.isFocused = true; };
3521
+ window.onblur = () => { bbn.env.isFocused = false; bbn.env.timeoff = Math.round((new Date()).getTime() / 1000); };
3533
3522
  document.addEventListener("focusin", e => {
3534
3523
  if (!e.target.classList.contains('bbn-no')) {
3535
- definitions_30.bbn.env.focused = e.target;
3524
+ bbn.env.focused = e.target;
3536
3525
  }
3537
- definitions_30.bbn.env.last_focus = (new Date()).getTime();
3526
+ bbn.env.last_focus = (new Date()).getTime();
3538
3527
  });
3539
3528
  document.addEventListener('click', (e) => {
3540
- definitions_30.bbn.env.last_focus = (new Date()).getTime();
3541
- if (definitions_30.bbn.env.nav !== 'ajax') {
3529
+ bbn.env.last_focus = (new Date()).getTime();
3530
+ if (bbn.env.nav !== 'ajax') {
3542
3531
  return;
3543
3532
  }
3544
3533
  let target = e.target;
@@ -3565,7 +3554,7 @@
3565
3554
  }
3566
3555
  });
3567
3556
  (0, each_18.each)(document.querySelectorAll("form:not(.bbn-no), form:not(.bbn-form)"), (ele, i) => { ele.addEventListener("submit", e => { (0, submit_1.submit)(ele, e); }); });
3568
- window.addEventListener('hashchange', () => { definitions_30.bbn.env.hashChanged = (new Date()).getTime(); }, false);
3557
+ window.addEventListener('hashchange', () => { bbn.env.hashChanged = (new Date()).getTime(); }, false);
3569
3558
  window.addEventListener("resize", () => { (0, resize_1.resize)(); });
3570
3559
  window.addEventListener("orientationchange", () => { (0, resize_1.resize)(); });
3571
3560
  (0, resize_1.resize)();
@@ -3578,11 +3567,11 @@
3578
3567
  if (window.history) {
3579
3568
  window.onpopstate = function (e) {
3580
3569
  let h = window.history;
3581
- if (!definitions_30.bbn.env.historyDisabled && h) {
3570
+ if (!bbn.env.historyDisabled && h) {
3582
3571
  let state = h.state;
3583
3572
  if (state) {
3584
3573
  if ((0, defaultHistoryFunction_1.defaultHistoryFunction)(state)) {
3585
- (0, link_1.link)(state.url, (0, extend_7.extend)({ title: state.title || definitions_30.bbn.env.siteTitle }, state.data || {}));
3574
+ (0, link_1.link)(state.url, (0, extend_7.extend)({ title: state.title || bbn.env.siteTitle }, state.data || {}));
3586
3575
  }
3587
3576
  else if (state && state.data && (0, isFunction_11.isFunction)(state.data.script)) {
3588
3577
  state.data.script();
@@ -3591,25 +3580,25 @@
3591
3580
  }
3592
3581
  };
3593
3582
  }
3594
- definitions_30.bbn.env.isInit = true;
3583
+ bbn.env.isInit = true;
3595
3584
  document.dispatchEvent(new Event('bbninit'));
3596
- if (definitions_30.bbn.env.logging) {
3585
+ if (bbn.env.logging) {
3597
3586
  (0, log_17.log)("Logging in bbn is enabled");
3598
3587
  }
3599
3588
  }
3600
3589
  };
3601
3590
  exports.init = init;
3602
3591
  });
3603
- define("fn/isActiveInterface", ["require", "exports", "../definitions"], function (require, exports, definitions_31) {
3592
+ define("fn/isActiveInterface", ["require", "exports"], function (require, exports) {
3604
3593
  "use strict";
3605
3594
  Object.defineProperty(exports, "__esModule", { value: true });
3606
3595
  exports.isActiveInterface = void 0;
3607
3596
  const isActiveInterface = function (secs = 600) {
3608
- if (!definitions_31.bbn.env.last_focus) {
3597
+ if (!bbn.env.last_focus) {
3609
3598
  return false;
3610
3599
  }
3611
3600
  let t = (new Date()).getTime();
3612
- return (t - definitions_31.bbn.env.last_focus) < (secs * 1000);
3601
+ return (t - bbn.env.last_focus) < (secs * 1000);
3613
3602
  };
3614
3603
  exports.isActiveInterface = isActiveInterface;
3615
3604
  });
@@ -3729,16 +3718,16 @@
3729
3718
  const isFocused = function (ele, contain) { return (ele === document.activeElement) || (contain && ele.contains && (ele.contains(document.activeElement))); };
3730
3719
  exports.isFocused = isFocused;
3731
3720
  });
3732
- define("fn/isIP", ["require", "exports", "../definitions", "fn/isString"], function (require, exports, definitions_32, isString_25) {
3721
+ define("fn/isIP", ["require", "exports", "fn/isString"], function (require, exports, isString_25) {
3733
3722
  "use strict";
3734
3723
  Object.defineProperty(exports, "__esModule", { value: true });
3735
3724
  exports.isIP = void 0;
3736
3725
  const isIP = function (st) { if ((0, isString_25.isString)(st)) {
3737
- return definitions_32.bbn.var.regexp.ip.test(st);
3726
+ return bbn.vars.regexp.ip.test(st);
3738
3727
  } };
3739
3728
  exports.isIP = isIP;
3740
3729
  });
3741
- define("fn/isHostname", ["require", "exports", "../definitions", "fn/isString", "fn/isIP"], function (require, exports, definitions_33, isString_26, isIP_1) {
3730
+ define("fn/isHostname", ["require", "exports", "fn/isString", "fn/isIP"], function (require, exports, isString_26, isIP_1) {
3742
3731
  "use strict";
3743
3732
  Object.defineProperty(exports, "__esModule", { value: true });
3744
3733
  exports.isHostname = void 0;
@@ -3747,7 +3736,7 @@
3747
3736
  if ((0, isIP_1.isIP)(st)) {
3748
3737
  return true;
3749
3738
  }
3750
- return definitions_33.bbn.var.regexp.hostname.test(st);
3739
+ return bbn.vars.regexp.hostname.test(st);
3751
3740
  }
3752
3741
  };
3753
3742
  exports.isHostname = isHostname;
@@ -3865,11 +3854,11 @@
3865
3854
  };
3866
3855
  exports.isSymbol = isSymbol;
3867
3856
  });
3868
- define("fn/isURL", ["require", "exports", "../definitions"], function (require, exports, definitions_34) {
3857
+ define("fn/isURL", ["require", "exports"], function (require, exports) {
3869
3858
  "use strict";
3870
3859
  Object.defineProperty(exports, "__esModule", { value: true });
3871
3860
  exports.isURL = void 0;
3872
- const isURL = function (str) { return definitions_34.bbn.var.regexp.url.test(str); };
3861
+ const isURL = function (str) { return bbn.vars.regexp.url.test(str); };
3873
3862
  exports.isURL = isURL;
3874
3863
  });
3875
3864
  define("fn/isValidName", ["require", "exports", "fn/isString"], function (require, exports, isString_28) {
@@ -3889,7 +3878,7 @@
3889
3878
  };
3890
3879
  exports.isValidName = isValidName;
3891
3880
  });
3892
- define("fn/isVue", ["require", "exports", "../definitions"], function (require, exports, definitions_35) {
3881
+ define("fn/isVue", ["require", "exports"], function (require, exports) {
3893
3882
  "use strict";
3894
3883
  Object.defineProperty(exports, "__esModule", { value: true });
3895
3884
  exports.isVue = void 0;
@@ -3897,8 +3886,8 @@
3897
3886
  if (!arguments.length) {
3898
3887
  return false;
3899
3888
  }
3900
- if (Object.hasOwn(definitions_35.bbn, 'vue')) {
3901
- if (definitions_35.bbn.vue.app) {
3889
+ if (Object.hasOwn(bbn, 'vue')) {
3890
+ if (bbn.vue.app) {
3902
3891
  for (let a of arguments) {
3903
3892
  if (!a || (typeof a.render !== 'function')) {
3904
3893
  return false;
@@ -3913,8 +3902,8 @@
3913
3902
  }
3914
3903
  }
3915
3904
  }
3916
- if (Object.hasOwn(definitions_35.bbn, 'cp')) {
3917
- return definitions_35.bbn.cp.isComponent(...arguments);
3905
+ if (Object.hasOwn(bbn, 'cp')) {
3906
+ return bbn.cp.isComponent(...arguments);
3918
3907
  }
3919
3908
  return true;
3920
3909
  };
@@ -4108,28 +4097,28 @@
4108
4097
  };
4109
4098
  exports.map = map;
4110
4099
  });
4111
- define("fn/money", ["require", "exports", "../definitions", "fn/isNumber"], function (require, exports, definitions_36, isNumber_8) {
4100
+ define("fn/money", ["require", "exports", "fn/isNumber"], function (require, exports, isNumber_8) {
4112
4101
  "use strict";
4113
4102
  Object.defineProperty(exports, "__esModule", { value: true });
4114
4103
  exports.money = void 0;
4115
4104
  const money = function (val, kilo, currency, novalue, decimal, thousands, precision) {
4116
4105
  if (!decimal) {
4117
- decimal = (decimal === undefined) && definitions_36.bbn.env.money && (definitions_36.bbn.env.money.decimal !== undefined) ? definitions_36.bbn.env.money.decimal : '.';
4106
+ decimal = (decimal === undefined) && bbn.env.money && (bbn.env.money.decimal !== undefined) ? bbn.env.money.decimal : '.';
4118
4107
  }
4119
4108
  if (!currency) {
4120
- currency = (currency === undefined) && definitions_36.bbn.env.money && (definitions_36.bbn.env.money.currency !== undefined) ? definitions_36.bbn.env.money.currency : '';
4109
+ currency = (currency === undefined) && bbn.env.money && (bbn.env.money.currency !== undefined) ? bbn.env.money.currency : '';
4121
4110
  }
4122
4111
  if (!thousands) {
4123
- thousands = (thousands === undefined) && definitions_36.bbn.env.money && (definitions_36.bbn.env.money.thousands !== undefined) ? definitions_36.bbn.env.money.thousands : ' ';
4112
+ thousands = (thousands === undefined) && bbn.env.money && (bbn.env.money.thousands !== undefined) ? bbn.env.money.thousands : ' ';
4124
4113
  }
4125
4114
  if (!precision) {
4126
- precision = (precision === undefined) && definitions_36.bbn.env.money && (definitions_36.bbn.env.money.precision !== undefined) ? definitions_36.bbn.env.money.precision : false;
4115
+ precision = (precision === undefined) && bbn.env.money && (bbn.env.money.precision !== undefined) ? bbn.env.money.precision : false;
4127
4116
  }
4128
4117
  if (!kilo) {
4129
- kilo = (kilo === undefined) && definitions_36.bbn.env.money && (definitions_36.bbn.env.money.kilo !== undefined) ? definitions_36.bbn.env.money.kilo : false;
4118
+ kilo = (kilo === undefined) && bbn.env.money && (bbn.env.money.kilo !== undefined) ? bbn.env.money.kilo : false;
4130
4119
  }
4131
4120
  if (!novalue) {
4132
- novalue = (novalue === undefined) && definitions_36.bbn.env.money && (definitions_36.bbn.env.money.novalue !== undefined) ? definitions_36.bbn.env.money.novalue : false;
4121
+ novalue = (novalue === undefined) && bbn.env.money && (bbn.env.money.novalue !== undefined) ? bbn.env.money.novalue : false;
4133
4122
  }
4134
4123
  if (!(0, isNumber_8.isNumber)(precision)) {
4135
4124
  precision = kilo ? 3 : 0;
@@ -4653,14 +4642,14 @@
4653
4642
  };
4654
4643
  exports.setCssVar = setCssVar;
4655
4644
  });
4656
- define("fn/setProp", ["require", "exports", "../definitions"], function (require, exports, definitions_37) {
4645
+ define("fn/setProp", ["require", "exports"], function (require, exports) {
4657
4646
  "use strict";
4658
4647
  Object.defineProperty(exports, "__esModule", { value: true });
4659
4648
  exports.setProp = void 0;
4660
- const setProp = function (obj, prop, value, writable = true, configurable = true) { checkType(prop, "string", definitions_37.bbn._("The prop must be a string in setProp")); checkType(obj, "object", definitions_37.bbn._("The obj must be an object in setProp")); Object.defineProperty(obj, prop, { value: value, writable: writable, configurable: configurable }); };
4649
+ const setProp = function (obj, prop, value, writable = true, configurable = true) { checkType(prop, "string", bbn._("The prop must be a string in setProp")); checkType(obj, "object", bbn._("The obj must be an object in setProp")); Object.defineProperty(obj, prop, { value: value, writable: writable, configurable: configurable }); };
4661
4650
  exports.setProp = setProp;
4662
4651
  });
4663
- define("fn/setProperty", ["require", "exports", "../definitions", "fn/each"], function (require, exports, definitions_38, each_22) {
4652
+ define("fn/setProperty", ["require", "exports", "fn/each"], function (require, exports, each_22) {
4664
4653
  "use strict";
4665
4654
  Object.defineProperty(exports, "__esModule", { value: true });
4666
4655
  exports.setProperty = void 0;
@@ -4671,7 +4660,7 @@
4671
4660
  (0, each_22.each)(bits, (v, i) => {
4672
4661
  if (!o) {
4673
4662
  if (!force) {
4674
- throw new Error(definitions_38.bbn._("The object is invalid"));
4663
+ throw new Error(bbn._("The object is invalid"));
4675
4664
  }
4676
4665
  o = {};
4677
4666
  }
@@ -4686,14 +4675,14 @@
4686
4675
  };
4687
4676
  exports.setProperty = setProperty;
4688
4677
  });
4689
- define("fn/shorten", ["require", "exports", "../definitions", "fn/isString", "fn/substr"], function (require, exports, definitions_39, isString_30, substr_15) {
4678
+ define("fn/shorten", ["require", "exports", "fn/isString", "fn/substr"], function (require, exports, isString_30, substr_15) {
4690
4679
  "use strict";
4691
4680
  Object.defineProperty(exports, "__esModule", { value: true });
4692
4681
  exports.shorten = void 0;
4693
4682
  const shorten = function (st, len, adj) {
4694
4683
  if (typeof (st).toLowerCase() === 'string') {
4695
4684
  if (!len) {
4696
- len = definitions_39.bbn.var.shortenLen;
4685
+ len = bbn.vars.shortenLen;
4697
4686
  }
4698
4687
  if ((adj === undefined) || !(0, isString_30.isString)(adj)) {
4699
4688
  adj = '...';
@@ -4756,14 +4745,14 @@
4756
4745
  };
4757
4746
  exports.startChrono = startChrono;
4758
4747
  });
4759
- define("fn/stat", ["require", "exports", "../definitions", "fn/getPath"], function (require, exports, definitions_40, getPath_1) {
4748
+ define("fn/stat", ["require", "exports", "fn/getPath"], function (require, exports, getPath_1) {
4760
4749
  "use strict";
4761
4750
  Object.defineProperty(exports, "__esModule", { value: true });
4762
4751
  exports.stat = void 0;
4763
4752
  const stat = function (returnStat) {
4764
4753
  return;
4765
- if (definitions_40.bbn.env.logging) {
4766
- var logs = definitions_40.bbn.var.loggers;
4754
+ if (bbn.env.logging) {
4755
+ var logs = bbn.vars.loggers;
4767
4756
  for (var i = 0; i < arguments.length; i++) {
4768
4757
  var a = arguments[i], type = typeof (a);
4769
4758
  if ((type === 'boolean') || (type === 'undefined')) {
@@ -4931,11 +4920,11 @@
4931
4920
  };
4932
4921
  exports.toggleFullScreen = toggleFullScreen;
4933
4922
  });
4934
- define("fn/translate", ["require", "exports", "../definitions", "fn/iterate"], function (require, exports, definitions_41, iterate_11) {
4923
+ define("fn/translate", ["require", "exports", "fn/iterate"], function (require, exports, iterate_11) {
4935
4924
  "use strict";
4936
4925
  Object.defineProperty(exports, "__esModule", { value: true });
4937
4926
  exports.translate = void 0;
4938
- const translate = function (o, namespace) { let lng = namespace ? definitions_41.bbn.lng[namespace.indexOf('_') === 0 ? namespace : '_' + namespace] : definitions_41.bbn.lng; (0, iterate_11.iterate)(o, (v, k) => { lng[k] = v; }); };
4927
+ const translate = function (o, namespace) { let lng = namespace ? bbn.lng[namespace.indexOf('_') === 0 ? namespace : '_' + namespace] : bbn.lng; (0, iterate_11.iterate)(o, (v, k) => { lng[k] = v; }); };
4939
4928
  exports.translate = translate;
4940
4929
  });
4941
4930
  define("fn/uniqString", ["require", "exports", "fn/isArray", "fn/each", "fn/md5"], function (require, exports, isArray_18, each_27, md5_3) {
@@ -4970,13 +4959,13 @@
4970
4959
  };
4971
4960
  exports.uniqString = uniqString;
4972
4961
  });
4973
- define("fn/upload", ["require", "exports", "../definitions", "fn/objectToFormData", "fn/log"], function (require, exports, definitions_42, objectToFormData_1, log_20) {
4962
+ define("fn/upload", ["require", "exports", "fn/objectToFormData", "fn/log"], function (require, exports, objectToFormData_1, log_20) {
4974
4963
  "use strict";
4975
4964
  Object.defineProperty(exports, "__esModule", { value: true });
4976
4965
  exports.upload = void 0;
4977
4966
  const upload = function (url, file, success, failure, progress) {
4978
4967
  let fn = () => {
4979
- return axios.post(url || definitions_42.bbn.env.path, (0, objectToFormData_1.objectToFormData)(file), { headers: { 'Content-Type': 'multipart/form-data' }, onUploadProgress(progressEvent) {
4968
+ return axios.post(url || bbn.env.path, (0, objectToFormData_1.objectToFormData)(file), { headers: { 'Content-Type': 'multipart/form-data' }, onUploadProgress(progressEvent) {
4980
4969
  if (progress) {
4981
4970
  let percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total);
4982
4971
  progress(percentCompleted, progressEvent.loaded, progressEvent.total);
@@ -5001,7 +4990,7 @@
5001
4990
  define("index", ["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/startChrono", "fn/stat", "fn/stopChrono", "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_2, center_1, checkProps_1, checkPropsDetails_3, checkPropsOrDie_1, checkType_3, circularReplacer_2, clone_2, colorToHex_1, compare_1, compareConditions_3, copy_1, correctCase_2, count_1, crc32_1, createObject_4, cssExists_1, date_7, dateSQL_1, daysInMonth_1, deepPath_1, defaultAjaxAbortFunction_2, defaultAjaxErrorFunction_3, defaultAlertFunction_2, defaultConfirmFunction_1, defaultEndLoadingFunction_2, defaultErrorFunction_1, 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_8, 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_1, getEventData_1, getField_1, getFieldValues_1, getHtml_1, getHTMLOfSelection_2, getLoader_4, getPath_2, 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_13, isHostname_1, isInside_1, isInt_2, isIP_2, isIterable_5, isMobile_2, isMobileDevice_2, isNull_4, isNumber_9, isObject_20, isPercent_1, isPrimitive_1, isPromise_1, isPropSize_1, isSame_3, isSQLDate_1, isString_32, isSymbol_2, isTabletDevice_3, isURL_1, isValidDimension_2, isValidName_1, isValue_2, isVue_1, iterate_12, lightenDarkenHex_1, link_2, log_21, 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, startChrono_1, stat_1, stopChrono_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) {
5002
4991
  "use strict";
5003
4992
  Object.defineProperty(exports, "__esModule", { value: true });
5004
- const fn = {
4993
+ bbn.fn = {
5005
4994
  _addLoader: _addLoader_2._addLoader,
5006
4995
  _compareValues: _compareValues_3._compareValues,
5007
4996
  _deleteLoader: _deleteLoader_2._deleteLoader,