%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.142.119.8 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 : |
this.BX=this.BX||{};(function(e,t){"use strict";var i=function(){function e(){babelHelpers.classCallCheck(this,e);this.hiddenAttribute="data-form-row-hidden";this.nodes=null;this.init()}babelHelpers.createClass(e,[{key:"init",value:function e(){this.nodes=document.querySelectorAll("["+this.hiddenAttribute+"]");for(var i=0;i<this.nodes.length;i++){t.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 e(i){var n=i.querySelector('.ui-ctl-element[type="checkbox"]');if(n.checked){var l=i.nextElementSibling;l.style.height=l.scrollHeight+"px";t.Dom.addClass(l,"ui-form-row-hidden-show")}}},{key:"onClick",value:function e(t){var i=t.currentTarget.querySelector('.ui-ctl-element[type="checkbox"]');var n=t.currentTarget.nextElementSibling;var l=n.scrollHeight;this.toggleHiddenBLock(i,n,l)}},{key:"toggleHiddenBLock",value:function e(i,n,l){if(!i.checked){i.checked=true;n.style.height=l+"px";t.Dom.addClass(n,"ui-form-row-hidden-show")}else{i.checked=false;n.style.height=0;t.Dom.removeClass(n,"ui-form-row-hidden-show")}}}]);return e}();e.LayoutForm=i})(this.BX.UI=this.BX.UI||{},BX); //# sourceMappingURL=layout-form.bundle.map.js