PageSourceSearch

https://www.siniat.pl/etex/js/assets/js/991.c002f02466c3054d65ce.mjs

js siniat.pl collected 2026-10-07 23:23:11 UTC 4,838 bytes, 37 lines download raw bytes

1"use strict";(self.webpackChunkwebpack=self.webpackChunkwebpack||[]).push([[991,3463],{23463:function(t,e,a){a.r(e);var i=a(68687),s=a(91759),n=a(77905);class r extends i.oi{static get properties(){return{active:{type:Boolean,reflect:!0,state:!0},url:{type:String},target:{type:String},label:{type:String},icon:{type:String},onlyicon:{type:String},disabled:{type:Boolean},id:{type:String},uniqueId:{type:String,attribute:!1}}}constructor(){super()}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.uniqueId=this.id||(0,n.y)(),this._SetAttributes()}_SetAttributes(){this.setAttribute("id",`tabpanel-${this.uniqueId}`),this.setAttribute("aria-hidden",!this.active),(0,s.MG)(this.url)&&(this.setAttribute("role","tabpanel"),this.setAttribute("tabindex","0"),this.setAttribute("aria-labelledby",`tab-${this.uniqueId}`))}}customElements.define("wc-tab",r)},80991:function(t,e,a){a.r(e);var i=a(68687),s=a(43322),n=a(91759);const r="End",l="Home",d="ArrowLeft",c="ArrowRight";document.documentElement;var b=a(74873),o=a(47359);a(23463);class h extends i.oi{static get properties(){return{label:{type:String},hasLinks:{type:Boolean,attribute:!1},index:{type:Number,reflect:!0,converter:t=>t?Number(t):1},navigation:{type:HTMLElement,attribute:!1},hasLeftNav:{type:Boolean,attribute:!1},hasRightNav:{type:Boolean,attribute:!1}}}constructor(){super(),(0,s.mI)()}render(){return i.dy`
2            <div class="wc-tabs__nav js-tablist a-scroll a-scroll--h-gradient">
3                <nav
4                    role="${this.hasLinks?i.Ld:"tablist"}"
5                    aria-label="Navigation${this.hasLinks?this.label:i.Ld}"
6                >
7                    ${this._SetTabs()}
8                </nav>
9            </div>
10        `}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.tabItems=this.querySelectorAll("wc-tab"),this.hasLinks=!(0,n.MG)(this.tabItems[0]?.url),this.hasLinks||this.addEventListener("keydown",this._ToggleTabs)}disconnectedCallback(){super.disconnectedCallback(),this.hasLinks||this.removeEventListener("keydown",this._ToggleTabs)}firstUpdated(){this.navigation=this.querySelector(".js-tablist"),this._ActivePanel(this.tabItems[this.index-1]),this.prepend(this.navigation),this._SetShadows(),this._SetCtaTabEvent()}updated(t){if(t.has("index")){const e=t.get("index"),a=this.index;null!==e&&e!==a&&this._ActivePanel(this.tabItems[a-1])}super.updated(t)}async _SetShadows(){const t=this.navigation.querySelector("nav");t&&(0,b.Xy)(t,this.navigation)}_SetCtaTabEvent(){const t=document.querySelectorAll("[data-tab]");t&&0!=t.length&&t.forEach((t=>{t.addEventListener("click",(t=>{const e=t.currentTarget.dataset.tab,a=this.querySelector(`#tab-${e}`);a&&this.setAttribute("index",a.dataset.index)}))}))}_SetTabs(){if(!this.tabItems)return;let t=[];return this.tabItems.forEach(((e,a)=>{e.active=!this.index&&0==a||a+1==this.index,t.push(this.hasLinks?this._SetLink(e,a+1):this._SetButton(e,a+1))})),t}_SetButton(t,e){return i.dy` <button
11            type="button"
12            role="tab"
13            aria-selected="${t.active||!1}"
14            aria-controls="tabpanel-${t.uniqueId}"
15            id="tab-${t.uniqueId}"
16            tabindex="${t.active?i.Ld:-1}"
17            aria-label="${t.onlyIcon?t.label:i.Ld}"
18            disabled="${t.disabled||i.Ld}"
19            data-index="${e}"
20            @click=${t=>this._UpdateTab(t.currentTarget)}
21        >
22            ${this._GetTabLabel(t.icon,t.label)}
23        </button>`}_SetLink(t){return i.dy`<a
24            class="u-label"
25            href="${t.disabled?i.Ld:t.url}"
26            role="${t.disabled?"link":i.Ld}"
27            id="tab-${t.uniqueId}"
28            aria-current="${t.active?"page":i.Ld}"
29            aria-controls="tabpanel-${t.uniqueId}"
30            aria-disabled="${t.disabled||i.Ld}"
31            aria-label="${t.onlyIcon?t.label:i.Ld}"
32            tabindex="${t.active?i.Ld:-1}"
33            target="${t.target||i.Ld}"
34        >
35            ${this._GetTabLabel(t.icon,t.label)}
36        </a>`}_GetTabLabel(t,e,a=!1){return i.dy`${(0,n.MG)(t)?i.Ld:(0,s.aT)(t,"u-icon-small")}
37        ${a?i.Ld:i.dy`<span class="wc-tab__label">${e}</span> `}`}_ToggleTabs(t){const e=t.target;if("tab"==e.getAttribute("role"))switch(t.key){case d:this._UpdateTab(e.previousElementSibling);break;case c:this._UpdateTab(e.nextElementSibling);break;case l:this._UpdateTab(e.parentElement.firstElementChild);break;case r:this._UpdateTab(e.parentElement.lastElementChild)}}_UpdateTab(t){if(!t)return;const e=t.getAttribute("aria-controls");this._ActivePanel(this.querySelector(`#${e}`)),t.focus(),(0,o.r)(this,"wc-tab-changed",{id:e,current:!0})}
37_ActivePanel(t){this.tabItems.forEach(((e,a)=>{e.setAttribute("active",t===e),e.setAttribute("aria-hidden",t!=e),t===e&&(this.index=a+1)}))}}customElements.define("wc-tabs",h)}}]);

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.