File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/catalog/install/js/catalog/store-use/dist/store-use.bundle.min.js
Back
this.BX=this.BX||{};this.BX.Catalog=this.BX.Catalog||{};(function(t,e,n,o,a){"use strict";var l=Object.freeze({popup:{disable:"BX:Sale:StoreMaster:EventType:popup:disable",disableCancel:"BX:Sale:StoreMaster:EventType:popup:disable:cancel",confirm:"BX:Sale:StoreMaster:EventType:popup:confirm",confirmCancel:"BX:Sale:StoreMaster:EventType:popup:confirm:cancel"}});function s(){var t=babelHelpers.taggedTemplateLiteral(["\n\t\t\t\t\t<div class='catalog-warehouse-master-clear-popup-content'>\n\t\t\t\t\t\t<h3>",'</h3>\n\t\t\t\t\t\t<div class="catalog-warehouse-master-clear-popup-text">',"\n\t\t\t\t\t</div>\n\t\t\t\t"]);s=function e(){return t};return t}var r=function(){function t(){babelHelpers.classCallCheck(this,t)}babelHelpers.createClass(t,[{key:"popup",value:function t(){var t=new a.Popup(null,null,{events:{onPopupClose:function e(){t.destroy()}},content:this.getContent(),maxWidth:500,overlay:true,buttons:[new n.Button({text:o.Loc.getMessage("CAT_WAREHOUSE_MASTER_CLEAR_CLOSE"),color:n.Button.Color.PRIMARY,onclick:function e(){t.close()}})]});t.show()}},{key:"getContent",value:function t(){return o.Tag.render(s(),o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_10"),o.Text.encode(o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_9")))}}]);return t}();function u(){var t=babelHelpers.taggedTemplateLiteral(["\n\t\t\t\t\t<div class='catalog-warehouse-master-clear-popup-content'>\n\t\t\t\t\t\t<h3>",'</h3>\n\t\t\t\t\t\t<div class="catalog-warehouse-master-clear-popup-text">',"<div>\n\t\t\t\t\t</div>\n\t\t\t\t"]);u=function e(){return t};return t}function c(){var t=babelHelpers.taggedTemplateLiteral(["\n\t\t\t\t\t<div class='catalog-warehouse-master-clear-popup-content'>\n\t\t\t\t\t\t<h3>",'</h3>\n\t\t\t\t\t\t<div class="catalog-warehouse-master-clear-popup-text">',"\n\t\t\t\t\t\t<br>","<div>\n\t\t\t\t\t</div>\n\t\t\t\t"]);c=function e(){return t};return t}var i=function(){function t(){babelHelpers.classCallCheck(this,t)}babelHelpers.createClass(t,[{key:"popup",value:function t(){var e=this;o.ajax.runAction("catalog.config.conductedDocumentsExist",{}).then((function(t){var n=t.data;if(n){e.conductedDocumentsPopup()}else{e.disablePopup()}}))}},{key:"disablePopup",value:function t(){var s=new a.Popup(null,null,{events:{onPopupClose:function t(){s.destroy()}},content:this.getDisablePopupContent(),maxWidth:500,overlay:true,buttons:[new n.Button({text:o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_6"),color:n.Button.Color.PRIMARY,onclick:function t(){s.close();e.EventEmitter.emit(l.popup.disable,{})}}),new BX.UI.Button({text:o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_1"),color:BX.UI.Button.Color.LINK,onclick:function t(){s.close();e.EventEmitter.emit(l.popup.disableCancel,{})}})]});s.show()}},{key:"getDisablePopupContent",value:function t(){return o.Tag.render(c(),o.Loc.getMessage("CAT_WAREHOUSE_MASTER_CLEAR_DISABLE_POPUP_TITLE"),o.Text.encode(o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_7")),o.Text.encode(o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_8")))}},{key:"conductedDocumentsPopup",value:function t(){var n=new BX.Main.Popup(null,null,{events:{onPopupClose:function t(){n.destroy()}},content:this.getConductedDocumentsPopupContent(),maxWidth:500,overlay:true,buttons:[new BX.UI.Button({text:o.Loc.getMessage("CAT_WAREHOUSE_MASTER_CLEAR_CLOSE"),color:BX.UI.Button.Color.PRIMARY,onclick:function t(){n.close();e.EventEmitter.emit(l.popup.disableCancel,{})}})]});n.show()}},{key:"getConductedDocumentsPopupContent",value:function t(){return o.Tag.render(u(),o.Loc.getMessage("CAT_WAREHOUSE_MASTER_CLEAR_DISABLE_POPUP_TITLE"),o.Loc.getMessage("CAT_WAREHOUSE_MASTER_CLEAR_CONDUCTED_DOCUMENTS_EXIST"))}}]);return t}();function p(){var t=babelHelpers.taggedTemplateLiteral(["\n\t\t\t\t\t<div class='catalog-warehouse-master-clear-popup-content'>\n\t\t\t\t\t\t<h3>",'</h3>\n\t\t\t\t\t\t<div class="catalog-warehouse-master-clear-popup-text">',"\n\t\t\t\t\t\t<br>","<div>\n\t\t\t\t\t</div>\n\t\t\t\t"]);p=function e(){return t};return t}var E=function(){function t(){babelHelpers.classCallCheck(this,t)}babelHelpers.createClass(t,[{key:"popup",value:function t(){var t=new a.Popup(null,null,{events:{onPopupClose:function e(){t.destroy()}},content:this.getContent(),maxWidth:500,overlay:true,buttons:[new n.Button({text:o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_2"),color:n.Button.Color.PRIMARY,onclick:function n(){t.close();e.EventEmitter.emit(l.popup.confirm,{})}}),new BX.UI.Button({text:o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_1"),color:BX.UI.Button.Color.LINK,onclick:function n(){t.close();e.EventEmitter.emit(l.popup.confirmCancel,{})}})]});t.show()}},{key:"getContent",value:function t(){return o.Tag.render(p(),o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_3"),o.Text.encode(o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_4")),o.Text.encode(o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_5")))}}]);return t}();function d(){var t=babelHelpers.taggedTemplateLiteral(['\n\t\t\t<div class="catalog-warehouse-master-clear-popup-content">\n\t\t\t\t<h3>\n\t\t\t\t\t','\n\t\t\t\t</h3>\t\n\t\t\t\t<div class="catalog-warehouse-master-clear-popup-text">\n\t\t\t\t\t',"\n\t\t\t\t\t","\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t"]);d=function e(){return t};return t}function g(){var t=babelHelpers.taggedTemplateLiteral(['\n\t\t\t<a href="#" class="ui-link ui-link-dashed documents-grid-link">\n\t\t\t\t',"\n\t\t\t</a>\n\t\t"]);g=function e(){return t};return t}var _=function(){function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};babelHelpers.classCallCheck(this,t);this.text=e.text||"";this.helpArticleId=e.helpArticleId||""}babelHelpers.createClass(t,[{key:"popup",value:function t(){var t=new a.Popup(null,null,{events:{onPopupClose:function e(){return t.destroy()}},content:this.getContent(),maxWidth:500,overlay:true,buttons:[new n.Button({text:o.Loc.getMessage("CAT_WAREHOUSE_MASTER_CLEAR_CLOSE"),color:n.Button.Color.PRIMARY,onclick:function e(){return t.close()}})]});t.show()}},{key:"showHelp",value:function t(e){if(top.BX.Helper){top.BX.Helper.show("redirect=detail&code="+this.helpArticleId);e.preventDefault()}}},{key:"getHelpLink",value:function t(){var e=o.Tag.render(g(),o.Text.encode(o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_DETAILS")));e.addEventListener("click",this.showHelp.bind(this));return e}},{key:"getContent",value:function t(){return o.Tag.render(d(),o.Loc.getMessage("CAT_WAREHOUSE_MASTER_STORE_USE_10"),o.Text.encode(this.text),this.helpArticleId?this.getHelpLink():"")}}]);return t}();var h=function(){function t(){babelHelpers.classCallCheck(this,t)}babelHelpers.createClass(t,[{key:"open",value:function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};n=o.Type.isPlainObject(n)?n:{};return new Promise((function(t){var a=n.hasOwnProperty("data")?n.data:{};var l=n.hasOwnProperty("events")?n.events:{};l.onClose=l.hasOwnProperty("onClose")?l.onClose:function(e){return t(e.getSlider())};e=BX.util.add_url_param(e,{analyticsLabel:"inventoryManagementEnabled_openSlider"});if(o.Type.isString(e)&&e.length>1){BX.SidePanel.Instance.open(e,{cacheable:false,allowChangeHistory:false,events:l,data:a,width:1130})}else{t()}}))}}]);return t}();var v=function(){function t(){babelHelpers.classCallCheck(this,t)}babelHelpers.createClass(t,[{key:"show",value:function t(e,n,o){var l=this;if(this.popup){this.popup.destroy();this.popup=null}if(!e&&!n){return}this.popup=new a.Popup(null,e,{events:{onPopupClose:function t(){l.popup.destroy();l.popup=null}},darkMode:true,content:n,offsetLeft:e.offsetWidth});if(o){setTimeout((function(){l.popup.destroy();l.popup=null}),o)}this.popup.show()}},{key:"hide",value:function t(){if(this.popup){this.popup.destroy()}}}]);return t}();t.EventType=l;t.DialogOneC=r;t.DialogDisable=i;t.DialogClearing=E;t.DialogError=_;t.Slider=h;t.Popup=v})(this.BX.Catalog.StoreUse=this.BX.Catalog.StoreUse||{},BX.Event,BX.UI,BX,BX.Main); //# sourceMappingURL=store-use.bundle.map.js
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings