VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/libs/absol-full/dist/js/mdls__absol-form__js__editor__AllPropertyEditor.js
/*** module: node_modules/absol-form/js/editor/AllPropertyEditor.js ***/
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _MultiObjectPropertyEditor = _interopRequireDefault(require("../propertyeditors/MultiObjectPropertyEditor"));

var _IndexedPropertyNames = _interopRequireDefault(require("../core/IndexedPropertyNames"));


function AllPropertyEditor() {
  _MultiObjectPropertyEditor.default.call(this);
}

Object.defineProperties(AllPropertyEditor.prototype, Object.getOwnPropertyDescriptors(_MultiObjectPropertyEditor.default.prototype));
AllPropertyEditor.prototype.constructor = AllPropertyEditor;

AllPropertyEditor.prototype.setProperty = function (object, name, value) {
  if (object.__AllPropertyEditorGroupName__.attributes[name]) return object.setAttribute(object.__AllPropertyEditorGroupName__.attributes[name], value);
  if (object.__AllPropertyEditorGroupName__.style[name]) return object.setStyle(object.__AllPropertyEditorGroupName__.style[name], value);
  throw new Error('not found ' + name);
};

AllPropertyEditor.prototype.getProperty = function (object, name) {
  if (object.__AllPropertyEditorGroupName__.attributes[name]) return object.getAttribute(object.__AllPropertyEditorGroupName__.attributes[name]);
  if (object.__AllPropertyEditorGroupName__.style[name]) return object.getStyle.apply(object, [object.__AllPropertyEditorGroupName__.style[name]].concat(Array.prototype.slice.call(arguments, 2)));
  throw new Error('not found ' + name);
};

AllPropertyEditor.prototype.getPropertyDescriptor = function (object, name) {
  if (object.__AllPropertyEditorGroupName__.attributes[name]) return object.getAttributeDescriptor(object.__AllPropertyEditorGroupName__.attributes[name]);
  if (object.__AllPropertyEditorGroupName__.style[name]) return object.getStyleDescriptor(object.__AllPropertyEditorGroupName__.style[name]);
  throw new Error('not found ' + name);
};

AllPropertyEditor.prototype.getPropertyNames = function (object) {
  var indexed = _IndexedPropertyNames.default;
  return Object.keys(object.__AllPropertyEditorGroupName__.attributes).concat(Object.keys(object.__AllPropertyEditorGroupName__.style)).sort(function (a, b) {
    return indexed[a] - indexed[b];
  });
};

AllPropertyEditor.prototype.edit = function () {
  if (this.objects) this.objects.forEach(function (object) {
    delete object.__AllPropertyEditorGroupName__;
  });
  Array.prototype.forEach.call(arguments, function (object) {
    object.__AllPropertyEditorGroupName__ = {};
    var attributes = object.getAcceptsAttributeNames();
    var style = object.getAcceptsStyleNames();
    object.__AllPropertyEditorGroupName__.attributes = attributes.reduce(function (ac, cr) {
      ac[cr] = cr;
      return ac;
    }, {});
    object.__AllPropertyEditorGroupName__.style = style.reduce(function (ac, cr) {
      ac[cr] = cr;
      return ac;
    }, {});
    var key;

    for (key in object.__AllPropertyEditorGroupName__.attributes) {
      if (object.__AllPropertyEditorGroupName__.style[key]) {
        delete object.__AllPropertyEditorGroupName__.attributes[key];
        delete object.__AllPropertyEditorGroupName__.style[key];
        object.__AllPropertyEditorGroupName__.attributes[key + '(attribute)'] = key;
        object.__AllPropertyEditorGroupName__.style[key + '(style)'] = key;
      }
    }
  });
  return _MultiObjectPropertyEditor.default.prototype.edit.apply(this, arguments);
};

var _default = AllPropertyEditor;
exports.default = _default;

VaKeR 2022