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-mobile__js__dom__MTinyProfileBlock.js
/*** module: node_modules/absol-mobile/js/dom/MTinyProfileBlock.js ***/
"use strict";

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

require("../../css/mtinyprofileblock.css");

var _Core = _interopRequireDefault(require("./Core"));


var _ = _Core.default._;
var $ = _Core.default.$;

function MTinyProfileBlock() {
  this._avatarSrc = '';
  this.$name = $('.am-tiny-profile-block-name', this);
  this.$desc = $('.am-tiny-profile-block-desc', this);
  this.$avatar = $('.am-tiny-profile-block-avatar', this);
}

MTinyProfileBlock.tag = 'MTinyProfileBlock'.toLowerCase();

MTinyProfileBlock.render = function () {
  return _({
    class: 'am-tiny-profile-block',
    extendEvent: 'change',
    child: [{
      class: 'am-tiny-profile-block-avatar'
    }, {
      class: 'am-tiny-profile-block-text-ctn',
      child: [{
        class: 'am-tiny-profile-block-name',
        child: {
          text: 'Pham Quoc Du Thien'
        }
      }, {
        class: 'am-tiny-profile-block-desc',
        child: {
          text: 'View your profile'
        }
      }]
    }]
  });
};

MTinyProfileBlock.property = {};
/**
 * @type {MTinyProfileBlock}
 */

MTinyProfileBlock.property.desc = {
  set: function (value) {
    this.$desc.firstChild.data = value + '';
  },
  get: function () {
    return this.$desc.firstChild.data;
  }
};
/**
 * @type {MTinyProfileBlock}
 */

MTinyProfileBlock.property.name = {
  set: function (value) {
    this.$name.firstChild.data = value + '';
  },
  get: function () {
    return this.$name.firstChild.data;
  }
};
/**
 * @type {MTinyProfileBlock}
 */

MTinyProfileBlock.property.avatarSrc = {
  set: function (value) {
    value = value + '';
    this._avatarSrc = value;
    this.$avatar.addStyle('background-image', 'url(' + value + ')');
  },
  get: function () {
    return this._avatarSrc;
  }
};

_Core.default.install(MTinyProfileBlock);

var _default = MTinyProfileBlock;
exports.default = _default;

VaKeR 2022