"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6936],{12762:function(e,a,t){t.d(a,{R:function(){return g}});var n=t(32223),r=t(94449),o=t(61250),c=(t(29901),t(83849)),l=t.n(c),s=t(34260),i=t.n(s),d=t(16753),u=t(75683),p=t(55321);function m(e){var a=e.tag,t=e.className,c=e.buttonProps,l=void 0===c?{}:c;return(0,o.jsx)(i(),{href:(0,p.uZ)(a),passHref:!0,prefetch:!1,children:(0,o.jsxs)(d.zx,(0,r.Z)((0,n.Z)({tag:"a",size:u.qE.XSmall,variant:u.Wu.Float,className:t},l),{children:["#",a]}))},a)}function g(e){var a=e.tags,t=e.className,n=void 0===t?{}:t,r=e.buttonProps;return 0===a.length?null:(0,o.jsx)("div",{className:l()("flex flex-wrap gap-2",null===n||void 0===n?void 0:n.container),children:a.map((function(e){return(0,o.jsx)(m,{tag:e,className:null===n||void 0===n?void 0:n.tag,buttonProps:r},e)}))})}},50906:function(e,a,t){t.d(a,{l:function(){return u}});var n,r=t(32223),o=t(94449),c=t(61250),l=t(29901),s=t(75619);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},i.apply(this,arguments)}var d=function(e){return l.createElement("svg",i({width:"1em",height:"1em",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),n||(n=l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 13.605A5.333 5.333 0 108 2.938a5.333 5.333 0 000 10.667zm1.213-8.672a.494.494 0 00-.812-.517L4.944 7.922a.494.494 0 00.35.843H7.82l-1.034 2.844a.494.494 0 00.812.518l3.456-3.507a.494.494 0 00-.348-.842H8.179l1.034-2.845z",fill:"currentcolor"})))},u=function(e){return(0,c.jsx)(s.ZP,(0,o.Z)((0,r.Z)({},e),{IconPrimary:d,IconSecondary:d}))}},86936:function(e,a,t){t.d(a,{$:function(){return S}});var n=t(32223),r=t(61250),o=(t(29901),t(83849)),c=t.n(o),l=t(49006),s=t(71815),i=t(27072),d=t(66613),u=t(87364),p=t(50906),m=t(49570),g=t(58147),x=t(75619);function f(e){var a=e.amount,t=e.Icon,n=e.label,o=e.iconClassName;return(0,r.jsxs)("span",{className:"flex flex-row items-center gap-1",children:[(0,r.jsx)("strong",{children:(0,r.jsx)("h2",{className:"text-white typo-title3",children:(0,g.r)(a)})}),(0,r.jsx)(t,{size:x.Jh.XSmall,secondary:!0,className:o}),(0,r.jsx)("span",{className:"text-raw-salt-90 typo-caption2",children:n})]})}function v(e){var a=e.user,t=e.className,n=e.articlesRead;return(0,r.jsxs)("span",{className:c()("flex w-full flex-row gap-3 rounded-16 bg-raw-pepper-90 p-4 shadow-2",t),children:[(0,r.jsx)(f,{amount:a.reputation,label:"Reputation",iconClassName:"text-raw-onion-40",Icon:p.l}),(0,r.jsx)(f,{amount:n,label:"Posts read",iconClassName:"text-raw-cabbage-40",Icon:m.t})]})}var h=t(80880),Z=t(12762),w=t(75683),j=t(36258),b=t(72215),N=t(70813);function y(e){var a=e.type,t=e.tags,n=e.sources,o=e.theme,l=e.shouldShowLogo,s=void 0===l||l,i=e.elementsClickable,d=void 0===i||i;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Z.R,{buttonProps:{variant:w.Wu.Secondary},className:{container:c()("max-h-[3.5rem] overflow-hidden",a===h.gj.Horizontal&&"pb-3",!s&&"justify-center px-2",!d&&"pointer-events-none"),tag:c()("typo-caption1",(0,N.jN)(o,h.oh.Iron)?"border-white text-white":"border-raw-pepper-90 text-raw-pepper-90",a===h.gj.Vertical&&"!leading-[1.375rem]")},tags:t}),(0,r.jsx)("div",{className:c()("flex h-6 flex-row gap-1",!d&&"pointer-events-none"),children:null===n||void 0===n?void 0:n.map((function(e){return(0,r.jsx)(j.Z,{source:e,size:"small"},e.name)}))}),s&&(0,r.jsx)("span",{className:c()("absolute bottom-0 right-0 rounded-br-24 rounded-tl-24 bg-raw-pepper-90 px-4 py-3",!d&&"pointer-events-none"),children:(0,r.jsx)(b.Z,{showGreeting:!1,position:b.y.Relative})})]})}function z(e){var a,t=e.theme,n=e.className,o=e.children,l=null!==(a=h.zA[t])&&void 0!==a?a:h.zA.default;return(0,r.jsx)("div",{className:c()("flex h-fit rounded-[32px] p-2",n),style:{background:l},children:o})}var C=t(95335);function I(e){var a=e.devcard,t=e.coverImage;return a?(0,r.jsx)("div",{className:"flex w-[62.5rem] flex-row justify-end bg-cover px-20 py-12",style:{backgroundImage:"url(".concat(t,")")},children:(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)(z,{theme:h.oh.Default,className:"max-w-[21.25rem]",children:(0,r.jsxs)("div",{className:"flex w-full flex-col-reverse items-center gap-4 rounded-24 p-3",style:{boxShadow:h.uS},children:[(0,r.jsx)(v,{user:a.user,articlesRead:a.articlesRead}),(0,r.jsx)(y,{shouldShowLogo:!1,theme:a.theme,type:h.gj.Compact,sources:a.sources,tags:a.tags})]})}),(0,r.jsxs)("p",{className:"font-white mt-5 flex flex-row gap-1 text-center typo-callout",children:["Based on my activity on ",(0,r.jsx)(b.Z,{})]})]})}):null}function S(e){var a=e.type,t=void 0===a?h.gj.Vertical:a,o=e.userId,p=e.isInteractive,m=void 0===p||p,g=(0,C.t)(o),x=null!==g&&void 0!==g?g:{},f=x.devcard,Z=x.isLoading,w=x.coverImage;if(Z||!f)return null;if(t.toLowerCase()===h.gj.Twitter.toLowerCase())return(0,r.jsx)(I,(0,n.Z)({},g));var j=f.theme,b=f.user,S=f.articlesRead,P=f.tags,k=f.sources,D=f.showBorder,H=t===h.gj.Horizontal,L=t===h.gj.Vertical,R=(0,N.jN)(j,h.oh.Iron),B=(0,N.jN)(j,h.oh.Default),A=(0,r.jsx)(y,{tags:P,sources:k,type:t,theme:j,elementsClickable:m});return(0,r.jsx)(z,{theme:j,className:c()("m-4",!H&&"w-[20.25rem] flex-col"),children:(0,r.jsxs)(u.Z,{condition:H,wrapper:function(e){return(0,r.jsx)(h.yg,{className:"flex w-[37.75rem] flex-row-reverse pl-2",style:{boxShadow:h.uS},children:e})},children:[(0,r.jsx)(u.Z,{condition:H,wrapper:function(e){return(0,r.jsxs)(h.yg,{className:"flex w-full max-w-[20.25rem] flex-col gap-4",children:[e,(0,r.jsx)("div",{className:"relative mt-4 flex flex-col gap-4 p-2",children:A})]})},children:(0,r.jsxs)("div",{className:c()("relative flex flex-col bg-cover p-2 pb-10",H?"rounded-32 border-8 border-raw-salt-90":"rounded-12"),style:{backgroundImage:"url(".concat(w,")")},children:[t!==h.gj.Horizontal&&(0,r.jsx)(h.yg,{className:"absolute -inset-2 border-8 border-raw-salt-90"}),(0,r.jsx)("img",{src:b.image,alt:"avatar of ".concat(b.name),className:c()("-rotate-3 border-white object-cover",D&&(H?"border-4":"border-8"),{"size-40 rounded-48":L,"size-24 rounded-32":H,"size-20 rounded-24":t===h.gj.Compact})}),(0,r.jsx)(v,{className:"absolute bottom-0 left-0 translate-y-1/2",articlesRead:S,user:b})]})}),(0,r.jsxs)("div",{className:c()("relative flex flex-1 flex-col justify-center gap-3 p-4",t!==h.gj.Horizontal&&"mt-4 rounded-b-24 pt-8"),style:{boxShadow:t!==h.gj.Horizontal?h.uS:void 0},children:[(0,r.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,r.jsx)("h2",{className:c()("font-bold",R?"text-white":"text-raw-pepper-90",H?"line-clamp-2 typo-mega2":"line-clamp-1 typo-title2"),children:b.name}),(0,r.jsxs)("div",{className:c()("line-clamp-1 flex items-center",R&&"text-white",B&&"text-raw-pepper-10",!R&&!B&&"text-raw-pepper-90",H?"typo-callout":"typo-footnote"),children:[(0,r.jsxs)("span",{className:c()("overflow-hidden text-ellipsis",L?"shrink":"max-w-36"),children:["@",b.username]}),(0,r.jsx)(l.Z0,{}),(0,r.jsx)(i.t,{date:b.createdAt,type:s.lf.Post,className:c()("typo-caption1",R&&"text-white",B&&"text-raw-pepper-10/[.64]",!R&&!B&&"text-raw-pepper-90")})]}),H&&(0,r.jsx)(d.i,{className:c()("my-2",(B||R)&&"opacity-32",R?"!bg-raw-salt-90":"!bg-raw-pepper-90")}),(0,r.jsx)("p",{className:c()(R?"text-white":"text-raw-pepper-90",H?"line-clamp-6 typo-callout":"line-clamp-2 typo-caption1"),children:b.bio})]}),t!==h.gj.Horizontal&&(0,r.jsx)(d.i,{className:c()((B||R)&&"opacity-32",R?"!bg-raw-salt-90":"!bg-raw-pepper-90")}),t!==h.gj.Horizontal&&A]})]})})}},80880:function(e,a,t){t.d(a,{Gl:function(){return g},aN:function(){return m},gj:function(){return n},oh:function(){return r},uS:function(){return i},yg:function(){return s},zA:function(){return p}});var n,r,o,c=t(53417),l=t(81382),s=(0,t(92745).Z)("div","rounded-32"),i="1px 1px 1px rgb(0 0 0 /30%)";!function(e){e.Vertical="DEFAULT",e.Horizontal="WIDE",e.Compact="COMPACT",e.Twitter="X"}(n||(n={})),function(e){e.Default="default",e.Iron="iron",e.Bronze="bronze",e.Silver="silver",e.Gold="gold",e.Platinum="platinum",e.Diamond="diamond",e.Legendary="legendary"}(r||(r={}));var d,u,p=(o={},(0,c.Z)(o,r.Default,"linear-gradient(0deg, ".concat(l.Z.salt[0],", ").concat(l.Z.salt[0],"), linear-gradient(152.83deg, ").concat(l.Z.salt[0]," 51.92%, ").concat(l.Z.salt[20]," 85.8%)")),(0,c.Z)(o,r.Iron,"linear-gradient(135.48deg, ".concat(l.Z.pepper[10]," 0%, ").concat(l.Z.pepper[90]," 20%, ").concat(l.Z.pepper[10]," 47.5%, ").concat(l.Z.pepper[50]," 67%, ").concat(l.Z.pepper[90]," 83%, ").concat(l.Z.pepper[10]," 100%),\n")+"linear-gradient(180deg, ".concat(l.Z.salt[20]," 0%, ").concat(l.Z.salt[10]," 85.42%)")),(0,c.Z)(o,r.Bronze,"linear-gradient(135.48deg, ".concat(l.Z.burger[10]," 0%, ").concat(l.Z.burger[40]," 20%, ").concat(l.Z.bun[10]," 47.5%, ").concat(l.Z.burger[10]," 67%, ").concat(l.Z.burger[40]," 83%, ").concat(l.Z.burger[10]," 100%),\n")+"linear-gradient(180deg, ".concat(l.Z.salt[20]," 0%, ").concat(l.Z.salt[10]," 85.42%)")),(0,c.Z)(o,r.Silver,"linear-gradient(135.11deg, ".concat(l.Z.salt[90]," 0%, ").concat(l.Z.salt[10]," 18%, ").concat(l.Z.salt[50]," 31.5%, ").concat(l.Z.salt[0]," 49.19%, ").concat(l.Z.salt[50]," 61.5%, ").concat(l.Z.salt[90]," 78.5%, ").concat(l.Z.salt[50]," 95.5%),\n")+"linear-gradient(180deg, ".concat(l.Z.salt[20]," 0%, ").concat(l.Z.salt[10]," 85.42%)")),(0,c.Z)(o,r.Gold,"linear-gradient(135deg, ".concat(l.Z.bun[10]," 0%, ").concat(l.Z.cheese[10]," 27.5%, ").concat(l.Z.bun[10]," 50%, ").concat(l.Z.cheese[10]," 75%, ").concat(l.Z.bun[10]," 100%),\n")+"linear-gradient(180deg, ".concat(l.Z.salt[20]," 0%, ").concat(l.Z.salt[10]," 85.42%)")),(0,c.Z)(o,r.Platinum,"linear-gradient(135.18deg, ".concat(l.Z.avocado[10]," 0%, ").concat(l.Z.blueCheese[10]," 24.16%, ").concat(l.Z.water[10]," 40%, ").concat(l.Z.avocado[10]," 71.33%, ").concat(l.Z.water[10]," 100%),\n")+"linear-gradient(180deg, ".concat(l.Z.salt[20]," 0%, ").concat(l.Z.salt[10]," 85.42%)")),(0,c.Z)(o,r.Diamond,"linear-gradient(135.18deg, ".concat(l.Z.cabbage[10]," 0%, ").concat(l.Z.onion[10]," 24.16%, ").concat(l.Z.water[10]," 40%, ").concat(l.Z.onion[10]," 71.33%, ").concat(l.Z.cabbage[10]," 100%),\n")+"linear-gradient(180deg, ".concat(l.Z.salt[20]," 0%, ").concat(l.Z.salt[10]," 85.42%)")),(0,c.Z)(o,r.Legendary,"linear-gradient(135.18deg, ".concat(l.Z.ketchup[10]," 0%, ").concat(l.Z.bacon[10]," 24.16%, ").concat(l.Z.bun[10]," 40%, ").concat(l.Z.bacon[10]," 71.33%, ").concat(l.Z.ketchup[10]," 100%),\n")+"linear-gradient(180deg, ".concat(l.Z.salt[20]," 0%, ").concat(l.Z.salt[10]," 85.42%)")),o),m=(d={},(0,c.Z)(d,r.Default,10),(0,c.Z)(d,r.Iron,20),(0,c.Z)(d,r.Bronze,50),(0,c.Z)(d,r.Silver,100),(0,c.Z)(d,r.Gold,500),(0,c.Z)(d,r.Platinum,1e3),(0,c.Z)(d,r.Diamond,5e3),(0,c.Z)(d,r.Legendary,1e4),d),g=(u={},(0,c.Z)(u,n.Vertical,"vertical"),(0,c.Z)(u,n.Horizontal,"horizontal"),(0,c.Z)(u,n.Twitter,"x"),u)},66613:function(e,a,t){t.d(a,{i:function(){return l}});var n=t(61250),r=(t(29901),t(83849)),o=t.n(r),c=(0,t(92745).Z)("span","bg-theme-divider-primary"),l=function(e){var a=e.className,t=e.vertical;return void 0!==t&&t?(0,n.jsx)(c,{className:o()(a,"h-5 w-px")}):(0,n.jsx)(c,{className:o()(a,"h-px w-full")})}},95335:function(e,a,t){t.d(a,{t:function(){return p}});var n=t(70755),r=t(3818),o=t.n(r),c=t(2067),l=t(48038),s=t(47761),i=t(38788),d=t(58477),u=t(3284),p=function(e){var a,t=(0,d.Y)().requestMethod,r=(0,c.a)((0,l.e0)(l.dt.DevCard,{id:e}),(0,n.Z)(o().mark((function a(){var n;return o().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t(s.B3,i.XX,{id:e});case 2:return n=a.sent,a.abrupt("return",n.devCard);case 4:case"end":return a.stop()}}),a)}))),{staleTime:l.R.Default,enabled:!!e}),p=r.data,m=r.isLoading,g=null!==p&&void 0!==p?p:{},x=g.isProfileCover,f=g.user;return{devcard:p,isLoading:m,coverImage:null!==(a=x?f.cover:void 0)&&void 0!==a?a:u.n.devcard.defaultCoverImage}}},58147:function(e,a,t){function n(e){for(var a=e,t=0;a>=1e3;)a/=1e3,t+=1;if(t>0){var n=a%1;return a.toFixed(n>=0&&n<.1?0:1)+["","K","M","B","T"][t]}return a.toString()}t.d(a,{r:function(){return n}})}}]);