![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/libs/absol-full/dist/js/ |
Upload File : |
/*** module: node_modules/absol-acomp/js/MultiLanguageCSS.js ***/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadLanguageModule = loadLanguageModule; exports.default = void 0; var _ACore = require("../ACore"); var counter = 30; function makeCss(data) { var cssText = Object.keys(data).map(key => { return ['[data-ml-key=' + JSON.stringify(key) + ']::before {', ' content: ' + JSON.stringify(data[key]) + ';', '}'].join('\n'); }).join('\n\n'); (0, _ACore._)({ tag: 'style', attr: { type: 'text/css' }, props: { innerHTML: cssText } }).addTo(document.head); } var data = { txt_ok: 'OK', txt_cancel: 'Cancel', txt_close: 'Close', txt_option: 'Option', txt_check_all: 'Check All', txt_select_value: '-- Select values --' }; makeCss(data); var overrideData = {}; var LanguageModuleLoaded = false; function loadLanguageModule() { if (LanguageModuleLoaded) return; var text; var newest = false, key; if (window['LanguageModule'] && window['LanguageModule'].data && window['LanguageModule'].data.length > 0) { LanguageModuleLoaded = true; for (key in data) { text = window['LanguageModule'].text(key); if (!text.startsWith('[key:') && text !== data[key]) { overrideData[key] = text; newest = true; } } if (newest) makeCss(overrideData); } } function waitLanguage() { if (window['LanguageModule'] && window['LanguageModule'].data && window['LanguageModule'].data.length > 0) { loadLanguageModule(); } else { if (counter--) setTimeout(waitLanguage, 400 + Math.floor(16000 / counter / counter)); } } waitLanguage(); var _default = {}; exports.default = _default;