PageSourceSearch

https://orneta.pl/build/cookies.1eac1edd.js

js orneta.pl collected 2026-10-02 22:28:59 UTC 6,268 bytes, 2 lines download raw bytes

1/*! For license information please see cookies.1eac1edd.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9772],{18987:(e,t,o)=>{function n(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)e[n]=o[n]}return e}o.d(t,{A:()=>c});var c=function e(t,o){function c(e,c,r){if("undefined"!=typeof document){"number"==typeof(r=n({},o,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in r)r[a]&&(i+="; "+a,!0!==r[a]&&(i+="="+r[a].split(";")[0]));return document.cookie=e+"="+t.write(c,e)+i}}return Object.create({set:c,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var o=document.cookie?document.cookie.split("; "):[],n={},c=0;c<o.length;c++){var r=o[c].split("="),i=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(n[a]=t.read(i,a),e===a)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){c(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},68640:(e,t,o)=>{var n=o(18987),c=o(74692);function r(e,t){!t.classList.contains(e)&&t.classList.add(e)}function i(e,t){t.classList.contains(e)&&t.classList.remove(e)}function a(){var e=document.querySelectorAll(".switcher-button:not(.no-btn)");e.length>0&&e.forEach(e=>{e.addEventListener("click",()=>{e.classList.contains("active")?(e.classList.remove("active"),e.setAttribute("data-enabled","0")):(e.classList.add("active"),e.setAttribute("data-enabled","1"));var t,o,c=e.getAttribute("data-name"),r=e.getAttribute("data-enabled");"gA"===c&&"0"===r&&(t="_ga",o=n.A.get(),Object.keys(o).forEach(e=>{e.startsWith(t)&&(n.A.remove(e,{path:"/"}),n.A.remove(e,{path:"/",domain:window.location.hostname}),n.A.remove(e,{path:"/analytics"}))})),n.A.set(c,r,{path:"/",expires:365})})})}function s(){var e=document.querySelector("#acceptAll"),t=document.querySelector(".set-cookies"),o=document.querySelector(".cookie-container-window");e&&e.addEventListener("click",()=>{var e;(e=document.querySelectorAll(".switcher-button:not(.no-btn)")).length>0?e.forEach(e=>{e.addEventListener("click",()=>{var t=e.getAttribute("data-name");n.A.set(t,1,{path:"/"})})}):(n.A.set("cookies-policy","1",{path:"/",expires:365}),n.A.set("cookies-other","1",{path:"/",expires:365}),n.A.set("cookies-view","1",{path:"/",expires:365})),o&&r("d-none",o)}),t&&t.addEventListener("click",()=>{n.A.set("cookies-policy","1",{path:"/",expires:365}),o&&r("d-none",o)})}function d(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return"1"===n.A.get("cookies-policy")||(e&&alert("Bez zgody na podstawowe cookies nie można korzystać z tej strony.\n\nKliknij OK, aby wrócić."),!1)}document.addEventListener("DOMContentLoaded",()=>{var e=c("#cookies > button.close");e.length&&e.click(function(e){e.preventDefault(),c(this).parent().fadeOut("slow"),n.A.set("cookies-policy","1",{path:"/",expires:365}),n.A.set("cookies-other","1",{path:"/",expires:365}),n.A.set("cookies-view","1",{path:"/",expires:365})}),c("#cookies-adjust form button.save").click(function(e){e.preventDefault();var t=!1;c("#cookies-adjust form").find("input").each(function(){var e=c(this).prop("id"),o=c(this).prop("checked"),r=n.A.get(e);o?(n.A.set(e,"1",{path:"/",expires:365}),"cookies-policy"===e&&c("#cookies").fadeOut("slow")):n.A.set(e,"0",{path:"/",expires:365}),r!==n.A.get(e)&&(t=!0)}),d()&&(document.querySelector(".cookie-container-adjust").classList.add("d-none"),c("#cookies-info").fadeOut("slow")),t&&setTimeout(()=>{location.reload()},250)}),c("#cookies-info > .adjust").click(function(){c(".cookie-container-adjust").removeClass("d-none")}),d(!1)||c(".cookie-container-adjust").removeClass("d-none");
2var t=document.querySelector("#close-the-cookies"),o=document.querySelector(".cookie-container-adjust"),u=document.querySelectorAll(".cookies-input"),l=document.querySelectorAll(".toggle-cookie");t&&(u.forEach(e=>{var t=e.parentElement.querySelector(".switcher-head"),o=e.parentElement.querySelector(".switcher"),n=function(e){var t=document.cookie.split("; ");for(var o of t){var[n,c]=o.split("=");if(n===e)return decodeURIComponent(c)}return null}(e.id);if(t&&o){if(e.addEventListener("change",()=>{e.checked?(r("active",t),r("active",o)):(i("active",t),i("active",o))}),null===n)return e.checked=!0,r("active",t),void r("active",o);"1"===n?(e.checked=!0,r("active",t),r("active",o)):(e.checked=!1,i("active",t),i("active",o))}}),l.forEach(e=>{var t=e.parentElement.parentElement.parentElement.querySelector(".cookie-form-description");t&&e.addEventListener("click",()=>{t.classList.toggle("visible"),e.classList.toggle("rotated")})})),c("#cookies-adjust .close-cookies-info").click(function(e){e.preventDefault(),d()&&r("d-none",o)});var v,p,f,m,k=document.querySelector("div.cookie-container-window");k&&(a(),v=document.querySelector(".cookies-manage"),p=document.querySelector(".go-prev"),f=document.querySelector(".first-page"),m=document.querySelector(".manage-page"),v&&v.addEventListener("click",()=>{i("d-none",m),r("d-none",f)}),p&&p.addEventListener("click",()=>{i("d-none",f),r("d-none",m)}),function(){var e=document.querySelectorAll(".switcher-button:not(.no-btn)");e.length>0&&e.forEach(e=>{var t=e.getAttribute("data-name"),o=n.A.get(t);o&&(e.setAttribute("data-enabled",o),"1"===o?r("active",e):i("active",e))})}(),s());var h=document.getElementById("cookie-info-trigger");h||(h=document.querySelector('footer a[href="#cookies-adjust"]')),h&&h.addEventListener("click",function(e){"a"===h.tagName.toLowerCase()&&e.preventDefault();var t=document.getElementById("cookie-container-adjust");t&&t.classList.remove("d-none")}),k&&d()&&k.classList.remove("d-none")})}},e=>{e.O(0,[4692],()=>{return t=68640,e(e.s=t);var t});e.O()}]);

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.