forked from bombastictranz/DuneQueryRepo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
8020-112f69cde0233c7a.js.download
2 lines (2 loc) · 8.25 KB
/
8020-112f69cde0233c7a.js.download
1
2
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8020],{83412:function(e,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){if(arguments.length<1)throw TypeError("1 arguments required, but only ".concat(arguments.length," present"));var r=(0,t.default)(e);if(!(0,o.default)(r))throw RangeError("Invalid time value");var n=l[r.getUTCDay()],i=(0,u.default)(r.getUTCDate(),2),a=c[r.getUTCMonth()],s=r.getUTCFullYear(),d=(0,u.default)(r.getUTCHours(),2),h=(0,u.default)(r.getUTCMinutes(),2),f=(0,u.default)(r.getUTCSeconds(),2);return"".concat(n,", ").concat(i," ").concat(a," ").concat(s," ").concat(d,":").concat(h,":").concat(f," GMT")};var t=i(n(71171)),o=i(n(39989)),u=i(n(87394));function i(e){return e&&e.__esModule?e:{default:e}}var l=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.exports=r.default},14514:function(e,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){(0,u.default)(1,arguments);var r=(0,o.default)(e);return(0,t.default)(1e3*r)};var t=i(n(71171)),o=i(n(82084)),u=i(n(68734));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=r.default},16434:function(e,r,n){n.d(r,{l:function(){return x}});var t=n(85893),o=n(77251),u=n(20951),i=n(26089),l=n(78449),c=n(77747),a=n(13658),s=n(96111),d=n(11163),h=n(49728),f=n(61575),v=n(57557),p=n.n(v);function x(e){let{feed:r}=e,n=h.eJ().value,v=(0,d.useRouter)();return(0,t.jsxs)(o.$0,{title:"Feeds",children:[(0,f.HH)(n)&&(0,t.jsxs)(o.FB,{color:"yellow",shallow:!0,href:{pathname:"/discover/content/relevant",query:p()(v.query,"timeframe")},active:"Most relevant"===r,children:[(0,t.jsx)(u.IconLightning,{}),"Most relevant"]}),(0,t.jsxs)(o.FB,{color:"orange",shallow:!0,href:{pathname:"/discover/content/trending",query:p()(v.query,"timeframe")},active:"Trending"===r,children:[(0,t.jsx)(i.IconChartLineUp,{}),"Trending"]}),(0,t.jsxs)(o.FB,{color:"blue",shallow:!0,href:{pathname:"/discover/content/popular",query:p()(v.query,"timeframe")},active:"Most popular"===r,children:[(0,t.jsx)(s.IconStars,{}),"Most popular"]}),(0,t.jsxs)(o.FB,{color:"green",shallow:!0,href:{pathname:"/discover/content/recently-viewed",query:p()(v.query,"timeframe")},active:"Recently viewed"===r,children:[(0,t.jsx)(l.IconEye,{}),"Recently viewed"]}),(0,t.jsxs)(o.FB,{color:"yellow",shallow:!0,href:{pathname:"/discover/content/favorites",query:p()(v.query,"timeframe")},active:"Your favorites"===r,children:[(0,t.jsx)(c.IconStar,{}),"Your favorites"]}),(0,t.jsxs)(o.FB,{color:"light-blue",shallow:!0,href:{pathname:"/discover/content/your-updates",query:p()(v.query,"timeframe")},active:"Updates from your team"===r,children:[(0,t.jsx)(a.IconPeopleThree,{}),"Updates from your team"]})]})}},48390:function(e,r,n){n.d(r,{h7:function(){return f},Je:function(){return h},eJ:function(){return d}});var t=n(85893),o=n(77251),u=n(45186),i=n(32613),l=n(78528),c=n(10295),a=n(84937);let s=["any","dashboards","queries"];function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultValue:r="any"}=e,[n,t,o]=(0,c.s)({key:"resource-type",defaultValue:r,validValues:s});return{value:n,setState:t,getUrl:o}}function h(e){switch(e){case"dashboards":return[a.rrA.Dashboard];case"queries":return[a.rrA.Query];case"any":return}}function f(e){let{typeFilterState:r}=e;function n(e){switch(e){case"dashboards":return"Dashboards";case"queries":return"Queries";case"any":return"Dashboards & queries"}}return(0,t.jsx)("li",{children:(0,t.jsx)(u.f,{position:"below-align-left-full-width",content:e=>{let{close:o}=e;return(0,t.jsx)(i.s_,{children:(0,t.jsx)(i.$0,{children:s.map(e=>(0,t.jsx)(i.FB,{active:r.value===e,href:r.getUrl(e),shallow:!0,onOpen:o,children:(0,t.jsx)(i.xv,{children:n(e)})},e))})})},children:(0,t.jsxs)(o.V1,{color:"gray",children:[(0,t.jsx)(o.xv,{children:n(r.value)}),(0,t.jsx)(l.IconChevronDown,{})]})})})}},20982:function(e,r,n){n.d(r,{h7:function(){return c},Je:function(){return h},eJ:function(){return d}});var t=n(85893),o=n(77251),u=n(45186),i=n(32613),l=n(78528);function c(e){let{publicnessFilterState:r}=e;function n(e){switch(e){case"public":return"Public";case"private":return"Private";case void 0:return"Public & private"}}return(0,t.jsx)("li",{children:(0,t.jsx)(u.f,{position:"below-align-left-full-width",content:e=>{let{close:o}=e;return(0,t.jsx)(i.s_,{children:(0,t.jsxs)(i.$0,{children:[(0,t.jsx)(i.FB,{active:void 0===r.value,href:r.getUrl(void 0),shallow:!0,onOpen:o,children:(0,t.jsx)(i.xv,{children:n(void 0)})}),(0,t.jsx)(i.FB,{active:"public"===r.value,href:r.getUrl("public"),shallow:!0,onOpen:o,children:(0,t.jsx)(i.xv,{children:n("public")})}),(0,t.jsx)(i.FB,{active:"private"===r.value,href:r.getUrl("private"),shallow:!0,onOpen:o,children:(0,t.jsx)(i.xv,{children:n("private")})})]})})},children:(0,t.jsxs)(o.V1,{color:"gray",children:[(0,t.jsx)(o.xv,{children:n(r.value)}),(0,t.jsx)(l.IconChevronDown,{})]})})})}var a=n(10295),s=n(84937);function d(){let[e,r,n]=(0,a.s)({key:"publicness",defaultValue:void 0,validValues:["public","private"]});return{value:e,setState:r,getUrl:n}}function h(e){switch(e){case"public":return[s.uQi.Public];case"private":return[s.uQi.Private];case void 0:return}}},71429:function(e,r,n){n.d(r,{II:function(){return w},bM:function(){return L},rI:function(){return y},wr:function(){return j}});var t=n(85893),o=n(67294),u=n(35180),i=n.n(u),l=n(13120),c=n.n(l),a=n(83412),s=n.n(a),d=n(39612),h=n(14514),f=n.n(h),v=n(51196),p=n.n(v),x=n(52502);let L=e=>{let r=y({now:w(),time:e.children,counter:e.counter});return r?(0,t.jsx)("time",{dateTime:r.abs,title:r.abs,className:e.className,children:r.rel}):null};function y(e){let{now:r,time:n,counter:t}=e;if(!n)return;let o=m(n),u=s()(o);if(t)return{iso:o,abs:u,rel:(0,d.NE)(i()(r,o))};let l=c()(o,r,{addSuffix:!0}),a=l.includes("second")?"Just now":l;return{rel:a,abs:u,iso:o}}function j(e){let{now:r,date:n}=e,t=c()(n,r);return t.includes("second")?"Now":t.replace(" minutes","min").replace(" minute","min").replace(" hours","h").replace(" hour","h").replace(" days","d").replace(" day","d").replace(" months","mo").replace(" month","mo").replace(" years","y").replace(" year","y")}let w=()=>{let e=(0,x.N)();return o.useEffect(()=>{let r=setInterval(e,1e3);return()=>clearInterval(r)},[e]),Date.now()},m=e=>"string"==typeof e?p()(e):"number"==typeof e?f()(e):f()(e.getTime()/1e3)},78449:function(e,r,n){n.r(r),n.d(r,{IconEye:function(){return o}});var t=n(85893);function o(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M8 3.5C3 3.5 1 8 1 8C1 8 3 12.5 8 12.5C13 12.5 15 8 15 8C15 8 13 3.5 8 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M8 10.5C9.38071 10.5 10.5 9.38071 10.5 8C10.5 6.61929 9.38071 5.5 8 5.5C6.61929 5.5 5.5 6.61929 5.5 8C5.5 9.38071 6.61929 10.5 8 10.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})}},96111:function(e,r,n){n.r(r),n.d(r,{IconStars:function(){return o}});var t=n(85893);function o(){return(0,t.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M7.22954 13.297L7.00098 13.1796L6.77241 13.297L4.34012 14.5472L4.80239 11.9122L4.84865 11.6485L4.65485 11.4638L2.6811 9.58293L5.4167 9.19431L5.67511 9.1576L5.79273 8.92461L7.00098 6.53118L8.20922 8.92461L8.32684 9.1576L8.58525 9.19431L11.3208 9.58293L9.34711 11.4638L9.1533 11.6485L9.19956 11.9122L9.66184 14.5472L7.22954 13.297ZM9.97281 14.707L9.97256 14.7069L9.97281 14.707Z",stroke:"currentColor"}),(0,t.jsx)("path",{d:"M12.6833 5.91345L12.5005 5.81947L12.3176 5.91345L10.7045 6.74255L11.0107 4.99717L11.0477 4.78623L10.8927 4.63848L9.58577 3.39304L11.3985 3.13552L11.6053 3.10615L11.6994 2.91976L12.5005 1.33278L13.3016 2.91976L13.3957 3.10615L13.6024 3.13552L15.4152 3.39304L14.1083 4.63848L13.9532 4.78623L13.9903 4.99717L14.2965 6.74255L12.6833 5.91345ZM14.6036 6.90043L14.6033 6.90025L14.6036 6.90043Z",stroke:"currentColor",strokeWidth:"0.8"})]})}},10295:function(e,r,n){n.d(r,{s:function(){return o}});var t=n(48821);function o(e){let{key:r,defaultValue:n,validValues:o,...u}=e,i=e=>"string"==typeof e&&o.includes(e);return(0,t.Z)(function(e){let t=e[r];return i(t)?t:n},function(e){return e===n?{[r]:void 0}:{[r]:e}},u)}}}]);
//# sourceMappingURL=8020-112f69cde0233c7a.js.map