diff --git a/assets/ArcadeCard.687fa394.js b/assets/ArcadeCard.687fa394.js new file mode 100644 index 0000000..1c78469 --- /dev/null +++ b/assets/ArcadeCard.687fa394.js @@ -0,0 +1,5 @@ +import{r as y,a,i as t,b as o,w as k,g as s,t as l,e as c,c as x,R as h,a6 as w,k as u,a7 as v,Y as n,F as d,j as _,f,a8 as S,a2 as $,a9 as p,aa as B,ab as j,ac as C}from"./index.ef6c145a.js";const N={class:"space-y-3 text-center w-full"},V={class:"text-2xl lg:text-3xl font-bold"},A={class:"flex gap-2 justify-center items-center"},E={class:"text-xl md:text-2xl font-bold"},H={class:"flex flex-wrap gap-4 place-content-center"},L=s("hr",{class:"border-t border-1 w-full"},null,-1),M={key:0,class:"text-lg"},T=s("span",{class:"font-normal"}," and",-1),q=s("span",{class:"font-normal"}," and",-1),z={key:1,class:"md:w-full grid grid-cols-1 md:grid-cols-3 gap-3"},D={key:2,class:"w-full flex justify-center"},R={__name:"ArcadeCard",props:{useSmall:{type:Boolean,required:!1,default:!1},arcade:{type:Object,required:!0}},setup(e){var g=y(e.arcade.data);function b(m){if(m!==null)return` + background-image: url('${m}'); + background-size: cover; + background-repeat: no-repeat; + `}return(m,O)=>(a(),t("div",{style:C(b("/assets/card/carpet.png")),class:"rounded-2xl mb-6 w-full"},[o(j,{type:"justify-center",class:"bg-white dark:bg-slate-900/90 rounded-2xl p-6 w-full"},{default:k(()=>[s("div",N,[s("h1",V,l(e.arcade.name),1),s("div",A,[s("h2",E,l(e.arcade.description),1)]),s("div",H,[c(g).is_beta?(a(),x(h,{key:0,label:"Beta Enabled",color:"warning",icon:c(w)},null,8,["icon"])):u("",!0),o(h,{label:"Private Arcade",color:"info",icon:c(v)},null,8,["icon"])]),L,e.arcade.owners&&e.arcade.owners.length?(a(),t("p",M,[n(" Managed by "),(a(!0),t(d,null,_(e.arcade.owners,(r,i)=>(a(),t("span",{key:r.username,class:"font-bold"},[e.arcade.owners.length===2&&i===0?(a(),t(d,{key:0},[n(l(r.username),1)],64)):e.arcade.owners.length===2&&i===1?(a(),t(d,{key:1},[T,n(" "+l(r.username)+".",1)],64)):i===0?(a(),t(d,{key:2},[n(l(r.username),1)],64)):i===e.arcade.owners.length-1?(a(),t(d,{key:3},[n(", "),q,n(" "+l(r.username)+".",1)],64)):(a(),t(d,{key:4},[n(", "+l(r.username),1)],64))]))),128))])):u("",!0),e.useSmall?u("",!0):(a(),t("div",z,[o(f,{href:`/#/arcade/${e.arcade.id}/events`,icon:c(S),color:"info",label:"Event Settings"},null,8,["href","icon"]),o(f,{href:`/#/arcade/${e.arcade.id}/machines`,icon:c($),color:"info",label:"Machine List"},null,8,["href","icon"]),o(f,{href:`/#/arcade/${e.arcade.id}/paseli`,icon:c(p),color:"info",label:"PASELI"},null,8,["href","icon"])])),e.useSmall?(a(),t("div",D,[o(f,{href:`/#/arcade/${e.arcade.id}`,icon:c(B),color:"info",label:"Arcade Home",class:"w-full md:w-[150px]"},null,8,["href","icon"])])):u("",!0)])]),_:1})],4))}};export{R as _}; diff --git a/assets/ArcadeCard.a97027e1.js b/assets/ArcadeCard.a97027e1.js deleted file mode 100644 index 1be1ac4..0000000 --- a/assets/ArcadeCard.a97027e1.js +++ /dev/null @@ -1,5 +0,0 @@ -import{o as e,d as l,w as _,a as g,ai as x,b as a,t as s,g as c,X as i,c as n,F as y,r as k,R as u,aj as p,h as m,ak as D,al as w,n as B,_ as v}from"./index.493ac4c5.js";import{g as S}from"./area.7873ab93.js";const j={class:"space-y-3 text-center"},A={class:"text-2xl lg:text-3xl font-bold"},C={class:"flex gap-2 justify-center items-center"},N={class:"text-2xl md:text-3xl font-bold lg:hidden"},V={class:"text-xl md:text-2xl font-bold"},$=a("hr",{class:"border-t border-1 w-full"},null,-1),O={class:"text-lg"},T={key:0},q={key:1},z=a("span",{class:"font-normal"},"and",-1),E={key:2},F={class:"flex flex-wrap gap-4 place-content-center"},M={__name:"ArcadeCard",props:{useSmall:{type:Boolean,required:!1,default:!0},arcadeData:{type:Object,required:!0}},setup(t){const b=t;function h(o){if(o!==null)return` - background-image: url('${o}'); - background-size: cover; - background-repeat: no-repeat; - `}const f=S(b.arcadeData.area);return(o,P)=>(e(),l(v,{style:B(h(t.arcadeData.image))},{default:_(()=>[g(x,{type:"justify-center",class:"bg-white dark:bg-slate-900/90 rounded-2xl p-3"},{default:_(()=>[a("div",j,[a("h1",A,s(t.arcadeData.name),1),a("div",C,[a("h2",N,s(c(f).flag),1),a("h2",V,s(c(f).name),1)]),$,a("p",O,[i(" Managed by "),(e(!0),n(y,null,k(t.arcadeData.admins,(r,d)=>(e(),n("span",{key:d,class:"font-bold"},[d===0?(e(),n("span",T,s(r),1)):d>=t.arcadeData.admins.length-1?(e(),n("span",q,[i(", "),z,i(" "+s(r)+".",1)])):(e(),n("span",E,", "+s(r),1))]))),128))]),a("div",F,[t.arcadeData.beta?(e(),l(u,{key:0,label:"Beta Enabled",color:"warning",icon:c(p)},null,8,["icon"])):m("",!0),t.arcadeData.public?(e(),l(u,{key:1,label:"Public Arcade",color:"success",icon:c(D)},null,8,["icon"])):m("",!0),t.arcadeData.public?m("",!0):(e(),l(u,{key:2,label:"Private Arcade",color:"info",icon:c(w)},null,8,["icon"]))])])]),_:1})]),_:1},8,["style"]))}};export{M as _}; diff --git a/assets/ArcadeView.5c6cb82e.js b/assets/ArcadeView.5c6cb82e.js deleted file mode 100644 index 28c9ef7..0000000 --- a/assets/ArcadeView.5c6cb82e.js +++ /dev/null @@ -1 +0,0 @@ -import{ae as A,J as g,A as y,af as $,o as h,c as x,b as s,a as e,v as k,g as l,p as m,t as I,h as P,ac as N,d as C,w as o,e as R,k as B,f as w,_ as p,Q as U,R as T,a2 as f,i as E,ag as F,ah as L}from"./index.493ac4c5.js";import{_ as M}from"./ArcadeCard.a97027e1.js";import{_ as b}from"./FormField.1774c999.js";import{_ as c}from"./FormCheckRadio.c7e54cea.js";import{_ as S}from"./FormControl.9a383f73.js";import{l as z}from"./area.7873ab93.js";const O={class:"flex items-stretch justify-start relative"},j={class:"inline-flex"},q=["accept"],D={key:0,class:"px-4 py-2 bg-gray-100 dark:bg-slate-800 border-gray-200 dark:border-slate-700 border rounded-r"},G={class:"text-ellipsis line-clamp-1"},W={__name:"FormFilePicker",props:{modelValue:{type:[Object,File,Array],default:null},label:{type:String,default:null},icon:{type:String,default:A},accept:{type:String,default:null},color:{type:String,default:"info"},isRoundIcon:Boolean},emits:["update:modelValue"],setup(t,{emit:_}){const u=t,a=g(null),i=g(u.modelValue),n=y(()=>!u.isRoundIcon&&i.value),r=y(()=>u.modelValue);$(r,d=>{i.value=d,d||(a.value.input.value=null)});const V=d=>{const v=d.target.files||d.dataTransfer.files;i.value=v[0],_("update:modelValue",i.value)};return(d,v)=>(h(),x("div",O,[s("label",j,[e(m,{as:"a",class:k({"w-12 h-12":t.isRoundIcon,"rounded-r-none":l(n)}),"icon-size":t.isRoundIcon?24:void 0,label:t.isRoundIcon?null:t.label,icon:t.icon,color:t.color,"rounded-full":t.isRoundIcon},null,8,["class","icon-size","label","icon","color","rounded-full"]),s("input",{ref_key:"root",ref:a,type:"file",class:"absolute top-0 left-0 w-full h-full opacity-0 outline-none cursor-pointer -z-1",accept:t.accept,onInput:V},null,40,q)]),l(n)?(h(),x("div",D,[s("span",G,I(i.value.name),1)])):P("",!0)]))}},J={class:"grid gap-4 grid-cols-2 md:grid-cols-4 mb-4"},Q={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 mb-6"},H=s("h1",{class:"text-lg md:text-xl"},"OpenVPN Configuration",-1),K=s("p",{class:"pb-1 dark:text-white/50"}," Use this to export your VPN config. ",-1),X=s("h1",{class:"text-lg md:text-xl"},"Cover Photo",-1),Y=s("p",{class:"pb-1 dark:text-white/50"}," NSFW = BAN. Children use this server. 60MB max. ",-1),Z=s("h1",{class:"text-lg md:text-xl mb-2"},"Location Settings",-1),ee={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},ie={__name:"ArcadeView",setup(t){const _=B(),u=parseInt(_.params.id),a=N.find(i=>i.id===u);return(i,n)=>(h(),C(R,null,{default:o(()=>[e(E,null,{default:o(()=>[e(M,{class:"mb-6","arcade-data":l(a)},null,8,["arcade-data"]),e(w,{icon:l(F),title:"Admin Overview",main:""},null,8,["icon"]),e(p,{"is-form":"",class:"mb-6",onSubmit:n[0]||(n[0]=U(()=>{},["prevent"]))},{default:o(()=>[e(T,{color:"info",label:"General Settings",class:"mb-4"}),s("div",J,[e(c,{"model-value":l(a).public,"input-value":l(a).public,name:"public",type:"switch",label:"Public Arcade",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"]),e(c,{"model-value":l(a).paseli,"input-value":l(a).paseli,name:"paseli",type:"switch",label:"PASELI",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"]),e(c,{"model-value":l(a).infinite_paseli,"input-value":l(a).infinite_paseli,name:"infinite_paseli",type:"switch",label:"Infinite PASELI",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"]),e(c,{"model-value":l(a).maintenance,"input-value":l(a).maintenance,name:"maintenance",type:"switch",label:"Maintenance Mode",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"])]),e(m,{color:"success",type:"submit",label:"Save",small:!1})]),_:1}),s("div",Q,[e(p,null,{default:o(()=>[H,K,e(m,{small:!1,color:"success",class:"my-2",label:"Export"})]),_:1}),e(p,null,{default:o(()=>[X,Y,e(W,{label:"Upload",name:"upload",accept:"image/*"}),e(m,{small:!1,color:"success",class:"mt-4",label:"Save"})]),_:1}),e(p,null,{default:o(()=>[Z,e(b,{label:"Area",help:"Set your arcade's area."},{default:o(()=>[e(S,{modelValue:l(a).area,"onUpdate:modelValue":n[1]||(n[1]=r=>l(a).area=r),name:"area",options:l(z)()},null,8,["modelValue","options"])]),_:1}),e(b,{label:"Address",help:"Set your arcade's address."},{default:o(()=>[e(S,{modelValue:l(a).address,"onUpdate:modelValue":n[2]||(n[2]=r=>l(a).address=r),name:"address",placeholder:"No address"},null,8,["modelValue"])]),_:1}),e(b,{label:"Show Address",help:"Allow your arcade's address to be seen publicly."},{default:o(()=>[e(c,{"model-value":l(a).show_address,"input-value":l(a).show_address,name:"show_address",type:"switch"},null,8,["model-value","input-value"])]),_:1}),e(m,{small:!1,color:"success",class:"mt-4",label:"Save"})]),_:1})]),e(w,{icon:l(L),title:"Arcade Overview",main:""},null,8,["icon"]),s("div",ee,[e(f,{trend:"12% (from last week)","trend-type":"up",number:37,label:"Arcade Scores (This Week)"}),e(f,{trend:"40% (from last month)","trend-type":"up",number:3,label:"Unique Games (All Time)"}),e(f,{trend:"No new players this week",number:2,label:"Unique Players (All Time)"}),e(f,{trend:"40% (from last month)","trend-type":"up",number:123456789,prefix:"\xA5",label:"PASELI Spent (This Month)"})])]),_:1})]),_:1}))}};export{ie as default}; diff --git a/assets/ArcadeView.ca56bb0b.js b/assets/ArcadeView.ca56bb0b.js new file mode 100644 index 0000000..2403643 --- /dev/null +++ b/assets/ArcadeView.ca56bb0b.js @@ -0,0 +1 @@ +import{u as f,r as u,o as v,a as c,c as g,w as l,b as e,i as b,P as x,e as h,a5 as y,_ as d,Q as w,R as $,g as s,f as r,F as S,k,l as V,n as A,p as I}from"./index.ef6c145a.js";import{_ as M}from"./ArcadeCard.687fa394.js";import{_ as n}from"./FormCheckRadio.9bd4e29f.js";const N={class:"grid gap-4 grid-cols-2 md:grid-cols-4 mb-4"},P={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 mb-6"},B=s("h1",{class:"text-lg md:text-xl"},"OpenVPN Configuration",-1),E=s("p",{class:"pb-1 dark:text-white/50"}," Use this to export your VPN config. ",-1),R={__name:"ArcadeView",setup(C){const m=f(),a=u({}),i=u(!0),_=I(),p=parseInt(_.params.id);return v(async()=>{try{const t=await m.getArcade(p);a.value=t,i.value=!1}catch(t){console.log("Failed to fetch arcade data:",t)}}),(t,o)=>(c(),g(A,null,{default:l(()=>[e(V,null,{default:l(()=>[i.value?k("",!0):(c(),b(S,{key:0},[e(M,{class:"mb-6",arcade:a.value},null,8,["arcade"]),e(x,{icon:h(y),title:"Admin Overview",main:""},null,8,["icon"]),e(d,{"is-form":"",class:"mb-6",onSubmit:o[0]||(o[0]=w(()=>{},["prevent"]))},{default:l(()=>[e($,{color:"info",label:"General Settings",class:"mb-4"}),s("div",N,[e(n,{"model-value":a.value.data.paseli_enabled,"input-value":a.value.data.paseli_enabled,name:"paseli_enabled",type:"switch",label:"PASELI",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"]),e(n,{"model-value":a.value.data.paseli_infinite,"input-value":a.value.data.paseli_infinite,name:"paseli_infinite",type:"switch",label:"Infinite PASELI",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"]),e(n,{"model-value":a.value.data.maint,"input-value":a.value.data.maint,name:"maint",type:"switch",label:"Maintenance Mode",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"])]),e(r,{color:"success",type:"submit",label:"Save",small:!1})]),_:1}),s("div",P,[e(d,null,{default:l(()=>[B,E,e(r,{small:!1,color:"success",class:"my-2",label:"Export"})]),_:1})])],64))]),_:1})]),_:1}))}};export{R as default}; diff --git a/assets/ArcadesView.d98fec73.js b/assets/ArcadesView.d98fec73.js deleted file mode 100644 index 6887150..0000000 --- a/assets/ArcadesView.d98fec73.js +++ /dev/null @@ -1,6 +0,0 @@ -import{u as x,o as a,c as t,a as c,w as u,b as r,t as l,g as s,X as i,h as g,F as b,r as k,n as v,_ as C,s as $,d as f,e as A,ac as V,f as D,i as B,ad as S}from"./index.493ac4c5.js";import{C as L}from"./CardBoxComponentEmpty.df76b494.js";import{g as N}from"./area.7873ab93.js";import{_ as F}from"./FormField.1774c999.js";import{_ as j}from"./FormControl.9a383f73.js";const z={class:"outline outline-slate-800/75 hover:scale-[1.01] hover:shadow-xl hover:outline hover:outline-blue-500/50 hover:bg-slate-500 hover:dark:bg-slate-950/90 bg-white dark:bg-slate-900/90 rounded-xl p-4 h-full w-full transition-all duration-10"},E={class:"text-xl font-bold"},O={class:"text-lg"},q={class:"lg:hidden text-xl"},M={key:0,class:"text-lg"},P=r("hr",{class:"pb-1 my-1"},null,-1),R={class:"text-lg"},T={key:0},U={key:1},X=r("span",{class:"font-normal"},"and",-1),G={key:2},H={__name:"CardBoxArcade",props:{arcadeData:{type:Object,required:!0}},setup(n){const e=n.arcadeData,o=x();function y(){return` - background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .6)), - url('${e.image}'); - background-size: cover; - background-repeat: no-repeat; - `}function w(){o.push(`/arcade/${e.id}`)}const h=N(e.area);return(K,Q)=>(a(),t("button",{class:"text-left h-full",onClick:w},[c(C,{class:"mb-2 h-full",style:v(y()),"has-table":""},{default:u(()=>[r("div",z,[r("h1",E,l(s(e).name),1),r("p",O,[r("span",q,l(s(h).flag),1),i(" "+l(s(h).name),1)]),s(e).show_address?(a(),t("p",M,l(s(e).address),1)):g("",!0),P,r("p",R,[i(" Managed by "),(a(!0),t(b,null,k(s(e).admins,(_,m)=>(a(),t("span",{key:m,class:"font-bold"},[m===0?(a(),t("span",T,l(_),1)):m>=s(e).admins.length-1?(a(),t("span",U,[i(", "),X,i(" "+l(_)+".",1)])):(a(),t("span",G,", "+l(_),1))]))),128))])])]),_:1},8,["style"])]))}},I={class:"grid gap-4 grid-cols-1 lg:grid-cols-2 w-full"},p=$({filter:""}),J={data(){return{arcadeData:V}},methods:{filterArcade(){return this.arcadeData.filter(n=>n.name.toLowerCase().includes(p.filter.toLowerCase())&&n.public)}}},te=Object.assign(J,{__name:"ArcadesView",setup(n){return(d,e)=>(a(),f(A,null,{default:u(()=>[c(B,null,{default:u(()=>[c(D,{icon:s(S),title:"Public Arcades",main:""},null,8,["icon"]),c(F,{label:"Search",class:"md:w-1/2 lg:w-1/3"},{default:u(()=>[c(j,{modelValue:p.filter,"onUpdate:modelValue":e[0]||(e[0]=o=>p.filter=o),name:"search"},null,8,["modelValue"])]),_:1}),r("div",I,[(a(!0),t(b,null,k(d.filterArcade(),o=>(a(),f(H,{key:o.id,"arcade-data":o,class:"w-full h-full"},null,8,["arcade-data"]))),128))]),!d.filterArcade()||!d.filterArcade().length?(a(),f(L,{key:0})):g("",!0)]),_:1})]),_:1}))}});export{te as default}; diff --git a/assets/CardBoxComponentEmpty.df76b494.js b/assets/CardBoxComponentEmpty.df76b494.js deleted file mode 100644 index d611cdf..0000000 --- a/assets/CardBoxComponentEmpty.df76b494.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,o as t,c as o,b as s}from"./index.493ac4c5.js";const c={},n={class:"text-center py-14 text-gray-500 dark:text-slate-400"},r=s("p",null,"Nothing's here\u2026",-1),a=[r];function _(d,i){return t(),o("div",n,a)}const l=e(c,[["render",_]]);export{l as C}; diff --git a/assets/CardsView.36655713.js b/assets/CardsView.36655713.js deleted file mode 100644 index 64888cf..0000000 --- a/assets/CardsView.36655713.js +++ /dev/null @@ -1 +0,0 @@ -import{d as i,w as l,e as r,o,a as e,P as d,f as _,g as n,b as s,c as m,r as u,F as p,i as g,a1 as f,t as C,p as t}from"./index.493ac4c5.js";import{d as b}from"./userData.bcc92478.js";const h="/assets/passes/generic.png",x=s("div",{class:"text-xl mb-4"},[s("h4",null,"AC = Web Access Code"),s("h4",null,"NFC-ID = Internal ID for card0.txt")],-1),y={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},F={class:"flex justify-between md:grid md:gap-2 mb-4 items-center"},v=s("img",{src:h,class:"w-24 md:w-auto"},null,-1),w={class:"text-xl text-center font-mono"},A={class:"grid grid-cols-3 md:grid-cols-2 gap-2"},R={__name:"CardsView",setup(B){const c=["YRZ2FGHW24JJTU2E","Z1Y0WWAMXGRMZY26","1RJKZLBFKSK2AB2F","R1Y4H1J7GSUZSR2P","7JNC815MHXU33222"];return(D,k)=>(o(),i(r,null,{default:l(()=>[e(g,null,{default:l(()=>[e(d,{class:"mb-6","use-small":"","even-smaller":""}),e(_,{icon:n(f),title:"Login Cards",main:""},null,8,["icon"]),x,s("div",y,[(o(),m(p,null,u(c,a=>s("div",{key:a,class:"grid dark:bg-slate-900/70 rounded-2xl p-5"},[s("div",F,[v,s("h1",w,C(n(b)(a)),1)]),s("div",A,[e(t,{type:"submit",color:"info",label:"Copy AC"}),e(t,{type:"submit",color:"info",label:"Copy NFC-ID"}),e(t,{type:"submit",color:"danger",label:"Delete"})])])),64))])]),_:1})]),_:1}))}};export{R as default}; diff --git a/assets/CardsView.8ff89c88.js b/assets/CardsView.8ff89c88.js new file mode 100644 index 0000000..ef9568b --- /dev/null +++ b/assets/CardsView.8ff89c88.js @@ -0,0 +1 @@ +import{u,r as p,o as g,a as o,c as f,w as i,b as s,O as C,P as h,e as l,$ as b,g as e,i as d,j as x,t as v,f as n,F as k,l as y,n as w}from"./index.ef6c145a.js";import{d as $}from"./userData.bcc92478.js";const D="/assets/passes/generic.png",F=e("div",{class:"text-xl mb-4"},[e("h4",null,"AC = Web Access Code"),e("h4",null,"NFC-ID = Internal ID for card0.txt")],-1),A={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},B={class:"flex justify-between md:grid md:gap-2 mb-4 items-center"},I=e("img",{src:D,class:"w-24 md:w-auto"},null,-1),N={class:"text-xl text-center font-mono"},S={class:"grid grid-cols-3 md:grid-cols-2 gap-2"},O={__name:"CardsView",setup(V){const _=u();var c=p([]);g(async()=>{try{const a=await _.getCards();c.value=a}catch(a){console.error("Failed to fetch card data:",a)}});const r=a=>{navigator.clipboard.writeText(a).then(()=>{alert("Copied to clipboard!")}).catch(()=>{alert("Failed to copy to clipboard!")})};return(a,j)=>(o(),f(w,null,{default:i(()=>[s(y,null,{default:i(()=>[s(C,{class:"mb-6","use-small":"","even-smaller":""}),s(h,{icon:l(b),title:"Login Cards",main:""},null,8,["icon"]),F,e("div",A,[(o(!0),d(k,null,x(l(c),t=>(o(),d("div",{key:t.id,class:"grid dark:bg-slate-900/70 rounded-2xl p-5"},[e("div",B,[I,e("h1",N,v(l($)(t.encoded)),1)]),e("div",S,[s(n,{color:"info",label:"Copy AC",onClick:m=>r(t.encoded)},null,8,["onClick"]),s(n,{color:"info",label:"Copy NFC-ID",onClick:m=>r(t.id)},null,8,["onClick"]),s(n,{color:"danger",label:"Delete"})])]))),128))])]),_:1})]),_:1}))}};export{O as default}; diff --git a/assets/CustomizeView.01b1d105.js b/assets/CustomizeView.01b1d105.js deleted file mode 100644 index e0ed711..0000000 --- a/assets/CustomizeView.01b1d105.js +++ /dev/null @@ -1 +0,0 @@ -import{d as t,w as e,e as i,o as r,a,P as n,f as c,g as _,b as s,_ as d,p as o,i as m,W as u}from"./index.493ac4c5.js";import{_ as l}from"./FormControl.9a383f73.js";const f={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},g=s("h2",{class:"text-lg mb-2"},"Avatar Source",-1),v=s("h2",{class:"text-lg mb-2"},"Avatar Border",-1),p=s("h2",{class:"text-lg mb-2"},"Profile Background",-1),b={class:"space-x-2"},P={__name:"CustomizeView",setup(h){return(x,$)=>(r(),t(i,null,{default:e(()=>[a(m,null,{default:e(()=>[a(n,{class:"mb-6","use-small":"","even-smaller":""}),a(c,{icon:_(u),title:"Profile Customizations",main:""},null,8,["icon"]),s("div",null,[a(d,null,{footer:e(()=>[s("div",b,[a(o,{type:"submit",color:"success",label:"Save"}),a(o,{type:"submit",color:"danger",label:"Revert"})])]),default:e(()=>[s("div",f,[s("div",null,[g,a(l,{options:["Discord","Gravatar","Kamaitachi"],"model-value":"Gravatar",name:"border"})]),s("div",null,[v,a(l,{options:["Trans Flag","Pride Flag"],"model-value":"Trans Flag",name:"border"})]),s("div",null,[p,a(l,{options:["Trans Flag","Pride Flag"],"model-value":"Trans Flag",name:"border"})])])]),_:1})])]),_:1})]),_:1}))}};export{P as default}; diff --git a/assets/EditView.4504df1c.js b/assets/EditView.4504df1c.js deleted file mode 100644 index f9df737..0000000 --- a/assets/EditView.4504df1c.js +++ /dev/null @@ -1,5 +0,0 @@ -import{s as v,am as V,d as n,w as d,e as $,k as x,u as P,o,a as l,b as i,p as _,g as m,c,h as s,f as B,n as C,_ as A,F as N,r as E,i as F,q as G,W as z}from"./index.493ac4c5.js";import{_ as D}from"./ProfileCard.ca85f322.js";import{_ as R}from"./FormField.1774c999.js";import{_ as I}from"./FormCheckRadio.c7e54cea.js";import{_ as p}from"./FormControl.9a383f73.js";import"./userData.bcc92478.js";const T={class:"md:flex pb-6 md:justify-between md:items-center"},L={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},U=i("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),W={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},j={class:"w-full"},q={key:2},H={class:"space-x-2"},X={__name:"EditView",setup(M){const b=x(),h=P();var f=null,t=null;const r=v({currentVersion:null}),k=[{id:"username",name:"Username",help:"Set your username for this profile",type:String},{id:"fastSlow",name:"Fast/Slow Display",help:"Enable or disable displaying of Fast/Slow",type:Boolean},{id:"comboPosition",name:"Combo Position",help:"Change order of the combo and notes",type:Boolean},{id:"weight",name:"Weight (kg)",help:"Set your weight for in-game workout mode",type:Number},{id:"dancer",name:"Character",help:"Set your background dancer",type:Array,options:[{id:0,label:"Afro"},{id:1,label:"Emi"}]},{id:"arrow",name:"Arrow Skin",help:"Set your arrow skin",type:Array,options:[{id:0,label:"Normal"},{id:1,label:"Classic"}]}],g={id:1,name:"Trmazi",extid:12345678,avatar:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/",last:{arcade:"GhettoCade",date:"7/16/2023"},stats:{firstPlay:"1/14/2021",singlePlays:165,singleDan:1900,singlePoint:1877,doublePlays:15,doubleDan:0,doublePoint:187,skillPoints:95e4}},a=v({username:"TRMAZI",fastSlow:!0,comboPosition:!1,weight:100,dancer:0,arrow:1,guideLines:0,filter:3});f=b.params.game,t=V(f),t||h.push({name:"ErrorPage",params:{catchAll:"404"}}),t.versions||(r.currentVersion=1);function w(){var u=null;return r.currentVersion?u=`/assets/games/${t.id}/card/${r.currentVersion}.png`:u=t.cardBG,u}function S(){return` - background-image: url('${w()}'); - background-size: cover; - background-repeat: no-repeat; - `}return(u,y)=>(o(),n($,null,{default:d(()=>[l(F,null,{default:d(()=>[i("div",T,[l(_,{icon:m(G),href:`/#/games/${m(f)}`,class:"w-full md:w-auto",color:"info",label:"Go Back"},null,8,["icon","href"]),m(t).versions?(o(),c("div",L,[U,l(p,{modelValue:r.currentVersion,"onUpdate:modelValue":y[0]||(y[0]=e=>r.currentVersion=e),options:m(t).versions},null,8,["modelValue","options"])])):s("",!0)]),r.currentVersion?(o(),n(B,{key:0,icon:m(z),title:"Profile Customizations",main:""},null,8,["icon"])):s("",!0),r.currentVersion?(o(),c("div",{key:1,style:C(S()),class:"rounded-2xl mb-6"},[i("div",W,[i("div",j,[l(D,{"use-small":"",profile:g})])])],4)):s("",!0),r.currentVersion?(o(),c("div",q,[l(A,null,{footer:d(()=>[i("div",H,[l(_,{type:"submit",color:"success",label:"Save"}),l(_,{type:"submit",color:"danger",label:"Revert"})])]),default:d(()=>[i("div",null,[(o(),c(N,null,E(k,e=>l(R,{key:e.id,label:e.name,help:e.help},{default:d(()=>[e.type==String?(o(),n(p,{key:0,"v-model":a[e.id],"model-value":a[e.id]},null,8,["v-model","model-value"])):s("",!0),e.type==Number?(o(),n(p,{key:1,"v-model":a[e.id],"model-value":a[e.id],type:"number"},null,8,["v-model","model-value"])):s("",!0),e.type==Array?(o(),n(p,{key:2,options:e.options,"v-model":a[e.id],"model-value":a[e.id],selected:a[e.id]},null,8,["options","v-model","model-value","selected"])):s("",!0),e.type==Boolean?(o(),n(I,{key:3,"v-model":a[e.id],"model-value":a[e.id],type:"switch"},null,8,["v-model","model-value"])):s("",!0)]),_:2},1032,["label","help"])),64))])]),_:1})])):s("",!0)]),_:1})]),_:1}))}};export{X as default}; diff --git a/assets/EditView.d1ac0039.js b/assets/EditView.d1ac0039.js new file mode 100644 index 0000000..59e5406 --- /dev/null +++ b/assets/EditView.d1ac0039.js @@ -0,0 +1,5 @@ +import{r as y,s as P,N as S,ar as R,a,c as t,w as f,g as d,b as u,f as k,R as U,i as x,F as j,j as N,_ as Q,u as q,ad as G,o as z,e as h,m as F,k as p,P as A,as as I,ac as K,l as M,n as O,p as D,q as H}from"./index.ef6c145a.js";import{b as L,U as T,_ as J}from"./ProfileCard.206878f8.js";import{_ as C}from"./FormField.e32df112.js";import{_ as W}from"./FormCheckRadio.9bd4e29f.js";import{_ as w}from"./FormControl.3fead597.js";import"./userData.bcc92478.js";const X={class:"grid md:grid-cols-2 space-y-6 align-center"},Y={class:"place-self-center"},Z={class:"space-x-2"},ee={__name:"EmblemCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(E){var m,B;const i=E,_=y(i.profile),b=y(i.version),c=y(0),r=P(g((B=(m=_.value)==null?void 0:m.last)==null?void 0:B.emblem)),s=y([]);S(()=>i.version,()=>{var e;_.value=i.profile,b.value=i.version,l(),r.value=g((e=_.value.last)==null?void 0:e.emblem)}),S(r,()=>{c.value++},{deep:!0}),l();function l(){R.get(`https://web3.phaseii.network/gameassets/emblems/${b.value}.json`).then(e=>{e.data&&(s.value=e.data)}).catch(e=>{console.log(e.message)})}function g(e){return e?{background:e[0],main:e[1],ornament:e[2],effect:e[3],speech_bubble:e[4]}:{background:0,main:0,ornament:0,effect:0,speech_bubble:0}}function $(e){return e?[e.background,e.main,e.ornament,e.effect,e.speech_bubble]:[0,0,0,0,0]}return(e,n)=>(a(),t(Q,{class:"mt-6"},{footer:f(()=>[d("div",Z,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[u(U,{color:"info",label:"Emblem",class:"mb-2"}),d("div",X,[d("div",null,[(a(!0),x(j,null,N(s.value,v=>(a(),t(C,{key:v.id,label:v.name,help:v.help},{default:f(()=>[u(w,{modelValue:r[v.id],"onUpdate:modelValue":V=>r[v.id]=V,options:v.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),d("div",Y,[(a(),t(L,{key:c.value,version:b.value,profile:{last:{emblem:$(r)}},size:300},null,8,["version","profile"]))])])]),_:1}))}},le={class:"grid md:grid-cols-2 space-y-6 align-center"},se={class:"place-self-center"},ae={class:"space-x-2"},re={__name:"QproCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(E){var g,$;const i=E,_=y(i.profile),b=y(i.version),c=y(0),r=P(($=(g=_.value)==null?void 0:g.qpro)!=null?$:{head:0,hair:0,face:0,body:0,hand:0}),s=y([]);S(()=>i.version,()=>{var m;_.value=i.profile,l(),r.value=(m=_.value)==null?void 0:m.qpro}),S(()=>i.version,()=>{b.value=i.version}),S(r,()=>{c.value++},{deep:!0}),l();function l(){R.get(`https://web3.phaseii.network/gameassets/qpro/${b.value}.json`).then(m=>{m.data&&(s.value=m.data)}).catch(m=>{console.log(m.message)})}return(m,B)=>(a(),t(Q,{class:"mt-6"},{footer:f(()=>[d("div",ae,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[u(U,{color:"info",label:"QPro",class:"mb-2"}),d("div",le,[d("div",null,[(a(!0),x(j,null,N(s.value,e=>(a(),t(C,{key:e.id,label:e.name,help:e.help},{default:f(()=>[u(w,{modelValue:r[e.id],"onUpdate:modelValue":n=>r[e.id]=n,options:e.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),d("div",se,[(a(),t(T,{key:c.value,version:b.value,profile:{qpro:r},style:{scale:"1.9"},class:"my-16 mb-10"},null,8,["version","profile"]))])])]),_:1}))}},oe={class:"md:flex pb-6 md:justify-between md:items-center"},ne={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},te=d("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),ue={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},ie={class:"w-full"},ce={key:2},de={class:"space-x-2"},he={__name:"EditView",setup(E){const i=D(),_=H(),b=q();var c=null,r=null;const s=P({currentVersion:null});S(()=>s.currentVersion,()=>{e()}),c=i.params.game,r=G(c),r||_.push({name:"ErrorPage",params:{catchAll:"404"}}),r.versions||(s.currentVersion=1);const l=y(null);z(()=>{e()});var g=[{id:"name",name:"Username",help:"Set your username for this profile",type:String}];function $(){var n=null;return s.currentVersion?n=`/assets/games/${r.id}/card/${s.currentVersion}.png`:n=r.cardBG,n}function m(){return` + background-image: url('${$()}'); + background-size: cover; + background-repeat: no-repeat; + `}function B(n){var v=[];for(const V of r.versions)n.includes(V.id)&&v.push(V);return v}async function e(){try{l.value=null;const n=await b.getUserProfile(c,s.currentVersion);l.value=n,n&&!s.currentVersion&&(s.currentVersion=n.versions[n.versions.length-1])}catch(n){console.error("Failed to fetch user profile data:",n)}}return(n,v)=>(a(),t(O,null,{default:f(()=>[u(M,null,{default:f(()=>{var V;return[d("div",oe,[u(k,{icon:h(F),href:`/#/games/${h(c)}`,class:"w-full md:w-auto",color:"info",label:"Go Back"},null,8,["icon","href"]),h(r).versions&&l.value?(a(),x("div",ne,[te,u(w,{modelValue:s.currentVersion,"onUpdate:modelValue":v[0]||(v[0]=o=>s.currentVersion=o),options:B(l.value.versions)},null,8,["modelValue","options"])])):p("",!0)]),s.currentVersion?(a(),t(A,{key:0,icon:h(I),title:"Profile Customizations",main:""},null,8,["icon"])):p("",!0),s.currentVersion?(a(),x("div",{key:1,style:K(m()),class:"rounded-2xl mb-6"},[d("div",ue,[d("div",ie,[l.value?(a(),t(J,{key:0,"use-small":"",game:h(c),profile:l.value,version:s.currentVersion},null,8,["game","profile","version"])):p("",!0)])])],4)):p("",!0),s.currentVersion&&l.value?(a(),x("div",ce,[u(Q,null,{footer:f(()=>[d("div",de,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[d("div",null,[u(U,{color:"info",label:"General",class:"mb-2"}),(a(!0),x(j,null,N(h(g),o=>(a(),t(C,{key:o.id,label:o.name,help:o.help},{default:f(()=>[o.type==String?(a(),t(w,{key:0,"v-model":l.value[o.id],"model-value":l.value[o.id]},null,8,["v-model","model-value"])):p("",!0),o.type==Number?(a(),t(w,{key:1,"v-model":l.value[o.id],"model-value":l.value[o.id],type:"number"},null,8,["v-model","model-value"])):p("",!0),o.type==Array?(a(),t(w,{key:2,options:o.options,"v-model":l.value[o.id],"model-value":l.value[o.id],selected:l.value[o.id]},null,8,["options","v-model","model-value","selected"])):p("",!0),o.type==Boolean?(a(),t(W,{key:3,"v-model":l.value[o.id],"model-value":l.value[o.id],type:"switch"},null,8,["v-model","model-value"])):p("",!0)]),_:2},1032,["label","help"]))),128))])]),_:1}),h(c)=="jubeat"&&s.currentVersion>=10&&((V=l.value.last)==null?void 0:V.emblem)?(a(),t(ee,{key:0,profile:l.value,version:s.currentVersion},null,8,["profile","version"])):p("",!0),(h(c)=="iidx"||h(c)=="iidxclass")&&s.currentVersion>=19?(a(),t(re,{key:1,profile:l.value,version:s.currentVersion},null,8,["profile","version"])):p("",!0)])):p("",!0)]}),_:1})]),_:1}))}};export{he as default}; diff --git a/assets/ErrorView.3662f037.js b/assets/ErrorView.3662f037.js deleted file mode 100644 index 4142cdf..0000000 --- a/assets/ErrorView.3662f037.js +++ /dev/null @@ -1 +0,0 @@ -import{d as a,w as s,o as l,b as e,a as t,p as o,_ as r,x as c}from"./index.493ac4c5.js";import{_ as n}from"./LayoutGuest.38de82d0.js";const d={class:"flex md:min-h-screen md:items-center md:justify-center"},i={class:"p-4 flex flex-col w-full space-y-2"},_=e("div",{class:"flex flex-col items-center text-wrap h-full"},[e("img",{src:c,class:"rounded-full shadow-lg mb-2"}),e("h1",{class:"text-xl"},[e("samp",null,"PhaseII")]),e("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Broken since 2021 "),e("hr",{class:"border-t border-1 my-1 w-full"}),e("p",{class:"text-lg relative bottom-0"},"404 - File not found")],-1),m=e("h2",{class:"mb-2"}," The server was unable to locate the page you're trying to go to. ",-1),w={__name:"ErrorView",setup(f){return(u,h)=>(l(),a(n,null,{default:s(()=>[e("div",d,[t(r,{class:"w-full md:w-auto rounded-none md:rounded-xl","has-table":"","is-auth":""},{default:s(()=>[e("div",i,[_,e("div",null,[m,t(o,{label:"Home",color:"info",href:"/"})])])]),_:1})])]),_:1}))}};export{w as default}; diff --git a/assets/ErrorView.eaeb20fd.js b/assets/ErrorView.eaeb20fd.js new file mode 100644 index 0000000..b0cce0a --- /dev/null +++ b/assets/ErrorView.eaeb20fd.js @@ -0,0 +1 @@ +import{a,c as l,w as s,g as e,b as t,f as o,_ as r,z as c}from"./index.ef6c145a.js";import{_ as n}from"./LayoutGuest.935550c8.js";const d={class:"flex md:min-h-screen md:items-center md:justify-center"},i={class:"p-4 flex flex-col w-full space-y-2"},_=e("div",{class:"flex flex-col items-center text-wrap h-full"},[e("img",{src:c,class:"rounded-full shadow-lg mb-2"}),e("h1",{class:"text-xl"},[e("samp",null,"PhaseII")]),e("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Broken since 2021 "),e("hr",{class:"border-t border-1 my-1 w-full"}),e("p",{class:"text-lg relative bottom-0"},"404 - File not found")],-1),m=e("h2",{class:"mb-2"}," The server was unable to locate the page you're trying to go to. ",-1),w={__name:"ErrorView",setup(f){return(u,h)=>(a(),l(n,null,{default:s(()=>[e("div",d,[t(r,{class:"w-full md:w-auto rounded-none md:rounded-xl","has-table":"","is-auth":""},{default:s(()=>[e("div",i,[_,e("div",null,[m,t(o,{label:"Home",color:"info",href:"/"})])])]),_:1})])]),_:1}))}};export{w as default}; diff --git a/assets/EventView.36f0af1c.js b/assets/EventView.36f0af1c.js new file mode 100644 index 0000000..133a228 --- /dev/null +++ b/assets/EventView.36f0af1c.js @@ -0,0 +1 @@ +import{u as G,r as g,o as N,s as U,N as w,a as l,c as r,w as d,b as s,i as u,P as E,e as O,a8 as A,_ as F,g as i,k as m,Y as M,t as P,F as h,j,f as D,l as T,n as W,p as L,ad as v,ae as Q}from"./index.ef6c145a.js";import{_ as R}from"./ArcadeCard.687fa394.js";import{_ as y}from"./FormField.e32df112.js";import{_ as c}from"./FormControl.3fead597.js";import{_ as X}from"./FormCheckRadio.9bd4e29f.js";const Y={class:"mb-4"},q={class:"grid md:grid-cols-2 gap-4"},z=i("p",{class:"pb-2 text-lg"},"Game",-1),H={key:0},J=i("p",{class:"pb-2 text-lg"},"Version",-1),K={key:0},Z={class:"text-xl"},ee=i("hr",{class:"pb-1 my-2"},null,-1),ie={__name:"EventView",setup(ae){const b=G(),f=g({}),_=g(!0),V=L(),S=parseInt(V.params.id);N(async()=>{try{const t=await b.getArcade(S);f.value=t,_.value=!1}catch(t){console.log("Failed to fetch arcade data:",t)}});const p=[{id:"iidx",versions:[{id:22,settings:[{id:0,keyId:"coke",type:Boolean,name:"Enable Coke-X-BEMANI",tooltip:"Enables the long forgotten Coca-Cola event.",value:!0},{id:1,keyId:"phase",type:Array,name:"Current BOSS Phase",tooltip:"Set the main game event.",options:[{id:0,label:"No Event"},{id:1,label:"Chrono Seeker"},{id:2,label:"QPronicle Chord"}],value:1}]}]},{id:"dm",versions:[{id:18,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]},{id:17,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]}]}],o=U({game:null,version:null});function k(){var t=[];for(const a of Q)p.find(n=>n.id==a.id)&&t.push(a.id);return t}function I(){var t=[];const a=k();for(const e of a)t.push({id:e,label:v(e).name});return t}function $(){const t=p.find(e=>e.id==o.game);var a=[];for(const e of t.versions){const n=v(o.game).versions.find(C=>C.id==e.id);a.push({id:e.id,label:n.label})}return a}function x(){return p.find(a=>a.id==o.game).versions.find(a=>a.id==o.version)}function B(){const t=v(o.game),a=t.versions.find(e=>e.id==o.version);return`${t.name} ${a.label}`}return w(()=>o.game,()=>{o.version=null}),(t,a)=>(l(),r(W,null,{default:d(()=>[s(T,null,{default:d(()=>[_.value?m("",!0):(l(),u(h,{key:0},[s(R,{class:"mb-6",arcade:f.value,"use-small":!0},null,8,["arcade"]),s(E,{icon:O(A),title:"Game Event Settings",main:""},null,8,["icon"]),s(F,{class:"mb-6"},{default:d(()=>[i("div",Y,[s(y,{label:"Select Game",help:"Pick a game and version to get started."},{default:d(()=>[i("div",q,[i("div",null,[z,s(c,{modelValue:o.game,"onUpdate:modelValue":a[0]||(a[0]=e=>o.game=e),name:"game",options:I()},null,8,["modelValue","options"])]),o.game?(l(),u("div",H,[J,s(c,{modelValue:o.version,"onUpdate:modelValue":a[1]||(a[1]=e=>o.version=e),name:"version",options:$()},null,8,["modelValue","options"])])):m("",!0)])]),_:1})]),o.game&&o.version?(l(),u("div",K,[i("h2",Z,[M(" Settings for "),i("b",null,P(B()),1)]),ee,(l(!0),u(h,null,j(x().settings,e=>(l(),r(y,{key:e.id,label:e.name,help:e.tooltip},{default:d(()=>[e.type==String?(l(),r(c,{key:0,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"model-value":e.value,name:e.keyId,placeholder:"Not Set"},null,8,["modelValue","onUpdate:modelValue","model-value","name"])):e.type==Boolean?(l(),r(X,{key:1,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"input-value":e.value,type:"switch",name:e.keyId},null,8,["modelValue","onUpdate:modelValue","input-value","name"])):m("",!0),e.type==Array?(l(),r(c,{key:2,modelValue:e.options[e.value],"onUpdate:modelValue":n=>e.options[e.value]=n,name:e.keyId,options:e.options,placeholder:"Select..."},null,8,["modelValue","onUpdate:modelValue","name","options"])):m("",!0)]),_:2},1032,["label","help"]))),128)),s(D,{color:"success",type:"submit",label:"Save",small:!1})])):m("",!0)]),_:1})],64))]),_:1})]),_:1}))}};export{ie as default}; diff --git a/assets/EventView.51860b47.js b/assets/EventView.51860b47.js deleted file mode 100644 index f67a7dd..0000000 --- a/assets/EventView.51860b47.js +++ /dev/null @@ -1 +0,0 @@ -import{ac as x,s as B,af as C,d as r,w as d,e as G,k as N,o as l,a as s,g as v,f as U,_ as E,b as i,c as p,h as m,X as w,t as O,F as A,r as D,p as F,i as P,am as f,an as T,ao as W}from"./index.493ac4c5.js";import{_ as j}from"./ArcadeCard.a97027e1.js";import{_}from"./FormField.1774c999.js";import{_ as u}from"./FormControl.9a383f73.js";import{_ as L}from"./FormCheckRadio.c7e54cea.js";import"./area.7873ab93.js";const M={class:"mb-4"},X={class:"grid md:grid-cols-2 gap-4"},Q=i("p",{class:"pb-2 text-lg"},"Game",-1),R={key:0},q=i("p",{class:"pb-2 text-lg"},"Version",-1),z={key:0},H={class:"text-xl"},J=i("hr",{class:"pb-1 my-2"},null,-1),ne={__name:"EventView",setup(K){const g=N(),h=parseInt(g.params.id),b=x.find(o=>o.id===h),c=[{id:"iidx",versions:[{id:22,settings:[{id:0,keyId:"coke",type:Boolean,name:"Enable Coke-X-BEMANI",tooltip:"Enables the long forgotten Coca-Cola event.",value:!0},{id:1,keyId:"phase",type:Array,name:"Current BOSS Phase",tooltip:"Set the main game event.",options:[{id:0,label:"No Event"},{id:1,label:"Chrono Seeker"},{id:2,label:"QPronicle Chord"}],value:1}]}]},{id:"dm",versions:[{id:18,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]},{id:17,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]}]}],t=B({game:null,version:null});function V(){var o=[];for(const a of W)c.find(n=>n.id==a.id)&&o.push(a.id);return o}function y(){var o=[];const a=V();for(const e of a)o.push({id:e,label:f(e).name});return o}function S(){const o=c.find(e=>e.id==t.game);var a=[];for(const e of o.versions){const n=f(t.game).versions.find($=>$.id==e.id);a.push({id:e.id,label:n.label})}return a}function k(){return c.find(a=>a.id==t.game).versions.find(a=>a.id==t.version)}function I(){const o=f(t.game),a=o.versions.find(e=>e.id==t.version);return`${o.name} ${a.label}`}return C(()=>t.game,()=>{t.version=null}),(o,a)=>(l(),r(G,null,{default:d(()=>[s(P,null,{default:d(()=>[s(j,{class:"mb-6","arcade-data":v(b)},null,8,["arcade-data"]),s(U,{icon:v(T),title:"Game Event Settings",main:""},null,8,["icon"]),s(E,{class:"mb-6"},{default:d(()=>[i("div",M,[s(_,{label:"Select Game",help:"Pick a game and version to get started."},{default:d(()=>[i("div",X,[i("div",null,[Q,s(u,{modelValue:t.game,"onUpdate:modelValue":a[0]||(a[0]=e=>t.game=e),name:"game",options:y()},null,8,["modelValue","options"])]),t.game?(l(),p("div",R,[q,s(u,{modelValue:t.version,"onUpdate:modelValue":a[1]||(a[1]=e=>t.version=e),name:"version",options:S()},null,8,["modelValue","options"])])):m("",!0)])]),_:1})]),t.game&&t.version?(l(),p("div",z,[i("h2",H,[w(" Settings for "),i("b",null,O(I()),1)]),J,(l(!0),p(A,null,D(k().settings,e=>(l(),r(_,{key:e.id,label:e.name,help:e.tooltip},{default:d(()=>[e.type==String?(l(),r(u,{key:0,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"model-value":e.value,name:e.keyId,placeholder:"Not Set"},null,8,["modelValue","onUpdate:modelValue","model-value","name"])):e.type==Boolean?(l(),r(L,{key:1,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"input-value":e.value,type:"switch",name:e.keyId},null,8,["modelValue","onUpdate:modelValue","input-value","name"])):m("",!0),e.type==Array?(l(),r(u,{key:2,modelValue:e.options[e.value],"onUpdate:modelValue":n=>e.options[e.value]=n,name:e.keyId,options:e.options,placeholder:"Select..."},null,8,["modelValue","onUpdate:modelValue","name","options"])):m("",!0)]),_:2},1032,["label","help"]))),128)),s(F,{color:"success",type:"submit",label:"Save",small:!1})])):m("",!0)]),_:1})]),_:1})]),_:1}))}};export{ne as default}; diff --git a/assets/FormCheckRadio.c7e54cea.js b/assets/FormCheckRadio.9bd4e29f.js similarity index 50% rename from assets/FormCheckRadio.c7e54cea.js rename to assets/FormCheckRadio.9bd4e29f.js index 09d8ab2..11b2670 100644 --- a/assets/FormCheckRadio.c7e54cea.js +++ b/assets/FormCheckRadio.9bd4e29f.js @@ -1 +1 @@ -import{A as s,o as d,c as p,B as m,C as y,g as u,b as a,D as b,t as h,v as V}from"./index.493ac4c5.js";const g=["type","name","value"],f=a("span",{class:"check"},null,-1),k={class:"pl-2"},B={__name:"FormCheckRadio",props:{name:{type:String,required:!0},type:{type:String,default:"checkbox",validator:e=>["checkbox","radio","switch"].includes(e)},label:{type:String,default:null},modelValue:{type:[Array,String,Number,Boolean],default:null},inputValue:{type:[String,Number,Boolean],required:!0}},emits:["update:modelValue"],setup(e,{emit:i}){const l=e,t=s({get:()=>l.modelValue,set:n=>{i("update:modelValue",n)}}),r=s(()=>l.type==="radio"?"radio":"checkbox");return(n,o)=>(d(),p("label",{class:V(e.type)},[m(a("input",{"onUpdate:modelValue":o[0]||(o[0]=c=>b(t)?t.value=c:null),type:u(r),name:e.name,value:e.inputValue},null,8,g),[[y,u(t)]]),f,a("span",k,h(e.label),1)],2))}};export{B as _}; +import{A as s,a as d,i as p,B as m,C as y,e as u,g as t,D as h,t as V,y as b}from"./index.ef6c145a.js";const g=["type","name","value"],f=t("span",{class:"check"},null,-1),k={class:"pl-2"},B={__name:"FormCheckRadio",props:{name:{type:String,required:!0},type:{type:String,default:"checkbox",validator:e=>["checkbox","radio","switch"].includes(e)},label:{type:String,default:null},modelValue:{type:[Array,String,Number,Boolean],default:null},inputValue:{type:[String,Number,Boolean],required:!0}},emits:["update:modelValue"],setup(e,{emit:i}){const l=e,a=s({get:()=>l.modelValue,set:n=>{i("update:modelValue",n)}}),r=s(()=>l.type==="radio"?"radio":"checkbox");return(n,o)=>(d(),p("label",{class:b(e.type)},[m(t("input",{"onUpdate:modelValue":o[0]||(o[0]=c=>h(a)?a.value=c:null),type:u(r),name:e.name,value:e.inputValue},null,8,g),[[y,u(a)]]),f,t("span",k,V(e.label),1)],2))}};export{B as _}; diff --git a/assets/FormControl.3fead597.js b/assets/FormControl.3fead597.js new file mode 100644 index 0000000..cd100f7 --- /dev/null +++ b/assets/FormControl.3fead597.js @@ -0,0 +1 @@ +import{a as r,c as B,H as V,A as m,u as R,r as p,o as w,I as q,i as s,e as a,B as h,J as C,D as g,y as v,F as D,j as M,t as K,K as U,C as A,k as H}from"./index.ef6c145a.js";const I={__name:"FormControlIcon",props:{icon:{type:String,default:null},h:{type:String,default:null}},setup(e){return(d,n)=>(r(),B(V,{path:e.icon,w:"w-10",h:e.h,class:"absolute top-0 left-0 z-10 pointer-events-none text-gray-500 dark:text-slate-400"},null,8,["path","h"]))}},L={class:"relative"},j=["id","name"],z=["value"],N=["id","name","maxlength","placeholder","required"],T=["id","name","maxlength","inputmode","autocomplete","required","placeholder","type"],J={__name:"FormControl",props:{name:{type:String,default:null},id:{type:String,default:null},autocomplete:{type:String,default:null},maxlength:{type:String,default:null},placeholder:{type:String,default:null},inputmode:{type:String,default:null},icon:{type:String,default:null},options:{type:Array,default:null},type:{type:String,default:"text"},modelValue:{type:[String,Number,Boolean,Array,Object],default:""},required:Boolean,borderless:Boolean,transparent:Boolean,ctrlKFocus:Boolean},emits:["update:modelValue","setRef"],setup(e,{emit:d}){const n=e,o=m({get:()=>n.modelValue,set:u=>{d("update:modelValue",u)}}),f=m(()=>{const u=["px-3 py-2 max-w-full focus:ring focus:outline-none border-blue-700 dark:border-blue-500 rounded w-full","dark:placeholder-gray-400",i.value==="textarea"?"h-24":"h-12",n.borderless?"border-0":"border",n.transparent?"bg-transparent":"bg-white dark:bg-slate-800"];return n.icon&&u.push("pl-10"),u}),i=m(()=>n.options?"select":n.type),E=m(()=>n.type==="textarea"?"h-full":"h-12"),y=R(),x=p(null),k=p(null),c=p(null);if(w(()=>{x.value?d("setRef",x.value):k.value?d("setRef",k.value):d("setRef",c.value)}),n.ctrlKFocus){const u=l=>{l.ctrlKey&&l.key==="k"?(l.preventDefault(),c.value.focus()):l.key==="Escape"&&c.value.blur()};w(()=>{y.isFieldFocusRegistered||(window.addEventListener("keydown",u),y.isFieldFocusRegistered=!0)}),q(()=>{window.removeEventListener("keydown",u),y.isFieldFocusRegistered=!1})}return(u,l)=>(r(),s("div",L,[a(i)==="select"?h((r(),s("select",{key:0,id:e.id,"onUpdate:modelValue":l[0]||(l[0]=t=>g(o)?o.value=t:null),name:e.name,class:v(a(f))},[(r(!0),s(D,null,M(e.options,t=>{var b,S,F;return r(),s("option",{key:(b=t.id)!=null?b:t,value:(S=t.id)!=null?S:t},K((F=t.label)!=null?F:t),9,z)}),128))],10,j)),[[C,a(o)]]):a(i)==="textarea"?h((r(),s("textarea",{key:1,id:e.id,"onUpdate:modelValue":l[1]||(l[1]=t=>g(o)?o.value=t:null),class:v(a(f)),name:e.name,maxlength:e.maxlength,placeholder:e.placeholder,required:e.required},null,10,N)),[[U,a(o)]]):h((r(),s("input",{key:2,id:e.id,ref_key:"inputEl",ref:c,"onUpdate:modelValue":l[2]||(l[2]=t=>g(o)?o.value=t:null),name:e.name,maxlength:e.maxlength,inputmode:e.inputmode,autocomplete:e.autocomplete,required:e.required,placeholder:e.placeholder,type:a(i),class:v(a(f))},null,10,T)),[[A,a(o)]]),e.icon?(r(),B(I,{key:3,icon:e.icon,h:a(E)},null,8,["icon","h"])):H("",!0)]))}};export{J as _}; diff --git a/assets/FormControl.9a383f73.js b/assets/FormControl.9a383f73.js deleted file mode 100644 index 5b319df..0000000 --- a/assets/FormControl.9a383f73.js +++ /dev/null @@ -1 +0,0 @@ -import{o as r,d as B,H as V,A as m,I as R,J as p,K as w,L as q,c as s,g as a,B as h,M as C,D as g,v,F as M,r as D,t as K,N as L,C as U,h as A}from"./index.493ac4c5.js";const H={__name:"FormControlIcon",props:{icon:{type:String,default:null},h:{type:String,default:null}},setup(e){return(d,n)=>(r(),B(V,{path:e.icon,w:"w-10",h:e.h,class:"absolute top-0 left-0 z-10 pointer-events-none text-gray-500 dark:text-slate-400"},null,8,["path","h"]))}},I={class:"relative"},N=["id","name"],z=["value"],T=["id","name","maxlength","placeholder","required"],$=["id","name","maxlength","inputmode","autocomplete","required","placeholder","type"],J={__name:"FormControl",props:{name:{type:String,default:null},id:{type:String,default:null},autocomplete:{type:String,default:null},maxlength:{type:String,default:null},placeholder:{type:String,default:null},inputmode:{type:String,default:null},icon:{type:String,default:null},options:{type:Array,default:null},type:{type:String,default:"text"},modelValue:{type:[String,Number,Boolean,Array,Object],default:""},required:Boolean,borderless:Boolean,transparent:Boolean,ctrlKFocus:Boolean},emits:["update:modelValue","setRef"],setup(e,{emit:d}){const n=e,o=m({get:()=>n.modelValue,set:u=>{d("update:modelValue",u)}}),f=m(()=>{const u=["px-3 py-2 max-w-full focus:ring focus:outline-none border-blue-700 dark:border-blue-500 rounded w-full","dark:placeholder-gray-400",i.value==="textarea"?"h-24":"h-12",n.borderless?"border-0":"border",n.transparent?"bg-transparent":"bg-white dark:bg-slate-800"];return n.icon&&u.push("pl-10"),u}),i=m(()=>n.options?"select":n.type),E=m(()=>n.type==="textarea"?"h-full":"h-12"),y=R(),x=p(null),k=p(null),c=p(null);if(w(()=>{x.value?d("setRef",x.value):k.value?d("setRef",k.value):d("setRef",c.value)}),n.ctrlKFocus){const u=l=>{l.ctrlKey&&l.key==="k"?(l.preventDefault(),c.value.focus()):l.key==="Escape"&&c.value.blur()};w(()=>{y.isFieldFocusRegistered||(window.addEventListener("keydown",u),y.isFieldFocusRegistered=!0)}),q(()=>{window.removeEventListener("keydown",u),y.isFieldFocusRegistered=!1})}return(u,l)=>(r(),s("div",I,[a(i)==="select"?h((r(),s("select",{key:0,id:e.id,"onUpdate:modelValue":l[0]||(l[0]=t=>g(o)?o.value=t:null),name:e.name,class:v(a(f))},[(r(!0),s(M,null,D(e.options,t=>{var b,S,F;return r(),s("option",{key:(b=t.id)!=null?b:t,value:(S=t.id)!=null?S:t},K((F=t.label)!=null?F:t),9,z)}),128))],10,N)),[[C,a(o)]]):a(i)==="textarea"?h((r(),s("textarea",{key:1,id:e.id,"onUpdate:modelValue":l[1]||(l[1]=t=>g(o)?o.value=t:null),class:v(a(f)),name:e.name,maxlength:e.maxlength,placeholder:e.placeholder,required:e.required},null,10,T)),[[L,a(o)]]):h((r(),s("input",{key:2,id:e.id,ref_key:"inputEl",ref:c,"onUpdate:modelValue":l[2]||(l[2]=t=>g(o)?o.value=t:null),name:e.name,maxlength:e.maxlength,inputmode:e.inputmode,autocomplete:e.autocomplete,required:e.required,placeholder:e.placeholder,type:a(i),class:v(a(f))},null,10,$)),[[U,a(o)]]),e.icon?(r(),B(H,{key:3,icon:e.icon,h:a(E)},null,8,["icon","h"])):A("",!0)]))}};export{J as _}; diff --git a/assets/FormField.1774c999.js b/assets/FormField.e32df112.js similarity index 73% rename from assets/FormField.1774c999.js rename to assets/FormField.e32df112.js index a79b783..1d4124c 100644 --- a/assets/FormField.1774c999.js +++ b/assets/FormField.e32df112.js @@ -1 +1 @@ -import{E as d,A as i,o as l,c as a,t as o,h as r,b as u,G as m,v as b,g as f}from"./index.493ac4c5.js";const g={class:"mb-6 last:mb-0"},h=["for"],p={key:1,class:"text-xs text-gray-500 dark:text-slate-400 mt-1"},k={__name:"FormField",props:{label:{type:String,default:null},labelFor:{type:String,default:null},help:{type:String,default:null}},setup(e){const n=d(),c=i(()=>{const t=[],s=n.default().length;return s>1&&t.push("grid grid-cols-1 gap-3"),s===2&&t.push("md:grid-cols-2"),t});return(t,s)=>(l(),a("div",g,[e.label?(l(),a("label",{key:0,for:e.labelFor,class:"block font-bold mb-2"},o(e.label),9,h)):r("",!0),u("div",{class:b(f(c))},[m(t.$slots,"default")],2),e.help?(l(),a("div",p,o(e.help),1)):r("",!0)]))}};export{k as _}; +import{E as d,A as i,a as l,i as a,t as o,k as r,g as u,G as m,y as f,e as b}from"./index.ef6c145a.js";const g={class:"mb-6 last:mb-0"},h=["for"],p={key:1,class:"text-xs text-gray-500 dark:text-slate-400 mt-1"},k={__name:"FormField",props:{label:{type:String,default:null},labelFor:{type:String,default:null},help:{type:String,default:null}},setup(e){const n=d(),c=i(()=>{const t=[],s=n.default().length;return s>1&&t.push("grid grid-cols-1 gap-3"),s===2&&t.push("md:grid-cols-2"),t});return(t,s)=>(l(),a("div",g,[e.label?(l(),a("label",{key:0,for:e.labelFor,class:"block font-bold mb-2"},o(e.label),9,h)):r("",!0),u("div",{class:f(b(c))},[m(t.$slots,"default")],2),e.help?(l(),a("div",p,o(e.help),1)):r("",!0)]))}};export{k as _}; diff --git a/assets/GameView.374a1d70.js b/assets/GameView.374a1d70.js new file mode 100644 index 0000000..7bd5ec0 --- /dev/null +++ b/assets/GameView.374a1d70.js @@ -0,0 +1,5 @@ +import{A as N,E as j,a as c,i as m,g as n,b as u,ai as C,t as L,e as a,G as M,k as d,u as E,s as T,N as q,ad as z,r as k,o as H,c as h,w as g,aj as V,F as U,f as P,ak as O,al as X,ac as J,P as K,am as Q,_ as W,l as Y,n as Z,p as ee,q as se}from"./index.ef6c145a.js";import{_ as te}from"./FormControl.3fead597.js";import{_ as ae}from"./ProfileCard.206878f8.js";import{_ as re}from"./GeneralTable.eb99a8fe.js";import{d as le}from"./userData.bcc92478.js";import{g as S}from"./danClass.233b0381.js";const oe={class:"pt-6 mb-6 flex items-center justify-between"},ne={class:"flex items-center justify-start space-x-2"},ie={class:"text-2xl md:text-3xl leading-tight"},ce={__name:"GameTitleLine",props:{path:{type:String,default:null},title:{type:String,required:!0}},setup(v){const y=N(()=>j().default);return(_,x)=>(c(),m("section",oe,[n("div",ne,[u(C,{path:v.path,class:"w-12 h-12 p-1 drop-shadow-md"},null,8,["path"]),n("h1",ie,L(v.title),1)]),a(y)?M(_.$slots,"default",{key:0}):d("",!0)]))}},ue={class:"bg-white dark:bg-slate-900/90 rounded-2xl p-3"},de={class:"w-full"},fe={class:"md:flex md:px-5 md:space-x-10 md:justify-between md:items-center"},me={key:0,class:"md:w-1/3 md:text-right"},_e=n("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),pe={key:0,class:"w-full pt-6"},he={class:"grid grid-cols-2 gap-6 pt-6"},ge={key:1,class:"md:w-1/2 grid grid-cols-1 md:grid-cols-2 gap-3"},ve={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},ye={class:"w-full"},Se={__name:"GameView",setup(v){const y=ee(),_=se(),x=E();var i=null,t=null;const l=T({currentVersion:null});q(()=>l.currentVersion,()=>{b()}),i=y.params.id,t=z(i),t==null&&_.push({name:"ErrorPage",params:{catchAll:"404"}});const o=k(null),w=k([]);H(async()=>{try{const e=await x.getGameProfiles(i);w.value=G(e)}catch(e){console.error("Failed to fetch profile data:",e)}b()}),t.versions||(l.currentVersion=1);async function b(){try{o.value=null;const e=await x.getUserProfile(i,l.currentVersion);o.value=e,e&&!l.currentVersion&&(l.currentVersion=e.versions[e.versions.length-1])}catch(e){console.error("Failed to fetch user profile data:",e)}}function I(){var e=null;return l.currentVersion?e=`/assets/games/${t.id}/card/${l.currentVersion}.png`:e=t.cardBG,e}function B(){return` + background-image: url('${I()}'); + background-size: cover; + background-repeat: no-repeat; + `}const f=[];if(f.push({text:"Player",value:"username",sortable:!0,width:120}),t.noRivals||f.push({text:"Rival ID",value:"extid",width:100}),f.push({text:"Last Play",value:"stats.last_play_timestamp",width:150},{text:"Last Arcade",value:"stats.last_play_arcade",width:150},{text:"Plays",value:"stats.total_plays",sortable:!0,width:50}),t.playerHeaders)for(var D of t.playerHeaders)f.push(D);function G(e){var r=[];for(var s of e){if(s.extid&&(s.extid=le(s.extid)),s.stats){if(s.stats.last_play_timestamp){const p=new Date(s.stats.last_play_timestamp*1e3);s.stats.last_play_timestamp=p.toLocaleString()}s.sgrade&&(s.sgrade=S(s.sgrade).short),s.dgrade&&(s.dgrade=S(s.dgrade).short)}r.push(s)}return r.sort((p,$)=>{const F=p.stats&&p.stats.total_plays||0;return($.stats&&$.stats.total_plays||0)-F}),r}function R(e){var r=[];for(const s of t.versions)e.includes(s.id)&&r.push(s);return r}const A=e=>{const r=e.userId;_.push(`/games/${i}/profiles/${r}`)};return(e,r)=>(c(),h(Z,null,{default:g(()=>[u(Y,null,{default:g(()=>[n("div",{style:J(B()),class:"rounded-2xl mb-6"},[n("div",ue,[n("div",de,[n("div",fe,[u(ce,{path:a(t).icon,title:a(t).name},null,8,["path","title"]),a(t).versions&&o.value?(c(),m("div",me,[_e,u(te,{modelValue:l.currentVersion,"onUpdate:modelValue":r[0]||(r[0]=s=>l.currentVersion=s),options:R(o.value.versions)},null,8,["modelValue","options"])])):d("",!0)])]),o.value?(c(),m("div",pe,[u(ae,{game:a(i),version:l.currentVersion,profile:o.value},{default:g(()=>[n("div",he,[u(V,{number:o.value.stats.total_plays,label:"Plays"},null,8,["number"]),o.value.records?(c(),m(U,{key:0},[o.value.records.skill?(c(),h(V,{key:0,number:o.value.records.skill/100,label:"Skill Points"},null,8,["number"])):d("",!0)],64)):d("",!0)])]),_:1},8,["game","version","profile"])])):(c(),m("div",ge,[a(t).noScores?d("",!0):(c(),h(P,{key:0,href:`/#/games/${a(i)}/scores`,icon:a(O),outline:!1,color:"info",label:"Network Scores"},null,8,["href","icon"])),a(t).noRecords?d("",!0):(c(),h(P,{key:1,href:`/#/games/${a(i)}/records`,icon:a(X),outline:!1,color:"info",label:"Network Records"},null,8,["href","icon"]))]))])],4),u(K,{icon:a(Q),title:"All Players",main:""},null,8,["icon"]),u(W,{"has-table":""},{default:g(()=>[n("div",ve,[n("div",ye,[u(re,{headers:f,items:w.value,path:`/#/${a(i)}/profiles/`,onRowClicked:A},null,8,["items","path"])])])]),_:1})]),_:1})]),_:1}))}};export{Se as default}; diff --git a/assets/GameView.e3595563.js b/assets/GameView.e3595563.js deleted file mode 100644 index bf82618..0000000 --- a/assets/GameView.e3595563.js +++ /dev/null @@ -1,5 +0,0 @@ -import{A as d,o as r,c as _,b as e,a as s,ar as V,t as x,g as a,G as S,h as P,E as A,I as C,J as y,F as $,r as k,w as m,l as D,d as w,p as L,ai as G,s as R,am as I,e as j,k as B,u as M,a2 as g,n as T,f as z,_ as E,i as F,as as H}from"./index.493ac4c5.js";import{_ as N}from"./FormControl.9a383f73.js";import{_ as U}from"./ProfileCard.ca85f322.js";import"./userData.bcc92478.js";const q={class:"pt-6 mb-6 flex items-center justify-between"},J={class:"flex items-center justify-start space-x-2"},Y={class:"text-2xl md:text-3xl leading-tight"},Z={__name:"GameTitleLine",props:{path:{type:String,default:null},title:{type:String,required:!0}},setup(h){const f=d(()=>A().default);return(u,n)=>(r(),_("section",q,[e("div",J,[s(V,{path:h.path,class:"w-12 h-12 p-1 drop-shadow-md"},null,8,["path"]),e("h1",Y,x(h.title),1)]),a(f)?S(u.$slots,"default",{key:0}):P("",!0)]))}},K=e("thead",null,[e("tr",null,[e("th",null,"Username"),e("th",null,"Rival ID"),e("th",null,"Creation Date"),e("th",null,"Last Played"),e("th",null,"Last Arcade"),e("th",null,"Play Count")])],-1),O=e("td",{"data-label":"Username"},"TRMAZI",-1),Q=e("td",{"data-label":"Rival ID"},"1234-5678",-1),W=e("td",{"data-label":"Creation Date"},"10/22/2022",-1),X=e("td",{"data-label":"Last Played"},"10/22/2022",-1),ee=e("td",{"data-label":"Last Arcade"},"Ho-House",-1),te=e("td",{"data-label":"Play Count",class:"lg:w-32"},"466",-1),se=[O,Q,W,X,ee,te],ae={class:"p-3 lg:px-6 border-t border-gray-100 dark:border-slate-800"},le={__name:"TablePlayers",setup(h){const f=C(),u=d(()=>f.clients),n=y(5),t=y(0),i=d(()=>u.value.slice(n.value*t.value,n.value*(t.value+1))),p=d(()=>Math.ceil(u.value.length/n.value)),b=d(()=>t.value+1),v=d(()=>{const o=[];for(let c=0;c