mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-26 07:39:31 +00:00
1 line
7.5 KiB
JavaScript
1 line
7.5 KiB
JavaScript
|
|
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81847,e=>{e.v({Dialog:"GameDialog-module__C6hZDW__Dialog",DialogButton:"GameDialog-module__C6hZDW__DialogButton",Overlay:"GameDialog-module__C6hZDW__Overlay",Secondary:"GameDialog-module__C6hZDW__Secondary GameDialog-module__C6hZDW__DialogButton"})},56614,e=>{e.v({CloseButton:"ServerBrowser-module__kqm3eq__CloseButton "+e.i(81847).Secondary,Dialog:"ServerBrowser-module__kqm3eq__Dialog "+e.i(81847).Dialog,Empty:"ServerBrowser-module__kqm3eq__Empty",EmptyServer:"ServerBrowser-module__kqm3eq__EmptyServer",Footer:"ServerBrowser-module__kqm3eq__Footer",Header:"ServerBrowser-module__kqm3eq__Header",HiddenRadio:"ServerBrowser-module__kqm3eq__HiddenRadio",Hint:"ServerBrowser-module__kqm3eq__Hint",JoinButton:"ServerBrowser-module__kqm3eq__JoinButton "+e.i(81847).DialogButton,Overlay:"ServerBrowser-module__kqm3eq__Overlay "+e.i(81847).Overlay,PasswordIcon:"ServerBrowser-module__kqm3eq__PasswordIcon",RefreshButton:"ServerBrowser-module__kqm3eq__RefreshButton "+e.i(81847).DialogButton,ServerCount:"ServerBrowser-module__kqm3eq__ServerCount",Table:"ServerBrowser-module__kqm3eq__Table",TableWrapper:"ServerBrowser-module__kqm3eq__TableWrapper",Title:"ServerBrowser-module__kqm3eq__Title",WarriorField:"ServerBrowser-module__kqm3eq__WarriorField",WarriorInput:"ServerBrowser-module__kqm3eq__WarriorInput",WarriorLabel:"ServerBrowser-module__kqm3eq__WarriorLabel"})},45554,e=>{"use strict";var r=e.i(43476),l=e.i(932),o=e.i(71645),t=e.i(56614),s=e.i(98755),a=e.i(79123);function n(e){let n,v,f,S,p,g,x,y,j,q,k,B,w,C,b,N,D,W,T,L,E,P,R,H,O,F,I,A,G,Z,J=(0,l.c)(88),{onClose:K}=e,M=(0,s.useLiveSelector)(h),U=(0,s.useLiveSelector)(_),Q=(0,s.useLiveSelector)(m),z=(0,s.useLiveSelector)(u),V=(0,s.useLiveSelector)(c),{warriorName:X,setWarriorName:Y}=(0,a.useSettings)(),[$,ee]=(0,o.useState)(null);J[0]!==V||J[1]!==K||J[2]!==$||J[3]!==X?(n=()=>{$&&(V($,X),K())},J[0]=V,J[1]=K,J[2]=$,J[3]=X,J[4]=n):n=J[4];let er=n;J[5]!==V||J[6]!==K||J[7]!==X?(v=e=>{V(e,X),K()},J[5]=V,J[6]=K,J[7]=X,J[8]=v):v=J[8];let el=v,[eo,et]=(0,o.useState)("ping"),[es,ea]=(0,o.useState)("asc"),en=(0,o.useRef)(null);J[9]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{en.current?.focus();try{document.exitPointerLock()}catch{}},S=[],J[9]=f,J[10]=S):(f=J[9],S=J[10]),(0,o.useEffect)(f,S),J[11]!==z?(p=()=>{z()},g=[z],J[11]=z,J[12]=p,J[13]=g):(p=J[12],g=J[13]),(0,o.useEffect)(p,g),J[14]!==K?(x=()=>{let e=e=>{e.stopPropagation(),"Escape"===e.key&&K()};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)},y=[K],J[14]=K,J[15]=x,J[16]=y):(x=J[15],y=J[16]),(0,o.useEffect)(x,y),J[17]!==eo?(j=e=>{eo===e?ea(d):(et(e),ea("desc"))},J[17]=eo,J[18]=j):j=J[18];let ei=j;if(J[19]!==M||J[20]!==es||J[21]!==eo){let e;J[23]!==es||J[24]!==eo?(e=(e,r)=>{let l=e[eo],o=r[eo],t="number"==typeof l&&"number"==typeof o?l-o:String(l).localeCompare(String(o));return"asc"===es?t:-t},J[23]=es,J[24]=eo,J[25]=e):e=J[25],q=[...M].sort(e),J[19]=M,J[20]=es,J[21]=eo,J[22]=q}else q=J[22];let ed=q;J[26]===Symbol.for("react.memo_cache_sentinel")?(k=(0,r.jsx)("h2",{className:t.default.Title,children:"Server Browser"}),J[26]=k):k=J[26];let ec=1!==M.length?"s":"";if(J[27]!==M.length||J[28]!==ec?(B=(0,r.jsxs)("span",{className:t.default.ServerCount,children:[M.length," server",ec]}),J[27]=M.length,J[28]=ec,J[29]=B):B=J[29],J[30]!==z||J[31]!==U?(w=(0,r.jsx)("button",{className:t.default.RefreshButton,onClick:z,disabled:U,children:"Refresh"}),J[30]=z,J[31]=U,J[32]=w):w=J[32],J[33]!==B||J[34]!==w?(C=(0,r.jsxs)("div",{className:t.default.Header,children:[k,B,w]}),J[33]=B,J[34]=w,J[35]=C):C=J[35],J[36]!==ei?(b=(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{onClick:()=>ei("name"),children:"Server Name"}),(0,r.jsx)("th",{onClick:()=>ei("playerCount"),children:"Players"}),(0,r.jsx)("th",{onClick:()=>ei("ping"),children:"Ping"}),(0,r.jsx)("th",{onClick:()=>ei("mapName"),children:"Map"}),(0,r.jsx)("th",{onClick:()=>ei("gameType"),children:"Type"}),(0,r.jsx)("th",{onClick
|