PageSourceSearch

https://www.familie.de/dist/js/chunks/survey-BI0sp0yU.esm.min.js

js familie.de collected 2026-09-24 09:38:57 UTC 33,507 bytes, 569 lines download raw bytes

1(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`@keyframes glow-c2db5098{0%{filter:blur(80px)brightness()}to{filter:blur(100px)brightness(1.5)}}.alice-survey__navigation[data-v-c2db5098]{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:linear-gradient(#ffffff40,#ffffff40),linear-gradient(#0006,#0006);border-top:.5px solid #ffffff4d;justify-content:space-between;align-items:center;width:100%;height:80px;padding:0 1.2rem;font-size:1.4rem;line-height:2rem;display:flex;position:relative}.alice-survey__previous-slide-button[data-v-c2db5098]{opacity:0;cursor:pointer;color:#fffc;background:0 0;border:none;align-items:center;gap:4px;padding:0;transition:opacity .15s ease-out;display:flex}.alice-survey__previous-slide-button--show[data-v-c2db5098]{opacity:1}.alice-survey__next-slide-button[data-v-c2db5098]{opacity:1;cursor:pointer;touch-action:manipulation;color:#000c;-webkit-user-select:none;user-select:none;background-color:#fff;border:1px solid #0003;border-radius:12px;justify-content:center;align-items:center;gap:4px;padding-block:1.2rem;padding-inline:1.6rem 1.2rem;font-size:1.4rem;font-weight:700;line-height:1.8rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;display:inline-flex;position:relative;box-shadow:inset 0 0 #0000001a;text-decoration:none!important}.device--category-desktop .alice-survey__next-slide-button[data-v-c2db5098]{font-size:1.6rem}.alice-survey__next-slide-button[data-v-c2db5098]:hover,.alice-survey__next-slide-button[data-v-c2db5098]:focus,.alice-survey__next-slide-button.active[data-v-c2db5098]{color:#000c;background-color:#eceded}.alice-survey__next-slide-button svg[data-v-c2db5098]{fill:currentColor}.alice-survey__next-slide-button--disabled[data-v-c2db5098]{pointer-events:none;cursor:default;opacity:.5}.alice-survey__pagination[data-v-c2db5098]{color:#fffc;background:#ffffff1a;border:.5px solid #ffffff4d;border-radius:18px;padding:2.5px 12px;position:absolute;left:50%;transform:translate(-50%)}.alice-survey__previous-slide-button svg[data-v-c2db5098],.alice-survey__next-slide-button svg[data-v-c2db5098]{width:24px;height:24px;margin-inline:-3px}.alice-survey__markdown a[data-v-97bad4de]{color:inherit!important;text-decoration:underline!important}@keyframes glow-33cdfc57{0%{filter:blur(80px)brightness()}to{filter:blur(100px)brightness(1.5)}}.alice-survey__media[data-v-33cdfc57]{border-radius:4px;margin:0 auto;position:relative;overflow:hidden;box-shadow:0 4px 12px #00000026}.alice-survey__media-image[data-v-33cdfc57]{width:100%;border-radius:0!important}.alice-survey__media-iframe[data-v-33cdfc57]{aspect-ratio:16/9;border:none;display:block}.alice-survey__media-text[data-v-33cdfc57]{-webkit-user-select:none;user-select:none;pointer-events:none}.alice-survey__media-text-background[data-v-33cdfc57]{filter:brightness(.9);border-radius:0;width:100%;height:100%;position:absolute}.alice-survey__media-text-content[data-v-33cdfc57]{text-align:center;text-shadow:0 1px 1px #00000080;justify-content:center;align-items:center;min-height:200px;padding:2.4rem;font-size:2.2rem;font-weight:700;line-height:1.2;display:flex;position:relative}.device--category-desktop .alice-survey__media-text-content[data-v-33cdfc57]{min-height:365.62px;padding:4.8rem;font-size:3.4rem;line-height:4.3rem}.alice-survey__media-text-content[data-v-33cdfc57] :last-child{margin-bottom:0}.alice-survey__media-copyright[data-v-33cdfc57]{text-shadow:0 1px 2px #00000080;max-width:90%;font-size:1.2rem;font-weight:500;line-height:1.2rem;position:absolute;bottom:1.2rem;left:1.2rem}.alice-survey__media-copyright span[data-v-33cdfc57]{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}@keyframes glow-fa404754{0%{filter:blur(80px)brightness()}to{filter:blur(100px)brightness(1.5)}}.alice-survey__result--has-media .alice-survey__result-content[data-v-fa404754]{padding-top:112.5px}.alice-survey__result-background-image[data-v-fa404754]{z-index:0;opacity:.5;filter:blur(80px);will-change:animation;backface-visibility:hidden;width:100%;height:100%;animation:5s ease-in-out infinite alternate glow-fa404754;display:block;position:absolute;top:0;left:0;transform:translate(0,0)}.alice-survey__result-media[data-v-fa404754]{margin-block:0 -100px}.device--category-desktop .alice-survey__result-media[data-v-fa404754]{margin-block:1.2rem -100px}.alice-survey__result-media .alice-survey__media[data-v-fa404754]{border-radius:0}.alice-survey__result-content[data-v-fa404754]{background:#ffffff1a;padding:1.2rem}.alice-survey__result-text[data-v-fa404754]{padding:1.2rem}.alice-survey__result-text:has(.alice-survey__result-title) .alice-survey__result-description[data-v-fa404754]{margin-top:1.2rem}.alice-survey__result-title[data-v-fa404754]{text-wrap:pretty;text-align:center;font-size:2rem;font-weight:700;line-height:2.5rem}.alice-survey__result-description[data-v-fa404754]>:last-child{margin-bottom:0}.alice-survey__result-survey--green[data-v-fa404754],.alice-survey__result-survey--red[data-v-fa404754],.alice-survey__result-survey--yellow[data-v-fa404754]{justify-content:center;align-items:center;margin:2.4rem 0 1.2rem;display:flex;position:relative}.alice-survey__result-survey--green .alice-survey__result-survey-proportion[data-v-fa404754]{color:#7be539}.alice-survey__result-survey--green .alice-survey__result-survey-circle circle[data-v-fa404754]{stroke:#7be539}.alice-survey__result-survey--red .alice-survey__result-survey-proportion[data-v-fa404754]{color:#ff7a78}.alice-survey__result-survey--red .alice-survey__result-survey-circle circle[data-v-fa404754]{stroke:#ff7a78}.alice-survey__result-survey--yellow .alice-survey__result-survey-proportion[data-v-fa404754]{color:#ffed26}.alice-survey__result-survey--yellow .alice-survey__result-survey-circle circle[data-v-fa404754]{stroke:#ffed26}.alice-survey__result-survey-proportion[data-v-fa404754]{text-shadow:0 1px 1px #00000080;font-size:2.4rem;position:absolute}.alice-survey__result-survey-circle[data-v-fa404754]{filter:drop-shadow(0 1px 1px #00000080);width:160px;height:160px}.alice-survey__result-survey-circle circle[data-v-fa404754]{fill:none;transform-origin:50%;will-change:transform;transition:all 15ms linear;transform:rotate(270deg)}@keyframes glow-6a94821b{0%{filter:blur(80px)brightness()}to{filter:blur(100px)brightness(1.5)}}.alice-survey__label[data-v-6a94821b]{text-transform:uppercase;background:#000000b3;border-bottom-right-radius:24px;border-bottom-left-radius:24px;justify-content:center;align-items:center;gap:6.25px;width:fit-content;margin:-1.2rem auto 1.2rem;padding:8px 12px;font-size:1.8rem;line-height:2rem;display:flex}.alice-survey__proportion-bar[data-v-a7337646]{background:#00000080;width:100%;height:100%;font-size:1.4rem;position:absolute;top:0;left:0}.alice-survey__proportion-bar-fill[data-v-a7337646]{background:#0000004d;width:0;height:100%}.alice-survey__proportion-bar-value[data-v-a7337646]{font-size:1.6rem;position:absolute;top:50%;right:0;transform:translate(-50%,-50%)}@keyframes glow-ece835b9{0%{filter:blur(80px)brightness()}to{filter:blur(100px)brightness(1.5)}}.alice-survey__option[data-v-ece835b9]{cursor:pointer;background:#ffffff40;border:1.5px solid #0000;border-radius:12px;padding:14px;
1transition:box-shadow .15s ease-out,background .15s ease-out;display:flex;position:relative;overflow:hidden;box-shadow:0 4px 4px #00000040}.device--category-desktop .alice-survey__option[data-v-ece835b9]{padding:16px}.alice-survey__option[data-v-ece835b9]:not(.alice-survey__option--solved):hover{background:linear-gradient(#ffffff40,#ffffff40),linear-gradient(#0000004d,#0000004d)}.alice-survey__option--solved[data-v-ece835b9]{opacity:.6;box-shadow:none;cursor:default;pointer-events:none}.alice-survey__option--selected[data-v-ece835b9]{opacity:1;background:linear-gradient(#ffffff40,#ffffff40),linear-gradient(#0006,#0006);border:1.5px solid #fff;box-shadow:0 2px 2px #00000040}.alice-survey__option--has-media[data-v-ece835b9]{flex-direction:column;gap:1.2rem;padding:0 0 1.2rem!important}.alice-survey__option--has-media .alice-survey__media[data-v-ece835b9]{box-shadow:none;aspect-ratio:16/9;border-bottom-right-radius:0;border-bottom-left-radius:0}.alice-survey__option--has-media .alice-survey__media-image[data-v-ece835b9]{max-height:unset}.alice-survey__option--has-media .alice-survey__option-content[data-v-ece835b9]{margin-left:1.2rem}.alice-survey__option-content[data-v-ece835b9]{z-index:0;gap:8px;max-width:calc(100% - 50px);display:flex}.alice-survey__option-title[data-v-ece835b9]{font-size:1.6rem;line-height:2rem}.device--category-desktop .alice-survey__option-title[data-v-ece835b9]{font-size:1.8rem}.alice-survey__option-icon svg[data-v-ece835b9]{width:20px;height:20px;display:block}@keyframes glow-b1f73ecf{0%{filter:blur(80px)brightness()}to{filter:blur(100px)brightness(1.5)}}.alice-survey__slide-background-image[data-v-b1f73ecf]{z-index:0;opacity:.5;filter:blur(80px);will-change:animation;backface-visibility:hidden;width:100%;height:100%;animation:5s ease-in-out infinite alternate glow-b1f73ecf;display:block;position:absolute;top:0;left:0;transform:translate(0,0)}.alice-survey__slide--has-media .alice-survey__slide-content[data-v-b1f73ecf]{padding-top:112.5px}.alice-survey__slide-media[data-v-b1f73ecf]{z-index:1;margin-block:0 -100px;position:relative}.alice-survey__slide-media .alice-survey__media[data-v-b1f73ecf]{border-radius:0}.alice-survey__slide-media .alice-survey__label[data-v-b1f73ecf]{margin:0;position:absolute;top:0;left:50%;transform:translate(-50%)}.alice-survey__slide-content[data-v-b1f73ecf]{z-index:0;background:#ffffff1a;border:.5px solid #ffffff4d;padding:1.2rem;position:relative}.alice-survey__slide-header[data-v-b1f73ecf]{margin-bottom:1.2rem}.alice-survey__slide-title[data-v-b1f73ecf]{text-align:center;text-wrap:pretty;margin-bottom:1.2rem;font-size:2rem;font-weight:700;line-height:2.5rem}.alice-survey__slide-options[data-v-b1f73ecf]{grid-template-columns:1fr;gap:1.2rem;padding:0;list-style:none;display:grid}.device--category-desktop .alice-survey__slide-options[data-v-b1f73ecf]{grid-template-columns:1fr 1fr}@keyframes glow{0%{filter:blur(80px)brightness()}to{filter:blur(100px)brightness(1.5)}}.alice-survey{color:#fff;background:linear-gradient(#0009 0% 100%),linear-gradient(45deg,#002e07b3 0%,#0000 40% 40%,#000 100%),linear-gradient(135deg,#00813c 0%,#0000 80%),linear-gradient(135deg,#0000 20%,#0576b9 100%),#000;border-radius:12px;position:relative;overflow:hidden}.alice-survey__slides{width:100%;margin:0;padding:0;list-style:none}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2import { n as e, r as t } from "./rolldown-runtime-BEVGH_SI.esm.min.js";
3import { H as n, V as r, W as i, m as a, n as o, p as s, t as c } from "./utils-B4A2xwrN.esm.min.js";
4import { n as l, t as ee } from "./error-logger-B5ObxGrl.esm.min.js";
5import { r as u, t as d } from "./tracking-BYzwbOl5.esm.min.js";
6import { I as te, P as f, R as p } from "./@vue-shared-CbyUmf7D.esm.min.js";
7import { A as m, _ as ne, p as h, v as re } from "./@vue-reactivity-B3Dai_ob.esm.min.js";
8import { E as g, K as _, O as ie, P as ae, S as oe, T as se, W as ce, c as v, d as y, g as b, h as x, j as S, l as C, r as le, s as w, u as T } from "./@vue-runtime-core-BThfqZSV.esm.min.js";
9import { c as E, r as ue } from "./@vue-runtime-dom-GRp1zN55.esm.min.js";
10import { t as D } from "./vue-DTYvJ-jE.esm.min.js";
11import { n as O, t as k } from "./plugin-vue-export-helper-B5H_1nZc.esm.min.js";
12import { n as de, r as A, t as fe } from "./pinia-Cyqg-i5h.esm.min.js";
13import { n as pe, t as j } from "./marked-Bresfa5q.esm.min.js";
14var M, N, P, F, I, L = e(() => {
15	l(), s(), n(), M = r("alice-quiz-uuid") || "", N = (e) => {
16		try {
17			M === "" && (M = window.crypto?.randomUUID() ?? "", i("alice-quiz-uuid", M));
18			let t = (e?.slideState?.options || []).filter((e) => e.selected).map((e) => ({
19				id: e.optionId,
20				user_input: null
21			})) || [];
22			a(`https://quiz.stroeermediabrands.de/pub/quizzes/${e.quizId}/question/${e.slideState.slideId}/answer`, {
23				answers: t,
24				finished: e.isResultSlide,
25				result: e.result || "",
26				sessionId: M,
27				started: e.isFirstQuestion
28			});
29		} catch {
30			ee(/* @__PURE__ */ Error("Survey | Error tracking progress"));
31		}
32	};
33}), R = e(() => {
34	A(), D(), L(), P = de("survey", {
35		state: () => ({
36			currentIndex: 0,
37			hasMultiSelectOptions: !1,
38			shuffleAnswers: !1,
39			survey: h({}),
40			slideStates: []
41		}),
42		actions: {
43			setUpSurvey(e) {
44				e && (this.survey = h(e), this.hasMultiSelectOptions = e.slides?.some((e) => e.multiselect) || !1, this.shuffleAnswers = e.settings?.shuffleAnswers || !1, this.slideStates = e.slides?.map((e) => ({
45					isSolved: !1,
46					showProportion: !1,
47					slideId: e.id,
48					options: e.options?.map((e) => ({
49						optionId: e.id,
50						selected: !1
51					})) ?? []
52				})) ?? []);
53			},
54			nextSlide() {
55				let e = this.slideStates?.[this.currentIndex] || {};
56				e.options?.some((e) => e.selected) && e && Object.keys(e).length > 0 && (e.isSolved = !0, e.showProportion ? (N({
57					isFirstQuestion: this.currentIndex === 0,
58					isResultSlide: !1,
59					quizId: this.survey.id,
60					result: "",
61					slideState: e
62				}), this.currentIndex += 1) : e.showProportion = !0);
63			},
64			previousSlide() {
65				let e = this.survey.slides?.length || 0;
66				this.currentIndex > 0 && this.currentIndex < e && --this.currentIndex;
67			}
68		}
69	});
70});
71function me(e, t) {
72	return S(), y("svg", F, [...t[0] ||= [v("path", { d: "M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z" }, null, -1)]]);
73}
74var z, B, he = e(() => {
75	D(), O(), F = {
76		class: "alice-survey__icon--chevron-left",
77		xmlns: "http://www.w3.org/2000/svg",
78		height: "24px",
79		viewBox: "0 -960 960 960",
80		width: "24px",
81		fill: "#ffffff"
82	}, I = k({}, [["render", me]]);
83});
84function ge(e, t) {
85	return S(), y("svg", z, [...t[0] ||= [v("path", { d: "M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z" }, null, -1)]]);
86}
87var V, H, U, W, G, K, q, _e, ve, ye, be, xe, Se, Ce, J, we, Te, Ee, De, Oe, ke, Ae, Y, je, Me, Ne, Pe, Fe = e(() => {
88	D(), O(), z = {
89		class: "alice-survey__icon--chevron-right",
90		xmlns: "http://www.w3.org/2000/svg",
91		height: "24px",
92		viewBox: "0 -960 960 960",
93		width: "24px",
94		fill: "#ffffff"
95	}, B = k({}, [["render", ge]]);
96}), Ie = e(() => {
97	D(), d(), R(), he(), Fe(), V = { class: "alice-survey__navigation" }, H = { class: "alice-survey__pagination" }, U = b({
98		__name: "Navigation",
99		setup(e) {
100			let t = P(), n = t.survey.slides?.length || 0, r = w(() => t.slideStates?.[t.currentIndex]?.options?.some((e) => e.selected)), i = w(() => t.currentIndex > 0), a = w(() => t.hasMultiSelectOptions && !t.slideStates?.[t.currentIndex]?.isSolved ? "Antworten" : "Weiter"), o = !1;
101			return (e, s) => (S(), y("div", V, [
102				v("button", {
103					class: f(["alice-survey__previous-slide-button", { "alice-survey__previous-slide-button--show": i.value }]),
104					onClick: s[0] ||= (e) => m(t).previousSlide()
105				}, [x(I), s[2] ||= v("span", null, "Zurück", -1)], 2),
106				v("div", H, p(m(t).currentIndex + 1) + " / " + p(m(n)), 1),
107				v("button", {
108					class: f(["alice-survey__next-slide-button", { "alice-survey__next-slide-button--disabled": !r.value }]),
109					onClick: s[1] ||= (e) => (o || t.currentIndex !== 0 || (o = !0, u({
110						event: "quiz-teaser-clicked",
111						eventCategory: "Quiz Standalone",
112						eventLabel: t.survey.id,
113						quizId: t.survey.id
114					})), void t.nextSlide())
115				}, [v("span", null, p(a.value), 1), x(B)], 2)
116			]));
117		}
118	});
119}), Le = e(() => {}), Re = e(() => {
120	Ie(), Ie(), Le(), O(), W = k(U, [["__scopeId", "data-v-c2db5098"]]);
121}), ze = e(() => {
122	D(), pe(), G = ["innerHTML"], K = b({
123		__name: "Markdown",
124		props: { markdown: {
125			type: String,
126			required: !0
127		} },
128		setup(e) {
129			let t = e, n = w(() => t.markdown ? j(t.markdown.replace(/^([ \t]+)?\n/gm, "\n&nbsp;\n\n"), {
130				renderer: new j.Renderer(),
131				breaks: !0,
132				sanitize: !0,
133				sanitizer: (e) => /^<\/?a/.test(e) ? e : r(e)
134			}) : ""), r = (e) => e.replace(/&(?!#?\w+;)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
135			return (e, t) => n.value ? (S(), y("div", {
136				key: 0,
137				class: "alice-survey__markdown",
138				innerHTML: n.value
139			}, null, 8, G)) : T("", !0);
140		}
141	});
142}), Be = e(() => {}), X = e(() => {
143	ze(), ze(), Be(), O(), q = k(K, [["__scopeId", "data-v-97bad4de"]]);
144}), Ve = e(() => {
145	D(), o(), R(), X(), _e = {
146		key: 0,
147		class: "alice-survey__media"
148	}, ve = {
149		key: 0,
150		class: "alice-survey__media-text"
151	}, ye = ["src", "srcset"], be = ["src", "srcset"], xe = ["src"], Se = {
152		key: 3,
153		class: "alice-survey__media-copyright"
154	}, Ce = b({
155		__name: "Media",
156		props: {
157			index: {
158				type: Number,
159				required: !0
160			},
161			media: {
162				type: Object,
163				required: !0
164			}
165		},
166		setup(e) {
167			let t = P(), n = e, r = c(n.media), i = w(() => t.currentIndex === n.index && n.media.type?.includes("video/")), a = w(() => n.media.type?.includes("image/")), o = w(() => n.media.type?.includes("text/")), s = () => {
168				switch (window.smbContext?.site) {
169					case "GIGA": return "https://cms-media.stroeermb.de/4d/0e/f9/7450a898ca21553293ee3f8d9d_AzRlNzA5YTUyZWY5.png";
170					case "KINO":
171					default: return "https://cms-media.stroeermb.de/24/b8/02/5f44dca221873a43f6576189c8_AzI4NTRhMTMzNTFj.png";
172					case "EBL": return "https://cms-media.stroeermb.de/3f/cf/58/5250496602b98b1a847ca31f52_AzNmNTA2MjhhNzM1.png";
173					case "FAM": return "https://cms-media.stroeermb.de/ba/88/4d/528c9669e0cb8a747e5a90f4ed_A2I4NWM2MDg0NTBl.png";
174				}
175			}, l = w(() => c({
176				content: s(),
177				type: "image/png"
178			}));
179			return (e, t) => n.media.content ? (S(), y("figure", _e, [
180				o.value ? (S(), y("div", ve, [l.value ? (S(), y("img", {
181					key: 0,
182					class: "alice-survey__media-text-background",
183					src: l.value.medium,
184					srcset: `${l.value.medium}, ${l.value.large} 2x`,
185					alt: ""
186				}, null, 8, ye)) : T("", !0), x(q, {
187					class: "alice-survey__media-text-content",
188					markdown: n.media.content
189				}, null, 8, ["markdown"])])) : T("", !0),
190				a.value && m(r) ? (S(), y("img", {
191					key: 1,
192					class: "alice-survey__media-image",
193					src: m(r).medium,
194					srcset: `${m(r).medium}, ${m(r).large} 2x`,
195					alt: ""
196				}, null, 8, be)) : T("", !0),
197				i.value ? (S(), y("iframe", {
198					key: 2,
199					class: "alice-survey__media-iframe",
200					src: n.media.content
201				}, null, 8, xe)) : T("", !0),
202				n.media.copyright?.text && a.value ? (S(), y("figcaption", Se, [v("span", null, "© " + p(n.media.copyright.text), 1)])) : T("", !0)
203			])) : T("", !0);
204		}
205	});
206}), He = e(() => {}), Z = e(() => {
207	Ve(), Ve(), He(), O(), J = k(Ce, [["__scopeId", "data-v-33cdfc57"]]);
208}), Ue = e(() => {
209	D(), o(), R(), L(), Z(), X(), we = ["src", "srcset"], Te = {
210		key: 1,
211		class: "alice-survey__result-media"
212	}, Ee = { class: "alice-survey__result-content" }, De = {
213		key: 0,
214		class: "alice-survey__result-text"
215	}, Oe = {
216		key: 0,
217		class: "alice-survey__result-title"
218	}, ke = { class: "alice-survey__result-survey-proportion" }, Ae = { class: "alice-survey__result-survey-circle" }, Y = ["stroke-dashoffset"], je = b({
219		__name: "Result",
220		props: { index: {
221			type: Number,
222			required: !0
223		} },
224		setup(e) {
225			let t = P(), n = e, r = ne({
226				backgroundImage: null,
227				result: {},
228				surveyDashoffset: 0,
229				surveyProportion: 0
230			}), i = null, a = 156 * Math.PI, o = t.survey.results || [];
231			ie(() => {
232				r.result = s(), r.backgroundImage = c(r.result.media), l(r.result.proportion), N({
233					isFirstQuestion: !1,
234					isResultSlide: !0,
235					quizId: t.survey.id,
236					result: r.result.proportion,
237					slideState: t.slideStates?.[t.currentIndex - 1] || {}
238				});
239			}), g(() => {
240				clearInterval(i);
241			});
242			let s = () => {
243				let e = {}, n = 0, r = 0, i = t.survey.slides?.length || 1, a = t.survey.stats?.agg || [];
244				t.slideStates.forEach(({ slideId: e, options: t }) => {
245					let n = (a.filter((t) => t.question_id === e) || []).reduce((e, t) => e.count > t.count ? e : t, { count: -1 });
246					(t.filter((e) => e.selected) || []).some((e) => e.optionId === n.answer_id) && (r += 1);
247				}), o.forEach((t) => {
248					r >= t.threshold && t.threshold >= n && (n = t.threshold, e = t);
249				});
250				let s = Math.round(r / i * 100);
251				return e.title ||= `${s}% deiner Antworten stimmen mit den meisten Teilnehmern überein!`, {
252					...e,
253					proportion: s
254				};
255			}, l = (e) => {
256				e && (i = setInterval(() => {
257					r.surveyProportion += 1, r.surveyDashoffset = a * (1 - r.surveyProportion / 100), r.surveyProportion >= e && clearInterval(i);
258				}, 15));
259			};
260			return (e, t) => {
261				return S(), y("div", { class: f(["alice-survey__result", { "alice-survey__result--has-media": r.result.media }]) }, [
262					r.backgroundImage ? (S(), y("img", {
263						key: 0,
264						class: "alice-survey__result-background-image",
265						src: r.backgroundImage.medium,
266						srcset: `${r.backgroundImage.medium}, ${r.backgroundImage.large} 2x`,
267						alt: ""
268					}, null, 8, we)) : T("", !0),
269					r.result.media ? (S(), y("div", Te, [x(J, {
270						index: n.index,
271						media: r.result.media
272					}, null, 8, ["index", "media"])])) : T("", !0),
273					v("div", Ee, [r.result.description || r.result.title && !r.result.media?.style ? (S(), y("div", De, [
274						r.result.title && !r.result.media?.style ? (S(), y("div", Oe, " 🎯 " + p(r.result.title), 1)) : T("", !0),
275						r.result.description ? (S(), C(q, {
276							key: 1,
277							class: "alice-survey__result-description",
278							markdown: r.result.description
279						}, null, 8, ["markdown"])) : T("", !0),
280						_(v("div", { class: f("alice-survey__result-survey alice-survey__result-survey--" + (i = r.surveyProportion, i && i !== 0 ? i >= 80 ? "green" : i >= 20 ? "yellow" : "red" : "green")) }, [v("div", ke, p(r.surveyProportion) + "% ", 1), (S(), y("svg", Ae, [v("circle", {
281							cx: 80,
282							cy: 80,
283							r: 78,
284							"stroke-linecap": "round",
285							"stroke-width": "4",
286							"stroke-dasharray": a,
287							"stroke-dashoffset": r.surveyDashoffset
288						}, null, 8, Y)]))], 2), [[E, r.surveyProportion > 0]])
289					])) : T("", !0)])
290				], 2);
291				var i;
292			};
293		}
294	});
295}), We = e(() => {}), Ge = e(() => {
296	Ue(), Ue(), We(), O(), Me = k(je, [["__scopeId", "data-v-fa404754"]]);
297});
298function Ke(e, t) {
299	return S(), y("svg", Ne, [...t[0] ||= [v("path", { d: "M400-240q-33 0-56.5-23.5T320-320v-50q-57-39-88.5-100T200-600q0-117 81.5-198.5T480-880q117 0 198.5 81.5T760-600q0 69-31.5 129.5T640-370v50q0 33-23.5 56.5T560-240H400Zm0-80h160v-92l34-24q41-28 63.5-71.5T680-600q0-83-58.5-141.5T480-800q-83 0-141.5 58.5T280-600q0 49 22.5 92.5T366-436l34 24v92Zm0 240q-1
2997 0-28.5-11.5T360-120v-40h240v40q0 17-11.5 28.5T560-80H400Zm80-520Z" }, null, -1)]]);
300}
301var qe, Je, Q, Ye, Xe, Ze = e(() => {
302	D(), O(), Ne = {
303		class: "alice-survey__icon--lightbulb",
304		xmlns: "http://www.w3.org/2000/svg",
305		height: "24px",
306		viewBox: "0 -960 960 960",
307		width: "24px",
308		fill: "#ffffff"
309	}, Pe = k({}, [["render", Ke]]);
310}), Qe = e(() => {
311	D(), Ze(), qe = { class: "alice-survey__label" }, Je = b({
312		__name: "Label",
313		props: { label: {
314			type: String,
315			required: !0
316		} },
317		setup(e) {
318			let t = e;
319			return (e, n) => (S(), y("div", qe, [x(Pe), v("span", null, p(t.label), 1)]));
320		}
321	});
322}), $e = e(() => {}), et = e(() => {
323	Qe(), Qe(), $e(), O(), Q = k(Je, [["__scopeId", "data-v-6a94821b"]]);
324});
325function tt(e, t) {
326	return S(), y("svg", Ye, [...t[0] ||= [v("path", { d: "M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Z" }, null, -1)]]);
327}
328var nt, rt, it = e(() => {
329	D(), O(), Ye = {
330		class: "alice-survey__icon--checkbox",
331		xmlns: "http://www.w3.org/2000/svg",
332		height: "24px",
333		viewBox: "0 -960 960 960",
334		width: "24px",
335		fill: "#ffffff"
336	}, Xe = k({}, [["render", tt]]);
337});
338function at(e, t) {
339	return S(), y("svg", nt, [...t[0] ||= [v("path", { d: "m424-312 282-282-56-56-226 226-114-114-56 56 170 170ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z" }, null, -1)]]);
340}
341var ot, st, ct, lt, ut, dt, ft = e(() => {
342	D(), O(), nt = {
343		class: "alice-survey__icon--checkbox-fill",
344		xmlns: "http://www.w3.org/2000/svg",
345		height: "24px",
346		viewBox: "0 -960 960 960",
347		width: "24px",
348		fill: "#ffffff"
349	}, rt = k({}, [["render", at]]);
350}), pt = e(() => {
351	D(), R(), ot = { class: "alice-survey__proportion-bar" }, st = { class: "alice-survey__proportion-bar-value" }, ct = b({
352		__name: "ProportionBar",
353		props: {
354			index: {
355				type: Number,
356				required: !0
357			},
358			optionId: {
359				type: String,
360				required: !0
361			}
362		},
363		setup(e) {
364			let t = P(), n = re(0), r = e, i = null;
365			ie(() => {
366				let e = a() || 0;
367				e > 0 && (i = setInterval(() => {
368					n.value += 1, n.value >= e && clearInterval(i);
369				}, 15));
370			}), g(() => {
371				clearInterval(i);
372			});
373			let a = () => {
374				try {
375					let e = t.survey.slides?.[r.index] || {}, n = t.survey.stats?.agg || [], i = (n.filter((t) => t.question_id === e.id) || []).reduce((e, t) => e + t.count, 0) || 1, a = n.find((e) => r.optionId === e.answer_id)?.count ?? 0;
376					return a ? Math.round(a / i * 100) : 0;
377				} catch {
378					return 0;
379				}
380			};
381			return (e, t) => _((S(), y("div", ot, [v("div", {
382				class: "alice-survey__proportion-bar-fill",
383				style: te({ width: `${n.value}%` })
384			}, null, 4), v("span", st, p(n.value) + "%", 1)], 512)), [[E, n.value > 0]]);
385		}
386	});
387}), mt = e(() => {}), ht = e(() => {
388	pt(), pt(), mt(), O(), lt = k(ct, [["__scopeId", "data-v-a7337646"]]);
389});
390function gt(e, t) {
391	return S(), y("svg", ut, [...t[0] ||= [v("path", { d: "M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Z" }, null, -1)]]);
392}
393var _t, vt, yt = e(() => {
394	D(), O(), ut = {
395		class: "alice-survey__icon--radio-button",
396		xmlns: "http://www.w3.org/2000/svg",
397		height: "24px",
398		viewBox: "0 -960 960 960",
399		width: "24px",
400		fill: "#ffffff"
401	}, dt = k({}, [["render", gt]]);
402});
403function bt(e, t) {
404	return S(), y("svg", _t, [...t[0] ||= [v("path", { d: "M480-280q83 0 141.5-58.5T680-480q0-83-58.5-141.5T480-680q-83 0-141.5 58.5T280-480q0 83 58.5 141.5T480-280Zm0 200q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Z" }, null, -1)]]);
405}
406var xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, Ft, It, Lt, Rt, zt, Bt, Vt = e(() => {
407	D(), O(), _t = {
408		class: "alice-survey__icon--radio-button-fill",
409		xmlns: "http://www.w3.org/2000/svg",
410		height: "24px",
411		viewBox: "0 -960 960 960",
412		width: "24px",
413		fill: "#ffffff"
414	}, vt = k({}, [["render", bt]]);
415}), Ht = e(() => {
416	D(), d(), R(), it(), ft(), Z(), ht(), yt(), Vt(), xt = ["tabindex"], St = {
417		key: 0,
418		class: "alice-survey__option-media"
419	}, Ct = { class: "alice-survey__option-content" }, wt = { class: "alice-survey__option-icon" }, Tt = { class: "alice-survey__option-title" }, Et = b({
420		__name: "Option",
421		props: {
422			index: {
423				type: Number,
424				required: !0
425			},
426			option: {
427				type: Object,
428				required: !0
429			}
430		},
431		setup(e) {
432			let t = P(), n = e, r = !1, i = t.survey.slides?.[n.index]?.multiselect || !1, a = w(() => t.slideStates?.[n.index] || {}), o = w(() => t.slideStates?.[n.index]?.options?.find((e) => e.optionId === n.option.id) || {}), s = w(() => n.option.title ? n.option.title : n.option.media?.type.includes("video/") ? "Dieses Video auswählen" : n.option.media?.type.includes("image/") ? "Dieses Bild auswählen" : "");
433			return (e, c) => (S(), y("li", {
434				class: f(["alice-survey__option", {
435					"alice-survey__option--has-media": n.option.media,
436					"alice-survey__option--selected": o.value.selected,
437					"alice-survey__option--solved": a.value.isSolved
438				}
438]),
439				tabindex: a.value.isSolved ? -1 : 0,
440				onClick: c[0] ||= (e) => {
441					a.value.isSolved || (t.$patch((e) => {
442						let t = e.slideStates[n.index].options;
443						i ? t.find((e) => e.optionId === n.option.id).selected = !o.value.selected : t.forEach((e) => {
444							e.selected = e.optionId === n.option.id;
445						});
446					}), r || (r = !0, u({
447						event: "quiz-question-answered",
448						quizId: t.survey.id,
449						quizType: t.survey.type,
450						quizCount: t.currentIndex + 1,
451						quizTotalCount: t.survey.slides?.length || 0,
452						quizTitle: t.survey.title
453					})), t.hasMultiSelectOptions || t.nextSlide());
454				}
455			}, [
456				n.option.media ? (S(), y("div", St, [x(J, {
457					index: n.index,
458					media: n.option.media
459				}, null, 8, ["index", "media"])])) : T("", !0),
460				a.value.showProportion ? (S(), C(lt, {
461					key: 1,
462					index: n.index,
463					"option-id": n.option.id
464				}, null, 8, ["index", "option-id"])) : T("", !0),
465				v("div", Ct, [v("span", wt, [m(i) && o.value.selected ? (S(), C(rt, { key: 0 })) : m(i) ? (S(), C(Xe, { key: 1 })) : T("", !0), !m(i) && o.value.selected ? (S(), C(vt, { key: 2 })) : m(i) ? T("", !0) : (S(), C(dt, { key: 3 }))]), v("span", Tt, p(s.value), 1)])
466			], 10, xt));
467		}
468	});
469}), Ut = e(() => {}), Wt = e(() => {
470	Ht(), Ht(), Ut(), O(), Dt = k(Et, [["__scopeId", "data-v-ece835b9"]]);
471}), Gt = e(() => {
472	D(), d(), o(), R(), et(), X(), Z(), Wt(), Ot = ["src", "srcset"], kt = {
473		key: 1,
474		class: "alice-survey__slide-media"
475	}, At = { class: "alice-survey__slide-content" }, jt = {
476		key: 1,
477		class: "alice-survey__slide-header"
478	}, Mt = {
479		key: 0,
480		class: "alice-survey__slide-title"
481	}, Nt = { class: "alice-survey__slide-options" }, Pt = b({
482		__name: "Slide",
483		props: { index: {
484			type: Number,
485			required: !0
486		} },
487		setup(e) {
488			let t = P(), n = e, r = t.survey.slides?.[n.index] || {}, i = r.title && !r.media?.style, a = c(r.media), o = w(() => t.survey.label && t.currentIndex === 0), s = w(() => t.shuffleAnswers ? [...r.options || []].sort(() => Math.random() - .5) : r.options || []);
489			return ce(() => t.currentIndex, (e) => {
490				e === n.index && (u({
491					event: "quiz-question-initialization",
492					quizId: t.survey.id,
493					quizType: t.survey.type,
494					quizCount: t.currentIndex + 1,
495					quizTotalCount: t.survey.slides?.length || 0,
496					quizTitle: t.survey.title
497				}), u({
498					event: "quiz-question-visible",
499					quizId: t.survey.id,
500					quizType: t.survey.type,
501					quizCount: t.currentIndex + 1,
502					quizTotalCount: t.survey.slides?.length || 0,
503					quizTitle: t.survey.title
504				}));
505			}, { immediate: !0 }), (e, c) => (S(), y("div", { class: f(["alice-survey__slide", { "alice-survey__slide--has-media": m(r).media }]) }, [
506				m(a) ? (S(), y("img", {
507					key: 0,
508					class: "alice-survey__slide-background-image",
509					src: m(a).medium,
510					srcset: `${m(a).medium}, ${m(a).large} 2x`,
511					alt: ""
512				}, null, 8, Ot)) : T("", !0),
513				m(r).media ? (S(), y("div", kt, [x(J, {
514					index: n.index,
515					media: m(r).media
516				}, null, 8, ["index", "media"]), o.value ? (S(), C(Q, {
517					key: 0,
518					label: m(t).survey.label
519				}, null, 8, ["label"])) : T("", !0)])) : T("", !0),
520				v("div", At, [
521					o.value && !m(r).media ? (S(), C(Q, {
522						key: 0,
523						label: m(t).survey.label
524					}, null, 8, ["label"])) : T("", !0),
525					m(i) || m(r).description ? (S(), y("div", jt, [m(i) ? (S(), y("div", Mt, p(m(r).title), 1)) : T("", !0), m(r).description ? (S(), C(q, {
526						key: 1,
527						class: "alice-survey__slide-description",
528						markdown: m(r).description
529					}, null, 8, ["markdown"])) : T("", !0)])) : T("", !0),
530					v("ul", Nt, [(S(!0), y(le, null, ae(s.value || [], (e) => (S(), C(Dt, {
531						key: e.id,
532						index: n.index,
533						option: e
534					}, null, 8, ["index", "option"]))), 128))])
535				])
536			], 2));
537		}
538	});
539}), Kt = e(() => {}), qt = e(() => {
540	Gt(), Gt(), Kt(), O(), Ft = k(Pt, [["__scopeId", "data-v-b1f73ecf"]]);
541}), $ = e(() => {
542	D(), R(), Re(), Ge(), qt(), It = { class: "alice-survey" }, Lt = { class: "alice-survey__slides" }, Rt = b({
543		__name: "App",
544		setup(e) {
545			let t = P(), n = oe("surveyData"), r = w(() => t.currentIndex === (t.survey.slides?.length || 0)), i = w(() => t.survey?.slides || []);
546			se(() => {
547				t.setUpSurvey(n);
548			});
549			let a = (e) => Math.abs(t.currentIndex - e) <= 1, o = (e) => t.currentIndex === e;
550			return (e, t) => (S(), y("div", It, [v("ul", Lt, [(S(!0), y(le, null, ae(i.value, (e, t) => (S(), y("li", { key: e.id }, [a(t) ? _((S(), C(Ft, {
551				key: 0,
552				index: t
553			}, null, 8, ["index"])), [[E, o(t)]]) : T("", !0)]))), 128)), v("li", null, [r.value ? (S(), C(Me, {
554				key: 0,
555				index: i.value.length
556			}, null, 8, ["index"])) : T("", !0)])]), r.value ? T("", !0) : (S(), C(W, { key: 0 }))]));
557		}
558	});
559}), Jt = e(() => {}), Yt = e(() => {
560	$(), $(), Jt(), zt = Rt;
561}), Xt = t({ default: () => Bt }), Zt = e(() => {
562	A(), D(), Yt(), Bt = { init: (e, t) => {
563		if (e && t && Object.keys(t).length > 0) {
564			let n = ue(zt), r = fe();
565			n.provide("surveyData", t), n.use(r), n.mount(e);
566		}
567	} };
568});
569export { Xt as n, Zt 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.