text: BX.namespace("BX.Rest.Marketplace");BX.Rest.Marketplace.Detail=function(){var e=function(e){e=typeof e==="object"?e:{};this.ajaxPath=e.ajaxPath||null;this.siteId=e.siteId||null;this.appName=e.appName||"";this.appCode=e.appCode||"";if(BX.type.isDomNode(BX("detail_cont"))){var t=BX("detail_cont").getElementsByClassName("js-employee-install-button");if(BX.type.isDomNode(t[0])){BX.bind(t[0],"click",BX.proxy(function(){this.sendInstallRequest(BX.proxy_context)},this))}}};e.prototype.sendInstallRequest=function(e){BX.PopupWindowManager.create("mp-detail-block",e,{content:BX.message("MARKETPLACE_APP_INSTALL_REQUEST"),angle:{offset:35},offsetTop:8,autoHide:true}).show();BX.ajax({method:"POST",dataType:"json",url:this.ajaxPath,data:{sessid:BX.bitrix_sessid(),site_id:this.siteId,action:"sendInstallRequest",appName:this.appName,appCode:this.appCode},onsuccess:function(){},onfailure:function(){}})};return e}();
  //# sourceMappingURL=script.map.js