@bbn/bbn 1.0.19 → 1.0.21

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.js CHANGED
@@ -5787,237 +5787,404 @@ var bbn = (() => {
5787
5787
  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_2, 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_6, isDate_8, isDesktopDevice_1, isDimension_1, isDom_5, isEmail_1, isEmpty_2, isEvent_1, isFocused_1, isFunction_14, 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_22, makeReactive_1, map_1, md5_4, money_1, move_1, multiorder_1, nl2br_1, numProperties_9, 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) {
5788
5788
  "use strict";
5789
5789
  Object.defineProperty(exports, "__esModule", { value: true });
5790
- exports.bbn = void 0;
5791
- bbn.fn = {
5792
- _addLoader: _addLoader_2._addLoader,
5793
- _compareValues: _compareValues_3._compareValues,
5794
- _deleteLoader: _deleteLoader_2._deleteLoader,
5795
- abort: abort_1.abort,
5796
- abortURL: abortURL_1.abortURL,
5797
- addColors: addColors_2.addColors,
5798
- addInputs: addInputs_2.addInputs,
5799
- addStyle: addStyle_1.addStyle,
5800
- adjustHeight: adjustHeight_1.adjustHeight,
5801
- adjustSize: adjustSize_3.adjustSize,
5802
- adjustWidth: adjustWidth_1.adjustWidth,
5803
- ajax: ajax_4.ajax,
5804
- analyzeFunction: analyzeFunction_1.analyzeFunction,
5805
- animateCss: animateCss_1.animateCss,
5806
- arrayBuffer2String: arrayBuffer2String_1.arrayBuffer2String,
5807
- arrayFromProp: arrayFromProp_1.arrayFromProp,
5808
- autoExtend: autoExtend_1.autoExtend,
5809
- baseName: baseName_3.baseName,
5810
- br2nl: br2nl_1.br2nl,
5811
- calendar: calendar_1.calendar,
5812
- callback: callback_3.callback,
5813
- camelize: camelize_1.camelize,
5814
- camelToCss: camelToCss_1.camelToCss,
5815
- canvasToImage: canvasToImage_2.canvasToImage,
5816
- center: center_1.center,
5817
- checkProps: checkProps_1.checkProps,
5818
- checkPropsDetails: checkPropsDetails_3.checkPropsDetails,
5819
- checkPropsOrDie: checkPropsOrDie_1.checkPropsOrDie,
5820
- checkType: checkType_3.checkType,
5821
- circularReplacer: circularReplacer_2.circularReplacer,
5822
- clone: clone_2.clone,
5823
- colorToHex: colorToHex_1.colorToHex,
5824
- compare: compare_1.compare,
5825
- compareConditions: compareConditions_3.compareConditions,
5826
- copy: copy_1.copy,
5827
- correctCase: correctCase_2.correctCase,
5828
- count: count_1.count,
5829
- crc32: crc32_1.crc32,
5830
- createObject: createObject_4.createObject,
5831
- cssExists: cssExists_1.cssExists,
5832
- date: date_7.date,
5833
- dateSQL: dateSQL_1.dateSQL,
5834
- daysInMonth: daysInMonth_1.daysInMonth,
5835
- deepPath: deepPath_1.deepPath,
5836
- defaultAjaxAbortFunction: defaultAjaxAbortFunction_2.defaultAjaxAbortFunction,
5837
- defaultAjaxErrorFunction: defaultAjaxErrorFunction_3.defaultAjaxErrorFunction,
5838
- defaultAlertFunction: defaultAlertFunction_2.defaultAlertFunction,
5839
- defaultConfirmFunction: defaultConfirmFunction_1.defaultConfirmFunction,
5840
- defaultEndLoadingFunction: defaultEndLoadingFunction_2.defaultEndLoadingFunction,
5841
- defaultErrorFunction: defaultErrorFunction_1.defaultErrorFunction,
5842
- defaultHistoryFunction: defaultHistoryFunction_2.defaultHistoryFunction,
5843
- defaultLinkFunction: defaultLinkFunction_2.defaultLinkFunction,
5844
- defaultPostLinkFunction: defaultPostLinkFunction_2.defaultPostLinkFunction,
5845
- defaultPreLinkFunction: defaultPreLinkFunction_2.defaultPreLinkFunction,
5846
- defaultResizeFunction: defaultResizeFunction_2.defaultResizeFunction,
5847
- defaultStartLoadingFunction: defaultStartLoadingFunction_2.defaultStartLoadingFunction,
5848
- deleteProp: deleteProp_1.deleteProp,
5849
- diffObj: diffObj_1.diffObj,
5850
- dirName: dirName_2.dirName,
5851
- download: download_1.download,
5852
- downloadContent: downloadContent_2.downloadContent,
5853
- each: each_28.each,
5854
- eraseCookie: eraseCookie_1.eraseCookie,
5855
- error: error_4.error,
5856
- escapeDquotes: escapeDquotes_1.escapeDquotes,
5857
- escapeRegExp: escapeRegExp_3.escapeRegExp,
5858
- escapeSquotes: escapeSquotes_1.escapeSquotes,
5859
- escapeTicks: escapeTicks_1.escapeTicks,
5860
- escapeUrl: escapeUrl_1.escapeUrl,
5861
- extend: extend_8.extend,
5862
- extendOut: extendOut_1.extendOut,
5863
- fdate: fdate_2.fdate,
5864
- fdatetime: fdatetime_2.fdatetime,
5865
- fieldValue: fieldValue_2.fieldValue,
5866
- fileExt: fileExt_2.fileExt,
5867
- filter: filter_6.filter,
5868
- filterToConditions: filterToConditions_3.filterToConditions,
5869
- findAll: findAll_1.findAll,
5870
- fori: fori_1.fori,
5871
- forir: forir_1.forir,
5872
- format: format_1.format,
5873
- formatBytes: formatBytes_1.formatBytes,
5874
- formatDate: formatDate_1.formatDate,
5875
- formatSize: formatSize_1.formatSize,
5876
- formdata: formdata_2.formdata,
5877
- fromXml: fromXml_1.fromXml,
5878
- ftime: ftime_1.ftime,
5879
- getAllTags: getAllTags_1.getAllTags,
5880
- getAncestors: getAncestors_2.getAncestors,
5881
- getAttributes: getAttributes_1.getAttributes,
5882
- getBrowserName: getBrowserName_1.getBrowserName,
5883
- getBrowserVersion: getBrowserVersion_1.getBrowserVersion,
5884
- getCookie: getCookie_1.getCookie,
5885
- getCssVar: getCssVar_2.getCssVar,
5886
- getDay: getDay_1.getDay,
5887
- getDeviceType: getDeviceType_1.getDeviceType,
5888
- getEventData: getEventData_1.getEventData,
5889
- getField: getField_1.getField,
5890
- getFieldValues: getFieldValues_1.getFieldValues,
5891
- getHtml: getHtml_1.getHtml,
5892
- getHTMLOfSelection: getHTMLOfSelection_2.getHTMLOfSelection,
5893
- getLoader: getLoader_4.getLoader,
5894
- getPath: getPath_2.getPath,
5895
- getProp: getProp_1.getProp,
5896
- getProperty: getProperty_4.getProperty,
5897
- getRequestId: getRequestId_2.getRequestId,
5898
- getRow: getRow_2.getRow,
5899
- getScrollBarSize: getScrollBarSize_1.getScrollBarSize,
5900
- getText: getText_1.getText,
5901
- getTimeoff: getTimeoff_1.getTimeoff,
5902
- happy: happy_1.happy,
5903
- hash: hash_2.hash,
5904
- hex2rgb: hex2rgb_1.hex2rgb,
5905
- history: history_1.history,
5906
- html2text: html2text_2.html2text,
5907
- imageToCanvas: imageToCanvas_2.imageToCanvas,
5908
- imgToBase64: imgToBase64_1.imgToBase64,
5909
- info: info_1.info,
5910
- init: init_1.init,
5911
- isActiveInterface: isActiveInterface_1.isActiveInterface,
5912
- isArray: isArray_19.isArray,
5913
- isBlob: isBlob_2.isBlob,
5914
- isBoolean: isBoolean_1.isBoolean,
5915
- isCanvas: isCanvas_2.isCanvas,
5916
- isColor: isColor_1.isColor,
5917
- isComment: isComment_1.isComment,
5918
- isCp: isCp_6.isCp,
5919
- isDate: isDate_8.isDate,
5920
- isDesktopDevice: isDesktopDevice_1.isDesktopDevice,
5921
- isDimension: isDimension_1.isDimension,
5922
- isDom: isDom_5.isDom,
5923
- isEmail: isEmail_1.isEmail,
5924
- isEmpty: isEmpty_2.isEmpty,
5925
- isEvent: isEvent_1.isEvent,
5926
- isFocused: isFocused_1.isFocused,
5927
- isFunction: isFunction_14.isFunction,
5928
- isHostname: isHostname_1.isHostname,
5929
- isInside: isInside_1.isInside,
5930
- isInt: isInt_2.isInt,
5931
- isIP: isIP_2.isIP,
5932
- isIterable: isIterable_5.isIterable,
5933
- isMobile: isMobile_2.isMobile,
5934
- isMobileDevice: isMobileDevice_2.isMobileDevice,
5935
- isNull: isNull_4.isNull,
5936
- isNumber: isNumber_9.isNumber,
5937
- isObject: isObject_20.isObject,
5938
- isPercent: isPercent_1.isPercent,
5939
- isPrimitive: isPrimitive_1.isPrimitive,
5940
- isPromise: isPromise_1.isPromise,
5941
- isPropSize: isPropSize_1.isPropSize,
5942
- isSame: isSame_3.isSame,
5943
- isSQLDate: isSQLDate_1.isSQLDate,
5944
- isString: isString_32.isString,
5945
- isSymbol: isSymbol_2.isSymbol,
5946
- isTabletDevice: isTabletDevice_3.isTabletDevice,
5947
- isURL: isURL_1.isURL,
5948
- isValidDimension: isValidDimension_2.isValidDimension,
5949
- isValidName: isValidName_1.isValidName,
5950
- isValue: isValue_2.isValue,
5951
- isVue: isVue_1.isVue,
5952
- iterate: iterate_12.iterate,
5953
- lightenDarkenHex: lightenDarkenHex_1.lightenDarkenHex,
5954
- link: link_2.link,
5955
- log: log_22.log,
5956
- makeReactive: makeReactive_1.makeReactive,
5957
- map: map_1.map,
5958
- md5: md5_4.md5,
5959
- money: money_1.money,
5960
- move: move_1.move,
5961
- multiorder: multiorder_1.multiorder,
5962
- nl2br: nl2br_1.nl2br,
5963
- numProperties: numProperties_9.numProperties,
5964
- objectToFormData: objectToFormData_2.objectToFormData,
5965
- order: order_1.order,
5966
- outerHeight: outerHeight_1.outerHeight,
5967
- outerWidth: outerWidth_1.outerWidth,
5968
- percent: percent_1.percent,
5969
- pickValue: pickValue_1.pickValue,
5970
- post: post_2.post,
5971
- postOut: postOut_1.postOut,
5972
- printf: printf_1.printf,
5973
- quotes2html: quotes2html_1.quotes2html,
5974
- randomInt: randomInt_2.randomInt,
5975
- randomString: randomString_1.randomString,
5976
- removeAccents: removeAccents_4.removeAccents,
5977
- removeEmpty: removeEmpty_1.removeEmpty,
5978
- removeExtraSpaces: removeExtraSpaces_1.removeExtraSpaces,
5979
- removeHtmlComments: removeHtmlComments_2.removeHtmlComments,
5980
- removePrivateProp: removePrivateProp_2.removePrivateProp,
5981
- removeTrailingChars: removeTrailingChars_1.removeTrailingChars,
5982
- repeat: repeat_1.repeat,
5983
- replaceAll: replaceAll_8.replaceAll,
5984
- replaceSelection: replaceSelection_1.replaceSelection,
5985
- resize: resize_3.resize,
5986
- rgb2hex: rgb2hex_1.rgb2hex,
5987
- riterate: riterate_1.riterate,
5988
- roundDecimal: roundDecimal_1.roundDecimal,
5989
- sanitize: sanitize_1.sanitize,
5990
- search: search_6.search,
5991
- selectElementText: selectElementText_1.selectElementText,
5992
- selector: selector_3.selector,
5993
- setCookie: setCookie_1.setCookie,
5994
- setCssVar: setCssVar_1.setCssVar,
5995
- setNavigationVars: setNavigationVars_2.setNavigationVars,
5996
- setProp: setProp_1.setProp,
5997
- setProperty: setProperty_1.setProperty,
5998
- shorten: shorten_2.shorten,
5999
- shortenObj: shortenObj_1.shortenObj,
6000
- shuffle: shuffle_1.shuffle,
6001
- simpleHash: simpleHash_2.simpleHash,
6002
- simpleHash1: simpleHash1_2.simpleHash1,
6003
- simpleHash2: simpleHash2_2.simpleHash2,
6004
- startChrono: startChrono_1.startChrono,
6005
- stat: stat_1.stat,
6006
- stopChrono: stopChrono_1.stopChrono,
6007
- string2ArrayBuffer: string2ArrayBuffer_1.string2ArrayBuffer,
6008
- submit: submit_2.submit,
6009
- substr: substr_16.substr,
6010
- sum: sum_1.sum,
6011
- timestamp: timestamp_1.timestamp,
6012
- toCSV: toCSV_1.toCSV,
6013
- toggleFullScreen: toggleFullScreen_1.toggleFullScreen,
6014
- translate: translate_1.translate,
6015
- treatAjaxArguments: treatAjaxArguments_3.treatAjaxArguments,
6016
- trim: trim_2.trim,
6017
- uniqString: uniqString_1.uniqString,
6018
- unique: unique_2.unique,
6019
- upload: upload_1.upload,
6020
- warning: warning_2.warning,
5790
+ exports.default = {
5791
+ version: "1.0.1",
5792
+ opt: {
5793
+ _cat: {}
5794
+ },
5795
+ /**
5796
+ * Translate an expression using the object bbn.lng
5797
+ *
5798
+ * @param {String} st
5799
+ * @returns {String}
5800
+ */
5801
+ _(st) {
5802
+ bbn.fn.checkType(st, 'string', "Undeerscore function takes strings as arguments");
5803
+ let res = bbn.lng[st] || st;
5804
+ let args = Array.prototype.slice.call(arguments, 1);
5805
+ if (args.length) {
5806
+ let i = 0;
5807
+ return res.replace(/\%([d|s])/g, (match, type) => {
5808
+ let tmp = args[i++];
5809
+ if (!tmp) {
5810
+ tmp = type === 'd' ? 0 : '';
5811
+ }
5812
+ bbn.fn.checkType(tmp, type === 'd' ? 'number' : 'string', bbn._("The value you gave did not correspond, check the loggg"));
5813
+ return tmp;
5814
+ });
5815
+ }
5816
+ return res;
5817
+ },
5818
+ $(selector, context) {
5819
+ if (context && context.querySelectorAll) {
5820
+ return context.querySelectorAll(selector);
5821
+ }
5822
+ return document.body.querySelectorAll(selector);
5823
+ },
5824
+ _popups: [],
5825
+ lng: {
5826
+ /* User-defined languages elements */
5827
+ select_unselect_all: "Select/Clear all",
5828
+ select_all: "Select all",
5829
+ search: 'Search',
5830
+ loading: 'Loading...',
5831
+ choose: 'Choose',
5832
+ error: 'Error',
5833
+ server_response: 'Server response',
5834
+ reload: 'Reload',
5835
+ errorText: 'Something went wrong',
5836
+ closeAll: "Close all",
5837
+ closeOthers: "Close others",
5838
+ pin: "Pin",
5839
+ arrange: "Arrange",
5840
+ cancel: "Cancel",
5841
+ unpin: "Unpin",
5842
+ yes: "Yes",
5843
+ no: "No",
5844
+ unknown: "Unknown",
5845
+ untitled: "Untitled",
5846
+ confirmation: "Confirmation",
5847
+ Today: "Today",
5848
+ Tomorrow: "Tomorrow",
5849
+ Yesterday: "Yesterday"
5850
+ },
5851
+ app: {
5852
+ popups: [],
5853
+ },
5854
+ vars: {
5855
+ loggers: {
5856
+ _num: 0
5857
+ },
5858
+ /* Usable datatypes through Ajax function */
5859
+ datatypes: ['xml', 'html', 'script', 'json', 'jsonp', 'text', 'blob'],
5860
+ /* The default value used by the function shorten */
5861
+ shortenLen: 30,
5862
+ /* Categorizing keyboard map */
5863
+ keys: {
5864
+ upDown: [33, 34, 35, 36, 38, 40],
5865
+ leftRight: [36, 35, 37, 39],
5866
+ dels: [8, 46, 45],
5867
+ confirm: [13, 9],
5868
+ alt: [20, 16, 17, 18, 144],
5869
+ numbers: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105],
5870
+ numsigns: [109, 110, 189, 190]
5871
+ },
5872
+ comparators: [">=", "<=", ">", "<", "="],
5873
+ operators: ["+", "-", "/", "*"],
5874
+ tags: ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'menu', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'slot', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr'],
5875
+ colors: {
5876
+ darkgrey: '#5a6a62',
5877
+ black: '#000000',
5878
+ anthracite: '#454545',
5879
+ grey: '#d3d3d3',
5880
+ white: '#ffffff',
5881
+ beige: '#fdfdfd',
5882
+ lightgrey: '#dcdcdc',
5883
+ pastelblue: '#ddebf6',
5884
+ cyan: '#00c8f8',
5885
+ blue: '#6e9ecf',
5886
+ indigo: '#3f51b5',
5887
+ navy: '#354458',
5888
+ webblue: '#2196f3',
5889
+ teal: '#009688',
5890
+ turquoise: '#1fda9a',
5891
+ pastelgreen: '#e2efda',
5892
+ palegreen: '#ccffcc',
5893
+ green: '#00a03e',
5894
+ olive: '#92b06a',
5895
+ pastelorange: '#fff2cc',
5896
+ yellow: '#fdf200',
5897
+ orange: '#ff9900',
5898
+ pink: '#eb65a0',
5899
+ purple: '#a333c8',
5900
+ red: '#db3340',
5901
+ brown: '#8c6954'
5902
+ },
5903
+ mockText: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
5904
+ regexp: {
5905
+ url: new RegExp('^(https?:\\/\\/)?' + // protocol
5906
+ '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|' + // domain name
5907
+ '((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address
5908
+ '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path
5909
+ '(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
5910
+ '(\\#[-a-z\\d_]*)?$', 'i'),
5911
+ ip: new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"),
5912
+ hostname: new RegExp("^[a-z\\d]([a-z\\d\\-]{0,61}[a-z\\d])?(\\.[a-z\\d]([a-z\\d\\-]{0,61}[a-z\\d])?)*$", 'i'),
5913
+ }
5914
+ },
5915
+ env: {
5916
+ siteTitle: window.document.title,
5917
+ /* This variable should be set to true in debugging mode only */
5918
+ logging: false,
5919
+ /* Address of the CDN (where this file should be hosted) */
5920
+ cdn: '',
5921
+ /* Default language */
5922
+ lang: 'en',
5923
+ host: window.location.protocol + '//' + window.location.hostname,
5924
+ url: window.location.href,
5925
+ old_path: null,
5926
+ /* True when non asynchronous Ajax loads */
5927
+ loading: false,
5928
+ /* Window width */
5929
+ width: 0,
5930
+ /* Window height */
5931
+ height: 0,
5932
+ /* Element currently focused (Element object) */
5933
+ focused: false,
5934
+ /* Last time user has been active */
5935
+ last_focus: (new Date()).getTime(),
5936
+ /* Sleep mode (tab or window unfocused */
5937
+ sleep: false,
5938
+ /**
5939
+ * @var bbn.env.loaders Object where the props are MD5 of data and url while the values are the requests,
5940
+ * for preventing the same call to be made at the same time
5941
+ **/
5942
+ loaders: [],
5943
+ loadersHistory: [],
5944
+ maxLoadersHistory: 20,
5945
+ /* bbn.env.params is an array of each element of the path */
5946
+ resizeTimer: false,
5947
+ hashChanged: 0,
5948
+ params: [],
5949
+ isInit: false,
5950
+ isFocused: false,
5951
+ timeoff: Math.round((new Date()).getTime() / 1000),
5952
+ loggingLevel: 5,
5953
+ ignoreUnload: false,
5954
+ historyDisabled: false,
5955
+ nav: 'ajax'
5956
+ },
5957
+ fn: {
5958
+ _addLoader: _addLoader_2._addLoader,
5959
+ _compareValues: _compareValues_3._compareValues,
5960
+ _deleteLoader: _deleteLoader_2._deleteLoader,
5961
+ abort: abort_1.abort,
5962
+ abortURL: abortURL_1.abortURL,
5963
+ addColors: addColors_2.addColors,
5964
+ addInputs: addInputs_2.addInputs,
5965
+ addStyle: addStyle_1.addStyle,
5966
+ adjustHeight: adjustHeight_1.adjustHeight,
5967
+ adjustSize: adjustSize_3.adjustSize,
5968
+ adjustWidth: adjustWidth_1.adjustWidth,
5969
+ ajax: ajax_4.ajax,
5970
+ analyzeFunction: analyzeFunction_1.analyzeFunction,
5971
+ animateCss: animateCss_1.animateCss,
5972
+ arrayBuffer2String: arrayBuffer2String_1.arrayBuffer2String,
5973
+ arrayFromProp: arrayFromProp_1.arrayFromProp,
5974
+ autoExtend: autoExtend_1.autoExtend,
5975
+ baseName: baseName_3.baseName,
5976
+ br2nl: br2nl_1.br2nl,
5977
+ calendar: calendar_1.calendar,
5978
+ callback: callback_3.callback,
5979
+ camelize: camelize_1.camelize,
5980
+ camelToCss: camelToCss_1.camelToCss,
5981
+ canvasToImage: canvasToImage_2.canvasToImage,
5982
+ center: center_1.center,
5983
+ checkProps: checkProps_1.checkProps,
5984
+ checkPropsDetails: checkPropsDetails_3.checkPropsDetails,
5985
+ checkPropsOrDie: checkPropsOrDie_1.checkPropsOrDie,
5986
+ checkType: checkType_3.checkType,
5987
+ circularReplacer: circularReplacer_2.circularReplacer,
5988
+ clone: clone_2.clone,
5989
+ colorToHex: colorToHex_1.colorToHex,
5990
+ compare: compare_1.compare,
5991
+ compareConditions: compareConditions_3.compareConditions,
5992
+ copy: copy_1.copy,
5993
+ correctCase: correctCase_2.correctCase,
5994
+ count: count_1.count,
5995
+ crc32: crc32_1.crc32,
5996
+ createObject: createObject_4.createObject,
5997
+ cssExists: cssExists_1.cssExists,
5998
+ date: date_7.date,
5999
+ dateSQL: dateSQL_1.dateSQL,
6000
+ daysInMonth: daysInMonth_1.daysInMonth,
6001
+ deepPath: deepPath_1.deepPath,
6002
+ defaultAjaxAbortFunction: defaultAjaxAbortFunction_2.defaultAjaxAbortFunction,
6003
+ defaultAjaxErrorFunction: defaultAjaxErrorFunction_3.defaultAjaxErrorFunction,
6004
+ defaultAlertFunction: defaultAlertFunction_2.defaultAlertFunction,
6005
+ defaultConfirmFunction: defaultConfirmFunction_1.defaultConfirmFunction,
6006
+ defaultEndLoadingFunction: defaultEndLoadingFunction_2.defaultEndLoadingFunction,
6007
+ defaultErrorFunction: defaultErrorFunction_1.defaultErrorFunction,
6008
+ defaultHistoryFunction: defaultHistoryFunction_2.defaultHistoryFunction,
6009
+ defaultLinkFunction: defaultLinkFunction_2.defaultLinkFunction,
6010
+ defaultPostLinkFunction: defaultPostLinkFunction_2.defaultPostLinkFunction,
6011
+ defaultPreLinkFunction: defaultPreLinkFunction_2.defaultPreLinkFunction,
6012
+ defaultResizeFunction: defaultResizeFunction_2.defaultResizeFunction,
6013
+ defaultStartLoadingFunction: defaultStartLoadingFunction_2.defaultStartLoadingFunction,
6014
+ deleteProp: deleteProp_1.deleteProp,
6015
+ diffObj: diffObj_1.diffObj,
6016
+ dirName: dirName_2.dirName,
6017
+ download: download_1.download,
6018
+ downloadContent: downloadContent_2.downloadContent,
6019
+ each: each_28.each,
6020
+ eraseCookie: eraseCookie_1.eraseCookie,
6021
+ error: error_4.error,
6022
+ escapeDquotes: escapeDquotes_1.escapeDquotes,
6023
+ escapeRegExp: escapeRegExp_3.escapeRegExp,
6024
+ escapeSquotes: escapeSquotes_1.escapeSquotes,
6025
+ escapeTicks: escapeTicks_1.escapeTicks,
6026
+ escapeUrl: escapeUrl_1.escapeUrl,
6027
+ extend: extend_8.extend,
6028
+ extendOut: extendOut_1.extendOut,
6029
+ fdate: fdate_2.fdate,
6030
+ fdatetime: fdatetime_2.fdatetime,
6031
+ fieldValue: fieldValue_2.fieldValue,
6032
+ fileExt: fileExt_2.fileExt,
6033
+ filter: filter_6.filter,
6034
+ filterToConditions: filterToConditions_3.filterToConditions,
6035
+ findAll: findAll_1.findAll,
6036
+ fori: fori_1.fori,
6037
+ forir: forir_1.forir,
6038
+ format: format_1.format,
6039
+ formatBytes: formatBytes_1.formatBytes,
6040
+ formatDate: formatDate_1.formatDate,
6041
+ formatSize: formatSize_1.formatSize,
6042
+ formdata: formdata_2.formdata,
6043
+ fromXml: fromXml_1.fromXml,
6044
+ ftime: ftime_1.ftime,
6045
+ getAllTags: getAllTags_1.getAllTags,
6046
+ getAncestors: getAncestors_2.getAncestors,
6047
+ getAttributes: getAttributes_1.getAttributes,
6048
+ getBrowserName: getBrowserName_1.getBrowserName,
6049
+ getBrowserVersion: getBrowserVersion_1.getBrowserVersion,
6050
+ getCookie: getCookie_1.getCookie,
6051
+ getCssVar: getCssVar_2.getCssVar,
6052
+ getDay: getDay_1.getDay,
6053
+ getDeviceType: getDeviceType_1.getDeviceType,
6054
+ getEventData: getEventData_1.getEventData,
6055
+ getField: getField_1.getField,
6056
+ getFieldValues: getFieldValues_1.getFieldValues,
6057
+ getHtml: getHtml_1.getHtml,
6058
+ getHTMLOfSelection: getHTMLOfSelection_2.getHTMLOfSelection,
6059
+ getLoader: getLoader_4.getLoader,
6060
+ getPath: getPath_2.getPath,
6061
+ getProp: getProp_1.getProp,
6062
+ getProperty: getProperty_4.getProperty,
6063
+ getRequestId: getRequestId_2.getRequestId,
6064
+ getRow: getRow_2.getRow,
6065
+ getScrollBarSize: getScrollBarSize_1.getScrollBarSize,
6066
+ getText: getText_1.getText,
6067
+ getTimeoff: getTimeoff_1.getTimeoff,
6068
+ happy: happy_1.happy,
6069
+ hash: hash_2.hash,
6070
+ hex2rgb: hex2rgb_1.hex2rgb,
6071
+ history: history_1.history,
6072
+ html2text: html2text_2.html2text,
6073
+ imageToCanvas: imageToCanvas_2.imageToCanvas,
6074
+ imgToBase64: imgToBase64_1.imgToBase64,
6075
+ info: info_1.info,
6076
+ init: init_1.init,
6077
+ isActiveInterface: isActiveInterface_1.isActiveInterface,
6078
+ isArray: isArray_19.isArray,
6079
+ isBlob: isBlob_2.isBlob,
6080
+ isBoolean: isBoolean_1.isBoolean,
6081
+ isCanvas: isCanvas_2.isCanvas,
6082
+ isColor: isColor_1.isColor,
6083
+ isComment: isComment_1.isComment,
6084
+ isCp: isCp_6.isCp,
6085
+ isDate: isDate_8.isDate,
6086
+ isDesktopDevice: isDesktopDevice_1.isDesktopDevice,
6087
+ isDimension: isDimension_1.isDimension,
6088
+ isDom: isDom_5.isDom,
6089
+ isEmail: isEmail_1.isEmail,
6090
+ isEmpty: isEmpty_2.isEmpty,
6091
+ isEvent: isEvent_1.isEvent,
6092
+ isFocused: isFocused_1.isFocused,
6093
+ isFunction: isFunction_14.isFunction,
6094
+ isHostname: isHostname_1.isHostname,
6095
+ isInside: isInside_1.isInside,
6096
+ isInt: isInt_2.isInt,
6097
+ isIP: isIP_2.isIP,
6098
+ isIterable: isIterable_5.isIterable,
6099
+ isMobile: isMobile_2.isMobile,
6100
+ isMobileDevice: isMobileDevice_2.isMobileDevice,
6101
+ isNull: isNull_4.isNull,
6102
+ isNumber: isNumber_9.isNumber,
6103
+ isObject: isObject_20.isObject,
6104
+ isPercent: isPercent_1.isPercent,
6105
+ isPrimitive: isPrimitive_1.isPrimitive,
6106
+ isPromise: isPromise_1.isPromise,
6107
+ isPropSize: isPropSize_1.isPropSize,
6108
+ isSame: isSame_3.isSame,
6109
+ isSQLDate: isSQLDate_1.isSQLDate,
6110
+ isString: isString_32.isString,
6111
+ isSymbol: isSymbol_2.isSymbol,
6112
+ isTabletDevice: isTabletDevice_3.isTabletDevice,
6113
+ isURL: isURL_1.isURL,
6114
+ isValidDimension: isValidDimension_2.isValidDimension,
6115
+ isValidName: isValidName_1.isValidName,
6116
+ isValue: isValue_2.isValue,
6117
+ isVue: isVue_1.isVue,
6118
+ iterate: iterate_12.iterate,
6119
+ lightenDarkenHex: lightenDarkenHex_1.lightenDarkenHex,
6120
+ link: link_2.link,
6121
+ log: log_22.log,
6122
+ makeReactive: makeReactive_1.makeReactive,
6123
+ map: map_1.map,
6124
+ md5: md5_4.md5,
6125
+ money: money_1.money,
6126
+ move: move_1.move,
6127
+ multiorder: multiorder_1.multiorder,
6128
+ nl2br: nl2br_1.nl2br,
6129
+ numProperties: numProperties_9.numProperties,
6130
+ objectToFormData: objectToFormData_2.objectToFormData,
6131
+ order: order_1.order,
6132
+ outerHeight: outerHeight_1.outerHeight,
6133
+ outerWidth: outerWidth_1.outerWidth,
6134
+ percent: percent_1.percent,
6135
+ pickValue: pickValue_1.pickValue,
6136
+ post: post_2.post,
6137
+ postOut: postOut_1.postOut,
6138
+ printf: printf_1.printf,
6139
+ quotes2html: quotes2html_1.quotes2html,
6140
+ randomInt: randomInt_2.randomInt,
6141
+ randomString: randomString_1.randomString,
6142
+ removeAccents: removeAccents_4.removeAccents,
6143
+ removeEmpty: removeEmpty_1.removeEmpty,
6144
+ removeExtraSpaces: removeExtraSpaces_1.removeExtraSpaces,
6145
+ removeHtmlComments: removeHtmlComments_2.removeHtmlComments,
6146
+ removePrivateProp: removePrivateProp_2.removePrivateProp,
6147
+ removeTrailingChars: removeTrailingChars_1.removeTrailingChars,
6148
+ repeat: repeat_1.repeat,
6149
+ replaceAll: replaceAll_8.replaceAll,
6150
+ replaceSelection: replaceSelection_1.replaceSelection,
6151
+ resize: resize_3.resize,
6152
+ rgb2hex: rgb2hex_1.rgb2hex,
6153
+ riterate: riterate_1.riterate,
6154
+ roundDecimal: roundDecimal_1.roundDecimal,
6155
+ sanitize: sanitize_1.sanitize,
6156
+ search: search_6.search,
6157
+ selectElementText: selectElementText_1.selectElementText,
6158
+ selector: selector_3.selector,
6159
+ setCookie: setCookie_1.setCookie,
6160
+ setCssVar: setCssVar_1.setCssVar,
6161
+ setNavigationVars: setNavigationVars_2.setNavigationVars,
6162
+ setProp: setProp_1.setProp,
6163
+ setProperty: setProperty_1.setProperty,
6164
+ shorten: shorten_2.shorten,
6165
+ shortenObj: shortenObj_1.shortenObj,
6166
+ shuffle: shuffle_1.shuffle,
6167
+ simpleHash: simpleHash_2.simpleHash,
6168
+ simpleHash1: simpleHash1_2.simpleHash1,
6169
+ simpleHash2: simpleHash2_2.simpleHash2,
6170
+ startChrono: startChrono_1.startChrono,
6171
+ stat: stat_1.stat,
6172
+ stopChrono: stopChrono_1.stopChrono,
6173
+ string2ArrayBuffer: string2ArrayBuffer_1.string2ArrayBuffer,
6174
+ submit: submit_2.submit,
6175
+ substr: substr_16.substr,
6176
+ sum: sum_1.sum,
6177
+ timestamp: timestamp_1.timestamp,
6178
+ toCSV: toCSV_1.toCSV,
6179
+ toggleFullScreen: toggleFullScreen_1.toggleFullScreen,
6180
+ translate: translate_1.translate,
6181
+ treatAjaxArguments: treatAjaxArguments_3.treatAjaxArguments,
6182
+ trim: trim_2.trim,
6183
+ uniqString: uniqString_1.uniqString,
6184
+ unique: unique_2.unique,
6185
+ upload: upload_1.upload,
6186
+ warning: warning_2.warning,
6187
+ }
6021
6188
  };
6022
6189
  });
6023
6190