forked from bombastictranz/DuneQueryRepo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboards-1e071396ef4ed5bc.js.download
2 lines (2 loc) · 2.86 KB
/
dashboards-1e071396ef4ed5bc.js.download
1
2
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2406],{56393:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/workspace/u/[handle]/library/dashboards",function(){return r(86416)}])},46099:function(e,s,r){"use strict";r.d(s,{s:function(){return D}});var t=r(85893),a=r(31821),n=r(37242),i=r(32546),l=r(77251),c=r(41499),d=r(90869),h=r(55114),A=r(32279),o=r(54173),u=r(18035),b=r(36986),x=r(67294),j=r(17946),p=r(61451),f=r(7395),g=r(48884),w=r.n(g),m=r(25675),E=r.n(m),_={src:"/_next/static/media/Library_Empty_Dashboards.cb37bfd0.png",height:732,width:1037,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAADFBMVEXvUTrzXz3zYT7vXz5anBDIAAAABHRSTlMBPCocXTSNbAAAAAlwSFlzAAAhOAAAITgBRZYxYAAAAB1JREFUeJxjYEAAZkYmCMXIyMjEDGEwwcTAFAwAAAP/ACTTE5ktAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6};function y(e){let{hasFiltersApplied:s}=e,{activeContext:r}=(0,b.a)(),[a,n]=(0,x.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f.u,{title:s?"There are no dashboards matching selected filters":"No dashboards yet!",description:!s&&"Dashboards you create will show up here.",illustration:(0,t.jsx)(E(),{alt:"",src:_,className:w().emptyStateImage}),actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.z,{size:"M",theme:"secondary",onClick:()=>n(!0),children:"New dashboard"}),s&&(0,t.jsx)(o.A,{size:"M",theme:"secondary-light",href:(0,u.Y)(r)+"/dashboards",children:"Show all"})]})}),(0,t.jsx)(j.C,{isOpen:a,close:()=>n(!1),redirect:!0})]})}var S=r(81523),v=r(41042),T=r(69339),C=r(87257),N=r(91161);function D(){let e=d.e(),s=h.e(),r=A.e(),o=(0,S.oV)({filter:{freetext:e.debouncedValue,publicness:s.value,type:"dashboards",isArchived:!1},order:r.value,pagination:{first:20}}),b=(0,T.L)();switch((0,v.e)(b.value,{getUrl:e=>(0,u.Y)(e)+"/dashboards"}),b.status){case"LOADING":return(0,t.jsx)(n.h,{});case"INVALID":return(0,t.jsx)(C.C,{urlContext:b.invalidValue})}let x=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.E,{activePage:"Dashboards"}),(0,t.jsx)(l.$0,{title:"Show",children:(0,t.jsx)(h.h,{publicnessFilterState:s})}),(0,t.jsx)(A.h,{orderState:r}),(0,t.jsx)(d.p,{searchStringState:e,placeholder:"Search dashboards"})]});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.yG,{title:"Dashboards"}),(0,t.jsxs)(i.T3,{children:[(0,t.jsx)(i.h4,{renderLibraryMobileMenu:()=>x}),(0,t.jsxs)(i.or,{children:[(0,t.jsx)(l.im,{children:x}),(0,t.jsx)(i.JH,{children:(0,t.jsx)(i.Kb,{children:(0,t.jsx)(N.H,{content:o,fetchMore:S.XO,renderEmpty:()=>(0,t.jsx)(y,{hasFiltersApplied:!(""===e.debouncedValue&&"all"===s.value)})})})})]})]})]})}},86416:function(e,s,r){"use strict";r.r(s);var t=r(36986),a=r(46099);s.default=(0,t.c)(a.s)}},function(e){var s=function(s){return e(e.s=s)};e.O(0,[9225,3318,8110,3295,777,6746,5675,1444,9002,9938,9694,4974,819,1532,4465,8785,1161,9774,2888,179],function(){return s(73611),s(56393)}),_N_E=e.O()}]);
//# sourceMappingURL=dashboards-1e071396ef4ed5bc.js.map