forked from duneanalytics/DuneQueryRepo
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
1532-b7a2ab553c759981.js.download
2 lines (2 loc) · 13.2 KB
/
1532-b7a2ab553c759981.js.download
1
2
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1532],{42661:function(e,t){"use strict";t.Z={src:"/_next/static/media/default_state.a9ec34fd.png",height:596,width:570,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAD1BMVEWNjbyNi7mPjLePi7eOi7e76tnLAAAABXRSTlMDEiY8WFVYeR4AAAAJcEhZcwAAITgAACE4AUWWMWAAAAAtSURBVHicJYuxDQAwDIMw9v83V1EXFgBCAhCwBqKtSmK7H9hj1s5dum3edwoeDPUAZT8OWU4AAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},41042:function(e,t,r){"use strict";r.d(t,{e:function(){return a}});var n=r(67294),i=r(11163),o=r(85361),s=r(18446),c=r.n(s);function a(e,t){let{getUrl:r}=t,s=(0,o._0)(),a=(0,i.useRouter)(),u=(0,n.useRef)({activeContext:void 0,tabsContext:void 0,event:void 0}),l=function(e){let t=(0,n.useRef)(e);return t.current=e,t}(r);(0,n.useEffect)(()=>{let t=u.current,r=l.current;(function(e,t,r,n,i){if(!e||!t||e.type===t.type&&e.handle===t.handle)return;let s=r.activeContext?r.tabsContext?c()(r.tabsContext,t)?r.activeContext.handle!==e.handle?"ACTIVE_CONTEXT_SWITCHED":void 0:"TABS_CONTEXT_CHANGED":"NAVIGATED_TO_PAGE_IN_APP":"APP_LOADED_INTO_PAGE";if(s!==r.event)switch(r.event=s,s){case"APP_LOADED_INTO_PAGE":case"NAVIGATED_TO_PAGE_IN_APP":case"TABS_CONTEXT_CHANGED":(0,o._7)(t);return;case"ACTIVE_CONTEXT_SWITCHED":(function(e,t,r){let{activeContext:n}=e;t.push(r(n))})({activeContext:e},n,i);return}})(s,e,t,a,r),t.activeContext=s,t.tabsContext=e},[s,e,a.push])}},58789:function(e,t,r){"use strict";r.d(t,{a:function(){return c},u:function(){return s}});var n=r(85893),i=r(67294);let o=(0,i.createContext)(void 0);function s(e){return(0,n.jsx)(o.Provider,{value:e.value,children:e.children})}function c(){let e=(0,i.useContext)(o);if(void 0===e)throw Error("Attempted to use LoggedInContext outside it's provider!");return e}},5228:function(e,t,r){"use strict";r.d(t,{c:function(){return h}});var n=r(85893),i=r(37242),o=r(11163),s=r(67294),c=r(57831),a=r(85361),u=r(58789),l=r(10475),d=r(71909);function h(e){return function(t){let r=(0,o.useRouter)(),h=(0,d.J)(),{session:f,sessionLoading:x}=(0,s.useContext)(c.B3),_=(0,a._0)(),p=(0,s.useMemo)(()=>(null==f?void 0:f.user)?{...f,user:f.user}:void 0,[f]);return x||(0,l.s$)()||!r.isReady?(0,n.jsx)(i.h,{}):p?_?(0,n.jsx)(u.u,{value:{activeContext:_,session:p},children:(0,n.jsx)(e,{...t})}):(0,n.jsx)(i.h,{}):(r.replace(h),(0,n.jsx)(i.h,{}))}}},36986:function(e,t,r){"use strict";r.d(t,{a:function(){return n.a},c:function(){return i.c}});var n=r(58789),i=r(5228)},77251:function(e,t,r){"use strict";r.d(t,{V1:function(){return m},zt:function(){return C},FB:function(){return j},$0:function(){return p},xv:function(){return v},im:function(){return A}});var n=r(85893),i=r(88894),o=r.n(i),s=r(92265),c=r(94184),a=r.n(c),u=r(67294);r(97884);var l=r(15242),d=r.n(l),h=r(35314),f=r.n(h);let x=(0,u.forwardRef)((e,t)=>{let{active:r=!1,hovered:i=!1,className:o,...s}=e;return(0,n.jsx)("button",{ref:t,...s,className:a()(o,d().chip,f().chip,i&&"hovered",r&&"active")})});function _(e){return(0,n.jsx)("ul",{className:o().panel,children:e.children})}function p(e){return(0,n.jsxs)("li",{className:o().section,children:[(0,n.jsx)("div",{className:o().sectionTitle,children:e.title}),(0,n.jsx)("ul",{children:e.children})]})}function j(e){return(0,n.jsx)("li",{children:(0,n.jsx)(s.M,{...e})})}function C(e){return(0,n.jsx)("li",{children:(0,n.jsx)(x,{...e})})}let m=x,v="span";var b=r(11699);function A(e){return(0,n.jsx)(b.i,{as:"nav",children:(0,n.jsx)(_,{children:e.children})})}},7395:function(e,t,r){"use strict";r.d(t,{u:function(){return u}});var n=r(85893),i=r(48884),o=r.n(i),s=r(25675),c=r.n(s),a=r(42661);function u(e){let{illustration:t=(0,n.jsx)(c(),{alt:"",src:a.Z,width:190,height:195}),title:r="Nothing to see here",description:i="Try another selection.",actions:s}=e;return(0,n.jsxs)("div",{className:o().state,children:[t,(0,n.jsxs)("div",{className:o().text,children:[(0,n.jsx)("h2",{children:r}),(0,n.jsx)("div",{className:o().description,children:i})]}),(0,n.jsx)("div",{className:o().actions,children:s})]})}},41499:function(e,t,r){"use strict";r.d(t,{E:function(){return j}});var n=r(85893),i=r(77251),o=r(36986),s=r(18035),c=r(61018),a=r(5505),u=r(99091),l=r(15840),d=r(1463),h=r(82209),f=r(95257),x=r(91745),_=r(26550),p=r(24426);function j(e){let{activePage:t}=e,{activeContext:r}=(0,o.a)(),j=(0,s.Y)(r),C=(0,p.N)("custom-endpoints");return(0,n.jsxs)(i.$0,{title:"Categories",children:[(0,n.jsxs)(i.FB,{color:"gray",href:j,active:"Home"===t,children:[(0,n.jsx)(d.IconHouse,{}),"Home"]}),(0,n.jsxs)(i.FB,{color:"gray",href:"".concat(j,"/dashboards"),active:"Dashboards"===t,children:[(0,n.jsx)(_.IconTiles,{}),"Dashboards"]}),(0,n.jsxs)(i.FB,{color:"gray",href:"".concat(j,"/queries"),active:"Queries"===t,children:[(0,n.jsx)(x.IconTerminalWindow,{}),"Queries"]}),(0,n.jsxs)(i.FB,{color:"gray",href:"".concat(j,"/materialized-views"),active:"Materialized views"===t,children:[(0,n.jsx)(f.IconTableMaterialized,{}),"Materialized views"]}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.FB,{color:"gray",href:"".concat(j,"/schedules"),active:"Schedules"===t,children:[(0,n.jsx)(a.IconClockHistory,{}),"Schedules"]}),(0,n.jsxs)(i.FB,{color:"gray",href:"".concat(j,"/alerts"),active:"Alerts"===t,children:[(0,n.jsx)(c.IconBellRing,{}),"Alerts"]})]}),(0,n.jsxs)(i.FB,{color:"gray",href:"".concat(j,"/data"),active:"Data"===t,children:[(0,n.jsx)(u.IconDatabase,{}),"Data"]}),"user"===r.type&&(0,n.jsxs)(i.FB,{color:"gray",href:"".concat(j,"/contracts"),active:"Contracts"===t,children:[(0,n.jsx)(l.IconFiles,{}),"Contracts"]}),C&&(0,n.jsxs)(i.FB,{color:"gray",href:"".concat(j,"/endpoints"),active:"Custom endpoints"===t,children:[(0,n.jsx)(h.IconPlug,{}),"Custom endpoints"]})]})}},32546:function(e,t,r){"use strict";r.d(t,{At:function(){return j},JH:function(){return f},Kb:function(){return m},Oo:function(){return _},T3:function(){return d},aG:function(){return C},bU:function(){return x},h4:function(){return l},or:function(){return h},zJ:function(){return p}});var n=r(85893),i=r(67410),o=r.n(i),s=r(41664),c=r.n(s),a=r(80403),u=r(11699);function l(e){return(0,n.jsx)(a.h,{...e})}function d(e){return(0,n.jsx)("div",{className:o().page,children:e.children})}function h(e){return(0,n.jsxs)("div",{className:o().mainWrapper,children:[(0,n.jsx)("main",{children:e.children}),(0,n.jsx)(u.R,{})]})}function f(e){return(0,n.jsx)("div",{className:o().pageContent,children:e.children})}function x(e){return(0,n.jsx)("div",{className:o().subHeader,children:e.children})}function _(e){return(0,n.jsx)("nav",{className:o().breadcrumbs,children:(0,n.jsx)("ul",{children:e.children})})}function p(e){return(0,n.jsx)("li",{children:(0,n.jsx)("button",{...e,className:o().breadcrumb})})}function j(e){return(0,n.jsx)("li",{children:(0,n.jsx)(c(),{...e,className:o().breadcrumb})})}function C(e){return(0,n.jsx)("li",{children:(0,n.jsx)("span",{className:o().breadcrumb,children:e.children})})}function m(e){return(0,n.jsx)("div",{className:o().innerContent,children:e.children})}},87257:function(e,t,r){"use strict";r.d(t,{C:function(){return f}});var n=r(85893),i=r(31821),o=r(32546),s=r(77251),c=r(41499),a=r(7395),u=r(54173),l=r(36986),d=r(18035),h=r(45466);function f(e){let t=(0,n.jsx)(c.E,{activePage:"Home"});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.yG,{title:"Not your library"}),(0,n.jsxs)(o.T3,{children:[(0,n.jsx)(o.h4,{renderLibraryMobileMenu:()=>t}),(0,n.jsxs)(o.or,{children:[(0,n.jsx)(s.im,{children:t}),(0,n.jsx)(o.JH,{children:(0,n.jsx)(o.Kb,{children:(0,n.jsx)(x,{urlContext:e.urlContext})})})]})]})]})}function x(e){let{activeContext:t,session:r}=(0,l.a)(),{urlContext:i}=e,o=(0,h.gh)(r);return(0,n.jsx)(a.u,{title:"Whoops…",description:(0,n.jsxs)(n.Fragment,{children:["user"===i.type?(0,n.jsx)("p",{children:"This library belongs another user."}):(0,n.jsx)("p",{children:"This library belongs to a team you're not a member of."}),(0,n.jsxs)("p",{children:[["You may want to go to your personal library",o.length&&"or to the library of one of your teams"].filter(Boolean).join(", "),"."]})]}),actions:0===o.length?(0,n.jsx)(u.A,{size:"M",theme:"primary",href:(0,d.Y)(t),children:"My library"}):(0,n.jsx)(u.A,{size:"M",theme:"primary",href:"/workspace/library",children:"Select library"})})}},69339:function(e,t,r){"use strict";r.d(t,{L:function(){return s}});var n=r(11163),i=r(57831),o=r(45466);function s(){let e=(0,n.useRouter)(),t=e.asPath.includes("/t/")?"team":"user",r=e.query.handle,s=(0,i.Ke)(),c=(0,o.MI)(s,e=>"invite_accepted"===e.membership.status&&e.handle===r),a=c.list[0];switch(t){case"user":if(r!==s.user.name)return{status:"INVALID",invalidValue:{type:t,handle:r}};return{status:"OK",value:{type:t,handle:r,id:s.user.id}};case"team":if(c.loading)return{status:"LOADING"};if(!a)return{status:"INVALID",invalidValue:{type:t,handle:r}};return{status:"OK",value:{type:t,handle:r,id:a.id}}}}},92265:function(e,t,r){"use strict";r.d(t,{M:function(){return h}});var n=r(85893),i=r(35314),o=r.n(i),s=r(94184),c=r.n(s),a=r(41664),u=r.n(a),l=r(67294),d=r(97884);let h=(0,l.forwardRef)((e,t)=>{let{color:r,active:i=!1,hovered:s=!1,className:a,onOpen:l,...h}=e;return(0,n.jsx)(u(),{ref:t,...h,className:c()(a,o().chip,(0,d.G)({color:r,hovered:s,active:i})),onClick:l,onAuxClick:l})})},97884:function(e,t,r){"use strict";r.d(t,{G:function(){return c}});var n=r(23231),i=r.n(n),o=r(94184),s=r.n(o);function c(e){return s()(i().chip,e.hovered&&"hovered",e.active&&"active",i()["color-".concat(e.color)])}},1463:function(e,t,r){"use strict";r.r(t),r.d(t,{IconHouse:function(){return i}});var n=r(85893);function i(){return(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M9.5 13V10C9.5 9.8674 9.44732 9.74023 9.35355 9.64646C9.25979 9.55269 9.13261 9.50001 9 9.50001H7C6.86739 9.50001 6.74021 9.55269 6.64645 9.64646C6.55268 9.74023 6.5 9.8674 6.5 10V13C6.5 13.1326 6.44732 13.2598 6.35355 13.3536C6.25979 13.4473 6.13261 13.5 6 13.5H3C2.86739 13.5 2.74021 13.4473 2.64645 13.3536C2.55268 13.2598 2.5 13.1326 2.5 13V7.21876C2.50112 7.14957 2.51607 7.08129 2.54398 7.01796C2.57189 6.95463 2.61219 6.89753 2.6625 6.85001L7.6625 2.30626C7.75467 2.22194 7.87507 2.17517 8 2.17517C8.12493 2.17517 8.24533 2.22194 8.3375 2.30626L13.3375 6.85001C13.3878 6.89753 13.4281 6.95463 13.456 7.01796C13.4839 7.08129 13.4989 7.14957 13.5 7.21876V13C13.5 13.1326 13.4473 13.2598 13.3536 13.3536C13.2598 13.4473 13.1326 13.5 13 13.5H10C9.86739 13.5 9.74021 13.4473 9.64645 13.3536C9.55268 13.2598 9.5 13.1326 9.5 13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}},95257:function(e,t,r){"use strict";r.r(t),r.d(t,{IconTableMaterialized:function(){return i}});var n=r(85893);let i=e=>{let{className:t}=e;return(0,n.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,n.jsx)("path",{d:"M1.5 6C1.5 5.72386 1.72386 5.5 2 5.5H12C12.2761 5.5 12.5 5.72386 12.5 6V14C12.5 14.2761 12.2761 14.5 12 14.5H2C1.72386 14.5 1.5 14.2761 1.5 14V6Z",stroke:"currentColor"}),(0,n.jsx)("path",{d:"M4.5 2C4.5 1.72386 4.72386 1.5 5 1.5H14C14.2761 1.5 14.5 1.72386 14.5 2V8C14.5 8.27614 14.2761 8.5 14 8.5H5C4.72386 8.5 4.5 8.27614 4.5 8V2Z",stroke:"currentColor"}),(0,n.jsx)("path",{d:"M2 8.5H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M2 11.5H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M4.5 8.5V14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M9.5 1.5V14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})}},11699:function(e,t,r){"use strict";r.d(t,{R:function(){return u},i:function(){return a}});var n=r(85893),i=r(1879),o=r.n(i),s=r(94184),c=r.n(s);function a(e){let{as:t}=e;return(0,n.jsx)(t,{className:c()(o().sidebar,o().cssVarContext,o().fullHeightChildren,o().sticky,"hide-on-mobile"),children:e.children})}function u(e){return(0,n.jsx)("div",{className:c()(o().cssVarContext,o().counterweight,e.className,"hide-on-mobile")})}},48884:function(e){e.exports={state:"EmptyState_state__8tEMp",text:"EmptyState_text__HY5Af",description:"EmptyState_description__C7NY8",emptyStateImage:"EmptyState_emptyStateImage__x1HLj",actions:"EmptyState_actions__IBuS4"}},67410:function(e){e.exports={page:"LibraryLayout_page__enux6",mainWrapper:"LibraryLayout_mainWrapper__6kwSp",pageContent:"LibraryLayout_pageContent__BKgSH",subHeader:"LibraryLayout_subHeader__mlOqq",breadcrumbs:"LibraryLayout_breadcrumbs__dA7e9",breadcrumb:"LibraryLayout_breadcrumb__0kYBM",innerContent:"LibraryLayout_innerContent__o6im7"}},35314:function(e){e.exports={chip:"Chip_chip__6vUbX"}},15242:function(e){e.exports={chip:"ChipDropdown_chip__ZpjTF"}},23231:function(e){e.exports={chip:"chipColor_chip__tI__c","color-gray":"chipColor_color-gray__vWIka","color-yellow":"chipColor_color-yellow__dGpBm","color-green":"chipColor_color-green__YbHER","color-light-blue":"chipColor_color-light-blue__JJTg7","color-blue":"chipColor_color-blue__Lm6T7","color-orange":"chipColor_color-orange__i2y7X"}},88894:function(e){e.exports={panel:"SidePanel_panel__bZFcx",section:"SidePanel_section__tKVhT",sectionTitle:"SidePanel_sectionTitle__JADjc"}},1879:function(e){e.exports={cssVarContext:"Sidebar_cssVarContext___6xoN",sidebar:"Sidebar_sidebar__6FWqI",sticky:"Sidebar_sticky__3pKK2",fullHeightChildren:"Sidebar_fullHeightChildren__f8m2Q",counterweight:"Sidebar_counterweight__08VrG"}}}]);
//# sourceMappingURL=1532-b7a2ab553c759981.js.map