PageSourceSearch

https://treflgdansk.pl/wp-content/themes/gdanskie-lwy/dist/main.bundle.min.js?ver=1081

js treflgdansk.pl collected 2026-10-02 17:21:29 UTC 13,889 bytes, 2 lines download raw bytes

1/*! For license information please see main.bundle.min.js.LICENSE.txt */
2(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,r(o.key),o)}}function r(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}var n=function(){return r=function e(r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.secInterval=null,this.seconds=60,this.targetDate=new Date(r.date),this.template=""+r.template,this.wrapper=r.el,"object"===t(this.wrapper)&&(this.updateCountdown(),this.countdownInterval=setInterval((function(){n.updateCountdown()}),6e4))},(n=[{key:"updateSecondsInMinute",value:function(){if(this.seconds>0){this.seconds--;var t=this.wrapper.querySelector(".minutes svg .circle"),e=t.r.baseVal.value,r=2*Math.PI*e;t.style.strokeDasharray="".concat(r," ").concat(r),t.style.strokeDashoffset=0,t.style.strokeDashoffset=this.seconds/60*r}else clearInterval(this.secInterval)}},{key:"changeCircleProgress",value:function(t,e){var r=t.r.baseVal.value,n=2*Math.PI*r;t.style.strokeDasharray="".concat(n," ").concat(n),t.style.strokeDashoffset=0,t.style.strokeDashoffset=e*n}},{key:"renderElement",value:function(t,e,r,n){var o=this;if("poster"!==t&&("big"===t&&this.wrapper.querySelector(".days .value").textContent!==e&&this.changeCircleProgress(this.wrapper.querySelector(".days .circle"),e/31),this.wrapper.querySelector(".days .value").textContent=e,"big"===t&&this.wrapper.querySelector(".hours .value").textContent!==r&&this.changeCircleProgress(this.wrapper.querySelector(".hours .circle"),r/24),this.wrapper.querySelector(".hours .value").textContent=r,this.wrapper.querySelector(".minutes .value").textContent=n,this.wrapper.querySelector(".minutes svg .circle"))){var a=this.wrapper.querySelector(".minutes svg .circle").r.baseVal.value,i=2*Math.PI*a;this.wrapper.querySelector(".days svg .circle").style.strokeDashoffset="".concat(i,"}"),this.wrapper.querySelector(".days svg .circle").style.strokeDasharray=i,clearInterval(this.secInterval),this.seconds=60,this.secInterval=setInterval((function(){o.updateSecondsInMinute()}),1e3)}}},{key:"updateCountdown",value:function(){var t=null;t=localStorage&&localStorage.getItem("debugD")?new Date(localStorage.getItem("debugD")):new Date;var e=this.targetDate-t;if(e>0){var r=Math.floor(e/864e5),n=Math.floor(e%864e5/36e5),o=Math.floor(e%36e5/6e4);this.renderElement(this.template,r,n,o)}else{this.wrapper.querySelector(".days")&&(this.wrapper.querySelector(".days").textContent=0),this.wrapper.querySelector(".hours")&&(this.wrapper.querySelector(".hours").textContent=0),this.wrapper.querySelector(".minutes")&&(this.wrapper.querySelector(".minutes").textContent=0),document.querySelectorAll(".countdown").forEach((function(t){var e=t.querySelector(".counter");e&&(e.style.display="none");var r=t.querySelector(".transmission-channel");r&&(r.style.display="flex")}));var a="Oglądaj transmisję na żywo";document.querySelector('.countdown.--big:not([data-template="new_season"]) .head h2')&&(document.querySelector('.countdown.--big:not([data-template="new_season"]) .head h2').innerHTML=a),document.querySelector('.countdown.--short:not([data-template="new_season"]) .title h5')&&(document.querySelector('.countdown.--short:not([data-template="new_season"]) .title h5').innerHTML=a),clearInterval(this.countdownInterval)}}}])&&e(r.prototype,n),o&&e(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(){a=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),c=new C(n||[]);return i(a,"_invoke",{value:j(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",g={};function w(){}function b(){}function S(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(O([])));L&&L!==r&&n.call(L,u)&&(x=L);var q=S.prototype=w.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function r(a,i,c,u){var l=p(t[a],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==o(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=y;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=T(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=p(e,r,n);if("normal"===l.type){if(o=n.done?m:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function T(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,433 bytes, line 2
2(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=p(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(o(e)+" is not iterable")}return b.prototype=S,i(q,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:b,configurable:!0}),b.displayName=h(S,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,h(t,s,"GeneratorFunction")),t.prototype=Object.create(q),t},e.awrap=function(t){return{__await:t}},k(I.prototype),h(I.prototype,l,(function(){return this})),e.AsyncIterator=I,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new I(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(q),h(q,s,"Generator"),h(q,u,(function(){return this})),h(q,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;
2return new Promise((function(n,o){var a=t.apply(e,r);function c(t){i(a,n,o,c,u,"next",t)}function u(t){i(a,n,o,c,u,"throw",t)}c(void 0)}))}}var u=function(){var t=c(a().mark((function t(e){var r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();document.querySelectorAll(".news-wrapper img").forEach((function(t){return t.addEventListener("error",(function(t){return t.target.setAttribute("src","/wp-content/uploads/2024/08/domyslny-some-1200x630px.png")}))})),window.addEventListener("DOMContentLoaded",(function(){var t,e;document.getElementById("funFacts")&&(t=document.getElementById("funFacts"),e=(new Date).getTime(),u("/wp-json/wp/v2/ciekawostka?_fields=id,title,excerpt,acf&t="+e).then((function(t){return t.json()})).then((function(e){t.querySelector(".ff-head").innerHTML=e[0].acf.featured_value,t.querySelector(".ff-text").innerHTML=e[0].excerpt.rendered})).catch((function(t){}))),document.getElementById("chooseTabelMonth")&&document.getElementById("chooseTabelMonth").addEventListener("change",(function(t){var e=t.target.value;"00"===e?document.querySelectorAll("#TerminarzFull li.hide-el").forEach((function(t){return t.classList.remove("hide-el")})):(document.querySelectorAll("#TerminarzFull li").forEach((function(t){return t.classList.add("hide-el")})),document.querySelectorAll('#TerminarzFull li[data-month="'+e+'"]').forEach((function(t){return t.classList.remove("hide-el")})))})),document.querySelectorAll(".countdown")&&document.querySelectorAll(".countdown").forEach((function(t){return new n({el:t,date:t.dataset.date,template:t.dataset.template})})),document.querySelector(".color-tab")&&document.querySelectorAll(".color-tab tr td:first-child").forEach((function(t){"#"===t.innerText.substring(0,1)&&(t.style.backgroundColor=t.innerText),t.innerText=""})),document.querySelector(".wp-block-gallery")&&document.querySelectorAll("#primary .entry-content .wp-block-gallery figure.wp-block-image").forEach(function(){var t=c(a().mark((function t(e){var r,n,o,i,c,u,l;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.querySelector("img"),n=r.getAttribute("data-id"),o=function(t){var n=document.createElement("a");n.href=t,n.innerHTML=r.outerHTML,n.dataset.lightbox="roadtrip",e.appendChild(n),r.remove()},t.prev=3,!n){t.next=15;break}return t.next=7,fetch("/wp-json/wp/v2/media/".concat(n));case 7:return c=t.sent,t.next=10,c.json();case 10:u=t.sent,l=(null==u||null===(i=u.media_details)||void 0===i||null===(i=i.sizes)||void 0===i||null===(i=i.full)||void 0===i?void 0:i.source_url)||r.src,o(l),t.next=16;break;case 15:o(r.src);case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(3),o(r.src);case 21:case 22:case"end":return t.stop()}}),t,null,[[3,18]])})));return function(e){return t.apply(this,arguments)}}())}))})();

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.