PageSourceSearch

https://basketballstars.app/_next/static/chunks/1smua-t4yps14.js

js basketballstars.app collected 2026-09-24 13:32:48 UTC 17,885 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46032,e=>{"use strict";var t=e.i(43476),a=e.i(71645),n=e.i(8803);e.s(["default",0,function(e){let{slug:s,comments:l,gameName:r}=e,[i,o]=(0,a.useState)([]),[c,d]=(0,a.useState)(""),[u,h]=(0,a.useState)(""),[x,m]=(0,a.useState)(0),[p,g]=(0,a.useState)(""),[b,f]=(0,a.useState)("idle"),[w,j]=(0,a.useState)("");async function v(e){if(e.preventDefault(),"sending"!==b&&!(u.trim().length<4)){f("sending"),j("");try{let e=await fetch(n.SITE.ugcApi,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"comment",slug:s,author:c,body:u,rating:x||void 0,website:p})}),t=await e.json();if(!t.ok)throw Error(t.error||"Could not post that.");o(e=>[...e,{author:t.author??"Player",body:u.trim(),rating:x||null,date:new Date().toISOString()}]),h(""),m(0),f("done")}catch(e){j(e instanceof Error?e.message:"Could not post that."),f("idle")}}}let y=[...l,...i],k=e=>(0,t.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",className:e?"text-accent":"text-line",fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"m12 17.3-6.2 3.6 1.6-7L2 9.2l7.1-.6L12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7z"})});return(0,t.jsxs)("section",{className:"mt-10",id:"comments",children:[(0,t.jsx)("h2",{className:"mb-3 text-[12px] font-bold uppercase tracking-[0.14em] text-muted",children:y.length>0?`What players say about ${r}`:`Played ${r}?`}),y.length>0&&(0,t.jsx)("ul",{className:"space-y-2.5",children:y.map((e,a)=>(0,t.jsxs)("li",{className:"rounded-card bg-surface p-3.5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("span",{className:"text-[13px] font-semibold text-chalk",children:e.author}),e.rating&&(0,t.jsx)("span",{className:"flex","aria-label":`Rated ${e.rating} out of 5`,children:[1,2,3,4,5].map(a=>(0,t.jsx)("span",{children:k(a<=e.rating)},a))}),(0,t.jsx)("time",{dateTime:e.date,className:"text-[11px] text-muted",children:new Date(e.date).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})})]}),(0,t.jsx)("p",{className:"mt-1.5 text-[14px] leading-relaxed text-chalk/85",children:e.body})]},`${e.date}-${a}`))}),(0,t.jsxs)("form",{onSubmit:v,className:"mt-3 rounded-card bg-surface p-4",children:[(0,t.jsx)("p",{className:"text-[13px] font-semibold text-chalk",children:"Leave a tip, a high score, or what beat you. No links, no account."}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[(0,t.jsx)("input",{value:c,onChange:e=>d(e.target.value),maxLength:24,placeholder:"Name (optional)","aria-label":"Your name",className:"h-9 min-w-0 flex-1 rounded-lg bg-raise px-3 text-sm text-chalk outline-none placeholder:text-muted"}),(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-[11px] uppercase tracking-wide text-muted",children:"Rate"}),(0,t.jsx)("span",{className:"flex",children:[1,2,3,4,5].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>m(e===x?0:e),"aria-label":`${e} out of 5`,"aria-pressed":x===e,className:"inline-grid h-6 w-6 place-items-center transition-transform hover:scale-125",children:k(e<=x)},e))})]})]}),(0,t.jsx)("textarea",{value:u,onChange:e=>h(e.target.value),maxLength:1200,rows:3,placeholder:`Something useful about ${r}…`,"aria-label":"Your comment",className:"mt-3 w-full resize-y rounded-lg bg-raise p-3 text-sm text-chalk outline-none placeholder:text-muted"}),(0,t.jsx)("div",{"aria-hidden":"true",className:"absolute left-[-9999px] h-0 w-0 overflow-hidden",children:(0,t.jsxs)("label",{children:["Website",(0,t.jsx)("input",{tabIndex:-1,autoComplete:"off",value:p,onChange:e=>g(e.target.value)})]})}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[(0,t.jsx)("button",{type:"submit",disabled:"sending"===b||u.trim().length<4,className:"rounded-lg bg-accent px-4 py-2 text-[13px] font-bold text-ink transition-opacity hover:opacity-90 disabled:opacity-40",children:"sending"===b?"Posting…":"Post comment"}),"done"===b&&(0,t.jsx)("span",{className:"text-[12.5px] text-muted",children:"Posted — everyone else sees it at the next page rebuild."}),w&&(0,t.jsx)("span",{className:"text-[12.5px] font-semibold text-accent",children:w})]})]})]})}])},84605,e=>{"use strict";var t=e.i(43476),a=e.i(71645),n=e.i(8803);let s=[["not_loading","Won't load"],["blank_screen","Black / blank screen"],["broken_controls","Controls do not work"],["wrong_game","Wrong game"],["slow","Too slow / laggy"],["other","Something else"]];function l(e){let{title:n,buttonClassName:l,iconSize:r=17}=e,[i,o]=(0,a.useState)(!1),[c,d]=(0,a.useState)("not_loading"),[u,h]=(0,a.useState)(""),[x,m]=(0,a.useState)("idle"),p=(0,a.useRef)(null);(0,a.useEffect)(()=>
1{if(!i)return;let e=e=>{p.current&&!p.current.contains(e.target)&&o(!1)},t=e=>"Escape"===e.key&&o(!1);return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[i]);let g=async()=>{if("sending"!==x){m("sending");try{let e=await fetch("https://w3admin.w3technic.com/api/report.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:(window.location.pathname.replace(/\/+$/,"").replace(/\.html?$/,"").split("/").filter(Boolean).pop()||"home").toLowerCase().replace(/[^a-z0-9/-]+/g,"-").slice(0,191)||"home",game_name:n,source:window.location.hostname,page_url:window.location.href.slice(0,500),reason:c,note:(u.trim()?u.trim().slice(0,500)+" · ":"")+"UA: "+navigator.userAgent.slice(0,200)})}),t=await e.json().catch(()=>null);m(t?.ok?"sent":"error")}catch{m("error")}}};return(0,t.jsxs)("div",{ref:p,className:"relative",children:[(0,t.jsx)("button",{type:"button",onClick:()=>o(e=>!e),"aria-label":"Report a problem with this game",title:"Report a problem","aria-expanded":i,className:l,children:(0,t.jsx)("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:i?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M4 22V4a1 1 0 0 1 1-1h11l-1 4 1 4H5"})})}),i&&(0,t.jsx)("div",{role:"dialog","aria-label":`Report a problem with ${n}`,className:"absolute bottom-full right-0 z-30 mb-2 w-[min(300px,calc(100vw-32px))] rounded-xl border border-line bg-card p-3 text-left shadow-xl",children:"sent"===x?(0,t.jsxs)("div",{className:"py-1 text-[13px] leading-snug text-ink",children:[(0,t.jsx)("p",{className:"font-semibold",children:"Thanks — report sent."}),(0,t.jsx)("p",{className:"mt-1 text-muted",children:"We check every report and fix or replace the game."}),(0,t.jsx)("button",{type:"button",onClick:()=>o(!1),className:"mt-3 rounded-lg bg-raise px-3 py-1.5 text-[12px] font-semibold text-ink",children:"Close"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"mb-2 text-[13px] font-semibold leading-snug text-ink",children:["What is wrong with ",n,"?"]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:s.map(e=>{let[a,n]=e;return(0,t.jsx)("button",{type:"button",onClick:()=>d(a),"aria-pressed":c===a,className:`rounded-full border px-2.5 py-1 text-[12px] font-medium leading-none transition-colors ${c===a?"border-accent bg-accent text-white":"border-line bg-raise text-muted hover:text-ink"}`,children:n},a)})}),(0,t.jsx)("textarea",{value:u,onChange:e=>h(e.target.value),maxLength:500,rows:2,placeholder:"Anything else? (optional)",className:"mt-2 w-full resize-none rounded-lg border border-line bg-paper px-2.5 py-1.5 text-[13px] text-ink placeholder:text-muted focus:border-accent focus:outline-none"}),(0,t.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] text-muted",children:"error"===x?"Could not send — try again in a minute.":"Sends the page URL and your browser."}),(0,t.jsx)("button",{type:"button",onClick:g,disabled:"sending"===x,className:"shrink-0 rounded-lg bg-accent px-3 py-1.5 text-[12px] font-bold text-white transition-opacity disabled:opacity-60",children:"sending"===x?"Sending…":"Send report"})]})]})})]})}let r=!1;e.s(["default",0,function(e){let{src:s,title:i,poster:o,posterBlur:c,slug:d,tally:u}=e,[h,x]=(0,a.useState)(!1),[m,p]=(0,a.useState)(!1),[g,b]=(0,a.useState)(5),[f,w]=(0,a.useState)(!1),[j,v]=(0,a.useState)(0),[y,k]=(0,a.useState)(!1),N=(0,a.useRef)(null),S=(0,a.useRef)(!1),C="rated.",[$,L]=(0,a.useState)(u);(0,a.useEffect)(()=>{try{let e=localStorage.getItem(C+d);e&&v(Number(e))}catch{}},[d]);let T=(0,a.useCallback)(e=>{v(e);try{localStorage.setItem(C+d,String(e))}catch{}fetch(n.SITE.ugcApi,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"vote",slug:d,rating:e})}).then(e=>e.json()).then(e=>{e?.ok&&e.count&&L({value:e.avg,count:e.count})}).catch(()=>{})},[d]),E=(0,a.useCallback)(()=>{p(!1),x(!0)},[]),B=(0,a.useCallback)(()=>{p(!0),b(5),S.current=!1;let e=window;"function"==typeof e.loadAdSense&&e.loadAdSense();try{if("function"==typeof e.adBreak){let t=!1;e.adBreak({type:r?"next":"start",name:"play_game",beforeAd:()=>{t=!0},afterAd:()=>{E()},adBreakDone:()=>{t&&E()}}),r=!0}}catch{}},[E]);(0,a.useEffect)(()=>
1{if(!m)return;if(!S.current){S.current=!0;try{(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch{}}let e=setInterval(()=>{b(t=>t<=1?(clearInterval(e),0):t-1)},1e3);return()=>clearInterval(e)},[m]);let A=(0,a.useCallback)(()=>{let e=N.current;if(!e)return;let t=e.requestFullscreen||e.webkitRequestFullscreen;t&&Promise.resolve(t.call(e)).catch(()=>{})},[]),P=(0,a.useCallback)(async()=>{let e=window.location.href;try{navigator.share?await navigator.share({title:i,url:e}):(await navigator.clipboard.writeText(e),k(!0),setTimeout(()=>k(!1),1800))}catch{}},[i]);return(0,t.jsxs)("div",{className:f?"mx-auto w-full max-w-none":"w-full",children:[(0,t.jsx)("div",{ref:N,className:"relative w-full overflow-hidden rounded-t-card bg-black aspect-[4/3] sm:aspect-video",children:h?(0,t.jsx)("iframe",{src:s,title:i,className:"absolute inset-0 h-full w-full border-0",allow:"fullscreen; autoplay; pointer-lock; gamepad; clipboard-write",allowFullScreen:!0,loading:"eager"}):m?(0,t.jsxs)("div",{className:"absolute inset-0 z-20 flex flex-col justify-between bg-[#121212] p-3 sm:p-4 text-chalk select-none",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-line pb-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"rounded bg-accent/20 px-2 py-0.5 text-[11px] font-bold text-accent",children:"ADVERTISEMENT"}),(0,t.jsx)("span",{className:"text-xs text-muted truncate max-w-[150px] sm:max-w-none",children:i})]}),(0,t.jsx)("div",{children:g>0?(0,t.jsxs)("span",{className:"flex items-center gap-1.5 rounded-full bg-surface px-3 py-1 text-xs font-medium text-muted",children:[(0,t.jsx)("span",{className:"inline-block h-2 w-2 animate-ping rounded-full bg-accent"}),"Game starts in ",g,"s"]}):(0,t.jsx)("button",{type:"button",onClick:E,className:"flex items-center gap-1.5 rounded-full bg-accent px-4 py-1 text-xs font-bold text-ink transition-transform hover:scale-105 active:scale-95 animate-bounce",children:"Play Now →"})})]}),(0,t.jsx)("div",{className:"my-auto flex flex-col items-center justify-center",children:(0,t.jsx)("div",{className:"flex h-[250px] w-[300px] items-center justify-center overflow-hidden rounded-lg bg-surface border border-line shadow-2xl",children:(0,t.jsx)("ins",{className:"adsbygoogle",style:{display:"inline-block",width:"300px",height:"250px"},"data-ad-client":n.SITE.adsClient,"data-ad-slot":n.AD_SLOTS["home-sidebar"]?.id||"9222161112"})})}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-line text-[11px] text-muted",children:[(0,t.jsx)("span",{children:"Watch ad to unlock and play"}),g<=2&&(0,t.jsx)("button",{type:"button",onClick:E,className:"text-chalk underline hover:text-accent font-medium cursor-pointer",children:"Skip Ad"})]})]}):(0,t.jsxs)("button",{type:"button",onClick:B,"aria-label":`Play ${i}`,className:"group absolute inset-0 flex h-full w-full flex-col items-center justify-center",children:[o&&(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 scale-110 bg-cover bg-center opacity-40 blur-2xl",style:{backgroundImage:`url(${c??o})`}}),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 bg-ink/60"}),o&&(0,t.jsx)("img",{src:o,alt:"",width:112,height:112,fetchPriority:"high",className:"relative h-20 w-20 rounded-2xl object-cover shadow-2xl sm:h-28 sm:w-28"}),(0,t.jsx)("span",{className:"relative mt-4 flex h-12 w-12 items-center justify-center rounded-full border-2 border-white/80 text-white transition-transform group-hover:scale-110",children:(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})})}),(0,t.jsxs)("span",{className:"relative mt-2.5 text-sm font-semibold text-chalk",children:["Play ",i]})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-b-card bg-surface px-3 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-0.5",role:"group","aria-label":`Rate ${i}`,children:[[1,2,3,4,5].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>T(e),"aria-label":`${e} star${e>1?"s":""}`,className:`grid h-6 w-6 place-items-center transition-colors ${e<=(j||Math.round($?.value??0))?"text-accent":"text-line hover:text-muted"}`,children:(0,t.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"m12 17.3-6.2 3.6 1.6-7L2 9.2l7.1-.6L12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7z"})})},e)),(0,t.jsx)("span",{className:"ml-2 text-[11px] text-muted",children:$?.count?`${$.value.toFixed(1)} \xb7 ${$.count.toLocaleString("en-GB")} vote${1===$.count?"":"s"}`:j?"Thanks!":"Rate this game"})]}),(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[(0,t.jsx)("button",{type:"button",onClick:P,"aria-label":"Share",className:"rounded-md p-1.5 text-muted transition-colors hover:bg-raise hover:text-chalk",children:y?(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":!0,children:(0,t.jsx)("polyline",{points:"20 6 9 17 4 12"})}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"18",cy:"5",r:"3"}),(0,t.jsx)("circle",{cx:"6",cy:"12",r:"3"}),(0,t.jsx)("circle",{cx:"18",cy:"19",r:"3"}),(0,t.jsx)("path",{d:"M8.6 13.5l6.8 4M15.4 6.5l-6.8 4"})]})}),(0,t.jsx)("button",{type:"button",onClick:()=>w(e=>!e),"aria-label":"Wide — theatre mode","aria-pressed":f,className:`rounded-md p-1.5 transition-colors hover:bg-raise hover:text-chalk ${f?"text-accent":"text-muted"}`,children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:(0,t.jsx)("rect",{x:"2",y:"6",width:"20",height:"12",rx:"2"})})}),(0,t.jsx)("button",{type:"button",onClick:A,"aria-label":"Fullscreen",className:"rounded-md p-1.5 text-muted transition-colors hover:bg-raise hover:text-chalk",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M8 21H5a2 2 0 0 1-2-2v-3M16 21h3a2 2 0 0 0 2-2v-3"})})}),(0,t.jsx)(l,{title:i,buttonClassName:"rounded-md p-1.5 text-muted transition-colors hover:bg-raise hover:text-chalk"})]})]})]})}],84605)},48215,e=>{"use strict";var t=e.i(43476),a=e.i(71645);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:640;return e.replace(/\.webp$/,`-${t}.webp`)}e.s(["default",0,function(e){let{shots:s,title:l}=e,[r,i]=(0,a.useState)(null);return((0,a.useEffect)(()=>{if(null===r)return;let e=e=>{"Escape"===e.key&&i(null),"ArrowRight"===e.key&&i(e=>null===e?e:(e+1)%s.length),"ArrowLeft"===e.key&&i(e=>null===e?e:(e-1+s.length)%s.length)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r,s.length]),s.length)?(0,t.jsxs)("section",{className:"mt-8",children:[(0,t.jsxs)("h2",{className:"mb-3 text-[12px] font-bold uppercase tracking-[0.14em] text-chalk",children:[l," Gameplay Screenshots"]}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-4",children:s.map((e,a)=>(0,t.jsx)("button",{type:"button",onClick:()=>i(a),"aria-label":`View screenshot: ${e.alt}`,className:"group relative aspect-video overflow-hidden rounded-card bg-surface ring-1 ring-line transition-all hover:ring-accent hover:scale-[1.02]",children:(0,t.jsx)("img",{src:n(e.src),srcSet:`${n(e.src,400)} 400w, ${n(e.src)} 640w`,sizes:"(min-width: 640px) 25vw, 50vw",alt:e.alt,width:640,height:360,loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"})},e.src))}),null!==r&&(0,t.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":`${l} screenshot`,onClick:()=>i(null),className:"fixed inset-0 z-50 flex items-center justify-center bg-ink/90 p-4 backdrop-blur-sm",children:(0,t.jsxs)("figure",{className:"max-h-full w-full max-w-4xl",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("img",{src:s[r].src,alt:s[r].alt,width:s[r].width,height:s[r].height,className:"max-h-[80vh] w-full rounded-card object-contain shadow-2xl"}),(0,t.jsxs)("figcaption",{className:"mt-2.5 flex items-center justify-between gap-3 text-[13px] text-muted",children:[(0,t.jsx)("span",{children:s[r].alt}),(0,t.jsx)("button",{type:"button",onClick:()=>i(null),className:"font-semibold text-accent hover:underline",children:"Close (Esc)"})]})]})})]}):null},"stripSrc",0,n])}]);

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.