1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2049],{1511:function(e,l,s){var i=s(7437);s(2265),l.Z=e=>{let{className:l="text-[#4687FF]",fillColor:s="#4687FF"}=e;return(0,i.jsx)("svg",{className:l,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M12.3016 14H13.125C18.9376 14 21 10.9375 21 8.3125C20.9981 7.59075 20.7413 6.89287 20.2749 6.34201C19.8086 5.79114 19.1627 5.42267 18.4511 5.30163C18.7808 4.61288 19.0315 3.88902 19.1984 3.14388C19.2761 2.76561 19.2682 2.37476 19.1754 1.99991C19.0826 1.62506 18.9072 1.2757 18.662 0.977378C18.4136 0.671482 18.1 0.42497 17.7441 0.255867C17.3881 0.0867635 16.9989 -0.000654967 16.6049 3.69456e-06H4.39512C4.00108 -0.000654967 3.61186 0.0867635 3.25594 0.255867C2.90002 0.42497 2.5864 0.671482 2.338 0.977378C2.09279 1.2757 1.91737 1.62506 1.82456 1.99991C1.73176 2.37476 1.72392 2.76561 1.80163 3.14388C1.96876 3.889 2.21881 4.61305 2.54713 5.3025C1.83606 5.42389 1.19067 5.79239 0.724694 6.34304C0.258721 6.89369 0.00207881 7.59115 0 8.3125C0 10.9375 2.06237 14 7.875 14H8.69137C8.72413 14.1842 8.74372 14.3704 8.75 14.5574V17.5C8.76503 17.7337 8.73007 17.9679 8.64744 18.1871C8.56482 18.4062 8.43642 18.6052 8.27082 18.7708C8.10522 18.9364 7.90622 19.0648 7.68708 19.1474C7.46795 19.2301 7.23371 19.265 7 19.25H4.375V21H16.625V19.25H14C13.7658 19.2658 13.5309 19.2314 13.3111 19.1491C13.0912 19.0669 12.8914 18.9386 12.7251 18.773C12.5588 18.6073 12.4298 18.4081 12.3466 18.1885C12.2635 17.969 12.2281 17.7343 12.243 17.5V14.5574C12.2497 14.3705 12.2693 14.1842 12.3016 14ZM13.5424 11.6804C15.1242 10.3548 16.4718 8.7726 17.5289 7H17.9375C18.2856 7 18.6194 7.13828 18.8656 7.38442C19.1117 7.63057 19.25 7.96441 19.25 8.3125C19.25 10.2165 17.507 12.25 12.9911 12.25C13.1502 12.0377 13.3354 11.8463 13.5424 11.6804ZM1.75 8.3125C1.75 7.96441 1.88828 7.63057 2.13442 7.38442C2.38056 7.13828 2.7144 7 3.0625 7H3.4685C4.52344 8.77281 5.86967 10.3551 7.45063 11.6804C7.65721 11.8467 7.84237 12.0381 8.00187 12.25C3.486 12.25 1.75 10.2165 1.75 8.3125Z",fill:s})})}},3027:function(e,l,s){var i=s(7437);s(2265),l.Z=()=>(0,i.jsxs)("div",{className:"border border-gray-300 rounded-lg flex flex-col gap-2 w-full animate-pulse p-2",children:[(0,i.jsxs)("div",{className:"flex border-b justify-between px-2",children:[(0,i.jsx)("div",{className:"bg-gray-200 rounded py-2 px-2 w-16 h-10"}),(0,i.jsxs)("div",{className:"py-2 px-2 w-full",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)("div",{className:"bg-gray-200 rounded-full w-7 h-7"}),(0,i.jsx)("div",{className:"bg-gray-200 rounded w-24 h-5"})]}),(0,i.jsxs)("div",{className:"flex items-center gap-3 mt-2",children:[(0,i.jsx)("div",{className:"bg-gray-200 rounded-full w-7 h-7"}),(0,i.jsx)("div",{className:"bg-gray-200 rounded w-24 h-5"})]})]}),(0,i.jsx)("div",{className:"w-8 h-8 bg-gray-200 rounded-full"})]}),(0,i.jsx)("div",{className:"bg-gray-200 rounded py-1 px-2 w-3/4 h-5"})]})},2049:function(e,l,s){s.r(l);var i=s(7437),a=s(6648),d=s(2265),n=s(104),t=s(1942),r=s(7138),c=s(8402),o=s(3027),x=s(9212),m=s.n(x),u=s(1511),v=s(89);let h=e=>{var l,s,d,c,o,x,v,h,g,f,j,p;let{data:w}=e;return(0,i.jsx)(r.default,{href:"/predictions",children:(0,i.jsx)("div",{className:"border border-gray-300 rounded-lg flex flex-col gap-2 w-full",children:(0,i.jsxs)("div",{className:"flex border-b px-2 h-[110px] ",children:[(0,i.jsxs)("div",{className:"text-sm font-semibold text-gray-600 border-r py-2 px-2 min-w-fit",children:[m()(null==w?void 0:w.matchDate).format("MMM DD"),(0,i.jsx)("br",{}),m()(null==w?void 0:w.matchDate).format(" HH:mm")]}),(0,i.jsxs)("div",{className:"py-2 px-2 w-full",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between text-charcoal mb-2",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)("div",{className:"w-8 h-8 ",children:(0,i.jsx)(a.default,{src:(null==w?void 0:null===(l=w.homeTeam)||void 0===l?void 0:l.logo)||"/fallback-logo.png",alt:(null==w?void 0:w.name)||"unkown",width:27,height:31,className:"rounded-full w-full h-full"})}),(0,i.jsx)(n.H3,{children:null==w?void 0:null===(s=w.homeTeam)||void 0===s?void 0:s.name})]}),(null==w?void 0:null===(d=w.status)||void 0===d?void 0:d.long)==="Not Started"&&(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsxs)(n.H5,{className:"font-semibold",children:[(null==w?void 0:null===(c=w.predictionPercentages)||void 0===c?void 0:c.homeWinPercentage)|0,"%"]}),(0,i.jsx)("div",{className:"flex gap-2 items-center",children:(null==w?void 0:null===(o=w.predictionPercentages)||void 0===o?void 0:o.homeWinPercentage)>(null==w?void 0:null===(x=w.predictionPercentages)||void 0===x?void 0:x.awayWinPercentage)?(0,i.jsx)("div",{className:"h-4 w-4 bg-[#23C32B] rounded-full flex items-center justify-center text-white",children:(0,i.jsx)(t.ZTc,{size:10,
1className:"h-3 w-3"})}):(0,i.jsx)("div",{className:"h-4 w-4 bg-[#FE527C] rounded-full flex items-center justify-center text-white",children:(0,i.jsx)(t.NWQ,{size:10,className:"h-3 w-3"})})})]}),(null==w?void 0:w.homeTeam.winner)&&(0,i.jsx)(u.Z,{className:"h-4 w-4 text-primary"})]}),(0,i.jsxs)("div",{className:"flex items-center justify-between text-charcoal",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(a.default,{src:(null==w?void 0:null===(v=w.awayTeam)||void 0===v?void 0:v.logo)||"/fallback-logo.png",alt:(null==w?void 0:w.name)||"away team",width:27,height:31,className:"rounded-full"}),(0,i.jsx)(n.H3,{children:null==w?void 0:null===(h=w.awayTeam)||void 0===h?void 0:h.name})]}),(null==w?void 0:null===(g=w.status)||void 0===g?void 0:g.long)==="Not Started"&&(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsxs)(n.H5,{className:"font-semibold",children:[(null==w?void 0:null===(f=w.predictionPercentages)||void 0===f?void 0:f.awayWinPercentage)|0,"%"]}),(0,i.jsx)("div",{className:"flex gap-2 items-center",children:(null==w?void 0:null===(j=w.predictionPercentages)||void 0===j?void 0:j.awayWinPercentage)>(null==w?void 0:null===(p=w.predictionPercentages)||void 0===p?void 0:p.homeWinPercentage)?(0,i.jsx)("div",{className:"h-4 w-4 bg-[#23C32B] rounded-full flex items-center justify-center text-white",children:(0,i.jsx)(t.ZTc,{size:10,className:"h-3 w-3"})}):(0,i.jsx)("div",{className:"h-4 w-4 bg-[#FE527C] rounded-full flex items-center justify-center text-white",children:(0,i.jsx)(t.NWQ,{size:10,className:"h-3 w-3"})})})]}),(null==w?void 0:w.awayTeam.winner)&&(0,i.jsx)(u.Z,{className:"h-4 w-4 text-primary"})]})]})]})})})};l.default=()=>{var e,l;let{t:s}=(0,v.$G)(),[n,r]=(0,d.useState)(1),{data:x,isLoading:m}=(0,c.Wc)({page:n,limit:10}),u=(null==x?void 0:x.matches)||[],g=(null==x?void 0:null===(e=x.pagination)||void 0===e?void 0:e.totalPages)||1;return(0,i.jsxs)("div",{className:"px-4 py-6",children:[(0,i.jsx)("div",{className:"flex items-center justify-between",children:(0,i.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,i.jsx)(a.default,{src:"/assets/icons/predictionBlue.svg",alt:"Prediction Icon",width:25,height:19}),(0,i.jsx)("h3",{className:"text-lg font-bold",children:s("predictions")})]})}),(0,i.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:m?null===(l=Array.from({length:4}))||void 0===l?void 0:l.map((e,l)=>(0,i.jsx)(o.Z,{},l)):null==u?void 0:u.map(e=>(0,i.jsx)(h,{data:e},null==e?void 0:e._id))}),(0,i.jsxs)("div",{className:"flex justify-between items-center mt-4",children:[(0,i.jsx)("button",{"aria-label":"53",className:"px-4 py-2 bg-blue-500 text-white rounded disabled:opacity-50",onClick:()=>{n>1&&r(e=>e-1)},disabled:1===n,children:(0,i.jsx)(t.MZt,{})}),(0,i.jsxs)("span",{className:"text-rs",children:[s("page")," ",n," ",s("of")," ",g]}),(0,i.jsx)("button",{"aria-label":"54",className:"px-4 py-2 bg-blue-500 text-white rounded disabled:opacity-50",onClick:()=>{n<g&&r(e=>e+1)},disabled:n===g,children:(0,i.jsx)(t.Wgy,{})})]})]})}}}]);
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.