forked from bombastictranz/DuneQueryRepo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archived-25631cc2b3a635d5.js.download
2 lines (2 loc) · 2.93 KB
/
archived-25631cc2b3a635d5.js.download
1
2
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6216],{9015:function(e,r,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/workspace/u/[handle]/library/folders/archived",function(){return i(49047)}])},42720:function(e,r,i){"use strict";i.d(r,{g:function(){return L}});var n=i(85893),t=i(31821),s=i(37242),l=i(32546),c=i(77251),h=i(41499),a=i(90869),d=i(55114),o=i(32279),u=i(61857),x=i(1801),j=i(89912),f=i(72982),v=i(36986),p=i(11969),w=i(18035);function b(){let{activeContext:e}=(0,v.a)(),r=(0,w.Y)(e);return(0,n.jsxs)(l.Oo,{children:[(0,n.jsx)(l.zJ,{onClick:p.BR,children:(0,n.jsx)(u.i,{color:"inherit",size:"M",inline:!1,owner:e})})," / ",(0,n.jsx)(l.At,{href:r,children:"Library"})," / ",(0,n.jsx)(l.At,{href:r+"/folders",children:"Folders"})," / ",(0,n.jsxs)(l.aG,{children:[(0,n.jsx)(x.C,{size:"L",variant:"filled",color:(0,j.SX)("red"),iconOnly:!0,children:(0,n.jsx)(f.IconArchive,{})}),(0,n.jsx)("h1",{children:"Archived"})]})]})}var A=i(91161),_=i(54173),g=i(7395),y=i(25675),m=i.n(y),N=i(42661);function S(e){let{hasFiltersApplied:r}=e,{activeContext:i}=(0,v.a)();return(0,n.jsx)(g.u,{title:r?"There are no archived content matching selected filters":"No archived content yet!",description:!r&&"Archived queries and dashboards will show up here.",illustration:(0,n.jsx)(m(),{alt:"",src:N.Z,width:190,height:200}),actions:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.A,{size:"M",theme:"primary",href:"/queries",children:"New query"}),r&&(0,n.jsx)(_.A,{size:"M",theme:"tertiary",href:(0,w.Y)(i),children:"Show all"})]})})}var E=i(81523),k=i(41042),C=i(69339),F=i(87257);function L(){let e=a.e(),r=d.e(),i=o.e(),u=(0,E.oV)({filter:{freetext:e.debouncedValue,publicness:r.value,type:"all",isArchived:!0},order:i.value,pagination:{first:20}}),x=(0,C.L)();switch((0,k.e)(x.value,{getUrl:e=>(0,w.Y)(e)+"/folders/archived"}),x.status){case"LOADING":return(0,n.jsx)(s.h,{});case"INVALID":return(0,n.jsx)(F.C,{urlContext:x.invalidValue})}let j=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.E,{activePage:"Home"}),(0,n.jsx)(c.$0,{title:"Show",children:(0,n.jsx)(d.h,{publicnessFilterState:r})}),(0,n.jsx)(o.h,{orderState:i}),(0,n.jsx)(a.p,{searchStringState:e,placeholder:"Search archived"})]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.yG,{title:"Archived"}),(0,n.jsxs)(l.T3,{children:[(0,n.jsx)(l.h4,{renderLibraryMobileMenu:()=>j}),(0,n.jsxs)(l.or,{children:[(0,n.jsx)(c.im,{children:j}),(0,n.jsxs)(l.JH,{children:[(0,n.jsx)(l.bU,{children:(0,n.jsx)(b,{})}),(0,n.jsx)(l.Kb,{children:(0,n.jsx)(A.H,{content:u,fetchMore:E.XO,renderEmpty:()=>(0,n.jsx)(S,{hasFiltersApplied:!(""===e.debouncedValue&&"all"===r.value)})})})]})]})]})]})}},49047:function(e,r,i){"use strict";i.r(r);var n=i(42720),t=i(36986);r.default=(0,t.c)(n.g)}},function(e){var r=function(r){return e(e.s=r)};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 r(73611),r(9015)}),_N_E=e.O()}]);
//# sourceMappingURL=archived-25631cc2b3a635d5.js.map