PageSourceSearch

https://clays.bar/_next/static/chunks/pages/clays-to-kit/_variants…/pl-profile-window-row-f5d3d2f8161ff88c.js

js clays.bar collected 2026-09-29 14:23:18 UTC 5,215 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="418aa0b7-6879-4180-9907-72b0d6ed96e1",e._sentryDebugIdIdentifier="sentry-dbid-418aa0b7-6879-4180-9907-72b0d6ed96e1")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3012],{71526:function(e,a,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/clays-to-kit/_variants/personalised-leaderboard/components/pl-profile-window-row",function(){return r(25338)}])},25338:function(e,a,r){"use strict";r.r(a),r.d(a,{default:function(){return i}});var t=r(57194),s=r(52676),n=r(75271),l=r(14927),d=r(86438),o=r(33486),c=r(59692);function i(e){var a=e.payload,r=e.index,i=e.topPlayerScore,u=a||{},f=u.public_id,m=u.nickname,x=u.accuracy,b=u.rank,N=u.score,p=u.venue,h=(0,t._)(n.useState(!1),2),g=h[0],w=h[1],_=f===(0,d.useRouter)().query.profile;return n.useEffect(()=>{w(!0);var e=setTimeout(()=>{var e=document.querySelector(".user-row");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},700);return()=>clearTimeout(e)},[]),(0,s.jsxs)(l.E.tr,{initial:{opacity:0,y:-20},animate:g?{opacity:1,y:0}:{},transition:{duration:.4,delay:.5+.03*r,type:"spring",stiffness:_?100:50},className:"hover:bg-dawn/10 transition-all duration-300 ".concat(_?"bg-dawn/20 user-row":r%2==0?"bg-[#FFEAE7]":"bg-dark-text-dark-green/5"),children:[(0,s.jsx)(o.pj,{className:"text-center",children:(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-8 h-8 rounded-full ".concat(_?"bg-dawn":"bg-dark-text-dark-green/10"),children:(0,s.jsx)("span",{className:_?"text-[#FFEAE7] font-bold":"text-dark-green",children:b})})}),(0,s.jsx)(o.pj,{children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("div",{className:"relative ".concat(_?"animate-ping-slow":""),children:[(0,s.jsx)("img",{src:"https://api.dicebear.com/9.x/micah/svg?seed=".concat(m),alt:m,className:"w-10 h-10 rounded-full ".concat(_?"border border-dawn ring-2 ring-dawn/50":"border border-dark-text-dark-green/20")}),_&&(0,s.jsx)("div",{className:"absolute -top-1 -right-1 w-4 h-4 bg-dawn rounded-full border border-[#FFEAE7]"})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start",children:[(0,s.jsx)("span",{className:"font-semibold ".concat(_?"text-dark-green font-bold":"text-dark-green"),children:m}),(0,s.jsx)("p",{className:"text-xs font-medium text-dark-green/80",children:p})]}),_&&(0,s.jsx)("span",{className:"ml-2 text-xs bg-dawn text-[#FFEAE7] px-2 py-0.5 rounded-full",children:"YOU"})]})}),(0,s.jsxs)(o.pj,{className:"text-right font-mono h-full font-bold text-dawn",children:[(100*x).toFixed(1),"%"]}),(0,s.jsxs)(o.pj,{className:"text-right",children:[(0,s.jsx)("div",{className:"font-mono text-lg ".concat(_?"font-bold text-dawn":"font-semibold text-dark-green"),children:N}),(0,s.jsxs)("div",{className:"flex items-center justify-end text-xs text-dark-green/60 mt-1",children:[(0,s.jsx)(c.Z,{className:"w-3 h-3 mr-1"}),i-N]})]})]},f)}},33486:function(e,a,r){"use strict";r.d(a,{RM:function(){return i},SC:function(){return u},iA:function(){return o},pj:function(){return m},ss:function(){return f},xD:function(){return c}});var t=r(72646),s=r(25659),n=r(52676),l=r(75271),d=r(63292),o=l.forwardRef((e,a)=>{var r=e.className,l=(0,s._)(e,["className"]);return(0,n.jsx)("div",{className:"relative w-full overflow-auto",children:(0,n.jsx)("table",(0,t._)({ref:a,className:(0,d.cn)("w-full caption-bottom text-sm",r)},l))})});o.displayName="Table";var c=l.forwardRef((e,a)=>{var r=e.className,l=(0,s._)(e,["className"]);return(0,n.jsx)("thead",(0,t._)({ref:a,className:(0,d.cn)("[&_tr]:border-b",r)},l))});c.displayName="TableHeader";var i=l.forwardRef((e,a)=>{var r=e.className,l=(0,s._)(e,["className"]);return(0,n.jsx)("tbody",(0,t._)({ref:a,className:(0,d.cn)("[&_tr:last-child]:border-0",r)},l))});i.displayName="TableBody",l.forwardRef((e,a)=>{var r=e.className,l=(0,s._)(e,["className"]);return(0,n.jsx)("tfoot",(0,t._)({ref:a,className:(0,d.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r)},l))}).displayName="TableFooter";var u=l.forwardRef((e,a)=>{var r=e.className,l=(0,s._)(e,["className"]);return(0,n.jsx)("tr",(0,t._)({ref:a,className:(0,d.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r)},l))});u.displayName="TableRow";var f=l.forwardRef((e,a)=>{var r=e.className,l=(0,s._)(e,["className"]);return(0,n.jsx)("th",(0,t._)({ref:a,className:(0,d.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",r)},l))});f.displayName="TableHead";var m=l.forwardRef((e,a)=>{var r=e.className,l=(0,s._)(e,["className"]);return(0,n.jsx)("td",(0,t._)({ref:a,className:(0,d.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",r)},l))});m.displayName="TableCell",l.forwardRef((e,a)=>{var r=e.className,l=(0,s._)(e,["className"]);return(0,n.jsx)("caption",(0,t._)({ref:a,className:(0,d.cn)("mt-4 text-sm text-muted-foreground",r)},l))}).displayName="TableCaption"}},function(e){e.O(0,[4927,2888,9774,179],function(){return e(e.s=71526)}),_N_E=e.O()}]);

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.