%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.217.132.15
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/designerblock/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/landing/designerblock/dist/designerblock.bundle.min.js
this.BX=this.BX||{};(function(e,t,n,i,r,a,o,l){"use strict";var s=function(){function e(t){babelHelpers.classCallCheck(this,e);this.element=t.element;this.selector=t.selector;this.cardSelector=t.cardSelector;this.onHover=t.onHover;this.pseudoElement=l.Dom.hasClass(this.element,"landing-designer-block-pseudo-last");l.Event.bind(this.element,"mouseover",this.onMouseOver.bind(this));if(t.className){l.Dom.addClass(this.element,t.className)}}babelHelpers.createClass(e,[{key:"isPseudoElement",value:function e(){return this.pseudoElement}},{key:"getSelector",value:function e(){return(this.cardSelector?this.cardSelector+" ":"")+this.selector}},{key:"getCardSelector",value:function e(){return this.cardSelector}},{key:"getOriginalSelector",value:function e(){return this.selector}},{key:"getElement",value:function e(){return this.element}},{key:"onMouseOver",value:function e(t){t.stopPropagation();this.onHover(this)}}]);return e}();function d(){var e=babelHelpers.taggedTemplateLiteral(['\n\t\t\t<div class="landing-designer-block-node-hover-add">\n\t\t\t\t<span class="landing-designer-block-node-hover-add-title">\n\t\t\t\t\t',"\n\t\t\t\t</span>\n\t\t\t</div>"]);d=function t(){return e};return e}function c(){var e=babelHelpers.taggedTemplateLiteral(['<div class="landing-designer-block-pseudo-last"></div>']);c=function t(){return e};return e}function u(){var e=babelHelpers.taggedTemplateLiteral(['<div class="landing-designer-block-node-hover"></div>']);u=function t(){return e};return e}var h=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"getHoverDiv",value:function e(){return l.Tag.render(u())}},{key:"getPseudoLast",value:function e(){return l.Tag.render(c())}},{key:"getAddNodeButton",value:function e(){return l.Tag.render(d(),a.Loc.getMessage("LANDING_DESIGN_BLOCK_REPO_BUTTON"))}}]);return e}();function v(){var e=babelHelpers.taggedTemplateLiteral(['<div class="landing-ui-field-layer-list-container"></div>']);v=function t(){return e};return e}var g=function(e){babelHelpers.inherits(t,e);function t(e){var n;babelHelpers.classCallCheck(this,t);n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,"design_repo",{title:a.Loc.getMessage("LANDING_DESIGN_BLOCK_REPO_TITLE"),scrollAnimation:true}));n.currentCategory=null;n.cache=new l.Cache.MemoryCache;n.onElementSelect=e.onElementSelect;n.renderTo(document.body);l.Dom.addClass(n.layout,"landing-ui-panel-repo");return n}babelHelpers.createClass(t,[{key:"addRepository",value:function e(t){var n=this;t.map(function(e){n.addElement(e)})}},{key:"makeElementUnique",value:function e(t){var n=this;var i={};Object.keys(t.manifest.nodes).map(function(e){var r="-"+n.randomNum(1e3,9999);var a=e.substr(1);t.html=t.html.replaceAll(new RegExp(a+'([\\s"]{1})',"g"),a+r+"$1");i[e+r]=t.manifest.nodes[e]});t.manifest.nodes=i;return t}},{key:"addElement",value:function e(t){var n=this;var i=new BX.Landing.UI.Card.BlockPreviewCard({title:t.name,image:"/bitrix/images/landing/designerblock/presets/"+t.code+".jpg",onClick:function e(){n.onElementSelect(n.makeElementUnique(t));void n.hide()}});this.appendCard(i)}},{key:"randomNum",value:function e(t,n){return parseInt(Math.random()*(n-t)+t)}},{key:"getListContainer",value:function e(){return this.cache.remember("listContainer",function(){return l.Tag.render(v())})}}]);return t}(o.Content);var m=function(){function e(t){babelHelpers.classCallCheck(this,e);this.panel=new g({onElementSelect:t.onElementSelect});this.panel.addRepository(t.repository)}babelHelpers.createClass(e,[{key:"showPanel",value:function e(){this.panel.show().then()}}]);return e}();function p(){var e=babelHelpers.taggedTemplateLiteral(["",""]);p=function t(){return e};return e}function f(){var e=babelHelpers.taggedTemplateLiteral(["<style>","{display: none !important;}</style>"]);f=function t(){return e};return e}function b(){var e=babelHelpers.taggedTemplateLiteral(["",""]);b=function t(){return e};return e}var y=function(){function e(t,a){babelHelpers.classCallCheck(this,e);babelHelpers.defineProperty(this,"hoverArea",null);babelHelpers.defineProperty(this,"activeNode",null);babelHelpers.defineProperty(this,"changed",false);babelHelpers.defineProperty(this,"saving",false);if(!t){return}this.originalNode=t;this.blockNode=t.children[0];this.blockCode=a.code;this.blockId=a.id;this.designed=a.designed;this.autoPublicationEnabled=a.autoPublicationEnabled;this.landingId=a.lid;this.nodes=a.manifest.nodes;this.highlight=new r.Highlight;this.cardSelectors=a.manifest.cards?Object.keys(a.manifest.cards):[];this.designAllowed=!!n.Env.getInstance().getOptions().design_block_allowed;this.cardSelectors.push("");this.nodeMap=new WeakMap;this.metrika=new i.Metrika(true);this.repoManager=new m({repository:a.repository,onElementSelect:this.addElement.bind(this)});this.saveButton=parent.document.getElementById("landing-design-block-save")||top.document.getElementById("landing-design-block-save")||document.getElementById("landing-design-block-save");this.preventEvents();this.initHistoryEvents();this.initTopPanel();this.initNodes();this.initGrid();this.initSliders();this.initHoverArea()}babelHelpers.createClass(e,[{key:"clearHtml",value:function e(t){return t.replace(/<div class="[^"]*landing-designer-block-pseudo-last[^"]*"[^>]*>[\s]*<\/div>/g,"").replace(/<div class="[^"]*landing-highlight-border[^"]*"[^>]*>[\s]*<\/div>/g,"").replace(/url\(&quot;(.*?)&quot;\)/g,"url($1)").replace(/\s*data-(landingwrapper)="[^"]+"\s*/g," ").replace(/\s*[\w-_]+--type-wrapper\s*/g," ").replace(/<div[\s]*>[\s]*<\/div>/g,"").replace(/\s*style=""/g,"")}},{key:"preventEvents",value:function e(){var t=this;var n={a:"click",form:"submit",input:"keydown"};Object.keys(n).map(function(e){babelHelpers.toConsumableArray(t.blockNode.querySelectorAll(e)).map(function(t){l.Event.bind(t,n[e],function(e){e.preventDefault()})})})}},{key:"initHistoryEvents",value:function e(){var t=this;var n=this.getDocumentBody();top.BX.addCustomEvent("Landing:onHistoryAddNode",function(e){var i=false;e.map(function(e){var t=e.insertAfterSelector||null;var r=e.parentNodeSelector||null;var a=l.Tag.render(b(),e.elementHtml);if(t){i=true;l.Dom.insertAfter(a,n.querySelector(t))}else if(r){i=true;l.Dom.prepend(a,n.querySelector(r))}});if(i){t.refreshManifest();setTimeout(function(){t.sendLabel("designerBlock","onHistoryAddNode")},0)}});top.BX.addCustomEvent("Landing:onHistoryRemoveNode",function(e){e.map(function(e){t.removeNode(n.querySelector(e.elementSelector))});t.refreshManifest();setTimeout(function(){t.sendLabel("designerBlock","onHistoryRemoveNode")},0)})}},{key:"initTopPanel",value:function e(){var n=this;l.Event.bind(this.saveButton,"click",function(){n.highlight.hide();var e=function e(){if(BX.SidePanel&&BX.SidePanel.Instance){BX.SidePanel.Instance.close()}};if(!n.changed){e();return}if(!n.designAllowed){top.BX.UI.InfoHelper.show("limit_crm_free_superblock1");return}n.saving=true;var i={};i["Block::updateContent"]={action:"Block::updateContent",data:{lid:n.landingId,block:n.blockId,content:n.clearHtml(n.originalNode.innerHTML).replaceAll(' style="',' bxstyle="'),designed:1}};if(n.autoPublicationEnabled){i["Landing::publication"]={action:"Landing::publication",data:{lid:n.landingId}}}t.Backend.getInstance().batch("Block::updateContent",i).then(function(){n.saving=false;e()});n.sendLabel("designerBlock","save"+"&designed="+(n.designed?"Y":"N")+"&code="+n.blockCode)})}},{key:"initNodes",value:function e(){var t=this;Object.keys(this.nodes).map(function(e){t.cardSelectors.map(function(n){babelHelpers.toConsumableArray(t.blockNode.querySelectorAll((n?n+" ":"")+e)).map(function(i){if(t.nodes[e]["useInDesigner"]===false){return}t.addNode({element:i,selector:e,cardSelector:n,type:t.nodes[e]["type"]})})})})}},{key:"initGrid",value:function e(){var t=this;Object.keys(this.nodes).map(function(e){t.cardSelectors.map(function(n){babelHelpers.toConsumableArray(t.blockNode.querySelectorAll((n?n+" ":"")+e)).map(function(i){if(t.nodes[e]["useInDesigner"]===false){return}var r=t.nodes[e]["type"]==="icon"?i.parentNode.parentNode:i.parentNode;if(l.Dom.attr(r,"data-landingWrapper")){return}var a=h.getPseudoLast();l.Dom.attr(r,"data-landingWrapper",true);l.Dom.append(a,r);t.addNode({cardSelector:n,element:a,className:e.substr(1)+"-last",selector:e+"-last"})})})})}},{key:"initSliders",value:function e(){var t=".js-carousel";babelHelpers.toConsumableArray(this.blockNode.querySelectorAll(t)).map(function(e){var t=(l.Text.toNumber(e.dataset.slidesShow)||1)*(l.Text.toNumber(e.dataset.rows)||1);var n=".".concat(babelHelpers.toConsumableArray(e.classList).join(".")," .js-slide:not(:nth-child(-n+").concat(t,"))");document.head.appendChild(l.Tag.render(f(),n))})}},{key:"initHoverArea",value:function e(){var t=this;if(this.hoverArea){return}this.hoverArea=h.getHoverDiv();var n=h.getAddNodeButton();var i=BX.Landing.UI.Button.CardAction;var r=BX.Landing.UI.Panel.BaseButtonPanel;var a=new r("nodeAction","landing-ui-panel-block-card-action");l.Event.bind(n,"click",function(){t.repoManager.showPanel();t.hideHoverArea()});a.addButton(new i("remove",{html:"&nbsp;",onClick:this.removeElement.bind(this)}));void a.show();l.Dom.append(n,this.hoverArea);l.Dom.append(a.layout,this.hoverArea);l.Dom.append(this.hoverArea,this.getDocumentBody());l.Event.bind(this.blockNode,"mouseover",function(){t.hideHoverArea()})}},{key:"adjustHoverArea",value:function e(){if(!this.hoverArea){return}this.showHoverArea();var t=this.activeNode.getElement().getBoundingClientRect();var n=this.hoverArea.querySelector(".landing-designer-block-node-hover-add");var i=this.hoverArea.querySelector('div[data-id="nodeAction"]');var r=BX.Landing.PageObject.getEditorWindow();if(i){if(this.activeNode.isPseudoElement()){l.Dom.hide(i)}else{l.Dom.show(i)}}if(n){l.Dom.style(n,{top:t.height-5+"px"})}l.Dom.style(this.hoverArea,{top:t.top+r.scrollY+"px",left:t.left+(t.width<30?30:0)+"px",width:t.width+"px",height:"35px"})}},{key:"showHoverArea",value:function e(){if(this.hoverArea){l.Dom.show(this.hoverArea)}}},{key:"hideHoverArea",value:function e(){var t=this;if(this.hoverArea){setTimeout(function(){l.Dom.hide(t.hoverArea)},0)}}},{key:"refreshManifest",value:function e(t){var n=this;if(t){Object.keys(t).map(function(e){n.nodes[e]=t[e]})}this.initNodes();this.initGrid()}},{key:"getDocumentBody",value:function e(){return document.body}},{key:"isInsideElement",value:function e(t){return t.parentElement.tagName==="A"}},{key:"sendLabel",value:function e(t,n){this.metrika.clearSendedLabel();this.metrika.sendLabel(null,t,n)}},{key:"addElement",value:function e(t){var n=this;var i=this.activeNode;var r=[];babelHelpers.toConsumableArray(document.body.querySelectorAll(i.getSelector())).map(function(e){var i=t.html;var a=l.Tag.render(p(),i);var o=n.isInsideElement(e)?e.parentNode:e;l.Dom.insertAfter(a,o);r.push({elementHtml:i,elementSelector:BX.Landing.Utils.getCSSSelector(a),insertAfterSelector:BX.Landing.Utils.getCSSSelector(o)})});this.sendLabel("designerBlock","addElement"+"&code="+this.blockCode+"&name="+t.code+"&preset="+(Object.keys(t.manifest.nodes).length===1?"N":"Y"));this.changed=true;this.refreshManifest(t.manifest.nodes);this.highlight.show(null);BX.Landing.History.getInstance().push(new BX.Landing.History.Entry({command:"addNode",block:null,undo:null,redo:{tags:r}}))}},{key:"removeElement",value:function e(){var t=this;var n=[];this.hideHoverArea();this.highlight.hide();setTimeout(function(){t.sendLabel("designerBlock","removeElement"+"&tagName="+t.activeNode.getElement().tagName+"&code="+t.blockCode);babelHelpers.toConsumableArray(document.body.querySelectorAll(t.activeNode.getSelector())).map(function(e){n.push({elementHtml:t.clearHtml(e.outerHTML),elementSelector:BX.Landing.Utils.getCSSSelector(e),insertAfterSelector:e.previousElementSibling?BX.Landing.Utils.getCSSSelector(e.previousElementSibling):null,parentNodeSelector:BX.Landing.Utils.getCSSSelector(e.parentNode)});t.removeNode(e)});t.changed=true;t.refreshManifest();BX.Landing.History.getInstance().push(new BX.Landing.History.Entry({selector:t.activeNode.getOriginalSelector(),command:"removeNode",block:null,undo:{tags:n},redo:null}))},0)}},{key:"typeWithWrapper",value:function e(t){return t==="icon"||t==="embed"}},{key:"addNode",value:function e(t){if(!this.nodeMap.get(t.element)){if(t.selector.match(/^\.[\w-_]+$/i)===null){return false}var n=this.typeWithWrapper(t.type);t.element=n?t.element.parentNode:t.element;if(n){t.selector=t.selector+"--type-wrapper";l.Dom.addClass(t.element,t.selector.substr(1))}t.onHover=this.onMouseOver.bind(this);this.nodeMap.set(t.element,new s(t));return true}return false}},{key:"removeNode",value:function e(t){if(t){l.Dom.remove(t);this.nodeMap.delete(t)}}},{key:"onMouseOver",value:function e(t){if(this.saving){return}this.activeNode=t;this.adjustHoverArea();if(!t.isPseudoElement()){this.highlight.show(t.getElement())}}}]);return e}();e.DesignerBlock=y})(this.BX.Landing=this.BX.Landing||{},BX.Landing,BX.Landing,BX.Landing,BX.Landing.UI,BX.Landing,BX.Landing.UI.Panel,BX);
//# sourceMappingURL=designerblock.bundle.map.js

Youez - 2016 - github.com/yon3zu
LinuXploit