forked from bombastictranz/DuneQueryRepo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path[slug]-cd363cc580b5bcc2.js.download
2 lines (2 loc) · 46.8 KB
/
[slug]-cd363cc580b5bcc2.js.download
1
2
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6219],{9104:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[slug]",function(){return r(95902)}])},13717:function(e,n,r){"use strict";r.d(n,{Z:function(){return f}});var s=r(85893),a=r(69896),t=r.n(a),i=r(80949),l=r(24745),o=r(41664),d=r.n(o),c=r(71909),u=r(57831),h=r(1801),m=r(77747),p=r(42708),x=r(15468),_=r(15801);function f(e){let n=(0,u.kP)(),{enableFavoriting:r=!0}=e,a=(0,c.J)();return r?n?void 0===e.isFavorite?(0,s.jsx)("div",{className:t().favorites,children:(0,s.jsxs)(h.C,{size:"L",variant:"filled",color:"neutral",children:[(0,l.u)(e.stars),(0,s.jsx)(m.IconStar,{})]})}):(0,s.jsx)(v,{...e}):(0,s.jsx)("div",{className:t().favorites,children:(0,s.jsxs)(h.C,{size:"L",variant:"filled",color:"neutral",children:[(0,l.u)(e.stars),(0,s.jsx)(d(),{href:a,"aria-label":"Add to favorites",children:(0,s.jsx)(m.IconStar,{})})]})}):(0,s.jsxs)("div",{className:t().favorites,children:[(0,l.u)(e.stars),(0,s.jsx)(i.J,{icon:"person"})]})}function v(e){var n;let{favoriteDashboard:r}=(0,x.t)(),{unfavoriteDashboard:a}=(0,_.s)(),i=null!==(n=e.isFavorite)&&void 0!==n&&n;return i?(0,s.jsxs)("div",{className:t().favorites,children:[(0,l.u)(e.stars),(0,s.jsx)("button",{"aria-label":"Remove from favorites",onClick:()=>{a(e.dashboard_id)},children:(0,s.jsx)(p.IconStarFill,{})})]}):(0,s.jsxs)("div",{className:t().favorites,children:[(0,l.u)(e.stars),(0,s.jsx)("button",{"aria-label":"Add to favorites",onClick:()=>{r(e.dashboard_id)},children:(0,s.jsx)(m.IconStar,{})})]})}},23152:function(e,n,r){"use strict";r.d(n,{Z:function(){return f}});var s=r(85893),a=r(69896),t=r.n(a),i=r(80949),l=r(24745),o=r(41664),d=r.n(o),c=r(71909),u=r(57831),h=r(1801),m=r(77747),p=r(42708),x=r(23852),_=r(93556);function f(e){let n=(0,u.kP)(),{enableFavoriting:r=!0}=e,a=(0,c.J)();return r?n?void 0===e.isFavorite?(0,s.jsx)("div",{className:t().favorites,children:(0,s.jsxs)(h.C,{size:"L",variant:"filled",color:"neutral",children:[(0,l.u)(e.stars),(0,s.jsx)(i.J,{icon:"star"})]})}):(0,s.jsx)(v,{...e}):(0,s.jsx)("div",{className:t().favorites,children:(0,s.jsxs)(h.C,{size:"L",variant:"filled",color:"neutral",children:[(0,l.u)(e.stars),(0,s.jsx)(d(),{href:a,"aria-label":"Add to favorites",children:(0,s.jsx)(m.IconStar,{})})]})}):(0,s.jsxs)("div",{className:t().favorites,children:[(0,l.u)(e.stars),(0,s.jsx)(i.J,{icon:"person"})]})}function v(e){var n;let{favoriteQuery:r}=(0,x.S)(),{unfavoriteQuery:a}=(0,_.F)(),i=null!==(n=e.isFavorite)&&void 0!==n&&n;return i?(0,s.jsxs)("div",{className:t().favorites,children:[(0,l.u)(e.stars),(0,s.jsx)("button",{"aria-label":"Remove from favorites",onClick:()=>{a(e.query_id)},children:(0,s.jsx)(p.IconStarFill,{})})]}):(0,s.jsxs)("div",{className:t().favorites,children:[(0,l.u)(e.stars),(0,s.jsx)("button",{"aria-label":"Add to favorites",onClick:()=>{r(e.query_id)},children:(0,s.jsx)(m.IconStar,{})})]})}},58048:function(e,n,r){"use strict";r.d(n,{H:function(){return l}});var s=r(85893);r(67294);var a=r(49327),t=r.n(a),i=r(76441);let l=e=>(0,s.jsx)(i.x,{icon:e.icon,title:e.title,className:t().empty,color1:!0,text:!0,children:e.children})},45108:function(e,n,r){"use strict";r.d(n,{$:function(){return _}});var s=r(85893),a=r(41664),t=r.n(a),i=r(67294),l=r(42258),o=r.n(l),d=r(82733),c=r(80949),u=r(34201),h=r(57831),m=r(26657),p=r(71429),x=r(71909);let _=e=>{let{session:n}=i.useContext(h.B3),r=(0,x.J)();return(0,s.jsxs)(u.T,{as:"footer",size:"md",children:[(0,s.jsx)(m.L,{size:"lg"}),(0,s.jsxs)(d.r,{as:"div",className:o().footer,gaps:!0,children:[(0,s.jsxs)("article",{children:[(0,s.jsxs)("p",{children:["\xa9 Dune ",f]}),(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:(0,s.jsxs)(t(),{href:"/home",children:[(0,s.jsx)(c.J,{icon:"home"}),"Home page"]})}),!n&&(0,s.jsx)("li",{children:(0,s.jsxs)(t(),{href:r,children:[(0,s.jsx)(c.J,{icon:"person"}),"Sign in"]})}),e.timestamp&&(0,s.jsxs)("li",{children:[(0,s.jsx)(c.J,{icon:"clock","aria-label":"Updated"}),(0,s.jsx)(p.bM,{children:e.timestamp})]})]})]}),(0,s.jsxs)("article",{children:[(0,s.jsx)("p",{children:"Information"}),(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:(0,s.jsxs)(t(),{href:"/pricing",children:[(0,s.jsx)(c.J,{icon:"star"}),"Subscriptions"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)(t(),{href:"/blog",children:[(0,s.jsx)(c.J,{icon:"chat"}),"Blog"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)(t(),{href:"/docs",target:"_blank",children:[(0,s.jsx)(c.J,{icon:"bookmark"}),"Docs"]})})]})]}),(0,s.jsxs)("article",{children:[(0,s.jsx)("p",{children:"Get in touch"}),(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:"mailto:support@dune.com",children:[(0,s.jsx)(c.J,{icon:"mail"}),"Email"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:"https://twitter.com/DuneAnalytics",children:[(0,s.jsx)(c.J,{icon:"egg"}),"Twitter"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:"https://discord.gg/ErrzwBz",children:[(0,s.jsx)(c.J,{icon:"discord"}),"Discord"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:"https://github.com/duneanalytics",children:[(0,s.jsx)(c.J,{icon:"terminal"}),"GitHub"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)(t(),{href:"/careers",children:[(0,s.jsx)(c.J,{icon:"building"}),"Careers"]})})]})]}),(0,s.jsxs)("article",{children:[(0,s.jsx)("p",{children:"The fine print"}),(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:(0,s.jsxs)(t(),{href:"/terms",children:[(0,s.jsx)(c.J,{icon:"text"}),"Terms of Service"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)(t(),{href:"/privacy",children:[(0,s.jsx)(c.J,{icon:"shield"}),"Privacy Policy"]})})]})]})]}),(0,s.jsx)(m.L,{size:"lg"})]})},f=new Date().getFullYear()},27854:function(e,n,r){"use strict";r.d(n,{b:function(){return o}});var s=r(94184),a=r.n(s),t=r(67294),i=r(65297),l=r.n(i);let o=e=>{var n;let r=null!==(n=e.as)&&void 0!==n?n:"div",s=a()(l().cell,e.overflowVisible&&l().overflowVisible,e.scrollable&&l().scrollable,e.height&&l()["height-".concat(e.height)],e.span3&&l()["span3-".concat(e.span3)],e.span4&&l()["span4-".concat(e.span4)],e.span5&&l()["span5-".concat(e.span5)],e.span6&&l()["span6-".concat(e.span6)],e.span7&&l()["span7-".concat(e.span7)],e.span8&&l()["span8-".concat(e.span8)],e.span9&&l()["span9-".concat(e.span9)],e.className),i={className:s,id:e.id,style:e.style,"aria-labelledby":e["aria-labelledby"]};return t.createElement(r,i,e.children)}},60682:function(e,n,r){"use strict";r.d(n,{E:function(){return i}});var s=r(82729),a=r(84937);function t(){let e=(0,s._)(["\n query FeaturedDashboards($id: Int!) {\n team(id: $id) {\n id\n featuredDashboards {\n edges {\n node {\n id\n dashboard {\n id\n slug\n tags\n createdAt\n starCount\n name\n user {\n id\n name\n }\n team {\n id\n handle\n }\n }\n }\n }\n }\n }\n }\n"]);return t=function(){return e},e}function i(e){let{teamId:n}=e,{data:r,refetch:s}=(0,a.XPu)({variables:{id:n}}),t=null==r?void 0:r.team.featuredDashboards.edges;return{featuredDashboards:t,refetch:s}}(0,r(39137).Z)(t())},33748:function(e,n,r){"use strict";r.d(n,{u:function(){return i}});var s=r(82729),a=r(84937);function t(){let e=(0,s._)(["\n query FeaturedVisualizations($id: Int!) {\n team(id: $id) {\n id\n featuredVisualizations {\n edges {\n node {\n id\n visualization {\n id\n queryId\n options\n type\n description\n createdAt\n name\n query {\n name\n id\n description\n parameters\n user {\n id\n name\n profileImageUrl\n }\n team {\n id\n handle\n profileImageUrl\n }\n }\n }\n }\n }\n }\n }\n }\n"]);return t=function(){return e},e}function i(e){let{teamId:n}=e,{data:r,refetch:s}=(0,a.QlU)({variables:{id:n}}),t=null==r?void 0:r.team.featuredVisualizations.edges;return{featuredVisualizations:t,refetch:s}}(0,r(39137).Z)(t())},40621:function(e,n,r){"use strict";r.d(n,{I:function(){return c}});var s=r(85893),a=r(94184),t=r.n(a),i=r(25026),l=r.n(i),o=r(82876),d=r(62810);function c(e){let{color:n,orientation:r,children:a,iconOnly:i}=e,{mode:c}=(0,o.v)(),u="dark"===c?(0,d._j)(-.1,n):n;return(0,s.jsx)("div",{className:t()(l().box,l()["orientation-".concat(r)],!!i&&l().iconOnly),style:{"--customColor":u},children:a})}},26657:function(e,n,r){"use strict";r.d(n,{L:function(){return o}});var s=r(85893),a=r(94184),t=r.n(a),i=r(12610),l=r.n(i);let o=e=>{let n=t()(l().spacer,e.at&&l()["at-".concat(e.at)],e.size&&l()[e.size]);return(0,s.jsx)("div",{className:n,"aria-hidden":!0})}},36072:function(e,n,r){"use strict";r.d(n,{Q:function(){return c}});var s=r(85893),a=r(94184),t=r.n(a),i=r(67294),l=r(82034),o=r.n(l),d=r(80949);let c=e=>{var n;let r=null!==(n=e.as)&&void 0!==n?n:"h2",a=t()(o().subtitle,e.icon&&o().icon,e.className),l=i.createElement(r,{className:o().text,id:e.id},e.icon&&(0,s.jsx)(d.J,{icon:e.icon}),e.text);return(0,s.jsxs)("header",{className:a,children:[l,(0,s.jsx)("div",{className:o().spacer,"aria-hidden":!0}),e.children]})}},58765:function(e,n,r){"use strict";r.d(n,{H:function(){return m}});var s=r(85893),a=r(41664),t=r.n(a),i=r(99292),l=r.n(i),o=r(47730),d=r(30297),c=r(54179),u=r(1801),h=r(32613);function m(e){let{avatarList:n,maxAvatars:r=5,invertStackLayout:a=!1}=e;function i(e){switch(e){case"S":return 16;case"L":return 24;default:return 20}}let m=n.length;return(0,s.jsxs)("div",{className:l().avatarGroup,suppressHydrationWarning:!0,children:[(0,s.jsx)("ul",{className:l().avatarsList,children:n.slice(0,r).map((n,c)=>(0,s.jsx)("li",{className:l().element,style:{zIndex:a?r-c:"auto"},children:(0,s.jsx)(t(),{href:"/".concat(n.handle),children:(0,s.jsx)(o.u,{label:"@".concat(n.handle),position:"below-center",children:(0,s.jsx)("div",{className:l().avatarWrapper,children:(0,s.jsx)(d.q,{ownerId:n.ownerId,handle:n.handle,src:n.profile_image_url,size:i(e.size),type:n.type})})})})},n.handle))}),m>r&&(0,s.jsx)(c.c,{position:"below-align-right",content:()=>(0,s.jsx)(h.s_,{children:(0,s.jsx)(h.$0,{children:n.slice(r).map(n=>(0,s.jsxs)(h.FB,{href:"/".concat(n.handle),children:[(0,s.jsx)(d.q,{ownerId:n.ownerId,handle:n.handle,src:n.profile_image_url,size:i(e.size),type:n.type}),"@",n.handle]},n.handle))})}),children:(0,s.jsxs)(u.C,{size:"S",variant:"filled",color:"neutral",children:["+",m-r]})})]})}},61018:function(e,n,r){"use strict";r.r(n),r.d(n,{IconBellRing:function(){return a}});var s=r(85893);let a=()=>(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M3 12H13",stroke:"currentColor",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M4 8C4 5.79086 5.79086 4 8 4V4C10.2091 4 12 5.79086 12 8V12H4V8Z",stroke:"currentColor"}),(0,s.jsx)("path",{d:"M6.98122 14.435C7.26281 14.7166 7.6024 14.8574 8 14.8574C8.3976 14.8574 8.73719 14.7166 9.01878 14.435C9.30037 14.1535 9.44116 13.8139 9.44116 13.4163H6.55884C6.55884 13.8139 6.69963 14.1535 6.98122 14.435Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M7 3C7 2.44772 7.44772 2 8 2C8.55228 2 9 2.44772 9 3V4H7V3Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M2.16426 5.15975C2.77213 3.89512 3.75161 2.80199 4.9955 1.99999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M13.9955 5.15981C13.3877 3.89518 12.4082 2.80205 11.1643 2.00005",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})},1463:function(e,n,r){"use strict";r.r(n),r.d(n,{IconHouse:function(){return a}});var s=r(85893);function a(){return(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.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"})})}},42708:function(e,n,r){"use strict";r.r(n),r.d(n,{IconStarFill:function(){return a}});var s=r(85893);function a(){return(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M3.6123 15.4427C3.22586 15.6413 2.78829 15.2942 2.86609 14.8508L3.69582 10.1213L0.173489 6.76462C-0.155692 6.45092 0.0147086 5.87737 0.455698 5.81472L5.35417 5.11885L7.53829 0.792305C7.73504 0.402565 8.26801 0.402565 8.46476 0.792305L10.6489 5.11885L15.5474 5.81472C15.9883 5.87737 16.1587 6.45092 15.8296 6.76462L12.3072 10.1213L13.137 14.8508C13.2148 15.2942 12.7772 15.6413 12.3908 15.4427L8.00153 13.1868L3.6123 15.4427Z",fill:"currentColor"})})}},57864:function(e,n,r){"use strict";r.r(n),r.d(n,{IconXTwitter:function(){return a}});var s=r(85893);function a(){return(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M9.33184 6.92804C9.33188 6.92804 9.33192 6.92803 9.33194 6.928L13.9598 1.66411C14.1871 1.40568 14.0035 1 13.6594 1H13.4896C13.3746 1 13.2652 1.04951 13.1892 1.13589L9.1189 5.76548C8.94791 5.95998 8.63997 5.94318 8.49115 5.73124L5.28829 1.17013C5.2134 1.06348 5.09126 1 4.96094 1H1.76966C1.44578 1 1.25618 1.36482 1.44231 1.62987L6.28485 8.52593C6.39098 8.67707 6.37984 8.88123 6.2579 9.01993L1.58392 14.3359C1.3567 14.5943 1.5402 15 1.88432 15H2.05417C2.16918 15 2.27863 14.9505 2.35457 14.8641L6.67843 9.9461C6.84943 9.7516 7.15736 9.7684 7.30619 9.98033L10.7117 14.8299C10.7866 14.9365 10.9087 15 11.0391 15H14.2303C14.5542 15 14.7438 14.6352 14.5577 14.3701L9.33174 6.92825C9.33168 6.92816 9.33174 6.92804 9.33184 6.92804ZM7.64026 8.85226C7.64026 8.85216 7.64023 8.85207 7.64017 8.85199L7.08647 8.07705L3.13206 2.54231C2.94291 2.27757 3.13215 1.90978 3.45752 1.90978H4.37136C4.50052 1.90978 4.62174 1.97215 4.69682 2.07724L8.13314 6.88696L8.68693 7.66202L12.8573 13.4991C13.0465 13.7638 12.8572 14.1316 12.5319 14.1316H11.618C11.4889 14.1316 11.3677 14.0692 11.2926 13.9641L7.64034 8.85253C7.64029 8.85245 7.64026 8.85236 7.64026 8.85226Z",fill:"currentColor"})})}},15468:function(e,n,r){"use strict";r.d(n,{t:function(){return l}});var s=r(82729),a=r(57831),t=r(84937);function i(){let e=(0,s._)(["\n mutation FavoriteDashboard($input: FavoriteDashboardInput!) {\n favoriteDashboard(input: $input) {\n id\n starCount\n hasStarred\n }\n }\n"]);return i=function(){return e},e}function l(){let e=(0,a.kP)(),[n,r]=(0,t.QyX)();return{favoriteDashboard:function(r){n({context:{session:e},variables:{input:{id:r}}})},favoriteDashboardMutationResult:r}}(0,r(39137).Z)(i())},23852:function(e,n,r){"use strict";r.d(n,{S:function(){return l}});var s=r(82729),a=r(57831),t=r(84937);function i(){let e=(0,s._)(["\n mutation FavoriteQuery($input: FavoriteQueryInput!) {\n favoriteQuery(input: $input) {\n id\n starCount\n hasStarred\n }\n }\n"]);return i=function(){return e},e}function l(){let e=(0,a.kP)(),[n,r]=(0,t.j7d)();return{favoriteQuery:function(r){n({context:{session:e},variables:{input:{id:r}}})},favoriteQueryMutationResult:r}}(0,r(39137).Z)(i())},15801:function(e,n,r){"use strict";r.d(n,{s:function(){return l}});var s=r(82729),a=r(57831),t=r(84937);function i(){let e=(0,s._)(["\n mutation UnfavoriteDashboard($input: UnfavoriteDashboardInput!) {\n unfavoriteDashboard(input: $input) {\n id\n starCount\n hasStarred\n }\n }\n"]);return i=function(){return e},e}function l(){let e=(0,a.kP)(),[n,r]=(0,t.LhV)();return{unfavoriteDashboard:function(r){n({context:{session:e},variables:{input:{id:r}}})},unfavoriteDashboardMutationResult:r}}(0,r(39137).Z)(i())},93556:function(e,n,r){"use strict";r.d(n,{F:function(){return l}});var s=r(82729),a=r(57831),t=r(84937);function i(){let e=(0,s._)(["\n mutation UnfavoriteQuery($input: UnfavoriteQueryInput!) {\n unfavoriteQuery(input: $input) {\n id\n starCount\n hasStarred\n }\n }\n"]);return i=function(){return e},e}function l(){let e=(0,a.kP)(),[n,r]=(0,t.UW4)();return{unfavoriteQuery:function(r){n({context:{session:e},variables:{input:{id:r}}})},unfavoriteQueryMutationResult:r}}(0,r(39137).Z)(i())},95902:function(e,n,r){"use strict";r.r(n),r.d(n,{Page:function(){return eJ},__N_SSG:function(){return eB},default:function(){return eM}});var s=r(85893),a=r(36568),t=r(67294),i=r(80403),l=r(45108),o=r(34201),d=r(31821),c=r(69015),u=r.n(c),h=r(30297),m=r(94100),p=r.n(m),x=r(94184),_=r.n(x),f=r(91074),v=r(80949),j=r(41664),g=r.n(j),b=r(53731),C=r(66465),y=r(24506),N=r(66082),P=r(45172),w=r(46367);function I(e){let{captureEvent:n}=(0,C.z$)(),{user:r}=e;return(0,s.jsxs)("div",{className:_()(p()["user-details"],e.className),children:[(0,w.n)(r.bio)&&""!==r.bio&&(0,s.jsxs)(f.Z,{gap:"small",layout:"start-aligned",className:p().bio,children:[(0,s.jsx)(v.J,{icon:"book","aria-hidden":!0,className:p().icon}),(0,s.jsx)("span",{children:(0,s.jsx)(b.Z,{componentDecorator:(e,n)=>(0,s.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer nofollow",children:n}),children:r.bio})})]}),(0,w.n)(r.twitterHandle)&&""!==r.twitterHandle&&(0,s.jsxs)(f.Z,{gap:"small",children:[(0,s.jsx)(v.J,{icon:"twitter",className:p().icon,"aria-hidden":!0}),(0,s.jsxs)("a",{target:"_blank","aria-label":"Twitter",href:"https://twitter.com/".concat(r.twitterHandle),className:p()["user-details-item"],onClick:()=>{n("User profile Twitter link clicked"),P.Z.trackEvent("User Profile Twitter Link Clicked",{user_id:e.user.id})},rel:"noreferrer",children:["@",r.twitterHandle]})]}),(0,w.n)(r.publicEthereumAddress)&&""!==r.publicEthereumAddress&&(0,s.jsx)(k,{address:r.publicEthereumAddress}),(0,w.n)(r.telegramHandle)&&""!==r.telegramHandle&&(0,s.jsxs)(f.Z,{gap:"small",children:[(0,s.jsx)(v.J,{icon:"telegram","aria-hidden":!0}),(0,s.jsxs)("a",{target:"_blank","aria-label":"Telegram",href:"https://t.me/".concat(r.telegramHandle),className:p()["user-details-item"],onClick:()=>{n("User profile Telegram link clicked"),P.Z.trackEvent("User Profile Telegram Link Clicked",{user_id:e.user.id})},rel:"noreferrer",children:["@",r.telegramHandle]})]}),(0,w.n)(r.discordUsername)&&""!==r.discordUsername&&(0,s.jsxs)(f.Z,{gap:"small",children:[(0,s.jsx)(v.J,{icon:"discord","aria-hidden":!0}),(0,s.jsx)("span",{"aria-label":"Discord",className:p()["user-details-item"],children:r.discordUsername})]}),!0===r.isAvailableForGigs&&(0,s.jsxs)(f.Z,{gap:"small",children:[(0,s.jsx)(v.J,{icon:"wizard","aria-hidden":!0}),(0,s.jsx)("span",{className:p()["user-details-item"],children:"Wizard taking gigs"})]}),(0,s.jsx)(L,{user:r})]})}let k=e=>{let n=(0,t.useMemo)(()=>(function(e){if(42===e.length)return"".concat(e.slice(0,6),"...").concat(e.slice(-4))})(e.address),[e.address]);return n?(0,s.jsxs)(f.Z,{gap:"small",children:[(0,s.jsx)(v.J,{icon:"ethereum",className:p().icon,"aria-hidden":!0}),(0,s.jsx)(N.iT,{label:e.address,color:"black",className:p().tooltip,position:N.wt,trianglePosition:N.K$,children:(0,s.jsx)("p",{"aria-label":"Ethereum Address",className:p()["user-details-item"],children:n})}),(0,s.jsx)(y.Z,{text:e.address})]}):null},L=e=>{var n;let r=e.user.memberships;return 0===r.length?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(f.Z,{gap:"small",layout:"start-aligned",className:p().teamsRow,children:[(0,s.jsx)(v.J,{icon:"people","aria-hidden":!0,className:p().icon}),(0,s.jsx)("span",{children:"Teams"})]}),(0,s.jsx)(f.Z,{gap:"small",layout:"start-aligned",className:p().teamsRow,children:(0,s.jsx)("div",{className:p().teams,children:r.map(e=>(0,s.jsx)(g(),{href:"/".concat(e.team.handle),children:(0,s.jsx)(N.iT,{label:e.team.name,color:"black",position:N.wt,trianglePosition:N.K$,children:(0,s.jsx)("span",{children:(0,s.jsx)(h.q,{ownerId:e.team.id,handle:e.team.handle,src:null!==(n=e.team.profileImageUrl)&&void 0!==n?n:void 0,size:20,type:"team"})})})},e.team.handle))})})]})};var q=r(39612),T=r(24745);function A(e){return(0,s.jsxs)("ul",{className:_()(u().rightList,e.className),children:[(0,s.jsxs)("li",{children:[(0,s.jsxs)("span",{children:[(0,T.u)(e.receivedStarsCount)," ",1===e.receivedStarsCount?"star":"stars"]}),(0,s.jsx)(v.J,{icon:"star-fill","aria-hidden":!0})]}),(0,s.jsxs)("li",{children:[(0,s.jsxs)("span",{children:[(0,T.u)(e.queriesCount)," ",1===e.queriesCount?"query":"queries"]}),(0,s.jsx)(v.J,{icon:"terminal","aria-hidden":!0})]}),(0,s.jsxs)("li",{children:[(0,s.jsxs)("span",{children:[(0,T.u)(e.dashboardsCount)," ",1===e.dashboardsCount?"dashboard":"dashboards"]}),(0,s.jsx)(v.J,{icon:"dashboard","aria-hidden":!0})]}),(0,s.jsxs)("li",{children:[(0,s.jsxs)("span",{children:[(0,T.u)(e.submittedContractsCount)," ",1===e.submittedContractsCount?"contract":"contracts"]}),(0,s.jsx)(v.J,{icon:"list-nested","aria-hidden":!0})]}),e.firstQueryCreatedDate&&(0,s.jsxs)("li",{children:[(0,s.jsxs)("span",{children:["Wizard since ",(0,q.kE)(e.firstQueryCreatedDate)]}),(0,s.jsx)(v.J,{icon:"plant","aria-hidden":!0})]})]})}var D=r(57831),U=r(54173),F=r(71913);function S(e){var n;let r=(0,D.kP)(),a=(null==r?void 0:null===(n=r.user)||void 0===n?void 0:n.id)===e.userId,t=(0,D.Ck)();return(0,s.jsxs)(f.Z,{layout:"center-aligned",gap:"normal",className:e.className,children:[(0,s.jsx)("h1",{id:e.sectionId,children:e.title}),a&&(0,s.jsx)(f.Z,{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(E,{}),!t&&(0,s.jsx)(U.A,{href:"/pricing",size:"S",theme:"primary-light",children:"Upgrade"})]})})]})}function E(){return(0,s.jsxs)(U.A,{href:"/settings/profile",size:"S",theme:"tertiary",children:["Edit",(0,s.jsx)(F.IconPencilLine,{})]})}function Z(e){var n;let{user:r,dashboardsCount:a,queriesCount:t,contractsCount:i}=e,l="aria-profile";return(0,s.jsx)("section",{"aria-labelledby":l,className:u().profile,children:(0,s.jsxs)("div",{className:u().public,children:[(0,s.jsx)(h.q,{ownerId:r.id,handle:r.name,src:null!==(n=r.profileImageUrl)&&void 0!==n?n:void 0,size:128,type:"user"}),(0,s.jsxs)("div",{className:u()["profile-content"],children:[(0,s.jsx)(S,{className:u()["profile-title"],sectionId:l,userId:r.id,title:r.name}),r&&(0,s.jsx)(I,{className:u()["profile-user-details"],user:r}),(0,s.jsx)(A,{dashboardsCount:a,queriesCount:t,receivedStarsCount:r.receivedStars,firstQueryCreatedDate:r.firstQueryCreatedDate,submittedContractsCount:i})]})]})})}var $=r(27854),z=r(58048),H=r(82733),B=r(36072),J=r(96752);function M(e){let n="aria-".concat(e.userName,"-").concat(e.slug),r="/discover/content/relevant?q=author:".concat(e.userName,"&resource-type=").concat(e.slug),a=(0,J.xA)(e.slug),t=!!e.listElement;return(0,s.jsxs)(H.r,{"aria-labelledby":n,gaps:!0,children:[(0,s.jsx)(B.Q,{id:n,icon:a,text:e.title,children:t&&(0,s.jsxs)(g(),{href:r,prefetch:!1,children:["All ",e.slug,(0,s.jsx)(v.J,{icon:"arrow-right"})]})}),(0,s.jsx)($.b,{children:e.listElement||(0,s.jsx)(Q,{slug:e.slug})})]})}let Q=e=>(0,s.jsx)(z.H,{icon:"circle-fill",children:(0,s.jsxs)("p",{children:["No ",e.slug," yet."]})});var V=r(69896),W=r.n(V),G=r(71429),O=r(13717),R=r(93184);function X(e){return(0,s.jsx)("table",{className:W().table,children:(0,s.jsx)("tbody",{children:e.dashboards.map(n=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:W().avatarColumn,children:(0,s.jsx)(v.J,{icon:"dashboard"})}),(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:W().multiline,children:[(0,s.jsxs)("div",{className:W().nameAndTags,children:[(0,s.jsxs)(g(),{href:"/".concat(e.owner.handle,"/").concat(n.slug),className:W().contentName,children:[n.name,n.isTrending&&(0,s.jsx)("span",{children:"\xa0\uD83D\uDD25"})]}),n.tags.length>0&&(0,s.jsx)(R.$,{className:W().tags,slug:"dashboards",tags:n.tags.slice(0,5)})]}),(0,s.jsxs)("div",{className:W().ownerAndDetails,children:[(0,s.jsxs)(g(),{href:"/".concat(e.owner.handle),children:["@",e.owner.handle]}),(0,s.jsxs)("span",{children:["• created"," ",(0,s.jsx)(G.bM,{children:n.created_at})]})]})]})}),(0,s.jsx)("td",{children:(0,s.jsx)(O.Z,{dashboard_id:n.id,stars:n.favoriteCount,isFavorite:!1,enableFavoriting:!1})})]},n.id))})})}var K=r(23152);function Y(e){return(0,s.jsx)("table",{className:W().table,children:(0,s.jsx)("tbody",{children:e.queries.map(n=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:W().avatarColumn,children:(0,s.jsx)(v.J,{icon:"query"})}),(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:W().multiline,children:[(0,s.jsxs)("div",{className:W().nameAndTags,children:[(0,s.jsx)(g(),{href:"/queries/".concat(n.id),className:W().contentName,children:n.name}),n.tags.length>0&&(0,s.jsx)(R.$,{className:W().tags,slug:"queries",tags:n.tags.slice(0,5)})]}),(0,s.jsxs)("div",{className:W().ownerAndDetails,children:[(0,s.jsxs)(g(),{href:"/".concat(e.owner.handle),children:["@",e.owner.handle]}),(0,s.jsxs)("span",{children:["• created ",(0,s.jsx)(G.bM,{children:n.created_at})]})]})]})}),(0,s.jsx)("td",{children:(0,s.jsx)(K.Z,{query_id:n.id,stars:n.favoriteCount,isFavorite:!1,enableFavoriting:!1})})]},n.id))})})}var ee=r(26657),en=r(82729),er=r(84937);r(76138);var es=r(39137);function ea(){let e=(0,en._)(["\n query UserByHandle($filters: UsersFiltersInput!) {\n users(filters: $filters) {\n edges {\n node {\n id\n name\n profileImageUrl\n bio\n isAvailableForGigs\n discordUsername\n twitterHandle\n telegramHandle\n receivedStars\n firstQueryCreatedDate\n publicEthereumAddress\n cognitoId\n\n memberships(filters: { statuses: { in: [invite_accepted] } }) {\n team {\n id\n name\n handle\n profileImageUrl\n }\n } \n }\n } \n }\n }\n\n query UserProfileData(\n $queryFilters: QueryFilterInput!,\n $pagination: PaginationInput!,\n $orderBy: [OrderByInput!],\n $dashboardFilters: DashboardFilterInput!,\n $contractFilters: ContractSubmissionFiltersInput!,\n $contractPagination: PaginationInput!,\n ) {\n UserQueries: queries(filters: $queryFilters, pagination: $pagination, orderBy: $orderBy) {\n edges {\n node {\n id\n name\n createdAt\n tags\n starCount(timeframe: TIMEFRAME_ALL)\n }\n cursor\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n UserDashboards: dashboards(filters: $dashboardFilters, pagination: $pagination, orderBy: $orderBy) {\n edges {\n node {\n id\n name\n slug\n createdAt\n tags\n starCount(timeframe: TIMEFRAME_ALL)\n isTrending\n }\n cursor\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n UserContracts: contractSubmissions(filters: $contractFilters, pagination: $contractPagination) {\n edges {\n node {\n id\n }\n }\n totalCount\n }\n }\n"]);return ea=function(){return e},e}function et(e){var n,r,s;return{id:e.node.id,name:null!==(n=e.node.name)&&void 0!==n?n:"",slug:e.node.slug,created_at:e.node.createdAt,tags:null!==(r=e.node.tags)&&void 0!==r?r:[],favoriteCount:null!==(s=e.node.starCount)&&void 0!==s?s:0,isTrending:e.node.isTrending}}function ei(e){var n,r;return{id:e.node.id,name:null!==(n=e.node.name)&&void 0!==n?n:"",created_at:e.node.createdAt,tags:null!==(r=e.node.tags)&&void 0!==r?r:[],favoriteCount:e.node.starCount}}(0,es.Z)(ea());var el=r(15490);function eo(e){var n,r,a,c,u,h,m,p;let{user:x}=e,{data:_,loading:f}=function(e){let{id:n,cognitoUserId:r}=e,{data:s,loading:a}=(0,er.Nk_)({variables:{queryFilters:{userId:{equals:n},isTemp:{equals:!1},isArchived:{equals:!1},isPrivate:{equals:!1}},pagination:{first:5},orderBy:[{key:"starsAll",direction:er.eQH.Desc}],dashboardFilters:{userId:{equals:n},isArchived:{equals:!1},isPrivate:{equals:!1}},contractFilters:{cognitoUserId:{equals:r},status:{in:[er.X_x.Processed]}},contractPagination:{first:20}}});return{data:s,loading:a}}({id:x.id,cognitoUserId:x.cognitoId}),v=null==_?void 0:_.UserQueries,j=null==_?void 0:_.UserDashboards,g=null==_?void 0:_.UserContracts.totalCount;return((0,t.useEffect)(()=>{P.Z.trackEvent("User Profile Viewed",{user_id:x.id,username:x.name})},[x]),f)?(0,s.jsx)(el.g,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.yG,{title:"@".concat(x.name),preview:e.preview}),(0,s.jsx)(i.h,{}),(0,s.jsxs)(o.r,{size:"md",children:[(0,s.jsx)(Z,{user:x,dashboardsCount:null!==(n=null==j?void 0:j.totalCount)&&void 0!==n?n:0,queriesCount:null!==(r=null==v?void 0:v.totalCount)&&void 0!==r?r:0,contractsCount:null!=g?g:0},x.id),(0,s.jsx)(ee.L,{}),(0,s.jsx)(M,{userName:x.name,title:1===(m=null!==(a=null==j?void 0:j.totalCount)&&void 0!==a?a:0)?"1 dashboard":"".concat(m," dashboards"),slug:"dashboards",listElement:(0,w.n)(j)&&j.totalCount>0&&(0,s.jsx)(X,{owner:{handle:x.name},dashboards:null!==(c=j.edges.map(et))&&void 0!==c?c:[]})}),(0,s.jsx)(ee.L,{}),(0,s.jsx)(M,{userName:x.name,title:1===(p=null!==(u=null==v?void 0:v.totalCount)&&void 0!==u?u:0)?"1 query":"".concat(p," queries"),slug:"queries",listElement:(0,w.n)(v)&&v.totalCount>0&&(0,s.jsx)(Y,{owner:{handle:x.name},queries:null!==(h=v.edges.map(ei))&&void 0!==h?h:[]})})]}),(0,s.jsx)(l.$,{timestamp:e.timestamp})]})}var ed=r(58765),ec=r(32104),eu=r.n(ec),eh=r(40621),em=r(57864),ep=r(65241),ex=r(30882),e_=r(77747),ef=r(91745),ev=r(26550),ej=r(62810),eg=r(82876);function eb(e){let{mode:n}=(0,eg.v)(),r="dark"===n?(0,ej.ph)(.14,null!=e?e:"#F4603E"):(0,ej.ph)(.96,null!=e?e:"#F4603E");return r}var eC=r(27073),ey=r(1463);function eN(e){var n;let{team:r}=e,[a,i]=(0,t.useState)(null!==(n=r.brandColor)&&void 0!==n?n:"#fff"),l=eb(a);return(0,t.useEffect)(()=>{if(void 0!==r){var e;i(null!==(e=r.brandColor)&&void 0!==e?e:"#F4603E")}},[r.brandColor]),(0,s.jsxs)("div",{className:eu().infoSection,children:[(0,s.jsx)("div",{className:eu().rectangle,style:{"--customColor":l}}),(0,s.jsx)(eP,{props:e}),(0,s.jsx)(ew,{props:e,brandColor:a})]})}function eP(e){var n,r,a;let{props:t}=e,{team:i,people:l}=t,o=l.reduce((e,n)=>{if(n.user){var r;e.push({ownerId:n.user.id,handle:n.user.name,profile_image_url:null!==(r=n.user.profileImageUrl)&&void 0!==r?r:void 0,type:"user"})}return e},[]),d=(0,eC.iP)().width>999;return(0,s.jsxs)("div",{className:eu().leftSide,children:[(0,s.jsx)("h1",{children:null!==(r=i.profileTitle)&&void 0!==r?r:(0,s.jsxs)(s.Fragment,{children:["Community dashboards",(0,s.jsx)("br",{})," and analytics for ",i.name," "]})}),(0,s.jsx)("div",{className:eu().shortBio,children:(0,s.jsx)(b.Z,{componentDecorator:(e,n)=>(0,s.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer nofollow",children:n}),children:i.bio})}),(0,s.jsx)(eh.I,{color:null!==(a=i.brandColor)&&void 0!==a?a:"#F4603E",orientation:"horizontal",children:null===(n=i.tags)||void 0===n?void 0:n.map((e,n)=>(0,s.jsxs)(g(),{href:"/discover/content/relevant?q=".concat(encodeURIComponent(e.includes(" ")?'tags:"'.concat(e,'"'):"tags:".concat(e))),children:["#",e]},n))}),(0,s.jsx)(ed.H,{avatarList:o,size:"M",maxAvatars:d?20:10,suppressHydrationWarning:!0})]})}function ew(e){var n;let{props:r,brandColor:a}=e,{team:t}=r;return(0,s.jsxs)("div",{className:eu().rightSide,children:[(0,s.jsx)(h.q,{ownerId:t.id,handle:t.handle,src:null!==(n=t.profileImageUrl)&&void 0!==n?n:void 0,size:106,type:"team"}),(0,s.jsxs)("div",{className:eu().boxes,children:[(0,s.jsx)(eI,{team:t,brandColor:a}),(0,s.jsx)(ek,{props:r,brandColor:a})]})]})}function eI(e){var n;let{team:r,brandColor:a}=e,t=null!==(n=r.url)&&void 0!==n?n:void 0;return(0,s.jsxs)(eh.I,{color:a,orientation:"horizontal",iconOnly:!0,children:[void 0!==t&&(0,s.jsx)(g(),{href:t,target:"_blank",onClick:()=>{P.Z.trackEvent("Team Profile Team Website Link Clicked",{team_id:r.id})},rel:"noreferrer noopener nofollow",children:(0,s.jsx)(ey.IconHouse,{},"website")}),(0,w.n)(r.twitterHandle)&&(0,s.jsx)(g(),{href:"https://twitter.com/".concat(r.twitterHandle),target:"_blank",onClick:()=>{P.Z.trackEvent("Team Profile Twitter Link Clicked",{team_id:r.id})},rel:"noreferrer noopener",children:(0,s.jsx)(em.IconXTwitter,{},"twitter")}),(0,w.n)(r.telegramHandle)&&(0,s.jsx)(g(),{href:"https://t.me/".concat(r.telegramHandle),target:"_blank",onClick:()=>{P.Z.trackEvent("Team Profile Telegram Link Clicked",{team_id:r.id})},rel:"noreferrer noopener",children:(0,s.jsx)(ep.IconTelegram,{},"telegram")}),(0,w.n)(r.discordUrl)&&(0,s.jsx)(g(),{href:r.discordUrl,target:"_blank",onClick:()=>{P.Z.trackEvent("Team Profile Discord Link Clicked",{team_id:r.id})},rel:"noreferrer noopener",children:(0,s.jsx)(ex.IconDiscord,{},"discord")})]})}function ek(e){let{props:n,brandColor:r}=e,{team:a}=n,t=(0,T.u)(a.receivedStars),i=(0,T.u)(n.queriesCount),l=(0,T.u)(n.dashboardsCount);return(0,s.jsxs)(eh.I,{orientation:"vertical",color:r,children:[(0,s.jsx)(g(),{href:"/discover/content/popular?q=author:".concat(a.handle,"&resource-type=dashboards"),children:(0,s.jsxs)("div",{className:eu().stats,children:[t," ",1===t?"star":"stars",(0,s.jsx)(e_.IconStar,{})]})}),(0,s.jsx)(g(),{href:"/discover/content/relevant?q=author:".concat(a.handle,"&resource-type=queries"),children:(0,s.jsxs)("div",{className:eu().stats,children:[i," ",1===i?"query":"queries",(0,s.jsx)(ef.IconTerminalWindow,{})]})}),(0,s.jsx)(g(),{href:"/discover/content/relevant?q=author:".concat(a.handle,"&resource-type=dashboards"),children:(0,s.jsxs)("div",{className:eu().stats,children:[l," ",1===l?"dashboard":"dashboards",(0,s.jsx)(ev.IconTiles,{})]})})]})}var eL=r(60682),eq=r(61575);function eT(e){var n,r,a,t,i;let{team:l,dashboards:o}=e,{featuredDashboards:d}=(0,eL.E)({teamId:l.id}),c=null!==(n=null==o?void 0:o.edges.map(et))&&void 0!==n?n:[],u=c.length>0,h=eb(null!==(r=l.brandColor)&&void 0!==r?r:void 0),m=(0,eC.iP)().width>999;return void 0!==d&&d.length>0?(0,s.jsxs)("div",{className:eu().content,children:[(0,s.jsxs)("div",{className:eu().title,children:[(0,s.jsx)("h1",{children:"Featured dashboards"}),(0,s.jsx)(g(),{href:"/discover/content/relevant?q=author:".concat(l.handle,"&resource-type=dashboards"),className:eu().allLink,children:m?"See All Dashboards →":"All →"})]}),(0,s.jsx)("table",{className:W().table,children:(0,s.jsx)("tbody",{children:d.map(e=>{var n,r,l,o,d,c;return(0,eq.$K)(e.node.dashboard)&&(0,s.jsxs)("tr",{children:[m&&(0,s.jsx)("td",{className:W().avatarColumn,children:(0,s.jsx)(ev.IconTiles,{})}),(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:W().multiline,children:[(0,s.jsxs)("div",{className:W().nameAndTags,children:[(0,s.jsx)(g(),{href:"/".concat(null!==(a=null===(n=e.node.dashboard.user)||void 0===n?void 0:n.name)&&void 0!==a?a:null===(r=e.node.dashboard.team)||void 0===r?void 0:r.handle,"/").concat(e.node.dashboard.slug),className:W().contentName,children:e.node.dashboard.name}),(0,eq.$K)(e.node.dashboard.tags)&&(0,s.jsx)(R.$,{className:W().tags,slug:"dashboards",tags:e.node.dashboard.tags.slice(0,5)})]}),(0,s.jsxs)("div",{className:W().ownerAndDetails,children:[(0,s.jsxs)(g(),{href:"/".concat(null!==(t=null===(l=e.node.dashboard.user)||void 0===l?void 0:l.name)&&void 0!==t?t:null===(o=e.node.dashboard.team)||void 0===o?void 0:o.handle),children:["@",null!==(i=null===(d=e.node.dashboard.user)||void 0===d?void 0:d.name)&&void 0!==i?i:null===(c=e.node.dashboard.team)||void 0===c?void 0:c.handle]}),(0,s.jsxs)("span",{children:["• created"," ",(0,s.jsx)(G.bM,{children:e.node.dashboard.createdAt})]})]})]})}),(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:eu().favorites,children:[(0,T.u)(e.node.dashboard.starCount),(0,s.jsx)(e_.IconStar,{})]})})]},e.node.dashboard.id)})})})]}):(0,s.jsxs)("div",{className:eu().content,children:[(0,s.jsxs)("div",{className:eu().title,children:[(0,s.jsx)("h1",{children:"Popular dashboards"}),u&&(0,s.jsx)(g(),{href:"/discover/content/relevant?q=author:".concat(l.handle,"&resource-type=dashboards"),className:eu().allLink,children:m?"See All Dashboards →":"All →"})]}),u?(0,s.jsx)(X,{owner:{handle:l.handle},dashboards:c}):(0,s.jsx)("div",{className:eu().emptyState,style:{"--customColor":h},children:"No dashboards yet."})]})}var eA=r(33748),eD=r(36532),eU=r(29570),eF=r(75546);function eS(e){var n,r;let{team:a,queries:t}=e,{featuredVisualizations:i}=(0,eA.u)({teamId:a.id}),l=null!==(n=null==t?void 0:t.edges.map(ei))&&void 0!==n?n:[],o=l.length>0,d=eb(null!==(r=a.brandColor)&&void 0!==r?r:void 0),c={"--customColor":d},u=(0,eC.iP)().width>999;return void 0!==i&&i.length>0?(0,s.jsxs)("div",{className:eu().content,children:[(0,s.jsxs)("div",{className:eu().title,children:[(0,s.jsx)("h1",{children:"Featured charts"}),(0,s.jsx)(g(),{href:"/discover/content/relevant?q=author:".concat(a.handle,"&resource-type=queries"),className:eu().allLink,children:u?"See All Queries →":"All →"})]}),(0,s.jsx)("div",{className:eu().featuredCharts,children:i.map(e=>(0,eq.$K)(e.node.visualization)&&(0,s.jsx)(eE,{visualization:{...e.node.visualization,type:e.node.visualization.type},query:{...e.node.visualization.query,owner:function(e){var n,r,s,a;let{user:t,team:i}=e;return(0,eq.$K)(t)?{type:"user",id:t.id,handle:t.name,profile_image_url:null!==(n=t.profileImageUrl)&&void 0!==n?n:null}:{type:"team",id:null!==(r=null==i?void 0:i.id)&&void 0!==r?r:-1,handle:null!==(s=null==i?void 0:i.handle)&&void 0!==s?s:"",profile_image_url:null!==(a=null==i?void 0:i.profileImageUrl)&&void 0!==a?a:null}}({user:e.node.visualization.query.user,team:e.node.visualization.query.team})},customStyle:c},e.node.visualization.id))})]}):(0,s.jsxs)("div",{className:eu().content,children:[(0,s.jsxs)("div",{className:eu().title,children:[(0,s.jsx)("h1",{children:"Popular queries"}),o&&(0,s.jsx)(g(),{href:"/discover/content/relevant?q=author:".concat(a.handle,"&resource-type=queries"),className:eu().allLink,children:u?"See All Queries →":"All →"})]}),o?(0,s.jsx)(Y,{owner:{handle:a.handle},queries:l}):(0,s.jsx)("div",{className:eu().emptyState,style:c,children:"No queries yet."})]})}function eE(e){var n,r;let{visualization:a,query:t,customStyle:i}=e,l=(0,eF.b)(a.queryId,t.parameters,{can_refresh:!0});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:eu().featuredChartTitle,children:[(0,s.jsx)(g(),{href:"queries/".concat(a.queryId,"/").concat(a.id),className:eu().queryName,children:t.name}),(0,s.jsx)("hr",{className:eu().spacer,style:i,"aria-hidden":!0}),(0,s.jsxs)(g(),{href:"queries/".concat(a.queryId,"/").concat(a.id),className:eu().queryLink,children:["...see SQL query →"," "]})]}),(0,s.jsx)("div",{className:eu().visualItem,children:(0,s.jsx)(eD.cp,{visual:{type:a.type,id:a.queryId,name:a.name,options:a.options},queryId:a.queryId,queryDescription:{formatted:(0,eU.U)(null!==(r=null!==(n=(0,eq.Rs)(a.description))&&void 0!==n?n:t.description)&&void 0!==r?r:"",t.parameters)},owner:t.owner,result:l,watermark:!1,transparent:!0,className:eu().featuredChart},a.id)})]})}var eZ=r(85101);function e$(e){var n;let{team:r}=e,a={"--customColor":null!==(n=r.brandColor)&&void 0!==n?n:"#F4603E"};return null===r.longDescription||void 0===r.longDescription?null:(0,s.jsxs)("div",{className:eu().longDescription,children:[(0,s.jsxs)("h1",{children:["About ",r.name]}),(0,s.jsx)("hr",{className:eu().divider,style:a}),(0,s.jsx)("div",{className:eu().content,children:(0,s.jsx)(eZ.U,{className:eu().description,validateLinks:!1,children:r.longDescription})})]})}function ez(){let e=(0,en._)(["\n query TeamQueries($filters: QueryFilterInput!, $pagination: PaginationInput!, $orderBy: [OrderByInput!]) {\n queries(filters: $filters, pagination: $pagination, orderBy: $orderBy) {\n edges {\n node {\n id\n name\n createdAt\n tags\n starCount(timeframe: TIMEFRAME_ALL)\n }\n cursor\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n }\n\n query TeamDashboards($filters: DashboardFilterInput!, $pagination: PaginationInput!, $orderBy: [OrderByInput!]) {\n dashboards(filters: $filters, pagination: $pagination, orderBy: $orderBy) {\n edges {\n node {\n id\n name\n slug\n createdAt\n tags\n starCount(timeframe: TIMEFRAME_ALL)\n isTrending\n }\n cursor\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n }\n"]);return ez=function(){return e},e}function eH(e){var n,r;let{team:a}=e,l=function(e){let{id:n}=e,{data:r}=(0,er.Lgn)({variables:{filters:{teamId:{equals:n},isTemp:{equals:!1},isArchived:{equals:!1},isPrivate:{equals:!1}},pagination:{first:5},orderBy:[{key:"starsAll",direction:er.eQH.Desc}]}});return null==r?void 0:r.queries}({id:a.id}),o=function(e){let{id:n}=e,{data:r}=(0,er.AH_)({variables:{filters:{teamId:{equals:n},isArchived:{equals:!1},isPrivate:{equals:!1}},pagination:{first:5},orderBy:[{key:"starsAll",direction:er.eQH.Desc}]}});return null==r?void 0:r.dashboards}({id:a.id});return(0,t.useEffect)(()=>{P.Z.trackEvent("Team Profile Viewed",{team_id:a.id,team_handle:a.handle})},[a]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.yG,{title:a.name,preview:e.preview}),(0,s.jsx)(i.h,{}),(0,s.jsxs)("div",{className:eu().page,children:[(0,s.jsx)(eN,{team:a,queriesCount:null!==(n=null==l?void 0:l.totalCount)&&void 0!==n?n:0,dashboardsCount:null!==(r=null==o?void 0:o.totalCount)&&void 0!==r?r:0,people:a.members}),(0,s.jsx)(eT,{team:a,dashboards:o}),(0,s.jsx)(eS,{team:a,queries:l}),void 0!==a.longDescription&&(0,s.jsx)(e$,{team:a})]})]})}(0,es.Z)(ez());var eB=!0;let eJ=e=>"user"in e?(0,s.jsx)(eo,{...e}):"team"in e?(0,s.jsx)(eH,{...e}):(0,s.jsx)(a.NotFoundPage,{});var eM=eJ},29570:function(e,n,r){"use strict";r.d(n,{U:function(){return s}});let s=(e,n)=>{let r=null!=e?e:"";return n?r.replace(/\{\{(.+?)\}\}/g,(e,r)=>{let s=n.find(e=>e.key===r);return s?!0===s.isMultiselect?String(s.values):s.value:e}):r}},69896:function(e){e.exports={table:"ContentList_table__ezPEU",avatarColumn:"ContentList_avatarColumn__U1KUi",multiline:"ContentList_multiline__pwNrv",contentName:"ContentList_contentName__OAzIv",ownerAndDetails:"ContentList_ownerAndDetails__0cucp",nameAndTags:"ContentList_nameAndTags__gtiaT",badges:"ContentList_badges__D2NOb",favorites:"ContentList_favorites__A_J3c",rightContainer:"ContentList_rightContainer__5pPzJ",actions:"ContentList_actions__AnpKh",threeDotMenu:"ContentList_threeDotMenu__Vqf_d",tags:"ContentList_tags__cgYZj"}},49327:function(e){e.exports={empty:"empty_empty__jXF_3"}},42258:function(e){e.exports={footer:"footer_footer__PZD4d"}},65297:function(e){e.exports={cell:"cell_cell__mXiWb",scrollable:"cell_scrollable__lFh_I",overflowVisible:"cell_overflowVisible__OfidB","height-sm":"cell_height-sm__an7lM","span3-sm":"cell_span3-sm__pH4rE","span4-sm":"cell_span4-sm__mc8G2","span5-sm":"cell_span5-sm__5Dc2s","span6-sm":"cell_span6-sm__yIO6Y","span7-sm":"cell_span7-sm__zD7sZ","span8-sm":"cell_span8-sm__gUnbl","span9-sm":"cell_span9-sm__ZjtrG","span3-md":"cell_span3-md__UYoQD","span4-md":"cell_span4-md__k9IWp","span5-md":"cell_span5-md__7_D_X","span6-md":"cell_span6-md__7bduD","span7-md":"cell_span7-md__N9Aa_","span8-md":"cell_span8-md__Wb6Wf","span9-md":"cell_span9-md___z3HG","span3-lg":"cell_span3-lg__Z9ag3","span4-lg":"cell_span4-lg__Xu2rN","span5-lg":"cell_span5-lg__jHWnq","span6-lg":"cell_span6-lg___7TsH","span7-lg":"cell_span7-lg__WsH2O","span8-lg":"cell_span8-lg__8pZjp","span9-lg":"cell_span9-lg__CfZYC","span3-xl":"cell_span3-xl__LxcWj","span4-xl":"cell_span4-xl__9jZ0f","span5-xl":"cell_span5-xl__nhXoS","span6-xl":"cell_span6-xl__zvjFn","span7-xl":"cell_span7-xl__Dd_di","span8-xl":"cell_span8-xl__cMOQe","span9-xl":"cell_span9-xl__1qCDC"}},25026:function(e){e.exports={box:"Boxes_box__O8Alw","orientation-horizontal":"Boxes_orientation-horizontal__0BFqM","orientation-vertical":"Boxes_orientation-vertical__U5u97",iconOnly:"Boxes_iconOnly__HSwwD"}},32104:function(e){e.exports={page:"TeamProfilePage_page__Ko0Ps",infoSection:"TeamProfilePage_infoSection__ovqSp",rectangle:"TeamProfilePage_rectangle__6egHo",leftSide:"TeamProfilePage_leftSide__erxvv",rightSide:"TeamProfilePage_rightSide__JEVkt",boxes:"TeamProfilePage_boxes__EsmNE",shortBio:"TeamProfilePage_shortBio__5o0Mq",stats:"TeamProfilePage_stats__9_WQ3",content:"TeamProfilePage_content__MAdAP",title:"TeamProfilePage_title___xjpA",longDescription:"TeamProfilePage_longDescription__LPfy2",allLink:"TeamProfilePage_allLink__mBgxI",emptyState:"TeamProfilePage_emptyState__hxT9v",visualItem:"TeamProfilePage_visualItem__w2VuZ",divider:"TeamProfilePage_divider__x7YFd",description:"TeamProfilePage_description__FRBRT",favorites:"TeamProfilePage_favorites__qZNk9",featuredCharts:"TeamProfilePage_featuredCharts__JRnkM",featuredChart:"TeamProfilePage_featuredChart__RMwM9",featuredChartTitle:"TeamProfilePage_featuredChartTitle__1gF1F",queryName:"TeamProfilePage_queryName__lnsls",queryLink:"TeamProfilePage_queryLink__fnSc8",spacer:"TeamProfilePage_spacer__s56bg"}},94100:function(e){e.exports={"user-details":"UserDetails_user-details__Jphwq",bio:"UserDetails_bio__GiaKh",icon:"UserDetails_icon__soS99","user-details-item":"UserDetails_user-details-item__ppZY1",tooltip:"UserDetails_tooltip__TloGj",teamsRow:"UserDetails_teamsRow__Vkjs6",teams:"UserDetails_teams__ngY8n"}},69015:function(e){e.exports={profile:"UserProfile_profile__Y_UoE",public:"UserProfile_public__TwzIv","profile-content":"UserProfile_profile-content__TBtsd","profile-title":"UserProfile_profile-title__6PBsL","profile-user-details":"UserProfile_profile-user-details__DZE82",vcardAndStats:"UserProfile_vcardAndStats__6ZQE2",vcard:"UserProfile_vcard__iNOWy",leftList:"UserProfile_leftList__51a3W",rightList:"UserProfile_rightList__bfuhc",bioLengthWarning:"UserProfile_bioLengthWarning__RPDtg",avatarWrapper:"UserProfile_avatarWrapper__pXA0x",buttonAlwaysVisible:"UserProfile_buttonAlwaysVisible__3Ilro",private:"UserProfile_private__EQYb9"}},12610:function(e){e.exports={spacer:"spacer_spacer__rHLjf",xs:"spacer_xs__tVaSO",sm:"spacer_sm__3KCxc",lg:"spacer_lg__XTXnI","at-sm":"spacer_at-sm__xulkb","at-md":"spacer_at-md__ftoNe","at-lg":"spacer_at-lg__kBWNu","at-xl":"spacer_at-xl__XZAS4"}},82034:function(e){e.exports={subtitle:"subtitle_subtitle__lIjgw",icon:"subtitle_icon__C0_m2",text:"subtitle_text__9KW4v",spacer:"subtitle_spacer__dTLJ8"}},99292:function(e){e.exports={avatarGroup:"AvatarGroup_avatarGroup__Zzhwu",avatarsList:"AvatarGroup_avatarsList__aL00A",element:"AvatarGroup_element__9Ky8Y",avatarWrapper:"AvatarGroup_avatarWrapper__fDvax"}}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[9225,3318,8110,3295,777,6746,3829,1403,2810,3731,1444,9002,9938,9694,4974,1434,6532,9774,2888,179],function(){return n(73611),n(9104)}),_N_E=e.O()}]);
//# sourceMappingURL=[slug]-cd363cc580b5bcc2.js.map