PageSourceSearch

https://leibniz-fli.de/cpresources/9e24e139/js/dayjs.min-BiSRBq-c.js

js leibniz-fli.de collected 2026-10-02 04:54:02 UTC 14,901 bytes, 373 lines download raw bytes

1import { r as __commonJSMin } from "./lib-DxM6wEfp.js";
2import { T as t } from "./Utils-rB3N7v_-.js";
3import { C as openBlock, H as toDisplayString, R as unref, T as renderSlot, V as normalizeStyle, a as Fragment, c as createBaseVNode, d as createElementBlock, g as defineComponent, h as createVNode, i as withModifiers, m as createTextVNode, u as createCommentVNode, z as normalizeClass } from "./vue.runtime.esm-bundler-D8eCHr7q.js";
4import { t as SRImage_default } from "./SRImage-CAfLUCUB.js";
5var EventContent_default = /* @__PURE__ */ defineComponent({
6	__name: "EventContent",
7	props: { event: {} },
8	setup(e) {
9		return (o, d) => (openBlock(), createElementBlock(Fragment, null, [e.event.isRegistrable ? createCommentVNode("", !0) : (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(unref(t)("events", "No Registration")), 1)], 64)), e.event.isRegistrable ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [e.event.maxSeats === null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [d[0] ||= createBaseVNode("em", {
10			class: "dot",
11			style: { "--dot-color": "#7ED8A1" },
12			"aria-hidden": "true"
13		}, null, -1), createTextVNode(" " + toDisplayString(unref(t)("events", "Registration Available")), 1)], 64)) : e.event.remainingSeats === 0 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [d[1] ||= createBaseVNode("em", {
14			class: "dot",
15			style: { "--dot-color": "#fff" },
16			"aria-hidden": "true"
17		}, null, -1), createTextVNode(" " + toDisplayString(unref(t)("events", "fully booked")), 1)], 64)) : e.event.remainingSeats !== null && e.event.remainingSeats !== 0 ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createBaseVNode("em", {
18			class: "dot",
19			style: normalizeStyle({ "--dot-color": e.event.remainingSeats && e.event.remainingSeats > 10 ? "#7ED8A1" : "#CF3E46" }),
20			"aria-hidden": "true"
21		}, null, 4), createTextVNode(" " + toDisplayString(unref(t)("events", "{ x,plural,=0{no places} =1{one place} other{ # places} } available", { x: e.event.remainingSeats })), 1)], 64)) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0)], 64));
22	}
23}), _hoisted_1 = ["data-id"], _hoisted_2 = { key: 0 }, _hoisted_3 = ["datetime"], _hoisted_4 = {
24	key: 1,
25	class: "time"
26}, _hoisted_5 = ["datetime"], _hoisted_6 = ["datetime"], _hoisted_7 = ["id", "href"], EventBox_default = /* @__PURE__ */ defineComponent({
27	__name: "EventBox",
28	props: {
29		event: {},
30		loading: {
31			type: Boolean,
32			default: !1
33		},
34		btnWhite: {
35			type: Boolean,
36			default: !0
37		}
38	},
39	emits: ["open"],
40	setup(e, { emit: s }) {
41		let c = s, d = e, E = async (e) => {
42			d.loading || c("open", {
43				originalEvent: e,
44				event: d.event
45			});
46		};
47		return (s, c) => (openBlock(), createElementBlock("div", {
48			class: "event-item",
vendor: 7,723 bytes, lines 49-233
49			"data-id": e.event.id
50		}, [e.event.image ? (openBlock(), createElementBlock("figure", _hoisted_2, [createVNode(SRImage_default, {
51			"picture-attributes": e.event.image.pictureAttributes,
52			sources: e.event.image.sources,
53			"image-attributes": e.event.image.imageAttributes
54		}, null, 8, [
55			"picture-attributes",
56			"sources",
57			"image-attributes"
58		])])) : createCommentVNode("", !0), createBaseVNode("article", null, [
59			e.event.startDate && (!e.event.endDate || e.event.endDate.isSame(e.event.startDate, "day")) ? (openBlock(), createElementBlock("time", {
60				key: 0,
61				datetime: e.event.startDate.format()
62			}, [createBaseVNode("strong", null, toDisplayString(e.event.startDate.format("DD")), 1), createBaseVNode("small", null, toDisplayString(e.event.startDate.format("MM/YY")), 1)], 8, _hoisted_3)) : createCommentVNode("", !0),
63			e.event.startDate && e.event.endDate && !e.event.endDate.isSame(e.event.startDate, "day") ? (openBlock(), createElementBlock("div", _hoisted_4, [createBaseVNode("time", { datetime: e.event.startDate.format() }, toDisplayString(e.event.startDate.format("DD/MM/YY")), 9, _hoisted_5), createBaseVNode("time", { datetime: e.event.endDate.format() }, toDisplayString(e.event.endDate.format("DD/MM/YY")), 9, _hoisted_6)])) : createCommentVNode("", !0),
64			createBaseVNode("h2", null, [renderSlot(s.$slots, "headline", {}, () => [createTextVNode(toDisplayString(e.event.title), 1)])]),
65			renderSlot(s.$slots, "default", {}, () => [createBaseVNode("p", null, [createVNode(EventContent_default, { event: e.event }, null, 8, ["event"])])]),
66			createBaseVNode("a", {
67				id: `event-opener-${e.event.id}`,
68				href: e.event.url,
69				class: normalizeClass([{
70					loading: e.loading === !0,
71					"is-white": e.btnWhite
72				}, "open-event btn-arrow"]),
73				type: "button",
74				onClick: withModifiers(E, ["prevent"])
75			}, toDisplayString(unref(t)("events", "Event Details")), 11, _hoisted_7)
76		])], 8, _hoisted_1));
77	}
78}), require_dayjs_min = /* @__PURE__ */ __commonJSMin(((e, n) => {
79	(function(r, i) {
80		typeof e == "object" && n !== void 0 ? n.exports = i() : typeof define == "function" && define.amd ? define(i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs = i();
81	})(e, (function() {
82		var e = 1e3, n = 6e4, r = 36e5, i = "millisecond", a = "second", o = "minute", s = "hour", c = "day", l = "week", u = "month", d = "quarter", f = "year", p = "date", m = "Invalid Date", h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = {
83			name: "en",
84			weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
85			months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
86			ordinal: function(e) {
87				var n = [
88					"th",
89					"st",
90					"nd",
91					"rd"
92				], r = e % 100;
93				return "[" + e + (n[(r - 20) % 10] || n[r] || n[0]) + "]";
94			}
95		}, v = function(e, n, r) {
96			var i = String(e);
97			return !i || i.length >= n ? e : "" + Array(n + 1 - i.length).join(r) + e;
98		}, y = {
99			s: v,
100			z: function(e) {
101				var n = -e.utcOffset(), r = Math.abs(n), i = Math.floor(r / 60), a = r % 60;
102				return (n <= 0 ? "+" : "-") + v(i, 2, "0") + ":" + v(a, 2, "0");
103			},
104			m: function e(n, r) {
105				if (n.date() < r.date()) return -e(r, n);
106				var i = 12 * (r.year() - n.year()) + (r.month() - n.month()), a = n.clone().add(i, u), o = r - a < 0, s = n.clone().add(i + (o ? -1 : 1), u);
107				return +(-(i + (r - a) / (o ? a - s : s - a)) || 0);
108			},
109			a: function(e) {
110				return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
111			},
112			p: function(e) {
113				return {
114					M: u,
115					y: f,
116					w: l,
117					d: c,
118					D: p,
119					h: s,
120					m: o,
121					s: a,
122					ms: i,
123					Q: d
124				}[e] || String(e || "").toLowerCase().replace(/s$/, "");
125			},
126			u: function(e) {
127				return e === void 0;
128			}
129		}, b = "en", x = {};
130		x[b] = _;
131		var S = "$isDayjsObject", C = function(e) {
132			return e instanceof D || !(!e || !e[S]);
133		}, w = function e(n, r, i) {
134			var a;
135			if (!n) return b;
136			if (typeof n == "string") {
137				var o = n.toLowerCase();
138				x[o] && (a = o), r && (x[o] = r, a = o);
139				var s = n.split("-");
140				if (!a && s.length > 1) return e(s[0]);
141			} else {
142				var c = n.name;
143				x[c] = n, a = c;
144			}
145			return !i && a && (b = a), a || !i && b;
146		}, T = function(e, n) {
147			if (C(e)) return e.clone();
148			var r = typeof n == "object" ? n : {};
149			return r.date = e, r.args = arguments, new D(r);
150		}, E = y;
151		E.l = w, E.i = C, E.w = function(e, n) {
152			return T(e, {
153				locale: n.$L,
154				utc: n.$u,
155				x: n.$x,
156				$offset: n.$offset
157			});
158		};
159		var D = function() {
160			function _(e) {
161				this.$L = w(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[S] = !0;
162			}
163			var v = _.prototype;
164			return v.parse = function(e) {
165				this.$d = function(e) {
166					var n = e.date, r = e.utc;
167					if (n === null) return /* @__PURE__ */ new Date(NaN);
168					if (E.u(n)) return /* @__PURE__ */ new Date();
169					if (n instanceof Date) return new Date(n);
170					if (typeof n == "string" && !/Z$/i.test(n)) {
171						var i = n.match(h);
172						if (i) {
173							var a = i[2] - 1 || 0, o = (i[7] || "0").substring(0, 3);
174							return r ? new Date(Date.UTC(i[1], a, i[3] || 1, i[4] || 0, i[5] || 0, i[6] || 0, o)) : new Date(i[1], a, i[3] || 1, i[4] || 0, i[5] || 0, i[6] || 0, o);
175						}
176					}
177					return new Date(n);
178				}(e), this.init();
179			}, v.init = function() {
180				var e = this.$d;
181				this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
182			}, v.$utils = function() {
183				return E;
184			}, v.isValid = function() {
185				return this.$d.toString() !== m;
186			}, v.isSame = function(e, n) {
187				var r = T(e);
188				return this.startOf(n) <= r && r <= this.endOf(n);
189			}, v.isAfter = function(e, n) {
190				return T(e) < this.startOf(n);
191			}, v.isBefore = function(e, n) {
192				return this.endOf(n) < T(e);
193			}, v.$g = function(e, n, r) {
194				return E.u(e) ? this[n] : this.set(r, e);
195			}, v.unix = function() {
196				return Math.floor(this.valueOf() / 1e3);
197			}, v.valueOf = function() {
198				return this.$d.getTime();
199			}, v.startOf = function(e, n) {
200				var r = this, i = !!E.u(n) || n, d = E.p(e), m = function(e, n) {
201					var a = E.w(r.$u ? Date.UTC(r.$y, n, e) : new Date(r.$y, n, e), r);
202					return i ? a : a.endOf(c);
203				}, h = function(e, n) {
204					return E.w(r.toDate()[e].apply(r.toDate("s"), (i ? [
205						0,
206						0,
207						0,
208						0
209					] : [
210						23,
211						59,
212						59,
213						999
214					]).slice(n)), r);
215				}, g = this.$W, _ = this.$M, v = this.$D, y = "set" + (this.$u ? "UTC" : "");
216				switch (d) {
217					case f: return i ? m(1, 0) : m(31, 11);
218					case u: return i ? m(1, _) : m(0, _ + 1);
219					case l:
220						var b = this.$locale().weekStart || 0, x = (g < b ? g + 7 : g) - b;
221						return m(i ? v - x : v + (6 - x), _);
222					case c:
223					case p: return h(y + "Hours", 0);
224					case s: return h(y + "Minutes", 1);
225					case o: return h(y + "Seconds", 2);
226					case a: return h(y + "Milliseconds", 3);
227					default: return this.clone();
228				}
229			}, v.endOf = function(e) {
230				return this.startOf(e, !1);
231			}, v.$set = function(e, n) {
232				var r, l = E.p(e), d = "set" + (this.$u ? "UTC" : ""), m = (r = {}, r[c] = d + "Date", r[p] = d + "Date", r[u] = d + "Month", r[f] = d + "FullYear", r[s] = d + "Hours", r[o] = d + "Minutes", r[a] = d + "Seconds", r[i] = d + "Milliseconds", r)[l], h = l === c ? this.$D + (n - this.$W) : n;
233				if (l === u || l === f) {
vendor: 4,372 bytes, lines 234-373
234					var g = this.clone().set(p, 1);
235					g.$d[m](h), g.init(), this.$d = g.set(p, Math.min(this.$D, g.daysInMonth())).$d;
236				} else m && this.$d[m](h);
237				return this.init(), this;
238			}, v.set = function(e, n) {
239				return this.clone().$set(e, n);
240			}, v.get = function(e) {
241				return this[E.p(e)]();
242			}, v.add = function(i, d) {
243				var p, m = this;
244				i = Number(i);
245				var h = E.p(d), g = function(e) {
246					var n = T(m);
247					return E.w(n.date(n.date() + Math.round(e * i)), m);
248				};
249				if (h === u) return this.set(u, this.$M + i);
250				if (h === f) return this.set(f, this.$y + i);
251				if (h === c) return g(1);
252				if (h === l) return g(7);
253				var _ = (p = {}, p[o] = n, p[s] = r, p[a] = e, p)[h] || 1, v = this.$d.getTime() + i * _;
254				return E.w(v, this);
255			}, v.subtract = function(e, n) {
256				return this.add(-1 * e, n);
257			}, v.format = function(e) {
258				var n = this, r = this.$locale();
259				if (!this.isValid()) return r.invalidDate || m;
260				var i = e || "YYYY-MM-DDTHH:mm:ssZ", a = E.z(this), o = this.$H, s = this.$m, c = this.$M, l = r.weekdays, u = r.months, d = r.meridiem, f = function(e, r, a, o) {
261					return e && (e[r] || e(n, i)) || a[r].slice(0, o);
262				}, p = function(e) {
263					return E.s(o % 12 || 12, e, "0");
264				}, h = d || function(e, n, r) {
265					var i = e < 12 ? "AM" : "PM";
266					return r ? i.toLowerCase() : i;
267				};
268				return i.replace(g, (function(e, i) {
269					return i || function(e) {
270						switch (e) {
271							case "YY": return String(n.$y).slice(-2);
272							case "YYYY": return E.s(n.$y, 4, "0");
273							case "M": return c + 1;
274							case "MM": return E.s(c + 1, 2, "0");
275							case "MMM": return f(r.monthsShort, c, u, 3);
276							case "MMMM": return f(u, c);
277							case "D": return n.$D;
278							case "DD": return E.s(n.$D, 2, "0");
279							case "d": return String(n.$W);
280							case "dd": return f(r.weekdaysMin, n.$W, l, 2);
281							case "ddd": return f(r.weekdaysShort, n.$W, l, 3);
282							case "dddd": return l[n.$W];
283							case "H": return String(o);
284							case "HH": return E.s(o, 2, "0");
285							case "h": return p(1);
286							case "hh": return p(2);
287							case "a": return h(o, s, !0);
288							case "A": return h(o, s, !1);
289							case "m": return String(s);
290							case "mm": return E.s(s, 2, "0");
291							case "s": return String(n.$s);
292							case "ss": return E.s(n.$s, 2, "0");
293							case "SSS": return E.s(n.$ms, 3, "0");
294							case "Z": return a;
295						}
296						return null;
297					}(e) || a.replace(":", "");
298				}));
299			}, v.utcOffset = function() {
300				return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
301			}, v.diff = function(i, p, m) {
302				var h, g = this, _ = E.p(p), v = T(i), y = (v.utcOffset() - this.utcOffset()) * n, b = this - v, x = function() {
303					return E.m(g, v);
304				};
305				switch (_) {
306					case f:
307						h = x() / 12;
308						break;
309					case u:
310						h = x();
311						break;
312					case d:
313						h = x() / 3;
314						break;
315					case l:
316						h = (b - y) / 6048e5;
317						break;
318					case c:
319						h = (b - y) / 864e5;
320						break;
321					case s:
322						h = b / r;
323						break;
324					case o:
325						h = b / n;
326						break;
327					case a:
328						h = b / e;
329						break;
330					default: h = b;
331				}
332				return m ? h : E.a(h);
333			}, v.daysInMonth = function() {
334				return this.endOf(u).$D;
335			}, v.$locale = function() {
336				return x[this.$L];
337			}, v.locale = function(e, n) {
338				if (!e) return this.$L;
339				var r = this.clone(), i = w(e, n, !0);
340				return i && (r.$L = i), r;
341			}, v.clone = function() {
342				return E.w(this.$d, this);
343			}, v.toDate = function() {
344				return new Date(this.valueOf());
345			}, v.toJSON = function() {
346				return this.isValid() ? this.toISOString() : null;
347			}, v.toISOString = function() {
348				return this.$d.toISOString();
349			}, v.toString = function() {
350				return this.$d.toUTCString();
351			}, _;
352		}(), O = D.prototype;
353		return T.prototype = O, [
354			["$ms", i],
355			["$s", a],
356			["$m", o],
357			["$H", s],
358			["$W", c],
359			["$M", u],
360			["$y", f],
361			["$D", p]
362		].forEach((function(e) {
363			O[e[1]] = function(n) {
364				return this.$g(n, e[0], e[1]);
365			};
366		})), T.extend = function(e, n) {
367			return e.$i ||= (e(n, D, T), !0), T;
368		}, T.locale = w, T.isDayjs = C, T.unix = function(e) {
369			return T(1e3 * e);
370		}, T.en = x[b], T.Ls = x, T.p = {}, T;
371	}));
372}));
373export { EventBox_default as n, EventContent_default as r, require_dayjs_min as 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.