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