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/landing/pageobject/dist/ |
Upload File : |
this.BX=this.BX||{};(function(e,n){"use strict";var t=function(){function e(){babelHelpers.classCallCheck(this,e);babelHelpers.defineProperty(this,"store",{})}babelHelpers.createClass(e,[{key:"top",value:function n(){var t=this;return new Promise((function(n,o){if(!t.store.topPanel){t.store.topPanel=e.getTopPanel()}if(t.store.topPanel){n(t.store.topPanel);return}o(new Error("Top panel unavailable"));console.warn("Top panel unavailable")}))}},{key:"design",value:function e(){return Promise.resolve(BX.Landing.UI.Panel.StylePanel.getInstance())}},{key:"content",value:function e(){return Promise.resolve(BX.Landing.UI.Panel.ContentEdit.getInstance())}},{key:"inlineEditor",value:function e(){return Promise.resolve(BX.Landing.UI.Panel.EditorPanel.getInstance())}},{key:"view",value:function n(){var t=this;return new Promise((function(n,o){if(!t.store.view){var r=e.getRootWindow();t.store.view=r.document.querySelector(".landing-ui-view")}if(t.store.view){n(t.store.view);return}o(new Error("View iframe unavailable"));console.warn("View iframe unavailable")}))}},{key:"blocks",value:function n(){return Promise.resolve(e.getRootWindow().BX.Landing.Block.storage)}}],[{key:"getInstance",value:function t(){if(n.Type.isNil(e.instance)){e.instance=new e}return e.instance}},{key:"getRootWindow",value:function e(){return this.cache.remember("rootWindow",(function(){var e=window.top.frames;for(var n=e.length-1;n>=0;n--){try{if(e[n].document.body&&e[n].document.body.querySelector(".landing-ui-view")){return e[n]}}catch(e){}}return window.top}))}},{key:"getEditorWindow",value:function e(){var n=this;return this.cache.remember("editorWindow",(function(){var e=n.getRootWindow();var t=e.document;var o=t.querySelector(".landing-ui-view");if(o&&o.contentWindow){return o.contentWindow}return null}))}},{key:"getTopPanel",value:function e(){var n=this;return this.cache.remember("topPanel",(function(){return n.getRootWindow().document.querySelector(".landing-ui-panel-top")}))}},{key:"getEditPanelContent",value:function e(){var n=this;return this.cache.remember("editPanel",(function(){return n.getRootWindow().document.querySelector(".landing-ui-panel-content.landing-ui-panel-content-edit .landing-ui-panel-content-body-content")}))}},{key:"getStylePanelContent",value:function e(){var n=this;return this.cache.remember("stylePanel",(function(){return n.getRootWindow().document.querySelector(".landing-ui-panel-content.landing-ui-panel-style .landing-ui-panel-content-body-content")}))}},{key:"getBlocks",value:function e(){return this.getRootWindow().BX.Landing.Block.storage}}]);return e}();babelHelpers.defineProperty(t,"cache",new n.Cache.MemoryCache);babelHelpers.defineProperty(t,"instance",null);e.PageObject=t})(this.BX.Landing=this.BX.Landing||{},BX); //# sourceMappingURL=pageobject.bundle.map.js