Your IP : 18.117.7.254


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/rest/app-form/dist/
Upload File :
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/rest/app-form/dist/app-form.bundle.min.js

this.BX=this.BX||{};(function(e,t,a){"use strict";var r=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,[{key:"fetch",value:function e(){return new Promise}}]);return e}();function s(e,t,a){l(e,t);t.set(e,a)}function l(e,t){if(t.has(e)){throw new TypeError("Cannot initialize the same private elements twice on an object")}}var i=new WeakMap;var n=new WeakMap;var o=function(e){babelHelpers.inherits(a,e);function a(e,t){var r;babelHelpers.classCallCheck(this,a);r=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(a).call(this));s(babelHelpers.assertThisInitialized(r),i,{writable:true,value:void 0});s(babelHelpers.assertThisInitialized(r),n,{writable:true,value:void 0});babelHelpers.classPrivateFieldSet(babelHelpers.assertThisInitialized(r),i,e);babelHelpers.classPrivateFieldSet(babelHelpers.assertThisInitialized(r),n,t);return r}babelHelpers.createClass(a,[{key:"fetch",value:function e(){return t.ajax.runAction("rest.controller.appform.getConfig",{data:{clientId:babelHelpers.classPrivateFieldGet(this,i),type:babelHelpers.classPrivateFieldGet(this,n)}})}}]);return a}(r);var p={INSTALL:"OnAppSettingsInstall",CHANGE:"OnAppSettingsChange",DISPLAY:"OnAppSettingsDisplay"};function c(e,t,a){u(e,t);t.set(e,a)}function u(e,t){if(t.has(e)){throw new TypeError("Cannot initialize the same private elements twice on an object")}}var b=new WeakMap;var h=new WeakMap;var d=new WeakMap;var v=function(){function e(t){babelHelpers.classCallCheck(this,e);c(this,b,{writable:true,value:"/marketplace/app/settings/"});c(this,h,{writable:true,value:575});c(this,d,{writable:true,value:void 0});babelHelpers.classPrivateFieldSet(this,d,t)}babelHelpers.createClass(e,[{key:"show",value:function e(){top.BX.SidePanel.Instance.open(babelHelpers.classPrivateFieldGet(this,b),{width:babelHelpers.classPrivateFieldGet(this,h),requestMethod:"post",requestParams:babelHelpers.classPrivateFieldGet(this,d),allowChangeHistory:false})}}],[{key:"sliderLoader",value:function e(){top.BX.SidePanel.Instance.open("rest:app-form.loader",{width:575,contentCallback:function e(t){var r=new a.Loader({target:t.getFrameWindow()});return r.show()},requestMethod:"post",allowChangeHistory:false})}},{key:"buildByApp",value:function t(a,r){var s=new o(a,r);return s.fetch().then((function(t){return new e(t.data)}))}},{key:"buildByAppWithLoader",value:function t(a,r){var s=new o(a,r);e.sliderLoader();return s.fetch().then((function(t){top.BX.SidePanel.Instance.close(true);top.BX.SidePanel.Instance.destroy("loader");return new e(t.data)}))}}]);return e}();e.AppForm=v;e.EventType=p})(this.BX.Rest=this.BX.Rest||{},BX,BX);
//# sourceMappingURL=app-form.bundle.map.js