/* empty css */import I from"./CardLoader-B8foDk4q.js";import{A as $}from"./app-D_5X6WGF.js";import{_ as A}from"./SelectionCommittee.vue_vue_type_script_setup_true_lang-ocJZWnmN.js";import{_ as x,r as P,o as C,b as L}from"./EchoChannel-CIXLa9Py.js";import{_ as T}from"./Gallery.vue_vue_type_script_setup_true_lang-DSq4TW6H.js";import E from"./List-BYmPrpl9.js";import D from"./VoteCategory-BQO0a_g1.js";import"./PostCard-BkAnZ_5k.js";import"./dayjs.min-D0T-nrYO.js";import"./Tape.vue_vue_type_script_setup_true_lang-C1wky5Gd.js";import"./premium-Ui5zlKac.js";import"./Arrow-Right-CuiMYOZx.js";import"./SpinnerLoader-BrDTEVDF.js";import"./TelemetryClient-Cs0H7jYh.js";import"./ProgressRing.vue_vue_type_script_setup_true_lang-wnzeLaH3.js";import"./FormCheckbox.vue_vue_type_script_setup_true_lang-D9UUdr8k.js";import"./FormText-D1nvIoyY.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./LogoLoader-JEHqUbzn.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);