(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3541],{23541:function(e,n,t){"use strict";t.r(n);var r=t(81862),i=t(89290),u=t(5163),s=t(52322),a=t(98317),l=t(2784),c=t(37723),o=t.n(c),g={},f={};n.default=function(){var e,n,t,c=new URLSearchParams(null===(e=window.location)||void 0===e?void 0:e.search).get("pluginName"),p=(0,a.getRestApiClient)(),d=(0,i._)((0,l.useState)(!1),2),_=d[0],h=d[1];return((0,l.useEffect)(function(){if(c){var e,n,t=(e=(0,r._)(function(){var e,n;return(0,u.__generator)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,null===(e=(0,a.getRestApiClient)())||void 0===e?void 0:e.getPluginList()];case 1:return(n=(t.sent()||[]).find(function(e){return e.name===c}))&&c&&(f[c]=n),[3,3];case 2:return console.error(t.sent()),[3,3];case 3:return[2]}})}),function(){return e.apply(this,arguments)}),i=(n=(0,r._)(function(){var e;return(0,u.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,null==p?void 0:p.getPluginSettings(c)];case 1:return(e=n.sent())&&(g[c]=e),[3,3];case 2:return console.error(n.sent()),[3,3];case 3:return[2]}})}),function(){return n.apply(this,arguments)});(0,r._)(function(){return(0,u.__generator)(this,function(e){switch(e.label){case 0:return[4,Promise.all([t(),i()])];case 1:return e.sent(),h(!0),[2]}})})()}},[]),_)?(0,s.jsx)("div",{className:o().PluginPage,children:c&&(0,s.jsx)(a.AdminPanelWidgetPlace,{widgetName:"PluginSettings",pluginName:c,widgetProps:{pluginName:c,pluginSettings:null!==(n=g[c])&&void 0!==n?n:{},pluginInfo:null!==(t=f[c])&&void 0!==t?t:{}}})}):(0,s.jsx)(a.LoadBox,{})}},37723:function(e){e.exports={PluginPage:"PluginPage_PluginPage__QRXgB"}}}]);