"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[5060],{9410:function(n,t,e){var o=e(93433),u=e(72791),i=e(67571),r=e(43403),a=e(16729),c=e(49379);t.Z=function(){var n=(0,a.Z)((function(n){return n.boardsList})),t=(0,a.Z)((function(n){return n.fetchBoardList})),e=(0,a.Z)((function(n){return n.isLoading})),d=(0,a.Z)((function(n){return n.editBoard})),f=(0,a.Z)((function(n){return n.fetchBoard})),l=(0,a.Z)((function(n){return n.boards})),s=(0,a.Z)((function(n){return n.notifyData})),p=(0,i.k6)(),v=(0,i.TH)(),h=u.useMemo((function(){var t=n.sort(),e=t.filter((function(n){return n.includes("/")})),u=t.filter((function(n){return!n.includes("/")}));return[].concat((0,o.Z)(e),(0,o.Z)(u))}),[n]);return u.useEffect((function(){c.t(r.q.app.pageView),0===n.length&&t()}),[]),u.useEffect((function(){if(!e&&h.length>0&&"/app"===v.pathname){var n=h[0];p.replace("/app/".concat(n))}}),[n,v]),{data:h,updateBoard:d,boards:l,isLoading:e,fetchBoard:f,notifications:s}}},65813:function(n,t,e){e.r(t);var o=e(29439),u=e(72791),i=e(16551),r=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,p=n.data,v=u.useState(null!==(t=null===f||void 0===f||null===(e=f[p])||void 0===e?void 0:e.code)&&void 0!==t?t:null),h=(0,o.Z)(v,2),Z=h[0],b=h[1];return u.useEffect((function(){var n;null===Z&&(null!==f&&void 0!==f&&f.hasOwnProperty(p)?b(null===f||void 0===f||null===(n=f[p])||void 0===n?void 0:n.code):s(p))}),[Z,f]),u.useEffect((function(){n.callbacks.on_mount()}),[]),(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)(r.Z,{data:{code:Z,path:p},editMode:!1,previewMode:!0})})}}}]);
//# sourceMappingURL=BoardEmbed.54a98a36.chunk.js.map