forked from bombastictranz/DuneQueryRepo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
queries-4750cbb296cced8b.js.download
2 lines (2 loc) · 2.69 KB
/
queries-4750cbb296cced8b.js.download
1
2
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3455],{42778:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/workspace/u/[handle]/library/queries",function(){return t(33109)}])},84055:function(e,r,t){"use strict";t.d(r,{H:function(){return v}});var i=t(85893),s=t(31821),n=t(37242),a=t(32546),u=t(77251),l=t(41499),c=t(90869),A=t(55114),h=t(32279),d=t(91161),o=t(54173),x=t(18035),j=t(36986),p=t(7395),f=t(48884),g=t.n(f),b=t(25675),w=t.n(b),m={src:"/_next/static/media/Library_Empty_Queries.9ee7bdd8.png",height:732,width:1037,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAD1BMVEVMaXHwYT70YUD0Xz/yXj3jTMJGAAAABXRSTlMACxcpRtf6TwsAAAAJcEhZcwAAITgAACE4AUWWMWAAAAAlSURBVHicJYpBDgAACIJE+/+bW8bFDZEkVLB96xhCRWb6knz0LAUOAC50OaG9AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6};function y(e){let{hasFiltersApplied:r}=e,{activeContext:t}=(0,j.a)();return(0,i.jsx)(p.u,{title:r?"There are no queries matching selected filters":"No queries yet!",description:!r&&"Queries you create will show up here.",illustration:(0,i.jsx)(w(),{alt:"",src:m,className:g().emptyStateImage}),actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{size:"M",theme:"secondary",href:"/queries",children:"New query"}),r&&(0,i.jsx)(o.A,{size:"M",theme:"secondary-light",href:(0,x.Y)(t)+"/queries",children:"Show all"})]})})}var E=t(81523),_=t(41042),C=t(69339),S=t(87257);function v(){let e=c.e(),r=A.e(),t=h.e(),o=(0,E.oV)({filter:{freetext:e.debouncedValue,publicness:r.value,type:"queries",isArchived:!1},order:t.value,pagination:{first:20}}),j=(0,C.L)();switch((0,_.e)(j.value,{getUrl:e=>(0,x.Y)(e)+"/queries"}),j.status){case"LOADING":return(0,i.jsx)(n.h,{});case"INVALID":return(0,i.jsx)(S.C,{urlContext:j.invalidValue})}let p=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.E,{activePage:"Queries"}),(0,i.jsx)(u.$0,{title:"Show",children:(0,i.jsx)(A.h,{publicnessFilterState:r})}),(0,i.jsx)(h.h,{orderState:t}),(0,i.jsx)(c.p,{searchStringState:e,placeholder:"Search queries"})]});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.yG,{title:"Queries"}),(0,i.jsxs)(a.T3,{children:[(0,i.jsx)(a.h4,{renderLibraryMobileMenu:()=>p}),(0,i.jsxs)(a.or,{children:[(0,i.jsx)(u.im,{children:p}),(0,i.jsx)(a.JH,{children:(0,i.jsx)(a.Kb,{children:(0,i.jsx)(d.H,{content:o,fetchMore:E.XO,renderEmpty:()=>(0,i.jsx)(y,{hasFiltersApplied:!(""===e.debouncedValue&&"all"===r.value)})})})})]})]})]})}},33109:function(e,r,t){"use strict";t.r(r);var i=t(36986),s=t(84055);r.default=(0,i.c)(s.H)}},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(42778)}),_N_E=e.O()}]);
//# sourceMappingURL=queries-4750cbb296cced8b.js.map