"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[5060],{9410:function(n,t,e){var o=e(93433),r=e(72791),i=e(67571),u=e(16729);t.Z=function(){var n=(0,u.Z)((function(n){return n.boardsList})),t=(0,u.Z)((function(n){return n.fetchBoardList})),e=(0,u.Z)((function(n){return n.isLoading})),a=(0,u.Z)((function(n){return n.editBoard})),c=(0,u.Z)((function(n){return n.fetchBoard})),d=(0,u.Z)((function(n){return n.boards})),f=(0,u.Z)((function(n){return n.notifyData})),l=(0,i.k6)(),s=(0,i.TH)(),v=r.useMemo((function(){var t=n.sort(),e=t.filter((function(n){return n.includes("/")})),r=t.filter((function(n){return!n.includes("/")}));return[].concat((0,o.Z)(e),(0,o.Z)(r))}),[n]);return r.useEffect((function(){0===n.length&&t()}),[]),r.useEffect((function(){if(!e&&v.length>0&&"/app"===s.pathname){var n=v[0];l.replace("/app/".concat(n))}}),[n,s]),{data:v,updateBoard:a,boards:d,isLoading:e,fetchBoard:c,notifications:f}}},65813:function(n,t,e){e.r(t);var o=e(29439),r=e(72791),i=e(16551),u=e(20207),a=e(9410),c=e(80184);t.default=function(n){var t,e,d=(0,a.Z)(),f=d.boards,l=d.isLoading,s=d.fetchBoard,v=n.data,p=r.useState(null!==(t=null===f||void 0===f||null===(e=f[v])||void 0===e?void 0:e.code)&&void 0!==t?t:null),h=(0,o.Z)(p,2),Z=h[0],b=h[1];return r.useEffect((function(){var n;null===Z&&(null!==f&&void 0!==f&&f.hasOwnProperty(v)?b(null===f||void 0===f||null===(n=f[v])||void 0===n?void 0:n.code):s(v))}),[Z,f]),(0,c.jsx)("div",{className:"VizComponentContainer",style:{flex:1,padding:0,border:"none"},children:l||null===Z?(0,c.jsx)(i.$j,{}):(0,c.jsx)(u.Z,{data:{code:Z,path:v},editMode:!1,previewMode:!0})})}}}]);
//# sourceMappingURL=BoardEmbed.fac019b2.chunk.js.map