1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[536],{1536:function(e,t,r){r.d(t,{Z:function(){return X}});var n=r(5893),a=r(7294),s=r(6512),l=r(1664),i=r.n(l),o=r(8193),c=r(3750),d=r(674),u=r(7128),m=r(4447),x=r(5675),h=r.n(x);function b(e){var t=e.onlyIcon;return void 0!==t&&t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"dark:hidden relative h-5 w-5",children:(0,n.jsx)(h(),{src:"/icon_light.svg",alt:"xDevHub",width:20,height:20,layout:"responsive"})}),(0,n.jsx)("div",{className:"hidden dark:block relative h-5 w-5",children:(0,n.jsx)(h(),{src:"/icon_dark.svg",alt:"xDevHub",width:20,height:20,layout:"responsive"})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"dark:hidden relative h-9 w-auto",children:(0,n.jsx)(h(),{src:"/logo_light.svg",alt:"xDevHub",width:120,height:36,layout:"intrinsic"})}),(0,n.jsx)("div",{className:"hidden dark:block relative h-9 w-auto",children:(0,n.jsx)(h(),{src:"/logo_dark.svg",alt:"xDevHub",width:120,height:36,layout:"intrinsic"})})]})}var p=r(6893),f=[{label:"Github",href:"https://github.com/ElrondDevGuild",icon:p.uOf},{label:"Docs",href:"https://elrond-dev-guild.gitbook.io/scrolls/",icon:p.yK7}];function v(){return(0,n.jsx)("div",{className:"flex items-center space-x-4 sm:space-x-5",children:f.map((function(e,t){return(0,n.jsx)("a",{href:e.href,target:"_blank",rel:"noreferrer",children:(0,n.jsx)(e.icon,{className:"text-xl text-primary dark:text-primary-dark"})},t)}))})}var k=r(4051),g=r.n(k),j=r(9583),y=r(7735),w=r(7206),N=r(7516),I=function(e){var t=e.link,r=e.children;return t.onClick?(0,n.jsx)("span",{onClick:t.onClick,className:t.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer",children:r}):(null===t||void 0===t?void 0:t.disabled)?(0,n.jsx)("span",{className:"opacity-50 cursor-not-allowed",children:r}):t.openInNewTab?(0,n.jsx)("a",{href:t.url,target:"_blank",rel:"noreferrer",className:"cursor-pointer",children:r}):(0,n.jsx)(i(),{href:t.url,className:"cursor-pointer",children:r})};function C(e){var t=e.title,r=e.links;return(0,n.jsxs)("div",{children:[t&&(0,n.jsx)("div",{className:"uppercase text-primary dark:text-primary-dark font-semibold text-xs mb-4 ",children:t}),(0,n.jsx)("ul",{className:"flex flex-col space-y-4",children:null===r||void 0===r?void 0:r.map((function(e,t){return console.log(e),e.customComponent&&e.icon?(0,n.jsx)("li",{children:e.icon()},t):(0,n.jsx)(I,{link:e,children:(0,n.jsxs)("li",{className:"flex items-center font-medium text-sm text-theme-text dark:text-theme-text-dark relative hover:!text-theme-text cursor-pointer",children:[(0,n.jsx)("span",{className:"pr-2",children:(0,n.jsx)(e.icon,{className:"text-lg"})}),e.label,!e.onClick&&(0,n.jsx)(N.lU2,{className:"absolute right-0 sm:hidden "})," "]})},t)}))})]})}function T(e){var t=e.onClose,r=(0,a.useState)(""),s=r[0],l=r[1],i=(0,a.useState)(!1),o=i[0],c=i[1],d=(0,a.useState)(""),u=d[0],x=d[1];return(0,n.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-60 flex items-center justify-center p-4 z-50",onClick:t,children:(0,n.jsxs)("div",{className:"bg-secondary dark:bg-secondary-dark rounded-xl shadow-xl p-6 md:p-8 max-w-md w-full border border-theme-border/30 dark:border-theme-border-dark/30 relative",onClick:function(e){return e.stopPropagation()},children:[(0,n.jsx)("button",{onClick:t,className:"absolute top-4 right-4 text-theme-text dark:text-theme-text-dark hover:text-primary dark:hover:text-primary-dark","aria-label":"Close modal",children:(0,n.jsx)(p.q5L,{className:"w-6 h-6"})}),(0,n.jsxs)("div",{className:"text-center mb-6",children:[(0,n.jsx)(p.Imn,{className:"w-12 h-12 text-primary dark:text-primary-dark mx-auto mb-3"}),(0,n.jsx)("h2",{className:"text-2xl font-bold text-theme-title dark:text-theme-title-dark",children:"Subscribe to our Newsletter"}),(0,n.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:"Stay updated with the latest MultiversX developer news."})]}),(0,n.jsxs)("form",{onSubmit:function(e){if(e.preventDefault(),x(""),s)if(o){var r=new URL("https://maiar.us20.list-manage.com/subscribe/post?u=67e841fc441e7b5962cb3ccb7&id=bbea3985f8&f_id=00bd0aeaf0");r.searchParams.set("EMAIL",s),window.open(r.toString(),"_blank"),setTimeout((function(){t()}),2e3)}else x("Please consent to data sharing.");else x("Please enter a valid email address.")},className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{htmlFor:"mce-EMAIL",className:"block font-medium text-sm text-theme-text dark:text-theme-text-dark mb-1",children:["Email Address ",(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,n.jsx)("input",{type:"email",name:"EMAIL",id:"mce-EMAIL",value:s,onChange:function(e){return l(e.target.value)},required:!0,className:"bg-white dark:bg-gray-800 block w-full focus:outline-none text-theme-text dark:text-theme-text-dark border border-theme-border dark:border-theme-border-dark focus-within:ring-1 focus-within:ring-primary focus-within:border-primary dark:focus-within:ring-primary-dark dark:focus-within:border-primary-dark font-medium text-sm rounded-md px-3 py-2",placeholder:"[email protected]"})]}),(0,n.jsxs)("div",{className:"flex items-start",children:[(0,n.jsx)("input",{id:"consent-checkbox",type:"checkbox",checked:o,onChange:function(e){return c(e.target.checked)},className:"h-4 w-4 text-primary dark:text-primary-dark focus:ring-primary border-gray-300 dark:border-gray-600 rounded mt-0.5"}),(0,n.jsxs)("label",{htmlFor:"consent-checkbox",className:"ml-2 block text-xs text-gray-500 dark:text-gray-400",children:["I consent to sharing my email address with Mailchimp for newsletter purposes. ",(0,n.jsx)("span",{className:"text-red-500",children:"*"})]})]}),u&&(0,n.jsx)("div",{className:"text-sm p-2 rounded text-center bg-red-100 dark:bg-red-900/50 text-red-700 dark:text-red-300",children:u}),(0,n.jsx)(m.Z,{label:"Subscribe",icon:p.AlO,class:"w-full justify-center"}),(0,n.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 text-center mt-2",children:"You'll be redirected to complete your subscription"})]})]})})}function S(e,t,r,n,a,s,l){try{var i=e[s](l),o=i.value}catch(c){return void r(c)}i.done?t(o):Promise.resolve(o).then(n,a)}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1)))),n.forEach((function(t){O(e,t,r[t])}))}return e}var D=null,R={links:[{label:"Library",url:d.$x,icon:p.m6D},{label:"Tool Index [\ud83c\udd95]",url:"/toolindex",icon:p.cov},{label:"Bounties [\ud83c\udd95]",url:"/bounties",icon:p.E33},{label:"Team Finder [\ud83c\udd95]",url:"/team-finder",icon:p.WY8},{label:"Monthly L..Board [\ud83c\udd95]",url:d.D0,icon:p.SnF,disabled:!0},{label:"",url:"#",icon:function(){return(0,n.jsx)("div",{className:"w-full flex items-center my-2",children:(0,n.jsx)("div",{className:"h-px bg-gradient-to-r from-transparent via-gray-300 dark:via-gray-600 to-transparent flex-grow"})})},customComponent:!0},{label:"Full Shard Podcast \u2197\ufe0f",url:"https://www.youtube.com/@FullShardPodcast",icon:p.cZY,openInNewTab:!0},{label:"Momentum Podcast \u2197\ufe0f",url:"https://youtube.com/playlist?list=PLQVcheGWwBRVIDczUGjpx60NDfBEWl7xh&feature=shared",icon:p.cZY,openInNewTab:!0},{label:"Growth Games \u2197\ufe0f",url:"https://multiversx.com/growthgames",icon:p.LSm,disabled:!1,openInNewTab:!0},{label:"",url:"#",icon:function(){return(0,n.jsx)("div",{className:"w-full flex items-center my-2",children:(0,n.jsx)("div",{className:"h-px bg-gradient-to-r from-transparent via-gray-300 dark:via-gray-600 to-transparent flex-grow"})})},customComponent:!0},{label:"Newsletter",url:"#",icon:p.Imn,onClick:function(){return null===D||void 0===D?void 0:D(!0)}},{label:"Jobs",url:"#",icon:p.ggF,openInNewTab:!0,disabled:!0}]},Z={title:"Reference",links:[{label:"Docs",url:"https://docs.multiversx.com/",icon:p.AlO,openInNewTab:!0},{label:"sdk-js",url:"https://docs.multiversx.com/sdk-and-tools/sdk-js/",icon:p.AlO,openInNewTab:!0},{label:"mxpy",url:"https://github.com/multiversx/mx-sdk-py-cli",icon:p.AlO,openInNewTab:!0},{label:"Validator Node",url:"https://docs.multiversx.com/validators/overview",icon:p.AlO,openInNewTab:!0}]},A={title:"dev hub",links:[{label:"Source Code",url:"https://github.com/ElrondDevGuild/elrond-dev-hub",icon:p.uOf,openInNewTab:!0},{label:"Feedback",url:"https://forms.gle/oyen4QTVpJoPgmZi8",icon:p.bcx,openInNewTab:!0},{label:"Contact",url:"https://twitter.com/egldhub",icon:p.EQ9,openInNewTab:!0},{label:"Analytics",url:"https://plausible.io/xdevhub.com",icon:y.t4e,openInNewTab:!0}]},E={links:[{label:"Getting Started",url:d.KH,icon:p.hbr},{label:"Dev Group",url:"https://t.me/MultiversXDevelopers",openInNewTab:!0,icon:j.AGi},{label:"Ask Questions",url:"https://stackoverflow.com/questions/tagged/multiversx",openInNewTab:!0,icon:j.Hjm}]};function L(){var e=(0,a.useState)(null),t=e[0],r=e[1],s=(0,a.useState)(!1),l=s[0],i=s[1];(0,a.useEffect)((function(){return D=i,function(){D=null}}),[i]);var o={"Smart Contracts":p.LSm,Frontend:p.AlO,Backend:p.j8v,Tools:p.ggF,Tutorials:p.hbr,Libraries:p.QoU,Articles:p.QoU,Videos:p.AlO,Podcasts:p.cZY,Courses:p.hbr,Projects:p.ggF,Others:p.rdp,"Dev Tools":p.V7f},c=p.QoU;return(0,a.useEffect)((function(){var e;(e=g().mark((function e(){var t,n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.h.get("categories");case 3:t=e.sent.data,n=null===t||void 0===t?void 0:t.map((function(e){var t=o[e.title]||c;return{label:e.title,url:(0,d.cw)(e),icon:t}})),r({title:"Categories",links:n});case 6:return e.prev=6,e.finish(6);case 8:case"end":return e.stop()}}),e,null,[[0,,6,8]])})),function(){var t=this,r=arguments;return new Promise((function(n,a){var s=e.apply(t,r);function l(e){S(s,n,a,l,i,"next",e)}function i(e){S(s,n,a,l,i,"throw",e)}l(void 0)}))})()}),[]),l,(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"mb-8",children:(0,n.jsx)(C,P({},R))}),(0,n.jsx)("div",{className:"mb-8",children:(0,n.jsx)(m.Z,{label:"+ Add Resource",href:d.rR})}),(0,n.jsx)("div",{className:"mb-8",children:(0,n.jsx)(C,P({},E))}),t&&(0,n.jsx)("div",{className:"mb-8",children:(0,n.jsx)(C,P({},t))}),(0,n.jsx)("div",{className:"mb-8",children:(0,n.jsx)(C,P({},Z))}),(0,n.jsx)("div",{className:"mb-8",children:(0,n.jsx)(C,P({},A))}),l&&(0,n.jsx)(T,{onClose:function(){return i(!1)}})]})}var M=r(1163);function _(){var e=(0,M.useRouter)();return(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:"relative rounded-md",children:[(0,n.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,n.jsx)(o.RB5,{className:"h-5 w-5 text-theme-text dark:text-theme-text-dark","aria-hidden":"true"})}),(0,n.jsx)("input",{type:"text",className:"block w-full pl-10 sm:text-sm border-0.5 border-theme-border dark:border-theme-border-dark rounded-md bg-transparent text-theme-text dark:text-theme-text-dark placeholder:text-theme-text placeholder:dark:text-theme-text-dark",placeholder:"Search...",onKeyUp:function(t){"Enter"===t.key&&(t.preventDefault(),t.target.value&&e.push((0,d.gx)(t.target.value)))}})]})})}function F(){var e=(0,a.useState)(),t=e[0],r=e[1];(0,a.useEffect)((function(){var e=new u.J;r(e.theme)}),[]);var l=function(){var e=new u.J;e.theme===u.Q.LIGHT?(e.changeTheme(u.Q.DARK),r(u.Q.DARK)):(e.changeTheme(u.Q.LIGHT),r(u.Q.LIGHT))};return(0,n.jsx)(s.p,{as:"nav",className:"bg-white dark:bg-secondary-dark border-b-0.5 border-theme-border dark:border-theme-border-dark",children:function(e){var r=e.open;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"px-8",children:(0,n.jsxs)("div",{className:"flex items-center justify-between h-14 sm:h-24 max-w-screen-xl mx-auto",children:[(0,n.jsx)("div",{className:"sm:w-1/4",children:(0,n.jsx)(i(),{href:d.$x,children:(0,n.jsxs)("div",{className:"flex-shrink-0 cursor-pointer",children:[(0,n.jsx)("div",{className:"hidden sm:block",children:(0,n.jsx)(b,{})}),(0,n.jsx)("div",{className:"sm:hidden",children:(0,n.jsx)(b,{onlyIcon:!0})})]})})}),(0,n.jsx)("div",{className:"sm:w-2/4 hidden sm:block px-8",children:(0,n.jsx)(_,{})}),(0,n.jsxs)("div",{className:"sm:ml-6 sm:w-1/4 flex items-center space-x-4 sm:sp
1ace-x-5 justify-end",children:[(0,n.jsx)("button",{onClick:l,className:"text-primary dark:text-primary-dark",children:t===u.Q.DARK?(0,n.jsx)(c.UD2,{}):(0,n.jsx)(c.mox,{})}),(0,n.jsx)(v,{}),(0,n.jsx)(m.Z,{label:"+ Add Resource",href:d.rR}),(0,n.jsx)("div",{className:"-mr-2 flex sm:hidden",children:(0,n.jsxs)(s.p.Button,{className:"inline-flex items-center justify-center rounded-md text-primary dark:text-primary-dark",children:[(0,n.jsx)("span",{className:"sr-only",children:"Open main menu"}),r?(0,n.jsx)(o.oHP,{className:"block h-6 w-6","aria-hidden":"true"}):(0,n.jsx)(o.qTj,{className:"block h-6 w-6","aria-hidden":"true"})]})})]})]})}),(0,n.jsx)(s.p.Panel,{className:"sm:hidden absolute w-full bg-secondary dark:bg-secondary-dark bg-opacity-60 dark:bg-opacity-60 z-20 flex justify-end",children:(0,n.jsx)("div",{className:"bg-secondary dark:bg-secondary-dark w-4/5 px-8 pt-8 pb-32 h-screen overflow-y-scroll overscroll-contain",children:(0,n.jsx)(L,{})})})]})}})}var J=r(1904);function G(e,t,r,n,a,s,l){try{var i=e[s](l),o=i.value}catch(c){return void r(c)}i.done?t(o):Promise.resolve(o).then(n,a)}var Q=(0,J.eI)("https://drrvwekofcaixwojhpoq.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRycnZ3ZWtvZmNhaXh3b2pocG9xIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTY1NTk4MTkzMiwiZXhwIjoxOTcxNTU3OTMyfQ.ceFiaoLhy7uv4N8XQ4y6lWfxJfMWgaSlIk_CJdD-nVk"),U=function(){var e=(0,a.useState)({expertsCount:0,articlesCount:0,bountiesCount:0}),t=e[0],r=e[1],s=(0,a.useState)(!0),l=s[0],i=s[1];(0,a.useEffect)((function(){var e=function(){var e,t=(e=g().mark((function e(){var t,n,a,s,l,o,c,d,u;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i(!0),e.prev=1,e.next=4,Q.from("x_bounties").select("*",{count:"exact",head:!0}).not("published_at","is",null);case 4:if(t=e.sent,n=t.count,!(a=t.error)){e.next=9;break}throw a;case 9:return e.next=11,Q.from("resources").select("*",{count:"exact",head:!0});case 11:if(s=e.sent,l=s.count,!(o=s.error)){e.next=16;break}throw o;case 16:return e.next=18,Q.from("x_developers").select("*",{count:"exact",head:!0}).not("published_at","is",null);case 18:if(c=e.sent,d=c.count,!(u=c.error)){e.next=23;break}throw u;case 23:r({bountiesCount:n||0,articlesCount:l||0,expertsCount:d||0}),e.next=29;break;case 26:e.prev=26,e.t0=e.catch(1),console.error("Error fetching platform stats:",e.t0);case 29:return e.prev=29,i(!1),e.finish(29);case 32:case"end":return e.stop()}}),e,null,[[1,26,29,32]])})),function(){var t=this,r=arguments;return new Promise((function(n,a){var s=e.apply(t,r);function l(e){G(s,n,a,l,i,"next",e)}function i(e){G(s,n,a,l,i,"throw",e)}l(void 0)}))});return function(){return t.apply(this,arguments)}}();e()}),[]);var o=[{title:"MultiversX Experts",value:t.expertsCount,icon:p.WY8,color:"text-blue-500 dark:text-blue-400",bgColor:"bg-blue-100 dark:bg-blue-900/20"},{title:"Articles & Guides",value:t.articlesCount,icon:p.NOg,color:"text-purple-500 dark:text-purple-400",bgColor:"bg-purple-100 dark:bg-purple-900/20"},{title:"Active Bounties",value:t.bountiesCount,icon:p.zFh,color:"text-orange-500 dark:text-orange-400",bgColor:"bg-orange-100 dark:bg-orange-900/20"}];return(0,n.jsxs)("div",{className:"rounded-lg border border-theme-border dark:border-theme-border-dark bg-white dark:bg-secondary-dark shadow-sm",children:[(0,n.jsx)("div",{className:"px-4 py-3 border-b border-theme-border dark:border-theme-border-dark flex items-center justify-between",children:(0,n.jsxs)("h3",{className:"text-base font-semibold text-theme-title dark:text-theme-title-dark flex items-center",children:[(0,n.jsx)(p.QqI,{className:"w-4 h-4 mr-2 text-green-500"}),"Platform Statistics"]})}),(0,n.jsx)("div",{className:"p-4",children:l?(0,n.jsx)("div",{className:"flex justify-center items-center h-24",children:(0,n.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-primary dark:border-primary-dark"})}):(0,n.jsx)("ul",{className:"space-y-3",children:o.map((function(e,t){return(0,n.jsx)("li",{className:"flex items-center justify-between",children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("div",{className:"p-2 rounded-md ".concat(e.bgColor," mr-3 flex-shrink-0"),children:(0,n.jsx)(e.icon,{className:"w-4 h-4 ".concat(e.color)})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:e.title}),(0,n.jsx)("p",{className:"font-medium text-gray-800 dark:text-gray-200",children:e.value.toLocaleStr
1ing()})]})]})},t)}))})})]})};function H(e,t,r,n,a,s,l){try{var i=e[s](l),o=i.value}catch(c){return void r(c)}i.done?t(o):Promise.resolve(o).then(n,a)}var V=(0,J.eI)("https://drrvwekofcaixwojhpoq.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRycnZ3ZWtvZmNhaXh3b2pocG9xIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTY1NTk4MTkzMiwiZXhwIjoxOTcxNTU3OTMyfQ.ceFiaoLhy7uv4N8XQ4y6lWfxJfMWgaSlIk_CJdD-nVk"),z=function(){var e=(0,a.useState)({totalProjects:0,activeRepos:0,totalCommits:0}),t=e[0],r=e[1],s=(0,a.useState)(!0),l=s[0],i=s[1];(0,a.useEffect)((function(){var e=function(){var e,t=(e=g().mark((function e(){var t,n,a,s,l,o;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i(!0),e.prev=1,e.next=4,V.from("leaderboard_projects").select("*",{count:"exact",head:!0});case 4:if(t=e.sent,n=t.count,!(a=t.error)){e.next=9;break}throw a;case 9:return e.next=11,V.from("leaderboard_projects").select("*",{count:"exact",head:!0}).not("published_at","is",null);case 11:if(s=e.sent,l=s.count,!(o=s.error)){e.next=16;break}throw o;case 16:r({totalProjects:n||0,activeRepos:l||0,totalCommits:"a lot, soon the value"}),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(1),console.error("Error fetching activity stats:",e.t0);case 23:return e.prev=23,i(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[1,20,23,26]])})),function(){var t=this,r=arguments;return new Promise((function(n,a){var s=e.apply(t,r);function l(e){H(s,n,a,l,i,"next",e)}function i(e){H(s,n,a,l,i,"throw",e)}l(void 0)}))});return function(){return t.apply(this,arguments)}}();e()}),[]);var o=(new Date).toLocaleString("default",{month:"long"}),c=[{title:"Registered Projects",value:t.totalProjects,icon:p.xqv,color:"text-indigo-500 dark:text-indigo-400",bgColor:"bg-indigo-100 dark:bg-indigo-900/20"},{title:"Active Repositories",value:t.activeRepos,icon:p.Vn2,color:"text-green-500 dark:text-green-400",bgColor:"bg-green-100 dark:bg-green-900/20",suffix:" in ".concat(o)},{title:"Total GitHub Commits",value:t.totalCommits,icon:p.Wqx,color:"text-teal-500 dark:text-teal-400",bgColor:"bg-teal-100 dark:bg-teal-900/20",isHighlight:!0}];return(0,n.jsxs)("div",{className:"rounded-lg border border-theme-border dark:border-theme-border-dark bg-white dark:bg-secondary-dark shadow-sm",children:[(0,n.jsx)("div",{className:"px-4 py-3 border-b border-theme-border dark:border-theme-border-dark flex items-center justify-between",children:(0,n.jsxs)("h3",{className:"text-base font-semibold text-theme-title dark:text-theme-title-dark flex items-center",children:[(0,n.jsx)(p.bAx,{className:"w-4 h-4 mr-2 text-red-500"}),"Developer Activity (in progress)"]})}),(0,n.jsx)("div",{className:"p-4",children:l?(0,n.jsx)("div",{className:"flex justify-center items-center h-24",children:(0,n.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-primary dark:border-primary-dark"})}):(0,n.jsx)("ul",{className:"space-y-3",children:c.map((function(e,t){return(0,n.jsx)("li",{className:"flex items-center justify-between",children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("div",{className:"p-2 rounded-md ".concat(e.bgColor," mr-3 flex-shrink-0"),children:(0,n.jsx)(e.icon,{className:"w-4 h-4 ".concat(e.color)})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:[e.title,e.suffix&&(0,n.jsx)("span",{className:"text-xs italic ml-1",children:e.suffix})]}),(0,n.jsx)("p",{className:"font-medium ".concat(e.isHighlight?"text-lg text-primary dark:text-primary-dark":"text-gray-800 dark:text-gray-200"),children:e.value.toLocaleString()})]})]})},t)}))})})]})};function X(e){var t=e.hideRightBar,r=void 0!==t&&t,s=e.children,l=(0,a.useMemo)((function(){return r?{leftColumn:"hidden sm:block sm:w-1/4 md:w-3/12 lg:w-2/12",centerColumn:"w-full sm:w-3/4 md:w-9/12 lg:w-10/12 sm:px-8",rightColum:"hidden"}:{leftColumn:"hidden sm:block sm:w-1/4 md:w-3/12 lg:w-2/12",centerColumn:"w-full sm:w-3/4 md:w-9/12 lg:w-7/12 sm:pl-8 lg:px-8",rightColum:"hidden sm:w-3/12 lg:block"}}),[r]);return(0,n.jsxs)("div",{children:[(0,n.jsx)(F,{}),(0,n.jsx)("div",{className:"px-8",children:(0,n.jsxs)("div",{className:"max-w-screen-xl mx-auto flex",children:[(0,n.jsx)("div",{className:"".concat(l.leftColumn," py-10 border-theme-border dark:border-theme-border-dark main-content-height overflow-y-auto"),children:(0,n.jsx)(L,{})}),(0,n.jsx)("main",{className:"".concat(l.centerColumn," pb-32 pt-10 sm:pb-10 main-content-height overflow-y-auto"),children:s}),(0,n.jsx)("div",{className:"".concat(l.rightColum," py-10 px-2 main-content-height overflow-y-auto"),children:(0,n.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,n.jsx)(U,{}),(0,n.jsx)(z,{})]})})]})}),(0,n.jsx)("div",{className:"sm:hidden fixed bottom-0 left-0 w-full px-8 py-4 bg-secondary dark:bg-secondary-dark shadow-sm z-50",children:(0,n.jsx)(_,{})})]})}},4447:function(e,t,r){r.d(t,{Z:function(){return d}});var n=r(5893),a=r(1664),s=r.n(a),l=r(7294);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1)))),n.forEach((function(t){i(e,t,r[t])}))}return e}var c=function(e){var t=(0,l.useMemo)((function(){return"secondary"===e.theme?"bg-transparent text-theme-text dark:text-theme-text-dark border-theme-text dark:border-theme-text-dark":"bg-primary dark:bg-primary-dark text-secondary dark:text-secondary-dark border-transparent"}),[null===e||void 0===e?void 0:e.theme]);return(0,n.jsxs)("button",{disabled:null===e||void 0===e?void 0:e.disabled,onClick:e.onClick,className:"".concat(t," ").concat(e.class," border font-medium text-xs sm:text-sm py-2 px-4 rounded-md transition-opacity ease-in-out hover:opacity-80 flex items-center disabled:opacity-80 disabled:cursor-not-allowed"),children:[e.icon&&(0,n.jsx)("span",{className:"pr-2",children:(0,n.jsx)(e.icon,{})})," ",e.label]})};function d(e){return(null===e||void 0===e?void 0:e.href)?e.href.startsWith("http")?(0,n.jsx)("a",{href:e.href,target:"_blank",rel:"noreferrer",children:(0,n.jsx)(c,o({},e))}):(0,n.jsx)(s(),{href:e.href,children:(0,n.jsx)("a",{children:(0,n.jsx)(c,o({},e))})}):(0,n.jsx)(c,o({},e))}},7206:function(e,t,r){r.d(t,{h:function(){return l}});var n=r(9669),a=r.n(n),s=r(4155),l=a().create({baseURL:"/api/"});a().create({baseURL:"".concat(s.env.VERCEL_URL,"/api")})},674:function(e,t,r){r.d(t,{$x:function(){return n},D0:function(){return o},KH:function(){return l},cw:function(){return s},gx:function(){return i},rR:function(){return a}});var n="/",a="/submit",s=function(e){return e?"/list?category=".concat("number"===typeof e?e:e.id):"/list"},l="/getting-started",i=function(e){return e?"/search?q=".concat(e):"/search"},o="/monthly-leaderboard"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.