@xcpcio/board-app 0.44.0 → 0.44.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/404.html +1 -1
  2. package/dist/assets/{Board-4e99f3b0.js → Board-4569fc6c.js} +3 -3
  3. package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-6f721c51.js → DataSourceInput.vue_vue_type_script_setup_true_lang-86e39d12.js} +1 -1
  4. package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-2baa4cb9.js → TheInput.vue_vue_type_script_setup_true_lang-6e8ca92c.js} +1 -1
  5. package/dist/assets/{_...all_-43e0e546.js → _...all_-de087eb0.js} +1 -1
  6. package/dist/assets/{_name_-0c7a5e9a.js → _name_-06edfd14.js} +1 -1
  7. package/dist/assets/{about-8e75730a.js → about-c21c664b.js} +1 -1
  8. package/dist/assets/{board-1c696495.js → board-472d3cb3.js} +1 -1
  9. package/dist/assets/{board-layout-a459854f.js → board-layout-d77cb1f2.js} +1 -1
  10. package/dist/assets/{headless-a892fa96.js → headless-fb293940.js} +1 -1
  11. package/dist/assets/{home-7372e007.js → home-20deb86b.js} +1 -1
  12. package/dist/assets/{index-cdc3411c.js → index-125c12c1.js} +1 -1
  13. package/dist/assets/{index-514de2ad.js → index-3dc9c47f.js} +1 -1
  14. package/dist/assets/{index-07dee158.js → index-40d709ed.js} +42 -42
  15. package/dist/assets/{index-layout-d26ccb52.js → index-layout-d4fc4afd.js} +1 -1
  16. package/dist/assets/{query-059e99b1.js → query-7b63ef07.js} +1 -1
  17. package/dist/assets/{test-2e2b5680.js → test-d415daee.js} +1 -1
  18. package/dist/assets/{user-6d6fe1a1.js → user-1cebd436.js} +1 -1
  19. package/dist/assets/{virtual_pwa-register-7a6bd0e7.js → virtual_pwa-register-11341dab.js} +1 -1
  20. package/dist/index.html +1 -1
  21. package/dist/sw.js +1 -1
  22. package/package.json +3 -3
  23. package/src/components/battle-of-giants/GiantsOptions.vue +1 -1
  24. package/src/components/board/OptionsModal.vue +21 -7
  25. package/src/composables/useQueryBoardData.ts +3 -2
  26. package/src/pages/index.vue +4 -1
@@ -1 +1 @@
1
- import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-2baa4cb9.js";import{g as _,u as f,i as h,J as g,G as b,l as o,o as v,c as S,d as t,b as x,H as y,I as U,t as l,m as V}from"./index-07dee158.js";import{g as w}from"./query-059e99b1.js";const I={key:0,class:"flex flex-col items-center"},k={"w-128":""},D=t("div",{"py-2":""},null,-1),R=["disabled"],u="Data Source URL",T=_({__name:"DataSourceInput",setup(B){const{t:r}=f(),a=w(),e=h(a.value),c=g(),d=b();function s(){d.push(`${c.fullPath}/?data-source=${e.value.trim()}`)}return(C,n)=>{const i=p;return o(a).length===0?(v(),S("div",I,[t("div",k,[x(i,{modelValue:o(e),"onUpdate:modelValue":n[0]||(n[0]=m=>y(e)?e.value=m:null),"w-full":"",placeholder:u,autocomplete:"false",onKeydown:U(s,["enter"])},null,8,["modelValue","onKeydown"]),t("label",{class:"hidden",for:"input"},l(u))]),D,t("div",null,[t("button",{"m-3":"","text-sm":"",btn:"",disabled:o(e).length===0,onClick:s},l(o(r)("button.go")),9,R)])])):V("",!0)}}});export{T as _};
1
+ import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-6e8ca92c.js";import{g as _,u as f,i as h,J as g,G as b,l as o,o as v,c as S,d as t,b as x,H as y,I as U,t as l,m as V}from"./index-40d709ed.js";import{g as w}from"./query-7b63ef07.js";const I={key:0,class:"flex flex-col items-center"},k={"w-128":""},D=t("div",{"py-2":""},null,-1),R=["disabled"],u="Data Source URL",T=_({__name:"DataSourceInput",setup(B){const{t:r}=f(),a=w(),e=h(a.value),c=g(),d=b();function s(){d.push(`${c.fullPath}/?data-source=${e.value.trim()}`)}return(C,n)=>{const i=p;return o(a).length===0?(v(),S("div",I,[t("div",k,[x(i,{modelValue:o(e),"onUpdate:modelValue":n[0]||(n[0]=m=>y(e)?e.value=m:null),"w-full":"",placeholder:u,autocomplete:"false",onKeydown:U(s,["enter"])},null,8,["modelValue","onKeydown"]),t("label",{class:"hidden",for:"input"},l(u))]),D,t("div",null,[t("button",{"m-3":"","text-sm":"",btn:"",disabled:o(e).length===0,onClick:s},l(o(r)("button.go")),9,R)])])):V("",!0)}}});export{T as _};
@@ -1 +1 @@
1
- import{g as s,W as r,S as u,aP as p,l as i,o as d,c as m,aQ as c,H as x}from"./index-07dee158.js";const _=["type","text"],g=s({__name:"TheInput",props:{modelValue:null,textAlign:null,textType:null},emits:["update:modelValue"],setup(l){const t=l,{modelValue:e}=r("modelValue");return(a,n)=>u((d(),m("input",c({id:"input","onUpdate:modelValue":n[0]||(n[0]=o=>x(e)?e.value=o:null)},a.$attrs,{type:t.textType??"text",text:t.textAlign??"center",p:"x-4 y-2","w-full":"",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"}),null,16,_)),[[p,i(e)]])}});export{g as _};
1
+ import{g as s,W as r,S as u,aP as p,l as i,o as d,c as m,aQ as c,H as x}from"./index-40d709ed.js";const _=["type","text"],g=s({__name:"TheInput",props:{modelValue:null,textAlign:null,textType:null},emits:["update:modelValue"],setup(l){const t=l,{modelValue:e}=r("modelValue");return(a,n)=>u((d(),m("input",c({id:"input","onUpdate:modelValue":n[0]||(n[0]=o=>x(e)?e.value=o:null)},a.$attrs,{type:t.textType??"text",text:t.textAlign??"center",p:"x-4 y-2","w-full":"",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"}),null,16,_)),[[p,i(e)]])}});export{g as _};
@@ -1 +1 @@
1
- import{_ as v}from"./Board-4e99f3b0.js";import{g as p,G as h,u as l,r as y,o as c,c as a,d as r,t as i,l as n,b as _,M as B,N as m,J as N,q as u}from"./index-07dee158.js";import"./TheInput.vue_vue_type_script_setup_true_lang-2baa4cb9.js";import"./query-059e99b1.js";const g=p({__name:"GoBack",setup(d){const s=h(),{t}=l();return(f,o)=>{const e=y("RouterLink");return c(),a("div",null,[r("div",{class:"m-3 text-sm btn",onClick:o[0]||(o[0]=k=>n(s).back())},i(n(t)("button.back")),1),_(e,{class:"m-3 text-sm btn",to:"/"},{default:B(()=>[m(i(n(t)("button.home")),1)]),_:1})])}}}),C={key:0,class:"flex flex-col items-center"},R=r("div",{"text-4xl":""},[r("div",{"i-carbon-warning":""})],-1),G={key:1},T=p({__name:"[...all]",setup(d){const{t:s}=l(),t=N(),o=!["camp","icpc","ccpc","provincial-contest"].some(e=>t.fullPath.startsWith(`/${e}`));return(e,k)=>{const x=g,b=v;return o?(c(),a("div",C,[R,m(" "+i(n(s)("not-found"))+" ",1),_(x)])):(c(),a("div",G,[_(b)]))}}});typeof u=="function"&&u(T);export{T as default};
1
+ import{_ as v}from"./Board-4569fc6c.js";import{g as p,G as h,u as l,r as y,o as c,c as a,d as r,t as i,l as n,b as _,M as B,N as m,J as N,q as u}from"./index-40d709ed.js";import"./TheInput.vue_vue_type_script_setup_true_lang-6e8ca92c.js";import"./query-7b63ef07.js";const g=p({__name:"GoBack",setup(d){const s=h(),{t}=l();return(f,o)=>{const e=y("RouterLink");return c(),a("div",null,[r("div",{class:"m-3 text-sm btn",onClick:o[0]||(o[0]=k=>n(s).back())},i(n(t)("button.back")),1),_(e,{class:"m-3 text-sm btn",to:"/"},{default:B(()=>[m(i(n(t)("button.home")),1)]),_:1})])}}}),C={key:0,class:"flex flex-col items-center"},R=r("div",{"text-4xl":""},[r("div",{"i-carbon-warning":""})],-1),G={key:1},T=p({__name:"[...all]",setup(d){const{t:s}=l(),t=N(),o=!["camp","icpc","ccpc","provincial-contest"].some(e=>t.fullPath.startsWith(`/${e}`));return(e,k)=>{const x=g,b=v;return o?(c(),a("div",C,[R,m(" "+i(n(s)("not-found"))+" ",1),_(x)])):(c(),a("div",G,[_(b)]))}}});typeof u=="function"&&u(T);export{T as default};
@@ -1 +1 @@
1
- import{g as d,G as _,u as f,aR as k,r as x,o as a,c as r,d as e,t as n,l as t,F as h,D as b,b as y,M as N,N as v,m as C}from"./index-07dee158.js";import{u as g}from"./user-6d6fe1a1.js";const w={"w-full":"",flex:"","flex-col":"","justify-center":"","items-center":""},R=e("div",{"text-4xl":""},[e("div",{"i-carbon-pedestrian":"","inline-block":""})],-1),V={"text-sm":"","opacity-75":""},B={key:0,"mt-4":"","text-sm":""},L={"opacity-75":""},S=d({__name:"[name]",props:{name:null},setup(u){const c=u,m=_(),i=g(),{t:o}=f();return k(()=>{i.setNewName(c.name)}),(D,l)=>{const p=x("RouterLink");return a(),r("div",w,[R,e("p",null,n(t(o)("intro.hi",{name:c.name})),1),e("p",V,[e("em",null,n(t(o)("intro.dynamic-route")),1)]),t(i).otherNames.length?(a(),r("p",B,[e("span",L,n(t(o)("intro.aka"))+":",1),e("ul",null,[(a(!0),r(h,null,b(t(i).otherNames,s=>(a(),r("li",{key:s},[y(p,{to:`/hi/${s}`,replace:""},{default:N(()=>[v(n(s),1)]),_:2},1032,["to"])]))),128))])])):C("",!0),e("div",null,[e("button",{m:"3 t6","text-sm":"",btn:"",onClick:l[0]||(l[0]=s=>t(m).back())},n(t(o)("button.back")),1)])])}}});export{S as default};
1
+ import{g as d,G as _,u as f,aR as k,r as x,o as a,c as r,d as e,t as n,l as t,F as h,D as b,b as y,M as N,N as v,m as C}from"./index-40d709ed.js";import{u as g}from"./user-1cebd436.js";const w={"w-full":"",flex:"","flex-col":"","justify-center":"","items-center":""},R=e("div",{"text-4xl":""},[e("div",{"i-carbon-pedestrian":"","inline-block":""})],-1),V={"text-sm":"","opacity-75":""},B={key:0,"mt-4":"","text-sm":""},L={"opacity-75":""},S=d({__name:"[name]",props:{name:null},setup(u){const c=u,m=_(),i=g(),{t:o}=f();return k(()=>{i.setNewName(c.name)}),(D,l)=>{const p=x("RouterLink");return a(),r("div",w,[R,e("p",null,n(t(o)("intro.hi",{name:c.name})),1),e("p",V,[e("em",null,n(t(o)("intro.dynamic-route")),1)]),t(i).otherNames.length?(a(),r("p",B,[e("span",L,n(t(o)("intro.aka"))+":",1),e("ul",null,[(a(!0),r(h,null,b(t(i).otherNames,s=>(a(),r("li",{key:s},[y(p,{to:`/hi/${s}`,replace:""},{default:N(()=>[v(n(s),1)]),_:2},1032,["to"])]))),128))])])):C("",!0),e("div",null,[e("button",{m:"3 t6","text-sm":"",btn:"",onClick:l[0]||(l[0]=s=>t(m).back())},n(t(o)("button.back")),1)])])}}});export{S as default};
@@ -1,4 +1,4 @@
1
- import{K as o,o as a,c as t,d as s,L as e}from"./index-07dee158.js";const l={class:"prose prose-sm m-auto text-left"},p=s("div",{class:"text-center"},[s("div",{"i-carbon-dicom-overlay":"",class:"text-4xl -mb-6 m-auto"}),s("h3",null,"About")],-1),c=e(`<p><a href="https://github.com/xcpcio/xcpcio" target="_blank" rel="noopener">Board - XCPCIO</a> is an opinionated ICPC/CCPC Board made by <a href="https://github.com/dup4" target="_blank" rel="noopener">@dup4</a>.</p><pre hidden></pre><div class="shiki-container language-js"><pre class="shiki shiki-dark vitesse-dark" style="background-color:#121212;" tabindex="0"><code><span class="line"><span style="color:#758575DD;">// syntax highlighting example</span></span>
1
+ import{K as o,o as a,c as t,d as s,L as e}from"./index-40d709ed.js";const l={class:"prose prose-sm m-auto text-left"},p=s("div",{class:"text-center"},[s("div",{"i-carbon-dicom-overlay":"",class:"text-4xl -mb-6 m-auto"}),s("h3",null,"About")],-1),c=e(`<p><a href="https://github.com/xcpcio/xcpcio" target="_blank" rel="noopener">Board - XCPCIO</a> is an opinionated ICPC/CCPC Board made by <a href="https://github.com/dup4" target="_blank" rel="noopener">@dup4</a>.</p><pre hidden></pre><div class="shiki-container language-js"><pre class="shiki shiki-dark vitesse-dark" style="background-color:#121212;" tabindex="0"><code><span class="line"><span style="color:#758575DD;">// syntax highlighting example</span></span>
2
2
  <span class="line"><span style="color:#CB7676;">function</span><span style="color:#DBD7CAEE;"> </span><span style="color:#80A665;">board</span><span style="color:#666666;">()</span><span style="color:#DBD7CAEE;"> </span><span style="color:#666666;">{</span></span>
3
3
  <span class="line"><span style="color:#DBD7CAEE;"> </span><span style="color:#CB7676;">const</span><span style="color:#DBD7CAEE;"> </span><span style="color:#BD976A;">foo</span><span style="color:#DBD7CAEE;"> </span><span style="color:#666666;">=</span><span style="color:#DBD7CAEE;"> </span><span style="color:#C98A7D99;">&quot;</span><span style="color:#C98A7D;">bar</span><span style="color:#C98A7D99;">&quot;</span><span style="color:#666666;">;</span></span>
4
4
  <span class="line"><span style="color:#DBD7CAEE;"> </span><span style="color:#BD976A;">console</span><span style="color:#666666;">.</span><span style="color:#80A665;">log</span><span style="color:#666666;">(</span><span style="color:#BD976A;">foo</span><span style="color:#666666;">);</span></span>
@@ -1 +1 @@
1
- import{_ as p}from"./Board-4e99f3b0.js";import{_ as l}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-6f721c51.js";import{g as f}from"./query-059e99b1.js";import{g as d,o as t,c as n,b as r,l as a,m as i,F as g,a as B,E as k,q as c}from"./index-07dee158.js";import"./TheInput.vue_vue_type_script_setup_true_lang-2baa4cb9.js";const h={key:0},x=d({__name:"CustomBoard",setup(_){const o=f();return(e,b)=>{const m=l,u=p;return t(),n(g,null,[r(m),a(o).length>0?(t(),n("div",h,[r(u,{"data-source-url":a(o)},null,8,["data-source-url"])])):i("",!0)],64)}}}),s={};function C(_,o){const e=x;return t(),k(e)}typeof c=="function"&&c(s);const N=B(s,[["render",C]]);export{N as default};
1
+ import{_ as p}from"./Board-4569fc6c.js";import{_ as l}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-86e39d12.js";import{g as f}from"./query-7b63ef07.js";import{g as d,o as t,c as n,b as r,l as a,m as i,F as g,a as B,E as k,q as c}from"./index-40d709ed.js";import"./TheInput.vue_vue_type_script_setup_true_lang-6e8ca92c.js";const h={key:0},x=d({__name:"CustomBoard",setup(_){const o=f();return(e,b)=>{const m=l,u=p;return t(),n(g,null,[r(m),a(o).length>0?(t(),n("div",h,[r(u,{"data-source-url":a(o)},null,8,["data-source-url"])])):i("",!0)],64)}}}),s={};function C(_,o){const e=x;return t(),k(e)}typeof c=="function"&&c(s);const N=B(s,[["render",C]]);export{N as default};
@@ -1 +1 @@
1
- import{a as s,r as a,o as c,c as r,b as e,d as _,F as m,e as p,f as l}from"./index-07dee158.js";const d={},i={"py-2":"","text-gray-700":"","dark:text-gray-200":""};function u(x,f){const o=p,t=a("RouterView"),n=l;return c(),r(m,null,[e(o,{width:"sm:w-[1280px] xl:w-screen"}),_("main",i,[e(t),e(n,{class:"sm:w-[1280px] xl:w-screen"})])],64)}const g=s(d,[["render",u]]);export{g as default};
1
+ import{a as s,r as a,o as c,c as r,b as e,d as _,F as m,e as p,f as l}from"./index-40d709ed.js";const d={},i={"py-2":"","text-gray-700":"","dark:text-gray-200":""};function u(x,f){const o=p,t=a("RouterView"),n=l;return c(),r(m,null,[e(o,{width:"sm:w-[1280px] xl:w-screen"}),_("main",i,[e(t),e(n,{class:"sm:w-[1280px] xl:w-screen"})])],64)}const g=s(d,[["render",u]]);export{g as default};
@@ -1 +1 @@
1
- import{a as t,r as o,o as r,c as a,b as c}from"./index-07dee158.js";const n={},s={"text-gray-700":"","dark:text-gray-200":""};function _(d,i){const e=o("RouterView");return r(),a("main",s,[c(e)])}const f=t(n,[["render",_]]);export{f as default};
1
+ import{a as t,r as o,o as r,c as a,b as c}from"./index-40d709ed.js";const n={},s={"text-gray-700":"","dark:text-gray-200":""};function _(d,i){const e=o("RouterView");return r(),a("main",s,[c(e)])}const f=t(n,[["render",_]]);export{f as default};
@@ -1 +1 @@
1
- import{a as c,r as a,o as n,c as r,b as e,d as s,f as _}from"./index-07dee158.js";const m={},i={"px-4":"","py-10":"",text:"center gray-700 dark:gray-200"},d=s("div",{"mx-auto":"","mt-5":"","text-center":"","text-sm":"","opacity-50":""}," [Home Layout] ",-1);function p(f,x){const t=a("RouterView"),o=_;return n(),r("main",i,[e(t),e(o),d])}const l=c(m,[["render",p]]);export{l as default};
1
+ import{a as c,r as a,o as n,c as r,b as e,d as s,f as _}from"./index-40d709ed.js";const m={},i={"px-4":"","py-10":"",text:"center gray-700 dark:gray-200"},d=s("div",{"mx-auto":"","mt-5":"","text-center":"","text-sm":"","opacity-50":""}," [Home Layout] ",-1);function p(f,x){const t=a("RouterView"),o=_;return n(),r("main",i,[e(t),e(o),d])}const l=c(m,[["render",p]]);export{l as default};
@@ -1 +1 @@
1
- import{g as x,u as D,h as N,C as g,i as d,w as $,j as U,k as T,o,c as s,l as t,d as c,t as r,m,n as h,p as b,a as y,b as p,F as E,q as C}from"./index-07dee158.js";import{u as B,g as F}from"./query-059e99b1.js";import{_ as j}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-6f721c51.js";import"./TheInput.vue_vue_type_script_setup_true_lang-2baa4cb9.js";const V={class:"background","text-gray-200":"","w-screen":"","h-screen":""},L={key:0},O={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},P={key:0},q={key:1},z={flex:"","flex-col":"","items-center":"","justify-center":"","font-mono":""},G={key:0},Q={key:1},W=x({__name:"Countdown",props:{dataSourceUrl:null},setup(l){const a=l,{t:_}=D(),v=N(g),e=d(new Date),n=d({}),f=d(!1),{data:i,isError:w,error:k}=B(a.dataSourceUrl,e);$(i,async()=>{var u;i.value===null||i.value===void 0||(n.value=U((u=i.value)==null?void 0:u.contest),v.value=`${n.value.name} | ${g}`,f.value=!0)});const I=setInterval(()=>{e.value=new Date},1e3);return T(()=>{clearInterval(I)}),(u,R)=>(o(),s("div",V,[t(f)?(o(),s("div",q,[c("div",z,[c("div",{"mt-20":"","text-6xl":"",class:h([t(n).getContestState(t(e)).toString()])},r(t(n).getContestState(t(e))),3),c("div",{"mt-20":"",class:h(["text-[320px]",[t(n).getContestState(t(e)).toString()]])},[t(n).getContestState(t(e))===t(b).PENDING?(o(),s("div",G,r(t(n).getContestPendingTime(t(e))),1)):(o(),s("div",Q,r(t(n).getContestElapsedTime(t(e))),1))],2)])])):(o(),s("div",L,[c("div",O,[c("div",null,r(t(_)("common.loading"))+"... ",1),t(w)?(o(),s("div",P,r(t(k)),1)):m("",!0)])]))]))}});const X=y(W,[["__scopeId","data-v-03b5a196"]]),A={key:0},H={"mt-20":""},J={key:1},K=x({__name:"CustomCountdown",setup(l){const a=F();return(_,v)=>{const e=j,n=X;return o(),s(E,null,[t(a).length===0?(o(),s("div",A,[c("div",H,[p(e)])])):m("",!0),t(a).length>0?(o(),s("div",J,[p(n,{"data-source-url":t(a)},null,8,["data-source-url"])])):m("",!0)],64)}}}),S={};function M(l,a){const _=K;return o(),s("div",null,[p(_)])}typeof C=="function"&&C(S);const nt=y(S,[["render",M]]);export{nt as default};
1
+ import{g as x,u as D,h as N,C as g,i as d,w as $,j as U,k as T,o,c as s,l as t,d as c,t as r,m,n as h,p as b,a as y,b as p,F as E,q as C}from"./index-40d709ed.js";import{u as B,g as F}from"./query-7b63ef07.js";import{_ as j}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-86e39d12.js";import"./TheInput.vue_vue_type_script_setup_true_lang-6e8ca92c.js";const V={class:"background","text-gray-200":"","w-screen":"","h-screen":""},L={key:0},O={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},P={key:0},q={key:1},z={flex:"","flex-col":"","items-center":"","justify-center":"","font-mono":""},G={key:0},Q={key:1},W=x({__name:"Countdown",props:{dataSourceUrl:null},setup(l){const a=l,{t:_}=D(),v=N(g),e=d(new Date),n=d({}),f=d(!1),{data:i,isError:w,error:k}=B(a.dataSourceUrl,e);$(i,async()=>{var u;i.value===null||i.value===void 0||(n.value=U((u=i.value)==null?void 0:u.contest),v.value=`${n.value.name} | ${g}`,f.value=!0)});const I=setInterval(()=>{e.value=new Date},1e3);return T(()=>{clearInterval(I)}),(u,R)=>(o(),s("div",V,[t(f)?(o(),s("div",q,[c("div",z,[c("div",{"mt-20":"","text-6xl":"",class:h([t(n).getContestState(t(e)).toString()])},r(t(n).getContestState(t(e))),3),c("div",{"mt-20":"",class:h(["text-[320px]",[t(n).getContestState(t(e)).toString()]])},[t(n).getContestState(t(e))===t(b).PENDING?(o(),s("div",G,r(t(n).getContestPendingTime(t(e))),1)):(o(),s("div",Q,r(t(n).getContestElapsedTime(t(e))),1))],2)])])):(o(),s("div",L,[c("div",O,[c("div",null,r(t(_)("common.loading"))+"... ",1),t(w)?(o(),s("div",P,r(t(k)),1)):m("",!0)])]))]))}});const X=y(W,[["__scopeId","data-v-03b5a196"]]),A={key:0},H={"mt-20":""},J={key:1},K=x({__name:"CustomCountdown",setup(l){const a=F();return(_,v)=>{const e=j,n=X;return o(),s(E,null,[t(a).length===0?(o(),s("div",A,[c("div",H,[p(e)])])):m("",!0),t(a).length>0?(o(),s("div",J,[p(n,{"data-source-url":t(a)},null,8,["data-source-url"])])):m("",!0)],64)}}}),S={};function M(l,a){const _=K;return o(),s("div",null,[p(_)])}typeof C=="function"&&C(S);const nt=y(S,[["render",M]]);export{nt as default};
@@ -1 +1 @@
1
- import{g as w,s as h,i,v as L,o,c as t,l as e,n as V,d as s,x as D,t as v,m as y,h as F,B as C,u as R,w as A,j as O,y as q,z as M,A as Q,k as X,F as I,D as G,E as H,R as J,b as B,a as K,q as S}from"./index-07dee158.js";import{u as P,g as W}from"./query-059e99b1.js";import{_ as Y}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-6f721c51.js";import"./TheInput.vue_vue_type_script_setup_true_lang-2baa4cb9.js";const Z={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":""},ee={class:"resolver-team-name",truncate:"","overflow-hidden":""},oe=s("div",{flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},null,-1),te={"w-32":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},se=w({__name:"BalloonBlock",props:{index:null,balloon:null},setup(m){const n=m,u=h(()=>n.index),a=h(()=>n.balloon),l=i(null),r=L(l);function x(c){return[c.location,c.organization,c.name].filter(k=>k).join(" - ")}const f=h(()=>a.value.problem.balloonColor);return(c,p)=>(o(),t("div",{ref_key:"el",ref:l,"h-24":""},[e(r)?(o(),t("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:V([e(u)%2===0?"bg-resolver-bg-zero":"bg-resolver-bg-one"])},[s("div",{"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":"",style:D({backgroundColor:e(f).background_color})},[s("div",{style:D({color:e(f).color})},v(e(a).problem.label),5)],4),s("div",Z,[s("div",ee,v(x(e(a).team)),1),oe]),s("div",te,v(e(a).submission.timestampToMinute),1)],2)):y("",!0)],512))}}),ne={class:"bg-[#323443]","text-gray-200":""},ae={key:0},le={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},re={key:0},ce={key:1},ie={flex:"","flex-col":"","justify-between":""},ue=w({__name:"Balloon",props:{dataSourceUrl:null},setup(m){const n=m,u=F(C),{t:a}=R(),l=i(!1),r=i({}),x=i([]),f=i([]),c=i({}),p=i(new Date);function k(){const d=new J(r.value,x.value,f.value);d.buildBalloons(),c.value=d}const{data:_,isError:N,error:T}=P(n.dataSourceUrl,p);A(_,async()=>{var d,g,b;_.value===null||_.value===void 0||(r.value=O((d=_.value)==null?void 0:d.contest),u.value=`${r.value.name} | ${C}`,x.value=q((g=_.value)==null?void 0:g.teams),f.value=M((b=_.value)==null?void 0:b.submissions),k(),l.value=!0)});const U=h(()=>c.value.balloons.sort(Q.compare).reverse().slice(0,256)),z=setInterval(()=>{p.value=new Date},1e3);return X(()=>{clearInterval(z)}),(d,g)=>{const b=se;return o(),t("div",ne,[e(l)?(o(),t("div",ce,[s("div",ie,[(o(!0),t(I,null,G(e(U),($,E)=>(o(),H(b,{key:$.key,index:E,balloon:$},null,8,["index","balloon"]))),128))])])):(o(),t("div",ae,[s("div",le,[s("div",null,v(e(a)("common.loading"))+"... ",1),e(N)?(o(),t("div",re,v(e(T)),1)):y("",!0)])]))])}}}),_e={key:0},de={"mt-20":""},me={key:1},fe=w({__name:"CustomBalloon",setup(m){const n=W();return(u,a)=>{const l=Y,r=ue;return o(),t(I,null,[e(n).length===0?(o(),t("div",_e,[s("div",de,[B(l)])])):y("",!0),e(n).length>0?(o(),t("div",me,[B(r,{"data-source-url":e(n)},null,8,["data-source-url"])])):y("",!0)],64)}}}),j={};function ve(m,n){const u=fe;return o(),t("div",null,[B(u)])}typeof S=="function"&&S(j);const ye=K(j,[["render",ve]]);export{ye as default};
1
+ import{g as w,s as h,i,v as L,o,c as t,l as e,n as V,d as s,x as D,t as v,m as y,h as F,B as C,u as R,w as A,j as O,y as q,z as M,A as Q,k as X,F as I,D as G,E as H,R as J,b as B,a as K,q as S}from"./index-40d709ed.js";import{u as P,g as W}from"./query-7b63ef07.js";import{_ as Y}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-86e39d12.js";import"./TheInput.vue_vue_type_script_setup_true_lang-6e8ca92c.js";const Z={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":""},ee={class:"resolver-team-name",truncate:"","overflow-hidden":""},oe=s("div",{flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},null,-1),te={"w-32":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},se=w({__name:"BalloonBlock",props:{index:null,balloon:null},setup(m){const n=m,u=h(()=>n.index),a=h(()=>n.balloon),l=i(null),r=L(l);function x(c){return[c.location,c.organization,c.name].filter(k=>k).join(" - ")}const f=h(()=>a.value.problem.balloonColor);return(c,p)=>(o(),t("div",{ref_key:"el",ref:l,"h-24":""},[e(r)?(o(),t("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:V([e(u)%2===0?"bg-resolver-bg-zero":"bg-resolver-bg-one"])},[s("div",{"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":"",style:D({backgroundColor:e(f).background_color})},[s("div",{style:D({color:e(f).color})},v(e(a).problem.label),5)],4),s("div",Z,[s("div",ee,v(x(e(a).team)),1),oe]),s("div",te,v(e(a).submission.timestampToMinute),1)],2)):y("",!0)],512))}}),ne={class:"bg-[#323443]","text-gray-200":""},ae={key:0},le={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},re={key:0},ce={key:1},ie={flex:"","flex-col":"","justify-between":""},ue=w({__name:"Balloon",props:{dataSourceUrl:null},setup(m){const n=m,u=F(C),{t:a}=R(),l=i(!1),r=i({}),x=i([]),f=i([]),c=i({}),p=i(new Date);function k(){const d=new J(r.value,x.value,f.value);d.buildBalloons(),c.value=d}const{data:_,isError:N,error:T}=P(n.dataSourceUrl,p);A(_,async()=>{var d,g,b;_.value===null||_.value===void 0||(r.value=O((d=_.value)==null?void 0:d.contest),u.value=`${r.value.name} | ${C}`,x.value=q((g=_.value)==null?void 0:g.teams),f.value=M((b=_.value)==null?void 0:b.submissions),k(),l.value=!0)});const U=h(()=>c.value.balloons.sort(Q.compare).reverse().slice(0,256)),z=setInterval(()=>{p.value=new Date},1e3);return X(()=>{clearInterval(z)}),(d,g)=>{const b=se;return o(),t("div",ne,[e(l)?(o(),t("div",ce,[s("div",ie,[(o(!0),t(I,null,G(e(U),($,E)=>(o(),H(b,{key:$.key,index:E,balloon:$},null,8,["index","balloon"]))),128))])])):(o(),t("div",ae,[s("div",le,[s("div",null,v(e(a)("common.loading"))+"... ",1),e(N)?(o(),t("div",re,v(e(T)),1)):y("",!0)])]))])}}}),_e={key:0},de={"mt-20":""},me={key:1},fe=w({__name:"CustomBalloon",setup(m){const n=W();return(u,a)=>{const l=Y,r=ue;return o(),t(I,null,[e(n).length===0?(o(),t("div",_e,[s("div",de,[B(l)])])):y("",!0),e(n).length>0?(o(),t("div",me,[B(r,{"data-source-url":e(n)},null,8,["data-source-url"])])):y("",!0)],64)}}}),j={};function ve(m,n){const u=fe;return o(),t("div",null,[B(u)])}typeof S=="function"&&S(j);const ye=K(j,[["render",ve]]);export{ye as default};