/* empty css             */import I from"./CardLoader-CTbdEu-d.js";import{A as $}from"./app-D3723o8c.js";import{_ as A}from"./SelectionCommittee.vue_vue_type_script_setup_true_lang-DXKjjDhZ.js";import{_ as x,r as P,o as C,b as L}from"./EchoChannel-Bg1-kez_.js";import{_ as T}from"./Gallery.vue_vue_type_script_setup_true_lang-DJqDJCJ4.js";import E from"./List-CzBuiXpG.js";import D from"./VoteCategory-BDw5gYnU.js";import"./PostCard-DlF_9FHh.js";import"./dayjs.min-Bx9f1rse.js";import"./Tape.vue_vue_type_script_setup_true_lang-C9KTCQTt.js";import"./premium-Ui5zlKac.js";import"./Arrow-Right-CuiMYOZx.js";import"./SpinnerLoader-WkHXMWXk.js";import"./TelemetryClient-D3Nysd-z.js";import"./ProgressRing.vue_vue_type_script_setup_true_lang-Bo5T_d9P.js";import"./FormCheckbox.vue_vue_type_script_setup_true_lang-BQrBomMH.js";import"./FormText-DVld6e0Y.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./LogoLoader-BGuyB6jw.js";const S=document.querySelector("[data-tab-default]"),U=()=>{const e=P({loop:0,votedCategories:[],guestPopup:!1,voterId:null,expiredPopup:!1}),o=()=>{e.expiredPopup=!0},d=()=>{setTimeout(()=>o(),2*60*60*1e3)};C(()=>{var n;d(),e.voterId=((n=document.querySelector("[data-name=voter_id]"))==null?void 0:n.value)??null;const t=document.querySelector("#categoriesList"),a=t==null?void 0:t.dataset.categoryFromUrl;if(a){const i=document.querySelector(`[data-category-id="${a}"]`);i&&(e.loop=parseInt(i.dataset.categoryIndex))}const f=S?parseInt(S.dataset.tabDefault):null;g(f)});const s=function(t){e.loop=t},u=function(t){e.votedCategories.push(t)},m=function(){e.guestPopup=!0},p=L(()=>window.location.href),g=t=>{var _,h;const a="activeTab",f=`[data-tab-period="${t}"]`,n=document.querySelector(f),i="activeDescription",w=`[data-tab-description="${t}"]`,v=document.querySelector(w);document.querySelectorAll("[data-tab-period]").forEach(r=>{var l;(l=r==null?void 0:r.classList)==null||l.remove(a)}),document.querySelectorAll("[data-tab-description]").forEach(r=>{var l;(l=r==null?void 0:r.classList)==null||l.remove(i)}),(_=n==null?void 0:n.classList)==null||_.add(a),(h=v==null?void 0:v.classList)==null||h.add(i)};return{state:e,nextCategory:s,hasVoted:u,showGuestPopup:m,showExpiredPopup:o,reloadPage:p,setActiveTab:g}},c=new $(U);c.vue.component("card-loader",I);c.vue.component("selection-committee",A);c.vue.component("gallery",T);c.vue.component("list",E);c.vue.component("vote-category",D);c.vue.component("popup",x);c.mount();const F=function(e){const o=e.findIndex(s=>s.isIntersecting),d=e[o];if(d){Array.from(document.querySelectorAll("[data-observe-item]")).forEach(function(p){p.classList.remove("observed")});const s=d.target.id;let u=document.querySelector('[data-observe-item="'+s+'"]');u&&u.classList.add("observed");const m=window.location.toString().replace(/#.*$/,"")+`#${s}`;history.replaceState({},"",m)}},M=new IntersectionObserver(F,{root:null,rootMargin:"300px",threshold:1}),V=document.querySelectorAll("[observe]"),b=()=>{Array.from(V).forEach(function(e){e&&M.observe(e)})},y=window.location.hash,q=y.substring(1,y.length),k=document.querySelector("#awards__categories__list");if(!q||q===""){const e=document.querySelectorAll(".category"),o=e.length?e[0].id:null;o&&k.querySelector(`[href='#${o}']`).classList.add("observed"),b()}else b(),setTimeout(()=>{const e=document.querySelector(`${y}`);e&&e.scrollIntoView()},250);