1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1189],{81189:function(e,r,t){t.r(r),t.d(r,{default:function(){return d}});var o=t(85893),l=t(14640),n=t(25675),a=t.n(n),s=t(67294);let i={2:{boxColor:"#FF7C96",boxHeight:"5.75rem",orderBoxColor:"#FFA577",fontSize:"4rem"},1:{avatarScale:1.5,boxColor:"#6A80EC",boxHeight:"8.125rem",orderBoxColor:"#0D6DFC",fontSize:"5rem"},3:{boxColor:"#FFA577",boxHeight:"4.25rem",orderBoxColor:"#C57BF3",fontSize:"3rem"}};function c(e){let{order:r,username:t,avatar:l,avatarScale:n,point:s,boxColor:i,boxHeight:c,fontSize:d,orderBoxColor:x}=e,f=6.5*(n||1);return(0,o.jsxs)("div",{className:"flex flex-col items-center",children:[(0,o.jsxs)("div",{className:"flex justify-center items-center w-fit h-fit relative mb-4",style:{width:"".concat(f,"rem"),height:"".concat(f,"rem")},children:[(0,o.jsx)("div",{className:"relative rounded-full overflow-hidden w-full h-full",children:(0,o.jsx)(a(),{className:"rounded-full",src:l,alt:"",fill:!0,sizes:"96px",style:{objectFit:"cover",objectPosition:"center"}})}),(0,o.jsx)("div",{className:"absolute flex justify-center items-center -bottom-2.5 w-5 h-5 rounded-full overflow-hidden",style:{backgroundColor:x},children:(0,o.jsx)("span",{className:"text-xs font-black",children:r})})]}),(0,o.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-0.5 items-center text-center",children:[(0,o.jsx)("div",{className:"text-[1.063rem] font-medium overflow-hidden truncate max-w-[30vw] min-w-[180px]",children:t}),(0,o.jsx)("b",{className:"text-[1.313rem] font-extrabold",children:s})]}),(0,o.jsx)("div",{className:"w-[110px] lg:w-[8.125rem] rounded-t-[0.875rem] flex justify-center items-center font-extrabold text-white",style:{boxShadow:"0 0 100px 0 ".concat(i),backgroundColor:i,height:c},children:(0,o.jsx)("span",{className:"text-nowrap truncate overflow-hidden",style:{fontSize:d},children:r})})]})]})}function d(e){let{data:r}=e;(0,l.useTranslations)();let t=(0,s.useMemo)(()=>{let e=[];return Array.isArray(r)&&(e=r),[e.find(e=>2===e.order),e.find(e=>1===e.order),e.find(e=>3===e.order)].filter(Boolean)},[r]);return(0,o.jsx)("div",{className:"w-full h-full flex justify-center items-center text-white rounded-2xl overflow-hidden relative px-2 mt-2",children:(0,o.jsx)("div",{className:"flex items-end lg:gap-3.5 bottom-0",children:null==t?void 0:t.map((e,r)=>{let t=null==i?void 0:i[e.order];return(0,o.jsx)(c,{order:e.order,username:e.name,avatar:e.avatar,point:e.xp,avatarScale:t.avatarScale,boxColor:t.boxColor,boxHeight:t.boxHeight,fontSize:t.fontSize,orderBoxColor:t.orderBoxColor},"lb-".concat(r,"-").concat(e.order))})})})}}}]);
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.