PageSourceSearch

https://www.betarades.gr/wp-content/themes/betarades/assets/public/dist/js/prognostika.min.js?v=1790227420

js betarades.gr collected 2026-09-24 20:47:19 UTC 4,967 bytes, 1 lines download raw bytes

1!function o(s,c,a){function i(t,e){if(!c[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(r)return r(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=c[t]={exports:{}},s[t][0].call(n.exports,function(e){return i(s[t][1][e]||e)},n,n.exports,o,s,c,a)}return c[t].exports}for(var r="function"==typeof require&&require,e=0;e<a.length;e++)i(a[e]);return i}({1:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){let e,t,n,o,s,c,a,i,r;for(e=document.getElementsByClassName("bct-select"),o=e.length,t=0;t<o;t++){for(c=e[t].getElementsByTagName("select")[0],s=c.length,(a=document.createElement("DIV")).setAttribute("class","bct-select--selected"),a.innerHTML=c.options[c.selectedIndex].innerHTML,e[t].appendChild(a),(i=document.createElement("DIV")).setAttribute("class","bct-select__items bct-select--hide"),n=1;n<s;n++)(r=document.createElement("DIV")).innerHTML=c.options[n].innerHTML,r.setAttribute("data-value",c.options[n].getAttribute("value")),r.addEventListener("click",function(e){let t,n,o,s,c,a,i;for(a=(s=this.parentNode.parentNode.getElementsByTagName("select")[0]).length,c=this.parentNode.previousSibling,n=0;n<a;n++)if(s.options[n].innerHTML==this.innerHTML){for(s.options[n].setAttribute("selected","true"),c.innerHTML=this.innerHTML,i=(t=this.parentNode.getElementsByClassName("bct-select--same-as-selected")).length,o=0;o<i;o++)t[o].removeAttribute("class");this.setAttribute("class","bct-select--same-as-selected")}else{s.options[n].removeAttribute("selected");var r=new Event("change");s.dispatchEvent(r)}c.click()}),i.appendChild(r);e[t].appendChild(i),a.addEventListener("click",function(e){e.stopPropagation(),l(this),this.nextSibling.classList.toggle("bct-select--hide"),this.classList.toggle("active")})}function l(e){let t,n,o,s,c,a=[];for(t=document.getElementsByClassName("bct-select__items"),n=document.getElementsByClassName("bct-select--selected"),s=t.length,c=n.length,o=0;o<c;o++)e==n[o]?a.push(o):n[o].classList.remove("active");for(o=0;o<s;o++)a.indexOf(o)&&t[o].classList.add("bct-select--hide")}document.addEventListener("click",l)}},{}],2:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=document.querySelector("[data-chart-action]");e&&e.addEventListener("click",()=>{document.querySelectorAll("[data-chart-icon]").forEach(e=>{e.classList.toggle("tw-rotate-180")}),document.querySelectorAll("[data-chart-content]").forEach(e=>{e.classList.toggle("tw-hidden")}),window.lazyLoading("/prognostika-tips-chart.min.js")})}},{}],3:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){let n=(e,t)=>{var n=e.querySelector("[data-prognostika-accordion-toggle]"),o=e.querySelector("[data-prognostika-accordion-content]");e.classList.toggle("is-collapsed",t),o&&(o.style.maxHeight=t?"0px":o.scrollHeight+"px"),n&&(n.textContent=t?"Περισσότερα":"Λιγότερα",n.setAttribute("aria-expanded",String(!t)))};document.querySelectorAll("[data-prognostika-accordion]").forEach(e=>{e=e.closest(".prognostika-card");e&&n(e,e.classList.contains("is-collapsed"))}),window.addEventListener("resize",()=>{document.querySelectorAll("[data-prognostika-accordion]").forEach(e=>{e=e.closest(".prognostika-card");e&&!e.classList.contains("is-collapsed")&&n(e,!1)})}),document.addEventListener("click",e=>{var t=e.target.closest("[data-prognostika-accordion-toggle]");t&&(t=t.closest(".prognostika-card"))&&(e.preventDefault(),n(t,!t.classList.contains("is-collapsed")))})}},{}],4:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){let e=()=>{document.querySelectorAll("[data-prognostika-countdown]").forEach(e=>{var t=e.querySelector("[data-prognostika-countdown-time]"),n=new Date(e.dataset.matchTime).getTime()-Date.now(),o=0<n&&n<=36e5;e.classList.toggle("is-visible",o),t&&o&&(e=Math.ceil(n/1e3),o=Math.floor(e/60),t.textContent=o+":"+String(e%60).padStart(2,"0"))})};e(),window.setInterval(e,1e3)}},{}],5:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){{var t=jQuery;let e=t("#bct-show-inactive-tips");e.length&&e.on("click",()=>{t(".sport-tips-archive-wrapper").removeClass("tw-hidden"),e.remove()})}}},{}],6:[function(e,t,n){var o=r(e("./components/bct-select")),s=r(e("./components/charts")),c=r(e("./components/prognostika-card-accordion")),a=r(e("./components/prognostika-countdown")),i=r(e("./components/sport-tips-show-inactive"));
1function r(e){return e&&e.__esModule?e:{default:e}}e=()=>{[o.default,s.default,c.default,a.default,i.default].forEach(e=>{try{e()}catch(e){window.console.error(e)}})},"loading"===document.readyState?window.addEventListener("DOMContentLoaded",e,{once:!0}):e()},{"./components/bct-select":1,"./components/charts":2,"./components/prognostika-card-accordion":3,"./components/prognostika-countdown":4,"./components/sport-tips-show-inactive":5}]},{},[6]);

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.