PageSourceSearch

https://www.publicsector.com/_astro/Tabs.astro_astro_type_script_index_0_lang._ZNp9FNF.js

js publicsector.com collected 2026-10-04 20:54:09 UTC 2,470 bytes, 1 lines download raw bytes

1globalThis.process??={},globalThis.process.env??={};import{o as e,w as t}from"./utility.COwicxCg.js";var n=class extends HTMLElement{constructor(){super();let n=this.querySelectorAll(`.tabs__tab`),r=this.querySelector(`.tabs__wrapper`),i=this.querySelector(`.tabs__tabs`),a=this.querySelectorAll(`.tabpanel`);var o=0;let s=(e,r=``,i=!1)=>{isNaN(e)&&(e===`next`?(e=o+1,e>=n.length&&(e=0)):(e=o-1,e<0&&(e=n.length-1))),o=Number(e),n.forEach((e,n)=>{n===o?(e.classList.add(`tabs__tab--current`),e.setAttribute(`aria-selected`,`true`),r===`tab`&&e.focus(),i&&t({hashPrefix:`tabs`,hashKey:e.dataset.tabName})):(e.classList.remove(`tabs__tab--current`),e.setAttribute(`aria-selected`,`false`))}),a.forEach((e,t)=>{t===o?(e.classList.add(`tabpanel--show`),e.setAttribute(`hidden`,`false`)):(e.classList.remove(`tabpanel--show`),e.setAttribute(`hidden`,`true`))})},c=(e,t,n)=>{switch(e.key){case`Enter`:s(n,``,!0);break;case`ArrowRight`:s(`next`,t,!0);break;case`ArrowLeft`:s(`prev`,t,!0)}};n.forEach((e,t)=>{e.addEventListener(`click`,()=>s(t,``,!0)),e.addEventListener(`keyup`,e=>{c(e,`tab`,t)})}),a.forEach((e,t)=>{e.id=`tabs--${this.id}__tabpanel--${t}`,e.setAttribute(`aria-labelledby`,`tabs-${this.id}__tab-${t}`)});let l=new URL(window.location.href);if(l.hash.includes(`tabs-`)){let t=l.hash.slice(l.hash.indexOf(`tabs-`));
1t.includes(`&`)&&(t=t.slice(0,t.indexOf(`&`)));let n=e(this,`.tabs__tab`,this.querySelector(`.tabs__tab[data-tab-name=${t}]`));s(Math.max(n,0))}else s(0);let u=()=>{let e=Array.from(n).reduce((e,t)=>e+t.clientWidth,0)+(n.length-1)*2;r.clientWidth<e?(r.classList.add(`tabs__wrapper--show-fades`),i.scrollLeft>4?r.classList.remove(`tabs__wrapper--start`):r.classList.add(`tabs__wrapper--start`),e-4<=r.clientWidth+i.scrollLeft?r.classList.add(`tabs__wrapper--end`):r.classList.remove(`tabs__wrapper--end`)):r.classList.remove(`tabs__wrapper--show-fades`,`tabs__wrapper--start`,`tabs__wrapper--end`),this.style.setProperty(`--collibra-tabs-height`,r.clientHeight+`px`),setTimeout(()=>{var e;document.querySelectorAll(`#main > .container`).forEach((t,n)=>{t.classList.contains(`container`)&&t===this.closest(`.container`)&&(e=n+1)}),e&&document.querySelector(`main > .container:nth-of-type(${e-1})`)?.style.setProperty(`--collibra-following-container-tabs-height`,r.clientHeight+`px`)},0)};i.addEventListener(`scroll`,u),window.addEventListener(`resize`,u),window.addEventListener(`orientationchange`,u),u()}};customElements.define(`collibra-tabs`,n);

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.