PageSourceSearch

https://filmfestival.gr/static/js/4269.50bfe79f7aba701b109a.js

js filmfestival.gr collected 2026-10-02 02:52:34 UTC 5,977 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"9cbd587e329869c755d925bf3f1cd5ee8ae9e3b6"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c16e2f13-c68b-4aac-b5e0-1632f80bb8a5",e._sentryDebugIdIdentifier="sentry-dbid-c16e2f13-c68b-4aac-b5e0-1632f80bb8a5")}catch(e){}}(),(self.webpackChunktiff=self.webpackChunktiff||[]).push([[4269],{4269:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(2891),i=n(5708);const s=class extends o.xI{static values={currentView:String};connect(){const e=this.element.dataset.programmeSwitchCurrentView;this.currentViewValue=e,this.updateViewButtons(e),this.boundPopState=this.handlePopState.bind(this),window.addEventListener("popstate",this.boundPopState)}disconnect(){window.removeEventListener("popstate",this.boundPopState)}handlePopState(e){if(e.state&&"programme-switch"===e.state.controller){const t=new URL(window.location),n="1"===new URLSearchParams(t.search).get("by_date")?"schedule":"film";this.currentViewValue=n,this.updateViewButtons(n);const o=t.pathname+(t.search?t.search:"");(0,i.r5)(),fetch(o,{headers:{"X-Requested-With":"XMLHttpRequest"}}).then((e=>e.text())).then((t=>{const o=e.state&&"number"==typeof e.state.scrollY?e.state.scrollY:window.scrollY,s=document.querySelector("#filtered-films");s&&(s.innerHTML=t,setTimeout((()=>(0,i.wH)()),50));const a="schedule"===n?"Schedule View":"Film View";(0,i.hL)(`${a} - Tribute`),(0,i.bR)(`Switched to ${a}`),window.scrollTo(0,o)})).finally((()=>(0,i.Sn)())).catch((e=>console.error("Tribute switch popstate error",e)))}}switchView(e){const t=e.currentTarget.dataset.view;if(t===this.currentViewValue)return;this.updateViewButtons(t);const n=new URL(window.location.href),o=new URLSearchParams(n.search);o.delete("page"),"schedule"===t?o.set("by_date","1"):o.delete("by_date");const s=window.location.pathname,a=o.toString(),r=a?`${s}?${a}`:s;(0,i.r5)(),fetch(r,{headers:{"X-Requested-With":"XMLHttpRequest"}}).then((e=>e.text())).then((e=>{const n=window.scrollY,o=document.querySelector("#filtered-films");if(o){o.innerHTML=e;const t=()=>{window.scrollY!==n&&window.scrollTo(0,n)};t(),requestAnimationFrame((()=>{t(),(0,i.wH)(),setTimeout(t,100)}))}this.currentViewValue=t;const r="schedule"===t?"Schedule View":"Film View";(0,i.hL)(`${r} - Tribute`),(0,i.bR)(`Switched to ${r}`);const c=a?`${s}?${a}`:s;window.history.pushState({scrollY:n,controller:"programme-switch"},"",c)})).finally((()=>(0,i.Sn)())).catch((e=>{console.error("Error switching programme view:",e),this.updateViewButtons(this.currentViewValue)}))}updateViewButtons(e){this.element.querySelectorAll(".js-switch-view").forEach((t=>{const n=t.dataset.view===e;t.setAttribute("aria-pressed",n?"true":"false")}))}}},5708:(e,t,n)=>{function o(e="[data-load-more-item]"){document.querySelectorAll(e).forEach((e=>{e.classList.remove("opacity-100"),e.classList.add("opacity-0")}))}function i(e="[data-load-more-item]"){document.querySelectorAll(e).forEach((e=>{e.classList.remove("opacity-0"),e.classList.add("opacity-100")})),r()}n.d(t,{N6:()=>l,Np:()=>w,Sn:()=>r,bR:()=>h,fi:()=>d,hL:()=>u,hZ:()=>c,r5:()=>a,rA:()=>o,wH:()=>i});let s=null;function a(e=400){const t=document.getElementById("body-spinner"),n=t?.querySelector("svg");t&&(s=setTimeout((()=>{t.classList.remove("opacity-0"),t.classList.add("opacity-100"),t.setAttribute("aria-hidden","false"),setTimeout((()=>{n&&n.classList.remove("invisible")}),180)}),e))}function r(){clearTimeout(s);const e=document.getElementById("body-spinner");e.classList.add("opacity-0"),e.classList.remove("opacity-100"),e.setAttribute("aria-hidden","true")}function c(e,t){let n=null;function o(){for(const[o,i]of Object.entries(e))if(window.matchMedia(i).matches){n!==o&&(n=o,t(o));break}}return window.addEventListener("resize",o),o(),()=>window.removeEventListener("resize",o)}const d={mobile:"(max-width: 639px)",tablet:"(min-width: 640px) and (max-width: 1023px)",desktop:"(min-width: 1024px)"};async function l({urlPath:e,sectionIds:t=[],searchTerm:n="",page:o=1,signal:i=null}={}){const s=new URLSearchParams(window.location.search);s.delete("page"),s.delete("section"),t.forEach((e=>s.append("section",e)));"1"===s.get("by_date")?s.set("by_date","1"):s.delete("by_date");const a=new URLSearchParams;for(const[e,t]of s.entries())"section"!==e&&a.append(e,t);t.forEach((e=>a.append("section",e))),n&&a.append("search",n),a.append("page",o);const r=`${e}?${a.toString()}`,c={headers:{"X-Requested-With":"XMLHttpRequest"}};i&&(c.signal=i);const d=await fetch(r,c);if(i&&i.aborted)throw new DOMException("Request was aborted","AbortError");
1if(!d.ok)throw new Error("Network response was not ok");const l=await d.text(),u=(new DOMParser).parseFromString(l,"text/html");let h=0;const w=u.querySelector("#filtered-films, [data-total-count], [data-film-count]");if(w&&(h=parseInt(w.dataset.totalCount||w.dataset.filmCount)||0),0===h){const e=u.querySelector(".pagination-info, .results-count, .film-count");if(e){const t=e.textContent.match(/(\d+)\s+films?\s+found|of\s+(\d+)|total[:\s]+(\d+)/i);t&&(h=parseInt(t[1]||t[2]||t[3])||0)}}if(0===h){h=u.querySelectorAll("[data-load-more-item]").length}return{html:l,fetchUrl:r,totalCount:h}}function u(e){e&&e.trim()&&(document.title=e.trim())}function h(e){let t=document.getElementById("page-change-announcer");t||(t=document.createElement("div"),t.id="page-change-announcer",t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.className="sr-only",document.body.appendChild(t)),t.textContent="",setTimeout((()=>{t.textContent=e}),100)}function w(e='h1, main, [role="main"]'){setTimeout((()=>{const t=document.querySelector(e);t&&(t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),t.focus(),t.addEventListener("blur",(()=>{"-1"===t.getAttribute("tabindex")&&t.removeAttribute("tabindex")}),{once:!0}))}),100)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.