@mjsz-vbr-elements/elements 2.42.0 → 2.43.0

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.
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/elements
3
- * version: v2.42.0 - 11/03/2026, 07:59:19
3
+ * version: v2.43.0 - 14/03/2026, 12:04:13
4
4
  * (c) 2026
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- var MjszVbrElements=function(E,e,O,v,g,$,B,i,k){"use strict";function K(o){return e.getCurrentScope()?(e.onScopeDispose(o),!0):!1}const M=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ue=Object.prototype.toString,be=o=>ue.call(o)==="[object Object]",W=()=>{};function G(o,r=!1,t="Timeout"){return new Promise((w,u)=>{setTimeout(r?()=>u(t):w,o)})}function U(o){return Array.isArray(o)?o:[o]}function Y(o,r=!1){function t(l,{flush:n="sync",deep:y=!1,timeout:s,throwOnTimeout:h}={}){let _=null;const z=[new Promise(c=>{_=e.watch(o,T=>{l(T)!==r&&(_?_():e.nextTick(()=>_?.()),c(T))},{flush:n,deep:y,immediate:!0})})];return s!=null&&z.push(G(s,h).then(()=>e.toValue(o)).finally(()=>_?.())),Promise.race(z)}function w(l,n){if(!e.isRef(l))return t(T=>T===l,n);const{flush:y="sync",deep:s=!1,timeout:h,throwOnTimeout:_}=n??{};let x=null;const c=[new Promise(T=>{x=e.watch([o,l],([V,F])=>{r!==(V===F)&&(x?x():e.nextTick(()=>x?.()),T(V))},{flush:y,deep:s,immediate:!0})})];return h!=null&&c.push(G(h,_).then(()=>e.toValue(o)).finally(()=>(x?.(),e.toValue(o)))),Promise.race(c)}function u(l){return t(n=>!!n,l)}function b(l){return w(null,l)}function f(l){return w(void 0,l)}function d(l){return t(Number.isNaN,l)}function m(l,n){return t(y=>{const s=Array.from(y);return s.includes(l)||s.includes(e.toValue(l))},n)}function p(l){return a(1,l)}function a(l=1,n){let y=-1;return t(()=>(y+=1,y>=l),n)}return Array.isArray(e.toValue(o))?{toMatch:t,toContains:m,changed:p,changedTimes:a,get not(){return Y(o,!r)}}:{toMatch:t,toBe:w,toBeTruthy:u,toBeNull:b,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:a,get not(){return Y(o,!r)}}}function ye(o){return Y(o)}function ke(o,r,t={}){const{immediate:w=!0,immediateCallback:u=!1}=t,b=e.shallowRef(!1);let f;function d(){f&&(clearTimeout(f),f=void 0)}function m(){b.value=!1,d()}function p(...a){u&&o(),d(),b.value=!0,f=setTimeout(()=>{b.value=!1,f=void 0,o(...a)},e.toValue(r))}return w&&(b.value=!0,M&&p()),K(m),{isPending:e.shallowReadonly(b),start:p,stop:m}}function xe(o,r,t){return e.watch(o,r,{...t,immediate:!0})}const Ee=M?window:void 0,_e=M?window.document:void 0;function ze(o){var r;const t=e.toValue(o);return(r=t?.$el)!=null?r:t}function Te(...o){const r=[],t=()=>{r.forEach(d=>d()),r.length=0},w=(d,m,p,a)=>(d.addEventListener(m,p,a),()=>d.removeEventListener(m,p,a)),u=e.computed(()=>{const d=U(e.toValue(o[0])).filter(m=>m!=null);return d.every(m=>typeof m!="string")?d:void 0}),b=xe(()=>{var d,m;return[(m=(d=u.value)==null?void 0:d.map(p=>ze(p)))!=null?m:[Ee].filter(p=>p!=null),U(e.toValue(u.value?o[1]:o[0])),U(e.unref(u.value?o[2]:o[1])),e.toValue(u.value?o[3]:o[2])]},([d,m,p,a])=>{if(t(),!d?.length||!m?.length||!p?.length)return;const l=be(a)?{...a}:a;r.push(...d.flatMap(n=>m.flatMap(y=>p.map(s=>w(n,y,s,l)))))},{flush:"post"}),f=()=>{b(),t()};return K(t),f}function C(o,r,t){const{immediate:w=!0,delay:u=0,onError:b=W,onSuccess:f=W,resetOnExecute:d=!0,shallow:m=!0,throwError:p}=t??{},a=m?e.shallowRef(r):e.ref(r),l=e.shallowRef(!1),n=e.shallowRef(!1),y=e.shallowRef(void 0);async function s(x=0,...z){d&&(a.value=r),y.value=void 0,l.value=!1,n.value=!0,x>0&&await G(x);const c=typeof o=="function"?o(...z):o;try{const T=await c;a.value=T,l.value=!0,f(T)}catch(T){if(y.value=T,b(T),p)throw T}finally{n.value=!1}return a.value}w&&s(u);const h={state:a,isReady:l,isLoading:n,error:y,execute:s,executeImmediate:(...x)=>s(0,...x)};function _(){return new Promise((x,z)=>{ye(n).toBe(!1).then(()=>x(h)).catch(z)})}return{...h,then(x,z){return _().then(x,z)}}}function Ce(o={}){const{document:r=_e}=o;if(!r)return e.shallowRef("visible");const t=e.shallowRef(r.visibilityState);return Te(r,"visibilitychange",()=>{t.value=r.visibilityState},{passive:!0}),t}function Se(o,r,t={}){const{immediate:w=!0,immediateCallback:u=!1}=t,{start:b}=ke(d,r,{immediate:w}),f=e.shallowRef(!1);async function d(){f.value&&(await o(),b())}function m(){f.value||(f.value=!0,u&&o(),b())}function p(){f.value=!1}return w&&M&&m(),K(p),{isActive:f,pause:p,resume:m}}const S=`@layer normalize,theme,components.variables,components,utils;:where(:host,:root){--mvw-color-white: #fff;--mvw-color-black: #000;--mvw-color-primary-0: #ffffff;--mvw-color-primary-50: #eceff1;--mvw-color-primary-100: #cfd8dc;--mvw-color-primary-200: #b0bec5;--mvw-color-primary-300: #90a4ae;--mvw-color-primary-400: #78909c;--mvw-color-primary-500: #607d8b;--mvw-color-primary-600: #546e7a;--mvw-color-primary-700: #455a64;--mvw-color-primary-800: #37474f;--mvw-color-primary-900: #263238;--mvw-color-primary-950: #182024}:where(:host,:root){--mvw-color-secondary-100: #dcedc8;--mvw-color-secondary-200: #badb94;--mvw-color-secondary-300: #aed581;--mvw-color-secondary-400: #9ccc65;--mvw-color-secondary-500: #8bc34a;--mvw-color-secondary-700: #689f38;--mvw-color-secondary-800: #558b2f;--mvw-color-secondary-900: #33691e;--mvw-color-secondary-950: #14290c}:where(:host){--radius-1: 2px;--radius-2: 5px;--radius-3: 16px;--radius-4: 32px;--radius-5: 64px;--radius-6: 96px}:where(:host){--font-size-50: .625rem;--font-size-100: .6875rem;--font-size-200: .75rem;--font-size-300: .8125rem;--font-size-400: .875rem;--font-size-500: 1rem;--font-size-600: 1.125rem;--font-size-700: 1.25rem;--font-size-800: 1.5rem;--font-size-900: 1.75rem;--font-size-950: 2rem;--font-lineheight-50: .95;--font-lineheight-100: 1;--font-lineheight-200: 1.1;--font-lineheight-300: 1.25;--font-lineheight-400: 1.375;--font-lineheight-500: 1.5;--font-lineheight-600: 1.75;--font-lineheight-700: 2}:where(:host){--size-1: 1px;--size-2: .125rem;--size-4: .25rem;--size-6: .375rem;--size-8: .5rem;--size-10: .625rem;--size-12: .75rem;--size-16: 1rem;--size-24: 1.5rem;--size-32: 2rem}:where(:host){--shadow-color: 220 3% 15%;--shadow-strength: 1%;--inner-shadow-highlight: inset 0 -.5px 0 0 #fff, inset 0 .5px 0 0 #0001;--shadow-3: 0 -1px 3px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)), 0 1px 2px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 2%)), 0 2px 5px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), 0 4px 12px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), 0 12px 15px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%));--shadow-6: 0 -1px 2px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)), 0 3px 2px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), 0 7px 5px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), 0 12px 10px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), 0 22px 18px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), 0 41px 33px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 6%)), 0 100px 80px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%))}@media (prefers-color-scheme: dark){:where(:host){--shadow-color: 220 40% 2%;--shadow-strength: 25%;--inner-shadow-highlight: inset 0 -.5px 0 0 #fff1, inset 0 .5px 0 0 #0007}}:where(:host){--ease-spring-1: linear( 0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1 )}@layer normalize{*,:before,:after{box-sizing:border-box}*{scrollbar-width:thin}:where(img,svg,video,canvas,audio,iframe,embed,object){display:block}:where(img,svg,video){block-size:auto;max-inline-size:100%}:where(img){opacity:0;transition:opacity .5s ease-out}:where(img).is-loaded{opacity:1}:where(svg:not([width])){inline-size:var(--size-16)}:where(input,button,textarea),:where(input[type=file])::-webkit-file-upload-button{color:inherit;font-size:inherit;font:inherit;letter-spacing:inherit}:where(a[href],area,button,[role=button],input,label[for],select,summary,textarea,[tabindex]:not([tabindex*="-"])){-webkit-tap-highlight-color:transparent;touch-action:manipulation}:where(:not(fieldset,progress,meter)){background-origin:border-box;background-repeat:no-repeat;border-style:solid;border-width:0}:where(button){appearance:button;-webkit-appearance:button;background-color:transparent;background-image:none}:where(dd,pre){margin:0}:where(ul,li){margin:0;padding:0}:where(ol,ul){list-style:none}}@layer theme{[data-theme=light],:host-context(.light){color-scheme:only light}[data-theme=dark],:host-context(.dark){color-scheme:only dark}:root,:host{font-family:var(--mvw-font, inherit);--mvw-color-live: #8bc34a;--mvw-color-error: #fb2c36;--mvw-color-warning: #ffc107;--mvw-color-info: #2870ed;--mvw-color-team: #ff6129;--mvw-link-color: light-dark(var(--mvw-color-secondary-700), var(--mvw-color-secondary-400));--mvw-text-pale: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700));--mvw-text-faded: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-600));--mvw-text-dimmed: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-500));--mvw-text-muted: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-text-toned: light-dark(var(--mvw-color-primary-600), var(--mvw-color-primary-300));--mvw-text-default: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-200));--mvw-text-highlighted: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-text-inverted: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-bg-default: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-bg-muted: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-bg-elevated: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-800));--mvw-bg-accented: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-700));--mvw-bg-highlighted: var(--mvw-color-secondary-500);--mvw-bg-inverted: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-border-faded: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-800));--mvw-border-muted: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-700));--mvw-border-highlighted: var(--mvw-color-secondary-500)}}@layer components{:where(a[href]){--_lighten: oklch(from var(--mvw-link-color) calc(l*1.15) c h);--_darken: oklch(from var(--mvw-link-color) calc(l*.85) c h);color:var(--mvw-link-color);text-decoration:none}:where(a[href]):hover{color:light-dark(var(--_darken),var(--_lighten))}:where(a[target=_blank]){position:relative}:where(a[target=_blank]):hover:after{transition:all 1s cubic-bezier(.075,.82,.165,1);content:"";display:inline-block;margin-inline-start:var(--size-2);background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3C!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3C!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;inline-size:.8em;block-size:.8em}}@layer components{:where(.loading-indicator){padding:var(--size-16);font-weight:600;color:var(--mvw-loading-indicator-text-color, var(--mvw-text-toned));text-align:center}}@layer utils{.font-bold{font-weight:700}.italic{font-style:italic}.uppercase{text-transform:uppercase}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-start{text-align:start}.text-end{text-align:end}.text-center{text-align:center}.text-xs{font-size:var(--font-size-200)}.text-sm{font-size:var(--font-size-400)}.text-xl{font-size:var(--font-size-700)}.text-faded{color:var(--mvw-text-faded)}.text-dimmed{color:var(--mvw-text-dimmed)}.text-muted{color:var(--mvw-text-muted)}.text-toned{color:var(--mvw-text-toned)}.text-default{color:var(--mvw-text-default)}.text-highlighted{color:var(--mvw-text-highlighted)}.w-auto{width:auto}.mx-sm{margin-inline:var(--size-8)}.mb-sm{margin-block-end:var(--size-8)}.mb-md{margin-block-end:var(--size-16)}.mb-xl{margin-block-end:calc(var(--size-16) * 2)}.mt-md{margin-block-start:var(--size-16)}.mt-lg{margin-block-start:var(--size-24)}.mt-xl{margin-block-start:calc(var(--size-16) * 2)}.p-sm{padding-block:var(--size-8)}.py-md{padding-block:var(--size-16)}.flex{display:flex}.grid{display:grid}.block{display:block}.rounded{border-radius:1e5px}.sticky{position:sticky;top:var(--mvw-sticky-top-offset, 0);z-index:10}.blured-bg{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.justify-center{justify-items:center}.grid-container{--min-width: 230px;--max-width: 1fr;--gap: var(--size-16);--align-items: center;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(var(--min-width),100%),var(--max-width)));align-items:var(--align-items);gap:var(--gap)}.flex-container{display:flex;flex-wrap:wrap;gap:var(--size-16)}.responsive-team-name{container-type:inline-size;container-name:team-name}.responsive-team-name>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.responsive-team-name>* .team-name-short{display:none}@container team-name (max-width: 200px){.responsive-team-name>* .team-name-long{display:none}.responsive-team-name>* .team-name-short{display:inline-block}}}`,N="@layer components.variables{:where(:host){--mvw-tooltip-font-size: var(--font-size-200);--mvw-tooltip-color: light-dark(white, black);--mvw-tooltip-bg-color: light-dark(black, white);--mvw-floating-content-bg-color: light-dark(white, var(--mvw-color-primary-800))}}@layer components{:where(.floating-content).is-tooltip{background-color:var(--mvw-tooltip-bg-color);color:var(--mvw-tooltip-color);font-weight:700;padding:var(--size-4) var(--size-8);border-radius:var(--radius-2);font-size:var(--mvw-tooltip-font-size);white-space:nowrap;pointer-events:none}:where(.floating-content).is-tooltip .is-arrow{background-color:var(--mvw-tooltip-bg-color)}:where(.floating-content).is-content{background-color:var(--mvw-floating-content-bg-color);border-radius:var(--radius-2);box-shadow:var(--shadow-6)}:where(.floating-content).is-content .is-arrow{background-color:var(--mvw-floating-content-bg-color)}:where(.floating-content) .is-arrow{width:8px;height:8px;transform:rotate(45deg)}[data-placement^=top] :is(:where(.floating-content) .is-arrow){bottom:-4px;clip-path:polygon(80% 0,100% 0,100% 100%,0 100%,0 80%)}[data-placement^=bottom] :is(:where(.floating-content) .is-arrow){top:-4px;clip-path:polygon(100% 0,0 0,0 100%)}[data-placement^=left] :is(:where(.floating-content) .is-arrow){right:-4px;clip-path:polygon(100% 0,0 0,100% 100%)}[data-placement^=right] :is(:where(.floating-content) .is-arrow){left:-4px;clip-path:polygon(100% 0,0 0,0 100%)}.transition-fade-enter-active,.transition-fade-leave-active{transition:all .7s var(--ease-spring-1)}.transition-fade-enter-from,.transition-fade-leave-to{opacity:0;transform:translateY(5px)}}",I="@layer components.variables{:where(:host){--mvw-paginator-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-paginator-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-paginator-hover-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-paginator-hover-bg-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-paginator-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700));--mvw-paginator-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-black));--mvw-paginator-active-bg-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-paginator-disabled-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-600))}}@layer components{:where(.paginator){display:flex;flex-direction:row;list-style-type:none;margin:10px 0;padding:0}:where(.paginator) button,:where(.paginator) div{display:flex;align-items:center;justify-content:center;padding:var(--size-6) var(--size-12);text-decoration:none;cursor:pointer;color:var(--mvw-paginator-color);border:1px solid var(--mvw-paginator-border-color);background-color:var(--mvw-paginator-bg-color);margin-left:-1px}:is(:where(.paginator) button,:where(.paginator) div) .icon{width:var(--size-16);height:var(--size-16);margin:0 -4px;max-inline-size:var(--size-16)}:is(:where(.paginator) button,:where(.paginator) div):hover:not(:is(:where(.paginator) button,:where(.paginator) div).is-disabled,:is(:where(.paginator) button,:where(.paginator) div).is-active){color:var(--mvw-paginator-hover-color);background-color:var(--mvw-paginator-hover-bg-color)}:is(:where(.paginator) button,:where(.paginator) div):disabled,:is(:where(.paginator) button,:where(.paginator) div).is-disabled{color:var(--mvw-paginator-disabled-color);background-color:var(--mvw-paginator-bg-color);pointer-events:none;cursor:default}:is(:where(.paginator) button,:where(.paginator) div).is-active{color:var(--mvw-paginator-active-color);background-color:var(--mvw-paginator-active-bg-color);border-color:var(--mvw-paginator-active-bg-color);cursor:default}}",L="@layer components{:where(.table-responsive){container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}:where(.table-responsive) :where(table){width:100%}}",R='@layer components.variables{:where(:host){--mvw-table-header-font-size: var(--font-size-200);--mvw-table-default-column-width: 40px;--mvw-table-default-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-neutral-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-table-header-bg-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-header-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-800));--mvw-table-header-hover-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-hover-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-white));--mvw-table-hover-bg-color: light-dark(var(--mvw-color-secondary-100), var(--mvw-color-primary-950));--mvw-table-active-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-bg-color: light-dark(var(--mvw-color-secondary-200), var(--mvw-color-secondary-800));--mvw-table-active-even-bg-color: light-dark(var(--mvw-color-secondary-300), var(--mvw-color-secondary-700));--mvw-table-active-hover-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-hover-bg-color: light-dark(var(--mvw-color-secondary-400), var(--mvw-color-secondary-500));--mvw-table-portrait-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-table-portrait-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-stripped-bg-color: light-dark( hsl(from var(--mvw-color-primary-50) h s calc(l + 3) ), hsl(from var(--mvw-color-primary-900) h s calc(l + 2) ) );--mvw-table-label-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-table-label-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-cell-logo-size: 20px;--mvw-table-cell-portrait-size: 26px;--mvw-table-caption-color: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-600));--mvw-table-caption-font-size: var(--font-size-200)}}@layer components{:where(.table){border-collapse:collapse;max-inline-size:100%;position:relative;color:var(--mvw-table-color);background-color:var(--mvw-table-default-bg-color)}:where(.table) tr{background-color:var(--surface-default);border-top:1px solid var(--border-color)}:where(.table) tr:hover{background-color:oklch(from var(--surface-filled) l c h / 75%)}:where(.table) tr:nth-child(2n){background:var(--mvw-table-stripped-bg-color)}:where(.table) tr:nth-child(2n) td.is-active{background-color:var(--mvw-table-active-even-bg-color)}:where(.table) tr.is-highlighted{color:var(--mvw-color-error)}:where(.table) tr.is-optional{opacity:.5}:where(.table) :is(th,td){padding:var(--size-8);white-space:nowrap;text-align:center}:where(.table) th{background:var(--mvw-table-header-bg-color);color:var(--mvw-table-header-color);font-size:var(--mvw-table-header-font-size);font-weight:700;text-align:center;width:var(--mvw-table-default-column-width)}:where(.table) th:focus-visible,:where(.table) th:hover{background-color:var(--mvw-table-header-hover-bg-color);outline:none}:where(.table) th.is-sortable{position:relative;cursor:pointer}:where(.table) th.is-sortable .is-icon-sort{opacity:.5}:where(.table) th.is-active{background-color:var(--mvw-table-header-active-bg-color);color:var(--mvw-table-header-active-color)}:where(.table) th.is-active .is-icon-sort{opacity:1}:where(.table) th.is-has-image,:where(.table) th.has-avatar{width:0}:where(.table) th .is-icon-sort{display:inline-block;width:var(--size-12);height:var(--size-12);margin-inline-start:var(--size-4)}:where(.table) td.is-active{font-weight:700;color:var(--mvw-table-active-color);background:var(--mvw-table-active-bg-color)}:where(.table) td.has-avatar .avatar{--_width: var(--mvw-table-cell-portrait-size)}:where(.table) td[data-value="0"],:where(.table) td.is-zero{color:var(--mvw-text-faded)}:where(.table) td.is-possible-empty:empty:before{content:"0";color:var(--mvw-text-faded)}:where(.table) td.is-horizontal-content{display:inline-flex;align-items:center}:where(.table) td a[target=_blank]:after{content:"";position:absolute;left:100%;top:calc(50% - .4em)}:where(.table) td .is-logo-image{display:inline-block;vertical-align:middle;width:var(--mvw-table-cell-logo-size);height:var(--mvw-table-cell-logo-size);max-inline-size:fit-content}:where(.table) td .is-duplicated{color:var(--mvw-table-neutral-color)}:where(.table) td .is-team-name-long{display:inline-block}:where(.table) td .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){:where(.table) td .is-team-name-long{display:none}:where(.table) td .is-team-name-short{display:inline-block}}:where(.table) caption{caption-side:bottom;color:var(--mvw-table-caption-color);font-size:var(--mvw-table-caption-font-size, .75rem);padding:var(--size-12) 0;text-align:start}:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover{color:var(--mvw-table-hover-color);background-color:var(--mvw-table-hover-bg-color)}:is(:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover) td.is-active{color:var(--mvw-table-active-hover-color);background-color:var(--mvw-table-active-hover-bg-color)}}',A="@layer components.variables{:where(:host){--mvw-avatar-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700))}}@layer components{:where(.avatar){--_width: 20px;display:inline-flex;vertical-align:middle;aspect-ratio:1;inline-size:var(--_width);justify-content:center;overflow:clip;position:relative;border-radius:100%;border:1px solid var(--mvw-avatar-border-color)}:where(.avatar) img{block-size:100%;inline-size:100%;inset:0;object-fit:cover;position:absolute}}",D="@layer components.variables{:where(:host){--mvw-color-error-notice-bg-color: color-mix(in oklab, var(--mvw-color-error) 10%, transparent);--mvw-color-error-notice-border-color: color-mix(in oklab, var(--mvw-color-error) 25%, transparent);--mvw-color-error-notice-color: var(--mvw-color-error)}}@layer components{:where(.error-notice){display:flex;align-items:center;justify-items:flex-start;gap:15px;margin:10px 0;padding:10px 20px;background-color:var(--mvw-color-error-notice-bg-color);color:var(--mvw-color-error-notice-color);border:1px solid var(--mvw-color-error-notice-border-color);border-radius:var(--radius-2)}:where(.error-notice) button{text-decoration:underline}}",P=(o,r)=>{const t=o.__vccOpts||o;for(const[w,u]of r)t[w]=u;return t},Pe={__name:"FieldPlayersLeader.ce",props:{...B.baseProps,...B.playerStatsProps,...B.teamStatsProps},setup(o){const r=o,t=e.ref(null),w=O.COLUMNS_FIELD_PLAYERS,u=e.computed(()=>r.locale),{onError:b,error:f,hasError:d}=g.useErrorProvider(),{state:m,isLoading:p}=C(()=>g.fetchVBRData("/v2/players-stats",r.apiKey,{championshipId:Number(r.championshipId),...r.division&&{division:r.division},...r.phaseId&&{phaseId:r.phaseId}}),[],{onError:c=>b(c)}),{page:a,change:l}=g.usePage(),{sort:n,change:y}=g.useSort({sortTarget:"points",orders:[{target:"points",direction:$.SORT_STATE_DESCEND}]}),s=e.computed(()=>i.rawConvert(e.unref(m),i.playerName,i.teamName)),h=e.computed(()=>i.convert(e.unref(s)).filter(r.teamFilterByName,["teamName"]).sorted(n).addIndex(n.sortTarget).pagination(e.unref(a),r.limit).value()),_=e.computed(()=>h.value?.totalItems);function x(c){return i.externalTeamLinkResolver(r.externalTeamResolver,{...c,championshipId:r.championshipId})}function z(c){return i.externalPlayerLinkResolver(r.externalPlayerResolver,{...c,championshipId:r.championshipId})}return(c,T)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:u.value},{default:e.withCtx(()=>[e.unref(d)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(f)},null,8,["error"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.StatisticsTable),{columns:e.unref(w),rows:h.value.rows,"is-loading":e.unref(p),"hide-columns":r.hideColumns,sort:e.unref(n),"external-team-resolver":x,"external-player-resolver":z,"is-team-linked":c.isTeamLinked,"is-player-linked":c.isPlayerLinked,"append-to":t.value,onSort:e.unref(y)},null,8,["columns","rows","is-loading","hide-columns","sort","is-team-linked","is-player-linked","append-to","onSort"]),e.createVNode(e.unref(v.Paginator),{page:e.unref(a),"items-per-page":r.limit,"total-items":_.value,"range-length":5,onChange:e.unref(l)},null,8,["page","items-per-page","total-items","onChange"]),e.createElementVNode("div",{ref_key:"tooltipContainer",ref:t},null,512)]),_:1},8,["locale"])]))}},H=P(Pe,[["styles",[S,N,I,L,R,A,D]]]),Ne={__name:"FieldPlayersPenalties.ce",props:{...B.baseProps,...B.playerStatsProps,...B.teamStatsProps},setup(o){const r=o,t=O.COLUMNS_FIELD_PLAYERS_PENALTY,w=e.ref(null),u=e.computed(()=>r.locale),{onError:b,error:f,hasError:d}=g.useErrorProvider(),{state:m,isLoading:p}=C(()=>g.fetchVBRData("/v2/players-penalty",r.apiKey,{championshipId:Number(r.championshipId),...r.division&&{division:r.division},...r.phaseId&&{phaseId:r.phaseId}}),[],{onError:c=>b(c)}),{page:a,change:l}=g.usePage(),{sort:n,change:y}=g.useSort({sortTarget:"pim",orders:[{target:"pim",direction:$.SORT_STATE_DESCEND}]}),s=e.computed(()=>i.rawConvert(e.unref(m),i.playerName,i.teamName)),h=e.computed(()=>i.convert(e.unref(s)).filter(r.teamFilterByName,[["team","longName"]],!0).sorted(n).addIndex(n.sortTarget).pagination(e.unref(a),r.limit).value()),_=e.computed(()=>h.value?.totalItems);function x(c){return i.externalTeamLinkResolver(r.externalTeamResolver,{...c,championshipId:r.championshipId})}function z(c){return i.externalPlayerLinkResolver(r.externalPlayerResolver,{...c,championshipId:r.championshipId})}return(c,T)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:u.value},{default:e.withCtx(()=>[e.unref(d)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(f)},null,8,["error"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.StatisticsTable),{columns:e.unref(t),rows:h.value.rows,"is-loading":e.unref(p),"hide-columns":r.hideColumns,sort:e.unref(n),"external-team-resolver":x,"external-player-resolver":z,"is-team-linked":c.isTeamLinked,"is-player-linked":c.isPlayerLinked,"append-to":w.value,onSort:e.unref(y)},null,8,["columns","rows","is-loading","hide-columns","sort","is-team-linked","is-player-linked","append-to","onSort"]),e.createVNode(e.unref(v.Paginator),{page:e.unref(a),"items-per-page":r.limit,"total-items":_.value,"range-length":5,onChange:e.unref(l)},null,8,["page","items-per-page","total-items","onChange"]),e.createElementVNode("div",{ref_key:"tooltipContainer",ref:w},null,512)]),_:1},8,["locale"])]))}},q=P(Ne,[["styles",[S,N,I,L,R,A,D]]]),Ie={__name:"FieldPlayersToi.ce",props:{...B.baseProps,...B.playerStatsProps,...B.teamStatsProps},setup(o){const r=o,t=O.COLUMNS_FIELD_PLAYERS_TOI,w=e.ref(null),u=e.computed(()=>r.locale),{onError:b,error:f,hasError:d}=g.useErrorProvider(),{state:m,isLoading:p}=C(()=>g.fetchVBRData("/v2/players-toi",r.apiKey,{championshipId:Number(r.championshipId),...r.division&&{division:r.division},...r.phaseId&&{phaseId:r.phaseId}}),[],{onError:c=>b(c)}),{page:a,change:l}=g.usePage(),{sort:n,change:y}=g.useSort({sortTarget:"toi",orders:[{target:"toi",direction:$.SORT_STATE_DESCEND}]}),s=e.computed(()=>i.rawConvert(e.unref(m),i.playerName,i.teamName,i.convertTimesSecToMin(["toi","atoi","eqToi","pp1Toi","pp2Toi","sh1Toi","sh2Toi","eqAToi","pp1AToi","pp2AToi","sh1AToi","sh2AToi"]))),h=e.computed(()=>i.convert(e.unref(s)).filter(r.teamFilterByName,["teamName"]).sorted(n).addIndex(n.sortTarget).pagination(e.unref(a),r.limit).value()),_=e.computed(()=>h.value?.totalItems);function x(c){return i.externalTeamLinkResolver(r.externalTeamResolver,{...c,championshipId:r.championshipId})}function z(c){return i.externalPlayerLinkResolver(r.externalPlayerResolver,{...c,championshipId:r.championshipId})}return(c,T)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:u.value},{default:e.withCtx(()=>[e.unref(d)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(f)},null,8,["error"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.StatisticsTable),{columns:e.unref(t),rows:h.value.rows,"is-loading":e.unref(p),"hide-columns":r.hideColumns,sort:e.unref(n),"external-team-resolver":x,"external-player-resolver":z,"is-team-linked":c.isTeamLinked,"is-player-linked":c.isPlayerLinked,"append-to":w.value,onSort:e.unref(y)},null,8,["columns","rows","is-loading","hide-columns","sort","is-team-linked","is-player-linked","append-to","onSort"]),e.createVNode(e.unref(v.Paginator),{page:e.unref(a),"items-per-page":r.limit,"total-items":_.value,"range-length":5,onChange:e.unref(l)},null,8,["page","items-per-page","total-items","onChange"]),e.createElementVNode("div",{ref_key:"tooltipContainer",ref:w},null,512)]),_:1},8,["locale"])]))}},Le=P(Ie,[["styles",[S,N,I,L,R,A,D]]]),Re={__name:"GoaliesLeader.ce",props:{...k.baseProps,...k.playerStatsProps,...k.teamStatsProps,aboveLimit:{type:Boolean,default:!1},underLimit:{type:Boolean,default:!1}},setup(o){const r=o,t=e.ref(null),{onError:w,error:u,hasError:b}=g.useErrorProvider(),f=k.COLUMNS_GOALIES,d=e.computed(()=>r.locale),{state:m,isLoading:p}=C(()=>g.fetchVBRData("/v2/players-goalie",r.apiKey,{championshipId:Number(r.championshipId),...r.division&&{division:r.division},...r.phaseId&&{phaseId:r.phaseId},...r.aboveLimit&&{more:!0},...r.underLimit&&{less:!0}}),[],{onError:c=>w(c)}),{page:a,change:l}=g.usePage(),{sort:n,change:y}=g.useSort({sortTarget:"svsPercent",orders:[{target:"svsPercent",direction:k.SORT_STATE_DESCEND}]}),s=e.computed(()=>i.rawConvert(e.unref(m),i.playerName,i.convertTimesMinToMinSec(["mip"]))),h=e.computed(()=>i.convert(e.unref(s)).filter(r.teamFilterByName,[["team","longName"]],!0).sorted(n).addIndex(n.sortTarget).pagination(e.unref(a),r.limit).value()),_=e.computed(()=>h.value?.totalItems);function x(c){return i.externalTeamLinkResolver(r.externalTeamResolver,{...c,championshipId:r.championshipId})}function z(c){return i.externalPlayerLinkResolver(r.externalPlayerResolver,{...c,championshipId:r.championshipId})}return(c,T)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:d.value},{default:e.withCtx(()=>[e.unref(b)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(u)},null,8,["error"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.StatisticsTable),{columns:e.unref(f),rows:h.value.rows,"is-loading":e.unref(p),"hide-columns":r.hideColumns,sort:e.unref(n),"external-team-resolver":x,"external-player-resolver":z,"is-team-linked":c.isTeamLinked,"is-player-linked":c.isPlayerLinked,"append-to":t.value,onSort:e.unref(y)},null,8,["columns","rows","is-loading","hide-columns","sort","is-team-linked","is-player-linked","append-to","onSort"]),e.createVNode(e.unref(v.Paginator),{page:e.unref(a),"items-per-page":r.limit,"total-items":_.value,"range-length":5,onChange:e.unref(l)},null,8,["page","items-per-page","total-items","onChange"]),e.createElementVNode("div",{ref_key:"tooltipContainer",ref:t},null,512)]),_:1},8,["locale"])]))}},J=P(Re,[["styles",[S,N,I,L,R,A,D]]]),Q=P({__name:"PlayersNational.ce",props:{apiKey:{type:String,default:""},locale:{type:String,default:"hu"},gender:{type:String,default:"male"},limit:{type:Number,default:50}},setup(o){const r=o,t=e.ref(null),w=O.COLUMNS_PLAYERS_NATIONAL,u=e.computed(()=>r.locale),{onError:b,error:f,hasError:d}=g.useErrorProvider(),{state:m,isLoading:p}=C(()=>g.fetchVBRData("/v2/players-stats-national",r.apiKey,{gender:r.gender}),[],{onError:c=>b(c)}),{page:a,change:l}=g.usePage(),{sort:n,change:y}=g.useSort({sortTarget:"gp",orders:[{target:"gp",direction:k.SORT_STATE_DESCEND}]}),s=e.computed(()=>i.rawConvert(e.unref(m),i.playerName)),h=e.computed(()=>i.convert(s.value).sorted(n).addIndex(n.sortTarget).pagination(e.unref(a),r.limit).value()),_=e.computed(()=>h.value?.totalItems);function x(c){return i.externalTeamLinkResolver(r.externalTeamResolver,{...c,championshipId:r.championshipId})}function z(c){return i.externalPlayerLinkResolver(r.externalPlayerResolver,{...c,championshipId:r.championshipId})}return(c,T)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:u.value},{default:e.withCtx(()=>[e.unref(d)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(f)},null,8,["error"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.StatisticsTable),{columns:e.unref(w),rows:h.value.rows,"is-loading":e.unref(p),"hide-columns":r.hideColumns,sort:e.unref(n),"external-team-resolver":x,"external-player-resolver":z,"append-to":t.value,onSort:e.unref(y)},null,8,["columns","rows","is-loading","hide-columns","sort","append-to","onSort"]),e.createVNode(e.unref(v.Paginator),{page:e.unref(a),"items-per-page":r.limit,"total-items":_.value,"range-length":5,onChange:e.unref(l)},null,8,["page","items-per-page","total-items","onChange"]),e.createElementVNode("div",{ref_key:"tooltipContainer",ref:t},null,512)]),_:1},8,["locale"])]))}},[["styles",[S,N,I,L,R,A,D]]]),Ve="@layer components.variables{:where(:host){--mvw-timezone-selector-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-500));--mvw-timezone-selector-font-size: var(--font-size-300)}}@layer components{:where(.timezone-selector){padding:3px 0;color:var(--mvw-timezone-selector-color);font-size:var(--mvw-timezone-selector-font-size);font-weight:500}:where(.timezone-selector) button+button{margin-inline-start:var(--size-4)}}",Be="@layer components{:where(button){--_lighten: oklch(from var(--mvw-link-color) calc(l*1.15) c h);--_darken: oklch(from var(--mvw-link-color) calc(l*.85) c h)}:where(button)[data-variant=link]{padding:0;color:var(--mvw-link-color);cursor:pointer}:where(button)[data-variant=link]:hover{color:light-dark(var(--_darken),var(--_lighten))}:where(button)[data-variant=link].is-active{font-weight:700;color:light-dark(var(--_darken),var(--_lighten))}}",Ae="@layer components{:where(.icon-button){--_hover-bg-color: color-mix(in oklab, light-dark(var(--mvw-color-black), var(--mvw-color-white)) 10%, transparent);align-items:center;aspect-ratio:1;background-color:transparent;border:0;border-radius:var(--radius-2);display:inline-flex;inline-size:var(--size-24);justify-content:center;padding:0}:where(.icon-button) svg{max-inline-size:var(--size-16);pointer-events:none}:where(.icon-button)[data-state=open],:where(.icon-button):hover{background-color:var(--_hover-bg-color)}:where(.icon-button).xs{border-radius:var(--radius-1)}}",De='@layer components.variables{:where(:host){--mvw-list-item-font-size: var(--font-size-400);--mvw-list-item-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-200));--mvw-list-item-hover-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-50));--mvw-list-item-hover-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-list-item-selected-color: light-dark(var(--mvw-color-secondary-700), var(--mvw-color-secondary-300))}}@layer components{:where(.list){list-style:none;margin:0;padding:var(--size-4)}@media (pointer: coarse){:where(.list),:where(.list) *{-webkit-user-select:none;user-select:none}}:where(.list) :where(li,option,[role=group]>label){align-items:center;display:flex;gap:var(--size-4);isolation:isolate;min-block-size:40px;position:relative}:where(.list) :where(li,option,[role=group]>label):before{display:none}:where(.list) :where(li,option,[role=group]>label) *{font-size:inherit}:where(.list) :where(li,option,[role=group]>label):has(>a,>button,>label){background:transparent;display:block;min-block-size:auto;padding:0}:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label{align-items:center;color:var(--mvw-list-item-color);cursor:pointer;display:flex;gap:var(--size-8);inline-size:100%;margin:0;outline-offset:-1px;font-size:var(--mvw-list-item-font-size);padding:var(--size-4) var(--size-6);text-align:start;text-decoration:none;border-radius:var(--radius-2);z-index:0}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label):focus,:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label):focus-visible,:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label):hover{color:var(--mvw-list-item-hover-color);background-color:var(--mvw-list-item-hover-bg-color)}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label)[aria-selected=true]{color:var(--mvw-list-item-selected-color)}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .text{flex:1;line-height:1.6}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .text :where(h1,h2,h3,h4,h5,h6,p,span){color:inherit;font-weight:400}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .text p+p{font-size:var(--font-size-100)}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .start{align-self:center;align-items:center;display:grid;z-index:1}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .start svg{inline-size:var(--mvw-list-item-font-size)}:where(.unordered-list){display:grid;align-items:center}:where(.unordered-list) li{display:flex;align-items:center;gap:var(--size-4);color:var(--mvw-text-default);padding:var(--size-6) var(--size-4)}:where(.unordered-list) li:not(:first-child){border-top:1px solid var(--mvw-border-muted)}:where(.unordered-list).centered li{justify-content:center}@media (width > 500px){:where(.unordered-list){display:flex}:where(.unordered-list) li:not(:first-child){border-top:none}:where(.unordered-list) li:not(:first-of-type):before{content:"/";margin-inline-end:var(--size-6);color:var(--mvw-border-muted)}}}',je="@layer components{:where(.badge){--_bg-color: var(--mvw-bg-muted);--_color: var(--mvw-text-muted);padding:var(--size-2) var(--size-4);display:inline-flex;gap:var(--size-2);font-size:var(--font-size-100);font-weight:700;line-height:var(--font-lineheight-300);color:var(--_color);background-color:var(--_bg-color);border-radius:var(--radius-2)}:where(.badge) svg{fill:currentColor}:where(.badge).inverted{--_bg-color: var(--mvw-bg-inverted);--_color: var(--mvw-text-inverted)}:where(.badge).live{--_bg-color: var(--mvw-color-live);--_color: var(--mvw-color-white)}:where(.badge).error{--_bg-color: var(--mvw-color-error);--_color: var(--mvw-color-white)}:where(.badge).warning{--_bg-color: var(--mvw-color-warning);--_color: var(--mvw-color-white)}:where(.badge).xs{font-size:var(--font-size-50)}:where(.badge).lg{font-size:var(--font-size-300);padding:var(--size-4) var(--size-6)}:where(.badge)+:where(.badge){margin-inline-start:var(--size-4)}}",Oe="@layer components.variables{:where(:host){--mvw-color-error-notice-bg-color: color-mix(in oklab, var(--mvw-color-error) 10%, transparent);--mvw-color-error-notice-border-color: color-mix(in oklab, var(--mvw-color-error) 25%, transparent);--mvw-color-error-notice-color: var(--mvw-color-error)}}@layer components{:where(.error-notice){display:flex;align-items:center;justify-items:flex-start;gap:15px;margin:10px 0;padding:10px 20px;background-color:var(--mvw-color-error-notice-bg-color);color:var(--mvw-color-error-notice-color);border:1px solid var(--mvw-color-error-notice-border-color);border-radius:var(--radius-2)}:where(.error-notice) button{text-decoration:underline}}",Me={__name:"Schedule.ce",props:{...k.baseProps,...i.pick(["limit"],k.playerStatsProps),...k.teamStatsProps,...k.gameProps,initialPage:{type:Number,default:1,validator:o=>o>=1},autoInitialPage:{type:Boolean,default:!1},timezoneSelector:{type:Boolean,default:!1},autoRefresh:{type:Boolean,default:!1}},setup(o){const r=o,{onError:t,error:w,hasError:u}=g.useErrorProvider(),b=e.computed(()=>r.locale),{state:f,isLoading:d,execute:m}=C(()=>g.fetchVBRData("/v2/games-list",r.apiKey,{championshipId:r.championshipId,...r.division&&{division:r.division},...r.phaseId&&{phaseId:r.phaseId}}),[],{resetOnExecute:!1,immediate:!r.autoRefresh,onError:V=>{t(V),a?.()}}),p=e.computed(()=>i.sortGames(f.value)),{pause:a,resume:l}=Se(m,k.REFRESH_DELAY,{immediate:!1}),{page:n,change:y}=g.usePage({initial:e.computed(()=>r.initialPage),items:p,limit:r.limit,auto:r.autoInitialPage}),s=e.ref(i.getLocalTimezone()),h=e.computed(()=>i.offsetName(new Date,e.unref(s),r.locale)),_=e.computed(()=>i.convert(e.unref(p)).filter(r.teamFilterByName,["homeTeamName","awayTeamName"]).schedule(e.unref(s),e.unref(b)).pagination(e.unref(n),r.limit).value());if(r.autoRefresh){l();const V=Ce();e.watch(V,F=>{if(F==="visible")return l();a()})}const x=e.computed(()=>_.value?.totalItems);function z(V){s.value=V}const c=V=>i.externalGameLinkResolver(r.externalGameResolver,{gameId:V}),T=e.computed(()=>r.isGameTargetExternal?"_blank":"_self");return(V,F)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:r.locale},{default:e.withCtx(()=>[e.unref(u)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(w)},null,8,["error"])):e.createCommentVNode("",!0),r.timezoneSelector?(e.openBlock(),e.createBlock(e.unref(v.TimezoneSelector),{key:r.locale,locale:r.locale,"current-zone":s.value,onChange:z},null,8,["locale","current-zone"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.ScheduleTable),{rows:_.value.rows,"is-loading":e.unref(d),"offset-name":h.value,"hide-columns":r.hideColumns,"external-game-resolver-target":T.value,"external-game-resolver":c},null,8,["rows","is-loading","offset-name","hide-columns","external-game-resolver-target"]),r.limit>0?(e.openBlock(),e.createBlock(e.unref(v.Paginator),{key:2,page:e.unref(n),"items-per-page":r.limit,"total-items":x.value,"range-length":5,onChange:e.unref(y)},null,8,["page","items-per-page","total-items","onChange"])):e.createCommentVNode("",!0)]),_:1},8,["locale"])]))}},X=P(Me,[["styles",[S,N,I,L,R,Ve,Be,Ae,De,je,Oe]]]),Fe="@layer components{:where(.table-responsive){container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}:where(.table-responsive) :where(table){width:100%}}",$e='@layer components.variables{:where(:host){--mvw-table-header-font-size: var(--font-size-200);--mvw-table-default-column-width: 40px;--mvw-table-default-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-neutral-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-table-header-bg-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-header-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-800));--mvw-table-header-hover-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-hover-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-white));--mvw-table-hover-bg-color: light-dark(var(--mvw-color-secondary-100), var(--mvw-color-primary-950));--mvw-table-active-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-bg-color: light-dark(var(--mvw-color-secondary-200), var(--mvw-color-secondary-800));--mvw-table-active-even-bg-color: light-dark(var(--mvw-color-secondary-300), var(--mvw-color-secondary-700));--mvw-table-active-hover-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-hover-bg-color: light-dark(var(--mvw-color-secondary-400), var(--mvw-color-secondary-500));--mvw-table-portrait-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-table-portrait-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-stripped-bg-color: light-dark( hsl(from var(--mvw-color-primary-50) h s calc(l + 3) ), hsl(from var(--mvw-color-primary-900) h s calc(l + 2) ) );--mvw-table-label-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-table-label-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-cell-logo-size: 20px;--mvw-table-cell-portrait-size: 26px;--mvw-table-caption-color: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-600));--mvw-table-caption-font-size: var(--font-size-200)}}@layer components{:where(.table){border-collapse:collapse;max-inline-size:100%;position:relative;color:var(--mvw-table-color);background-color:var(--mvw-table-default-bg-color)}:where(.table) tr{background-color:var(--surface-default);border-top:1px solid var(--border-color)}:where(.table) tr:hover{background-color:oklch(from var(--surface-filled) l c h / 75%)}:where(.table) tr:nth-child(2n){background:var(--mvw-table-stripped-bg-color)}:where(.table) tr:nth-child(2n) td.is-active{background-color:var(--mvw-table-active-even-bg-color)}:where(.table) tr.is-highlighted{color:var(--mvw-color-error)}:where(.table) tr.is-optional{opacity:.5}:where(.table) :is(th,td){padding:var(--size-8);white-space:nowrap;text-align:center}:where(.table) th{background:var(--mvw-table-header-bg-color);color:var(--mvw-table-header-color);font-size:var(--mvw-table-header-font-size);font-weight:700;text-align:center;width:var(--mvw-table-default-column-width)}:where(.table) th:focus-visible,:where(.table) th:hover{background-color:var(--mvw-table-header-hover-bg-color);outline:none}:where(.table) th.is-sortable{position:relative;cursor:pointer}:where(.table) th.is-sortable .is-icon-sort{opacity:.5}:where(.table) th.is-active{background-color:var(--mvw-table-header-active-bg-color);color:var(--mvw-table-header-active-color)}:where(.table) th.is-active .is-icon-sort{opacity:1}:where(.table) th.is-has-image,:where(.table) th.has-avatar{width:0}:where(.table) th .is-icon-sort{display:inline-block;width:var(--size-12);height:var(--size-12);margin-inline-start:var(--size-4)}:where(.table) td.is-active{font-weight:700;color:var(--mvw-table-active-color);background:var(--mvw-table-active-bg-color)}:where(.table) td.has-avatar .avatar{--_width: var(--mvw-table-cell-portrait-size)}:where(.table) td[data-value="0"],:where(.table) td.is-zero{color:var(--mvw-text-faded)}:where(.table) td.is-possible-empty:empty:before{content:"0";color:var(--mvw-text-faded)}:where(.table) td.is-horizontal-content{display:inline-flex;align-items:center}:where(.table) td a[target=_blank]:after{content:"";position:absolute;left:100%;top:calc(50% - .4em)}:where(.table) td .is-logo-image{display:inline-block;vertical-align:middle;width:var(--mvw-table-cell-logo-size);height:var(--mvw-table-cell-logo-size);max-inline-size:fit-content}:where(.table) td .is-duplicated{color:var(--mvw-table-neutral-color)}:where(.table) td .is-team-name-long{display:inline-block}:where(.table) td .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){:where(.table) td .is-team-name-long{display:none}:where(.table) td .is-team-name-short{display:inline-block}}:where(.table) caption{caption-side:bottom;color:var(--mvw-table-caption-color);font-size:var(--mvw-table-caption-font-size, .75rem);padding:var(--size-12) 0;text-align:start}:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover{color:var(--mvw-table-hover-color);background-color:var(--mvw-table-hover-bg-color)}:is(:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover) td.is-active{color:var(--mvw-table-active-hover-color);background-color:var(--mvw-table-active-hover-bg-color)}}',Ke="@layer components.variables{:where(:host){--mvw-tooltip-font-size: var(--font-size-200);--mvw-tooltip-color: light-dark(white, black);--mvw-tooltip-bg-color: light-dark(black, white);--mvw-floating-content-bg-color: light-dark(white, var(--mvw-color-primary-800))}}@layer components{:where(.floating-content).is-tooltip{background-color:var(--mvw-tooltip-bg-color);color:var(--mvw-tooltip-color);font-weight:700;padding:var(--size-4) var(--size-8);border-radius:var(--radius-2);font-size:var(--mvw-tooltip-font-size);white-space:nowrap;pointer-events:none}:where(.floating-content).is-tooltip .is-arrow{background-color:var(--mvw-tooltip-bg-color)}:where(.floating-content).is-content{background-color:var(--mvw-floating-content-bg-color);border-radius:var(--radius-2);box-shadow:var(--shadow-6)}:where(.floating-content).is-content .is-arrow{background-color:var(--mvw-floating-content-bg-color)}:where(.floating-content) .is-arrow{width:8px;height:8px;transform:rotate(45deg)}[data-placement^=top] :is(:where(.floating-content) .is-arrow){bottom:-4px;clip-path:polygon(80% 0,100% 0,100% 100%,0 100%,0 80%)}[data-placement^=bottom] :is(:where(.floating-content) .is-arrow){top:-4px;clip-path:polygon(100% 0,0 0,0 100%)}[data-placement^=left] :is(:where(.floating-content) .is-arrow){right:-4px;clip-path:polygon(100% 0,0 0,100% 100%)}[data-placement^=right] :is(:where(.floating-content) .is-arrow){left:-4px;clip-path:polygon(100% 0,0 0,0 100%)}.transition-fade-enter-active,.transition-fade-leave-active{transition:all .7s var(--ease-spring-1)}.transition-fade-enter-from,.transition-fade-leave-to{opacity:0;transform:translateY(5px)}}",Ge="@layer components.variables{:where(:host){--mvw-color-error-notice-bg-color: color-mix(in oklab, var(--mvw-color-error) 10%, transparent);--mvw-color-error-notice-border-color: color-mix(in oklab, var(--mvw-color-error) 25%, transparent);--mvw-color-error-notice-color: var(--mvw-color-error)}}@layer components{:where(.error-notice){display:flex;align-items:center;justify-items:flex-start;gap:15px;margin:10px 0;padding:10px 20px;background-color:var(--mvw-color-error-notice-bg-color);color:var(--mvw-color-error-notice-color);border:1px solid var(--mvw-color-error-notice-border-color);border-radius:var(--radius-2)}:where(.error-notice) button{text-decoration:underline}}",Ue={__name:"Standings.ce",props:{...k.baseProps,...k.teamStatsProps,type:{type:String,default:"3",validator:o=>["2","3"].includes(o)}},setup(o){const r=o,t=e.ref(null),{onError:w,error:u,hasError:b}=g.useErrorProvider(),f=e.computed(()=>r.locale),{state:d,isLoading:m}=C(()=>g.fetchVBRData("/v2/standings",r.apiKey,{championshipId:Number(r.championshipId),...r.division&&{division:r.division},...r.phaseId&&{phaseId:r.phaseId}}),[],{onError:h=>w(h)}),{sort:p,change:a}=g.useSort(),l=e.computed(()=>i.convert(e.unref(d)).teamName().sorted(p).addContinuousIndex().value()),n=e.computed(()=>r.type==="3"?k.COLUMNS_STANDINGS_P_3:k.COLUMNS_STANDINGS_P_2),y=h=>a(h);function s(h){return i.externalTeamLinkResolver(r.externalTeamResolver,{...h,championshipId:r.championshipId})}return(h,_)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:f.value},{default:e.withCtx(()=>[e.unref(b)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(u)},null,8,["error"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.StatisticsTable),{columns:n.value,rows:l.value.rows,"is-loading":e.unref(m),"hide-columns":r.hideColumns,sort:e.unref(p),"external-team-resolver":s,"is-team-linked":h.isTeamLinked,"append-to":t.value,onSort:y},{caption:e.withCtx(()=>[e.createVNode(e.unref(v.AdditionalStandingsText),{rows:l.value.rows,"additional-key":"inheritedPoints"},null,8,["rows"]),e.createVNode(e.unref(v.AdditionalStandingsText),{rows:l.value.rows,"additional-key":"penaltyPoints"},null,8,["rows"])]),_:1},8,["columns","rows","is-loading","hide-columns","sort","is-team-linked","append-to"]),e.createElementVNode("div",{ref_key:"tooltipContainer",ref:t},null,512)]),_:1},8,["locale"])]))}},Z=P(Ue,[["styles",[S,Fe,$e,Ke,Ge]]]),j="@layer components.variables{:where(:host){--mvw-color-error-notice-bg-color: color-mix(in oklab, var(--mvw-color-error) 10%, transparent);--mvw-color-error-notice-border-color: color-mix(in oklab, var(--mvw-color-error) 25%, transparent);--mvw-color-error-notice-color: var(--mvw-color-error)}}@layer components{:where(.error-notice){display:flex;align-items:center;justify-items:flex-start;gap:15px;margin:10px 0;padding:10px 20px;background-color:var(--mvw-color-error-notice-bg-color);color:var(--mvw-color-error-notice-color);border:1px solid var(--mvw-color-error-notice-border-color);border-radius:var(--radius-2)}:where(.error-notice) button{text-decoration:underline}}",Ye={__name:"TeamAttendance.ce",props:{...k.baseProps,...k.teamStatsProps},setup(o){const r=o,t=k.COLUMNS_TEAM_ATTENDANCE,w=e.ref(null),{onError:u,error:b,hasError:f}=g.useErrorProvider(),d=e.computed(()=>r.locale),{state:m,isLoading:p}=C(()=>g.fetchVBRData("/v2/team-attendance",r.apiKey,{championshipId:Number(r.championshipId),...r.division&&{division:r.division},...r.phaseId&&{phaseId:r.phaseId}}),[],{onError:s=>u(s)}),{sort:a,change:l}=g.useSort({sortTarget:"totalAttendanceAvg",orders:[{target:"totalAttendanceAvg",direction:k.SORT_STATE_DESCEND}]}),n=e.computed(()=>i.convert(e.unref(m)).teamName().sorted(a).addIndex(a.sortTarget).value());function y(s){return i.externalTeamLinkResolver(r.externalTeamResolver,{...s,championshipId:r.championshipId})}return(s,h)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:d.value},{default:e.withCtx(()=>[e.unref(f)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(b)},null,8,["error"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.StatisticsTable),{columns:e.unref(t),rows:n.value.rows,"is-loading":e.unref(p),"hide-columns":r.hideColumns,sort:e.unref(a),"external-team-resolver":y,"is-team-linked":s.isTeamLinked,"append-to":w.value,onSort:e.unref(l)},null,8,["columns","rows","is-loading","hide-columns","sort","is-team-linked","append-to","onSort"]),e.createElementVNode("div",{ref_key:"tooltipContainer",ref:w},null,512)]),_:1},8,["locale"])]))}},ee=P(Ye,[["styles",[S,N,I,L,R,j]]]),We={__name:"TeamFairplay.ce",props:{...k.baseProps,...k.teamStatsProps},setup(o){const r=o,t=k.COLUMNS_TEAMS_FAIRPLAY,w=e.ref(null),{onError:u,error:b,hasError:f}=g.useErrorProvider(),d=e.computed(()=>r.locale),{state:m,isLoading:p}=C(()=>g.fetchVBRData("/v2/team-fairplay",r.apiKey,{championshipId:Number(r.championshipId),...r.division&&{division:r.division},...r.phaseId&&{phaseId:r.phaseId}}),[],{onError:s=>u(s)}),{sort:a,change:l}=g.useSort({sortTarget:"pim",orders:[{target:"pim",direction:k.SORT_STATE_DESCEND}]}),n=e.computed(()=>i.convert(e.unref(m)).teamName().sorted(a).addIndex(a.sortTarget).value());function y(s){return i.externalTeamLinkResolver(r.externalTeamResolver,{...s,championshipId:r.championshipId})}return(s,h)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:d.value},{default:e.withCtx(()=>[e.unref(f)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(b)},null,8,["error"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.StatisticsTable),{columns:e.unref(t),rows:n.value.rows,"is-loading":e.unref(p),"hide-columns":r.hideColumns,sort:e.unref(a),"external-team-resolver":y,"is-team-linked":s.isTeamLinked,"append-to":w.value,onSort:e.unref(l)},null,8,["columns","rows","is-loading","hide-columns","sort","is-team-linked","append-to","onSort"]),e.createElementVNode("div",{ref_key:"tooltipContainer",ref:w},null,512)]),_:1},8,["locale"])]))}},re=P(We,[["styles",[S,N,I,L,R,j]]]),He={__name:"TeamPenaltyKilling.ce",props:{...k.baseProps,...k.teamStatsProps},setup(o){const r=o,t=e.ref(null),{onError:w,error:u,hasError:b}=g.useErrorProvider(),f=k.COLUMNS_TEAMS_PENALTY_KILLING,d=e.computed(()=>r.locale),{state:m,isLoading:p}=C(()=>g.fetchVBRData("/v2/team-powerplay",r.apiKey,{championshipId:Number(r.championshipId),...r.division&&{division:r.division},...r.phaseId&&{phaseId:r.phaseId}}),[],{onError:h=>w(h)}),{sort:a,change:l}=g.useSort({sortTarget:"pkPercent",orders:[{target:"pkPercent",direction:k.SORT_STATE_DESCEND}]}),n=e.computed(()=>i.rawConvert(e.unref(m),i.convertTimesSecToMin(["dvgTime","dvgTimePP1","dvgTimePP2"]))),y=e.computed(()=>i.convert(e.unref(n)).teamName().sorted(a).addIndex(a.sortTarget).value());function s(h){return i.externalTeamLinkResolver(r.externalTeamResolver,{...h,championshipId:r.championshipId})}return(h,_)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:d.value},{default:e.withCtx(()=>[e.unref(b)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(u)},null,8,["error"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.StatisticsTable),{columns:e.unref(f),rows:y.value.rows,"is-loading":e.unref(p),"hide-columns":r.hideColumns,sort:e.unref(a),"external-team-resolver":s,"is-team-linked":h.isTeamLinked,"append-to":t.value,onSort:e.unref(l)},null,8,["columns","rows","is-loading","hide-columns","sort","is-team-linked","append-to","onSort"]),e.createElementVNode("div",{ref_key:"tooltipContainer",ref:t},null,512)]),_:1},8,["locale"])]))}},oe=P(He,[["styles",[S,N,I,L,R,j]]]),qe={__name:"TeamPowerplay.ce",props:{...k.baseProps,...k.teamStatsProps},setup(o){const r=o,t=e.ref(null),{onError:w,error:u,hasError:b}=g.useErrorProvider(),f=k.COLUMNS_TEAMS_POWERPLAY,d=e.computed(()=>r.locale),{state:m,isLoading:p}=C(()=>g.fetchVBRData("/v2/team-powerplay",r.apiKey,{championshipId:Number(r.championshipId),...r.division&&{division:r.division},...r.phaseId&&{phaseId:r.phaseId}}),[],{onError:h=>w(h)}),{sort:a,change:l}=g.useSort({sortTarget:"ppPercent",orders:[{target:"ppPercent",direction:k.SORT_STATE_DESCEND}]}),n=e.computed(()=>i.rawConvert(e.unref(m),i.convertTimesSecToMin(["advTime","advTimePP1","advTimePP2"]))),y=e.computed(()=>i.convert(e.unref(n)).teamName().sorted(a).addIndex(a.sortTarget).value());function s(h){return i.externalTeamLinkResolver(r.externalTeamResolver,{...h,championshipId:r.championshipId})}return(h,_)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:d.value},{default:e.withCtx(()=>[e.unref(b)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(u)},null,8,["error"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.StatisticsTable),{columns:e.unref(f),rows:y.value.rows,"is-loading":e.unref(p),"hide-columns":r.hideColumns,sort:e.unref(a),"external-team-resolver":s,"is-team-linked":h.isTeamLinked,"append-to":t.value,onSort:e.unref(l)},null,8,["columns","rows","is-loading","hide-columns","sort","is-team-linked","append-to","onSort"]),e.createElementVNode("div",{ref_key:"tooltipContainer",ref:t},null,512)]),_:1},8,["locale"])]))}},te=P(qe,[["styles",[S,N,I,L,R,j]]]),Je={__name:"TeamScoringEfficiency.ce",props:{...k.baseProps,...k.teamStatsProps},setup(o){const r=o,t=k.COLUMNS_SCORING_EFFICIENCY,w=e.ref(null),{onError:u,error:b,hasError:f}=g.useErrorProvider(),d=e.computed(()=>r.locale),{state:m,isLoading:p}=C(()=>g.fetchVBRData("/v2/team-scoring-efficiency",r.apiKey,{championshipId:Number(r.championshipId),...r.division&&{division:r.division},...r.phaseId&&{phaseId:r.phaseId}}),[],{onError:s=>u(s)}),{sort:a,change:l}=g.useSort({sortTarget:"sp",orders:[{target:"sp",direction:k.SORT_STATE_DESCEND}]}),n=e.computed(()=>i.convert(e.unref(m)).teamName().sorted(a).addIndex(a.sortTarget).value());function y(s){return i.externalTeamLinkResolver(r.externalTeamResolver,{...s,championshipId:r.championshipId})}return(s,h)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(v.I18NProvider),{locale:d.value},{default:e.withCtx(()=>[e.unref(f)?(e.openBlock(),e.createBlock(e.unref(v.ErrorNotice),{key:0,error:e.unref(b)},null,8,["error"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.StatisticsTable),{columns:e.unref(t),rows:n.value.rows,"is-loading":e.unref(p),"hide-columns":r.hideColumns,sort:e.unref(a),"external-team-resolver":y,"is-team-linked":s.isTeamLinked,"append-to":w.value,onSort:e.unref(l)},null,8,["columns","rows","is-loading","hide-columns","sort","is-team-linked","append-to","onSort"]),e.createElementVNode("div",{ref_key:"tooltipContainer",ref:w},null,512)]),_:1},8,["locale"])]))}},ae=P(Je,[["styles",[S,N,I,L,R,j]]]),le=e.defineCustomElement(Z),ne=e.defineCustomElement(X),ie=e.defineCustomElement(H),se=e.defineCustomElement(q),ce=e.defineCustomElement(J),de=e.defineCustomElement(ee),me=e.defineCustomElement(re),pe=e.defineCustomElement(oe),he=e.defineCustomElement(te),ve=e.defineCustomElement(ae),we=e.defineCustomElement(Q),ge=e.defineCustomElement(Le);function fe(){customElements.define("mjsz-vbr-standings",le),customElements.define("mjsz-vbr-schedule",ne),customElements.define("mjsz-vbr-players-leader",ie),customElements.define("mjsz-vbr-players-penalties",se),customElements.define("mjsz-vbr-goalies",ce),customElements.define("mjsz-vbr-team-attendance",de),customElements.define("mjsz-vbr-team-fairplay",me),customElements.define("mjsz-vbr-team-penalty-killing",pe),customElements.define("mjsz-vbr-team-powerplay",he),customElements.define("mjsz-vbr-team-scoring",ve),customElements.define("mjsz-vbr-players-national",we),customElements.define("mjsz-vbr-players-toi",ge)}const Qe={install:()=>fe()};return E.FieldPlayersLeader=H,E.FieldPlayersLeaderCE=ie,E.FieldPlayersPenalties=q,E.FieldPlayersPenaltiesCE=se,E.FieldPlayersToiCE=ge,E.GoaliesLeader=J,E.GoaliesLeaderCE=ce,E.PlayersNational=Q,E.PlayersNationalCE=we,E.Schedule=X,E.ScheduleCE=ne,E.Standings=Z,E.StandingsCE=le,E.TeamAttendance=ee,E.TeamAttendanceCE=de,E.TeamFairplay=re,E.TeamFairplayCE=me,E.TeamPenaltyKilling=oe,E.TeamPenaltyKillingCE=pe,E.TeamPowerplay=te,E.TeamPowerplayCE=he,E.TeamScoringEfficiency=ae,E.TeamScoringEfficiencyCE=ve,E.default=Qe,E.register=fe,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),E}({},Vue,MjszVbrElementsCore,MjszVbrElementsCore,MjszVbrElementsCore,MjszVbrElementsCore,MjszVbrElementsCore,MjszVbrElementsCore,MjszVbrElementsCore);
8
+ var MjszVbrElements=(function(e,t,n,r,i,a,o,s,c){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});function l(e,n){return(0,t.getCurrentScope)()?((0,t.onScopeDispose)(e,n),!0):!1}var u=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var d=Object.prototype.toString,f=e=>d.call(e)===`[object Object]`,p=()=>{};function m(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function h(e){return Array.isArray(e)?e:[e]}function g(e,n=!1){function r(r,{flush:i=`sync`,deep:a=!1,timeout:o,throwOnTimeout:s}={}){let c=null,l=[new Promise(o=>{c=(0,t.watch)(e,e=>{r(e)!==n&&(c?c():(0,t.nextTick)(()=>c?.()),o(e))},{flush:i,deep:a,immediate:!0})})];return o!=null&&l.push(m(o,s).then(()=>(0,t.toValue)(e)).finally(()=>c?.())),Promise.race(l)}function i(i,a){if(!(0,t.isRef)(i))return r(e=>e===i,a);let{flush:o=`sync`,deep:s=!1,timeout:c,throwOnTimeout:l}=a??{},u=null,d=[new Promise(r=>{u=(0,t.watch)([e,i],([e,i])=>{n!==(e===i)&&(u?u():(0,t.nextTick)(()=>u?.()),r(e))},{flush:o,deep:s,immediate:!0})})];return c!=null&&d.push(m(c,l).then(()=>(0,t.toValue)(e)).finally(()=>(u?.(),(0,t.toValue)(e)))),Promise.race(d)}function a(e){return r(e=>!!e,e)}function o(e){return i(null,e)}function s(e){return i(void 0,e)}function c(e){return r(Number.isNaN,e)}function l(e,n){return r(n=>{let r=Array.from(n);return r.includes(e)||r.includes((0,t.toValue)(e))},n)}function u(e){return d(1,e)}function d(e=1,t){let n=-1;return r(()=>(n+=1,n>=e),t)}return Array.isArray((0,t.toValue)(e))?{toMatch:r,toContains:l,changed:u,changedTimes:d,get not(){return g(e,!n)}}:{toMatch:r,toBe:i,toBeTruthy:a,toBeNull:o,toBeNaN:c,toBeUndefined:s,changed:u,changedTimes:d,get not(){return g(e,!n)}}}function _(e){return g(e)}function v(e,n,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,o=(0,t.shallowRef)(!1),s;function c(){s&&=(clearTimeout(s),void 0)}function d(){o.value=!1,c()}function f(...r){a&&e(),c(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=void 0,e(...r)},(0,t.toValue)(n))}return i&&(o.value=!0,u&&f()),l(d),{isPending:(0,t.shallowReadonly)(o),start:f,stop:d}}function y(e,n,r){return(0,t.watch)(e,n,{...r,immediate:!0})}var b=u?window:void 0,x=u?window.document:void 0;u&&window.navigator,u&&window.location;function S(e){let n=(0,t.toValue)(e);return n?.$el??n}function C(...e){let n=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=(0,t.computed)(()=>{let n=h((0,t.toValue)(e[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0});return y(()=>[r.value?.map(e=>S(e))??[b].filter(e=>e!=null),h((0,t.toValue)(r.value?e[1]:e[0])),h((0,t.unref)(r.value?e[2]:e[1])),(0,t.toValue)(r.value?e[3]:e[2])],([e,t,r,i],a,o)=>{if(!e?.length||!t?.length||!r?.length)return;let s=f(i)?{...i}:i,c=e.flatMap(e=>t.flatMap(t=>r.map(r=>n(e,t,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function w(e,n,r){let{immediate:i=!0,delay:a=0,onError:o=globalThis.reportError??p,onSuccess:s=p,resetOnExecute:c=!0,shallow:l=!0,throwError:u}=r??{},d=l?(0,t.shallowRef)(n):(0,t.ref)(n),f=(0,t.shallowRef)(!1),h=(0,t.shallowRef)(!1),g=(0,t.shallowRef)(void 0),v=0;async function y(r=0,...i){let a=v+=1;c&&(d.value=(0,t.toValue)(n)),g.value=void 0,f.value=!1,h.value=!0,r>0&&await m(r);let l=typeof e==`function`?e(...i):e;try{let e=await l;return a===v&&(d.value=e,f.value=!0),s(e),e}catch(e){if(a===v&&(g.value=e),o(e),u)throw e}finally{a===v&&(h.value=!1)}}i&&y(a);let b={state:d,isReady:f,isLoading:h,error:g,execute:y,executeImmediate:(...e)=>y(0,...e)};function x(){return new Promise((e,t)=>{_(h).toBe(!1).then(()=>e(b)).catch(t)})}return{...b,then(e,t){return x().then(e,t)}}}function T(e={}){let{document:n=x}=e;if(!n)return(0,t.shallowRef)(`visible`);let r=(0,t.shallowRef)(n.visibilityState);return C(n,`visibilitychange`,()=>{r.value=n.visibilityState},{passive:!0}),r}function ee(e,n,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,{start:o}=v(c,n,{immediate:i}),s=(0,t.shallowRef)(!1);async function c(){s.value&&(await e(),o())}function d(){s.value||(s.value=!0,a&&e(),o())}function f(){s.value=!1}return i&&u&&d(),l(f),{isActive:s,pause:f,resume:d}}var E=`@layer normalize,theme,components.variables,components,utils;:where(:host,:root){--mvw-color-white: #fff;--mvw-color-black: #000;--mvw-color-primary-0: #ffffff;--mvw-color-primary-50: #eceff1;--mvw-color-primary-100: #cfd8dc;--mvw-color-primary-200: #b0bec5;--mvw-color-primary-300: #90a4ae;--mvw-color-primary-400: #78909c;--mvw-color-primary-500: #607d8b;--mvw-color-primary-600: #546e7a;--mvw-color-primary-700: #455a64;--mvw-color-primary-800: #37474f;--mvw-color-primary-900: #263238;--mvw-color-primary-950: #182024}:where(:host,:root){--mvw-color-secondary-100: #dcedc8;--mvw-color-secondary-200: #badb94;--mvw-color-secondary-300: #aed581;--mvw-color-secondary-400: #9ccc65;--mvw-color-secondary-500: #8bc34a;--mvw-color-secondary-700: #689f38;--mvw-color-secondary-800: #558b2f;--mvw-color-secondary-900: #33691e;--mvw-color-secondary-950: #14290c}:where(:host){--radius-1: 2px;--radius-2: 5px;--radius-3: 16px;--radius-4: 32px;--radius-5: 64px;--radius-6: 96px}:where(:host){--font-size-50: .625rem;--font-size-100: .6875rem;--font-size-200: .75rem;--font-size-300: .8125rem;--font-size-400: .875rem;--font-size-500: 1rem;--font-size-600: 1.125rem;--font-size-700: 1.25rem;--font-size-800: 1.5rem;--font-size-900: 1.75rem;--font-size-950: 2rem;--font-lineheight-50: .95;--font-lineheight-100: 1;--font-lineheight-200: 1.1;--font-lineheight-300: 1.25;--font-lineheight-400: 1.375;--font-lineheight-500: 1.5;--font-lineheight-600: 1.75;--font-lineheight-700: 2}:where(:host){--size-1: 1px;--size-2: .125rem;--size-4: .25rem;--size-6: .375rem;--size-8: .5rem;--size-10: .625rem;--size-12: .75rem;--size-16: 1rem;--size-24: 1.5rem;--size-32: 2rem}:where(:host){--shadow-color: 220 3% 15%;--shadow-strength: 1%;--inner-shadow-highlight: inset 0 -.5px 0 0 #fff, inset 0 .5px 0 0 #0001;--shadow-3: 0 -1px 3px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)), 0 1px 2px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 2%)), 0 2px 5px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), 0 4px 12px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), 0 12px 15px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%));--shadow-6: 0 -1px 2px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)), 0 3px 2px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), 0 7px 5px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), 0 12px 10px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), 0 22px 18px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), 0 41px 33px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 6%)), 0 100px 80px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%))}@media(prefers-color-scheme:dark){:where(:host){--shadow-color: 220 40% 2%;--shadow-strength: 25%;--inner-shadow-highlight: inset 0 -.5px 0 0 #fff1, inset 0 .5px 0 0 #0007}}:where(:host){--ease-spring-1: linear( 0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1 )}@layer normalize{*,:before,:after{box-sizing:border-box}*{scrollbar-width:thin}:where(img,svg,video,canvas,audio,iframe,embed,object){display:block}:where(img,svg,video){block-size:auto;max-inline-size:100%}:where(img){opacity:0;transition:opacity .5s ease-out}:where(img).is-loaded{opacity:1}:where(svg:not([width])){inline-size:var(--size-16)}:where(input,button,textarea),:where(input[type=file])::-webkit-file-upload-button{color:inherit;font-size:inherit;font:inherit;letter-spacing:inherit}:where(a[href],area,button,[role=button],input,label[for],select,summary,textarea,[tabindex]:not([tabindex*="-"])){-webkit-tap-highlight-color:transparent;touch-action:manipulation}:where(:not(fieldset,progress,meter)){background-origin:border-box;background-repeat:no-repeat;border-style:solid;border-width:0}:where(button){appearance:button;-webkit-appearance:button;background-color:transparent;background-image:none}:where(dd,pre){margin:0}:where(ul,li){margin:0;padding:0}:where(ol,ul){list-style:none}}@layer theme{[data-theme=light],:host-context(.light){color-scheme:only light}[data-theme=dark],:host-context(.dark){color-scheme:only dark}:root,:host{font-family:var(--mvw-font, inherit);--mvw-color-live: #8bc34a;--mvw-color-error: #fb2c36;--mvw-color-warning: #ffc107;--mvw-color-info: #2870ed;--mvw-color-team: #ff6129;--mvw-link-color: light-dark(var(--mvw-color-secondary-700), var(--mvw-color-secondary-400));--mvw-text-pale: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700));--mvw-text-faded: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-600));--mvw-text-dimmed: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-500));--mvw-text-muted: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-text-toned: light-dark(var(--mvw-color-primary-600), var(--mvw-color-primary-300));--mvw-text-default: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-200));--mvw-text-highlighted: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-text-inverted: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-bg-default: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-bg-muted: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-bg-elevated: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-800));--mvw-bg-accented: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-700));--mvw-bg-highlighted: var(--mvw-color-secondary-500);--mvw-bg-inverted: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-border-faded: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-800));--mvw-border-muted: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-700));--mvw-border-highlighted: var(--mvw-color-secondary-500)}}@layer components{:where(a[href]){--_lighten: oklch(from var(--mvw-link-color) calc(l*1.15) c h);--_darken: oklch(from var(--mvw-link-color) calc(l*.85) c h);color:var(--mvw-link-color);text-decoration:none}:where(a[href]):hover{color:light-dark(var(--_darken),var(--_lighten))}:where(a[target=_blank]){position:relative}:where(a[target=_blank]):hover:after{transition:all 1s cubic-bezier(.075,.82,.165,1);content:"";display:inline-block;margin-inline-start:var(--size-2);background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3C!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3C!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;inline-size:.8em;block-size:.8em}}@layer components{:where(.loading-indicator){padding:var(--size-16);font-weight:600;color:var(--mvw-loading-indicator-text-color, var(--mvw-text-toned));text-align:center}}@layer utils{.font-bold{font-weight:700}.italic{font-style:italic}.uppercase{text-transform:uppercase}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-start{text-align:start}.text-end{text-align:end}.text-center{text-align:center}.text-xs{font-size:var(--font-size-200)}.text-sm{font-size:var(--font-size-400)}.text-xl{font-size:var(--font-size-700)}.text-faded{color:var(--mvw-text-faded)}.text-dimmed{color:var(--mvw-text-dimmed)}.text-muted{color:var(--mvw-text-muted)}.text-toned{color:var(--mvw-text-toned)}.text-default{color:var(--mvw-text-default)}.text-highlighted{color:var(--mvw-text-highlighted)}.w-auto{width:auto}.mx-sm{margin-inline:var(--size-8)}.mb-sm{margin-block-end:var(--size-8)}.mb-md{margin-block-end:var(--size-16)}.mb-xl{margin-block-end:calc(var(--size-16) * 2)}.mt-md{margin-block-start:var(--size-16)}.mt-lg{margin-block-start:var(--size-24)}.mt-xl{margin-block-start:calc(var(--size-16) * 2)}.p-sm{padding-block:var(--size-8)}.py-md{padding-block:var(--size-16)}.flex{display:flex}.grid{display:grid}.block{display:block}.rounded{border-radius:1e5px}.sticky{position:sticky;top:var(--mvw-sticky-top-offset, 0);z-index:10}.blured-bg{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.justify-center{justify-items:center}.grid-container{--min-width: 230px;--max-width: 1fr;--gap: var(--size-16);--align-items: center;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(var(--min-width),100%),var(--max-width)));align-items:var(--align-items);gap:var(--gap)}.flex-container{display:flex;flex-wrap:wrap;gap:var(--size-16)}.responsive-team-name{container-type:inline-size;container-name:team-name}.responsive-team-name>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.responsive-team-name>* .team-name-short{display:none}@container team-name (max-width: 200px){.responsive-team-name>* .team-name-long{display:none}.responsive-team-name>* .team-name-short{display:inline-block}}}`,D=`@layer components.variables{:where(:host){--mvw-tooltip-font-size: var(--font-size-200);--mvw-tooltip-color: light-dark(white, black);--mvw-tooltip-bg-color: light-dark(black, white);--mvw-floating-content-bg-color: light-dark(white, var(--mvw-color-primary-800))}}@layer components{:where(.floating-content).is-tooltip{background-color:var(--mvw-tooltip-bg-color);color:var(--mvw-tooltip-color);font-weight:700;padding:var(--size-4) var(--size-8);border-radius:var(--radius-2);font-size:var(--mvw-tooltip-font-size);white-space:nowrap;pointer-events:none}:where(.floating-content).is-tooltip .is-arrow{background-color:var(--mvw-tooltip-bg-color)}:where(.floating-content).is-content{background-color:var(--mvw-floating-content-bg-color);border-radius:var(--radius-2);box-shadow:var(--shadow-6)}:where(.floating-content).is-content .is-arrow{background-color:var(--mvw-floating-content-bg-color)}:where(.floating-content) .is-arrow{width:8px;height:8px;transform:rotate(45deg)}[data-placement^=top] :is(:where(.floating-content) .is-arrow){bottom:-4px;clip-path:polygon(80% 0,100% 0,100% 100%,0 100%,0 80%)}[data-placement^=bottom] :is(:where(.floating-content) .is-arrow){top:-4px;clip-path:polygon(100% 0,0 0,0 100%)}[data-placement^=left] :is(:where(.floating-content) .is-arrow){right:-4px;clip-path:polygon(100% 0,0 0,100% 100%)}[data-placement^=right] :is(:where(.floating-content) .is-arrow){left:-4px;clip-path:polygon(100% 0,0 0,0 100%)}.transition-fade-enter-active,.transition-fade-leave-active{transition:all .7s var(--ease-spring-1)}.transition-fade-enter-from,.transition-fade-leave-to{opacity:0;transform:translateY(5px)}}`,O=`@layer components.variables{:where(:host){--mvw-paginator-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-paginator-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-paginator-hover-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-paginator-hover-bg-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-paginator-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700));--mvw-paginator-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-black));--mvw-paginator-active-bg-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-paginator-disabled-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-600))}}@layer components{:where(.paginator){display:flex;flex-direction:row;list-style-type:none;margin:10px 0;padding:0}:where(.paginator) button,:where(.paginator) div{display:flex;align-items:center;justify-content:center;padding:var(--size-6) var(--size-12);text-decoration:none;cursor:pointer;color:var(--mvw-paginator-color);border:1px solid var(--mvw-paginator-border-color);background-color:var(--mvw-paginator-bg-color);margin-left:-1px}:is(:where(.paginator) button,:where(.paginator) div) .icon{width:var(--size-16);height:var(--size-16);margin:0 -4px;max-inline-size:var(--size-16)}:is(:where(.paginator) button,:where(.paginator) div):hover:not(:is(:where(.paginator) button,:where(.paginator) div).is-disabled,:is(:where(.paginator) button,:where(.paginator) div).is-active){color:var(--mvw-paginator-hover-color);background-color:var(--mvw-paginator-hover-bg-color)}:is(:where(.paginator) button,:where(.paginator) div):disabled,:is(:where(.paginator) button,:where(.paginator) div).is-disabled{color:var(--mvw-paginator-disabled-color);background-color:var(--mvw-paginator-bg-color);pointer-events:none;cursor:default}:is(:where(.paginator) button,:where(.paginator) div).is-active{color:var(--mvw-paginator-active-color);background-color:var(--mvw-paginator-active-bg-color);border-color:var(--mvw-paginator-active-bg-color);cursor:default}}`,k=`@layer components{:where(.table-responsive){container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}:where(.table-responsive) :where(table){width:100%}}`,A=`@layer components.variables{:where(:host){--mvw-table-header-font-size: var(--font-size-200);--mvw-table-default-column-width: 40px;--mvw-table-default-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-neutral-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-table-header-bg-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-header-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-800));--mvw-table-header-hover-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-hover-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-white));--mvw-table-hover-bg-color: light-dark(var(--mvw-color-secondary-100), var(--mvw-color-primary-950));--mvw-table-active-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-bg-color: light-dark(var(--mvw-color-secondary-200), var(--mvw-color-secondary-800));--mvw-table-active-even-bg-color: light-dark(var(--mvw-color-secondary-300), var(--mvw-color-secondary-700));--mvw-table-active-hover-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-hover-bg-color: light-dark(var(--mvw-color-secondary-400), var(--mvw-color-secondary-500));--mvw-table-portrait-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-table-portrait-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-stripped-bg-color: light-dark( hsl(from var(--mvw-color-primary-50) h s calc(l + 3) ), hsl(from var(--mvw-color-primary-900) h s calc(l + 2) ) );--mvw-table-label-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-table-label-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-cell-logo-size: 20px;--mvw-table-cell-portrait-size: 26px;--mvw-table-caption-color: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-600));--mvw-table-caption-font-size: var(--font-size-200)}}@layer components{:where(.table){border-collapse:collapse;max-inline-size:100%;position:relative;color:var(--mvw-table-color);background-color:var(--mvw-table-default-bg-color)}:where(.table) tr{background-color:var(--surface-default);border-top:1px solid var(--border-color)}:where(.table) tr:hover{background-color:oklch(from var(--surface-filled) l c h / 75%)}:where(.table) tr:nth-child(2n){background:var(--mvw-table-stripped-bg-color)}:where(.table) tr:nth-child(2n) td.is-active{background-color:var(--mvw-table-active-even-bg-color)}:where(.table) tr.is-highlighted{color:var(--mvw-color-error)}:where(.table) tr.is-optional{opacity:.5}:where(.table) :is(th,td){padding:var(--size-8);white-space:nowrap;text-align:center}:where(.table) th{background:var(--mvw-table-header-bg-color);color:var(--mvw-table-header-color);font-size:var(--mvw-table-header-font-size);font-weight:700;text-align:center;width:var(--mvw-table-default-column-width)}:where(.table) th:focus-visible,:where(.table) th:hover{background-color:var(--mvw-table-header-hover-bg-color);outline:none}:where(.table) th.is-sortable{position:relative;cursor:pointer}:where(.table) th.is-sortable .is-icon-sort{opacity:.5}:where(.table) th.is-active{background-color:var(--mvw-table-header-active-bg-color);color:var(--mvw-table-header-active-color)}:where(.table) th.is-active .is-icon-sort{opacity:1}:where(.table) th.is-has-image,:where(.table) th.has-avatar{width:0}:where(.table) th .is-icon-sort{display:inline-block;width:var(--size-12);height:var(--size-12);margin-inline-start:var(--size-4)}:where(.table) td.is-active{font-weight:700;color:var(--mvw-table-active-color);background:var(--mvw-table-active-bg-color)}:where(.table) td.has-avatar .avatar{--_width: var(--mvw-table-cell-portrait-size)}:where(.table) td[data-value="0"],:where(.table) td.is-zero{color:var(--mvw-text-faded)}:where(.table) td.is-possible-empty:empty:before{content:"0";color:var(--mvw-text-faded)}:where(.table) td.is-horizontal-content{display:inline-flex;align-items:center}:where(.table) td a[target=_blank]:after{content:"";position:absolute;left:100%;top:calc(50% - .4em)}:where(.table) td .is-logo-image{display:inline-block;vertical-align:middle;width:var(--mvw-table-cell-logo-size);height:var(--mvw-table-cell-logo-size);max-inline-size:fit-content}:where(.table) td .is-duplicated{color:var(--mvw-table-neutral-color)}:where(.table) td .is-team-name-long{display:inline-block}:where(.table) td .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){:where(.table) td .is-team-name-long{display:none}:where(.table) td .is-team-name-short{display:inline-block}}:where(.table) caption{caption-side:bottom;color:var(--mvw-table-caption-color);font-size:var(--mvw-table-caption-font-size, .75rem);padding:var(--size-12) 0;text-align:start}:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover{color:var(--mvw-table-hover-color);background-color:var(--mvw-table-hover-bg-color)}:is(:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover) td.is-active{color:var(--mvw-table-active-hover-color);background-color:var(--mvw-table-active-hover-bg-color)}}`,j=`@layer components.variables{:where(:host){--mvw-avatar-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700))}}@layer components{:where(.avatar){--_width: 20px;display:inline-flex;vertical-align:middle;aspect-ratio:1;inline-size:var(--_width);justify-content:center;overflow:clip;position:relative;border-radius:100%;border:1px solid var(--mvw-avatar-border-color)}:where(.avatar) img{block-size:100%;inline-size:100%;inset:0;object-fit:cover;position:absolute}}`,M=`@layer components.variables{:where(:host){--mvw-color-error-notice-bg-color: color-mix(in oklab, var(--mvw-color-error) 10%, transparent);--mvw-color-error-notice-border-color: color-mix(in oklab, var(--mvw-color-error) 25%, transparent);--mvw-color-error-notice-color: var(--mvw-color-error)}}@layer components{:where(.error-notice){display:flex;align-items:center;justify-items:flex-start;gap:15px;margin:10px 0;padding:10px 20px;background-color:var(--mvw-color-error-notice-bg-color);color:var(--mvw-color-error-notice-color);border:1px solid var(--mvw-color-error-notice-border-color);border-radius:var(--radius-2)}:where(.error-notice) button{text-decoration:underline}}`,N=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},P=N({__name:`FieldPlayersLeader.ce`,props:{...o.baseProps,...o.playerStatsProps,...o.teamStatsProps},setup(e){let o=e,c=(0,t.ref)(null),l=n.COLUMNS_FIELD_PLAYERS,u=(0,t.computed)(()=>o.locale),{onError:d,error:f,hasError:p}=(0,i.useErrorProvider)(),{state:m,isLoading:h}=w(()=>(0,i.fetchVBRData)(`/v2/players-stats`,o.apiKey,{championshipId:Number(o.championshipId),...o.division&&{division:o.division},...o.phaseId&&{phaseId:o.phaseId}}),[],{onError:e=>d(e)}),{page:g,change:_}=(0,i.usePage)(),{sort:v,change:y}=(0,i.useSort)({sortTarget:`points`,orders:[{target:`points`,direction:a.SORT_STATE_DESCEND}]}),b=(0,t.computed)(()=>(0,s.rawConvert)((0,t.unref)(m),s.playerName,s.teamName)),x=(0,t.computed)(()=>(0,s.convert)((0,t.unref)(b)).filter(o.teamFilterByName,[`teamName`]).sorted(v).addIndex(v.sortTarget).pagination((0,t.unref)(g),o.limit).value()),S=(0,t.computed)(()=>x.value?.totalItems);function C(e){return(0,s.externalTeamLinkResolver)(o.externalTeamResolver,{...e,championshipId:o.championshipId})}function T(e){return(0,s.externalPlayerLinkResolver)(o.externalPlayerResolver,{...e,championshipId:o.championshipId})}return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:u.value},{default:(0,t.withCtx)(()=>[(0,t.unref)(p)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(f)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.StatisticsTable),{columns:(0,t.unref)(l),rows:x.value.rows,"is-loading":(0,t.unref)(h),"hide-columns":o.hideColumns,sort:(0,t.unref)(v),"external-team-resolver":C,"external-player-resolver":T,"is-team-linked":e.isTeamLinked,"is-player-linked":e.isPlayerLinked,"append-to":c.value,onSort:(0,t.unref)(y)},null,8,[`columns`,`rows`,`is-loading`,`hide-columns`,`sort`,`is-team-linked`,`is-player-linked`,`append-to`,`onSort`]),(0,t.createVNode)((0,t.unref)(r.Paginator),{page:(0,t.unref)(g),"items-per-page":o.limit,"total-items":S.value,"range-length":5,onChange:(0,t.unref)(_)},null,8,[`page`,`items-per-page`,`total-items`,`onChange`]),(0,t.createElementVNode)(`div`,{ref_key:`tooltipContainer`,ref:c},null,512)]),_:1},8,[`locale`])]))}},[[`styles`,[E,D,O,k,A,j,M]]]),te=N({__name:`FieldPlayersPenalties.ce`,props:{...o.baseProps,...o.playerStatsProps,...o.teamStatsProps},setup(e){let o=e,c=n.COLUMNS_FIELD_PLAYERS_PENALTY,l=(0,t.ref)(null),u=(0,t.computed)(()=>o.locale),{onError:d,error:f,hasError:p}=(0,i.useErrorProvider)(),{state:m,isLoading:h}=w(()=>(0,i.fetchVBRData)(`/v2/players-penalty`,o.apiKey,{championshipId:Number(o.championshipId),...o.division&&{division:o.division},...o.phaseId&&{phaseId:o.phaseId}}),[],{onError:e=>d(e)}),{page:g,change:_}=(0,i.usePage)(),{sort:v,change:y}=(0,i.useSort)({sortTarget:`pim`,orders:[{target:`pim`,direction:a.SORT_STATE_DESCEND}]}),b=(0,t.computed)(()=>(0,s.rawConvert)((0,t.unref)(m),s.playerName,s.teamName)),x=(0,t.computed)(()=>(0,s.convert)((0,t.unref)(b)).filter(o.teamFilterByName,[[`team`,`longName`]],!0).sorted(v).addIndex(v.sortTarget).pagination((0,t.unref)(g),o.limit).value()),S=(0,t.computed)(()=>x.value?.totalItems);function C(e){return(0,s.externalTeamLinkResolver)(o.externalTeamResolver,{...e,championshipId:o.championshipId})}function T(e){return(0,s.externalPlayerLinkResolver)(o.externalPlayerResolver,{...e,championshipId:o.championshipId})}return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:u.value},{default:(0,t.withCtx)(()=>[(0,t.unref)(p)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(f)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.StatisticsTable),{columns:(0,t.unref)(c),rows:x.value.rows,"is-loading":(0,t.unref)(h),"hide-columns":o.hideColumns,sort:(0,t.unref)(v),"external-team-resolver":C,"external-player-resolver":T,"is-team-linked":e.isTeamLinked,"is-player-linked":e.isPlayerLinked,"append-to":l.value,onSort:(0,t.unref)(y)},null,8,[`columns`,`rows`,`is-loading`,`hide-columns`,`sort`,`is-team-linked`,`is-player-linked`,`append-to`,`onSort`]),(0,t.createVNode)((0,t.unref)(r.Paginator),{page:(0,t.unref)(g),"items-per-page":o.limit,"total-items":S.value,"range-length":5,onChange:(0,t.unref)(_)},null,8,[`page`,`items-per-page`,`total-items`,`onChange`]),(0,t.createElementVNode)(`div`,{ref_key:`tooltipContainer`,ref:l},null,512)]),_:1},8,[`locale`])]))}},[[`styles`,[E,D,O,k,A,j,M]]]),ne=N({__name:`FieldPlayersToi.ce`,props:{...o.baseProps,...o.playerStatsProps,...o.teamStatsProps},setup(e){let o=e,c=n.COLUMNS_FIELD_PLAYERS_TOI,l=(0,t.ref)(null),u=(0,t.computed)(()=>o.locale),{onError:d,error:f,hasError:p}=(0,i.useErrorProvider)(),{state:m,isLoading:h}=w(()=>(0,i.fetchVBRData)(`/v2/players-toi`,o.apiKey,{championshipId:Number(o.championshipId),...o.division&&{division:o.division},...o.phaseId&&{phaseId:o.phaseId}}),[],{onError:e=>d(e)}),{page:g,change:_}=(0,i.usePage)(),{sort:v,change:y}=(0,i.useSort)({sortTarget:`toi`,orders:[{target:`toi`,direction:a.SORT_STATE_DESCEND}]}),b=(0,t.computed)(()=>(0,s.rawConvert)((0,t.unref)(m),s.playerName,s.teamName,(0,s.convertTimesSecToMin)([`toi`,`atoi`,`eqToi`,`pp1Toi`,`pp2Toi`,`sh1Toi`,`sh2Toi`,`eqAToi`,`pp1AToi`,`pp2AToi`,`sh1AToi`,`sh2AToi`]))),x=(0,t.computed)(()=>(0,s.convert)((0,t.unref)(b)).filter(o.teamFilterByName,[`teamName`]).sorted(v).addIndex(v.sortTarget).pagination((0,t.unref)(g),o.limit).value()),S=(0,t.computed)(()=>x.value?.totalItems);function C(e){return(0,s.externalTeamLinkResolver)(o.externalTeamResolver,{...e,championshipId:o.championshipId})}function T(e){return(0,s.externalPlayerLinkResolver)(o.externalPlayerResolver,{...e,championshipId:o.championshipId})}return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:u.value},{default:(0,t.withCtx)(()=>[(0,t.unref)(p)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(f)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.StatisticsTable),{columns:(0,t.unref)(c),rows:x.value.rows,"is-loading":(0,t.unref)(h),"hide-columns":o.hideColumns,sort:(0,t.unref)(v),"external-team-resolver":C,"external-player-resolver":T,"is-team-linked":e.isTeamLinked,"is-player-linked":e.isPlayerLinked,"append-to":l.value,onSort:(0,t.unref)(y)},null,8,[`columns`,`rows`,`is-loading`,`hide-columns`,`sort`,`is-team-linked`,`is-player-linked`,`append-to`,`onSort`]),(0,t.createVNode)((0,t.unref)(r.Paginator),{page:(0,t.unref)(g),"items-per-page":o.limit,"total-items":S.value,"range-length":5,onChange:(0,t.unref)(_)},null,8,[`page`,`items-per-page`,`total-items`,`onChange`]),(0,t.createElementVNode)(`div`,{ref_key:`tooltipContainer`,ref:l},null,512)]),_:1},8,[`locale`])]))}},[[`styles`,[E,D,O,k,A,j,M]]]),F=N({__name:`GoaliesLeader.ce`,props:{...c.baseProps,...c.playerStatsProps,...c.teamStatsProps,aboveLimit:{type:Boolean,default:!1},underLimit:{type:Boolean,default:!1}},setup(e){let n=e,a=(0,t.ref)(null),{onError:o,error:l,hasError:u}=(0,i.useErrorProvider)(),d=c.COLUMNS_GOALIES,f=(0,t.computed)(()=>n.locale),{state:p,isLoading:m}=w(()=>(0,i.fetchVBRData)(`/v2/players-goalie`,n.apiKey,{championshipId:Number(n.championshipId),...n.division&&{division:n.division},...n.phaseId&&{phaseId:n.phaseId},...n.aboveLimit&&{more:!0},...n.underLimit&&{less:!0}}),[],{onError:e=>o(e)}),{page:h,change:g}=(0,i.usePage)(),{sort:_,change:v}=(0,i.useSort)({sortTarget:`svsPercent`,orders:[{target:`svsPercent`,direction:c.SORT_STATE_DESCEND}]}),y=(0,t.computed)(()=>(0,s.rawConvert)((0,t.unref)(p),s.playerName,(0,s.convertTimesMinToMinSec)([`mip`]))),b=(0,t.computed)(()=>(0,s.convert)((0,t.unref)(y)).filter(n.teamFilterByName,[[`team`,`longName`]],!0).sorted(_).addIndex(_.sortTarget).pagination((0,t.unref)(h),n.limit).value()),x=(0,t.computed)(()=>b.value?.totalItems);function S(e){return(0,s.externalTeamLinkResolver)(n.externalTeamResolver,{...e,championshipId:n.championshipId})}function C(e){return(0,s.externalPlayerLinkResolver)(n.externalPlayerResolver,{...e,championshipId:n.championshipId})}return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:f.value},{default:(0,t.withCtx)(()=>[(0,t.unref)(u)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(l)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.StatisticsTable),{columns:(0,t.unref)(d),rows:b.value.rows,"is-loading":(0,t.unref)(m),"hide-columns":n.hideColumns,sort:(0,t.unref)(_),"external-team-resolver":S,"external-player-resolver":C,"is-team-linked":e.isTeamLinked,"is-player-linked":e.isPlayerLinked,"append-to":a.value,onSort:(0,t.unref)(v)},null,8,[`columns`,`rows`,`is-loading`,`hide-columns`,`sort`,`is-team-linked`,`is-player-linked`,`append-to`,`onSort`]),(0,t.createVNode)((0,t.unref)(r.Paginator),{page:(0,t.unref)(h),"items-per-page":n.limit,"total-items":x.value,"range-length":5,onChange:(0,t.unref)(g)},null,8,[`page`,`items-per-page`,`total-items`,`onChange`]),(0,t.createElementVNode)(`div`,{ref_key:`tooltipContainer`,ref:a},null,512)]),_:1},8,[`locale`])]))}},[[`styles`,[E,D,O,k,A,j,M]]]),I=N({__name:`PlayersNational.ce`,props:{apiKey:{type:String,default:``},locale:{type:String,default:`hu`},gender:{type:String,default:`male`},limit:{type:Number,default:50}},setup(e){let a=e,o=(0,t.ref)(null),l=n.COLUMNS_PLAYERS_NATIONAL,u=(0,t.computed)(()=>a.locale),{onError:d,error:f,hasError:p}=(0,i.useErrorProvider)(),{state:m,isLoading:h}=w(()=>(0,i.fetchVBRData)(`/v2/players-stats-national`,a.apiKey,{gender:a.gender}),[],{onError:e=>d(e)}),{page:g,change:_}=(0,i.usePage)(),{sort:v,change:y}=(0,i.useSort)({sortTarget:`gp`,orders:[{target:`gp`,direction:c.SORT_STATE_DESCEND}]}),b=(0,t.computed)(()=>(0,s.rawConvert)((0,t.unref)(m),s.playerName)),x=(0,t.computed)(()=>(0,s.convert)(b.value).sorted(v).addIndex(v.sortTarget).pagination((0,t.unref)(g),a.limit).value()),S=(0,t.computed)(()=>x.value?.totalItems);function C(e){return(0,s.externalTeamLinkResolver)(a.externalTeamResolver,{...e,championshipId:a.championshipId})}function T(e){return(0,s.externalPlayerLinkResolver)(a.externalPlayerResolver,{...e,championshipId:a.championshipId})}return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:u.value},{default:(0,t.withCtx)(()=>[(0,t.unref)(p)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(f)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.StatisticsTable),{columns:(0,t.unref)(l),rows:x.value.rows,"is-loading":(0,t.unref)(h),"hide-columns":a.hideColumns,sort:(0,t.unref)(v),"external-team-resolver":C,"external-player-resolver":T,"append-to":o.value,onSort:(0,t.unref)(y)},null,8,[`columns`,`rows`,`is-loading`,`hide-columns`,`sort`,`append-to`,`onSort`]),(0,t.createVNode)((0,t.unref)(r.Paginator),{page:(0,t.unref)(g),"items-per-page":a.limit,"total-items":S.value,"range-length":5,onChange:(0,t.unref)(_)},null,8,[`page`,`items-per-page`,`total-items`,`onChange`]),(0,t.createElementVNode)(`div`,{ref_key:`tooltipContainer`,ref:o},null,512)]),_:1},8,[`locale`])]))}},[[`styles`,[E,D,O,k,A,j,M]]]),re=`@layer components.variables{:where(:host){--mvw-timezone-selector-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-500));--mvw-timezone-selector-font-size: var(--font-size-300)}}@layer components{:where(.timezone-selector){padding:3px 0;color:var(--mvw-timezone-selector-color);font-size:var(--mvw-timezone-selector-font-size);font-weight:500}:where(.timezone-selector) button+button{margin-inline-start:var(--size-4)}}`,ie=`@layer components{:where(button){--_lighten: oklch(from var(--mvw-link-color) calc(l*1.15) c h);--_darken: oklch(from var(--mvw-link-color) calc(l*.85) c h)}:where(button)[data-variant=link]{padding:0;color:var(--mvw-link-color);cursor:pointer}:where(button)[data-variant=link]:hover{color:light-dark(var(--_darken),var(--_lighten))}:where(button)[data-variant=link].is-active{font-weight:700;color:light-dark(var(--_darken),var(--_lighten))}}`,ae=`@layer components{:where(.icon-button){--_hover-bg-color: color-mix(in oklab, light-dark(var(--mvw-color-black), var(--mvw-color-white)) 10%, transparent);align-items:center;aspect-ratio:1;background-color:transparent;border:0;border-radius:var(--radius-2);display:inline-flex;inline-size:var(--size-24);justify-content:center;padding:0}:where(.icon-button) svg{max-inline-size:var(--size-16);pointer-events:none}:where(.icon-button)[data-state=open],:where(.icon-button):hover{background-color:var(--_hover-bg-color)}:where(.icon-button).xs{border-radius:var(--radius-1)}}`,oe=`@layer components.variables{:where(:host){--mvw-list-item-font-size: var(--font-size-400);--mvw-list-item-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-200));--mvw-list-item-hover-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-50));--mvw-list-item-hover-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-list-item-selected-color: light-dark(var(--mvw-color-secondary-700), var(--mvw-color-secondary-300))}}@layer components{:where(.list){list-style:none;margin:0;padding:var(--size-4)}@media(pointer:coarse){:where(.list),:where(.list) *{-webkit-user-select:none;user-select:none}}:where(.list) :where(li,option,[role=group]>label){align-items:center;display:flex;gap:var(--size-4);isolation:isolate;min-block-size:40px;position:relative}:where(.list) :where(li,option,[role=group]>label):before{display:none}:where(.list) :where(li,option,[role=group]>label) *{font-size:inherit}:where(.list) :where(li,option,[role=group]>label):has(>a,>button,>label){background:transparent;display:block;min-block-size:auto;padding:0}:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label{align-items:center;color:var(--mvw-list-item-color);cursor:pointer;display:flex;gap:var(--size-8);inline-size:100%;margin:0;outline-offset:-1px;font-size:var(--mvw-list-item-font-size);padding:var(--size-4) var(--size-6);text-align:start;text-decoration:none;border-radius:var(--radius-2);z-index:0}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label):focus,:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label):focus-visible,:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label):hover{color:var(--mvw-list-item-hover-color);background-color:var(--mvw-list-item-hover-bg-color)}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label)[aria-selected=true]{color:var(--mvw-list-item-selected-color)}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .text{flex:1;line-height:1.6}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .text :where(h1,h2,h3,h4,h5,h6,p,span){color:inherit;font-weight:400}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .text p+p{font-size:var(--font-size-100)}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .start{align-self:center;align-items:center;display:grid;z-index:1}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .start svg{inline-size:var(--mvw-list-item-font-size)}:where(.unordered-list){display:grid;align-items:center}:where(.unordered-list) li{display:flex;align-items:center;gap:var(--size-4);color:var(--mvw-text-default);padding:var(--size-6) var(--size-4)}:where(.unordered-list) li:not(:first-child){border-top:1px solid var(--mvw-border-muted)}:where(.unordered-list).centered li{justify-content:center}@media(width>500px){:where(.unordered-list){display:flex}:where(.unordered-list) li:not(:first-child){border-top:none}:where(.unordered-list) li:not(:first-of-type):before{content:"/";margin-inline-end:var(--size-6);color:var(--mvw-border-muted)}}}`,se=`@layer components{:where(.badge){--_bg-color: var(--mvw-bg-muted);--_color: var(--mvw-text-muted);padding:var(--size-2) var(--size-4);display:inline-flex;gap:var(--size-2);font-size:var(--font-size-100);font-weight:700;line-height:var(--font-lineheight-300);color:var(--_color);background-color:var(--_bg-color);border-radius:var(--radius-2)}:where(.badge) svg{fill:currentColor}:where(.badge).inverted{--_bg-color: var(--mvw-bg-inverted);--_color: var(--mvw-text-inverted)}:where(.badge).live{--_bg-color: var(--mvw-color-live);--_color: var(--mvw-color-white)}:where(.badge).error{--_bg-color: var(--mvw-color-error);--_color: var(--mvw-color-white)}:where(.badge).warning{--_bg-color: var(--mvw-color-warning);--_color: var(--mvw-color-white)}:where(.badge).xs{font-size:var(--font-size-50)}:where(.badge).lg{font-size:var(--font-size-300);padding:var(--size-4) var(--size-6)}:where(.badge)+:where(.badge){margin-inline-start:var(--size-4)}}`,ce=`@layer components.variables{:where(:host){--mvw-color-error-notice-bg-color: color-mix(in oklab, var(--mvw-color-error) 10%, transparent);--mvw-color-error-notice-border-color: color-mix(in oklab, var(--mvw-color-error) 25%, transparent);--mvw-color-error-notice-color: var(--mvw-color-error)}}@layer components{:where(.error-notice){display:flex;align-items:center;justify-items:flex-start;gap:15px;margin:10px 0;padding:10px 20px;background-color:var(--mvw-color-error-notice-bg-color);color:var(--mvw-color-error-notice-color);border:1px solid var(--mvw-color-error-notice-border-color);border-radius:var(--radius-2)}:where(.error-notice) button{text-decoration:underline}}`,L=N({__name:`Schedule.ce`,props:{...c.baseProps,...(0,s.pick)([`limit`],c.playerStatsProps),...c.teamStatsProps,...c.gameProps,initialPage:{type:Number,default:1,validator:e=>e>=1},autoInitialPage:{type:Boolean,default:!1},timezoneSelector:{type:Boolean,default:!1},autoRefresh:{type:Boolean,default:!1}},setup(e){let n=e,{onError:a,error:o,hasError:l}=(0,i.useErrorProvider)(),u=(0,t.computed)(()=>n.locale),{state:d,isLoading:f,execute:p}=w(()=>(0,i.fetchVBRData)(`/v2/games-list`,n.apiKey,{championshipId:n.championshipId,...n.division&&{division:n.division},...n.phaseId&&{phaseId:n.phaseId}}),[],{resetOnExecute:!1,immediate:!n.autoRefresh,onError:e=>{a(e),h?.()}}),m=(0,t.computed)(()=>(0,s.sortGames)(d.value)),{pause:h,resume:g}=ee(p,c.REFRESH_DELAY,{immediate:!1}),{page:_,change:v}=(0,i.usePage)({initial:(0,t.computed)(()=>n.initialPage),items:m,limit:n.limit,auto:n.autoInitialPage}),y=(0,t.ref)((0,s.getLocalTimezone)()),b=(0,t.computed)(()=>(0,s.offsetName)(new Date,(0,t.unref)(y),n.locale)),x=(0,t.computed)(()=>(0,s.convert)((0,t.unref)(m)).filter(n.teamFilterByName,[`homeTeamName`,`awayTeamName`]).schedule((0,t.unref)(y),(0,t.unref)(u)).pagination((0,t.unref)(_),n.limit).value());n.autoRefresh&&(g(),(0,t.watch)(T(),e=>{if(e===`visible`)return g();h()}));let S=(0,t.computed)(()=>x.value?.totalItems);function C(e){y.value=e}let E=e=>(0,s.externalGameLinkResolver)(n.externalGameResolver,{gameId:e}),D=(0,t.computed)(()=>n.isGameTargetExternal?`_blank`:`_self`);return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:n.locale},{default:(0,t.withCtx)(()=>[(0,t.unref)(l)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(o)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),n.timezoneSelector?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.TimezoneSelector),{key:n.locale,locale:n.locale,"current-zone":y.value,onChange:C},null,8,[`locale`,`current-zone`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.ScheduleTable),{rows:x.value.rows,"is-loading":(0,t.unref)(f),"offset-name":b.value,"hide-columns":n.hideColumns,"external-game-resolver-target":D.value,"external-game-resolver":E},null,8,[`rows`,`is-loading`,`offset-name`,`hide-columns`,`external-game-resolver-target`]),n.limit>0?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Paginator),{key:2,page:(0,t.unref)(_),"items-per-page":n.limit,"total-items":S.value,"range-length":5,onChange:(0,t.unref)(v)},null,8,[`page`,`items-per-page`,`total-items`,`onChange`])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`locale`])]))}},[[`styles`,[E,D,O,k,A,re,ie,ae,oe,se,ce]]]),le=`@layer components{:where(.table-responsive){container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}:where(.table-responsive) :where(table){width:100%}}`,ue=`@layer components.variables{:where(:host){--mvw-table-header-font-size: var(--font-size-200);--mvw-table-default-column-width: 40px;--mvw-table-default-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-neutral-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-table-header-bg-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-header-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-800));--mvw-table-header-hover-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-hover-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-white));--mvw-table-hover-bg-color: light-dark(var(--mvw-color-secondary-100), var(--mvw-color-primary-950));--mvw-table-active-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-bg-color: light-dark(var(--mvw-color-secondary-200), var(--mvw-color-secondary-800));--mvw-table-active-even-bg-color: light-dark(var(--mvw-color-secondary-300), var(--mvw-color-secondary-700));--mvw-table-active-hover-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-hover-bg-color: light-dark(var(--mvw-color-secondary-400), var(--mvw-color-secondary-500));--mvw-table-portrait-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-table-portrait-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-stripped-bg-color: light-dark( hsl(from var(--mvw-color-primary-50) h s calc(l + 3) ), hsl(from var(--mvw-color-primary-900) h s calc(l + 2) ) );--mvw-table-label-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-table-label-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-cell-logo-size: 20px;--mvw-table-cell-portrait-size: 26px;--mvw-table-caption-color: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-600));--mvw-table-caption-font-size: var(--font-size-200)}}@layer components{:where(.table){border-collapse:collapse;max-inline-size:100%;position:relative;color:var(--mvw-table-color);background-color:var(--mvw-table-default-bg-color)}:where(.table) tr{background-color:var(--surface-default);border-top:1px solid var(--border-color)}:where(.table) tr:hover{background-color:oklch(from var(--surface-filled) l c h / 75%)}:where(.table) tr:nth-child(2n){background:var(--mvw-table-stripped-bg-color)}:where(.table) tr:nth-child(2n) td.is-active{background-color:var(--mvw-table-active-even-bg-color)}:where(.table) tr.is-highlighted{color:var(--mvw-color-error)}:where(.table) tr.is-optional{opacity:.5}:where(.table) :is(th,td){padding:var(--size-8);white-space:nowrap;text-align:center}:where(.table) th{background:var(--mvw-table-header-bg-color);color:var(--mvw-table-header-color);font-size:var(--mvw-table-header-font-size);font-weight:700;text-align:center;width:var(--mvw-table-default-column-width)}:where(.table) th:focus-visible,:where(.table) th:hover{background-color:var(--mvw-table-header-hover-bg-color);outline:none}:where(.table) th.is-sortable{position:relative;cursor:pointer}:where(.table) th.is-sortable .is-icon-sort{opacity:.5}:where(.table) th.is-active{background-color:var(--mvw-table-header-active-bg-color);color:var(--mvw-table-header-active-color)}:where(.table) th.is-active .is-icon-sort{opacity:1}:where(.table) th.is-has-image,:where(.table) th.has-avatar{width:0}:where(.table) th .is-icon-sort{display:inline-block;width:var(--size-12);height:var(--size-12);margin-inline-start:var(--size-4)}:where(.table) td.is-active{font-weight:700;color:var(--mvw-table-active-color);background:var(--mvw-table-active-bg-color)}:where(.table) td.has-avatar .avatar{--_width: var(--mvw-table-cell-portrait-size)}:where(.table) td[data-value="0"],:where(.table) td.is-zero{color:var(--mvw-text-faded)}:where(.table) td.is-possible-empty:empty:before{content:"0";color:var(--mvw-text-faded)}:where(.table) td.is-horizontal-content{display:inline-flex;align-items:center}:where(.table) td a[target=_blank]:after{content:"";position:absolute;left:100%;top:calc(50% - .4em)}:where(.table) td .is-logo-image{display:inline-block;vertical-align:middle;width:var(--mvw-table-cell-logo-size);height:var(--mvw-table-cell-logo-size);max-inline-size:fit-content}:where(.table) td .is-duplicated{color:var(--mvw-table-neutral-color)}:where(.table) td .is-team-name-long{display:inline-block}:where(.table) td .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){:where(.table) td .is-team-name-long{display:none}:where(.table) td .is-team-name-short{display:inline-block}}:where(.table) caption{caption-side:bottom;color:var(--mvw-table-caption-color);font-size:var(--mvw-table-caption-font-size, .75rem);padding:var(--size-12) 0;text-align:start}:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover{color:var(--mvw-table-hover-color);background-color:var(--mvw-table-hover-bg-color)}:is(:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover) td.is-active{color:var(--mvw-table-active-hover-color);background-color:var(--mvw-table-active-hover-bg-color)}}`,de=`@layer components.variables{:where(:host){--mvw-tooltip-font-size: var(--font-size-200);--mvw-tooltip-color: light-dark(white, black);--mvw-tooltip-bg-color: light-dark(black, white);--mvw-floating-content-bg-color: light-dark(white, var(--mvw-color-primary-800))}}@layer components{:where(.floating-content).is-tooltip{background-color:var(--mvw-tooltip-bg-color);color:var(--mvw-tooltip-color);font-weight:700;padding:var(--size-4) var(--size-8);border-radius:var(--radius-2);font-size:var(--mvw-tooltip-font-size);white-space:nowrap;pointer-events:none}:where(.floating-content).is-tooltip .is-arrow{background-color:var(--mvw-tooltip-bg-color)}:where(.floating-content).is-content{background-color:var(--mvw-floating-content-bg-color);border-radius:var(--radius-2);box-shadow:var(--shadow-6)}:where(.floating-content).is-content .is-arrow{background-color:var(--mvw-floating-content-bg-color)}:where(.floating-content) .is-arrow{width:8px;height:8px;transform:rotate(45deg)}[data-placement^=top] :is(:where(.floating-content) .is-arrow){bottom:-4px;clip-path:polygon(80% 0,100% 0,100% 100%,0 100%,0 80%)}[data-placement^=bottom] :is(:where(.floating-content) .is-arrow){top:-4px;clip-path:polygon(100% 0,0 0,0 100%)}[data-placement^=left] :is(:where(.floating-content) .is-arrow){right:-4px;clip-path:polygon(100% 0,0 0,100% 100%)}[data-placement^=right] :is(:where(.floating-content) .is-arrow){left:-4px;clip-path:polygon(100% 0,0 0,0 100%)}.transition-fade-enter-active,.transition-fade-leave-active{transition:all .7s var(--ease-spring-1)}.transition-fade-enter-from,.transition-fade-leave-to{opacity:0;transform:translateY(5px)}}`,fe=`@layer components.variables{:where(:host){--mvw-color-error-notice-bg-color: color-mix(in oklab, var(--mvw-color-error) 10%, transparent);--mvw-color-error-notice-border-color: color-mix(in oklab, var(--mvw-color-error) 25%, transparent);--mvw-color-error-notice-color: var(--mvw-color-error)}}@layer components{:where(.error-notice){display:flex;align-items:center;justify-items:flex-start;gap:15px;margin:10px 0;padding:10px 20px;background-color:var(--mvw-color-error-notice-bg-color);color:var(--mvw-color-error-notice-color);border:1px solid var(--mvw-color-error-notice-border-color);border-radius:var(--radius-2)}:where(.error-notice) button{text-decoration:underline}}`,R=N({__name:`Standings.ce`,props:{...c.baseProps,...c.teamStatsProps,type:{type:String,default:`3`,validator:e=>[`2`,`3`].includes(e)}},setup(e){let n=e,a=(0,t.ref)(null),{onError:o,error:l,hasError:u}=(0,i.useErrorProvider)(),d=(0,t.computed)(()=>n.locale),{state:f,isLoading:p}=w(()=>(0,i.fetchVBRData)(`/v2/standings`,n.apiKey,{championshipId:Number(n.championshipId),...n.division&&{division:n.division},...n.phaseId&&{phaseId:n.phaseId}}),[],{onError:e=>o(e)}),{sort:m,change:h}=(0,i.useSort)(),g=(0,t.computed)(()=>(0,s.convert)((0,t.unref)(f)).teamName().sorted(m).addContinuousIndex().value()),_=(0,t.computed)(()=>n.type===`3`?c.COLUMNS_STANDINGS_P_3:c.COLUMNS_STANDINGS_P_2),v=e=>h(e);function y(e){return(0,s.externalTeamLinkResolver)(n.externalTeamResolver,{...e,championshipId:n.championshipId})}return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:d.value},{default:(0,t.withCtx)(()=>[(0,t.unref)(u)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(l)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.StatisticsTable),{columns:_.value,rows:g.value.rows,"is-loading":(0,t.unref)(p),"hide-columns":n.hideColumns,sort:(0,t.unref)(m),"external-team-resolver":y,"is-team-linked":e.isTeamLinked,"append-to":a.value,onSort:v},{caption:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(r.AdditionalStandingsText),{rows:g.value.rows,"additional-key":`inheritedPoints`},null,8,[`rows`]),(0,t.createVNode)((0,t.unref)(r.AdditionalStandingsText),{rows:g.value.rows,"additional-key":`penaltyPoints`},null,8,[`rows`])]),_:1},8,[`columns`,`rows`,`is-loading`,`hide-columns`,`sort`,`is-team-linked`,`append-to`]),(0,t.createElementVNode)(`div`,{ref_key:`tooltipContainer`,ref:a},null,512)]),_:1},8,[`locale`])]))}},[[`styles`,[E,le,ue,de,fe]]]),z=`@layer components.variables{:where(:host){--mvw-color-error-notice-bg-color: color-mix(in oklab, var(--mvw-color-error) 10%, transparent);--mvw-color-error-notice-border-color: color-mix(in oklab, var(--mvw-color-error) 25%, transparent);--mvw-color-error-notice-color: var(--mvw-color-error)}}@layer components{:where(.error-notice){display:flex;align-items:center;justify-items:flex-start;gap:15px;margin:10px 0;padding:10px 20px;background-color:var(--mvw-color-error-notice-bg-color);color:var(--mvw-color-error-notice-color);border:1px solid var(--mvw-color-error-notice-border-color);border-radius:var(--radius-2)}:where(.error-notice) button{text-decoration:underline}}`,B=N({__name:`TeamAttendance.ce`,props:{...c.baseProps,...c.teamStatsProps},setup(e){let n=e,a=c.COLUMNS_TEAM_ATTENDANCE,o=(0,t.ref)(null),{onError:l,error:u,hasError:d}=(0,i.useErrorProvider)(),f=(0,t.computed)(()=>n.locale),{state:p,isLoading:m}=w(()=>(0,i.fetchVBRData)(`/v2/team-attendance`,n.apiKey,{championshipId:Number(n.championshipId),...n.division&&{division:n.division},...n.phaseId&&{phaseId:n.phaseId}}),[],{onError:e=>l(e)}),{sort:h,change:g}=(0,i.useSort)({sortTarget:`totalAttendanceAvg`,orders:[{target:`totalAttendanceAvg`,direction:c.SORT_STATE_DESCEND}]}),_=(0,t.computed)(()=>(0,s.convert)((0,t.unref)(p)).teamName().sorted(h).addIndex(h.sortTarget).value());function v(e){return(0,s.externalTeamLinkResolver)(n.externalTeamResolver,{...e,championshipId:n.championshipId})}return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:f.value},{default:(0,t.withCtx)(()=>[(0,t.unref)(d)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(u)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.StatisticsTable),{columns:(0,t.unref)(a),rows:_.value.rows,"is-loading":(0,t.unref)(m),"hide-columns":n.hideColumns,sort:(0,t.unref)(h),"external-team-resolver":v,"is-team-linked":e.isTeamLinked,"append-to":o.value,onSort:(0,t.unref)(g)},null,8,[`columns`,`rows`,`is-loading`,`hide-columns`,`sort`,`is-team-linked`,`append-to`,`onSort`]),(0,t.createElementVNode)(`div`,{ref_key:`tooltipContainer`,ref:o},null,512)]),_:1},8,[`locale`])]))}},[[`styles`,[E,D,O,k,A,z]]]),V=N({__name:`TeamFairplay.ce`,props:{...c.baseProps,...c.teamStatsProps},setup(e){let n=e,a=c.COLUMNS_TEAMS_FAIRPLAY,o=(0,t.ref)(null),{onError:l,error:u,hasError:d}=(0,i.useErrorProvider)(),f=(0,t.computed)(()=>n.locale),{state:p,isLoading:m}=w(()=>(0,i.fetchVBRData)(`/v2/team-fairplay`,n.apiKey,{championshipId:Number(n.championshipId),...n.division&&{division:n.division},...n.phaseId&&{phaseId:n.phaseId}}),[],{onError:e=>l(e)}),{sort:h,change:g}=(0,i.useSort)({sortTarget:`pim`,orders:[{target:`pim`,direction:c.SORT_STATE_DESCEND}]}),_=(0,t.computed)(()=>(0,s.convert)((0,t.unref)(p)).teamName().sorted(h).addIndex(h.sortTarget).value());function v(e){return(0,s.externalTeamLinkResolver)(n.externalTeamResolver,{...e,championshipId:n.championshipId})}return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:f.value},{default:(0,t.withCtx)(()=>[(0,t.unref)(d)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(u)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.StatisticsTable),{columns:(0,t.unref)(a),rows:_.value.rows,"is-loading":(0,t.unref)(m),"hide-columns":n.hideColumns,sort:(0,t.unref)(h),"external-team-resolver":v,"is-team-linked":e.isTeamLinked,"append-to":o.value,onSort:(0,t.unref)(g)},null,8,[`columns`,`rows`,`is-loading`,`hide-columns`,`sort`,`is-team-linked`,`append-to`,`onSort`]),(0,t.createElementVNode)(`div`,{ref_key:`tooltipContainer`,ref:o},null,512)]),_:1},8,[`locale`])]))}},[[`styles`,[E,D,O,k,A,z]]]),H=N({__name:`TeamPenaltyKilling.ce`,props:{...c.baseProps,...c.teamStatsProps},setup(e){let n=e,a=(0,t.ref)(null),{onError:o,error:l,hasError:u}=(0,i.useErrorProvider)(),d=c.COLUMNS_TEAMS_PENALTY_KILLING,f=(0,t.computed)(()=>n.locale),{state:p,isLoading:m}=w(()=>(0,i.fetchVBRData)(`/v2/team-powerplay`,n.apiKey,{championshipId:Number(n.championshipId),...n.division&&{division:n.division},...n.phaseId&&{phaseId:n.phaseId}}),[],{onError:e=>o(e)}),{sort:h,change:g}=(0,i.useSort)({sortTarget:`pkPercent`,orders:[{target:`pkPercent`,direction:c.SORT_STATE_DESCEND}]}),_=(0,t.computed)(()=>(0,s.rawConvert)((0,t.unref)(p),(0,s.convertTimesSecToMin)([`dvgTime`,`dvgTimePP1`,`dvgTimePP2`]))),v=(0,t.computed)(()=>(0,s.convert)((0,t.unref)(_)).teamName().sorted(h).addIndex(h.sortTarget).value());function y(e){return(0,s.externalTeamLinkResolver)(n.externalTeamResolver,{...e,championshipId:n.championshipId})}return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:f.value},{default:(0,t.withCtx)(()=>[(0,t.unref)(u)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(l)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.StatisticsTable),{columns:(0,t.unref)(d),rows:v.value.rows,"is-loading":(0,t.unref)(m),"hide-columns":n.hideColumns,sort:(0,t.unref)(h),"external-team-resolver":y,"is-team-linked":e.isTeamLinked,"append-to":a.value,onSort:(0,t.unref)(g)},null,8,[`columns`,`rows`,`is-loading`,`hide-columns`,`sort`,`is-team-linked`,`append-to`,`onSort`]),(0,t.createElementVNode)(`div`,{ref_key:`tooltipContainer`,ref:a},null,512)]),_:1},8,[`locale`])]))}},[[`styles`,[E,D,O,k,A,z]]]),U=N({__name:`TeamPowerplay.ce`,props:{...c.baseProps,...c.teamStatsProps},setup(e){let n=e,a=(0,t.ref)(null),{onError:o,error:l,hasError:u}=(0,i.useErrorProvider)(),d=c.COLUMNS_TEAMS_POWERPLAY,f=(0,t.computed)(()=>n.locale),{state:p,isLoading:m}=w(()=>(0,i.fetchVBRData)(`/v2/team-powerplay`,n.apiKey,{championshipId:Number(n.championshipId),...n.division&&{division:n.division},...n.phaseId&&{phaseId:n.phaseId}}),[],{onError:e=>o(e)}),{sort:h,change:g}=(0,i.useSort)({sortTarget:`ppPercent`,orders:[{target:`ppPercent`,direction:c.SORT_STATE_DESCEND}]}),_=(0,t.computed)(()=>(0,s.rawConvert)((0,t.unref)(p),(0,s.convertTimesSecToMin)([`advTime`,`advTimePP1`,`advTimePP2`]))),v=(0,t.computed)(()=>(0,s.convert)((0,t.unref)(_)).teamName().sorted(h).addIndex(h.sortTarget).value());function y(e){return(0,s.externalTeamLinkResolver)(n.externalTeamResolver,{...e,championshipId:n.championshipId})}return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:f.value},{default:(0,t.withCtx)(()=>[(0,t.unref)(u)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(l)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.StatisticsTable),{columns:(0,t.unref)(d),rows:v.value.rows,"is-loading":(0,t.unref)(m),"hide-columns":n.hideColumns,sort:(0,t.unref)(h),"external-team-resolver":y,"is-team-linked":e.isTeamLinked,"append-to":a.value,onSort:(0,t.unref)(g)},null,8,[`columns`,`rows`,`is-loading`,`hide-columns`,`sort`,`is-team-linked`,`append-to`,`onSort`]),(0,t.createElementVNode)(`div`,{ref_key:`tooltipContainer`,ref:a},null,512)]),_:1},8,[`locale`])]))}},[[`styles`,[E,D,O,k,A,z]]]),W=N({__name:`TeamScoringEfficiency.ce`,props:{...c.baseProps,...c.teamStatsProps},setup(e){let n=e,a=c.COLUMNS_SCORING_EFFICIENCY,o=(0,t.ref)(null),{onError:l,error:u,hasError:d}=(0,i.useErrorProvider)(),f=(0,t.computed)(()=>n.locale),{state:p,isLoading:m}=w(()=>(0,i.fetchVBRData)(`/v2/team-scoring-efficiency`,n.apiKey,{championshipId:Number(n.championshipId),...n.division&&{division:n.division},...n.phaseId&&{phaseId:n.phaseId}}),[],{onError:e=>l(e)}),{sort:h,change:g}=(0,i.useSort)({sortTarget:`sp`,orders:[{target:`sp`,direction:c.SORT_STATE_DESCEND}]}),_=(0,t.computed)(()=>(0,s.convert)((0,t.unref)(p)).teamName().sorted(h).addIndex(h.sortTarget).value());function v(e){return(0,s.externalTeamLinkResolver)(n.externalTeamResolver,{...e,championshipId:n.championshipId})}return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)((0,t.unref)(r.I18NProvider),{locale:f.value},{default:(0,t.withCtx)(()=>[(0,t.unref)(d)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.ErrorNotice),{key:0,error:(0,t.unref)(u)},null,8,[`error`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(r.StatisticsTable),{columns:(0,t.unref)(a),rows:_.value.rows,"is-loading":(0,t.unref)(m),"hide-columns":n.hideColumns,sort:(0,t.unref)(h),"external-team-resolver":v,"is-team-linked":e.isTeamLinked,"append-to":o.value,onSort:(0,t.unref)(g)},null,8,[`columns`,`rows`,`is-loading`,`hide-columns`,`sort`,`is-team-linked`,`append-to`,`onSort`]),(0,t.createElementVNode)(`div`,{ref_key:`tooltipContainer`,ref:o},null,512)]),_:1},8,[`locale`])]))}},[[`styles`,[E,D,O,k,A,z]]]),G=(0,t.defineCustomElement)(R),K=(0,t.defineCustomElement)(L),q=(0,t.defineCustomElement)(P),J=(0,t.defineCustomElement)(te),Y=(0,t.defineCustomElement)(F),X=(0,t.defineCustomElement)(B),Z=(0,t.defineCustomElement)(V),Q=(0,t.defineCustomElement)(H),pe=(0,t.defineCustomElement)(U),me=(0,t.defineCustomElement)(W),he=(0,t.defineCustomElement)(I),ge=(0,t.defineCustomElement)(ne);function $(){customElements.define(`mjsz-vbr-standings`,G),customElements.define(`mjsz-vbr-schedule`,K),customElements.define(`mjsz-vbr-players-leader`,q),customElements.define(`mjsz-vbr-players-penalties`,J),customElements.define(`mjsz-vbr-goalies`,Y),customElements.define(`mjsz-vbr-team-attendance`,X),customElements.define(`mjsz-vbr-team-fairplay`,Z),customElements.define(`mjsz-vbr-team-penalty-killing`,Q),customElements.define(`mjsz-vbr-team-powerplay`,pe),customElements.define(`mjsz-vbr-team-scoring`,me),customElements.define(`mjsz-vbr-players-national`,he),customElements.define(`mjsz-vbr-players-toi`,ge)}return e.FieldPlayersLeader=P,e.FieldPlayersLeaderCE=q,e.FieldPlayersPenalties=te,e.FieldPlayersPenaltiesCE=J,e.FieldPlayersToiCE=ge,e.GoaliesLeader=F,e.GoaliesLeaderCE=Y,e.PlayersNational=I,e.PlayersNationalCE=he,e.Schedule=L,e.ScheduleCE=K,e.Standings=R,e.StandingsCE=G,e.TeamAttendance=B,e.TeamAttendanceCE=X,e.TeamFairplay=V,e.TeamFairplayCE=Z,e.TeamPenaltyKilling=H,e.TeamPenaltyKillingCE=Q,e.TeamPowerplay=U,e.TeamPowerplayCE=pe,e.TeamScoringEfficiency=W,e.TeamScoringEfficiencyCE=me,e.default={install:()=>$()},e.register=$,e})({},Vue,MjszVbrElementsCore,MjszVbrElementsCore,MjszVbrElementsCore,MjszVbrElementsCore,MjszVbrElementsCore,MjszVbrElementsCore,MjszVbrElementsCore);
Binary file
Binary file