Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/bizproc/local-settings/dist/ |
Upload File : |
/* eslint-disable */ this.BX = this.BX || {}; this.BX.Bizproc = this.BX.Bizproc || {}; (function (exports,main_core) { 'use strict'; var _prefix = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("prefix"); class Settings { constructor(section) { Object.defineProperty(this, _prefix, { writable: true, value: 'bp' }); if (section) { babelHelpers.classPrivateFieldLooseBase(this, _prefix)[_prefix] += '-' + section; } } getSet(name) { const value = this.get(name); return value instanceof Array ? new Set(value) : new Set(); } get(name) { const settings = new main_core.Cache.LocalStorageCache().remember(babelHelpers.classPrivateFieldLooseBase(this, _prefix)[_prefix], {}); return settings.hasOwnProperty(name) ? settings[name] : null; } set(name, value) { if (value instanceof Set) { value = Array.from(value); } const cache = new main_core.Cache.LocalStorageCache(); const settings = cache.remember(babelHelpers.classPrivateFieldLooseBase(this, _prefix)[_prefix], {}); settings[name] = value; cache.set(babelHelpers.classPrivateFieldLooseBase(this, _prefix)[_prefix], settings); return this; } remember(key, defaultValue) { const cacheValue = this.get(key); if (!main_core.Type.isNull(cacheValue)) { return cacheValue; } this.set(key, defaultValue); return this.get(key); } getAll() { return new main_core.Cache.LocalStorageCache().remember(babelHelpers.classPrivateFieldLooseBase(this, _prefix)[_prefix], {}); } deleteAll() { const cache = new main_core.Cache.LocalStorageCache(); cache.set(babelHelpers.classPrivateFieldLooseBase(this, _prefix)[_prefix], {}); } } exports.Settings = Settings; }((this.BX.Bizproc.LocalSettings = this.BX.Bizproc.LocalSettings || {}),BX)); //# sourceMappingURL=local-settings.bundle.js.map