PageSourceSearch

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

js unia.ch collected 2026-10-02 08:02:29 UTC 1,414 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkunia21=self.webpackChunkunia21||[]).push([[8824],{8824:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var i=n(7707);class o{constructor(){document.querySelectorAll(".js-download-ics").forEach(t=>{this.init(t)})}init(t){const e=t.dataset;let n=e.start?this.splitDateTime(e.start):null;const i=e.end&&""!==e.end?this.splitDateTime(e.end):null,o=e.durationHours?parseInt(e.durationHours):0,a=e.durationMinutes?parseInt(e.durationMinutes):0,s=e.description?e.description:"",l=e.location?e.location:"",r=e.url?e.url:"",d=e.title?e.title:"",c={};n&&d?(c.start=n,c.title=d,i&&(c.end=i),o&&(c.duration=c.duration||{},c.duration.hours=o),a&&(c.duration=c.duration||{},c.duration.minutes=a),s&&(c.description=s),l&&(c.location=l),r&&(c.url=r),t.addEventListener("click",()=>this.handleDownload(c))):t.outerHTML="<p>ICS download not possible.</p>"}async handleDownload(t){const e=t.title.replace(/[^a-z0-9]/gi,"_").toLowerCase()+".ics",n=await new Promise((n,o)=>{(0,i.lh)(t,(t,i)=>{t&&o(t),n(new File([i],e,{type:"text/calendar"}))})}),o=URL.createObjectURL(n),a=document.createElement("a");a.href=o,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}splitDateTime(t){const e=t.split("T"),n=e[0].split("-");let i=n;if(void 0!==e[1]){const t=e[1].split(":");i=n.concat(t)}const o=[];for(let t=0;t<i.length;t++)o.push(parseInt(i[t]));return 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.