text: (function(){"use strict";BX.namespace("BX.RestIntegrationList");BX.RestIntegrationList.Start={open:function(){if(!!this.url){BX.SidePanel.Instance.open(this.url,{cacheable:false})}else{if(this.integrationCode){if(!!this.loadProcess){BX.UI.Notification.Center.notify({content:BX.message("REST_INTEGRATION_LIST_OPEN_PROCESS")});return false}else{this.loadProcess=true}BX.ajax.runComponentAction("bitrix:rest.integration.edit","getNewIntegrationUrl",{mode:"class",data:{code:this.integrationCode}}).then(function(t){if(!!t.data&&!!t.data.url){BX.SidePanel.Instance.open(t.data.url,{cacheable:false,requestMethod:"post",requestParams:{NEW_OPEN:"Y"},events:{onLoad:function(t){this.loadProcess=false}.bind(this)}})}else{var e=BX.message("REST_INTEGRATION_LIST_ERROR_OPEN_URL");if(!!t.data.error&&t.data.error.length>0){e=t.data.error}BX.UI.Notification.Center.notify({content:e});this.loadProcess=false}}.bind(this)).catch(function(t){BX.UI.Notification.Center.notify({content:BX.message("REST_INTEGRATION_LIST_ERROR_OPEN_URL")});this.loadProcess=false}.bind(this))}}}};BX.RestIntegrationList.Start.TileGridItem=function(t){BX.TileGrid.Item.apply(this,arguments);this.title=t.title;this.description=t.description;this.image=t.image;this.iconClass=t.iconClass;this.iconColor=t.iconColor;this.iconIBgColor=t.iconIBgColor;this.iconIClass=t.iconIClass;this.className=t.className;this.selected=t.selected;this.url=!!t.url?t.url:false;this.integrationCode=!!t.integrationCode?t.integrationCode:false;this.loadProcess=false;this.events={click:BX.RestIntegrationList.Start.open.bind(this)}};BX.RestIntegrationList.Start.TileGridItem.prototype={__proto__:BX.TileGrid.Item.prototype,constructor:BX.TileGrid.Item,getContent:function(){return BX.create("div",{props:{className:"rest-integration-tile-item"+" "+(this.className?this.className:"")+" "+(this.selected?this.selected:"")},children:[BX.create("div",{props:{className:"rest-integration-tile-head"},children:[BX.create("div",{props:{className:"rest-integration-tile-img "+(this.iconClass?this.iconClass:"")},style:{backgroundImage:this.image?'url("'+this.image+'")':null,color:this.iconColor?this.iconColor:null},children:[BX.create("i",{style:{"background-color":this.iconIBgColor?this.iconIBgColor:null},props:{className:this.iconIClass?this.iconIClass:""}})]}),BX.create("div",{props:{className:"rest-integration-tile-title"},text:this.title?this.title:""})]}),BX.create("div",{props:{className:"rest-integration-tile-description"},text:this.description?this.description:""})],events:this.events})}}})();
  //# sourceMappingURL=script.map.js