403Webshell
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/ui/progressbarjs/uploader/dist/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/progressbarjs/uploader/dist/uploader.bundle.min.js
this.BX=this.BX||{};(function(e){"use strict";var s=1e3;var i=function(){function e(){var i;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};babelHelpers.classCallCheck(this,e);this.container=t.container;if(this.container&&typeof t.blurElement==="undefined"){t.blurElement=this.container.firstElementChild}this.blurElement=t.blurElement;this.direction=e.direction[t.direction]?t.direction:e.direction.vertical;t.sizes=t.sizes&&babelHelpers["typeof"](t.sizes)==="object"?t.sizes:{};this.sizes={circle:t.sizes.circle?t.sizes.circle:54,progress:t.sizes.progress?t.sizes.progress:4,margin:t.sizes.margin?t.sizes.margin:0};t.labels=t.labels&&babelHelpers["typeof"](t.labels)==="object"?t.labels:{};this.labels={loading:t.labels.loading?t.labels.loading:"",completed:t.labels.completed?t.labels.completed:"",canceled:t.labels.canceled?t.labels.canceled:"",cancelTitle:t.labels.cancelTitle?t.labels.cancelTitle:"",megabyte:t.labels.megabyte?t.labels.megabyte:"MB"};this.cancelCallback=typeof t.cancelCallback==="function"?t.cancelCallback:null;this.destroyCallback=typeof t.destroyCallback==="function"?t.destroyCallback:null;this.icon=e.icon[t.icon]?t.icon:!this.cancelCallback?e.icon.cloud:e.icon.cancel;this.inited=!!this.container;this.destroing=false;this.cancelCallbackDelay=(i=t.cancelCallbackDelay)!==null&&i!==void 0?i:s}babelHelpers.createClass(e,[{key:"start",value:function s(){var i=this;if(!this.inited){return false}clearTimeout(this.timeoutSetIcon);clearTimeout(this.timeout);this.active=true;this.canceled=false;this.cancelCallbackDisabled=false;this.wrapper=document.createElement("div");this.wrapper.classList.add("ui-file-progressbar-loader-wrapper");this.wrapper.innerHTML='\n\t\t\t<div class="ui-file-progressbar-loader">\n\t\t\t\t<div class="ui-file-progressbar-icon"></div>\n\t\t\t\t<div class="ui-file-progressbar-progress ui-file-progressbar-rotating"></div>\n\t\t\t</div>\n\t\t\t<div class="ui-file-progressbar-label">'.concat(this.labels.loading,"</div>\n\t\t");this.processLoader=this.wrapper.getElementsByClassName("ui-file-progressbar-loader")[0];this.processLoaderIcon=this.wrapper.getElementsByClassName("ui-file-progressbar-icon")[0];this.processStatus=this.wrapper.getElementsByClassName("ui-file-progressbar-progress")[0];this.proccesLabel=this.wrapper.getElementsByClassName("ui-file-progressbar-label")[0];if(this.direction===e.direction.horizontal){this.wrapper.classList.add("ui-file-progressbar-loader-horizontal")}this.container.classList.add("ui-file-progressbar-container-relative");this.container.insertBefore(this.wrapper,this.container.firstChild);if(this.blurElement){this.blurElement.classList.add("ui-file-progressbar-item-blurred")}var t="width: ".concat(this.sizes.circle,"px; height: ").concat(this.sizes.circle,"px;");if(this.sizes.margin){t=t+"margin: ".concat(this.sizes.margin,"px;");this.proccesLabel.style="margin: ".concat(this.sizes.margin,"px;")}this.processLoader.style=t;if(this.cancelCallback){this.processLoader.addEventListener("click",(function(e){if(i.cancelCallbackDisabled){return false}i.setProgress(0);if(i.labels.canceled){i.setProgressTitle(i.labels.canceled)}i.canceled=e;i.active=false;clearTimeout(i.timeout);i.timeout=setTimeout((function(){return i.destroy()}),i.cancelCallbackDelay);return true}));if(this.labels.cancelTitle){this.processLoader.title=this.labels.cancelTitle}}if(!this.labels.loading){this.setProgressTitleVisibility(false)}this.setIcon(this.icon,true);this.bar=new BX.ProgressBarJs.Circle(this.processStatus,{easing:"linear",strokeWidth:this.sizes.progress,color:"#ffffff",from:{color:"#ffffff"},to:{color:"#ffffff"},step:function s(t,r){if(r.value()==1){clearTimeout(i.timeout);i.timeout=setTimeout((function(){if(i.labels.completed){i.setProgressTitle(i.labels.completed)}i.setIcon(e.icon.done);clearTimeout(i.timeout);i.timeout=setTimeout((function(){return i.destroy()}),1e3)}),200)}}})}},{key:"setCancelDisable",value:function e(){var s=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;this.cancelCallbackDisabled=!!s;if(this.labels.cancelTitle){this.processLoader.title=this.cancelCallbackDisabled?"":this.labels.cancelTitle}}},{key:"setIcon",value:function s(i){var t=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;this.processLoaderIcon.style.transform="scale(0)";clearTimeout(this.timeoutSetIcon);this.timeoutSetIcon=setTimeout((function(){t.processLoaderIcon.classList.remove("ui-file-progressbar-cancel","ui-file-progressbar-done","ui-file-progressbar-cloud","ui-file-progressbar-error");if(i===e.icon.done){t.processLoaderIcon.classList.add("ui-file-progressbar-done");t.processLoaderIcon.style.transform="scale(1)"}else if(i===e.icon.cancel){t.processLoaderIcon.classList.add("ui-file-progressbar-cancel");t.processLoaderIcon.style.transform="scale(1)"}else if(i===e.icon.error){t.processLoaderIcon.classList.add("ui-file-progressbar-error");t.processLoaderIcon.style.transform="scale(1)"}else{t.processLoaderIcon.classList.add("ui-file-progressbar-cloud");t.processLoaderIcon.style.transform="scale(1)"}}),r?0:200);return true}},{key:"setProgress",value:function e(s){if(!this.active||this.canceled){return false}this.bar.animate(s/100,{duration:500})}},{key:"setProgressTitle",value:function e(s){if(!this.proccesLabel){return false}this.proccesLabel.innerHTML=s}},{key:"setProgressTitleVisibility",value:function s(i){if(!this.proccesLabel){return}if(i){if(this.direction===e.direction.horizontal){this.wrapper.classList.add("ui-file-progressbar-loader-horizontal")}this.proccesLabel.style.display="block"}else{if(this.direction===e.direction.horizontal){this.wrapper.classList.remove("ui-file-progressbar-loader-horizontal")}this.proccesLabel.style.display="none"}}},{key:"setByteSent",value:function e(s,i){if(this.canceled){return false}this.setProgressTitle((s/1024/1024).toFixed(2)+" "+this.labels.megabyte+" "+" / "+(i/1024/1024).toFixed(2)+" "+this.labels.megabyte)}},{key:"destroy",value:function e(){var s=this;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;clearTimeout(this.timeoutSetIcon);clearTimeout(this.timeout);if(this.destroing){return true}this.active=false;this.destroing=true;this.processLoader.style.transform="scale(0)";if(this.proccesLabel){this.proccesLabel.style.transform="scale(0)"}if(this.bar){this.bar.destroy()}if(this.blurElement){this.blurElement.classList.remove("ui-file-progressbar-item-blurred")}if(this.canceled&&!this.cancelCallbackDisabled){if(this.cancelCallback){this.cancelCallback(this.canceled)}this.canceled=false}if(i){this.timeout=setTimeout((function(){return s.destroyFinally()}),400)}else{this.destroyFinally()}}},{key:"destroyFinally",value:function e(){if(this.container){this.container.classList.remove("ui-file-progressbar-container-relative");this.container.removeChild(this.wrapper)}if(this.destroyCallback){this.destroyCallback()}}}]);return e}();i.direction={horizontal:"horizontal",vertical:"vertical"};i.icon={cloud:"cloud",cancel:"cancel",error:"error",done:"done"};e.Uploader=i})(this.BX.ProgressBarJs=this.BX.ProgressBarJs||{});
//# sourceMappingURL=uploader.bundle.map.js

Youez - 2016 - github.com/yon3zu
LinuXploit