@pie-element/mc-populated-blank 0.2.13-next.3 → 0.3.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/author/index.js +1172 -1150
- package/dist/author/index.js.map +1 -1
- package/dist/browser/author/index.js +7 -7
- package/dist/browser/{client-B0miu8E8.js → client-BAfWqkS6.js} +1024 -1080
- package/dist/browser/client-BAfWqkS6.js.map +1 -0
- package/dist/browser/controller/index.js +0 -2
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +354 -529
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/print/index.js +58 -58
- package/dist/browser/print/index.js.map +1 -1
- package/dist/controller/defaults.d.ts +0 -1
- package/dist/controller/index.d.ts +0 -2
- package/dist/controller/index.js +0 -2
- package/dist/controller/index.js.map +1 -1
- package/dist/delivery/computeLayoutStyle.d.ts +0 -1
- package/dist/delivery/index.js +1438 -1614
- package/dist/delivery/index.js.map +1 -1
- package/dist/index.iife.d.ts +0 -2
- package/dist/index.iife.js +105 -30
- package/dist/index.js +1438 -1614
- package/dist/index.js.map +1 -1
- package/dist/print/index.js +1318 -1299
- package/dist/print/index.js.map +1 -1
- package/dist/shared/types.d.ts +9 -1
- package/module/print.js +2312 -0
- package/module/print.js.map +1 -0
- package/package.json +13 -7
- package/dist/browser/client-B0miu8E8.js.map +0 -1
|
@@ -1,110 +1,7 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, P as s, S as c, T as l, _ as u, a as d, c as f, d as p, f as m, g as h, h as g, i as _, j as v, k as y, l as b, m as x, n as S, o as C, r as w, s as T, t as E, u as
|
|
2
|
-
import { t as
|
|
3
|
-
//#region ../../lib-svelte/
|
|
4
|
-
var
|
|
5
|
-
50: "#e8f5e9",
|
|
6
|
-
500: "#4caf50"
|
|
7
|
-
}, N = {
|
|
8
|
-
200: "#9fa8da",
|
|
9
|
-
500: "#3f51b5",
|
|
10
|
-
800: "#283593"
|
|
11
|
-
}, P = { 500: "#ff9800" }, F = {
|
|
12
|
-
200: "#f48fb1",
|
|
13
|
-
900: "#880e4f",
|
|
14
|
-
A400: "#f50057"
|
|
15
|
-
}, I = {
|
|
16
|
-
50: "#ffebee",
|
|
17
|
-
700: "#d32f2f"
|
|
18
|
-
}, L = {
|
|
19
|
-
TEXT: "black",
|
|
20
|
-
DISABLED: "grey",
|
|
21
|
-
DISABLED_SECONDARY: "#ABABAB",
|
|
22
|
-
CORRECT: M[500],
|
|
23
|
-
CORRECT_SECONDARY: M[50],
|
|
24
|
-
CORRECT_TERTIARY: "#0EA449",
|
|
25
|
-
CORRECT_WITH_ICON: "#087D38",
|
|
26
|
-
INCORRECT: P[500],
|
|
27
|
-
INCORRECT_SECONDARY: I[50],
|
|
28
|
-
INCORRECT_WITH_ICON: "#BF0D00",
|
|
29
|
-
MISSING: I[700],
|
|
30
|
-
MISSING_WITH_ICON: "#6A78A1",
|
|
31
|
-
PRIMARY: N[500],
|
|
32
|
-
PRIMARY_LIGHT: N[200],
|
|
33
|
-
PRIMARY_DARK: N[800],
|
|
34
|
-
SECONDARY: F.A400,
|
|
35
|
-
SECONDARY_LIGHT: F[200],
|
|
36
|
-
SECONDARY_DARK: F[900],
|
|
37
|
-
TERTIARY: "#146EB3",
|
|
38
|
-
TERTIARY_LIGHT: "#D0E2F0",
|
|
39
|
-
BACKGROUND: "rgba(255,255,255,0)",
|
|
40
|
-
BACKGROUND_DARK: "#ECEDF1",
|
|
41
|
-
DROPDOWN_BACKGROUND: "#E0E1E6",
|
|
42
|
-
SECONDARY_BACKGROUND: "rgba(241,241,241,1)",
|
|
43
|
-
BORDER: "#9A9A9A",
|
|
44
|
-
BORDER_LIGHT: "#D1D1D1",
|
|
45
|
-
BORDER_DARK: "#646464",
|
|
46
|
-
BORDER_GRAY: "#7E8494",
|
|
47
|
-
BLACK: "#000000",
|
|
48
|
-
WHITE: "#ffffff",
|
|
49
|
-
TRANSPARENT: "transparent",
|
|
50
|
-
FOCUS_CHECKED: "#BBDEFB",
|
|
51
|
-
FOCUS_CHECKED_BORDER: "#1565C0",
|
|
52
|
-
FOCUS_UNCHECKED: "#E0E0E0",
|
|
53
|
-
FOCUS_UNCHECKED_BORDER: "#757575",
|
|
54
|
-
BLUE_GREY100: "#F3F5F7",
|
|
55
|
-
BLUE_GREY300: "#C0C3CF",
|
|
56
|
-
BLUE_GREY600: "#7E8494",
|
|
57
|
-
BLUE_GREY900: "#152452",
|
|
58
|
-
FADED_PRIMARY: "#DCDAFB"
|
|
59
|
-
};
|
|
60
|
-
Object.freeze(L);
|
|
61
|
-
var R = ((e) => (...t) => {
|
|
62
|
-
let n = t.pop();
|
|
63
|
-
return t.reduceRight((t, n) => `var(--${e}-${n}, ${t})`, n);
|
|
64
|
-
})("pie"), z = {
|
|
65
|
-
text: () => R("text", L.TEXT),
|
|
66
|
-
disabled: () => R("disabled", L.DISABLED),
|
|
67
|
-
disabledSecondary: () => R("disabled-secondary", L.DISABLED_SECONDARY),
|
|
68
|
-
correct: () => R("correct", L.CORRECT),
|
|
69
|
-
correctSecondary: () => R("correct-secondary", L.CORRECT_SECONDARY),
|
|
70
|
-
correctTertiary: () => R("correct-tertiary", L.CORRECT_TERTIARY),
|
|
71
|
-
correctWithIcon: () => R("correct-icon", L.CORRECT_WITH_ICON),
|
|
72
|
-
incorrect: () => R("incorrect", L.INCORRECT),
|
|
73
|
-
incorrectWithIcon: () => R("incorrect-icon", L.INCORRECT_WITH_ICON),
|
|
74
|
-
incorrectSecondary: () => R("incorrect-secondary", L.INCORRECT_SECONDARY),
|
|
75
|
-
missing: () => R("missing", L.MISSING),
|
|
76
|
-
missingWithIcon: () => R("missing-icon", L.MISSING_WITH_ICON),
|
|
77
|
-
primary: () => R("primary", L.PRIMARY),
|
|
78
|
-
primaryLight: () => R("primary-light", L.PRIMARY_LIGHT),
|
|
79
|
-
primaryDark: () => R("primary-dark", L.PRIMARY_DARK),
|
|
80
|
-
primaryText: () => R("primary-text", "text", L.TEXT),
|
|
81
|
-
fadedPrimary: () => R("faded-primary", L.FADED_PRIMARY),
|
|
82
|
-
secondary: () => R("secondary", L.SECONDARY),
|
|
83
|
-
secondaryLight: () => R("secondary-light", L.SECONDARY_LIGHT),
|
|
84
|
-
secondaryDark: () => R("secondary-dark", L.SECONDARY_DARK),
|
|
85
|
-
secondaryText: () => R("secondary-text", "text", L.TEXT),
|
|
86
|
-
background: () => R("background", L.BACKGROUND),
|
|
87
|
-
backgroundDark: () => R("background-dark", L.BACKGROUND_DARK),
|
|
88
|
-
secondaryBackground: () => R("secondary-background", L.SECONDARY_BACKGROUND),
|
|
89
|
-
dropdownBackground: () => R("dropdown-background", L.DROPDOWN_BACKGROUND),
|
|
90
|
-
tertiary: () => R("tertiary", L.TERTIARY),
|
|
91
|
-
tertiaryLight: () => R("tertiary-light", L.TERTIARY_LIGHT),
|
|
92
|
-
border: () => R("border", L.BORDER),
|
|
93
|
-
borderLight: () => R("border-light", L.BORDER_LIGHT),
|
|
94
|
-
borderDark: () => R("border-dark", L.BORDER_DARK),
|
|
95
|
-
borderGray: () => R("border-gray", L.BORDER_GRAY),
|
|
96
|
-
black: () => R("black", L.BLACK),
|
|
97
|
-
white: () => R("white", L.WHITE),
|
|
98
|
-
transparent: () => L.TRANSPARENT,
|
|
99
|
-
focusChecked: () => R("focus-checked", L.FOCUS_CHECKED),
|
|
100
|
-
focusCheckedBorder: () => R("focus-checked-border", L.FOCUS_CHECKED_BORDER),
|
|
101
|
-
focusUnchecked: () => R("focus-unchecked", L.FOCUS_UNCHECKED),
|
|
102
|
-
focusUncheckedBorder: () => R("focus-unchecked-border", L.FOCUS_UNCHECKED_BORDER),
|
|
103
|
-
blueGrey100: () => R("blue-grey-100", L.BLUE_GREY100),
|
|
104
|
-
blueGrey300: () => R("blue-grey-300", L.BLUE_GREY300),
|
|
105
|
-
blueGrey600: () => R("blue-grey-600", L.BLUE_GREY600),
|
|
106
|
-
blueGrey900: () => R("blue-grey-900", L.BLUE_GREY900)
|
|
107
|
-
}, B = class e extends CustomEvent {
|
|
1
|
+
import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, P as s, S as c, T as l, _ as u, a as d, c as f, d as p, f as m, g as h, h as g, i as _, j as v, k as y, l as b, m as x, n as S, o as C, r as w, s as T, t as E, u as D, v as O, w as k, x as A, y as j } from "../client-BAfWqkS6.js";
|
|
2
|
+
import { t as M } from "../layoutLimits-ATKOwLHb.js";
|
|
3
|
+
//#region ../../lib-svelte/delivery-events/dist/index2.js
|
|
4
|
+
var N = class e extends CustomEvent {
|
|
108
5
|
static {
|
|
109
6
|
this.TYPE = "model-set";
|
|
110
7
|
}
|
|
@@ -119,7 +16,7 @@ var R = ((e) => (...t) => {
|
|
|
119
16
|
}
|
|
120
17
|
}), this.component = t, this.complete = n;
|
|
121
18
|
}
|
|
122
|
-
},
|
|
19
|
+
}, P = class e extends CustomEvent {
|
|
123
20
|
static {
|
|
124
21
|
this.TYPE = "session-changed";
|
|
125
22
|
}
|
|
@@ -133,12 +30,12 @@ var R = ((e) => (...t) => {
|
|
|
133
30
|
}
|
|
134
31
|
}), this.component = t, this.complete = n;
|
|
135
32
|
}
|
|
136
|
-
},
|
|
33
|
+
}, F = (e) => {
|
|
137
34
|
let t = e;
|
|
138
35
|
return t ? typeof t.onSessionChange == "function" || typeof t.onAudioStarted == "function" || typeof t.onAudioEnded == "function" : !1;
|
|
139
36
|
};
|
|
140
|
-
function
|
|
141
|
-
let n = t.hostPredicate ??
|
|
37
|
+
function I(e, t = {}) {
|
|
38
|
+
let n = t.hostPredicate ?? F, r = e;
|
|
142
39
|
for (; r;) {
|
|
143
40
|
if (n(r)) return r;
|
|
144
41
|
r = r.parentElement;
|
|
@@ -149,42 +46,42 @@ function U(e, t = {}) {
|
|
|
149
46
|
}
|
|
150
47
|
return null;
|
|
151
48
|
}
|
|
152
|
-
function
|
|
153
|
-
let a =
|
|
154
|
-
return a ? typeof a.onSessionChange == "function" ? (a.onSessionChange(i), a) : (a.dispatchEvent(new
|
|
49
|
+
function L({ sourceEl: e, fallbackSelector: t, component: n, complete: r, session: i }) {
|
|
50
|
+
let a = I(e, { fallbackSelector: t });
|
|
51
|
+
return a ? typeof a.onSessionChange == "function" ? (a.onSessionChange(i), a) : (a.dispatchEvent(new P(n, r)), a) : null;
|
|
155
52
|
}
|
|
156
53
|
//#endregion
|
|
157
54
|
//#region src/delivery/computeAudioMode.ts
|
|
158
|
-
function
|
|
55
|
+
function ee(e) {
|
|
159
56
|
return e.hasAudio ? e.audioUrl ? e.useFeatureButtonAudio ? "feature-button" : "controls" : "error" : "none";
|
|
160
57
|
}
|
|
161
58
|
//#endregion
|
|
162
59
|
//#region src/delivery/AudioPlayer.svelte
|
|
163
|
-
var
|
|
60
|
+
var te = O("<audio class=\"sr-only pie-audio-player svelte-ypdwb3\" preload=\"metadata\" aria-hidden=\"true\" tabindex=\"-1\"></audio> <button class=\"listen-button pie-listen-button rli-feature-audio svelte-ypdwb3\" type=\"button\"><img/> <img/></button>", 1), ne = O("<button class=\"mt-2 text-sm underline pie-audio-autoplay-enable\" type=\"button\"> </button>"), R = O("<audio controls=\"\" class=\"w-full max-w-md pie-audio-player\" preload=\"metadata\"><track kind=\"captions\"/></audio> <!>", 1), re = O("<p class=\"text-sm text-red-700 pie-audio-error\" role=\"alert\"> </p>"), z = O("<div class=\"mb-4 audio-container pie-audio-container\"><!></div>"), B = {
|
|
164
61
|
hash: "svelte-ypdwb3",
|
|
165
62
|
code: ".listen-button.svelte-ypdwb3 {width:var(--mpb-listen-button-size, 128px);height:var(--mpb-listen-button-size, 128px);border:0;padding:0;background-color:transparent;cursor:pointer;z-index:1;}.listen-button.svelte-ypdwb3:hover {background-color:#e2f1fe;}.listen-feature-icon.svelte-ypdwb3 {width:var(--mpb-listen-button-size, 128px);height:var(--mpb-listen-button-size, 128px);object-fit:contain;display:none;}.listen-feature-icon.listen-active.svelte-ypdwb3 {display:block;}.sr-only.svelte-ypdwb3 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}"
|
|
166
63
|
};
|
|
167
|
-
function
|
|
168
|
-
a(p, !0),
|
|
64
|
+
function V(f, p) {
|
|
65
|
+
a(p, !0), D(f, B);
|
|
169
66
|
let m = {
|
|
170
67
|
IDLE: "idle",
|
|
171
68
|
PLAYING: "playing",
|
|
172
69
|
BLOCKED: "blocked",
|
|
173
70
|
PAUSED: "paused"
|
|
174
|
-
}, _ = S(p, "hasAudio", 7, !1), C = S(p, "audioUrl", 7), T = S(p, "useFeatureButtonAudio", 7, !1), E = S(p, "autoplayEnabled", 7, !1),
|
|
71
|
+
}, _ = S(p, "hasAudio", 7, !1), C = S(p, "audioUrl", 7), T = S(p, "useFeatureButtonAudio", 7, !1), E = S(p, "autoplayEnabled", 7, !1), O = S(p, "featureAudioSkin", 7), j = S(p, "uiText", 7), M = S(p, "locale", 7, ""), N = S(p, "onaudiostarted", 7), P = S(p, "onaudioended", 7), F = y(null), I = y(null), L = y(null), V = y(n(m.IDLE)), H = v(() => ee({
|
|
175
72
|
hasAudio: _(),
|
|
176
73
|
audioUrl: C(),
|
|
177
74
|
useFeatureButtonAudio: T()
|
|
178
|
-
})),
|
|
75
|
+
})), U = v(() => A(V) === m.PLAYING), W = v(() => A(V) === m.BLOCKED), ie = v(() => A(H) === "error" ? j().audioResourceUnavailable : "");
|
|
179
76
|
t(() => {
|
|
180
|
-
C(), o(
|
|
77
|
+
C(), o(V, m.IDLE, !0);
|
|
181
78
|
});
|
|
182
|
-
function
|
|
183
|
-
|
|
79
|
+
function ae() {
|
|
80
|
+
A(H) !== "none" && A(H) !== "error" && A(F) && A(F).play().catch(() => {});
|
|
184
81
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
187
|
-
|
|
82
|
+
function oe() {
|
|
83
|
+
A(H) !== "none" && A(H) !== "error" && A(F) && A(F).play().finally(() => {
|
|
84
|
+
A(V) === m.BLOCKED && o(V, m.PAUSED, !0);
|
|
188
85
|
});
|
|
189
86
|
}
|
|
190
87
|
function G(e, n, r) {
|
|
@@ -193,141 +90,118 @@ function ce(f, p) {
|
|
|
193
90
|
if (t) return t.addEventListener(n, r), () => t.removeEventListener(n, r);
|
|
194
91
|
});
|
|
195
92
|
}
|
|
196
|
-
G(() =>
|
|
197
|
-
o(
|
|
198
|
-
}), G(() =>
|
|
199
|
-
o(
|
|
200
|
-
}), G(() =>
|
|
201
|
-
!E() ||
|
|
202
|
-
o(
|
|
93
|
+
G(() => A(F), "playing", () => {
|
|
94
|
+
o(V, m.PLAYING, !0), N()?.();
|
|
95
|
+
}), G(() => A(F), "ended", () => {
|
|
96
|
+
o(V, m.PAUSED, !0), P()?.();
|
|
97
|
+
}), G(() => A(I), "click", () => ae()), G(() => A(L), "click", () => oe()), t(() => {
|
|
98
|
+
!E() || A(H) === "none" || A(H) === "error" || A(V) === m.IDLE && A(F) && C() && (o(V, m.PAUSED, !0), A(F).play().catch(() => {
|
|
99
|
+
o(V, m.BLOCKED, !0);
|
|
203
100
|
}));
|
|
204
101
|
});
|
|
205
102
|
function K(e = "") {
|
|
206
103
|
return e.toLowerCase().startsWith("es") ? "Escuchar" : "Listen";
|
|
207
104
|
}
|
|
208
|
-
function ue(e = "") {
|
|
209
|
-
return e.toLowerCase().startsWith("es") ? N().listenSilentAltEs ?? "Escuchar. Repetir las instrucciones." : N().listenSilentAlt ?? "Repeat instructions";
|
|
210
|
-
}
|
|
211
105
|
function q(e = "") {
|
|
212
|
-
return e.toLowerCase().startsWith("es") ?
|
|
106
|
+
return e.toLowerCase().startsWith("es") ? j().listenSilentAltEs ?? "Escuchar. Repetir las instrucciones." : j().listenSilentAlt ?? "Repeat instructions";
|
|
213
107
|
}
|
|
214
|
-
|
|
108
|
+
function J(e = "") {
|
|
109
|
+
return e.toLowerCase().startsWith("es") ? j().listenPlayingAltEs ?? "Escuchar. Estas son las instrucciones." : j().listenPlayingAlt ?? "Instructions are playing";
|
|
110
|
+
}
|
|
111
|
+
var se = {
|
|
215
112
|
get hasAudio() {
|
|
216
113
|
return _();
|
|
217
114
|
},
|
|
218
|
-
set hasAudio(
|
|
219
|
-
_(
|
|
115
|
+
set hasAudio(t = !1) {
|
|
116
|
+
_(t), e();
|
|
220
117
|
},
|
|
221
118
|
get audioUrl() {
|
|
222
119
|
return C();
|
|
223
120
|
},
|
|
224
|
-
set audioUrl(
|
|
225
|
-
C(
|
|
121
|
+
set audioUrl(t) {
|
|
122
|
+
C(t), e();
|
|
226
123
|
},
|
|
227
124
|
get useFeatureButtonAudio() {
|
|
228
125
|
return T();
|
|
229
126
|
},
|
|
230
|
-
set useFeatureButtonAudio(
|
|
231
|
-
T(
|
|
127
|
+
set useFeatureButtonAudio(t = !1) {
|
|
128
|
+
T(t), e();
|
|
232
129
|
},
|
|
233
130
|
get autoplayEnabled() {
|
|
234
131
|
return E();
|
|
235
132
|
},
|
|
236
|
-
set autoplayEnabled(
|
|
237
|
-
E(
|
|
238
|
-
},
|
|
239
|
-
get audioTranscript() {
|
|
240
|
-
return D();
|
|
241
|
-
},
|
|
242
|
-
set audioTranscript(e) {
|
|
243
|
-
D(e), v();
|
|
244
|
-
},
|
|
245
|
-
get showVisibleTranscript() {
|
|
246
|
-
return A();
|
|
247
|
-
},
|
|
248
|
-
set showVisibleTranscript(e) {
|
|
249
|
-
A(e), v();
|
|
250
|
-
},
|
|
251
|
-
get transcriptId() {
|
|
252
|
-
return j();
|
|
253
|
-
},
|
|
254
|
-
set transcriptId(e) {
|
|
255
|
-
j(e), v();
|
|
133
|
+
set autoplayEnabled(t = !1) {
|
|
134
|
+
E(t), e();
|
|
256
135
|
},
|
|
257
136
|
get featureAudioSkin() {
|
|
258
|
-
return
|
|
137
|
+
return O();
|
|
259
138
|
},
|
|
260
|
-
set featureAudioSkin(
|
|
261
|
-
|
|
139
|
+
set featureAudioSkin(t) {
|
|
140
|
+
O(t), e();
|
|
262
141
|
},
|
|
263
142
|
get uiText() {
|
|
264
|
-
return
|
|
143
|
+
return j();
|
|
265
144
|
},
|
|
266
|
-
set uiText(
|
|
267
|
-
|
|
145
|
+
set uiText(t) {
|
|
146
|
+
j(t), e();
|
|
268
147
|
},
|
|
269
148
|
get locale() {
|
|
270
|
-
return
|
|
149
|
+
return M();
|
|
271
150
|
},
|
|
272
|
-
set locale(
|
|
273
|
-
|
|
151
|
+
set locale(t = "") {
|
|
152
|
+
M(t), e();
|
|
274
153
|
},
|
|
275
154
|
get onaudiostarted() {
|
|
276
|
-
return
|
|
155
|
+
return N();
|
|
277
156
|
},
|
|
278
|
-
set onaudiostarted(
|
|
279
|
-
|
|
157
|
+
set onaudiostarted(t) {
|
|
158
|
+
N(t), e();
|
|
280
159
|
},
|
|
281
160
|
get onaudioended() {
|
|
282
|
-
return
|
|
161
|
+
return P();
|
|
283
162
|
},
|
|
284
|
-
set onaudioended(
|
|
285
|
-
|
|
163
|
+
set onaudioended(t) {
|
|
164
|
+
P(t), e();
|
|
286
165
|
}
|
|
287
|
-
},
|
|
288
|
-
var t =
|
|
289
|
-
var t =
|
|
290
|
-
w(n, (e) => o(
|
|
291
|
-
var i = r(n, 2), a =
|
|
292
|
-
s(i), w(i, (e) => o(
|
|
293
|
-
d(n, "src", C()), d(i, "aria-label", e), b(a, 1, `listen-feature-icon pie-listen-icon rli-feature-listen ${
|
|
166
|
+
}, Y = u(), ce = l(Y), le = (e) => {
|
|
167
|
+
var t = z(), n = k(t), i = (e) => {
|
|
168
|
+
var t = te(), n = l(t);
|
|
169
|
+
w(n, (e) => o(F, e), () => A(F));
|
|
170
|
+
var i = r(n, 2), a = k(i), u = r(a, 2);
|
|
171
|
+
s(i), w(i, (e) => o(I, e), () => A(I)), c((e, t, r) => {
|
|
172
|
+
d(n, "src", C()), d(i, "aria-label", e), b(a, 1, `listen-feature-icon pie-listen-icon rli-feature-listen ${A(U) ? "" : "listen-active"}`, "svelte-ypdwb3"), d(a, "src", O().silentUrl), d(a, "alt", t), b(u, 1, `listen-feature-icon pie-listen-icon rli-feature-listen ${A(U) ? "listen-active" : ""}`, "svelte-ypdwb3"), d(u, "src", O().playingUrl), d(u, "alt", r);
|
|
294
173
|
}, [
|
|
295
|
-
() => K(
|
|
296
|
-
() =>
|
|
297
|
-
() =>
|
|
174
|
+
() => K(M()),
|
|
175
|
+
() => q(M()),
|
|
176
|
+
() => J(M())
|
|
298
177
|
]), h(e, t);
|
|
299
178
|
}, a = (e) => {
|
|
300
|
-
var t =
|
|
301
|
-
w(n, (e) => o(
|
|
179
|
+
var t = R(), n = l(t);
|
|
180
|
+
w(n, (e) => o(F, e), () => A(F));
|
|
302
181
|
var i = r(n, 2), a = (e) => {
|
|
303
|
-
var t =
|
|
304
|
-
s(t), w(t, (e) => o(
|
|
182
|
+
var t = ne(), n = k(t, !0);
|
|
183
|
+
s(t), w(t, (e) => o(L, e), () => A(L)), c(() => g(n, j().clickToEnableAutoplay)), h(e, t);
|
|
305
184
|
};
|
|
306
185
|
x(i, (e) => {
|
|
307
|
-
|
|
308
|
-
}), c(() =>
|
|
309
|
-
d(n, "src", C()), d(n, "aria-describedby", D() ? j() : void 0);
|
|
310
|
-
}), h(e, t);
|
|
186
|
+
A(W) && e(a);
|
|
187
|
+
}), c(() => d(n, "src", C())), h(e, t);
|
|
311
188
|
}, u = (e) => {
|
|
312
|
-
var t =
|
|
313
|
-
s(t), c(() => g(n,
|
|
189
|
+
var t = re(), n = k(t, !0);
|
|
190
|
+
s(t), c(() => g(n, A(ie))), h(e, t);
|
|
314
191
|
};
|
|
315
192
|
x(n, (e) => {
|
|
316
|
-
|
|
193
|
+
A(H) === "feature-button" ? e(i) : A(H) === "controls" ? e(a, 1) : A(H) === "error" && e(u, 2);
|
|
317
194
|
}), s(t), h(e, t);
|
|
318
195
|
};
|
|
319
|
-
return x(
|
|
320
|
-
|
|
321
|
-
}), h(f,
|
|
196
|
+
return x(ce, (e) => {
|
|
197
|
+
A(H) !== "none" && e(le);
|
|
198
|
+
}), h(f, Y), i(se);
|
|
322
199
|
}
|
|
323
|
-
E(
|
|
200
|
+
E(V, {
|
|
324
201
|
hasAudio: {},
|
|
325
202
|
audioUrl: {},
|
|
326
203
|
useFeatureButtonAudio: {},
|
|
327
204
|
autoplayEnabled: {},
|
|
328
|
-
audioTranscript: {},
|
|
329
|
-
showVisibleTranscript: {},
|
|
330
|
-
transcriptId: {},
|
|
331
205
|
featureAudioSkin: {},
|
|
332
206
|
uiText: {},
|
|
333
207
|
locale: {},
|
|
@@ -336,74 +210,74 @@ E(ce, {
|
|
|
336
210
|
}, [], [], { mode: "open" });
|
|
337
211
|
//#endregion
|
|
338
212
|
//#region src/delivery/ClozeMarker.svelte
|
|
339
|
-
var
|
|
213
|
+
var H = O("<img class=\"w-auto object-contain pie-blank-image\" style=\"max-height:var(--mpb-selected-image-max-height, 4rem);\"/>"), U = O("<span class=\"cloze-marker-value pie-blank-value svelte-d9l5tb\"></span>"), W = O("<span class=\"cloze-marker-empty svelte-d9l5tb\" aria-hidden=\"true\"> </span>"), ie = O("<span role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"><!></span>"), ae = {
|
|
340
214
|
hash: "svelte-d9l5tb",
|
|
341
|
-
code: ".cloze-marker.svelte-d9l5tb {display:inline-flex;align-items:center;justify-content:center;text-align:center;vertical-align:baseline;}.cloze-marker.svelte-d9l5tb:focus-within {outline:2px solid var(--
|
|
215
|
+
code: ".cloze-marker.svelte-d9l5tb {display:inline-flex;align-items:center;justify-content:center;text-align:center;vertical-align:baseline;}.cloze-marker.svelte-d9l5tb:focus-within {outline:2px solid var(--mpb-focus-ring, #1565c0);outline-offset:2px;}.cloze-marker-standalone.svelte-d9l5tb {width:var(--mpb-blank-standalone-width, 7rem);}.cloze-marker-empty.svelte-d9l5tb {display:inline-block;min-width:4ch;}.cloze-marker-value.svelte-d9l5tb {width:100%;display:inline-flex;align-items:center;justify-content:center;text-align:center;}.cloze-marker-value.svelte-d9l5tb p {margin:0;}"
|
|
342
216
|
};
|
|
343
|
-
function
|
|
344
|
-
a(
|
|
345
|
-
let
|
|
346
|
-
var
|
|
217
|
+
function oe(t, n) {
|
|
218
|
+
a(n, !0), D(t, ae);
|
|
219
|
+
let r = S(n, "choiceMode", 7, "text"), o = S(n, "displayChoice", 7, void 0), l = S(n, "displayChoiceLabelHtml", 7, ""), u = S(n, "isStandalone", 7, !1), m = S(n, "blankWidth", 7), g = S(n, "blankBorderWidth", 7), _ = S(n, "ariaLabel", 7);
|
|
220
|
+
var v = {
|
|
347
221
|
get choiceMode() {
|
|
348
|
-
return
|
|
222
|
+
return r();
|
|
349
223
|
},
|
|
350
|
-
set choiceMode(
|
|
351
|
-
|
|
224
|
+
set choiceMode(t = "text") {
|
|
225
|
+
r(t), e();
|
|
352
226
|
},
|
|
353
227
|
get displayChoice() {
|
|
354
|
-
return
|
|
228
|
+
return o();
|
|
355
229
|
},
|
|
356
|
-
set displayChoice(
|
|
357
|
-
|
|
230
|
+
set displayChoice(t = void 0) {
|
|
231
|
+
o(t), e();
|
|
358
232
|
},
|
|
359
233
|
get displayChoiceLabelHtml() {
|
|
360
|
-
return
|
|
234
|
+
return l();
|
|
361
235
|
},
|
|
362
|
-
set displayChoiceLabelHtml(
|
|
363
|
-
|
|
236
|
+
set displayChoiceLabelHtml(t = "") {
|
|
237
|
+
l(t), e();
|
|
364
238
|
},
|
|
365
239
|
get isStandalone() {
|
|
366
|
-
return
|
|
240
|
+
return u();
|
|
367
241
|
},
|
|
368
|
-
set isStandalone(
|
|
369
|
-
|
|
242
|
+
set isStandalone(t = !1) {
|
|
243
|
+
u(t), e();
|
|
370
244
|
},
|
|
371
245
|
get blankWidth() {
|
|
372
|
-
return
|
|
246
|
+
return m();
|
|
373
247
|
},
|
|
374
|
-
set blankWidth(
|
|
375
|
-
|
|
248
|
+
set blankWidth(t) {
|
|
249
|
+
m(t), e();
|
|
376
250
|
},
|
|
377
251
|
get blankBorderWidth() {
|
|
378
|
-
return
|
|
252
|
+
return g();
|
|
379
253
|
},
|
|
380
|
-
set blankBorderWidth(
|
|
381
|
-
|
|
254
|
+
set blankBorderWidth(t) {
|
|
255
|
+
g(t), e();
|
|
382
256
|
},
|
|
383
257
|
get ariaLabel() {
|
|
384
|
-
return
|
|
258
|
+
return _();
|
|
385
259
|
},
|
|
386
|
-
set ariaLabel(
|
|
387
|
-
|
|
260
|
+
set ariaLabel(t) {
|
|
261
|
+
_(t), e();
|
|
388
262
|
}
|
|
389
|
-
}, y =
|
|
390
|
-
var t =
|
|
263
|
+
}, y = ie(), C = k(y), w = (e) => {
|
|
264
|
+
var t = H();
|
|
391
265
|
c(() => {
|
|
392
|
-
d(t, "src",
|
|
266
|
+
d(t, "src", o().imageUrl), d(t, "alt", o().imageAlt || "Selected answer image");
|
|
393
267
|
}), h(e, t);
|
|
394
268
|
}, T = (e) => {
|
|
395
|
-
var t =
|
|
396
|
-
p(t,
|
|
269
|
+
var t = U();
|
|
270
|
+
p(t, l, !0), s(t), h(e, t);
|
|
397
271
|
}, E = (e) => {
|
|
398
|
-
h(e,
|
|
272
|
+
h(e, W());
|
|
399
273
|
};
|
|
400
274
|
return x(C, (e) => {
|
|
401
|
-
|
|
275
|
+
r() === "image" && o()?.imageUrl ? e(w) : l() ? e(T, 1) : e(E, -1);
|
|
402
276
|
}), s(y), c(() => {
|
|
403
|
-
b(y, 1, `inline-flex items-center min-h-[1.5em] px-2 mx-1 border-b-2 border-gray-500 align-baseline cloze-marker pie-blank-slot ${
|
|
404
|
-
}), h(
|
|
277
|
+
b(y, 1, `inline-flex items-center min-h-[1.5em] px-2 mx-1 border-b-2 border-gray-500 align-baseline cloze-marker pie-blank-slot ${u() ? "cloze-marker-standalone pie-blank-slot-standalone" : ""}`, "svelte-d9l5tb"), f(y, `width:${m()};border-bottom-width:${g()};`), d(y, "aria-label", _());
|
|
278
|
+
}), h(t, y), i(v);
|
|
405
279
|
}
|
|
406
|
-
E(
|
|
280
|
+
E(oe, {
|
|
407
281
|
choiceMode: {},
|
|
408
282
|
displayChoice: {},
|
|
409
283
|
displayChoiceLabelHtml: {},
|
|
@@ -414,117 +288,117 @@ E(de, {
|
|
|
414
288
|
}, [], [], { mode: "open" });
|
|
415
289
|
//#endregion
|
|
416
290
|
//#region src/delivery/ChoiceRow.svelte
|
|
417
|
-
var
|
|
291
|
+
var G = O("<img class=\"object-contain pie-choice-image\" style=\"max-height:var(--mpb-choice-image-max-height, 5rem);\"/>"), K = O("<span class=\"choice-html pie-choice-label svelte-8xu1pt\"></span>"), q = O("<label class=\"cursor-pointer choice-tile text-center pie-choice-tile svelte-8xu1pt\"><span class=\"choice-tile-content pie-choice-tile-content svelte-8xu1pt\"><!></span> <input type=\"radio\" class=\"choice-radio-bottom pie-choice-radio pie-choice-radio-bottom svelte-8xu1pt\"/></label>"), J = O("<input type=\"radio\" class=\"choice-radio-inline pie-choice-radio pie-choice-radio-inline svelte-8xu1pt\"/> <label class=\"cursor-pointer flex-1 pie-choice-label-wrap svelte-8xu1pt\"><!></label>", 1), se = O("<span aria-hidden=\"true\"> </span>"), Y = O("<div style=\"gap:var(--mpb-choice-row-gap, 0.5rem);\"><!> <!></div>"), ce = {
|
|
418
292
|
hash: "svelte-8xu1pt",
|
|
419
|
-
code: ".choice-row-horizontal.svelte-8xu1pt {flex-direction:column;align-items:center;width:min(var(--mpb-choice-width-px, 170px), var(--mpb-choice-width-vw, 30vw));min-height:var(--mpb-choice-tile-min-height, 11rem);gap:0;}.choice-tile.svelte-8xu1pt {display:flex;flex-direction:column;justify-content:space-between;align-items:center;width:100%;min-height:var(--mpb-choice-tile-min-height, 11rem);padding:0.8rem 0.65rem 0.5rem;border-radius:8px;background:transparent;transition:background-color 120ms ease-in-out;}.choice-tile-content.svelte-8xu1pt {width:100%;display:flex;align-items:center;justify-content:center;min-height:var(--mpb-choice-content-min-height, 7.5rem);}.choice-row-horizontal.svelte-8xu1pt:hover .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-hover-bg, var(--pie-
|
|
293
|
+
code: ".choice-row-horizontal.svelte-8xu1pt {flex-direction:column;align-items:center;width:min(var(--mpb-choice-width-px, 170px), var(--mpb-choice-width-vw, 30vw));min-height:var(--mpb-choice-tile-min-height, 11rem);gap:0;}.choice-tile.svelte-8xu1pt {display:flex;flex-direction:column;justify-content:space-between;align-items:center;width:100%;min-height:var(--mpb-choice-tile-min-height, 11rem);padding:0.8rem 0.65rem 0.5rem;border-radius:8px;background:transparent;transition:background-color 120ms ease-in-out;}.choice-tile-content.svelte-8xu1pt {width:100%;display:flex;align-items:center;justify-content:center;min-height:var(--mpb-choice-content-min-height, 7.5rem);}.choice-row-horizontal.svelte-8xu1pt:hover .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-hover-bg, var(--pie-background-dark, #ecedf1));}.pie-choice-horizontal.svelte-8xu1pt:not(.is-selected):not(:hover) .pie-choice-tile:where(.svelte-8xu1pt) {background:transparent;}.choice-row-horizontal.is-selected.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-selected-bg, var(--pie-secondary-background, rgba(241, 241, 241, 1)));}.choice-row-horizontal.is-selected.svelte-8xu1pt:hover .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-selected-bg, var(--pie-secondary-background, rgba(241, 241, 241, 1)));}.pie-choice.svelte-8xu1pt:not(.pie-choice-horizontal):hover .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-background-dark, #ecedf1);}.pie-choice.svelte-8xu1pt:not(.pie-choice-horizontal):not(.is-selected):not(:hover) .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:transparent;}.pie-choice:not(.pie-choice-horizontal).is-selected.svelte-8xu1pt .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-secondary-background, rgba(241, 241, 241, 1));border-radius:6px;}.pie-choice:not(.pie-choice-horizontal).is-selected.svelte-8xu1pt:hover .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-secondary-background, rgba(241, 241, 241, 1));}.pie-choice.choice-correct.svelte-8xu1pt {border-left:3px solid var(--pie-correct-tertiary, #0ea449);}.pie-choice.choice-incorrect.svelte-8xu1pt {border-left:3px solid var(--pie-incorrect-icon, #bf0d00);}.pie-choice-horizontal.choice-correct.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--pie-correct-secondary, #e8f5e9);}.pie-choice-horizontal.choice-incorrect.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--pie-incorrect-secondary, #ffebee);}.pie-choice-feedback-badge.svelte-8xu1pt {margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;border-radius:9999px;font-size:0.72rem;line-height:1;font-weight:700;color:var(--pie-white, #ffffff);}.pie-choice-feedback-correct.svelte-8xu1pt {background:var(--pie-correct-icon, #087d38);}.pie-choice-feedback-incorrect.svelte-8xu1pt {background:var(--pie-incorrect-icon, #bf0d00);}.choice-row-horizontal.svelte-8xu1pt p {margin:0;text-align:center;}.choice-html.svelte-8xu1pt p {margin:0;}.choice-html.svelte-8xu1pt {width:100%;display:inline-flex;align-items:center;justify-content:center;text-align:center;}.choice-radio-bottom.svelte-8xu1pt {margin-top:var(--mpb-horizontal-choice-radio-top-margin, 0.5rem);padding:var(--mpb-choice-radio-padding, 0px);}.choice-radio-inline.svelte-8xu1pt {margin-top:var(--mpb-horizontal-choice-radio-top-margin, 0.5rem);}"
|
|
420
294
|
};
|
|
421
|
-
function
|
|
422
|
-
a(
|
|
423
|
-
let
|
|
424
|
-
var
|
|
295
|
+
function le(t, n) {
|
|
296
|
+
a(n, !0), D(t, ce);
|
|
297
|
+
let o = S(n, "choice", 7), u = S(n, "choiceMode", 7, "text"), f = S(n, "isHorizontal", 7, !1), m = S(n, "isSelected", 7, !1), v = S(n, "isDisabled", 7, !1), y = S(n, "correctness", 7, void 0), w = S(n, "isEvaluateMode", 7, !1), E = S(n, "instanceId", 7), O = S(n, "radioGroupName", 7);
|
|
298
|
+
var A = {
|
|
425
299
|
get choice() {
|
|
426
|
-
return
|
|
300
|
+
return o();
|
|
427
301
|
},
|
|
428
|
-
set choice(
|
|
429
|
-
|
|
302
|
+
set choice(t) {
|
|
303
|
+
o(t), e();
|
|
430
304
|
},
|
|
431
305
|
get choiceMode() {
|
|
432
|
-
return
|
|
306
|
+
return u();
|
|
433
307
|
},
|
|
434
|
-
set choiceMode(
|
|
435
|
-
|
|
308
|
+
set choiceMode(t = "text") {
|
|
309
|
+
u(t), e();
|
|
436
310
|
},
|
|
437
311
|
get isHorizontal() {
|
|
438
|
-
return
|
|
312
|
+
return f();
|
|
439
313
|
},
|
|
440
|
-
set isHorizontal(
|
|
441
|
-
|
|
314
|
+
set isHorizontal(t = !1) {
|
|
315
|
+
f(t), e();
|
|
442
316
|
},
|
|
443
317
|
get isSelected() {
|
|
444
|
-
return
|
|
318
|
+
return m();
|
|
445
319
|
},
|
|
446
|
-
set isSelected(
|
|
447
|
-
|
|
320
|
+
set isSelected(t = !1) {
|
|
321
|
+
m(t), e();
|
|
448
322
|
},
|
|
449
323
|
get isDisabled() {
|
|
450
|
-
return
|
|
324
|
+
return v();
|
|
451
325
|
},
|
|
452
|
-
set isDisabled(
|
|
453
|
-
|
|
326
|
+
set isDisabled(t = !1) {
|
|
327
|
+
v(t), e();
|
|
454
328
|
},
|
|
455
329
|
get correctness() {
|
|
456
330
|
return y();
|
|
457
331
|
},
|
|
458
|
-
set correctness(
|
|
459
|
-
y(
|
|
332
|
+
set correctness(t = void 0) {
|
|
333
|
+
y(t), e();
|
|
460
334
|
},
|
|
461
335
|
get isEvaluateMode() {
|
|
462
336
|
return w();
|
|
463
337
|
},
|
|
464
|
-
set isEvaluateMode(
|
|
465
|
-
w(
|
|
338
|
+
set isEvaluateMode(t = !1) {
|
|
339
|
+
w(t), e();
|
|
466
340
|
},
|
|
467
341
|
get instanceId() {
|
|
468
342
|
return E();
|
|
469
343
|
},
|
|
470
|
-
set instanceId(
|
|
471
|
-
E(
|
|
344
|
+
set instanceId(t) {
|
|
345
|
+
E(t), e();
|
|
472
346
|
},
|
|
473
347
|
get radioGroupName() {
|
|
474
|
-
return
|
|
348
|
+
return O();
|
|
475
349
|
},
|
|
476
|
-
set radioGroupName(
|
|
477
|
-
|
|
350
|
+
set radioGroupName(t) {
|
|
351
|
+
O(t), e();
|
|
478
352
|
}
|
|
479
|
-
},
|
|
480
|
-
var t =
|
|
481
|
-
var t =
|
|
353
|
+
}, j = Y(), M = k(j), N = (e) => {
|
|
354
|
+
var t = q(), n = k(t), i = k(n), a = (e) => {
|
|
355
|
+
var t = G();
|
|
482
356
|
c(() => {
|
|
483
|
-
d(t, "src",
|
|
357
|
+
d(t, "src", o().imageUrl), d(t, "alt", o().imageAlt || `Choice ${o().id}`);
|
|
484
358
|
}), h(e, t);
|
|
485
|
-
},
|
|
486
|
-
var t =
|
|
487
|
-
p(t, () =>
|
|
359
|
+
}, l = (e) => {
|
|
360
|
+
var t = K();
|
|
361
|
+
p(t, () => o().labelHtml || "", !0), s(t), h(e, t);
|
|
488
362
|
};
|
|
489
|
-
x(
|
|
490
|
-
|
|
491
|
-
}), s(
|
|
492
|
-
var
|
|
493
|
-
_(
|
|
494
|
-
d(t, "for", `${E()}-opt-${
|
|
363
|
+
x(i, (e) => {
|
|
364
|
+
u() === "image" && o().imageUrl ? e(a) : e(l, -1);
|
|
365
|
+
}), s(n);
|
|
366
|
+
var f = r(n, 2);
|
|
367
|
+
_(f), s(t), c(() => {
|
|
368
|
+
d(t, "for", `${E()}-opt-${o().id}`), d(f, "name", O()), d(f, "id", `${E()}-opt-${o().id}`), T(f, o().id), C(f, m()), f.disabled = v();
|
|
495
369
|
}), h(e, t);
|
|
496
|
-
},
|
|
497
|
-
var t =
|
|
498
|
-
_(
|
|
499
|
-
var
|
|
500
|
-
var t =
|
|
370
|
+
}, P = (e) => {
|
|
371
|
+
var t = J(), n = l(t);
|
|
372
|
+
_(n);
|
|
373
|
+
var i = r(n, 2), a = k(i), f = (e) => {
|
|
374
|
+
var t = G();
|
|
501
375
|
c(() => {
|
|
502
|
-
d(t, "src",
|
|
376
|
+
d(t, "src", o().imageUrl), d(t, "alt", o().imageAlt || `Choice ${o().id}`);
|
|
503
377
|
}), h(e, t);
|
|
504
|
-
},
|
|
505
|
-
var t =
|
|
506
|
-
p(t, () =>
|
|
378
|
+
}, g = (e) => {
|
|
379
|
+
var t = K();
|
|
380
|
+
p(t, () => o().labelHtml || "", !0), s(t), h(e, t);
|
|
507
381
|
};
|
|
508
|
-
x(
|
|
509
|
-
|
|
510
|
-
}), s(
|
|
511
|
-
d(
|
|
382
|
+
x(a, (e) => {
|
|
383
|
+
u() === "image" && o().imageUrl ? e(f) : e(g, -1);
|
|
384
|
+
}), s(i), c(() => {
|
|
385
|
+
d(n, "name", O()), d(n, "id", `${E()}-opt-${o().id}`), T(n, o().id), C(n, m()), n.disabled = v(), d(i, "for", `${E()}-opt-${o().id}`);
|
|
512
386
|
}), h(e, t);
|
|
513
387
|
};
|
|
514
|
-
x(
|
|
515
|
-
|
|
388
|
+
x(M, (e) => {
|
|
389
|
+
f() ? e(N) : e(P, -1);
|
|
516
390
|
});
|
|
517
|
-
var
|
|
518
|
-
var t =
|
|
391
|
+
var F = r(M, 2), I = (e) => {
|
|
392
|
+
var t = se(), n = k(t, !0);
|
|
519
393
|
s(t), c(() => {
|
|
520
394
|
b(t, 1, `pie-choice-feedback-badge ${y() === "correct" ? "pie-choice-feedback-correct" : "pie-choice-feedback-incorrect"}`, "svelte-8xu1pt"), g(n, y() === "correct" ? "✓" : "✕");
|
|
521
395
|
}), h(e, t);
|
|
522
396
|
};
|
|
523
|
-
return x(
|
|
524
|
-
w() && y() && e(
|
|
525
|
-
}), s(
|
|
397
|
+
return x(F, (e) => {
|
|
398
|
+
w() && y() && e(I);
|
|
399
|
+
}), s(j), c(() => b(j, 1, `flex items-start choice-row pie-choice ${f() ? "choice-row-horizontal pie-choice-horizontal" : ""} ${m() ? "is-selected pie-choice-selected" : ""} ${y() ? `choice-${y()} pie-choice-${y()}` : ""}`, "svelte-8xu1pt")), h(t, j), i(A);
|
|
526
400
|
}
|
|
527
|
-
E(
|
|
401
|
+
E(le, {
|
|
528
402
|
choice: {},
|
|
529
403
|
choiceMode: {},
|
|
530
404
|
isHorizontal: {},
|
|
@@ -537,31 +411,31 @@ E(he, {
|
|
|
537
411
|
}, [], [], { mode: "open" });
|
|
538
412
|
//#endregion
|
|
539
413
|
//#region src/delivery/computeChoiceCorrectness.ts
|
|
540
|
-
function
|
|
414
|
+
function ue(e) {
|
|
541
415
|
let t = /* @__PURE__ */ new Map(), { isEvaluateMode: n, correctChoiceId: r, selectedId: i, showCorrectAnswer: a } = e;
|
|
542
416
|
return !n || !r ? t : a ? (t.set(r, "correct"), t) : i ? i === r ? (t.set(r, "correct"), t) : (t.set(i, "incorrect"), t.set(r, "incorrect"), t) : (t.set(r, "incorrect"), t);
|
|
543
417
|
}
|
|
544
418
|
//#endregion
|
|
545
419
|
//#region src/delivery/computeLayoutProfile.ts
|
|
546
|
-
var
|
|
420
|
+
var de = "{{blank}}", fe = /* @__PURE__ */ new Set([
|
|
547
421
|
"audio_blank_only",
|
|
548
422
|
"stimulus_image_blank",
|
|
549
423
|
"token_sequence"
|
|
550
424
|
]);
|
|
551
|
-
function
|
|
552
|
-
let { interactionMode: t = "", template: n = "", choiceLayout: r, layoutProfile: i = "", hasAudio: a = !1, useFeatureButtonAudio: o } = e, s = t === "audio_mc_only", c = n ? n.replace(/<[^>]+>/g, "").replace(/ /g, " ").trim() ===
|
|
425
|
+
function pe(e) {
|
|
426
|
+
let { interactionMode: t = "", template: n = "", choiceLayout: r, layoutProfile: i = "", hasAudio: a = !1, useFeatureButtonAudio: o } = e, s = t === "audio_mc_only", c = n ? n.replace(/<[^>]+>/g, "").replace(/ /g, " ").trim() === de : !1, l = r === "horizontal" || r === "vertical" ? r : s || c ? "horizontal" : "vertical";
|
|
553
427
|
return {
|
|
554
428
|
isAudioOnlyMode: s,
|
|
555
429
|
isBlankOnlyTemplate: c,
|
|
556
430
|
choiceLayout: l,
|
|
557
431
|
isHorizontalChoices: l === "horizontal",
|
|
558
432
|
hasInlineSentenceAudioLayout: i === "inline_sentence" && a,
|
|
559
|
-
useFeatureButtonAudio: typeof o == "boolean" ? o : a &&
|
|
433
|
+
useFeatureButtonAudio: typeof o == "boolean" ? o : a && fe.has(i)
|
|
560
434
|
};
|
|
561
435
|
}
|
|
562
436
|
//#endregion
|
|
563
437
|
//#region src/delivery/computeLayoutStyle.ts
|
|
564
|
-
var
|
|
438
|
+
var me = {
|
|
565
439
|
blankStandaloneWidthRem: {
|
|
566
440
|
varName: "--mpb-blank-standalone-width",
|
|
567
441
|
unit: "rem"
|
|
@@ -698,7 +572,7 @@ var be = {
|
|
|
698
572
|
varName: "--mpb-inline-choices-margin-top",
|
|
699
573
|
unit: "rem"
|
|
700
574
|
}
|
|
701
|
-
},
|
|
575
|
+
}, X = {
|
|
702
576
|
audio_blank_only: {
|
|
703
577
|
blankWideWidthRem: 10,
|
|
704
578
|
blankUnderlineWideWidthPx: 6,
|
|
@@ -716,29 +590,29 @@ var be = {
|
|
|
716
590
|
blankUnderlineWideWidthPx: 6
|
|
717
591
|
}
|
|
718
592
|
};
|
|
719
|
-
function
|
|
720
|
-
let { layoutProfile: t, isBlankOnlyTemplate: n
|
|
721
|
-
...
|
|
593
|
+
function he(e) {
|
|
594
|
+
let { layoutProfile: t, isBlankOnlyTemplate: n } = e, r = e.configuredLimits && typeof e.configuredLimits == "object" ? e.configuredLimits : {}, i = e.customProfilePresets && typeof e.customProfilePresets == "object" ? e.customProfilePresets : {}, a = i[t] && typeof i[t] == "object" ? i[t] : {}, o = {
|
|
595
|
+
...X[t] ?? {},
|
|
596
|
+
...a
|
|
597
|
+
}, s = {
|
|
598
|
+
...M,
|
|
599
|
+
...r,
|
|
722
600
|
...o
|
|
723
|
-
}, c =
|
|
724
|
-
...j,
|
|
725
|
-
...i,
|
|
726
|
-
...s
|
|
727
|
-
}, l = ["audio_blank_only", "stimulus_image_blank"], u = [
|
|
601
|
+
}, c = ["audio_blank_only", "stimulus_image_blank"], l = [
|
|
728
602
|
"audio_blank_only",
|
|
729
603
|
"stimulus_image_blank",
|
|
730
604
|
"token_sequence"
|
|
731
|
-
],
|
|
605
|
+
], u = c.includes(t) ? `${s.blankWideWidthRem}rem` : n ? `${s.blankStandaloneWidthRem}rem` : "auto", d = l.includes(t) ? `${s.blankUnderlineWideWidthPx}px` : `${s.blankUnderlineWidthPx}px`;
|
|
732
606
|
return {
|
|
733
|
-
rootStyle:
|
|
734
|
-
blankWidth:
|
|
735
|
-
blankBorderWidth:
|
|
736
|
-
legendMaxChars:
|
|
607
|
+
rootStyle: Object.keys(me).map((e) => `${me[e].varName}:${s[e]}${me[e].unit}`).join(";"),
|
|
608
|
+
blankWidth: u,
|
|
609
|
+
blankBorderWidth: d,
|
|
610
|
+
legendMaxChars: s.legendMaxChars
|
|
737
611
|
};
|
|
738
612
|
}
|
|
739
613
|
//#endregion
|
|
740
614
|
//#region src/delivery/computeDisplayState.ts
|
|
741
|
-
var
|
|
615
|
+
var Z = {
|
|
742
616
|
default: {
|
|
743
617
|
silentUrl: "https://assets.learnosity.com/organisations/844/0c9f2aa3-3cd5-4de7-93ef-541c24ca35da.svg",
|
|
744
618
|
playingUrl: "https://assets.learnosity.com/organisations/844/231dfdc2-c113-4be5-91fb-e75a0ca5994b.svg"
|
|
@@ -748,25 +622,25 @@ var Ce = {
|
|
|
748
622
|
playingUrl: "https://assets.learnosity.com/organisations/844/120f216d-96b7-4560-94b8-1d90710216b7.svg"
|
|
749
623
|
}
|
|
750
624
|
};
|
|
751
|
-
function
|
|
752
|
-
let t = String(e.locale || "").toLowerCase(), n = t.slice(0, 2), r = e.audioButtonSkinsByLocale && typeof e.audioButtonSkinsByLocale == "object" ? e.audioButtonSkinsByLocale : {}, i = e.audioButtonSkin && typeof e.audioButtonSkin == "object" ? e.audioButtonSkin : null, a = t.startsWith("es") ?
|
|
625
|
+
function ge(e) {
|
|
626
|
+
let t = String(e.locale || "").toLowerCase(), n = t.slice(0, 2), r = e.audioButtonSkinsByLocale && typeof e.audioButtonSkinsByLocale == "object" ? e.audioButtonSkinsByLocale : {}, i = e.audioButtonSkin && typeof e.audioButtonSkin == "object" ? e.audioButtonSkin : null, a = t.startsWith("es") ? Z.es : Z.default;
|
|
753
627
|
return r[t] || r[n] || r.default || i || a;
|
|
754
628
|
}
|
|
755
|
-
function
|
|
629
|
+
function _e(e) {
|
|
756
630
|
let { selectedId: t, isEvaluateMode: n, showCorrectAnswer: r, alwaysShowCorrect: i, correctChoiceId: a } = e;
|
|
757
631
|
return i && a || n && r && a ? a : t;
|
|
758
632
|
}
|
|
759
|
-
function
|
|
633
|
+
function ve(e) {
|
|
760
634
|
let { isEvaluateMode: t, showCorrectAnswer: n, isCorrect: r, isIncorrect: i, selectedId: a } = e;
|
|
761
635
|
return !t || n ? "" : r ? "Correct answer selected" : i && a ? "Incorrect answer selected" : "";
|
|
762
636
|
}
|
|
763
|
-
function
|
|
637
|
+
function ye(e) {
|
|
764
638
|
let { prompt: t, legendMaxChars: n, answerChoicesLabel: r } = e, i = t.replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim(), a = Math.max(8, n);
|
|
765
639
|
return i ? i.length > a ? `${i.slice(0, Math.max(1, a - 1))}…` : i : r;
|
|
766
640
|
}
|
|
767
641
|
//#endregion
|
|
768
642
|
//#region src/delivery/cqt-css/sel-r1-base.css?raw
|
|
769
|
-
var
|
|
643
|
+
var be = "/* Shared base styles for all sel_r1-*_plusggg variants.\n Applied via the data-mpb-variant=\"sel-r1-base\" style element.\n Uses [class*=\"variant-sel-r1-\"] so it covers every r1 variant class.\n Source: web-ItemBankViewer/learnosity/templates/Renaissance/r1.scss */\n\n/* r1.scss: Starial font throughout.\n font-size 14px mirrors the Learnosity host root (.lrn_widget) which sets the\n base for all em-scaled rules in r1.scss (e.g. .rli-r1-content-element { 1.9em })\n and any em-based author content (e.g. <span style=\"font-size:1.8em\">). Without\n this base PIE inherits the 16px browser default and renders ~14% larger than\n the LSY reference. See CONTOOL-2567. */\n[class*=\"variant-sel-r1-\"] {\n font-family: Starial, Arial, sans-serif;\n font-size: 14px;\n}\n\n/* r1.scss: .rli-r1-audio-transcript { font-family:Roboto; font-size:16px } */\n[class*=\"variant-sel-r1-\"] .pie-audio-transcript {\n font-family: Roboto, Arial, sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n}\n\n/* r1.scss: .rli-r1-content-element { font-size: 1.9em } wraps all stem tokens.\n Makes inline font-size spans in the template multiply on top of this base. */\n[class*=\"variant-sel-r1-\"] .pie-template-line {\n font-size: 1.9em;\n}\n\n/* r1.scss: .rli-r1-stem { display:flex; flex-direction:row; justify-content:center }\n r1.scss: .rli-r1-content-element { margin-right:2px; margin-left:2px } — 4px total gap.\n Apply the per-element margin to both classless tokens and the blank slot\n (which is the cloze equivalent) so the gap stacks with whitespace text-nodes\n between flex items the same way LSY does. Earlier this used column-gap:4px,\n but flex column-gap accumulates with the cloze-side mx-1 and the implicit\n whitespace, producing a wider gap than LSY shows. See CONTOOL-2569. */\n[class*=\"variant-sel-r1-\"] .pie-template-line {\n display: flex;\n flex-direction: row;\n align-items: baseline;\n justify-content: center;\n}\n\n[class*=\"variant-sel-r1-\"] .pie-template-line p {\n margin: 0;\n display: flex;\n flex-direction: row;\n align-items: baseline;\n}\n\n/* r1.scss: .rli-r1-content-element { min-width:150px; max-width:150px; min-height:150px;\n line-height:89px; margin-right:2px; margin-left:2px } — wraps every stem token\n (blank slot and adjacent inline spans) in LSY, giving each a 150px box with a\n 2px per-side margin. Apply to inline tokens in all r1 variants so trailing\n tokens in audio_blank_only (gplusggg) match the blank's height the way LSY does. */\n[class*=\"variant-sel-r1-\"] .pie-template-line span:not([class]) {\n min-width: 150px;\n max-width: 150px;\n min-height: 150px;\n line-height: 89px;\n margin-left: 2px;\n margin-right: 2px;\n}\n\n/* In token_sequence layouts the blank itself is also a content-element box (no\n surrounding .rli-r1-cloze container at 160px). audio_blank_only / stimulus_image_blank\n keep their own 160px min-height set on the blank slot in McPopulatedBlank.svelte to\n mirror LSY's .rli-r1-cloze height. The 2px per-side margin matches LSY's\n .rli-r1-content-element pattern (overriding the default Tailwind mx-1). */\n[class*=\"variant-sel-r1-\"].layout-token_sequence .pie-template-line .pie-blank-slot {\n min-width: 150px;\n max-width: 150px;\n min-height: 150px;\n line-height: 89px;\n margin-left: 2px;\n margin-right: 2px;\n}\n\n/* audio_blank_only / stimulus_image_blank keep the 160px wide blank slot, but\n still need the 2px per-side margin so the gap to the trailing token mirrors\n LSY's .rli-r1-content-element rhythm. Without this, Tailwind's mx-1 (4px)\n would dominate and the cloze→token gap diverges from LSY. See CONTOOL-2569. */\n[class*=\"variant-sel-r1-\"].layout-audio_blank_only .pie-template-line .pie-blank-slot,\n[class*=\"variant-sel-r1-\"].layout-stimulus_image_blank .pie-template-line .pie-blank-slot {\n margin-left: 2px;\n margin-right: 2px;\n}\n\n/* r1.scss: .rli-r1-content-element { font-size:1.9em; line-height:89px } on distractors */\n[class*=\"variant-sel-r1-\"] .pie-choice-label {\n font-size: 1.9em;\n line-height: 89px;\n}\n\n/* r1.scss: .rli-r1-content-element { min-width:150px; max-width:150px;\n min-height:150px } wraps every image (stem token + distractor) and forces\n the content box to 150×150. LSY's host also rewrites <img width/height>\n to 150 server-side. PIE keeps the authored attributes (typically 108×108),\n so without an explicit override images render ~28% smaller than LSY.\n See CONTOOL-2570. */\n[class*=\"variant-sel-r1-\"] .pie-template-line img,\n[class*=\"variant-sel-r1-\"] .pie-choice-label img {\n width: 150px;\n height: 150px;\n}\n", xe = {
|
|
770
644
|
"sel_r1-_plusggg": {
|
|
771
645
|
variantId: "sel-r1-plusggg",
|
|
772
646
|
variantClass: "variant-sel-r1-plusggg",
|
|
@@ -777,13 +651,13 @@ var Oe = "/* Shared base styles for all sel_r1-*_plusggg variants.\n Applied v
|
|
|
777
651
|
variantId: "sr-vic",
|
|
778
652
|
variantClass: "variant-sr-vic",
|
|
779
653
|
sourceUrl: "https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sr-vic/0.0.1/question.css",
|
|
780
|
-
cssText: "/* Source baseline: https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sr-vic/0.0.1/question.css */\n/* Reference layout: web-ItemBankViewer/learnosity/templates/Renaissance/vic.scss */\n.mc-populated-blank-root.variant-sr-vic {\n font-family: Starial, Arial, sans-serif;\n --mpb-inline-grid-column-gap: 1rem;\n --mpb-inline-grid-row-gap: 0.5rem;\n --mpb-inline-template-margin-top: 0.2rem;\n --mpb-inline-choices-margin-top: 0.2rem;\n}\n\n.mc-populated-blank-root.variant-sr-vic .pie-template-line,\n.mc-populated-blank-root.variant-sr-vic .pie-blank-value,\n.mc-populated-blank-root.variant-sr-vic .pie-choice-label {\n line-height: 123%;\n}\n\n/* vic.scss: .rli-vic-answer uses display:flex so sentence and cloze stay on\n one line. The template HTML wraps text in <p>, which is block by default and\n breaks to a new line. Making <p> inline keeps the sentence and blank inline. */\n.mc-populated-blank-root.variant-sr-vic .pie-template-line p {\n display: inline;\n margin: 0;\n}\n\n/* vic.scss: .rli-vic-cloze > .rli-vic-content-element { color: #cc3333 } */\n.mc-populated-blank-root.variant-sr-vic .pie-blank-value {\n color: #cc3333;\n}\n\n/* vic.scss: .rli-vic-selected { background-color: #fcfcd3 } applied to the\n whole distractor row (radio + label), not just the label wrapper. */\n.mc-populated-blank-root.variant-sr-vic .pie-choice.is-selected {\n background-color: #fcfcd3;\n border-radius: 6px;\n}\n\n.mc-populated-blank-root.variant-sr-vic .pie-choice.is-selected .pie-choice-label-wrap {\n background-color: transparent;\n}\n\n/* vic.scss: distractor label text sits to the right of the radio — no centering. */\n.mc-populated-blank-root.variant-sr-vic .pie-choice-label {\n text-align: left;\n justify-content: flex-start;\n}\n\n/* vic.scss: .rli-vic-distractor:hover { background-color: #F2F2F2 } applied to\n the full row element, not only the inner label wrapper. */\n.mc-populated-blank-root.variant-sr-vic .pie-choice:not(.pie-choice-horizontal):hover {\n background-color: #f2f2f2;\n border-radius: 6px;\n}\n\n.mc-populated-blank-root.variant-sr-vic\n .pie-choice:not(.pie-choice-horizontal):hover\n .pie-choice-label-wrap {\n background-color: transparent;\n}\n\n/* Selected state must win over hover — yellow persists when hovering a chosen row. */\n.mc-populated-blank-root.variant-sr-vic .pie-choice:not(.pie-choice-horizontal).is-selected:hover {\n background-color: #fcfcd3;\n}\n"
|
|
654
|
+
cssText: "/* Source baseline: https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sr-vic/0.0.1/question.css */\n/* Reference layout: web-ItemBankViewer/learnosity/templates/Renaissance/vic.scss */\n.mc-populated-blank-root.variant-sr-vic {\n font-family: Starial, Arial, sans-serif;\n --mpb-inline-grid-column-gap: 1rem;\n --mpb-inline-grid-row-gap: 0.5rem;\n --mpb-inline-template-margin-top: 0.2rem;\n --mpb-inline-choices-margin-top: 0.2rem;\n}\n\n.mc-populated-blank-root.variant-sr-vic .pie-template-line,\n.mc-populated-blank-root.variant-sr-vic .pie-blank-value,\n.mc-populated-blank-root.variant-sr-vic .pie-choice-label {\n line-height: 123%;\n}\n\n/* vic.scss: .rli-vic-answer uses display:flex so sentence and cloze stay on\n one line. The template HTML wraps text in <p>, which is block by default and\n breaks to a new line. Making <p> inline keeps the sentence and blank inline. */\n.mc-populated-blank-root.variant-sr-vic .pie-template-line p {\n display: inline;\n margin: 0;\n}\n\n/* LSY .rli-vic-answer has no text-align rule and inherits start; PIE's\n inline_sentence layout sets text-align:center on .template-line via a\n Svelte-scoped selector with specificity (0,4,0), so we need to match or\n exceed that. Pin sr-vic back to start so wrapped lines stay left-aligned.\n Same root cause as sel-vic. See CONTOOL-2573. */\n.mc-populated-blank-root.variant-sr-vic.layout-inline_sentence .pie-template-line.template-line {\n text-align: start;\n}\n\n/* vic.scss: .rli-vic-cloze > .rli-vic-content-element { color: #cc3333 } */\n.mc-populated-blank-root.variant-sr-vic .pie-blank-value {\n color: #cc3333;\n}\n\n/* vic.scss: .rli-vic-selected { background-color: #fcfcd3 } applied to the\n whole distractor row (radio + label), not just the label wrapper. */\n.mc-populated-blank-root.variant-sr-vic .pie-choice.is-selected {\n background-color: #fcfcd3;\n border-radius: 6px;\n}\n\n.mc-populated-blank-root.variant-sr-vic .pie-choice.is-selected .pie-choice-label-wrap {\n background-color: transparent;\n}\n\n/* vic.scss: distractor label text sits to the right of the radio — no centering. */\n.mc-populated-blank-root.variant-sr-vic .pie-choice-label {\n text-align: left;\n justify-content: flex-start;\n}\n\n/* vic.scss: .rli-vic-distractor:hover { background-color: #F2F2F2 } applied to\n the full row element, not only the inner label wrapper. */\n.mc-populated-blank-root.variant-sr-vic .pie-choice:not(.pie-choice-horizontal):hover {\n background-color: #f2f2f2;\n border-radius: 6px;\n}\n\n.mc-populated-blank-root.variant-sr-vic\n .pie-choice:not(.pie-choice-horizontal):hover\n .pie-choice-label-wrap {\n background-color: transparent;\n}\n\n/* Selected state must win over hover — yellow persists when hovering a chosen row. */\n.mc-populated-blank-root.variant-sr-vic .pie-choice:not(.pie-choice-horizontal).is-selected:hover {\n background-color: #fcfcd3;\n}\n"
|
|
781
655
|
},
|
|
782
656
|
sel_vic: {
|
|
783
657
|
variantId: "sel-vic",
|
|
784
658
|
variantClass: "variant-sel-vic",
|
|
785
659
|
sourceUrl: "https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_vic/0.0.1/question.css",
|
|
786
|
-
cssText: "/* Source baseline: https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_vic/0.0.1/question.css */\n/* Reference layout: web-ItemBankViewer/learnosity/templates/Renaissance/sel_vic/scss/main.scss + vic.scss */\n.mc-populated-blank-root.variant-sel-vic {\n font-family: Starial, Arial, sans-serif;\n font-size:
|
|
660
|
+
cssText: "/* Source baseline: https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_vic/0.0.1/question.css */\n/* Reference layout: web-ItemBankViewer/learnosity/templates/Renaissance/sel_vic/scss/main.scss + vic.scss */\n.mc-populated-blank-root.variant-sel-vic {\n font-family: Starial, Arial, sans-serif;\n /* LSY chain: .lrn_widget (14px host) → .sel-vic { 1.5em } = 21px.\n PIE collapses both LSY layers into this single variant-root selector, so\n the resolved value is set directly. See CONTOOL-2567. */\n font-size: 21px;\n max-width: 800px;\n margin-inline: auto;\n --mpb-inline-grid-column-gap: 1rem;\n --mpb-inline-grid-row-gap: 0.5rem;\n --mpb-inline-template-margin-top: 0.2rem;\n --mpb-inline-choices-margin-top: 0.2rem;\n}\n\n.mc-populated-blank-root.variant-sel-vic .pie-audio-transcript {\n font-family: Roboto, Arial, sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n}\n\n.mc-populated-blank-root.variant-sel-vic .pie-template-line,\n.mc-populated-blank-root.variant-sel-vic .pie-blank-value,\n.mc-populated-blank-root.variant-sel-vic .pie-choice-label {\n line-height: 123%;\n}\n\n/* sel_vic/main.scss: template left ~75%, audio right ~25% on the same row.\n Svelte scoping prevents the component-internal grid-area rule from reaching\n .audio-container inside AudioPlayer, so we override it here via the global\n .pie-audio-container class which is not subject to scope hashing. */\n.mc-populated-blank-root.variant-sel-vic .pie-audio-container {\n grid-area: audio;\n margin: 0;\n justify-self: end;\n align-self: start;\n min-height: 128px;\n}\n\n/* vic.scss: sentence and cloze sit inline — the <p> wrapper must not break to\n a new line before the blank slot. */\n.mc-populated-blank-root.variant-sel-vic .pie-template-line p {\n display: inline;\n margin: 0;\n}\n\n/* LSY .rli-vic-answer has no text-align rule and inherits start; PIE's\n inline_sentence layout sets text-align:center on .template-line via a\n Svelte-scoped selector with specificity (0,4,0), so we need to match or\n exceed that. Pin sel-vic back to start so wrapped lines stay left-aligned.\n See CONTOOL-2573. */\n.mc-populated-blank-root.variant-sel-vic.layout-inline_sentence .pie-template-line.template-line {\n text-align: start;\n}\n\n/* vic.scss: .rli-vic-cloze { margin-left: 6px; margin-right: 6px } gives the\n cloze breathing room from adjacent text or punctuation. The PIE markup uses\n Tailwind-style mx-1 in the class list, but mc-populated-blank does not\n compile Tailwind, so that class is a no-op. Set the inline margin\n explicitly so the cloze→trailing-punctuation gap matches LSY. See\n CONTOOL-2572. */\n.mc-populated-blank-root.variant-sel-vic .pie-template-line .pie-blank-slot {\n margin-left: 6px;\n margin-right: 6px;\n}\n\n/* vic.scss: .rli-vic-cloze > .rli-vic-content-element { color: #cc3333 } */\n.mc-populated-blank-root.variant-sel-vic .pie-blank-value {\n color: #cc3333;\n}\n\n/* sel_vic/main.scss: .sel-vic { max-width: 800px } — the fieldset/choices must\n also be constrained so rows don't span beyond 800px. */\n.mc-populated-blank-root.variant-sel-vic .pie-choices-fieldset {\n max-width: 800px;\n width: 100%;\n}\n\n/* vic.scss: distractor label text sits to the right of the radio — no centering. */\n.mc-populated-blank-root.variant-sel-vic .pie-choice-label {\n text-align: left;\n justify-content: flex-start;\n}\n\n/* vic.scss: .rli-vic-selected { background-color: #fcfcd3 } on the full row. */\n.mc-populated-blank-root.variant-sel-vic .pie-choice.is-selected {\n background-color: #fcfcd3;\n border-radius: 6px;\n}\n\n.mc-populated-blank-root.variant-sel-vic .pie-choice.is-selected .pie-choice-label-wrap {\n background-color: transparent;\n}\n\n/* Selected state must win over hover. */\n.mc-populated-blank-root.variant-sel-vic .pie-choice:not(.pie-choice-horizontal).is-selected:hover {\n background-color: #fcfcd3;\n}\n\n/* vic.scss: .rli-vic-distractor:hover { background-color: #F2F2F2 } on the full row. */\n.mc-populated-blank-root.variant-sel-vic .pie-choice:not(.pie-choice-horizontal):hover {\n background-color: #f2f2f2;\n border-radius: 6px;\n}\n\n.mc-populated-blank-root.variant-sel-vic\n .pie-choice:not(.pie-choice-horizontal):hover\n .pie-choice-label-wrap {\n background-color: transparent;\n}\n\n@media (min-width: 620px) {\n .mc-populated-blank-root.variant-sel-vic .pie-audio-transcript {\n min-width: 620px;\n max-width: 800px;\n transform: translateX(-55px);\n }\n}\n"
|
|
787
661
|
},
|
|
788
662
|
"sel_r1-_gplusggg": {
|
|
789
663
|
variantId: "sel-r1-gplusggg",
|
|
@@ -807,22 +681,22 @@ var Oe = "/* Shared base styles for all sel_r1-*_plusggg variants.\n Applied v
|
|
|
807
681
|
variantId: "sel-r1-ggplus",
|
|
808
682
|
variantClass: "variant-sel-r1-ggplus",
|
|
809
683
|
sourceUrl: "https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_r1-_ggplusggg/0.0.1/question.css",
|
|
810
|
-
cssText: "/* Source baseline: https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_r1-_ggplusggg/0.0.1/question.css */\n/* Shared r1 base styles (font, template-line flex, choice-label) are in sel-r1-base.css */\n.mc-populated-blank-root.variant-sel-r1-ggplus {\n max-width: 875px;\n margin-inline: auto;\n --mpb-listen-button-size: 128px;\n --mpb-choice-width-px: 155px;\n --mpb-choice-tile-min-height: 11.25rem;\n --mpb-choice-content-min-height: 9.375rem;\n --mpb-choice-hover-bg: #f2f2f2;\n --mpb-choice-selected-bg: #fcfcd3;\n}\n
|
|
684
|
+
cssText: "/* Source baseline: https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_r1-_ggplusggg/0.0.1/question.css */\n/* Shared r1 base styles (font, template-line flex, choice-label) are in sel-r1-base.css */\n.mc-populated-blank-root.variant-sel-r1-ggplus {\n max-width: 875px;\n margin-inline: auto;\n --mpb-listen-button-size: 128px;\n --mpb-choice-width-px: 155px;\n --mpb-choice-tile-min-height: 11.25rem;\n --mpb-choice-content-min-height: 9.375rem;\n --mpb-choice-hover-bg: #f2f2f2;\n --mpb-choice-selected-bg: #fcfcd3;\n}\n"
|
|
811
685
|
},
|
|
812
686
|
"sel_r1-s3_plusggg": {
|
|
813
687
|
variantId: "sel-r1-s3",
|
|
814
688
|
variantClass: "variant-sel-r1-s3",
|
|
815
689
|
sourceUrl: "https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_r1-s3_plusggg/0.0.1/question.css",
|
|
816
|
-
cssText: "/* Source baseline: https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_r1-s3_plusggg/0.0.1/question.css */\n/* Shared r1 base styles (font, template-line flex, choice-label) are in sel-r1-base.css */\n.mc-populated-blank-root.variant-sel-r1-s3 {\n max-width: 860px;\n margin-inline: auto;\n --mpb-listen-button-size: 128px;\n --mpb-choice-width-px: 155px;\n --mpb-choice-tile-min-height: 11.25rem;\n --mpb-choice-content-min-height: 9.375rem;\n --mpb-choice-group-gap: 0.35rem;\n --mpb-choice-row-gap: 0.35rem;\n --mpb-horizontal-choice-radio-top-margin: 0.25rem;\n --mpb-stimulus-min-column: 240px;\n --mpb-stimulus-grid-column-gap: 1.1rem;\n --mpb-stimulus-choices-margin-top: 0.85rem;\n --mpb-audio-blank-template-margin-bottom: 0.9rem;\n --mpb-blank-wide-width: 6.8rem;\n}\n\n/*
|
|
690
|
+
cssText: "/* Source baseline: https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_r1-s3_plusggg/0.0.1/question.css */\n/* Shared r1 base styles (font, template-line flex, choice-label) are in sel-r1-base.css */\n.mc-populated-blank-root.variant-sel-r1-s3 {\n max-width: 860px;\n margin-inline: auto;\n --mpb-listen-button-size: 128px;\n --mpb-choice-width-px: 155px;\n --mpb-choice-tile-min-height: 11.25rem;\n --mpb-choice-content-min-height: 9.375rem;\n --mpb-choice-group-gap: 0.35rem;\n --mpb-choice-row-gap: 0.35rem;\n --mpb-horizontal-choice-radio-top-margin: 0.25rem;\n --mpb-stimulus-min-column: 240px;\n --mpb-stimulus-grid-column-gap: 1.1rem;\n --mpb-stimulus-choices-margin-top: 0.85rem;\n --mpb-audio-blank-template-margin-bottom: 0.9rem;\n --mpb-blank-wide-width: 6.8rem;\n}\n\n/* sel_r1-s3_plusggg/question.css does not set font-weight on distractors or\n cloze content-element, so they inherit 400 from the host root. The earlier\n font-weight:500 override caused PIE to render visibly heavier than LSY for\n the same author content. See CONTOOL-2571. */\n.mc-populated-blank-root.variant-sel-r1-s3 .pie-choice-label,\n.mc-populated-blank-root.variant-sel-r1-s3 .pie-choice-label :is(span, p, div) {\n font-size: 1.9em;\n line-height: 89px;\n}\n\n.mc-populated-blank-root.variant-sel-r1-s3 .pie-blank-value,\n.mc-populated-blank-root.variant-sel-r1-s3 .pie-blank-value :is(span, p, div) {\n line-height: 1.1;\n white-space: nowrap;\n}\n\n.mc-populated-blank-root.variant-sel-r1-s3 .pie-choice-horizontal .pie-choice-tile {\n border-radius: 6px;\n background: #f1f1f1;\n}\n\n.mc-populated-blank-root.variant-sel-r1-s3.layout-stimulus_image_blank {\n grid-template-columns: minmax(220px, auto) auto auto;\n grid-template-areas:\n \"transcript transcript transcript\"\n \"sentence template audio\"\n \"choices choices choices\";\n justify-content: center;\n}\n\n.mc-populated-blank-root.variant-sel-r1-s3.layout-stimulus_image_blank .pie-template-line {\n grid-area: template;\n justify-self: center;\n}\n\n.mc-populated-blank-root.variant-sel-r1-s3.layout-stimulus_image_blank .pie-sentence-line {\n justify-self: end;\n}\n\n.mc-populated-blank-root.variant-sel-r1-s3.layout-stimulus_image_blank .pie-audio-container {\n justify-self: start;\n align-self: start;\n}\n\n.mc-populated-blank-root.variant-sel-r1-s3.layout-stimulus_image_blank .pie-choices-fieldset {\n justify-self: center;\n width: fit-content;\n}\n\n.mc-populated-blank-root.variant-sel-r1-s3 .pie-sentence-line img {\n max-width: 100%;\n height: auto;\n}\n\n.mc-populated-blank-root.variant-sel-r1-s3 .pie-choice-horizontal:hover .pie-choice-tile {\n background: #e2e2e2;\n}\n\n.mc-populated-blank-root.variant-sel-r1-s3 .pie-choice-horizontal.is-selected .pie-choice-tile,\n.mc-populated-blank-root.variant-sel-r1-s3\n .pie-choice-horizontal.is-selected:hover\n .pie-choice-tile {\n background: #fcfcd3;\n}\n\n.mc-populated-blank-root.variant-sel-r1-s3 .pie-choice-horizontal .pie-choice-radio {\n transform: scale(0.85);\n}\n"
|
|
817
691
|
}
|
|
818
|
-
},
|
|
692
|
+
}, Se = (e) => String(e || "").trim().toLowerCase().replace(/v\d+\.\d+\.\d+$/i, ""), Ce = (e) => xe[Se(e)], we = (e) => Ce(e)?.variantClass || "", Te = /* @__PURE__ */ new Set([
|
|
819
693
|
"sel-r1-plusggg",
|
|
820
694
|
"sel-r1-gplusggg",
|
|
821
695
|
"sel-r1-g-stem",
|
|
822
696
|
"sel-r1-gg-plus",
|
|
823
697
|
"sel-r1-ggplus",
|
|
824
698
|
"sel-r1-s3"
|
|
825
|
-
]),
|
|
699
|
+
]), Ee = (e, t, n) => {
|
|
826
700
|
let r = document.getElementById(e);
|
|
827
701
|
if (r) {
|
|
828
702
|
r.textContent !== n && (r.textContent = n);
|
|
@@ -830,91 +704,74 @@ var Oe = "/* Shared base styles for all sel_r1-*_plusggg variants.\n Applied v
|
|
|
830
704
|
}
|
|
831
705
|
let i = document.createElement("style");
|
|
832
706
|
i.id = e, i.setAttribute("data-mpb-variant", t), i.textContent = n, document.head.appendChild(i);
|
|
833
|
-
},
|
|
834
|
-
!e?.cssText || typeof document > "u" || (
|
|
835
|
-
},
|
|
707
|
+
}, De = (e) => {
|
|
708
|
+
!e?.cssText || typeof document > "u" || (Te.has(e.variantId) && Ee("mc-populated-blank-css-sel-r1-base", "sel-r1-base", be), Ee(`mc-populated-blank-css-${e.variantId}`, e.variantId, e.cssText));
|
|
709
|
+
}, Oe = O("<div class=\"mb-4 prose pie-prompt\"></div>"), ke = j("<svg class=\"pie-correct-answer-toggle-svg svelte-6wlbb4\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-283 359 34 35\"><circle cx=\"-266\" cy=\"375.9\" r=\"14\" fill=\"var(--pie-tertiary-light, #d0e2f0)\"></circle><path d=\"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\" fill=\"var(--pie-tertiary-light, #d0e2f0)\"></path><polygon points=\"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\" fill=\"var(--pie-tertiary, #146eb3)\"></polygon></svg>"), Ae = j("<svg class=\"pie-correct-answer-toggle-svg svelte-6wlbb4\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-129.5 127 34 35\"><path d=\"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z\" fill=\"#D0CAC5\" stroke=\"#E6E3E0\" stroke-width=\"0.75\"></path><path d=\"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\" fill=\"#B3ABA4\" stroke=\"#CDC7C2\" stroke-width=\"0.5\"></path><circle cx=\"-114.2\" cy=\"143.5\" r=\"14\" fill=\"white\"></circle><path d=\"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\" fill=\"var(--pie-background-dark, #ecedf1)\"></path><polygon points=\"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\" fill=\"var(--pie-tertiary, #146eb3)\"></polygon></svg>"), je = O("<div class=\"pie-correct-answer-toggle-row svelte-6wlbb4\"><button type=\"button\" class=\"mb-3 pie-toggle-correct-answer svelte-6wlbb4\" style=\"gap:var(--mpb-toggle-button-gap, 0.5rem);\" data-testid=\"show-correct-answer\"><span class=\"pie-correct-answer-toggle-content svelte-6wlbb4\"><span class=\"pie-correct-answer-toggle-icon-holder svelte-6wlbb4\" aria-hidden=\"true\"><!></span> <span class=\"pie-correct-answer-toggle-label svelte-6wlbb4\"> </span></span></button></div>"), Me = O("<div class=\"mb-3 prose prose-p:my-1 sentence-line pie-sentence-line svelte-6wlbb4\"></div>"), Ne = O("<div class=\"mb-4 template-line pie-template-line svelte-6wlbb4\"><!><!><!></div>"), Pe = O("<p class=\"sr-only pie-result-feedback svelte-6wlbb4\" role=\"status\" aria-live=\"polite\"> </p>"), Fe = O("<div><!> <!> <!> <!> <!> <!> <fieldset class=\"border-0 p-0 m-0 pie-choices-fieldset svelte-6wlbb4\"><legend class=\"sr-only pie-choices-legend svelte-6wlbb4\"> </legend> <div style=\"gap:var(--mpb-choice-group-gap, 0.5rem);\" role=\"radiogroup\" tabindex=\"-1\"></div></fieldset></div>"), Ie = {
|
|
836
710
|
hash: "svelte-6wlbb4",
|
|
837
|
-
code: ".sr-only.svelte-6wlbb4 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}.mc-populated-blank-root.svelte-6wlbb4 .prose {max-width:none;}.pie-toggle-correct-answer.svelte-6wlbb4 {width:100%;cursor:pointer;border:0;background:transparent;padding:0;display:flex;justify-content:center;text-align:center;color:var(--pie-
|
|
711
|
+
code: ".sr-only.svelte-6wlbb4 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}.mc-populated-blank-root.svelte-6wlbb4 {--mpb-focus-ring: var(\n --pie-focus-outline,\n var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565c0))\n );}.mc-populated-blank-root.svelte-6wlbb4 .prose {max-width:none;}.pie-toggle-correct-answer.svelte-6wlbb4 {width:100%;cursor:pointer;border:0;background:transparent;padding:0;display:flex;justify-content:center;text-align:center;color:var(--pie-text, black);}.pie-correct-answer-toggle-row.svelte-6wlbb4 {width:100%;display:flex;justify-content:flex-end;}.pie-correct-answer-toggle-content.svelte-6wlbb4 {display:flex;margin:0 auto;align-items:center;}.pie-correct-answer-toggle-icon-holder.svelte-6wlbb4 {width:25px;margin-right:5px;display:inline-flex;align-items:center;justify-content:center;}.pie-correct-answer-toggle-svg.svelte-6wlbb4 {width:25px;height:25px;}.pie-correct-answer-toggle-label.svelte-6wlbb4 {width:fit-content;min-width:140px;align-self:center;vertical-align:middle;font-weight:400;user-select:none;}.pie-toggle-correct-answer.svelte-6wlbb4:hover .pie-correct-answer-toggle-label:where(.svelte-6wlbb4),\n .pie-toggle-correct-answer.svelte-6wlbb4:focus-visible .pie-correct-answer-toggle-label:where(.svelte-6wlbb4) {text-decoration:underline;}.template-line.svelte-6wlbb4 {white-space:pre-wrap;}.template-line.svelte-6wlbb4 p {margin:0;display:inline;}.layout-audio_blank_only.svelte-6wlbb4 .pie-audio-container,\n .layout-stimulus_image_blank.svelte-6wlbb4 .pie-audio-container {display:flex;width:min(100%, var(--mpb-audio-instructions-max-width, 875px));margin-left:auto;margin-right:auto;justify-content:flex-end;}.layout-audio_blank_only.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4),\n .layout-stimulus_image_blank.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {text-align:center;margin:var(--mpb-audio-blank-template-margin-top, 0.8rem) 0\n var(--mpb-audio-blank-template-margin-bottom, 1.8rem);}.layout-audio_blank_only.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {display:flex;justify-content:center;}.layout-audio_blank_only.svelte-6wlbb4 .pie-blank-slot,\n .layout-stimulus_image_blank.svelte-6wlbb4 .pie-blank-slot {width:var(--mpb-blank-wide-width, 10rem);border-bottom-width:var(--mpb-blank-underline-wide-width, 6px);min-height:160px;padding-bottom:4px;}.layout-stimulus_image_blank.svelte-6wlbb4 {display:grid;grid-template-columns:minmax(var(--mpb-stimulus-min-column, 210px), 1fr) auto;grid-template-areas:'sentence audio'\n '. template'\n 'choices choices';column-gap:var(--mpb-stimulus-grid-column-gap, 2rem);row-gap:var(--mpb-stimulus-grid-row-gap, 0.7rem);align-items:start;}.layout-stimulus_image_blank.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;}.layout-stimulus_image_blank.svelte-6wlbb4 .sentence-line:where(.svelte-6wlbb4) {grid-area:sentence;margin:var(--mpb-stimulus-sentence-margin-top, 0.2rem) 0 0;}.layout-stimulus_image_blank.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:0;text-align:center;justify-self:center;}.layout-stimulus_image_blank.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-stimulus-choices-margin-top, 0.9rem);}.layout-token_sequence.svelte-6wlbb4 {display:grid;grid-template-columns:1fr auto;grid-template-areas:'audio audio'\n 'template template'\n 'choices choices';column-gap:var(--mpb-token-grid-column-gap, 1.5rem);row-gap:var(--mpb-token-grid-row-gap, 0.8rem);align-items:start;}.layout-token_sequence.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;justify-self:end;}.layout-token_sequence.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:var(--mpb-token-template-margin-top, 0.6rem) 0 0;justify-self:center;text-align:center;}.layout-token_sequence.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) span + span {margin-left:var(--mpb-token-inline-token-gap, 0.35rem);}.layout-token_sequence.svelte-6wlbb4 .pie-blank-slot {width:var(--mpb-blank-standalone-width, 7rem);border-bottom-width:var(--mpb-blank-underline-wide-width, 4px);margin-left:var(--mpb-token-inline-token-gap, 0.35rem);}.layout-token_sequence.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-token-choices-margin-top, 0.2rem);}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 {display:grid;grid-template-columns:minmax(var(--mpb-text-min-column, 260px), 1fr) auto;grid-template-areas:'template audio'\n 'choices choices';column-gap:var(--mpb-inline-grid-column-gap, 1.5rem);row-gap:var(--mpb-inline-grid-row-gap, 0.65rem);align-items:start;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;justify-self:end;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:var(--mpb-inline-template-margin-top, 0.45rem) 0 0;text-align:center;justify-self:center;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-inline-choices-margin-top, 0.25rem);}\n\n /* Match Learnosity responsive behavior for CQT audio-blank layouts:\n at smaller widths, audio control shifts left and answer tiles stack. */\n @media (max-width: 760px) {.layout-audio_blank_only.svelte-6wlbb4 .pie-audio-container,\n .layout-stimulus_image_blank.svelte-6wlbb4 .pie-audio-container,\n .layout-token_sequence.svelte-6wlbb4 .pie-audio-container,\n .layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .pie-audio-container {width:100%;margin-left:0;margin-right:0;justify-content:flex-start;justify-self:start;}.layout-audio_blank_only.svelte-6wlbb4 .pie-choices:where(.svelte-6wlbb4),\n .layout-token_sequence.svelte-6wlbb4 .pie-choices:where(.svelte-6wlbb4),\n .layout-stimulus_image_blank.svelte-6wlbb4 .pie-choices:where(.svelte-6wlbb4),\n .layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .pie-choices:where(.svelte-6wlbb4) {flex-direction:column;align-items:flex-start;justify-content:flex-start;}.layout-audio_blank_only.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4),\n .layout-token_sequence.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4),\n .layout-stimulus_image_blank.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4),\n .layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4) {width:min(100%, var(--mpb-narrow-choice-max-width, 230px));align-items:flex-start;}\n }"
|
|
838
712
|
};
|
|
839
|
-
function
|
|
840
|
-
a(l, !0),
|
|
713
|
+
function Le(n, l) {
|
|
714
|
+
a(l, !0), D(n, Ie);
|
|
841
715
|
let u = {
|
|
842
716
|
answerChoices: "Answer choices",
|
|
843
717
|
selectedAnswerInSentence: "Selected answer in sentence",
|
|
844
718
|
showCorrectAnswer: "Show correct answer",
|
|
845
719
|
hideCorrectAnswer: "Hide correct answer",
|
|
846
720
|
clickToEnableAutoplay: "Click to enable audio autoplay",
|
|
847
|
-
audioResourceUnavailable: "Audio is enabled but no playable audio URL is configured."
|
|
848
|
-
|
|
849
|
-
}, _ = S(l, "model", 7), C = S(l, "session", 7), T = y(""), E = y(null), D = y(null), A = y(null), j = y(!1), M = `mc-populated-blank-${Math.random().toString(36).slice(2, 10)}`, N = e(() => (_()?.mode || _()?.env?.mode || "").toString()), P = e(() => k(N) === "evaluate"), F = e(() => _()?.correctness), I = e(() => typeof _()?.responseCorrect == "boolean" ? _().responseCorrect : k(F) === "correct"), L = e(() => k(F) === "correct"), R = e(() => k(F) === "incorrect"), B = y(!1), V = e(() => k(P) && !k(I) && !!_()?.correctChoiceId), H = e(() => _()?.layoutProfile || ""), W = e(() => ye({
|
|
721
|
+
audioResourceUnavailable: "Audio is enabled but no playable audio URL is configured."
|
|
722
|
+
}, _ = S(l, "model", 7), C = S(l, "session", 7), T = y(""), E = y(null), O = y(null), j = y(null), M = `mc-populated-blank-${Math.random().toString(36).slice(2, 10)}`, N = v(() => (_()?.mode || _()?.env?.mode || "").toString()), P = v(() => A(N) === "evaluate"), F = v(() => _()?.correctness), ee = v(() => typeof _()?.responseCorrect == "boolean" ? _().responseCorrect : A(F) === "correct"), te = v(() => A(F) === "correct"), ne = v(() => A(F) === "incorrect"), R = y(!1), re = v(() => A(P) && !A(ee) && !!_()?.correctChoiceId), z = v(() => _()?.layoutProfile || ""), B = v(() => pe({
|
|
850
723
|
interactionMode: _()?.interactionMode,
|
|
851
724
|
template: _()?.template,
|
|
852
725
|
choiceLayout: _()?.choiceLayout,
|
|
853
|
-
layoutProfile:
|
|
726
|
+
layoutProfile: A(z),
|
|
854
727
|
hasAudio: _()?.hasAudio,
|
|
855
728
|
useFeatureButtonAudio: _()?.useFeatureButtonAudio
|
|
856
|
-
})),
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
`--pie-correct-answer-toggle-icon-closed-bg:${z.backgroundDark()}`,
|
|
860
|
-
`--pie-correct-answer-toggle-icon-glyph-color:${z.tertiary()}`,
|
|
861
|
-
`--pie-correct-answer-choice-hover-bg:${z.backgroundDark()}`,
|
|
862
|
-
`--pie-correct-answer-choice-selected-bg:${z.secondaryBackground()}`,
|
|
863
|
-
`--pie-correct-answer-choice-correct-bg:${z.correctSecondary()}`,
|
|
864
|
-
`--pie-correct-answer-choice-incorrect-bg:${z.incorrectSecondary()}`,
|
|
865
|
-
`--pie-correct-answer-choice-correct-border:${z.correctTertiary()}`,
|
|
866
|
-
`--pie-correct-answer-choice-incorrect-border:${z.incorrectWithIcon()}`,
|
|
867
|
-
`--pie-correct-answer-feedback-correct-bg:${z.correctWithIcon()}`,
|
|
868
|
-
`--pie-correct-answer-feedback-incorrect-bg:${z.incorrectWithIcon()}`,
|
|
869
|
-
`--pie-correct-answer-feedback-glyph-color:${z.white()}`
|
|
870
|
-
].join(";")), G = e(() => Se({
|
|
871
|
-
layoutProfile: k(H),
|
|
872
|
-
isBlankOnlyTemplate: k(re),
|
|
729
|
+
})), H = v(() => A(B).isAudioOnlyMode), U = v(() => A(B).isBlankOnlyTemplate), W = v(() => A(B).isHorizontalChoices), ie = v(() => A(B).hasInlineSentenceAudioLayout), ae = v(() => A(B).useFeatureButtonAudio), G = v(() => he({
|
|
730
|
+
layoutProfile: A(z),
|
|
731
|
+
isBlankOnlyTemplate: A(U),
|
|
873
732
|
configuredLimits: _()?.layoutLimits,
|
|
874
|
-
customProfilePresets: _()?.layoutProfilePresets
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
showCorrectAnswer: k(B),
|
|
733
|
+
customProfilePresets: _()?.layoutProfilePresets
|
|
734
|
+
})), K = v(() => Array.isArray(_()?.choices) ? _().choices : []), q = v(() => _()?.choiceMode || "text"), J = v(() => C()?.choiceId || A(T) || ""), se = v(() => `${M}-choice-group-${_()?.id || "1"}`), Y = v(() => _e({
|
|
735
|
+
selectedId: A(J),
|
|
736
|
+
isEvaluateMode: A(P),
|
|
737
|
+
showCorrectAnswer: A(R),
|
|
880
738
|
alwaysShowCorrect: !!_()?.alwaysShowCorrect,
|
|
881
739
|
correctChoiceId: String(_()?.correctChoiceId || "")
|
|
882
|
-
})),
|
|
883
|
-
isEvaluateMode:
|
|
884
|
-
showCorrectAnswer:
|
|
885
|
-
isCorrect:
|
|
886
|
-
isIncorrect:
|
|
887
|
-
selectedId:
|
|
888
|
-
})), me =
|
|
889
|
-
isEvaluateMode:
|
|
740
|
+
})), ce = v(() => A(K).find((e) => e.id === A(Y))), de = v(() => String(A(ce)?.labelHtml || "")), fe = v(() => ve({
|
|
741
|
+
isEvaluateMode: A(P),
|
|
742
|
+
showCorrectAnswer: A(R),
|
|
743
|
+
isCorrect: A(te),
|
|
744
|
+
isIncorrect: A(ne),
|
|
745
|
+
selectedId: A(J)
|
|
746
|
+
})), me = v(() => ue({
|
|
747
|
+
isEvaluateMode: A(P),
|
|
890
748
|
correctChoiceId: String(_()?.correctChoiceId || ""),
|
|
891
|
-
selectedId: String(
|
|
892
|
-
showCorrectAnswer:
|
|
893
|
-
})),
|
|
749
|
+
selectedId: String(A(J) || ""),
|
|
750
|
+
showCorrectAnswer: A(R)
|
|
751
|
+
})), X = v(() => ({
|
|
894
752
|
...u,
|
|
895
753
|
..._()?.uiText || {}
|
|
896
|
-
})),
|
|
754
|
+
})), Z = v(() => `${M}-prompt`), be = v(() => `${M}-choices-legend`), xe = v(() => `${M}-result`), Se = v(() => ye({
|
|
897
755
|
prompt: _()?.prompt || "",
|
|
898
|
-
legendMaxChars:
|
|
899
|
-
answerChoicesLabel:
|
|
900
|
-
})),
|
|
901
|
-
let e = [];
|
|
902
|
-
return _()?.prompt && e.push(k(_e)), _()?.hasAudio && _()?.audioTranscript && e.push(k(ve)), e.length ? e.join(" ") : void 0;
|
|
903
|
-
}), Ne = e(() => {
|
|
756
|
+
legendMaxChars: A(G).legendMaxChars,
|
|
757
|
+
answerChoicesLabel: A(X).answerChoices
|
|
758
|
+
})), Te = v(() => _()?.prompt ? A(Z) : void 0), Ee = v(() => _()?.prompt ? void 0 : String(_()?.choiceGroupLabel || "").trim() || A(Se)), Le = v(() => _()?.prompt ? A(Z) : void 0), Re = v(() => {
|
|
904
759
|
let e = _()?.locale || "";
|
|
905
760
|
return e ? e.slice(0, 2) : "en";
|
|
906
|
-
}),
|
|
761
|
+
}), ze = v(() => Ce(_()?.customType)), Be = v(() => we(_()?.customType)), Ve = v(() => {
|
|
907
762
|
let e = _()?.template || "", t = e.indexOf("{{blank}}");
|
|
908
|
-
|
|
763
|
+
if (t < 0) return {
|
|
909
764
|
before: e,
|
|
910
765
|
after: ""
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
|
|
766
|
+
};
|
|
767
|
+
let n = e.slice(0, t), r = e.slice(t + 9);
|
|
768
|
+
return A(z) === "inline_sentence" && (n = `${n.replace(/\s+$/, "")} `, r = ` ${r.replace(/^\s+/, "")}`), {
|
|
769
|
+
before: n,
|
|
770
|
+
after: r
|
|
914
771
|
};
|
|
915
772
|
});
|
|
916
|
-
function
|
|
917
|
-
|
|
773
|
+
function He(e, t) {
|
|
774
|
+
L({
|
|
918
775
|
sourceEl: t,
|
|
919
776
|
fallbackSelector: "mc-populated-blank",
|
|
920
777
|
component: "mc-populated-blank",
|
|
@@ -922,24 +779,24 @@ function Ke(n, l) {
|
|
|
922
779
|
complete: !!e?.choiceId
|
|
923
780
|
});
|
|
924
781
|
}
|
|
925
|
-
function
|
|
782
|
+
function Ue(e) {
|
|
926
783
|
let t = e.target;
|
|
927
784
|
if (!t.checked) return;
|
|
928
785
|
let n = t.value;
|
|
929
|
-
o(T, n, !0),
|
|
786
|
+
o(T, n, !0), He({
|
|
930
787
|
...C(),
|
|
931
788
|
id: C()?.id || _()?.id || "1",
|
|
932
789
|
element: "mc-populated-blank",
|
|
933
790
|
choiceId: n
|
|
934
791
|
}, t);
|
|
935
792
|
}
|
|
936
|
-
function
|
|
937
|
-
|
|
793
|
+
function We() {
|
|
794
|
+
A(re) && o(R, !A(R));
|
|
938
795
|
}
|
|
939
796
|
t(() => {
|
|
940
|
-
(!
|
|
797
|
+
(!A(P) || A(ee)) && o(R, !1);
|
|
941
798
|
});
|
|
942
|
-
function
|
|
799
|
+
function Ge(e) {
|
|
943
800
|
if (_()?.disabled) return;
|
|
944
801
|
let t = e.key;
|
|
945
802
|
if (![
|
|
@@ -956,239 +813,207 @@ function Ke(n, l) {
|
|
|
956
813
|
let a = r[i];
|
|
957
814
|
a.checked = !0, a.dispatchEvent(new Event("change", { bubbles: !0 })), a.focus();
|
|
958
815
|
}
|
|
959
|
-
let
|
|
816
|
+
let Ke = v(() => ge({
|
|
960
817
|
locale: _()?.locale,
|
|
961
818
|
audioButtonSkin: _()?.audioButtonSkin,
|
|
962
819
|
audioButtonSkinsByLocale: _()?.audioButtonSkinsByLocale
|
|
963
820
|
}));
|
|
964
|
-
function
|
|
965
|
-
|
|
821
|
+
function qe() {
|
|
822
|
+
I(A(j), { fallbackSelector: "mc-populated-blank" })?.onAudioStarted?.();
|
|
966
823
|
}
|
|
967
|
-
function
|
|
968
|
-
|
|
824
|
+
function Je() {
|
|
825
|
+
I(A(j), { fallbackSelector: "mc-populated-blank" })?.onAudioEnded?.();
|
|
969
826
|
}
|
|
970
827
|
t(() => {
|
|
971
828
|
C()?.choiceId && o(T, C().choiceId, !0);
|
|
972
829
|
}), t(() => {
|
|
973
|
-
let e =
|
|
974
|
-
if (e) return e.addEventListener("click",
|
|
830
|
+
let e = A(E);
|
|
831
|
+
if (e) return e.addEventListener("click", We), () => e.removeEventListener("click", We);
|
|
975
832
|
}), t(() => {
|
|
976
|
-
let e =
|
|
833
|
+
let e = A(O);
|
|
977
834
|
if (!e) return;
|
|
978
835
|
let t = (e) => {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
}, n = (e) => Ze(e);
|
|
836
|
+
e.target?.type === "radio" && Ue(e);
|
|
837
|
+
}, n = (e) => Ge(e);
|
|
982
838
|
return e.addEventListener("change", t), e.addEventListener("keydown", n), () => {
|
|
983
839
|
e.removeEventListener("change", t), e.removeEventListener("keydown", n);
|
|
984
840
|
};
|
|
985
841
|
}), t(() => {
|
|
986
|
-
|
|
987
|
-
}), t(() => {
|
|
988
|
-
let e = k(A);
|
|
989
|
-
if (!e) return;
|
|
990
|
-
let t = () => {
|
|
991
|
-
o(j, !!e.closest(".rli-with-audio-transcript"));
|
|
992
|
-
};
|
|
993
|
-
t();
|
|
994
|
-
let n = new MutationObserver(t), r = e.parentElement;
|
|
995
|
-
for (; r;) n.observe(r, {
|
|
996
|
-
attributes: !0,
|
|
997
|
-
attributeFilter: ["class"]
|
|
998
|
-
}), r = r.parentElement;
|
|
999
|
-
return () => n.disconnect();
|
|
842
|
+
De(A(ze));
|
|
1000
843
|
});
|
|
1001
|
-
var
|
|
844
|
+
var Ye = {
|
|
1002
845
|
get model() {
|
|
1003
846
|
return _();
|
|
1004
847
|
},
|
|
1005
|
-
set model(
|
|
1006
|
-
_(
|
|
848
|
+
set model(t) {
|
|
849
|
+
_(t), e();
|
|
1007
850
|
},
|
|
1008
851
|
get session() {
|
|
1009
852
|
return C();
|
|
1010
853
|
},
|
|
1011
|
-
set session(
|
|
1012
|
-
C(
|
|
854
|
+
set session(t) {
|
|
855
|
+
C(t), e();
|
|
1013
856
|
}
|
|
1014
|
-
}, Q =
|
|
1015
|
-
var t =
|
|
1016
|
-
p(t, () => _().prompt, !0), s(t), c(() => d(t, "id",
|
|
857
|
+
}, Q = Fe(), Xe = k(Q), Ze = (e) => {
|
|
858
|
+
var t = Oe();
|
|
859
|
+
p(t, () => _().prompt, !0), s(t), c(() => d(t, "id", A(Z))), h(e, t);
|
|
1017
860
|
};
|
|
1018
|
-
x(
|
|
1019
|
-
_()?.prompt && e(
|
|
861
|
+
x(Xe, (e) => {
|
|
862
|
+
_()?.prompt && e(Ze);
|
|
1020
863
|
});
|
|
1021
|
-
var
|
|
1022
|
-
var t =
|
|
1023
|
-
|
|
1024
|
-
b(t, 1, `text-sm mb-3 text-gray-700 text-center pie-audio-transcript ${k(se) ? "" : "sr-only"}`, "svelte-6wlbb4"), d(t, "id", k(ve)), g(n, _().audioTranscript);
|
|
1025
|
-
}), h(e, t);
|
|
1026
|
-
};
|
|
1027
|
-
x(it, (e) => {
|
|
1028
|
-
_()?.audioTranscript && e(at);
|
|
1029
|
-
});
|
|
1030
|
-
var ot = r(it, 2), st = (e) => {
|
|
1031
|
-
var t = Be(), n = O(t), i = O(n), a = O(i), l = O(a), u = (e) => {
|
|
1032
|
-
h(e, Re());
|
|
864
|
+
var Qe = r(Xe, 2), $e = (e) => {
|
|
865
|
+
var t = je(), n = k(t), i = k(n), a = k(i), l = k(a), u = (e) => {
|
|
866
|
+
h(e, ke());
|
|
1033
867
|
}, f = (e) => {
|
|
1034
|
-
h(e,
|
|
868
|
+
h(e, Ae());
|
|
1035
869
|
};
|
|
1036
870
|
x(l, (e) => {
|
|
1037
|
-
|
|
871
|
+
A(R) ? e(u) : e(f, -1);
|
|
1038
872
|
}), s(a);
|
|
1039
|
-
var p = r(a, 2), m =
|
|
1040
|
-
s(p), s(i), s(n), w(n, (e) => o(E, e), () =>
|
|
1041
|
-
d(n, "aria-pressed",
|
|
873
|
+
var p = r(a, 2), m = k(p, !0);
|
|
874
|
+
s(p), s(i), s(n), w(n, (e) => o(E, e), () => A(E)), s(t), c(() => {
|
|
875
|
+
d(n, "aria-pressed", A(R)), g(m, A(R) ? A(X).hideCorrectAnswer : A(X).showCorrectAnswer);
|
|
1042
876
|
}), h(e, t);
|
|
1043
877
|
};
|
|
1044
|
-
x(
|
|
1045
|
-
|
|
878
|
+
x(Qe, (e) => {
|
|
879
|
+
A(re) && e($e);
|
|
1046
880
|
});
|
|
1047
|
-
var
|
|
881
|
+
var et = r(Qe, 2);
|
|
1048
882
|
{
|
|
1049
|
-
let
|
|
1050
|
-
|
|
883
|
+
let e = v(() => !!_()?.hasAudio), t = v(() => _()?.audioUrl), n = v(() => !!_()?.autoplayAudioEnabled), r = v(() => _()?.locale);
|
|
884
|
+
V(et, {
|
|
1051
885
|
get hasAudio() {
|
|
1052
|
-
return
|
|
886
|
+
return A(e);
|
|
1053
887
|
},
|
|
1054
888
|
get audioUrl() {
|
|
1055
|
-
return
|
|
889
|
+
return A(t);
|
|
1056
890
|
},
|
|
1057
891
|
get useFeatureButtonAudio() {
|
|
1058
|
-
return
|
|
892
|
+
return A(ae);
|
|
1059
893
|
},
|
|
1060
894
|
get autoplayEnabled() {
|
|
1061
|
-
return
|
|
1062
|
-
},
|
|
1063
|
-
get audioTranscript() {
|
|
1064
|
-
return k(i);
|
|
1065
|
-
},
|
|
1066
|
-
get showVisibleTranscript() {
|
|
1067
|
-
return k(se);
|
|
1068
|
-
},
|
|
1069
|
-
get transcriptId() {
|
|
1070
|
-
return k(ve);
|
|
895
|
+
return A(n);
|
|
1071
896
|
},
|
|
1072
897
|
get featureAudioSkin() {
|
|
1073
|
-
return
|
|
898
|
+
return A(Ke);
|
|
1074
899
|
},
|
|
1075
900
|
get uiText() {
|
|
1076
|
-
return
|
|
901
|
+
return A(X);
|
|
1077
902
|
},
|
|
1078
903
|
get locale() {
|
|
1079
|
-
return
|
|
904
|
+
return A(r);
|
|
1080
905
|
},
|
|
1081
|
-
onaudiostarted:
|
|
1082
|
-
onaudioended:
|
|
906
|
+
onaudiostarted: qe,
|
|
907
|
+
onaudioended: Je
|
|
1083
908
|
});
|
|
1084
909
|
}
|
|
1085
|
-
var
|
|
1086
|
-
var t =
|
|
1087
|
-
p(t, () => _().sentenceHtml, !0), s(t), c(() => d(t, "aria-describedby",
|
|
910
|
+
var tt = r(et, 2), nt = (e) => {
|
|
911
|
+
var t = Me();
|
|
912
|
+
p(t, () => _().sentenceHtml, !0), s(t), c(() => d(t, "aria-describedby", A(Le))), h(e, t);
|
|
1088
913
|
};
|
|
1089
|
-
x(
|
|
1090
|
-
_()?.sentenceHtml && e(
|
|
914
|
+
x(tt, (e) => {
|
|
915
|
+
_()?.sentenceHtml && e(nt);
|
|
1091
916
|
});
|
|
1092
|
-
var
|
|
1093
|
-
var t =
|
|
1094
|
-
p(n, () =>
|
|
1095
|
-
var i = r(n
|
|
1096
|
-
|
|
917
|
+
var rt = r(tt, 2), it = (e) => {
|
|
918
|
+
var t = Ne(), n = k(t);
|
|
919
|
+
p(n, () => A(Ve).before);
|
|
920
|
+
var i = r(n);
|
|
921
|
+
oe(i, {
|
|
1097
922
|
get choiceMode() {
|
|
1098
|
-
return
|
|
923
|
+
return A(q);
|
|
1099
924
|
},
|
|
1100
925
|
get displayChoice() {
|
|
1101
|
-
return
|
|
926
|
+
return A(ce);
|
|
1102
927
|
},
|
|
1103
928
|
get displayChoiceLabelHtml() {
|
|
1104
|
-
return
|
|
929
|
+
return A(de);
|
|
1105
930
|
},
|
|
1106
931
|
get isStandalone() {
|
|
1107
|
-
return
|
|
932
|
+
return A(U);
|
|
1108
933
|
},
|
|
1109
934
|
get blankWidth() {
|
|
1110
|
-
return
|
|
935
|
+
return A(G).blankWidth;
|
|
1111
936
|
},
|
|
1112
937
|
get blankBorderWidth() {
|
|
1113
|
-
return
|
|
938
|
+
return A(G).blankBorderWidth;
|
|
1114
939
|
},
|
|
1115
940
|
get ariaLabel() {
|
|
1116
|
-
return
|
|
941
|
+
return A(X).selectedAnswerInSentence;
|
|
1117
942
|
}
|
|
1118
|
-
}), p(r(i
|
|
943
|
+
}), p(r(i), () => A(Ve).after), s(t), c(() => d(t, "aria-describedby", A(Le))), h(e, t);
|
|
1119
944
|
};
|
|
1120
|
-
x(
|
|
1121
|
-
|
|
945
|
+
x(rt, (e) => {
|
|
946
|
+
A(H) || e(it);
|
|
1122
947
|
});
|
|
1123
|
-
var
|
|
1124
|
-
var t =
|
|
948
|
+
var at = r(rt, 2), ot = (e) => {
|
|
949
|
+
var t = Pe(), n = k(t, !0);
|
|
1125
950
|
s(t), c(() => {
|
|
1126
|
-
d(t, "id",
|
|
951
|
+
d(t, "id", A(xe)), g(n, A(fe));
|
|
1127
952
|
}), h(e, t);
|
|
1128
953
|
};
|
|
1129
|
-
x(
|
|
1130
|
-
|
|
954
|
+
x(at, (e) => {
|
|
955
|
+
A(fe) && e(ot);
|
|
1131
956
|
});
|
|
1132
|
-
var
|
|
1133
|
-
s(
|
|
1134
|
-
var $ = r(
|
|
1135
|
-
return m($, 21, () =>
|
|
957
|
+
var st = r(at, 2), ct = k(st), lt = k(ct, !0);
|
|
958
|
+
s(ct);
|
|
959
|
+
var $ = r(ct, 2);
|
|
960
|
+
return m($, 21, () => A(K), (e) => e.id, (e, t) => {
|
|
1136
961
|
{
|
|
1137
|
-
let
|
|
1138
|
-
|
|
962
|
+
let n = v(() => A(Y) === A(t).id), r = v(() => !!_()?.disabled), i = v(() => A(me).get(A(t).id));
|
|
963
|
+
le(e, {
|
|
1139
964
|
get choice() {
|
|
1140
|
-
return
|
|
965
|
+
return A(t);
|
|
1141
966
|
},
|
|
1142
967
|
get choiceMode() {
|
|
1143
|
-
return
|
|
968
|
+
return A(q);
|
|
1144
969
|
},
|
|
1145
970
|
get isHorizontal() {
|
|
1146
|
-
return
|
|
971
|
+
return A(W);
|
|
1147
972
|
},
|
|
1148
973
|
get isSelected() {
|
|
1149
|
-
return
|
|
974
|
+
return A(n);
|
|
1150
975
|
},
|
|
1151
976
|
get isDisabled() {
|
|
1152
|
-
return
|
|
977
|
+
return A(r);
|
|
1153
978
|
},
|
|
1154
979
|
get correctness() {
|
|
1155
|
-
return
|
|
980
|
+
return A(i);
|
|
1156
981
|
},
|
|
1157
982
|
get isEvaluateMode() {
|
|
1158
|
-
return
|
|
983
|
+
return A(P);
|
|
1159
984
|
},
|
|
1160
985
|
get instanceId() {
|
|
1161
986
|
return M;
|
|
1162
987
|
},
|
|
1163
988
|
get radioGroupName() {
|
|
1164
|
-
return
|
|
989
|
+
return A(se);
|
|
1165
990
|
}
|
|
1166
991
|
});
|
|
1167
992
|
}
|
|
1168
|
-
}), s($), w($, (e) => o(
|
|
1169
|
-
b(Q, 1, `p-4 mc-populated-blank-root pie-element pie-element-mc-populated-blank pie-delivery-root layout-${
|
|
1170
|
-
}), h(n, Q), i(
|
|
993
|
+
}), s($), w($, (e) => o(O, e), () => A(O)), s(st), s(Q), w(Q, (e) => o(j, e), () => A(j)), c(() => {
|
|
994
|
+
b(Q, 1, `p-4 mc-populated-blank-root pie-element pie-element-mc-populated-blank pie-delivery-root layout-${A(z)} ${A(Be)} ${A(ie) ? "has-inline-audio" : ""}`, "svelte-6wlbb4"), d(Q, "lang", A(Re)), f(Q, A(G).rootStyle), st.disabled = _()?.disabled, d(ct, "id", A(be)), g(lt, A(Se)), b($, 1, `pie-choices ${A(W) ? "flex flex-row flex-wrap items-start justify-center" : "flex flex-col"}`, "svelte-6wlbb4"), d($, "aria-labelledby", A(Te)), d($, "aria-label", A(Ee)), d($, "aria-describedby", A(fe) ? A(xe) : void 0);
|
|
995
|
+
}), h(n, Q), i(Ye);
|
|
1171
996
|
}
|
|
1172
|
-
E(
|
|
997
|
+
E(Le, {
|
|
1173
998
|
model: { type: "Object" },
|
|
1174
999
|
session: { type: "Object" },
|
|
1175
1000
|
options: { type: "Object" }
|
|
1176
1001
|
}, [], []);
|
|
1177
1002
|
//#endregion
|
|
1178
1003
|
//#region src/delivery/index.ts
|
|
1179
|
-
function
|
|
1004
|
+
function Re(e, t, n = !1) {
|
|
1180
1005
|
return !(!t?.choiceId || e?.autoplayAudioEnabled && e?.completeAudioEnabled && e?.hasAudio && !n);
|
|
1181
1006
|
}
|
|
1182
|
-
var
|
|
1007
|
+
var ze = Le.element, Be = class extends ze {
|
|
1183
1008
|
_internalSession = null;
|
|
1184
1009
|
_model = null;
|
|
1185
1010
|
_options = null;
|
|
1186
1011
|
audioComplete = !1;
|
|
1187
1012
|
_dispatchModelSet = () => {
|
|
1188
|
-
this.dispatchEvent(new
|
|
1013
|
+
this.dispatchEvent(new N(this.tagName.toLowerCase(), this._isComplete(), this._model !== void 0));
|
|
1189
1014
|
};
|
|
1190
1015
|
_dispatchSessionChanged = () => {
|
|
1191
|
-
this.dispatchEvent(new
|
|
1016
|
+
this.dispatchEvent(new P(this.tagName.toLowerCase(), this._isComplete()));
|
|
1192
1017
|
};
|
|
1193
1018
|
set model(e) {
|
|
1194
1019
|
this._model = e, this.audioComplete = !1, super.model = e, this._dispatchModelSet();
|
|
@@ -1223,12 +1048,12 @@ var Je = Ke.element, Ye = class extends Je {
|
|
|
1223
1048
|
audioEndTime: Date.now()
|
|
1224
1049
|
}, this._dispatchSessionChanged();
|
|
1225
1050
|
};
|
|
1226
|
-
_isComplete = () =>
|
|
1051
|
+
_isComplete = () => Re(this._model, this._internalSession, this.audioComplete);
|
|
1227
1052
|
connectedCallback() {
|
|
1228
1053
|
super.connectedCallback(), this.onSessionChange = this.onSessionChange, this.onAudioStarted = this.onAudioStarted, this.onAudioEnded = this.onAudioEnded;
|
|
1229
1054
|
}
|
|
1230
1055
|
};
|
|
1231
1056
|
//#endregion
|
|
1232
|
-
export {
|
|
1057
|
+
export { Be as default };
|
|
1233
1058
|
|
|
1234
1059
|
//# sourceMappingURL=index.js.map
|