PageSourceSearch

https://unia.ch/_assets/f47debafe7c72acba299e817b5fb3558/JavaScript/Bundles/bundle.12757c9fdbb9e6c6a457.js

js unia.ch collected 2026-10-02 08:01:17 UTC 4,276 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkunia21=self.webpackChunkunia21||[]).push([[1192],{1192:(e,t,s)=>{s.r(t),s.d(t,{default:()=>l});class l{constructor(){window.alk&&this.constructor===l||(this.initResponsiveTables(),window.addEventListener("resize",this.debounce(this.handleResize.bind(this),50)))}initResponsiveTables(){const e=document.querySelectorAll(".contenttable");e.length&&e.forEach(e=>{const t=e.closest(".accordion-item");t?(console.log("Accordion found"),console.log(t),t.addEventListener("show.bs.collapse",()=>{console.log("Accordion opened"),setTimeout(()=>{const t=e.closest(".ce");e.hasAttribute("data-rendered")?console.log("Table already rendered, skipping..."):(this.makeTableResponsive(e,t.classList.contains("table-flipped")),e.setAttribute("data-rendered","true"))},10)})):e.hasAttribute("data-rendered")?console.log("Table already rendered, skipping..."):(e.closest(".ce").classList.contains("table-flipped")?this.makeTableResponsive(e,!0):this.makeTableResponsive(e,!1),e.setAttribute("data-rendered","true"))})}makeTableResponsive(e,t){if(!e)return;const s=e.querySelector("tbody"),l=Array.from(s.rows);if(0===l.length)return;const n=l[0].cells,i=document.createElement("div");i.classList.add("responsive-table-wrapper"),t&&i.classList.add("flipped");const r=document.createElement("div");let o;if(r.classList.add("responsive-table"),t){o=document.createElement("div"),o.classList.add("fixed-header-column","d-none");for(let e=0;e<n.length;e++){const t=document.createElement("div");t.classList.add("header-cell"),t.innerHTML=n[e].innerHTML,o.appendChild(t)}for(let e=0;e<n.length;e++){const t=document.createElement("div");t.classList.add("responsive-row");const s=document.createElement("div");s.classList.add("responsive-cell","header-cell-inside"),s.innerHTML=n[e].innerHTML,t.appendChild(s),l.slice(1).forEach(s=>{const l=s.cells[e],n=document.createElement("div");n.classList.add("responsive-cell"),n.innerHTML=l.innerHTML,t.appendChild(n)}),r.appendChild(t)}i.appendChild(o)}else{o=document.createElement("div"),o.classList.add("responsive-row");for(let e=0;e<n.length;e++){const t=document.createElement("div");t.classList.add("responsive-cell","header-cell-inside"),t.innerHTML=n[e].innerHTML,o.appendChild(t)}r.appendChild(o),l.slice(1).forEach(e=>{const t=document.createElement("div");t.classList.add("responsive-row"),Array.from(e.cells).forEach(e=>{const s=document.createElement("div");s.classList.add("responsive-cell"),s.innerHTML=e.innerHTML,t.appendChild(s)}),r.appendChild(t)})}i.appendChild(r),e.parentNode.replaceChild(i,e),this.adjustColumnWidths(i,t),t&&this.adjustHeaderCellHeights(i)}adjustColumnWidths(e,t){const s=e.querySelectorAll(".responsive-row"),l=[];s.forEach(e=>{Array.from(e.children).forEach((e,t)=>{e.style.flexGrow=0;const s=e.getBoundingClientRect().width;l[t]=Math.max(l[t]||0,s),e.style.flexGrow=""})});const n=l.every(e=>e<200);console.log("areAllColumnsUnder200",n),s.forEach(e=>{Array.from(e.children).forEach((e,t)=>{e.style.flexGrow="1",e.style.flexBasis="0",e.style.minWidth="200px",l[t]>=200||n?e.style.minWidth="200px":(e.style.wordBreak="break-word",e.style.flexGrow="0",e.style.minWidth=`${l[t]}px`),window.innerWidth<768&&(e.style.minWidth="100px"),this.alignCell(e)})}),t?(e.querySelectorAll(".responsive-cell").forEach(e=>{e.style.whiteSpace="normal"}),e.querySelectorAll(".header-cell-inside").forEach(e=>{e.classList.add("d-none")}),e.querySelector(".fixed-header-column").classList.remove("d-none")):e.querySelectorAll(".responsive-cell").forEach(e=>{e.style.whiteSpace="normal"})}alignCell(e){isNaN(e.innerText)||(e.style.textAlign="right")}adjustHeaderCellHeights(e){const t=e.querySelectorAll(".fixed-header-column .header-cell"),s=e.querySelectorAll(".responsive-row");if(s.forEach((e,s)=>{Array.from(e.children).forEach((e,l)=>{const n=e.getBoundingClientRect().height;t[l]&&(t[s].style.height=`${n}px`)})}),t[0]){const e=s[0].children[1];if(e){const s=e.getBoundingClientRect().height;t[0].style.height=`${s}px`}}}handleResize(){document.querySelectorAll(".responsive-table-wrapper").forEach(e=>{this.adjustColumnWidths(e,e.classList.contains("flipped")),this.adjustHeaderCellHeights(e)})}debounce(e,t){let s;return function(...l){clearTimeout(s),s=setTimeout(()=>e.apply(this,l),t)}}}}}]);

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.