1const RWD_SCREEN_SIZE_READY='rwd-screen-size-ready';function extendz(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function runAndReplaceContentHandler(e){document.body.addEventListener('contentarea-created',(t=>e(t.target))),document.body.addEventListener('element-html-replaced',(t=>e(t.target))),document.body.addEventListener('content-replace',(t=>{Array.from(t.target.querySelectorAll('.react-component, .component')).forEach((t=>e(t)))}));const t=()=>{const t=rwd.ScreenSize;t&&$(document).onPage(t.RESIZE_EVENT_NAME,(()=>{Array.from(document.querySelectorAll('.react-component, .component')).forEach((t=>e(t)))}))};window.rwd&&rwd.ScreenSize?t():document.addEventListener(RWD_SCREEN_SIZE_READY,(function e(){document.removeEventListener(RWD_SCREEN_SIZE_READY,e),t()}))}function linkedContent(e,t,n,o){e.on("click keydown",t,(function(e){if((!o||o())&&(13===e.keyCode||'click'===e.type)){var i,l=$(e.target);if(!l.closest("A")[0]){var r=l.closest(t);"string"==typeof n?i=r.find(n):"function"==typeof n?i=n.call(this,l):(i=r.find(".buttons A"))[0]||(i=r.find("A")),i[0]&&(r.addClass('highlightingCliksLink'),setTimeout((function(){r.removeClass('highlightingCliksLink'),function(e){try{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}catch(t){e.click()}}(i[0])}),100))}}}))}function ckEditorPluginExpand(e){e.find('.expand-button').each((function(){var e,t=$(this),n=t.find('a'),o=n.closest('.content_area'),i=n.attr('data-collapse'),l=n.attr('data-expand');t.nextAll().wrap('<div class="collapsible-content" />'),e=o.find('.collapsible-content'),t.detach().appendTo(o),n.hasClass("plugin-only-modal")&&n.closest(".content_area").addClass("plugin-only-modal"),n.onPage("click",(function(t){t.preventDefault(),$(this).toggleClass('link--active'),e.hasClass("visible")?(e.slideUp().removeClass('visible'),n.text(l)):(e.slideDown().addClass('visible'),n.text(i))}))}))}function ckEditorPluginLikToFile(){$("#outlet-content").on('content-replace',(function(){$('.link_to_file').each((function(){var e=$
1(this).find('a'),t=e.find('.file_download');e.addClass("link_to_file__href"),t.exists()||e.addClass("no-label-file")}))}))}function ckEditorPluginChangelog(){const e=$('.plugin_changelog').parent();e.find(".plugin_changelog:first-child").addClass("first-element"),e.find(".plugin_changelog:last-of-type").addClass("last-element")}const addRoleToLists=(e=document.body)=>{e.querySelectorAll('ul, ol').forEach((e=>{e.setAttribute('role','list')}))},wrapTablesForScroll=(e=document.body)=>{e.querySelectorAll('.ck-editor-table').forEach((e=>{if(e.parentElement?.classList.contains('table-scroll'))return;const t=document.createElement('div');t.classList.add('table-scroll'),e.parentNode.insertBefore(t,e),t.appendChild(e)}))},addSrOnlySpan=e=>{if(!e.querySelector('.sr-only')){const t=document.createElement('span');t.classList.add('sr-only'),t.textContent='otworzy siÄ w nowej karcie',e.appendChild(t)}},enhanceExternalLinks=(e=document.body)=>{e.querySelectorAll('a[target="_blank"]').forEach((e=>{if(e.classList.length>0)addSrOnlySpan(e);else if(e.classList.contains('link--external')||e.classList.add('link--external'),addSrOnlySpan(e),!e.querySelector('.web-icon.link-ext')){const t=document.createElement('span');t.classList.add('web-icon','link-ext'),t.setAttribute('aria-hidden','true'),e.appendChild(t)}}))},setBackgroundVariableForLinks=(e=document.body)=>{e.querySelectorAll('a').forEach((e=>{if(!e.querySelector('.web-icon'))return;let t=e;for(;t;){const n=window.getComputedStyle(t).backgroundColor;if('rgba(0, 0, 0, 0)'!==n&&'transparent'!==n){e.style.setProperty('--parent-background-color',n);break}t=t.parentElement}}))},handleIframeModalUrl=()=>{document.addEventListener('dialog-opened',(e=>{const{modalId:t}=e.detail,n=document.getElementById(t);if(!n)return;const o=n.querySelector('iframe[data-modal-url]');if(o){const e=o.getAttribute('data-modal-url');e&&o.setAttribute('src',e)}})),document.addEventListener('dialog-closed',(e=>{const{modalId:t}=e.detail,n=document.getElementById(t);if(!n)return;const o=n.querySelector('iframe[data-modal-url]');o&&o.setAttribute('src','')}))},checkTimeControlledVisibility=(e=document.body)=>{const t=e.querySelectorAll('.time-controlled-visibility');if(!t.length||ComponentsManager.isBuilder())return;const n=new Date,o=0===n.getDay()?7:n.getDay(),i=60*n.getHours()+n.getMinutes(),l=e=>{const[t,n]=e.split(':').map(Number);return 60*t+n};t.forEach((e=>{const t=e.getAttribute('data-time-visibility');if(!t)return;t.split(';').map((e=>e.trim())).some((e=>{const t=e.split(',');if(t.length<2)return!1;const n=t.pop();if(!(e=>e.some((e=>{if(e.includes('-')){const[t,n]=e.split('-').map(Number);return o>=t&&o<=n}return o===Number(e)})))(t.join(',').split(',')))return!1;const[r,a]=n.split('-');return!(!r||!a)&&((e,t)=>{const n=l(e),o=l(t);return i>=n&&i<=o})(r,a)}))&&e.classList.add('is-visible')}))},toggleZoomClass=()=>{const e=()=>{document.body.classList.toggle('state-zoom300',window.devicePixelRatio>=3&&window.innerHeight/window.innerWidth<1),document.body.classList.toggle('state-zoom400',window.devicePixelRatio>=4&&window.innerHeight/window.innerWidth<1)};e(),window.addEventListener('resize',e)},getAnnounceTitle=()=>{const e=document.querySelector('h1');return e&&e.textContent?e.textContent:document.title?document.title:null},announcePageChange=()=>
1{const e=document.getElementById('aria-live-region');if(!e)return;const t=getAnnounceTitle();t&&(e.textContent=`WyÅwietlono stronÄ ${t}`)},focusSkipLinks=()=>{const e=document.getElementById('outlet-header'),t=getUserComponent(e,'skip-links-nav');t&&ucLoadHelper(t,(()=>{const e=t.querySelector('#skipLinksNav');e&&(e.setAttribute('tabindex','-1'),e.focus())}))},initSkipLinks=e=>{if(!e.classList.contains('header'))return;const t=e.closest('#outlet-header');if(!t)return;const n=t.querySelector('cms-user-component');if(!n)return;$('#outlet-content').attr('tabindex','-1');ucLoadHelper(n,(e=>{const t=e.querySelectorAll('.skipLinks__button');t.length&&t.forEach((e=>{e.removeEventListener('click',e._skipClickHandler);const t=function(e){e.preventDefault();const t=e.target.getAttribute('href'),n=$(t).focus();n.is('a, button')&&n.addClass('isKeyboardFocused')};e.addEventListener('click',t),e._skipClickHandler=t}))}))},getUserComponent=(e,t)=>e.querySelector(`cms-user-component[src*="user-component/${t}"]`),ucLoadHelper=(e,t)=>{'yes'===e.getAttribute('loaded')?t(e):e.addEventListener('cms-user-component-render',(()=>{t(e)}))};runAndReplaceContentHandler((function(e){addRoleToLists(e),checkTimeControlledVisibility(e),enhanceExternalLinks(e),initSkipLinks(e),setBackgroundVariableForLinks(e),wrapTablesForScroll(e)})),document.addEventListener('dialog-opened',(e=>{const{modalId:t}=e.detail,n=document.getElementById(t);if(!n)return;const o=n.querySelector('iframe[data-modal-url]');if(o){const e=o.getAttribute('data-modal-url');e&&o.setAttribute('src',e)}})),document.addEventListener('dialog-closed',(e=>{const{modalId:t}=e.detail,n=document.getElementById(t);if(!n)return;const o=n.querySelector('iframe[data-modal-url]');o&&o.setAttribute('src','')})),toggleZoomClass(),document.getElementById('outlet-content').addEventListener('content-replace',(e=>{announcePageChange(),'load'!==e.detail.locationChangeType&&focusSkipLinks()})),runFunction((function(){const e=document.querySelector('body');ComponentsManager.isPreview()&&e.classList.add('isPreview'),ComponentsManager.isBuilder()&&e.classList.add('isBuilder'),ckEditorPluginLikToFile(),ckEditorPluginChangelog(),$(document).onPage('mousedown','[data-ripple]',(function(e){var t=$(this),n=t.css("position"),o=t.offset(),i=Math.min(this.offsetHeight,this.offsetWidth,100),l=e.pageX-o.left,r=e.pageY-o.top,a=$('<div/>',{class:"ripple-effect",appendTo:t});n&&"static"!==n||t.css({position:"relative"}),$('<div/>',{class:"ripple-effect__wave",css:{width:i,height:i,left:l-i/2,top:r-i/2},appendTo:a,one:{animationend:function(){a.remove()}}})}))})); 2//# sourceMappingURL=components-utils.8bd1474d9aa7dd8712e5.js.map
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.