%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.137.200.150
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/ui/layout-form/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/ui/layout-form/dist/layout-form.bundle.js
this.BX = this.BX || {};
(function (exports,main_core) {
	'use strict';

	var LayoutForm = /*#__PURE__*/function () {
	  function LayoutForm() {
	    babelHelpers.classCallCheck(this, LayoutForm);
	    this.hiddenAttribute = 'data-form-row-hidden';
	    this.nodes = null;
	    this.init();
	  }

	  babelHelpers.createClass(LayoutForm, [{
	    key: "init",
	    value: function init() {
	      this.nodes = document.querySelectorAll('[' + this.hiddenAttribute + ']');

	      for (var i = 0; i < this.nodes.length; i++) {
	        main_core.Event.bind(this.nodes[i], "click", this.onClick.bind(this));
	        this.nodes[i].querySelector('.ui-ctl-element[type="checkbox"]').style.pointerEvents = 'none';
	        this.checkInitialBlockVisibility(this.nodes[i]);
	      }
	    }
	  }, {
	    key: "checkInitialBlockVisibility",
	    value: function checkInitialBlockVisibility(hiddenRow) {
	      var checkbox = hiddenRow.querySelector('.ui-ctl-element[type="checkbox"]');

	      if (checkbox.checked) {
	        var hiddenBlock = hiddenRow.nextElementSibling;
	        hiddenBlock.style.height = hiddenBlock.scrollHeight + 'px';
	        main_core.Dom.addClass(hiddenBlock, 'ui-form-row-hidden-show');
	      }
	    }
	  }, {
	    key: "onClick",
	    value: function onClick(event) {
	      // event.preventDefault();
	      var checkbox = event.currentTarget.querySelector('.ui-ctl-element[type="checkbox"]');
	      var hiddenBlock = event.currentTarget.nextElementSibling;
	      var height = hiddenBlock.scrollHeight;
	      this.toggleHiddenBLock(checkbox, hiddenBlock, height);
	    }
	  }, {
	    key: "toggleHiddenBLock",
	    value: function toggleHiddenBLock(checkbox, hiddenBlock, height) {
	      if (!checkbox.checked) {
	        checkbox.checked = true;
	        hiddenBlock.style.height = height + 'px';
	        main_core.Dom.addClass(hiddenBlock, 'ui-form-row-hidden-show');
	      } else {
	        checkbox.checked = false;
	        hiddenBlock.style.height = 0;
	        main_core.Dom.removeClass(hiddenBlock, 'ui-form-row-hidden-show');
	      }
	    }
	  }]);
	  return LayoutForm;
	}();

	exports.LayoutForm = LayoutForm;

}((this.BX.UI = this.BX.UI || {}),BX));
//# sourceMappingURL=layout-form.bundle.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit