Your IP : 18.191.212.181


Current Path : /home/bitrix/ext_www/easy-comfort.com.ua/bitrix/js/landing/
Upload File :
Current File : /home/bitrix/ext_www/easy-comfort.com.ua/bitrix/js/landing/page_object.min.js

(function(){"use strict";BX.namespace("BX.Landing");BX.Landing.PageObject=function(){this.store={};this.store.topPanel=null;this.store.designPanel=null;this.store.contentPanel=null;this.store.inlineEditor=null;this.store.contentPanelEditorPanel=null;this.store.linkEditorPanel=null;this.store.linkEditor=null;this.store.view=null};BX.Landing.PageObject.getInstance=function(){if(!window.top.BX.Landing.PageObject.instance&&!BX.Landing.PageObject.instance){window.top.BX.Landing.PageObject.instance=new BX.Landing.PageObject}return window.top.BX.Landing.PageObject.instance||BX.Landing.PageObject.instance};BX.Landing.PageObject.instance=null;BX.Landing.PageObject.prototype={top:function(){return new Promise(function(n,e){if(!this.store.topPanel){this.store.topPanel=window.top.document.querySelector(".landing-ui-panel-top")}if(this.store.topPanel){n(this.store.topPanel)}else{e("Top panel unavailable");console.warn("Top panel unavailable")}}.bind(this))},design:function(){return new Promise(function(n,e){if(!this.store.designPanel){this.store.designPanel=BX.Landing.UI.Panel.StylePanel.getInstance()}if(this.store.designPanel){n(this.store.designPanel)}else{e("BX.Landing.UI.Panel.StylePanel unavailable");console.warn("BX.Landing.UI.Panel.StylePanel unavailable")}}.bind(this))},content:function(){return new Promise(function(n,e){if(!this.store.contentPanel){this.store.contentPanel=BX.Landing.UI.Panel.ContentEdit.getInstance()}if(this.store.contentPanel){n(this.store.contentPanel)}else{e("BX.Landing.UI.Panel.ContentEdit unavailable");console.warn("BX.Landing.UI.Panel.ContentEdit unavailable")}}.bind(this))},inlineEditor:function(){return new Promise(function(n,e){if(!this.store.inlineEditor){this.store.inlineEditor=BX.Landing.UI.Panel.EditorPanel.getInstance()}if(this.store.inlineEditor){n(this.store.inlineEditor)}else{e("BX.Landing.UI.Panel.EditorPanel unavailable");console.warn("BX.Landing.UI.Panel.EditorPanel unavailable")}}.bind(this))},view:function(){return new Promise(function(n,e){if(!this.store.view){this.store.view=window.top.document.querySelector(".landing-ui-view")}if(this.store.view){n(this.store.view)}else{e("View iframe unavailable");console.warn("View iframe unavailable")}}.bind(this))},blocks:function(){return new Promise(function(n){if(!this.store.blocks){this.store.blocks=top.BX.Landing.Block.storage}if(this.store.blocks){n(this.store.blocks)}else{reject("Blocks unavailable")}}.bind(this))}}})();