PageSourceSearch

https://www.superliga.ro/_next/static/chunks/8802-b92546e2c599aa84.js

js superliga.ro collected 2026-10-02 21:00:05 UTC 8,351 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8802],{1917:(e,t,s)=>{s.d(t,{A:()=>g});var l=s(37876),a=s(63602),n=s(26712),i=s(83397),r=s(14232);function o(e){var t;let{placement:s,points:a}=e;return(0,l.jsxs)(l.Fragment,{children:[null!=s&&-1!==s&&(0,l.jsx)("span",{className:"rounded-full bg-gradient-to-r ".concat(null!=(t=["from-yellow-400 to-orange-500","from-gray-400 to-gray-600","from-amber-600 to-orange-600"][s])?t:"from-slate-400 to-slate-500","\n                      px-3 py-1 text-xs font-bold text-white shadow-lg"),children:"Locul ".concat(s+1)}),null!=a&&(0,l.jsxs)("span",{className:"rounded-full bg-gradient-to-r ".concat(a>=10?"from-green-500 to-emerald-600":a>=5?"from-blue-500 to-sky-600":"from-rose-500 to-red-600","\n                      px-3 py-1 text-xs font-bold text-white shadow-lg"),children:[a," puncte"]})]})}var c=s(57512),d=s(99350);let u={fresh:{bg:"bg-emerald-100",txt:"text-emerald-700",ring:"ring-emerald-400/40"},today:{bg:"bg-lime-100",txt:"text-lime-700",ring:"ring-lime-400/40"},week:{bg:"bg-sky-100",txt:"text-sky-700",ring:"ring-sky-400/40"},month:{bg:"bg-amber-100",txt:"text-amber-700",ring:"ring-amber-400/40"},year:{bg:"bg-gray-100",txt:"text-gray-700",ring:"ring-gray-400/40"}};function x(e){var t;let{isoUTC:s}=e,{txt:a,tone:n}=(0,c.oU)(s),{bg:i,txt:r,ring:o}=null!=(t=u[n])?t:u.year;return(0,l.jsxs)("span",{role:"status","aria-label":"Widget age: ".concat(a),className:"\n        inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-semibold\n        shadow-sm backdrop-blur-sm ring-1 ".concat(i," ").concat(r," ").concat(o,"\n        transition transform duration-200 ease-out hover:scale-105\n      "),children:[(0,l.jsx)(d.A,{className:"h-3.5 w-3.5 opacity-80","aria-hidden":"true"}),(0,l.jsx)("span",{children:a})]})}function g(e){var t,s,c;let{widget:d,lastUpdatedAt:u,isUserLoggedIn:g,needsAuth:m=!0,onParticipate:h}=e,f=(null==d||null==(t=d.images)?void 0:t.main)||"/images/logo-circle.jpg",{hide:p,show:b,isOpen:j}=(0,i.useDisclosure)(),v=m&&!g?b:h,w=g&&m,{data:y,status:N,refetch:k}=(0,i.useQuery)("/user/widgets/leaderboard/".concat(d.sportalId),{enabled:w}),P=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{if(P.current){P.current=!1;return}k()},[u,k]),(0,l.jsxs)("div",{className:"relative w-full max-w-md h-96 flex flex-col overflow-hidden rounded-2xl border bg-white shadow-sm",children:[(0,l.jsxs)("div",{className:"absolute inset-x-3 top-3 z-10 flex items-center justify-between",children:[(0,l.jsx)("div",{className:"flex gap-3",children:w&&"success"===N&&(0,l.jsx)(o,{placement:null==y?void 0:y.placement,points:null==y||null==(s=y.userDocument)?void 0:s.points})}),(0,l.jsx)(x,{isoUTC:null==d?void 0:d.createdAt})]}),(0,l.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,l.jsx)(a._V,{src:f,alt:null!=(c=null==d?void 0:d.title)?c:"Widget preview",extraClass:"rounded-t w-full h-full",fallback:"/images/logo-circle.jpg",imgProps:{extraClass:"object-cover"}})}),(0,l.jsx)("div",{className:"font-bold text-base mb-2 p-2 text-gray-700",children:null==d?void 0:d.title}),(0,l.jsx)("div",{className:"mt-auto flex",children:(0,l.jsxs)("button",{onClick:v,className:"w-full flex items-center justify-center gap-2 rounded-b bg-red-600 py-2 text-white hover:bg-rose-800",children:[(0,l.jsx)("i",{className:"fa fa-arrow-right"}),"Participă"]})}),(0,l.jsx)(n.zC,{isOpen:j,show:b,hide:p})]})}},28802:(e,t,s)=>{s.d(t,{A:()=>m});var l=s(37876),a=s(26712),n=s(83397),i=s(75032),r=s(14232);function o(e){let{items:t,visible:s=3,gap:a=16,hasNextPage:n=!1,onReachEnd:o,className:d="",...u}=e,x=(0,r.useRef)(null),[g,m]=(0,r.useState)(0),[h,f]=(0,r.useState)(0),p=1===s?0:a;(0,r.useLayoutEffect)(()=>{let e=x.current;if(!e)return;let t=()=>{m((e.clientWidth-p*(s-1))/s)};t();let l=new ResizeObserver(t);return l.observe(e),()=>l.disconnect()},[p,s]);let b=g+p,j=h>0,v=h<t.length-s||n,w=async()=>{if(h<t.length-s)return void f(e=>e+1);if(n&&o){let e=o();e instanceof Promise&&await e,f(e=>e+1)}};return(0,l.jsxs)("div",{ref:x,className:(0,i.classnames)("relative overflow-hidden select-none",d),...u,children:[(0,l.jsx)("div",{className:"flex transition-transform ease-
1out duration-300",style:{gap:"".concat(p,"px"),width:t.length*b,transform:"translateX(-".concat(h*b,"px)")},children:t.map((e,t)=>(0,l.jsx)("div",{className:(0,i.classnames)("shrink-0",1===s&&"mx-auto"),style:{width:g},children:e},t))}),(0,l.jsx)(c,{dir:"left",onClick:()=>j&&f(e=>e-1),disabled:!j}),(0,l.jsx)(c,{dir:"right",onClick:w,disabled:!v})]})}function c(e){let{dir:t,onClick:s,disabled:a}=e;return(0,l.jsx)("button",{onClick:s,disabled:a,"aria-label":"left"===t?"prev":"next",className:(0,i.classnames)("absolute z-10 top-1/2 -translate-y-1/2","bg-white/80 hover:bg-white rounded-full p-2 shadow-md backdrop-blur-sm","transition disabled:opacity-30","left"===t?"left-1":"right-1"),children:(0,l.jsx)("svg",{className:"left"===t?"rotate-180":"",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("polyline",{points:"9 18 15 12 9 6"})})})}var d=s(1917);let u=e=>{let{widgets:t,user:{isLoggedIn:s},ui:{isLiveBlog:a=!1,slidesOnDesktop:n},query:{hasNextPage:r,fetchNextPage:c},cb:{onParticipate:u},className:x=""}=e,g=t.map((e,t)=>(0,l.jsx)("div",{className:(0,i.classnames)(a&&1===n&&"flex justify-center"),children:(0,l.jsx)(d.A,{widget:e,isUserLoggedIn:s,needsAuth:e.needsAuth,onParticipate:()=>u(t)},e._id)},e._id)),m=[x,a?" w-full":""].join(" ");return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(o,{items:g,visible:n,gap:16,onReachEnd:r?c:void 0,hasNextPage:r,className:m})})},x=e=>{let{title:t,total:s,spinning:a}=e;return(0,l.jsxs)("div",{className:"pb-5 flex items-center justify-between",children:[(0,l.jsx)("p",{className:"text-xl xl:text-2xl font-bold text-primary",children:t}),(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)("img",{src:"/icons/loading.gif",alt:"loading",className:(0,i.classnames)("w-6 transition-opacity duration-300",a?"opacity-100":"opacity-0")}),(0,l.jsxs)("p",{className:"font-medium text-gray-600",children:["Rezultate:\xa0",(0,l.jsx)("span",{className:"font-semibold text-black",children:s})]})]})]})},g=e=>{let{title:t}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"relative hidden lg:flex justify-center items-center w-full",children:[(0,l.jsx)("p",{className:"absolute text-xl font-semibold uppercase text-white",children:t}),(0,l.jsx)("img",{src:"/images/banner-blank.png",alt:"banner"})]}),(0,l.jsx)("p",{className:"lg:hidden w-full text-center text-xl font-medium uppercase inline-block",children:t})]})},m=e=>{var t,s,o,c,d,m,f;let{type:p,_id:b,title:j="Jocuri",design:v="default",perPage:w=3}=e,y="liveBlog"===v,N=(0,n.useMediaQuery)()||y?1:3,k=!!(null==(t=i.jwtCookie.get())?void 0:t.sub),P=(0,n.useInfiniteQuery)("/public/widgets/fansunited",{[p]:b,per_page:w},{staleTime:3e3,refetchOnWindowFocus:!1}),C=null!=(m=null==(o=P.data)||null==(s=o.pages)?void 0:s.flat())?m:[],F=null!=(f=null==(d=P.data)||null==(c=d.pageParams)?void 0:c.count)?f:C.length,[_,A]=(0,r.useState)(null);if("loading"===P.status)return(0,l.jsx)(h,{isLiveBlog:y,title:j});if("error"===P.status||!F)return null;let L={isLiveBlog:y,slidesOnDesktop:N},z={hasNextPage:P.hasNextPage,fetchNextPage:P.fetchNextPage,isFetchingNext:P.isFetchingNextPage},E={onParticipate:e=>A(e)};return(0,l.jsxs)(l.Fragment,{children:[y&&(0,l.jsx)(g,{title:j}),y?(0,l.jsx)(u,{widgets:C,user:{isLoggedIn:k},ui:L,query:z,cb:E}):(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("div",{className:"flex flex-col rounded bg-white shadow p-5",children:[(0,l.jsx)(x,{title:j,total:F,spinning:P.isFetchingNextPage}),(0,l.jsx)(u,{widgets:C,user:{isLoggedIn:k},ui:L,query:z,cb:E})]})}),null!=_&&C[_]&&(0,l.jsx)(a.yG,{isOpen:!0,hide:()=>A(null),...C[_],isUserLoggedIn:k})]})},h=e=>{let{isLiveBlog:t,title:s}=e;return(0,l.jsxs)(l.Fragment,{children:[t&&(0,l.jsx)(g,{title:s}),(0,l.jsx)("div",{className:(0,i.classnames)(t?"":"px-2"),children:(0,l.jsxs)("div",{className:(0,i.classnames)("flex flex-col",t?"":"rounded bg-white shadow p-5"),children:[!t&&(0,l.jsx)(x,{title:s,total:0,spinning:!0}),(0,l.jsx)("div",{className:"flex justify-center py-6",children:(0,l.jsx)("img",{src:"/icons/loading.gif",alt:"loading",className:"w-16"})})]})})]})}}}]);

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.