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]="e77bcf94-a0cd-452c-9bf9-84ed5ce3b8dd",e._sentryDebugIdIdentifier="sentry-dbid-e77bcf94-a0cd-452c-9bf9-84ed5ce3b8dd")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[75665],{40561:()=>{},68189:(e,a,s)=>{"use strict";s.d(a,{z:()=>i});var t=s(65266),r=s(8851),n=s.n(r),c=s(92004);function i(){let e=(0,c.usePathname)(),a="/games"===e||/^\/games\/(sudoku|ramziyat|mini|maqati|crossword)/.test(e),s=e.startsWith("/games/leaderboard"),r=e.startsWith("/games/streak");return(0,t.jsxs)("nav",{className:"aj-bnav","aria-label":"تÙÙÙ Ø§ÙØ£Ùعاب",children:[(0,t.jsxs)(n(),{href:"/games",className:"aj-btab ".concat(!a||s||r?"":"active"),children:[(0,t.jsx)("span",{className:"ic",children:"\uD83C\uDFAE"}),"Ø§ÙØ£Ùعاب"]}),(0,t.jsxs)(n(),{href:"/games/leaderboard",className:"aj-btab ".concat(s?"active":""),children:[(0,t.jsx)("span",{className:"ic",children:"\uD83C\uDFC6"}),"Ø§ÙØµØ¯Ø§Ø±Ø©"]}),(0,t.jsxs)(n(),{href:"/games/streak",className:"aj-btab ".concat(r?"active":""),children:[(0,t.jsx)("span",{className:"ic",children:"\uD83D\uDD25"}),"سترÙÙÙ"]})]})}},75665:(e,a,s)=>{"use strict";s.r(a),s.d(a,{LeaderboardView:()=>d});var t=s(65266),r=s(54618),n=s(8851),c=s.n(n),i=s(68189),l=s(84499);function d(){let[e,a]=(0,r.useState)(null),[s,n]=(0,r.useState)(null);return((0,r.useEffect)(()=>{l.M.leaderboard().then(a).catch(e=>n(e.message))},[]),s)?(0,t.jsxs)("div",{className:"aj-games",children:[(0,t.jsx)("div",{className:"aj-error",children:s}),(0,t.jsx)(i.z,{})]}):e?(0,t.jsxs)("div",{className:"aj-games",children:[(0,t.jsxs)("header",{className:"aj-games-header",children:[(0,t.jsx)("span",{className:"aj-games-logo",children:"عاجÙ"}),(0,t.jsx)(c(),{href:"/games/streak",className:"aj-streak-pill",children:"\uD83D\uDD25"})]}),(0,t.jsx)("h1",{className:"pg",children:"Ø§ÙØµØ¯Ø§Ø±Ø©"}),(0,t.jsx)("p",{style:{fontSize:10.5,color:"#71727A",textAlign:"center",padding:"4px 16px 8px"},children:"اÙÙÙØ§Ø· Ù
Ù Ø§ÙØ³Ø±Ø¹Ø© ÙØ§ÙØ¯ÙØ© \xb7 ØªÙØµÙÙØ± ÙÙ Ø£ØØ¯ \xb7 Ø§ÙØªØ±ØªÙب ÙÙÙØ®Ø± â Ø§ÙØ¬ÙØ§Ø¦Ø² Ø¨Ø§ÙØ³ØØ¨ Ø§ÙØ´ÙرÙ"}),(0,t.jsx)("div",{className:"aj-lb",children:0===e.entries.length?(0,t.jsx)("div",{className:"aj-lbrow",children:(0,t.jsx)("div",{style:{color:"#71727A",fontSize:13},children:"Ù
ا ÙÙÙ ØªØ±ØªÙØ¨ بعد â Ù٠أÙ٠اÙÙØ§Ø¹Ø¨ÙÙ!"})}):e.entries.map(e=>(0,t.jsxs)("div",{className:"aj-lbrow ".concat(e.isMe?"me":""),children:[(0,t.jsx)("div",{className:"aj-rank ".concat(1===e.rank?"gold":2===e.rank?"silver":3===e.rank?"bronze":""),children:e.rank}),(0,t.jsx)("div",{style:{flex:1},children:(0,t.jsxs)("div",{style:{fontWeight:700,fontSize:13},children:[e.displayName,e.isMe?" (Ø£ÙØª)":""]})}),(0,t.jsx)("div",{className:"aj-lbpts",children:e.points})]},e.rank))}),null!=e.myRank&&(0,t.jsxs)("p",{style:{textAlign:"center",fontSize:12,color:"#71727A",marginTop:12},children:["ØªØ±ØªÙØ¨Ù ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع: #",e.myRank]}),(0,t.jsx)(i.z,{})]}):(0,t.jsxs)("div",{className:"aj-games",children:[(0,t.jsx)("div",{className:"aj-loading",children:"تØÙ
ÙÙ Ø§ÙØµØ¯Ø§Ø±Ø©â¦"}),(0,t.jsx)(i.z,{})]})}s(40561)},84499:(e,a,s)=>{"use strict";async function t(e,a){let s=await fetch("/api/games/v1".concat(e),{...a,headers:{"Content-Type":"application/json",...(null==a?void 0:a.headers)||{}},credentials:"same-origin"}),t=await s.json().catch(()=>({}));if(!s.ok)throw Error(t.error||"خطأ ÙÙ Ø§ÙØ´Ø¨ÙØ©");return t}s.d(a,{M:()=>r,a:()=>n});let r={hub:()=>t("/hub"),today:(e,a)=>t("/puzzles/today?game=".concat(e).concat(a?"&difficulty=".concat(a):"")),start:e=>t("/puzzles/".concat(e,"/start"),{method:"POST",body:JSON.stringify({client:"web"})}),attempt:(e,a)=>t("/puzzles/".concat(e,"/attempt"),{method:"POST",body:JSON.stringify(a)}),complete:(e,a)=>t("/puzzles/".concat(e,"/complete"),{method:"POST",body:JSON.stringify(a)}),streak:()=>t("/me/streak"),leaderboard:()=>t("/leaderboard")};function n(e){let a=Math.floor(e/1e3);return"".concat(Math.floor(a/60),":").concat(String(a%60).padStart(2,"0"))}},92004:(e,a,s)=>{"use strict";var t=s(54548);s.o(t,"useParams")&&s.d(a,{useParams:function(){return t.useParams}}),s.o(t,"usePathname")&&s.d(a,{usePathname:function(){return t.usePathname}}),s.o(t,"useRouter")&&s.d(a,{useRouter:function(){return t.useRouter}}),s.o(t,"useSearchParams")&&s.d(a,{useSearchParams:function(){return t.useSearchParams}})}}]);
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.