eat-js-sdk 2.0.14 → 2.0.16
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/dist/interaction-builder.mjs +378 -375
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ var Pi = (e) => {
|
|
|
4
4
|
};
|
|
5
5
|
var Ho = (e, t, r) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
6
|
var Re = (e, t, r) => Ho(e, typeof t != "symbol" ? t + "" : t, r), Bn = (e, t, r) => t.has(e) || Pi("Cannot " + r);
|
|
7
|
-
var
|
|
7
|
+
var T = (e, t, r) => (Bn(e, t, "read from private field"), r ? r.call(e) : t.get(e)), de = (e, t, r) => t.has(e) ? Pi("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), J = (e, t, r, n) => (Bn(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), Me = (e, t, r) => (Bn(e, t, "access private method"), r);
|
|
8
8
|
const mr = {}, De = Symbol(), zo = "http://www.w3.org/1999/xhtml", ia = !1;
|
|
9
9
|
var vi = Array.isArray, Bo = Array.prototype.indexOf, wi = Array.from, xn = Object.keys, Pr = Object.defineProperty, fr = Object.getOwnPropertyDescriptor, Wo = Object.getOwnPropertyDescriptors, Vo = Object.prototype, jo = Array.prototype, aa = Object.getPrototypeOf, Hi = Object.isExtensible;
|
|
10
10
|
function qo(e) {
|
|
@@ -295,13 +295,13 @@ const An = class An {
|
|
|
295
295
|
It = [], mn = null, this.apply();
|
|
296
296
|
for (const a of t)
|
|
297
297
|
Me(this, ft, Xn).call(this, a);
|
|
298
|
-
if (
|
|
298
|
+
if (T(this, sr) === 0) {
|
|
299
299
|
var r = gt;
|
|
300
300
|
Me(this, ft, Jn).call(this);
|
|
301
|
-
var n =
|
|
302
|
-
J(this, Fr, []), J(this, lr, []), J(this, $r, []), mn = this, ke = null, gt = r, Bi(n), Bi(i), mn = null,
|
|
301
|
+
var n = T(this, Fr), i = T(this, lr);
|
|
302
|
+
J(this, Fr, []), J(this, lr, []), J(this, $r, []), mn = this, ke = null, gt = r, Bi(n), Bi(i), mn = null, T(this, tn)?.resolve();
|
|
303
303
|
} else
|
|
304
|
-
Me(this, ft, gn).call(this,
|
|
304
|
+
Me(this, ft, gn).call(this, T(this, Fr)), Me(this, ft, gn).call(this, T(this, lr)), Me(this, ft, gn).call(this, T(this, $r));
|
|
305
305
|
gt = null;
|
|
306
306
|
}
|
|
307
307
|
/**
|
|
@@ -311,7 +311,7 @@ const An = class An {
|
|
|
311
311
|
* @param {any} value
|
|
312
312
|
*/
|
|
313
313
|
capture(t, r) {
|
|
314
|
-
|
|
314
|
+
T(this, Or).has(t) || T(this, Or).set(t, r), this.current.set(t, t.v), gt?.set(t, t.v);
|
|
315
315
|
}
|
|
316
316
|
activate() {
|
|
317
317
|
ke = this;
|
|
@@ -323,29 +323,29 @@ const An = class An {
|
|
|
323
323
|
if (It.length > 0) {
|
|
324
324
|
if (this.activate(), wa(), ke !== null && ke !== this)
|
|
325
325
|
return;
|
|
326
|
-
} else
|
|
326
|
+
} else T(this, sr) === 0 && Me(this, ft, Jn).call(this);
|
|
327
327
|
this.deactivate();
|
|
328
328
|
for (const t of Qn)
|
|
329
329
|
if (Qn.delete(t), t(), ke !== null)
|
|
330
330
|
break;
|
|
331
331
|
}
|
|
332
332
|
increment() {
|
|
333
|
-
J(this, sr,
|
|
333
|
+
J(this, sr, T(this, sr) + 1);
|
|
334
334
|
}
|
|
335
335
|
decrement() {
|
|
336
|
-
J(this, sr,
|
|
337
|
-
for (const t of
|
|
336
|
+
J(this, sr, T(this, sr) - 1);
|
|
337
|
+
for (const t of T(this, rn))
|
|
338
338
|
Ve(t, Je), vr(t);
|
|
339
|
-
for (const t of
|
|
339
|
+
for (const t of T(this, nn))
|
|
340
340
|
Ve(t, er), vr(t);
|
|
341
341
|
this.flush();
|
|
342
342
|
}
|
|
343
343
|
/** @param {() => void} fn */
|
|
344
344
|
add_callback(t) {
|
|
345
|
-
|
|
345
|
+
T(this, Dr).add(t);
|
|
346
346
|
}
|
|
347
347
|
settled() {
|
|
348
|
-
return (
|
|
348
|
+
return (T(this, tn) ?? J(this, tn, oa())).promise;
|
|
349
349
|
}
|
|
350
350
|
static ensure() {
|
|
351
351
|
if (ke === null) {
|
|
@@ -373,7 +373,7 @@ Xn = function(t) {
|
|
|
373
373
|
for (var r = t.first; r !== null; ) {
|
|
374
374
|
var n = r.f, i = (n & (Vt | Jt)) !== 0, a = i && (n & ze) !== 0, s = a || (n & bt) !== 0 || this.skipped_effects.has(r);
|
|
375
375
|
if (!s && r.fn !== null) {
|
|
376
|
-
i ? r.f ^= ze : (n & bi) !== 0 ?
|
|
376
|
+
i ? r.f ^= ze : (n & bi) !== 0 ? T(this, lr).push(r) : Fn(r) && ((r.f & Xt) !== 0 && T(this, $r).push(r), kn(r));
|
|
377
377
|
var l = r.first;
|
|
378
378
|
if (l !== null) {
|
|
379
379
|
r = l;
|
|
@@ -389,17 +389,17 @@ Xn = function(t) {
|
|
|
389
389
|
*/
|
|
390
390
|
gn = function(t) {
|
|
391
391
|
for (const r of t)
|
|
392
|
-
((r.f & Je) !== 0 ?
|
|
392
|
+
((r.f & Je) !== 0 ? T(this, rn) : T(this, nn)).push(r), Ve(r, ze);
|
|
393
393
|
t.length = 0;
|
|
394
394
|
}, /**
|
|
395
395
|
* Append and remove branches to/from the DOM
|
|
396
396
|
*/
|
|
397
397
|
Jn = function() {
|
|
398
398
|
var t;
|
|
399
|
-
for (const r of
|
|
399
|
+
for (const r of T(this, Dr))
|
|
400
400
|
r();
|
|
401
|
-
if (
|
|
402
|
-
|
|
401
|
+
if (T(this, Dr).clear(), dn.size > 1) {
|
|
402
|
+
T(this, Or).clear();
|
|
403
403
|
let r = !0;
|
|
404
404
|
for (const n of dn) {
|
|
405
405
|
if (n === this) {
|
|
@@ -583,25 +583,25 @@ class hs {
|
|
|
583
583
|
*/
|
|
584
584
|
de(this, Yt, null);
|
|
585
585
|
de(this, In, () => {
|
|
586
|
-
|
|
586
|
+
T(this, Yt) && Jr(T(this, Yt), T(this, ur));
|
|
587
587
|
});
|
|
588
|
-
de(this, En, ds(() => (J(this, Yt, wr(
|
|
588
|
+
de(this, En, ds(() => (J(this, Yt, wr(T(this, ur))), () => {
|
|
589
589
|
J(this, Yt, null);
|
|
590
590
|
})));
|
|
591
591
|
J(this, Qe, t), J(this, _t, r), J(this, cr, n), this.parent = /** @type {Effect} */
|
|
592
|
-
ie.b, J(this, ht, !!
|
|
592
|
+
ie.b, J(this, ht, !!T(this, _t).pending), J(this, Ct, Wr(() => {
|
|
593
593
|
if (ie.b = this, ee) {
|
|
594
|
-
const i =
|
|
594
|
+
const i = T(this, an);
|
|
595
595
|
gr(), /** @type {Comment} */
|
|
596
596
|
i.nodeType === tr && /** @type {Comment} */
|
|
597
597
|
i.data === "[!" ? Me(this, Oe, _a).call(this) : Me(this, Oe, ya).call(this);
|
|
598
598
|
} else {
|
|
599
599
|
try {
|
|
600
|
-
J(this, at, st(() => n(
|
|
600
|
+
J(this, at, st(() => n(T(this, Qe))));
|
|
601
601
|
} catch (i) {
|
|
602
602
|
this.error(i);
|
|
603
603
|
}
|
|
604
|
-
|
|
604
|
+
T(this, Ut) > 0 ? Me(this, Oe, wn).call(this) : J(this, ht, !1);
|
|
605
605
|
}
|
|
606
606
|
}, fs)), ee && J(this, Qe, ue);
|
|
607
607
|
}
|
|
@@ -610,10 +610,10 @@ class hs {
|
|
|
610
610
|
* @returns {boolean}
|
|
611
611
|
*/
|
|
612
612
|
is_pending() {
|
|
613
|
-
return
|
|
613
|
+
return T(this, ht) || !!this.parent && this.parent.is_pending();
|
|
614
614
|
}
|
|
615
615
|
has_pending_snippet() {
|
|
616
|
-
return !!
|
|
616
|
+
return !!T(this, _t).pending;
|
|
617
617
|
}
|
|
618
618
|
/**
|
|
619
619
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -622,23 +622,23 @@ class hs {
|
|
|
622
622
|
* @param {1 | -1} d
|
|
623
623
|
*/
|
|
624
624
|
update_pending_count(t) {
|
|
625
|
-
Me(this, Oe, ei).call(this, t), J(this, ur,
|
|
625
|
+
Me(this, Oe, ei).call(this, t), J(this, ur, T(this, ur) + t), Qn.add(T(this, In));
|
|
626
626
|
}
|
|
627
627
|
get_effect_pending() {
|
|
628
|
-
return
|
|
628
|
+
return T(this, En).call(this), o(
|
|
629
629
|
/** @type {Source<number>} */
|
|
630
|
-
|
|
630
|
+
T(this, Yt)
|
|
631
631
|
);
|
|
632
632
|
}
|
|
633
633
|
/** @param {unknown} error */
|
|
634
634
|
error(t) {
|
|
635
|
-
var r =
|
|
636
|
-
let n =
|
|
637
|
-
if (
|
|
635
|
+
var r = T(this, _t).onerror;
|
|
636
|
+
let n = T(this, _t).failed;
|
|
637
|
+
if (T(this, dr) || !r && !n)
|
|
638
638
|
throw t;
|
|
639
|
-
|
|
639
|
+
T(this, at) && (We(T(this, at)), J(this, at, null)), T(this, qe) && (We(T(this, qe)), J(this, qe, null)), T(this, kt) && (We(T(this, kt)), J(this, kt, null)), ee && (Le(
|
|
640
640
|
/** @type {TemplateNode} */
|
|
641
|
-
|
|
641
|
+
T(this, an)
|
|
642
642
|
), Ln(), Le(_n()));
|
|
643
643
|
var i = !1, a = !1;
|
|
644
644
|
const s = () => {
|
|
@@ -646,15 +646,15 @@ class hs {
|
|
|
646
646
|
os();
|
|
647
647
|
return;
|
|
648
648
|
}
|
|
649
|
-
i = !0, a && as(), Et.ensure(), J(this, ur, 0),
|
|
649
|
+
i = !0, a && as(), Et.ensure(), J(this, ur, 0), T(this, kt) !== null && Lr(T(this, kt), () => {
|
|
650
650
|
J(this, kt, null);
|
|
651
|
-
}), J(this, ht, this.has_pending_snippet()), J(this, at, Me(this, Oe, vn).call(this, () => (J(this, dr, !1), st(() =>
|
|
651
|
+
}), J(this, ht, this.has_pending_snippet()), J(this, at, Me(this, Oe, vn).call(this, () => (J(this, dr, !1), st(() => T(this, cr).call(this, T(this, Qe)))))), T(this, Ut) > 0 ? Me(this, Oe, wn).call(this) : J(this, ht, !1);
|
|
652
652
|
};
|
|
653
653
|
var l = se;
|
|
654
654
|
try {
|
|
655
655
|
Ue(null), a = !0, r?.(t, s), a = !1;
|
|
656
656
|
} catch (u) {
|
|
657
|
-
zr(u,
|
|
657
|
+
zr(u, T(this, Ct) && T(this, Ct).parent);
|
|
658
658
|
} finally {
|
|
659
659
|
Ue(l);
|
|
660
660
|
}
|
|
@@ -664,7 +664,7 @@ class hs {
|
|
|
664
664
|
try {
|
|
665
665
|
return st(() => {
|
|
666
666
|
n(
|
|
667
|
-
|
|
667
|
+
T(this, Qe),
|
|
668
668
|
() => t,
|
|
669
669
|
() => s
|
|
670
670
|
);
|
|
@@ -673,7 +673,7 @@ class hs {
|
|
|
673
673
|
return zr(
|
|
674
674
|
u,
|
|
675
675
|
/** @type {Effect} */
|
|
676
|
-
|
|
676
|
+
T(this, Ct).parent
|
|
677
677
|
), null;
|
|
678
678
|
} finally {
|
|
679
679
|
J(this, dr, !1);
|
|
@@ -684,17 +684,17 @@ class hs {
|
|
|
684
684
|
}
|
|
685
685
|
ht = new WeakMap(), Qe = new WeakMap(), an = new WeakMap(), _t = new WeakMap(), cr = new WeakMap(), Ct = new WeakMap(), at = new WeakMap(), qe = new WeakMap(), kt = new WeakMap(), qt = new WeakMap(), ur = new WeakMap(), Ut = new WeakMap(), dr = new WeakMap(), Yt = new WeakMap(), In = new WeakMap(), En = new WeakMap(), Oe = new WeakSet(), ya = function() {
|
|
686
686
|
try {
|
|
687
|
-
J(this, at, st(() =>
|
|
687
|
+
J(this, at, st(() => T(this, cr).call(this, T(this, Qe))));
|
|
688
688
|
} catch (t) {
|
|
689
689
|
this.error(t);
|
|
690
690
|
}
|
|
691
691
|
J(this, ht, !1);
|
|
692
692
|
}, _a = function() {
|
|
693
|
-
const t =
|
|
694
|
-
t && (J(this, qe, st(() => t(
|
|
695
|
-
J(this, at, Me(this, Oe, vn).call(this, () => (Et.ensure(), st(() =>
|
|
693
|
+
const t = T(this, _t).pending;
|
|
694
|
+
t && (J(this, qe, st(() => t(T(this, Qe)))), Et.enqueue(() => {
|
|
695
|
+
J(this, at, Me(this, Oe, vn).call(this, () => (Et.ensure(), st(() => T(this, cr).call(this, T(this, Qe)))))), T(this, Ut) > 0 ? Me(this, Oe, wn).call(this) : (Lr(
|
|
696
696
|
/** @type {Effect} */
|
|
697
|
-
|
|
697
|
+
T(this, qe),
|
|
698
698
|
() => {
|
|
699
699
|
J(this, qe, null);
|
|
700
700
|
}
|
|
@@ -705,7 +705,7 @@ ht = new WeakMap(), Qe = new WeakMap(), an = new WeakMap(), _t = new WeakMap(),
|
|
|
705
705
|
*/
|
|
706
706
|
vn = function(t) {
|
|
707
707
|
var r = ie, n = se, i = Ye;
|
|
708
|
-
Nt(
|
|
708
|
+
Nt(T(this, Ct)), Ue(T(this, Ct)), Hr(T(this, Ct).ctx);
|
|
709
709
|
try {
|
|
710
710
|
return t();
|
|
711
711
|
} catch (a) {
|
|
@@ -716,9 +716,9 @@ vn = function(t) {
|
|
|
716
716
|
}, wn = function() {
|
|
717
717
|
const t = (
|
|
718
718
|
/** @type {(anchor: Node) => void} */
|
|
719
|
-
|
|
719
|
+
T(this, _t).pending
|
|
720
720
|
);
|
|
721
|
-
|
|
721
|
+
T(this, at) !== null && (J(this, qt, document.createDocumentFragment()), Wa(T(this, at), T(this, qt))), T(this, qe) === null && J(this, qe, st(() => t(T(this, Qe))));
|
|
722
722
|
}, /**
|
|
723
723
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
724
724
|
* if any, such that we can replace the snippet with content once work is done
|
|
@@ -730,9 +730,9 @@ ei = function(t) {
|
|
|
730
730
|
this.parent && Me(r = this.parent, Oe, ei).call(r, t);
|
|
731
731
|
return;
|
|
732
732
|
}
|
|
733
|
-
J(this, Ut,
|
|
733
|
+
J(this, Ut, T(this, Ut) + t), T(this, Ut) === 0 && (J(this, ht, !1), T(this, qe) && Lr(T(this, qe), () => {
|
|
734
734
|
J(this, qe, null);
|
|
735
|
-
}),
|
|
735
|
+
}), T(this, qt) && (T(this, Qe).before(T(this, qt)), J(this, qt, null)), Kt(() => {
|
|
736
736
|
Et.ensure().flush();
|
|
737
737
|
}));
|
|
738
738
|
};
|
|
@@ -851,7 +851,7 @@ function vs(e, t) {
|
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
853
|
// @__NO_SIDE_EFFECTS__
|
|
854
|
-
function
|
|
854
|
+
function S(e) {
|
|
855
855
|
const t = /* @__PURE__ */ Rn(e);
|
|
856
856
|
return Va(t), t;
|
|
857
857
|
}
|
|
@@ -1854,7 +1854,7 @@ function xe() {
|
|
|
1854
1854
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = xt();
|
|
1855
1855
|
return e.append(t, r), Lt(t, r), e;
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function R(e, t) {
|
|
1858
1858
|
if (ee) {
|
|
1859
1859
|
ie.nodes_end = ue, gr();
|
|
1860
1860
|
return;
|
|
@@ -1992,34 +1992,34 @@ class Mi {
|
|
|
1992
1992
|
/** @type {Batch} */
|
|
1993
1993
|
ke
|
|
1994
1994
|
);
|
|
1995
|
-
if (
|
|
1995
|
+
if (T(this, Pt).has(t)) {
|
|
1996
1996
|
var r = (
|
|
1997
1997
|
/** @type {Key} */
|
|
1998
|
-
|
|
1999
|
-
), n =
|
|
1998
|
+
T(this, Pt).get(t)
|
|
1999
|
+
), n = T(this, St).get(r);
|
|
2000
2000
|
if (n)
|
|
2001
2001
|
Ai(n);
|
|
2002
2002
|
else {
|
|
2003
|
-
var i =
|
|
2004
|
-
i && (
|
|
2003
|
+
var i = T(this, mt).get(r);
|
|
2004
|
+
i && (T(this, St).set(r, i.effect), T(this, mt).delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
2005
2005
|
}
|
|
2006
|
-
for (const [a, s] of
|
|
2007
|
-
if (
|
|
2006
|
+
for (const [a, s] of T(this, Pt)) {
|
|
2007
|
+
if (T(this, Pt).delete(a), a === t)
|
|
2008
2008
|
break;
|
|
2009
|
-
const l =
|
|
2010
|
-
l && (We(l.effect),
|
|
2009
|
+
const l = T(this, mt).get(s);
|
|
2010
|
+
l && (We(l.effect), T(this, mt).delete(s));
|
|
2011
2011
|
}
|
|
2012
|
-
for (const [a, s] of
|
|
2012
|
+
for (const [a, s] of T(this, St)) {
|
|
2013
2013
|
if (a === r) continue;
|
|
2014
2014
|
const l = () => {
|
|
2015
|
-
if (Array.from(
|
|
2015
|
+
if (Array.from(T(this, Pt).values()).includes(a)) {
|
|
2016
2016
|
var c = document.createDocumentFragment();
|
|
2017
|
-
Wa(s, c), c.append(xt()),
|
|
2017
|
+
Wa(s, c), c.append(xt()), T(this, mt).set(a, { effect: s, fragment: c });
|
|
2018
2018
|
} else
|
|
2019
2019
|
We(s);
|
|
2020
|
-
|
|
2020
|
+
T(this, St).delete(a);
|
|
2021
2021
|
};
|
|
2022
|
-
|
|
2022
|
+
T(this, on) || !n ? Lr(s, l, !1) : l();
|
|
2023
2023
|
}
|
|
2024
2024
|
}
|
|
2025
2025
|
});
|
|
@@ -2035,26 +2035,26 @@ class Mi {
|
|
|
2035
2035
|
/** @type {Batch} */
|
|
2036
2036
|
ke
|
|
2037
2037
|
), i = La();
|
|
2038
|
-
if (r && !
|
|
2038
|
+
if (r && !T(this, St).has(t) && !T(this, mt).has(t))
|
|
2039
2039
|
if (i) {
|
|
2040
2040
|
var a = document.createDocumentFragment(), s = xt();
|
|
2041
|
-
a.append(s),
|
|
2041
|
+
a.append(s), T(this, mt).set(t, {
|
|
2042
2042
|
effect: st(() => r(s)),
|
|
2043
2043
|
fragment: a
|
|
2044
2044
|
});
|
|
2045
2045
|
} else
|
|
2046
|
-
|
|
2046
|
+
T(this, St).set(
|
|
2047
2047
|
t,
|
|
2048
2048
|
st(() => r(this.anchor))
|
|
2049
2049
|
);
|
|
2050
|
-
if (
|
|
2051
|
-
for (const [l, u] of
|
|
2050
|
+
if (T(this, Pt).set(n, t), i) {
|
|
2051
|
+
for (const [l, u] of T(this, St))
|
|
2052
2052
|
l === t ? n.skipped_effects.delete(u) : n.skipped_effects.add(u);
|
|
2053
|
-
for (const [l, u] of
|
|
2053
|
+
for (const [l, u] of T(this, mt))
|
|
2054
2054
|
l === t ? n.skipped_effects.delete(u.effect) : n.skipped_effects.add(u.effect);
|
|
2055
|
-
n.add_callback(
|
|
2055
|
+
n.add_callback(T(this, sn));
|
|
2056
2056
|
} else
|
|
2057
|
-
ee && (this.anchor = ue),
|
|
2057
|
+
ee && (this.anchor = ue), T(this, sn).call(this);
|
|
2058
2058
|
}
|
|
2059
2059
|
}
|
|
2060
2060
|
Pt = new WeakMap(), St = new WeakMap(), mt = new WeakMap(), on = new WeakMap(), sn = new WeakMap();
|
|
@@ -2169,22 +2169,22 @@ function Pn(e, t, r, n, i, a = null) {
|
|
|
2169
2169
|
_ !== (w === 0) && (s = _n(), Le(s), Xe(!1), k = !0);
|
|
2170
2170
|
}
|
|
2171
2171
|
if (ee) {
|
|
2172
|
-
for (var C = null, v,
|
|
2172
|
+
for (var C = null, v, A = 0; A < w; A++) {
|
|
2173
2173
|
if (ue.nodeType === tr && /** @type {Comment} */
|
|
2174
2174
|
ue.data === "]") {
|
|
2175
2175
|
s = /** @type {Comment} */
|
|
2176
2176
|
ue, k = !0, Xe(!1);
|
|
2177
2177
|
break;
|
|
2178
2178
|
}
|
|
2179
|
-
var
|
|
2179
|
+
var N = f[A], y = n(N, A);
|
|
2180
2180
|
v = oi(
|
|
2181
2181
|
ue,
|
|
2182
2182
|
l,
|
|
2183
2183
|
C,
|
|
2184
2184
|
null,
|
|
2185
|
-
|
|
2185
|
+
N,
|
|
2186
2186
|
y,
|
|
2187
|
-
|
|
2187
|
+
A,
|
|
2188
2188
|
i,
|
|
2189
2189
|
t,
|
|
2190
2190
|
r
|
|
@@ -2199,17 +2199,17 @@ function Pn(e, t, r, n, i, a = null) {
|
|
|
2199
2199
|
/** @type {Batch} */
|
|
2200
2200
|
ke
|
|
2201
2201
|
);
|
|
2202
|
-
for (
|
|
2203
|
-
|
|
2202
|
+
for (A = 0; A < w; A += 1) {
|
|
2203
|
+
N = f[A], y = n(N, A);
|
|
2204
2204
|
var W = l.items.get(y) ?? h.get(y);
|
|
2205
|
-
W ? Ja(W,
|
|
2205
|
+
W ? Ja(W, N, A) : (v = oi(
|
|
2206
2206
|
null,
|
|
2207
2207
|
l,
|
|
2208
2208
|
null,
|
|
2209
2209
|
null,
|
|
2210
|
-
|
|
2210
|
+
N,
|
|
2211
2211
|
y,
|
|
2212
|
-
|
|
2212
|
+
A,
|
|
2213
2213
|
i,
|
|
2214
2214
|
t,
|
|
2215
2215
|
r,
|
|
@@ -2228,11 +2228,11 @@ function Bs(e, t, r, n, i, a, s, l, u) {
|
|
|
2228
2228
|
var c = t.length, p = r.items, h = r.first, d = h, f, m = null, g = [], w = [], k, _, C, v;
|
|
2229
2229
|
for (v = 0; v < c; v += 1) {
|
|
2230
2230
|
if (k = t[v], _ = l(k, v), C = p.get(_), C === void 0) {
|
|
2231
|
-
var
|
|
2232
|
-
if (
|
|
2233
|
-
n.delete(_), p.set(_,
|
|
2234
|
-
var
|
|
2235
|
-
yt(r, m,
|
|
2231
|
+
var A = n.get(_);
|
|
2232
|
+
if (A !== void 0) {
|
|
2233
|
+
n.delete(_), p.set(_, A);
|
|
2234
|
+
var N = m ? m.next : d;
|
|
2235
|
+
yt(r, m, A), yt(r, A, N), Wn(A, N, i), m = A;
|
|
2236
2236
|
} else {
|
|
2237
2237
|
var y = d ? (
|
|
2238
2238
|
/** @type {TemplateNode} */
|
|
@@ -2671,8 +2671,8 @@ function si(e, t, r, n, i) {
|
|
|
2671
2671
|
if (_ > 0) {
|
|
2672
2672
|
var v = !1;
|
|
2673
2673
|
if (c)
|
|
2674
|
-
for (var
|
|
2675
|
-
var y = w + k * h(
|
|
2674
|
+
for (var A = Math.ceil(_ / 16.666666666666668), N = 0; N <= A; N += 1) {
|
|
2675
|
+
var y = w + k * h(N / A), M = Qi(c(y, 1 - y));
|
|
2676
2676
|
C.push(M), v || (v = M.overflow === "hidden");
|
|
2677
2677
|
}
|
|
2678
2678
|
v && (e.style.overflow = "hidden"), m = () => {
|
|
@@ -2911,27 +2911,27 @@ class ol {
|
|
|
2911
2911
|
intro: t.intro ?? !1,
|
|
2912
2912
|
recover: t.recover
|
|
2913
2913
|
})), (!t?.props?.$$host || t.sync === !1) && b(), J(this, Ht, i.$$events);
|
|
2914
|
-
for (const a of Object.keys(
|
|
2914
|
+
for (const a of Object.keys(T(this, ot)))
|
|
2915
2915
|
a === "$set" || a === "$destroy" || a === "$on" || Pr(this, a, {
|
|
2916
2916
|
get() {
|
|
2917
|
-
return
|
|
2917
|
+
return T(this, ot)[a];
|
|
2918
2918
|
},
|
|
2919
2919
|
/** @param {any} value */
|
|
2920
2920
|
set(s) {
|
|
2921
|
-
|
|
2921
|
+
T(this, ot)[a] = s;
|
|
2922
2922
|
},
|
|
2923
2923
|
enumerable: !0
|
|
2924
2924
|
});
|
|
2925
|
-
|
|
2925
|
+
T(this, ot).$set = /** @param {Record<string, any>} next */
|
|
2926
2926
|
(a) => {
|
|
2927
2927
|
Object.assign(i, a);
|
|
2928
|
-
},
|
|
2929
|
-
$s(
|
|
2928
|
+
}, T(this, ot).$destroy = () => {
|
|
2929
|
+
$s(T(this, ot));
|
|
2930
2930
|
};
|
|
2931
2931
|
}
|
|
2932
2932
|
/** @param {Record<string, any>} props */
|
|
2933
2933
|
$set(t) {
|
|
2934
|
-
|
|
2934
|
+
T(this, ot).$set(t);
|
|
2935
2935
|
}
|
|
2936
2936
|
/**
|
|
2937
2937
|
* @param {string} event
|
|
@@ -2939,17 +2939,17 @@ class ol {
|
|
|
2939
2939
|
* @returns {any}
|
|
2940
2940
|
*/
|
|
2941
2941
|
$on(t, r) {
|
|
2942
|
-
|
|
2942
|
+
T(this, Ht)[t] = T(this, Ht)[t] || [];
|
|
2943
2943
|
const n = (...i) => r.call(this, ...i);
|
|
2944
|
-
return
|
|
2945
|
-
|
|
2944
|
+
return T(this, Ht)[t].push(n), () => {
|
|
2945
|
+
T(this, Ht)[t] = T(this, Ht)[t].filter(
|
|
2946
2946
|
/** @param {any} fn */
|
|
2947
2947
|
(i) => i !== n
|
|
2948
2948
|
);
|
|
2949
2949
|
};
|
|
2950
2950
|
}
|
|
2951
2951
|
$destroy() {
|
|
2952
|
-
|
|
2952
|
+
T(this, ot).$destroy();
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
2955
2955
|
Ht = new WeakMap(), ot = new WeakMap();
|
|
@@ -3012,7 +3012,7 @@ typeof HTMLElement == "function" && (ao = class extends HTMLElement {
|
|
|
3012
3012
|
let t = function(i) {
|
|
3013
3013
|
return (a) => {
|
|
3014
3014
|
const s = document.createElement("slot");
|
|
3015
|
-
i !== "default" && (s.name = i),
|
|
3015
|
+
i !== "default" && (s.name = i), R(a, s);
|
|
3016
3016
|
};
|
|
3017
3017
|
};
|
|
3018
3018
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
@@ -3292,7 +3292,7 @@ const co = cn(null), uo = cn(null), fo = (e) => `${Vr(co)}/${e}`, po = (e = {})
|
|
|
3292
3292
|
var wl = /* @__PURE__ */ z('<div><div class="animate-skeleton w-full h-6 mb-2 rounded md:mb-4"></div> <div class="animate-skeleton w-full h-6 mb-12 rounded"></div> <div class="animate-skeleton w-full h-52 rounded"></div></div>');
|
|
3293
3293
|
function go(e) {
|
|
3294
3294
|
var t = wl();
|
|
3295
|
-
|
|
3295
|
+
R(e, t);
|
|
3296
3296
|
}
|
|
3297
3297
|
me(go, {}, [], [], !0);
|
|
3298
3298
|
var bl = /* @__PURE__ */ z('<p class="p-2 border-2 border-red-600 bg-red-200 rounded"> </p>');
|
|
@@ -3307,7 +3307,7 @@ function di(e, t) {
|
|
|
3307
3307
|
r(s), b();
|
|
3308
3308
|
}
|
|
3309
3309
|
}, i = bl(), a = D(i, !0);
|
|
3310
|
-
return O(i), te(() => dt(a, r())),
|
|
3310
|
+
return O(i), te(() => dt(a, r())), R(e, i), he(n);
|
|
3311
3311
|
}
|
|
3312
3312
|
me(di, { bannerLabel: {} }, [], [], !0);
|
|
3313
3313
|
const Fe = {
|
|
@@ -3338,7 +3338,7 @@ const Fe = {
|
|
|
3338
3338
|
var xl = /* @__PURE__ */ z("<div><!></div>");
|
|
3339
3339
|
function Wt(e, t) {
|
|
3340
3340
|
pe(t, !0);
|
|
3341
|
-
let r = x(t, "htmlString", 7, ""), n = x(t, "otherClass", 7, ""), i = x(t, "ariaHidden", 7, !1), a = x(t, "htmlHeading", 7, ""), s = /* @__PURE__ */
|
|
3341
|
+
let r = x(t, "htmlString", 7, ""), n = x(t, "otherClass", 7, ""), i = x(t, "ariaHidden", 7, !1), a = x(t, "htmlHeading", 7, ""), s = /* @__PURE__ */ S(() => l(r(), a()));
|
|
3342
3342
|
function l(d, f) {
|
|
3343
3343
|
if (d == null) return "";
|
|
3344
3344
|
if (typeof d != "string")
|
|
@@ -3382,13 +3382,13 @@ function Wt(e, t) {
|
|
|
3382
3382
|
var f = xl(), m = D(f);
|
|
3383
3383
|
eo(m, () => o(s)), O(f), te(() => {
|
|
3384
3384
|
le(f, 1, Ie(n())), K(f, "aria-hidden", i());
|
|
3385
|
-
}),
|
|
3385
|
+
}), R(d, f);
|
|
3386
3386
|
};
|
|
3387
3387
|
j(p, (d) => {
|
|
3388
3388
|
o(s) && d(h);
|
|
3389
3389
|
});
|
|
3390
3390
|
}
|
|
3391
|
-
return
|
|
3391
|
+
return R(e, c), he(u);
|
|
3392
3392
|
}
|
|
3393
3393
|
me(
|
|
3394
3394
|
Wt,
|
|
@@ -3553,7 +3553,7 @@ const yl = {
|
|
|
3553
3553
|
var _l = /* @__PURE__ */ Qa("<path></path>"), Cl = /* @__PURE__ */ Qa('<svg xmlns="http://www.w3.org/2000/svg"><!></svg>');
|
|
3554
3554
|
function $e(e, t) {
|
|
3555
3555
|
pe(t, !0);
|
|
3556
|
-
let r = x(t, "width", 7, void 0), n = x(t, "height", 7, void 0), i = x(t, "svgName", 7), a = x(t, "className", 7, void 0), s = /* @__PURE__ */
|
|
3556
|
+
let r = x(t, "width", 7, void 0), n = x(t, "height", 7, void 0), i = x(t, "svgName", 7), a = x(t, "className", 7, void 0), s = /* @__PURE__ */ S(() => {
|
|
3557
3557
|
const h = yl[i()] ?? {};
|
|
3558
3558
|
return {
|
|
3559
3559
|
width: r() ?? h.width,
|
|
@@ -3597,7 +3597,7 @@ function $e(e, t) {
|
|
|
3597
3597
|
var d = _l();
|
|
3598
3598
|
te(() => {
|
|
3599
3599
|
K(d, "fill-rule", o(s).fillRule), K(d, "clip-rule", o(s).clipRule), K(d, "d", o(s).path), K(d, "fill", o(s).pathFill);
|
|
3600
|
-
}),
|
|
3600
|
+
}), R(h, d);
|
|
3601
3601
|
};
|
|
3602
3602
|
j(c, (h) => {
|
|
3603
3603
|
o(s).path && h(p);
|
|
@@ -3605,13 +3605,13 @@ function $e(e, t) {
|
|
|
3605
3605
|
}
|
|
3606
3606
|
return O(u), te(() => {
|
|
3607
3607
|
K(u, "width", o(s).width), K(u, "height", o(s).height), K(u, "viewBox", o(s).viewBox), K(u, "fill", o(s).fill), le(u, 0, Ie(a() ?? i()));
|
|
3608
|
-
}),
|
|
3608
|
+
}), R(e, u), he(l);
|
|
3609
3609
|
}
|
|
3610
3610
|
me($e, { width: {}, height: {}, svgName: {}, className: {} }, [], [], !0);
|
|
3611
3611
|
var kl = /* @__PURE__ */ z("<span><!></span>");
|
|
3612
3612
|
function un(e, t) {
|
|
3613
3613
|
pe(t, !0);
|
|
3614
|
-
let r = x(t, "isCorrect", 7), n = x(t, "iconType", 7, "result"), i = x(t, "parentProps", 7), a = /* @__PURE__ */
|
|
3614
|
+
let r = x(t, "isCorrect", 7), n = x(t, "iconType", 7, "result"), i = x(t, "parentProps", 7), a = /* @__PURE__ */ S(() => n() === "info" ? "infoSolid" : r() ? "successSolid" : "errorSolid"), s = /* @__PURE__ */ S(() => n() === "info" ? "info-icon" : r() ? "correct-icon" : "incorrect-icon");
|
|
3615
3615
|
var l = {
|
|
3616
3616
|
get isCorrect() {
|
|
3617
3617
|
return r();
|
|
@@ -3639,13 +3639,13 @@ function un(e, t) {
|
|
|
3639
3639
|
get className() {
|
|
3640
3640
|
return o(s);
|
|
3641
3641
|
}
|
|
3642
|
-
}), O(u), te(() => le(u, 1, Ie(i()))),
|
|
3642
|
+
}), O(u), te(() => le(u, 1, Ie(i()))), R(e, u), he(l);
|
|
3643
3643
|
}
|
|
3644
3644
|
me(un, { isCorrect: {}, iconType: {}, parentProps: {} }, [], [], !0);
|
|
3645
3645
|
var Sl = /* @__PURE__ */ z('<span class="sr-only">Alert. </span>'), Tl = /* @__PURE__ */ z("<div><!> <div><!> <span><!></span></div></div>");
|
|
3646
3646
|
function Ni(e, t) {
|
|
3647
3647
|
pe(t, !0);
|
|
3648
|
-
let r = x(t, "type", 7, "incorrect"), n = x(t, "message", 7, ""), i = x(t, "showIcon", 7, !1), a = x(t, "iconType", 7, "result"), s = x(t, "isAlert", 7, !0), l = x(t, "iconProps", 7, ""), u = /* @__PURE__ */
|
|
3648
|
+
let r = x(t, "type", 7, "incorrect"), n = x(t, "message", 7, ""), i = x(t, "showIcon", 7, !1), a = x(t, "iconType", 7, "result"), s = x(t, "isAlert", 7, !0), l = x(t, "iconProps", 7, ""), u = /* @__PURE__ */ S(c);
|
|
3649
3649
|
function c() {
|
|
3650
3650
|
const m = "my-6 p-4 border-l-4 flex text-charcoal text-base";
|
|
3651
3651
|
switch (r()) {
|
|
@@ -3701,7 +3701,7 @@ function Ni(e, t) {
|
|
|
3701
3701
|
{
|
|
3702
3702
|
var k = (y) => {
|
|
3703
3703
|
{
|
|
3704
|
-
let M = /* @__PURE__ */
|
|
3704
|
+
let M = /* @__PURE__ */ S(() => r() === "correct"), E = /* @__PURE__ */ S(() => `${l()} ${r() === "correct" ? "text-green-900" : "text-red-900"}`);
|
|
3705
3705
|
un(y, {
|
|
3706
3706
|
get isCorrect() {
|
|
3707
3707
|
return o(M);
|
|
@@ -3723,26 +3723,26 @@ function Ni(e, t) {
|
|
|
3723
3723
|
{
|
|
3724
3724
|
var v = (y) => {
|
|
3725
3725
|
var M = Sl();
|
|
3726
|
-
|
|
3726
|
+
R(y, M);
|
|
3727
3727
|
};
|
|
3728
3728
|
j(C, (y) => {
|
|
3729
3729
|
s() || y(v);
|
|
3730
3730
|
});
|
|
3731
3731
|
}
|
|
3732
|
-
var
|
|
3733
|
-
Wt(
|
|
3732
|
+
var A = Q(C, 2), N = D(A);
|
|
3733
|
+
Wt(N, {
|
|
3734
3734
|
get htmlString() {
|
|
3735
3735
|
return n();
|
|
3736
3736
|
}
|
|
3737
|
-
}), O(
|
|
3737
|
+
}), O(A), O(_), O(g), te(() => {
|
|
3738
3738
|
le(g, 1, Ie(o(u))), K(g, "role", s() ? "alert" : null);
|
|
3739
|
-
}),
|
|
3739
|
+
}), R(m, g);
|
|
3740
3740
|
};
|
|
3741
3741
|
j(d, (m) => {
|
|
3742
3742
|
n() && m(f);
|
|
3743
3743
|
});
|
|
3744
3744
|
}
|
|
3745
|
-
return
|
|
3745
|
+
return R(e, h), he(p);
|
|
3746
3746
|
}
|
|
3747
3747
|
me(
|
|
3748
3748
|
Ni,
|
|
@@ -3823,10 +3823,10 @@ function Il(e, t, r, n) {
|
|
|
3823
3823
|
};
|
|
3824
3824
|
}
|
|
3825
3825
|
function El(e, t, r, n, i) {
|
|
3826
|
-
const a = n.data.selectedOptions ?? [], s = r.correctAnswerIds ?? [], l = !!r.isFinished, u = r.mode, c = r.maxSelections ?? s.length ?? 1, p = u === fe.PREVIEW, h = u === fe.INTERACTIVE, d = u === fe.SESSION, f = a.includes(e.id), m = s.includes(e.id), g = p || h && a.length === c || d && l, w = p && m || h && f && a.length === c || d && l && f, k = c > 1 && (!l && d || (d || p || h) && l && !f && !m || h), _ = !p && m && !f && (d && l || h && a.length === c), C = f && c === 1 && !i && !p && (d && l || h && a.length === c), v = f && c === 1 && i && !p && (d && l || h && a.length === c),
|
|
3826
|
+
const a = n.data.selectedOptions ?? [], s = r.correctAnswerIds ?? [], l = !!r.isFinished, u = r.mode, c = r.maxSelections ?? s.length ?? 1, p = u === fe.PREVIEW, h = u === fe.INTERACTIVE, d = u === fe.SESSION, f = a.includes(e.id), m = s.includes(e.id), g = p || h && a.length === c || d && l, w = p && m || h && f && a.length === c || d && l && f, k = c > 1 && (!l && d || (d || p || h) && l && !f && !m || h), _ = !p && m && !f && (d && l || h && a.length === c), C = f && c === 1 && !i && !p && (d && l || h && a.length === c), v = f && c === 1 && i && !p && (d && l || h && a.length === c), A = (() => {
|
|
3827
3827
|
const y = ["group", "btn-mcq-option"];
|
|
3828
3828
|
return i && y.push("min-w-[288px]", "max-w-[304px]", "min-h-[210px]", "block"), !l || h ? y.push("active:raw-focus-ring-by") : y.push("finished"), f && y.push("selected"), _ && y.push("missing"), g && m ? y.push("correct") : g && f && y.push("incorrect"), h && y.push("interactive"), y.join(" ");
|
|
3829
|
-
})(),
|
|
3829
|
+
})(), N = (() => {
|
|
3830
3830
|
const y = ["custom-checkbox"];
|
|
3831
3831
|
return f ? y.push("border-soft-blue") : y.push("border-gray-850"), (p || d && l) && y.push("preview-only"), h && a.length === c && y.push("ml-2.5"), y.join(" ");
|
|
3832
3832
|
})();
|
|
@@ -3841,13 +3841,13 @@ function El(e, t, r, n, i) {
|
|
|
3841
3841
|
showMediaStudentLabel: v,
|
|
3842
3842
|
showMissingAnswerLabel: _,
|
|
3843
3843
|
shouldShowCorrectness: g,
|
|
3844
|
-
buttonClasses:
|
|
3845
|
-
checkboxClasses:
|
|
3844
|
+
buttonClasses: A,
|
|
3845
|
+
checkboxClasses: N
|
|
3846
3846
|
};
|
|
3847
3847
|
}
|
|
3848
3848
|
function fi(e, t) {
|
|
3849
3849
|
pe(t, !0);
|
|
3850
|
-
let r = x(t, "feedbackState", 7), n = x(t, "isInteractiveMode", 7, !1), i = /* @__PURE__ */
|
|
3850
|
+
let r = x(t, "feedbackState", 7), n = x(t, "isInteractiveMode", 7, !1), i = /* @__PURE__ */ S(() => Al(r().isResultCorrect, r().isSkipped, r().resultFeedback));
|
|
3851
3851
|
var a = {
|
|
3852
3852
|
get feedbackState() {
|
|
3853
3853
|
return r();
|
|
@@ -3865,7 +3865,7 @@ function fi(e, t) {
|
|
|
3865
3865
|
{
|
|
3866
3866
|
var u = (c) => {
|
|
3867
3867
|
{
|
|
3868
|
-
let p = /* @__PURE__ */
|
|
3868
|
+
let p = /* @__PURE__ */ S(() => !n());
|
|
3869
3869
|
Ni(c, {
|
|
3870
3870
|
get type() {
|
|
3871
3871
|
return o(i).type;
|
|
@@ -3887,7 +3887,7 @@ function fi(e, t) {
|
|
|
3887
3887
|
r().isFeedbackShown && o(i).message && c(u);
|
|
3888
3888
|
});
|
|
3889
3889
|
}
|
|
3890
|
-
return
|
|
3890
|
+
return R(e, s), he(a);
|
|
3891
3891
|
}
|
|
3892
3892
|
me(fi, { feedbackState: {}, isInteractiveMode: {} }, [], [], !0);
|
|
3893
3893
|
const Ml = () => {
|
|
@@ -3945,7 +3945,7 @@ const Ml = () => {
|
|
|
3945
3945
|
var Nl = /* @__PURE__ */ z('<dialog aria-modal="true" class="bg-transparent max-w-none max-h-none w-screen h-screen"><div role="button" aria-hidden="true"></div> <!></dialog>');
|
|
3946
3946
|
function Oi(e, t) {
|
|
3947
3947
|
pe(t, !0);
|
|
3948
|
-
let r = x(t, "modalData", 23, () => ({ modalAriaLabel: "", isModalOpen: !1 })), n = x(t, "modalClass", 7, ""), i = x(t, "onupdateModalSettings", 7), a = x(t, "onclose", 7), s = x(t, "children", 7), l = /* @__PURE__ */
|
|
3948
|
+
let r = x(t, "modalData", 23, () => ({ modalAriaLabel: "", isModalOpen: !1 })), n = x(t, "modalClass", 7, ""), i = x(t, "onupdateModalSettings", 7), a = x(t, "onclose", 7), s = x(t, "children", 7), l = /* @__PURE__ */ S(() => r()?.modalAriaLabel ?? ""), u = /* @__PURE__ */ S(() => r()?.isModalOpen ?? !1), c = /* @__PURE__ */ V(null);
|
|
3949
3949
|
const { handleTabKey: p } = Ml(), h = () => {
|
|
3950
3950
|
const w = { isModalOpen: !1, modalAriaLabel: "" };
|
|
3951
3951
|
r(w), o(c)?.close(), i()?.(new CustomEvent("updateModalSettings", { detail: w })), a()?.();
|
|
@@ -3995,7 +3995,7 @@ function Oi(e, t) {
|
|
|
3995
3995
|
K(f, "aria-label", o(l)), le(m, 1, `blanket-overlay ${n() ?? ""}`);
|
|
3996
3996
|
}), ct("close", f, () => {
|
|
3997
3997
|
o(u) && h();
|
|
3998
|
-
}), ct("keypress", m, () => !1),
|
|
3998
|
+
}), ct("keypress", m, () => !1), R(e, f), he(d);
|
|
3999
3999
|
}
|
|
4000
4000
|
Sr(["keydown", "click"]);
|
|
4001
4001
|
me(
|
|
@@ -4056,21 +4056,21 @@ function vo(e, t) {
|
|
|
4056
4056
|
pe(t, !0);
|
|
4057
4057
|
let r = x(t, "text", 7), n = x(t, "placement", 7, "bottom"), i = x(t, "open", 7, void 0), a = x(t, "disabled", 7, !1), s = x(t, "trigger", 7, "hover"), l = x(t, "tooltipClass", 7, ""), u = x(t, "showDelay", 7, 80), c = x(t, "hideDelay", 7, 120), p = x(t, "children", 7), h = /* @__PURE__ */ V(!1), d = /* @__PURE__ */ V(null), f = /* @__PURE__ */ V(null), m = /* @__PURE__ */ V(null), g = /* @__PURE__ */ V(!1), w = /* @__PURE__ */ V(null);
|
|
4058
4058
|
const k = i() !== void 0;
|
|
4059
|
-
let _ = /* @__PURE__ */
|
|
4059
|
+
let _ = /* @__PURE__ */ S(() => !a() && (k ? i() : o(h)));
|
|
4060
4060
|
const C = () => {
|
|
4061
4061
|
o(d) && (clearTimeout(o(d)), I(d, null)), o(f) && (clearTimeout(o(f)), I(f, null)), o(m) && (clearTimeout(o(m)), I(m, null));
|
|
4062
4062
|
}, v = () => {
|
|
4063
4063
|
s() !== "hover" || k || (C(), I(d, setTimeout(() => I(h, !0), u()), !0));
|
|
4064
|
-
},
|
|
4064
|
+
}, A = () => {
|
|
4065
4065
|
s() !== "hover" || k || (C(), I(f, setTimeout(() => I(h, !1), c()), !0));
|
|
4066
|
-
},
|
|
4066
|
+
}, N = () => {
|
|
4067
4067
|
k || (C(), I(h, !1));
|
|
4068
4068
|
};
|
|
4069
4069
|
function y() {
|
|
4070
4070
|
k || (C(), I(h, !0));
|
|
4071
4071
|
}
|
|
4072
4072
|
function M() {
|
|
4073
|
-
k ||
|
|
4073
|
+
k || N();
|
|
4074
4074
|
}
|
|
4075
4075
|
const E = {
|
|
4076
4076
|
container: {
|
|
@@ -4086,7 +4086,7 @@ function vo(e, t) {
|
|
|
4086
4086
|
right: "right-full top-1/2 -translate-y-1/2 -mr-1 rotate-45"
|
|
4087
4087
|
}
|
|
4088
4088
|
};
|
|
4089
|
-
let W = /* @__PURE__ */
|
|
4089
|
+
let W = /* @__PURE__ */ S(() => E.container[n()]), $ = /* @__PURE__ */ S(() => E.arrow[n()]);
|
|
4090
4090
|
Te(() => () => C());
|
|
4091
4091
|
var L = {
|
|
4092
4092
|
show: y,
|
|
@@ -4146,7 +4146,7 @@ function vo(e, t) {
|
|
|
4146
4146
|
p(F), b();
|
|
4147
4147
|
}
|
|
4148
4148
|
}, P = zl();
|
|
4149
|
-
P.__focusin = v, P.__focusout =
|
|
4149
|
+
P.__focusin = v, P.__focusout = A, P.__touchstart = [
|
|
4150
4150
|
Dl,
|
|
4151
4151
|
s,
|
|
4152
4152
|
k,
|
|
@@ -4170,7 +4170,7 @@ function vo(e, t) {
|
|
|
4170
4170
|
C,
|
|
4171
4171
|
g,
|
|
4172
4172
|
h
|
|
4173
|
-
], P.__keydown = [Pl,
|
|
4173
|
+
], P.__keydown = [Pl, N];
|
|
4174
4174
|
var re = D(P);
|
|
4175
4175
|
br(re, () => p() ?? Pe);
|
|
4176
4176
|
var ae = Q(re, 2);
|
|
@@ -4179,13 +4179,13 @@ function vo(e, t) {
|
|
|
4179
4179
|
var Y = Hl(), Z = D(Y), X = D(Z), oe = Q(X);
|
|
4180
4180
|
O(Z), Mt(Z, (ye) => I(w, ye), () => o(w)), O(Y), te(() => {
|
|
4181
4181
|
le(Y, 1, `absolute z-50 pointer-events-none select-none ${o(W) ?? ""}`), K(Z, "aria-hidden", !o(_)), le(Z, 1, `rounded-md bg-gray-900 text-white p-3 font-normal text-sm leading-[150%] max-w-[300px] break-words ${l() ?? ""}`), dt(X, `${r() ?? ""} `), le(oe, 1, `tooltip-arrow absolute w-2 h-2 bg-gray-900 ${o($) ?? ""}`);
|
|
4182
|
-
}), rl(3, Y, () => Ol, () => ({ duration: 40 })),
|
|
4182
|
+
}), rl(3, Y, () => Ol, () => ({ duration: 40 })), R(F, Y);
|
|
4183
4183
|
};
|
|
4184
4184
|
j(ae, (F) => {
|
|
4185
4185
|
o(_) && F(H);
|
|
4186
4186
|
});
|
|
4187
4187
|
}
|
|
4188
|
-
return O(P), ct("mouseenter", P, v), ct("mouseleave", P,
|
|
4188
|
+
return O(P), ct("mouseenter", P, v), ct("mouseleave", P, A), R(e, P), he(L);
|
|
4189
4189
|
}
|
|
4190
4190
|
Sr([
|
|
4191
4191
|
"focusin",
|
|
@@ -4215,7 +4215,7 @@ me(
|
|
|
4215
4215
|
var Bl = /* @__PURE__ */ z("<span><!></span>"), Wl = /* @__PURE__ */ z("<button><!></button>");
|
|
4216
4216
|
function At(e, t) {
|
|
4217
4217
|
pe(t, !0);
|
|
4218
|
-
let r = x(t, "ariaLabel", 7, ""), n = x(t, "ariaHaspopup", 7), i = x(t, "className", 7, ""), a = x(t, "disabled", 7, !1), s = x(t, "pressed", 7, !1), l = x(t, "transparent", 7, !1), u = x(t, "variant", 7, "standard"), c = x(t, "type", 7, "button"), p = x(t, "tabindex", 7, 0), h = x(t, "onclick", 7), d = x(t, "children", 7), f = /* @__PURE__ */
|
|
4218
|
+
let r = x(t, "ariaLabel", 7, ""), n = x(t, "ariaHaspopup", 7), i = x(t, "className", 7, ""), a = x(t, "disabled", 7, !1), s = x(t, "pressed", 7, !1), l = x(t, "transparent", 7, !1), u = x(t, "variant", 7, "standard"), c = x(t, "type", 7, "button"), p = x(t, "tabindex", 7, 0), h = x(t, "onclick", 7), d = x(t, "children", 7), f = /* @__PURE__ */ S(() => () => {
|
|
4219
4219
|
switch (u()) {
|
|
4220
4220
|
case "touch-target":
|
|
4221
4221
|
return `btn-touch-container ${i()}`;
|
|
@@ -4299,25 +4299,25 @@ function At(e, t) {
|
|
|
4299
4299
|
var k = D(g);
|
|
4300
4300
|
{
|
|
4301
4301
|
var _ = (v) => {
|
|
4302
|
-
var
|
|
4303
|
-
br(
|
|
4302
|
+
var A = Bl(), N = D(A);
|
|
4303
|
+
br(N, () => d() ?? Pe), O(A), te(() => le(A, 1, `btn-icon-sm ${l() ? "bg-white/80" : ""}`)), R(v, A);
|
|
4304
4304
|
}, C = (v) => {
|
|
4305
|
-
var
|
|
4306
|
-
br(
|
|
4305
|
+
var A = xe(), N = ce(A);
|
|
4306
|
+
br(N, () => d() ?? Pe), R(v, A);
|
|
4307
4307
|
};
|
|
4308
4308
|
j(k, (v) => {
|
|
4309
4309
|
u() === "touch-target" ? v(_) : v(C, !1);
|
|
4310
4310
|
});
|
|
4311
4311
|
}
|
|
4312
4312
|
return O(g), te(
|
|
4313
|
-
(v,
|
|
4314
|
-
K(g, "type", c()), K(g, "tabindex", p()), w = le(g, 1, v, null, w,
|
|
4313
|
+
(v, A) => {
|
|
4314
|
+
K(g, "type", c()), K(g, "tabindex", p()), w = le(g, 1, v, null, w, A), K(g, "aria-label", r()), K(g, "aria-haspopup", n()), g.disabled = a();
|
|
4315
4315
|
},
|
|
4316
4316
|
[
|
|
4317
4317
|
() => Ie(o(f)()),
|
|
4318
4318
|
() => ({ "btn-pressed": u() === "standard" && s() })
|
|
4319
4319
|
]
|
|
4320
|
-
),
|
|
4320
|
+
), R(e, g), he(m);
|
|
4321
4321
|
}
|
|
4322
4322
|
Sr(["click"]);
|
|
4323
4323
|
me(
|
|
@@ -4393,22 +4393,22 @@ function wo() {
|
|
|
4393
4393
|
const k = w > 0, _ = f - 2 * w, C = f - w;
|
|
4394
4394
|
let v = _;
|
|
4395
4395
|
v < 0 && (v = Math.max(0, f * 0.4), w = Math.max(0, (f - v) / 2));
|
|
4396
|
-
let
|
|
4397
|
-
if (
|
|
4398
|
-
const F = m /
|
|
4399
|
-
|
|
4396
|
+
let A = i, N = a;
|
|
4397
|
+
if (A > m) {
|
|
4398
|
+
const F = m / A;
|
|
4399
|
+
A = m, N = N * F;
|
|
4400
4400
|
}
|
|
4401
4401
|
const y = f, M = k ? Math.min(y, v) : y;
|
|
4402
4402
|
let E = !1;
|
|
4403
|
-
if (
|
|
4403
|
+
if (N > M)
|
|
4404
4404
|
if (k && C > M) {
|
|
4405
|
-
const F = Math.min(C, y), Y = F /
|
|
4406
|
-
|
|
4405
|
+
const F = Math.min(C, y), Y = F / N;
|
|
4406
|
+
N = F, A = A * Y, E = !0;
|
|
4407
4407
|
} else {
|
|
4408
|
-
const F = M /
|
|
4409
|
-
|
|
4408
|
+
const F = M / N;
|
|
4409
|
+
N = M, A = A * F, E = k;
|
|
4410
4410
|
}
|
|
4411
|
-
const W = `${Math.min(
|
|
4411
|
+
const W = `${Math.min(A, m)}px`, $ = Math.round(N), L = E && N > _, P = f - N, re = L ? 0 : P > 0 ? Math.round(P / 2) : 0;
|
|
4412
4412
|
let ae = 0;
|
|
4413
4413
|
k ? L ? ae = 0 : ae = Math.max(0, re - w) : ae = re;
|
|
4414
4414
|
const H = `${f}px`;
|
|
@@ -4427,9 +4427,9 @@ function wo() {
|
|
|
4427
4427
|
var Vl = /* @__PURE__ */ z('<span class="w-6 h-6 flex items-center justify-center"><!></span>'), jl = /* @__PURE__ */ z('<span class="w-6 h-6 flex items-center justify-center"><!></span>'), ql = /* @__PURE__ */ z('<div><span aria-hidden="true"><!></span></div>'), Ul = /* @__PURE__ */ z('<span class="w-4 h-4 flex items-center justify-center"><!></span>'), Yl = /* @__PURE__ */ z('<span class="w-4 h-4 flex items-center justify-center"><!></span>'), Zl = /* @__PURE__ */ z('<div class="absolute inset-0 m-0"><div class="w-full h-full px-0 md:px-[82px] lg:px-[128px] pt-14 pb-[72px] relative lg:py-24 flex flex-col items-center justify-center"><div aria-live="polite" aria-atomic="true" class="sr-only"> </div> <div class="w-full h-full flex flex-col md:flex-row md:justify-center items-center justify-between"><div class="md:hidden"></div> <!> <!> <div><div class="flex-shrink-0 flex items-center justify-between py-1 px-2 md:px-4 border-border-minimal border rounded-t-md lg:rounded-t-lg md:gap-4 h-8.5 md:h-fit"><!> <!> <!></div> <div class="rounded-b-md"><img class="mx-auto block rounded-b-md lg:rounded-b-lg object-contain max-w-full max-h-[calc(100vh-168px-34px)] md:max-h-[calc(100vh-128px-54px)] lg:max-h-[calc(100vh-192px-54px)] pointer-events-none"/></div></div> <div class="md:hidden flex justify-center items-center gap-1 flex-shrink-0 h-6 mt-4"><!> <!></div></div></div></div>');
|
|
4428
4428
|
function bo(e, t) {
|
|
4429
4429
|
pe(t, !0);
|
|
4430
|
-
let r = x(t, "isOpen", 7, !1), n = x(t, "options", 23, () => []), i = x(t, "currentIndex", 7, 0), a = x(t, "modalAriaLabel", 7, ""), s = x(t, "onnavigate", 7), l = x(t, "onclose", 7), u = /* @__PURE__ */
|
|
4430
|
+
let r = x(t, "isOpen", 7, !1), n = x(t, "options", 23, () => []), i = x(t, "currentIndex", 7, 0), a = x(t, "modalAriaLabel", 7, ""), s = x(t, "onnavigate", 7), l = x(t, "onclose", 7), u = /* @__PURE__ */ S(() => n()[i()]), c = /* @__PURE__ */ S(() => o(u)?.media?.file?.url || ""), p = /* @__PURE__ */ S(() => o(u)?.media?.alternative_text ? `${o(u).media.alternative_text}` : ""), h = /* @__PURE__ */ S(() => o(u)?.answer ? Kr(o(u).answer) : ""), d = /* @__PURE__ */ V(null), f = /* @__PURE__ */ V(0), m = /* @__PURE__ */ V(0), g = /* @__PURE__ */ V("100%"), w = /* @__PURE__ */ V(null), k = /* @__PURE__ */ V(!1), _ = /* @__PURE__ */ V(""), C = /* @__PURE__ */ V(null), v = /* @__PURE__ */ V(null), A = /* @__PURE__ */ V(!1), N = /* @__PURE__ */ V(!1), y = /* @__PURE__ */ V(!1), M = /* @__PURE__ */ V(!1);
|
|
4431
4431
|
const { calculateContainerWidth: E } = wo();
|
|
4432
|
-
let W = /* @__PURE__ */
|
|
4432
|
+
let W = /* @__PURE__ */ S(() => ({ isModalOpen: r(), modalAriaLabel: a() }));
|
|
4433
4433
|
const $ = () => {
|
|
4434
4434
|
I(
|
|
4435
4435
|
g,
|
|
@@ -4474,10 +4474,10 @@ function bo(e, t) {
|
|
|
4474
4474
|
q(!0), setTimeout(() => q(!1), ve);
|
|
4475
4475
|
}, oe = {
|
|
4476
4476
|
ArrowLeft: () => {
|
|
4477
|
-
X((q) => I(
|
|
4477
|
+
X((q) => I(A, q, !0)), H();
|
|
4478
4478
|
},
|
|
4479
4479
|
ArrowRight: () => {
|
|
4480
|
-
X((q) => I(
|
|
4480
|
+
X((q) => I(N, q, !0)), F();
|
|
4481
4481
|
}
|
|
4482
4482
|
}, ye = (q) => {
|
|
4483
4483
|
if (!r() || !n()?.length) return;
|
|
@@ -4557,7 +4557,7 @@ function bo(e, t) {
|
|
|
4557
4557
|
ariaLabel: "Previous",
|
|
4558
4558
|
className: "hidden md:flex absolute left-6 lg:left-16 top-1/2 -translate-y-1/2",
|
|
4559
4559
|
get pressed() {
|
|
4560
|
-
return o(
|
|
4560
|
+
return o(A);
|
|
4561
4561
|
},
|
|
4562
4562
|
onclick: H,
|
|
4563
4563
|
children: (Ae, Ft) => {
|
|
@@ -4567,7 +4567,7 @@ function bo(e, t) {
|
|
|
4567
4567
|
className: "text-primary-emphasis",
|
|
4568
4568
|
width: 12,
|
|
4569
4569
|
height: 12
|
|
4570
|
-
}), O(Se),
|
|
4570
|
+
}), O(Se), R(Ae, Se);
|
|
4571
4571
|
},
|
|
4572
4572
|
$$slots: { default: !0 }
|
|
4573
4573
|
}),
|
|
@@ -4581,7 +4581,7 @@ function bo(e, t) {
|
|
|
4581
4581
|
ariaLabel: "Next",
|
|
4582
4582
|
className: "hidden md:flex absolute right-6 lg:right-16 top-1/2 -translate-y-1/2",
|
|
4583
4583
|
get pressed() {
|
|
4584
|
-
return o(
|
|
4584
|
+
return o(N);
|
|
4585
4585
|
},
|
|
4586
4586
|
onclick: F,
|
|
4587
4587
|
children: (Ae, Ft) => {
|
|
@@ -4591,13 +4591,13 @@ function bo(e, t) {
|
|
|
4591
4591
|
className: "text-primary-emphasis",
|
|
4592
4592
|
width: 12,
|
|
4593
4593
|
height: 12
|
|
4594
|
-
}), O(Se),
|
|
4594
|
+
}), O(Se), R(Ae, Se);
|
|
4595
4595
|
},
|
|
4596
4596
|
$$slots: { default: !0 }
|
|
4597
4597
|
});
|
|
4598
4598
|
var pt = Q(rt, 2), rr = D(pt), Ze = D(rr);
|
|
4599
4599
|
{
|
|
4600
|
-
let Ae = /* @__PURE__ */
|
|
4600
|
+
let Ae = /* @__PURE__ */ S(() => !o(k));
|
|
4601
4601
|
vo(Ze, {
|
|
4602
4602
|
placement: "bottom",
|
|
4603
4603
|
trigger: "hover",
|
|
@@ -4610,7 +4610,7 @@ function bo(e, t) {
|
|
|
4610
4610
|
children: (Ft, Se) => {
|
|
4611
4611
|
var Ee = ql(), qr = D(Ee), Ar = D(qr);
|
|
4612
4612
|
{
|
|
4613
|
-
let $t = /* @__PURE__ */
|
|
4613
|
+
let $t = /* @__PURE__ */ S(() => o(u)?.answer);
|
|
4614
4614
|
Wt(Ar, {
|
|
4615
4615
|
get htmlString() {
|
|
4616
4616
|
return o($t);
|
|
@@ -4619,7 +4619,7 @@ function bo(e, t) {
|
|
|
4619
4619
|
}
|
|
4620
4620
|
O(qr), O(Ee), Mt(Ee, ($t) => I(w, $t), () => o(w)), te(() => {
|
|
4621
4621
|
K(Ee, "tabindex", o(k) ? 0 : void 0), K(Ee, "aria-label", o(k) ? o(h) : void 0), le(Ee, 1, `break-all text-sm md:text-lg font-semibold text-primary-emphasis ${o(k) ? "hover:text-charcoal hover:underline hover:decoration-2 hover:underline-offset-[25%] focus-visible:bg-yellow-900 focus-visible:outline-none focus-visible:underline focus-visible:decoration-2 focus-visible:underline-offset-[25%] focus-visible:text-charcoal coarse:active:bg-yellow-900" : ""} select-none line-clamp-1`);
|
|
4622
|
-
}),
|
|
4622
|
+
}), R(Ft, Ee);
|
|
4623
4623
|
},
|
|
4624
4624
|
$$slots: { default: !0 }
|
|
4625
4625
|
});
|
|
@@ -4661,7 +4661,7 @@ function bo(e, t) {
|
|
|
4661
4661
|
transparent: !0,
|
|
4662
4662
|
ariaLabel: "Previous",
|
|
4663
4663
|
get pressed() {
|
|
4664
|
-
return o(
|
|
4664
|
+
return o(A);
|
|
4665
4665
|
},
|
|
4666
4666
|
onclick: H,
|
|
4667
4667
|
children: (Ae, Ft) => {
|
|
@@ -4670,7 +4670,7 @@ function bo(e, t) {
|
|
|
4670
4670
|
svgName: "smallChevronLeft",
|
|
4671
4671
|
className: "text-primary-emphasis",
|
|
4672
4672
|
height: 7.43
|
|
4673
|
-
}), O(Se),
|
|
4673
|
+
}), O(Se), R(Ae, Se);
|
|
4674
4674
|
},
|
|
4675
4675
|
$$slots: { default: !0 }
|
|
4676
4676
|
}),
|
|
@@ -4683,7 +4683,7 @@ function bo(e, t) {
|
|
|
4683
4683
|
transparent: !0,
|
|
4684
4684
|
ariaLabel: "Next",
|
|
4685
4685
|
get pressed() {
|
|
4686
|
-
return o(
|
|
4686
|
+
return o(N);
|
|
4687
4687
|
},
|
|
4688
4688
|
onclick: F,
|
|
4689
4689
|
children: (Ae, Ft) => {
|
|
@@ -4692,12 +4692,12 @@ function bo(e, t) {
|
|
|
4692
4692
|
svgName: "smallChevronRight",
|
|
4693
4693
|
className: "text-primary-emphasis",
|
|
4694
4694
|
height: 7.43
|
|
4695
|
-
}), O(Se),
|
|
4695
|
+
}), O(Se), R(Ae, Se);
|
|
4696
4696
|
},
|
|
4697
4697
|
$$slots: { default: !0 }
|
|
4698
4698
|
}), O(Dt), O(Ne), O(G), O(B), te(() => {
|
|
4699
4699
|
dt(tt, o(_)), le(pt, 1, `bg-white rounded-lg flex flex-col max-w-full md:max-w-[calc(100vw-164px)] lg:max-w-[calc(100vw-248px)] max-h-[calc(100vh-168px)] md:max-h-[calc(100vh-128px)] lg:max-h-[calc(100vh-192px)] ${o(y) ? "" : "opacity-0"}`), Tt(pt, `max-width: ${o(g) ?? ""};`), K(nr, "src", o(c)), K(nr, "alt", o(p));
|
|
4700
|
-
}), ct("load", nr, L), Ii(nr),
|
|
4700
|
+
}), ct("load", nr, L), Ii(nr), R(ve, B);
|
|
4701
4701
|
},
|
|
4702
4702
|
$$slots: { default: !0 }
|
|
4703
4703
|
});
|
|
@@ -4706,7 +4706,7 @@ function bo(e, t) {
|
|
|
4706
4706
|
r() && q(ge);
|
|
4707
4707
|
});
|
|
4708
4708
|
}
|
|
4709
|
-
return
|
|
4709
|
+
return R(e, ne), he(U);
|
|
4710
4710
|
}
|
|
4711
4711
|
me(
|
|
4712
4712
|
bo,
|
|
@@ -4724,7 +4724,7 @@ me(
|
|
|
4724
4724
|
);
|
|
4725
4725
|
function xo(e, t) {
|
|
4726
4726
|
pe(t, !0);
|
|
4727
|
-
let r = x(t, "rubric", 7), n = /* @__PURE__ */
|
|
4727
|
+
let r = x(t, "rubric", 7), n = /* @__PURE__ */ S(() => Vr(ho));
|
|
4728
4728
|
var i = {
|
|
4729
4729
|
get rubric() {
|
|
4730
4730
|
return r();
|
|
@@ -4749,7 +4749,7 @@ function xo(e, t) {
|
|
|
4749
4749
|
r() && u(l);
|
|
4750
4750
|
});
|
|
4751
4751
|
}
|
|
4752
|
-
return
|
|
4752
|
+
return R(e, a), he(i);
|
|
4753
4753
|
}
|
|
4754
4754
|
me(xo, { rubric: {} }, [], [], !0);
|
|
4755
4755
|
function Gl(e) {
|
|
@@ -4808,7 +4808,7 @@ function yo(e, t = "") {
|
|
|
4808
4808
|
var Xl = /* @__PURE__ */ z("<h1><!></h1>");
|
|
4809
4809
|
function _o(e, t) {
|
|
4810
4810
|
pe(t, !0);
|
|
4811
|
-
let r = x(t, "prompt", 7), n = /* @__PURE__ */
|
|
4811
|
+
let r = x(t, "prompt", 7), n = /* @__PURE__ */ S(() => yo(r()));
|
|
4812
4812
|
var i = {
|
|
4813
4813
|
get prompt() {
|
|
4814
4814
|
return r();
|
|
@@ -4825,13 +4825,13 @@ function _o(e, t) {
|
|
|
4825
4825
|
return o(n);
|
|
4826
4826
|
},
|
|
4827
4827
|
otherClass: "item-heading prompt"
|
|
4828
|
-
}), O(c),
|
|
4828
|
+
}), O(c), R(u, c);
|
|
4829
4829
|
};
|
|
4830
4830
|
j(s, (u) => {
|
|
4831
4831
|
r() && u(l);
|
|
4832
4832
|
});
|
|
4833
4833
|
}
|
|
4834
|
-
return
|
|
4834
|
+
return R(e, a), he(i);
|
|
4835
4835
|
}
|
|
4836
4836
|
me(_o, { prompt: {} }, [], [], !0);
|
|
4837
4837
|
var Jl = /* @__PURE__ */ z('<div class="interaction-section"><!></div>');
|
|
@@ -4846,7 +4846,7 @@ function Co(e, t) {
|
|
|
4846
4846
|
r(s), b();
|
|
4847
4847
|
}
|
|
4848
4848
|
}, i = Jl(), a = D(i);
|
|
4849
|
-
return br(a, () => r() ?? Pe), O(i),
|
|
4849
|
+
return br(a, () => r() ?? Pe), O(i), R(e, i), he(n);
|
|
4850
4850
|
}
|
|
4851
4851
|
me(Co, { children: {} }, [], [], !0);
|
|
4852
4852
|
var ec = /* @__PURE__ */ z("<div></div>"), tc = /* @__PURE__ */ z('<div class="px-4 w-full max-w-[1008px] mx-auto flex-shrink-0 text-center font-semibold text-sm md:text-lg leading-[150%] text-white" aria-hidden="true"> </div> <!>', 1), rc = /* @__PURE__ */ z("<div></div>"), nc = /* @__PURE__ */ z('<div class="absolute inset-0"><div class="w-full h-full flex items-center justify-center pt-14 pb-[72px] lg:py-24"><div aria-live="polite" aria-atomic="true" class="sr-only"> </div> <div class="flex flex-col items-center overflow-y-auto w-full px-0 md:px-6 lg:px-16"><div class="relative bg-white rounded-md md:rounded-lg shadow-sm overflow-hidden flex-shrink-0"><img class="block object-contain w-full h-auto max-w-full mx-auto"/> <!></div> <!></div></div></div>');
|
|
@@ -4854,7 +4854,7 @@ function ko(e, t) {
|
|
|
4854
4854
|
pe(t, !0);
|
|
4855
4855
|
let r = x(t, "isOpen", 7, !1), n = x(t, "imageUrl", 7, ""), i = x(t, "altText", 7, ""), a = x(t, "caption", 7, ""), s = x(t, "onclose", 7);
|
|
4856
4856
|
const { calculateStimulusImageLayout: l } = wo();
|
|
4857
|
-
let u = /* @__PURE__ */ V(null), c = /* @__PURE__ */ V(null), p = /* @__PURE__ */ V("100%"), h = /* @__PURE__ */ V(0), d = /* @__PURE__ */ V("100vh"), f = /* @__PURE__ */ V(0), m = /* @__PURE__ */ V(0), g = /* @__PURE__ */ V(!1), w = /* @__PURE__ */ V(""), k = /* @__PURE__ */
|
|
4857
|
+
let u = /* @__PURE__ */ V(null), c = /* @__PURE__ */ V(null), p = /* @__PURE__ */ V("100%"), h = /* @__PURE__ */ V(0), d = /* @__PURE__ */ V("100vh"), f = /* @__PURE__ */ V(0), m = /* @__PURE__ */ V(0), g = /* @__PURE__ */ V(!1), w = /* @__PURE__ */ V(""), k = /* @__PURE__ */ S(() => ({ isModalOpen: r(), modalAriaLabel: "Image viewer" })), _ = /* @__PURE__ */ S(() => {
|
|
4858
4858
|
let L = [`width:${o(p)}`];
|
|
4859
4859
|
return o(g) || L.push(`margin-top:${o(f)}px`), a() || L.push(`margin-bottom:${o(m)}px`), L.join(";");
|
|
4860
4860
|
});
|
|
@@ -4869,10 +4869,10 @@ function ko(e, t) {
|
|
|
4869
4869
|
});
|
|
4870
4870
|
I(p, P.containerMaxWidth, !0), I(h, P.imageMaxHeight, !0), I(d, P.scrollMaxHeight, !0), I(f, P.imageOffsetTop, !0), I(m, P.bottomSpacerHeight, !0), I(g, P.wasCaptionConstrained, !0);
|
|
4871
4871
|
};
|
|
4872
|
-
let
|
|
4873
|
-
const
|
|
4874
|
-
r() && (
|
|
4875
|
-
|
|
4872
|
+
let A = null;
|
|
4873
|
+
const N = () => {
|
|
4874
|
+
r() && (A && cancelAnimationFrame(A), A = requestAnimationFrame(() => {
|
|
4875
|
+
A = null, v();
|
|
4876
4876
|
}));
|
|
4877
4877
|
}, y = (L) => {
|
|
4878
4878
|
L.detail.isModalOpen || C();
|
|
@@ -4885,8 +4885,8 @@ function ko(e, t) {
|
|
|
4885
4885
|
r() && i() && a() ? I(w, `Graphic, ${i()}. ${a()}`) : r() && i() ? I(w, `Graphic, ${i()}`) : r() && a() ? I(w, `Image viewer. ${a()}`) : r() && I(w, "Image viewer");
|
|
4886
4886
|
}), Te(() => {
|
|
4887
4887
|
if (typeof window < "u")
|
|
4888
|
-
return window.addEventListener("resize",
|
|
4889
|
-
window.removeEventListener("resize",
|
|
4888
|
+
return window.addEventListener("resize", N), () => {
|
|
4889
|
+
window.removeEventListener("resize", N), A && cancelAnimationFrame(A);
|
|
4890
4890
|
};
|
|
4891
4891
|
});
|
|
4892
4892
|
var M = {
|
|
@@ -4958,7 +4958,7 @@ function ko(e, t) {
|
|
|
4958
4958
|
{
|
|
4959
4959
|
var G = (be) => {
|
|
4960
4960
|
var tt = ec();
|
|
4961
|
-
te(() => Tt(tt, `height:${o(m) ?? ""}px`)),
|
|
4961
|
+
te(() => Tt(tt, `height:${o(m) ?? ""}px`)), R(be, tt);
|
|
4962
4962
|
};
|
|
4963
4963
|
j(B, (be) => {
|
|
4964
4964
|
o(m) > 0 && be(G);
|
|
@@ -4966,13 +4966,13 @@ function ko(e, t) {
|
|
|
4966
4966
|
}
|
|
4967
4967
|
te(() => {
|
|
4968
4968
|
Tt(ve, `margin-top:${pi}px`), dt(we, a());
|
|
4969
|
-
}),
|
|
4969
|
+
}), R(ge, q);
|
|
4970
4970
|
}, _e = (ge) => {
|
|
4971
4971
|
var q = xe(), ve = ce(q);
|
|
4972
4972
|
{
|
|
4973
4973
|
var we = (B) => {
|
|
4974
4974
|
var G = rc();
|
|
4975
|
-
te(() => Tt(G, `height:${o(m) ?? ""}px`)),
|
|
4975
|
+
te(() => Tt(G, `height:${o(m) ?? ""}px`)), R(B, G);
|
|
4976
4976
|
};
|
|
4977
4977
|
j(
|
|
4978
4978
|
ve,
|
|
@@ -4982,7 +4982,7 @@ function ko(e, t) {
|
|
|
4982
4982
|
!0
|
|
4983
4983
|
);
|
|
4984
4984
|
}
|
|
4985
|
-
|
|
4985
|
+
R(ge, q);
|
|
4986
4986
|
};
|
|
4987
4987
|
j(U, (ge) => {
|
|
4988
4988
|
a() ? ge(ne) : ge(_e, !1);
|
|
@@ -4990,7 +4990,7 @@ function ko(e, t) {
|
|
|
4990
4990
|
}
|
|
4991
4991
|
O(Z), O(H), O(ae), te(() => {
|
|
4992
4992
|
dt(Y, o(w)), Tt(Z, `max-height:${o(d) ?? ""}`), Tt(X, o(_)), K(oe, "src", n()), K(oe, "alt", i()), Tt(oe, `max-height:${o(h) ?? ""}px`);
|
|
4993
|
-
}), ct("load", oe, v), Ii(oe),
|
|
4993
|
+
}), ct("load", oe, v), Ii(oe), R(P, ae);
|
|
4994
4994
|
},
|
|
4995
4995
|
$$slots: { default: !0 }
|
|
4996
4996
|
});
|
|
@@ -4999,7 +4999,7 @@ function ko(e, t) {
|
|
|
4999
4999
|
r() && L($);
|
|
5000
5000
|
});
|
|
5001
5001
|
}
|
|
5002
|
-
return
|
|
5002
|
+
return R(e, E), he(M);
|
|
5003
5003
|
}
|
|
5004
5004
|
me(
|
|
5005
5005
|
ko,
|
|
@@ -5324,7 +5324,7 @@ function mc(e, t) {
|
|
|
5324
5324
|
var gc = /* @__PURE__ */ z('<p class="text-lg leading-[22px] text-blue-1000 font-semibold mt-4"> </p>'), vc = /* @__PURE__ */ z('<div class="mt-6 w-full"><button class="flex items-center font-semibold leading-[1.5] outline-none group w-fit h-11 text-charcoal" aria-controls="long-description-content" aria-labelledby="image-description-label" type="button"><div class="w-6 h-6 flex items-center justify-center mr-2"><!></div> <div id="image-description-label" class="image-description-accordion group-[.active]:border-b-2">Image Description</div></button> <div id="long-description-content"><!></div></div>'), wc = /* @__PURE__ */ z('<div class="flex flex-col justify-center items-center text-center"><div class="flex flex-col items-center"><div class="relative inline-block"><img loading="lazy"/> <!></div> <!></div></div> <!>', 1), bc = /* @__PURE__ */ z('<div class="w-full"><!></div>');
|
|
5325
5325
|
function hi(e, t) {
|
|
5326
5326
|
pe(t, !0);
|
|
5327
|
-
let r = x(t, "fileType", 7), n = x(t, "fileUrl", 7), i = x(t, "altText", 7, ""), a = x(t, "longDescription", 7, ""), s = x(t, "fileCaption", 7, ""), l = x(t, "handleImageLoad", 7, void 0), u = x(t, "onexpandImage", 7, void 0), c = /* @__PURE__ */ V(!1), p = /* @__PURE__ */
|
|
5327
|
+
let r = x(t, "fileType", 7), n = x(t, "fileUrl", 7), i = x(t, "altText", 7, ""), a = x(t, "longDescription", 7, ""), s = x(t, "fileCaption", 7, ""), l = x(t, "handleImageLoad", 7, void 0), u = x(t, "onexpandImage", 7, void 0), c = /* @__PURE__ */ V(!1), p = /* @__PURE__ */ S(() => !!n()?.trim()), h = /* @__PURE__ */ S(() => r() === dl.IMAGE || r()?.startsWith("image/")), d = /* @__PURE__ */ S(() => !!s()?.trim()), f = /* @__PURE__ */ S(() => !!a()?.trim());
|
|
5328
5328
|
function m() {
|
|
5329
5329
|
I(c, !o(c));
|
|
5330
5330
|
}
|
|
@@ -5377,7 +5377,7 @@ function hi(e, t) {
|
|
|
5377
5377
|
}, k = xe(), _ = ce(k);
|
|
5378
5378
|
{
|
|
5379
5379
|
var C = (v) => {
|
|
5380
|
-
var
|
|
5380
|
+
var A = bc(), N = D(A);
|
|
5381
5381
|
{
|
|
5382
5382
|
var y = (M) => {
|
|
5383
5383
|
var E = wc(), W = ce(E), $ = D(W), L = D($), P = D(L), re = Q(P, 2);
|
|
@@ -5399,7 +5399,7 @@ function hi(e, t) {
|
|
|
5399
5399
|
{
|
|
5400
5400
|
var H = (Z) => {
|
|
5401
5401
|
var X = gc(), oe = D(X, !0);
|
|
5402
|
-
O(X), te(() => dt(oe, s())),
|
|
5402
|
+
O(X), te(() => dt(oe, s())), R(Z, X);
|
|
5403
5403
|
};
|
|
5404
5404
|
j(ae, (Z) => {
|
|
5405
5405
|
o(d) && Z(H);
|
|
@@ -5413,7 +5413,7 @@ function hi(e, t) {
|
|
|
5413
5413
|
oe.__click = m, oe.__keydown = [hc], oe.__keyup = [mc, m];
|
|
5414
5414
|
var ye = D(oe), U = D(ye);
|
|
5415
5415
|
{
|
|
5416
|
-
let ge = /* @__PURE__ */
|
|
5416
|
+
let ge = /* @__PURE__ */ S(() => o(c) ? "smallChevronUp" : "smallChevronDown"), q = /* @__PURE__ */ S(() => o(c) ? "collapse-icon" : "expand-icon");
|
|
5417
5417
|
$e(U, {
|
|
5418
5418
|
get svgName() {
|
|
5419
5419
|
return o(ge);
|
|
@@ -5434,7 +5434,7 @@ function hi(e, t) {
|
|
|
5434
5434
|
otherClass: "image-description text-left leading-[1.5]"
|
|
5435
5435
|
}), O(ne), O(X), te(() => {
|
|
5436
5436
|
K(oe, "aria-expanded", o(c)), K(ne, "hidden", !o(c));
|
|
5437
|
-
}),
|
|
5437
|
+
}), R(Z, X);
|
|
5438
5438
|
};
|
|
5439
5439
|
j(F, (Z) => {
|
|
5440
5440
|
o(f) && Z(Y);
|
|
@@ -5444,19 +5444,19 @@ function hi(e, t) {
|
|
|
5444
5444
|
K(P, "src", n()), K(P, "alt", i());
|
|
5445
5445
|
}), ct("load", P, function(...Z) {
|
|
5446
5446
|
l()?.apply(this, Z);
|
|
5447
|
-
}), Ii(P),
|
|
5447
|
+
}), Ii(P), R(M, E);
|
|
5448
5448
|
};
|
|
5449
|
-
j(
|
|
5449
|
+
j(N, (M) => {
|
|
5450
5450
|
o(h) && M(y);
|
|
5451
5451
|
});
|
|
5452
5452
|
}
|
|
5453
|
-
O(
|
|
5453
|
+
O(A), R(v, A);
|
|
5454
5454
|
};
|
|
5455
5455
|
j(_, (v) => {
|
|
5456
5456
|
o(p) && v(C);
|
|
5457
5457
|
});
|
|
5458
5458
|
}
|
|
5459
|
-
return
|
|
5459
|
+
return R(e, k), he(w);
|
|
5460
5460
|
}
|
|
5461
5461
|
Sr(["click", "keydown", "keyup"]);
|
|
5462
5462
|
me(
|
|
@@ -5479,41 +5479,41 @@ function mi(e, t) {
|
|
|
5479
5479
|
pe(t, !0);
|
|
5480
5480
|
let r = x(t, "stimulusData", 7), n = x(t, "stimulusAlignment", 7), i = x(t, "stimulusType", 7), a = x(t, "onexpandImage", 7);
|
|
5481
5481
|
const s = So();
|
|
5482
|
-
let l = /* @__PURE__ */
|
|
5483
|
-
const d = /* @__PURE__ */
|
|
5484
|
-
let m = /* @__PURE__ */
|
|
5485
|
-
const
|
|
5486
|
-
return o(u) ? o(p) ?
|
|
5482
|
+
let l = /* @__PURE__ */ S(() => r().hasMedia || r().hasText), u = /* @__PURE__ */ S(() => r().fileAlignment === wt.INLINE), c = /* @__PURE__ */ S(() => r().stimulusTextAlignment === wt.INLINE), p = /* @__PURE__ */ S(() => r().stimulusLayoutOrder === ui.TEXT_FIRST), h = /* @__PURE__ */ S(() => yo(r().stimulusText, Kl(r().fileAlignment, r().stimulusTextAlignment, r().hasMedia, r().hasText)));
|
|
5483
|
+
const d = /* @__PURE__ */ S(() => r().hasText && (r().stimulusTextAlignment === n() || r().stimulusTextAlignment !== n() && s.value < Ke.LG) && (!i() || i() === "stimulus-text")), f = /* @__PURE__ */ S(() => r().hasMedia && (r().fileAlignment === n() || r().fileAlignment !== n() && s.value < Ke.LG) && (!i() || i() === "stimulus-media"));
|
|
5484
|
+
let m = /* @__PURE__ */ S(() => `stimulus-text ${o(c) ? "inline-text" : "block-text"}`), g = /* @__PURE__ */ S(() => `text-stimulus ${o(c) ? "py-2" : o(p) || o(u) ? "pt-0" : ""}`.trim()), w = /* @__PURE__ */ S(() => {
|
|
5485
|
+
const A = ["stimulus-media"];
|
|
5486
|
+
return o(u) ? o(p) ? A.push(o(c) ? "pb-2" : "pb-10 pt-6") : A.push(o(c) ? "pb-2 pt-6" : "pb-10 pt-6") : A.push("block-media"), A.join(" ");
|
|
5487
5487
|
});
|
|
5488
5488
|
var k = {
|
|
5489
5489
|
get stimulusData() {
|
|
5490
5490
|
return r();
|
|
5491
5491
|
},
|
|
5492
|
-
set stimulusData(
|
|
5493
|
-
r(
|
|
5492
|
+
set stimulusData(A) {
|
|
5493
|
+
r(A), b();
|
|
5494
5494
|
},
|
|
5495
5495
|
get stimulusAlignment() {
|
|
5496
5496
|
return n();
|
|
5497
5497
|
},
|
|
5498
|
-
set stimulusAlignment(
|
|
5499
|
-
n(
|
|
5498
|
+
set stimulusAlignment(A) {
|
|
5499
|
+
n(A), b();
|
|
5500
5500
|
},
|
|
5501
5501
|
get stimulusType() {
|
|
5502
5502
|
return i();
|
|
5503
5503
|
},
|
|
5504
|
-
set stimulusType(
|
|
5505
|
-
i(
|
|
5504
|
+
set stimulusType(A) {
|
|
5505
|
+
i(A), b();
|
|
5506
5506
|
},
|
|
5507
5507
|
get onexpandImage() {
|
|
5508
5508
|
return a();
|
|
5509
5509
|
},
|
|
5510
|
-
set onexpandImage(
|
|
5511
|
-
a(
|
|
5510
|
+
set onexpandImage(A) {
|
|
5511
|
+
a(A), b();
|
|
5512
5512
|
}
|
|
5513
5513
|
}, _ = xe(), C = ce(_);
|
|
5514
5514
|
{
|
|
5515
|
-
var v = (
|
|
5516
|
-
var
|
|
5515
|
+
var v = (A) => {
|
|
5516
|
+
var N = Tc(), y = D(N);
|
|
5517
5517
|
{
|
|
5518
5518
|
var M = (W) => {
|
|
5519
5519
|
var $ = _c(), L = ce($);
|
|
@@ -5527,7 +5527,7 @@ function mi(e, t) {
|
|
|
5527
5527
|
get otherClass() {
|
|
5528
5528
|
return o(g);
|
|
5529
5529
|
}
|
|
5530
|
-
}), O(F), te(() => le(F, 1, Ie(o(m)))),
|
|
5530
|
+
}), O(F), te(() => le(F, 1, Ie(o(m)))), R(H, F);
|
|
5531
5531
|
};
|
|
5532
5532
|
j(L, (H) => {
|
|
5533
5533
|
o(d) && H(P);
|
|
@@ -5556,13 +5556,13 @@ function mi(e, t) {
|
|
|
5556
5556
|
get onexpandImage() {
|
|
5557
5557
|
return a();
|
|
5558
5558
|
}
|
|
5559
|
-
}), O(F), te(() => le(F, 1, Ie(o(w)))),
|
|
5559
|
+
}), O(F), te(() => le(F, 1, Ie(o(w)))), R(H, F);
|
|
5560
5560
|
};
|
|
5561
5561
|
j(re, (H) => {
|
|
5562
5562
|
o(f) && H(ae);
|
|
5563
5563
|
});
|
|
5564
5564
|
}
|
|
5565
|
-
|
|
5565
|
+
R(W, $);
|
|
5566
5566
|
}, E = (W) => {
|
|
5567
5567
|
var $ = Sc(), L = ce($);
|
|
5568
5568
|
{
|
|
@@ -5587,7 +5587,7 @@ function mi(e, t) {
|
|
|
5587
5587
|
get onexpandImage() {
|
|
5588
5588
|
return a();
|
|
5589
5589
|
}
|
|
5590
|
-
}), O(F), te(() => le(F, 1, Ie(o(w)))),
|
|
5590
|
+
}), O(F), te(() => le(F, 1, Ie(o(w)))), R(H, F);
|
|
5591
5591
|
};
|
|
5592
5592
|
j(L, (H) => {
|
|
5593
5593
|
o(f) && H(P);
|
|
@@ -5604,25 +5604,25 @@ function mi(e, t) {
|
|
|
5604
5604
|
get otherClass() {
|
|
5605
5605
|
return o(g);
|
|
5606
5606
|
}
|
|
5607
|
-
}), O(F), te(() => le(F, 1, Ie(o(m)))),
|
|
5607
|
+
}), O(F), te(() => le(F, 1, Ie(o(m)))), R(H, F);
|
|
5608
5608
|
};
|
|
5609
5609
|
j(re, (H) => {
|
|
5610
5610
|
o(d) && H(ae);
|
|
5611
5611
|
});
|
|
5612
5612
|
}
|
|
5613
|
-
|
|
5613
|
+
R(W, $);
|
|
5614
5614
|
};
|
|
5615
5615
|
j(y, (W) => {
|
|
5616
5616
|
o(p) ? W(M) : W(E, !1);
|
|
5617
5617
|
});
|
|
5618
5618
|
}
|
|
5619
|
-
O(
|
|
5619
|
+
O(N), R(A, N);
|
|
5620
5620
|
};
|
|
5621
|
-
j(C, (
|
|
5622
|
-
o(l) &&
|
|
5621
|
+
j(C, (A) => {
|
|
5622
|
+
o(l) && A(v);
|
|
5623
5623
|
});
|
|
5624
5624
|
}
|
|
5625
|
-
return
|
|
5625
|
+
return R(e, _), he(k);
|
|
5626
5626
|
}
|
|
5627
5627
|
me(
|
|
5628
5628
|
mi,
|
|
@@ -5639,9 +5639,9 @@ me(
|
|
|
5639
5639
|
var Ac = /* @__PURE__ */ z('<div class="divider my-6"></div>'), Ic = /* @__PURE__ */ z('<div aria-live="polite"><!></div>'), Ec = /* @__PURE__ */ z("<div><!></div>"), Mc = /* @__PURE__ */ z("<div><!></div>"), Lc = /* @__PURE__ */ z('<div class="prompt-container"><div><div></div> <!></div></div> <!>', 1);
|
|
5640
5640
|
function Fi(e, t) {
|
|
5641
5641
|
pe(t, !0);
|
|
5642
|
-
let r = x(t, "rubric", 7, ""), n = x(t, "prompt", 7, ""), i = x(t, "interactionType", 7), a = x(t, "hasDivider", 7, !0), s = x(t, "stimulus", 7, null), l = x(t, "optionHasMedia", 7, !1), u = x(t, "interaction", 7), c = x(t, "feedback", 7), p = /* @__PURE__ */
|
|
5642
|
+
let r = x(t, "rubric", 7, ""), n = x(t, "prompt", 7, ""), i = x(t, "interactionType", 7), a = x(t, "hasDivider", 7, !0), s = x(t, "stimulus", 7, null), l = x(t, "optionHasMedia", 7, !1), u = x(t, "interaction", 7), c = x(t, "feedback", 7), p = /* @__PURE__ */ S(() => Gl(s()));
|
|
5643
5643
|
const h = So();
|
|
5644
|
-
let d = /* @__PURE__ */
|
|
5644
|
+
let d = /* @__PURE__ */ S(() => oc(i(), o(p), h.value)), f = /* @__PURE__ */ S(() => ({
|
|
5645
5645
|
interactionType: i(),
|
|
5646
5646
|
stimulusData: o(p),
|
|
5647
5647
|
optionHasMedia: l(),
|
|
@@ -5650,18 +5650,18 @@ function Fi(e, t) {
|
|
|
5650
5650
|
hasDivider: a(),
|
|
5651
5651
|
interactionWidthValue: o(d),
|
|
5652
5652
|
windowWidth: h.value
|
|
5653
|
-
})), m = /* @__PURE__ */
|
|
5653
|
+
})), m = /* @__PURE__ */ S(() => pc(o(f))), g = /* @__PURE__ */ S(() => o(m).build(o(f))), w = /* @__PURE__ */ S(() => ({
|
|
5654
5654
|
...o(g),
|
|
5655
5655
|
containerStyles: { ...o(g).containerStyles }
|
|
5656
|
-
})), k = /* @__PURE__ */ V(void 0), _ = lc(), C = /* @__PURE__ */
|
|
5656
|
+
})), k = /* @__PURE__ */ V(void 0), _ = lc(), C = /* @__PURE__ */ S(() => cc(o(k))), v = /* @__PURE__ */ S(() => _.value > 0 && o(k) && o(C).isLoaded ? sc(o(k)) : "margin-top: 0px"), A = /* @__PURE__ */ V(!1), N = /* @__PURE__ */ V(null);
|
|
5657
5657
|
const y = (U) => {
|
|
5658
|
-
U.stopPropagation(), U.preventDefault(), I(
|
|
5658
|
+
U.stopPropagation(), U.preventDefault(), I(N, U.currentTarget, !0), I(A, !0);
|
|
5659
5659
|
}, M = () => {
|
|
5660
|
-
I(
|
|
5661
|
-
o(
|
|
5660
|
+
I(A, !1), Qt().then(() => {
|
|
5661
|
+
o(N) && (o(N).focus(), I(N, null));
|
|
5662
5662
|
});
|
|
5663
5663
|
};
|
|
5664
|
-
let E = /* @__PURE__ */
|
|
5664
|
+
let E = /* @__PURE__ */ S(() => s()?.file?.url || ""), W = /* @__PURE__ */ S(() => s()?.alternative_text || ""), $ = /* @__PURE__ */ S(() => s()?.description || ""), L = /* @__PURE__ */ S(() => o(w).sections.filter((U) => ea(U) && U.component !== "desktop-column")), P = /* @__PURE__ */ S(() => o(w).sections.find((U) => ea(U) && U.component === "desktop-column"));
|
|
5665
5665
|
var re = {
|
|
5666
5666
|
get rubric() {
|
|
5667
5667
|
return r();
|
|
@@ -5735,7 +5735,7 @@ function Fi(e, t) {
|
|
|
5735
5735
|
{
|
|
5736
5736
|
var pt = (Ze) => {
|
|
5737
5737
|
{
|
|
5738
|
-
let Ot = /* @__PURE__ */
|
|
5738
|
+
let Ot = /* @__PURE__ */ S(() => o(ne).name?.includes("mobile") ? wt.DEFAULT : wt.INLINE);
|
|
5739
5739
|
mi(Ze, {
|
|
5740
5740
|
get stimulusData() {
|
|
5741
5741
|
return o(p);
|
|
@@ -5754,7 +5754,7 @@ function Fi(e, t) {
|
|
|
5754
5754
|
{
|
|
5755
5755
|
var Tr = (Dt) => {
|
|
5756
5756
|
var ir = Ac();
|
|
5757
|
-
|
|
5757
|
+
R(Dt, ir);
|
|
5758
5758
|
}, nr = (Dt) => {
|
|
5759
5759
|
var ir = xe(), Hn = ce(ir);
|
|
5760
5760
|
{
|
|
@@ -5762,7 +5762,7 @@ function Fi(e, t) {
|
|
|
5762
5762
|
Co(Se, {
|
|
5763
5763
|
children: (Ee, qr) => {
|
|
5764
5764
|
var Ar = xe(), $t = ce(Ar);
|
|
5765
|
-
br($t, () => u() ?? Pe),
|
|
5765
|
+
br($t, () => u() ?? Pe), R(Ee, Ar);
|
|
5766
5766
|
},
|
|
5767
5767
|
$$slots: { default: !0 }
|
|
5768
5768
|
});
|
|
@@ -5771,7 +5771,7 @@ function Fi(e, t) {
|
|
|
5771
5771
|
{
|
|
5772
5772
|
var Ar = ($t) => {
|
|
5773
5773
|
var zn = Ic(), $o = D(zn);
|
|
5774
|
-
br($o, () => c() ?? Pe), O(zn),
|
|
5774
|
+
br($o, () => c() ?? Pe), O(zn), R($t, zn);
|
|
5775
5775
|
};
|
|
5776
5776
|
j(
|
|
5777
5777
|
qr,
|
|
@@ -5781,7 +5781,7 @@ function Fi(e, t) {
|
|
|
5781
5781
|
!0
|
|
5782
5782
|
);
|
|
5783
5783
|
}
|
|
5784
|
-
|
|
5784
|
+
R(Se, Ee);
|
|
5785
5785
|
};
|
|
5786
5786
|
j(
|
|
5787
5787
|
Hn,
|
|
@@ -5791,7 +5791,7 @@ function Fi(e, t) {
|
|
|
5791
5791
|
!0
|
|
5792
5792
|
);
|
|
5793
5793
|
}
|
|
5794
|
-
|
|
5794
|
+
R(Dt, ir);
|
|
5795
5795
|
};
|
|
5796
5796
|
j(
|
|
5797
5797
|
jr,
|
|
@@ -5801,7 +5801,7 @@ function Fi(e, t) {
|
|
|
5801
5801
|
!0
|
|
5802
5802
|
);
|
|
5803
5803
|
}
|
|
5804
|
-
|
|
5804
|
+
R(Ze, Ot);
|
|
5805
5805
|
};
|
|
5806
5806
|
j(
|
|
5807
5807
|
rt,
|
|
@@ -5811,7 +5811,7 @@ function Fi(e, t) {
|
|
|
5811
5811
|
!0
|
|
5812
5812
|
);
|
|
5813
5813
|
}
|
|
5814
|
-
|
|
5814
|
+
R(Ne, Ce);
|
|
5815
5815
|
};
|
|
5816
5816
|
j(
|
|
5817
5817
|
G,
|
|
@@ -5821,7 +5821,7 @@ function Fi(e, t) {
|
|
|
5821
5821
|
!0
|
|
5822
5822
|
);
|
|
5823
5823
|
}
|
|
5824
|
-
|
|
5824
|
+
R(we, B);
|
|
5825
5825
|
};
|
|
5826
5826
|
j(ge, (we) => {
|
|
5827
5827
|
o(ne).component === "rubric" ? we(q) : we(ve, !1);
|
|
@@ -5835,7 +5835,7 @@ function Fi(e, t) {
|
|
|
5835
5835
|
() => Ie(Un(o(ne).classes)),
|
|
5836
5836
|
() => Yn(o(ne).styles)
|
|
5837
5837
|
]
|
|
5838
|
-
),
|
|
5838
|
+
), R(U, _e);
|
|
5839
5839
|
}), O(Y);
|
|
5840
5840
|
var Z = Q(Y, 2);
|
|
5841
5841
|
{
|
|
@@ -5857,7 +5857,7 @@ function Fi(e, t) {
|
|
|
5857
5857
|
() => Ie(Un(o(P).classes)),
|
|
5858
5858
|
() => Yn(o(P).styles)
|
|
5859
5859
|
]
|
|
5860
|
-
),
|
|
5860
|
+
), R(U, ne);
|
|
5861
5861
|
};
|
|
5862
5862
|
j(Z, (U) => {
|
|
5863
5863
|
o(P) && U(X);
|
|
@@ -5869,7 +5869,7 @@ function Fi(e, t) {
|
|
|
5869
5869
|
var ye = (U) => {
|
|
5870
5870
|
ko(U, {
|
|
5871
5871
|
get isOpen() {
|
|
5872
|
-
return o(
|
|
5872
|
+
return o(A);
|
|
5873
5873
|
},
|
|
5874
5874
|
get imageUrl() {
|
|
5875
5875
|
return o(E);
|
|
@@ -5884,7 +5884,7 @@ function Fi(e, t) {
|
|
|
5884
5884
|
});
|
|
5885
5885
|
};
|
|
5886
5886
|
j(oe, (U) => {
|
|
5887
|
-
o(
|
|
5887
|
+
o(A) && U(ye);
|
|
5888
5888
|
});
|
|
5889
5889
|
}
|
|
5890
5890
|
return te(
|
|
@@ -5895,7 +5895,7 @@ function Fi(e, t) {
|
|
|
5895
5895
|
() => Ie(Un(o(w).containerClasses)),
|
|
5896
5896
|
() => Yn(o(w).containerStyles) + ";width: var(--interactionWidthValue)"
|
|
5897
5897
|
]
|
|
5898
|
-
),
|
|
5898
|
+
), R(e, ae), he(re);
|
|
5899
5899
|
}
|
|
5900
5900
|
me(
|
|
5901
5901
|
Fi,
|
|
@@ -5916,7 +5916,7 @@ me(
|
|
|
5916
5916
|
var Nc = /* @__PURE__ */ z('<p class="text-charcoal text-sm leading-[19.2px] mb-2"> </p>'), Rc = (e, t, r) => t()(r().id, r().answer), Oc = /* @__PURE__ */ z('<span class="text-gray-860 text-sm mb-0.5"> </span>'), Dc = /* @__PURE__ */ z('<span class="text-gray-860 text-sm mb-0.5">Missing answer:</span>'), Fc = /* @__PURE__ */ z('<span aria-hidden="true" class="text-green-900 mr-1"><!></span>'), $c = /* @__PURE__ */ z('<span aria-hidden="true"><!></span>'), Pc = /* @__PURE__ */ z('<span class="w-3 h-2 flex items-center justify-center"><!></span>'), Hc = /* @__PURE__ */ z("<span><!></span>"), zc = /* @__PURE__ */ z('<div class="w-full overflow-hidden bg-white rounded-b-lg flex items-center justify-center relative"><img class="min-h-[154px] max-h-[184px] w-auto max-w-full object-contain pointer-events-none" loading="lazy"/></div>'), Bc = /* @__PURE__ */ z('<!> <div class="relative"><button><span><span class="flex items-center justify-between w-full"><span class="flex items-center"><span> </span> <span class="flex flex-col px-3 text-left"><!> <!> <!></span></span> <span class="flex items-center"><!> <!> <!></span></span></span> <!></button> <!></div>', 1);
|
|
5917
5917
|
function Ao(e, t) {
|
|
5918
5918
|
pe(t, !0);
|
|
5919
|
-
let r = x(t, "option", 7), n = x(t, "index", 7), i = x(t, "config", 7), a = x(t, "state", 7), s = x(t, "optionHasMedia", 7, !1), l = x(t, "onOptionClick", 7), u = x(t, "onExpandImage", 7), c = /* @__PURE__ */
|
|
5919
|
+
let r = x(t, "option", 7), n = x(t, "index", 7), i = x(t, "config", 7), a = x(t, "state", 7), s = x(t, "optionHasMedia", 7, !1), l = x(t, "onOptionClick", 7), u = x(t, "onExpandImage", 7), c = /* @__PURE__ */ S(() => Ri(a(), i())), p = /* @__PURE__ */ S(() => El(r(), n(), i(), a(), s())), h = /* @__PURE__ */ S(() => o(c).totalCorrectAnswers), d = /* @__PURE__ */ S(() => o(c).correctAnswerIds), f = /* @__PURE__ */ S(() => o(c).mode), m = /* @__PURE__ */ S(() => o(f) === fe.PREVIEW), g = /* @__PURE__ */ S(() => o(f) === fe.INTERACTIVE);
|
|
5920
5920
|
const w = () => {
|
|
5921
5921
|
if (!o(p))
|
|
5922
5922
|
return `Option ${hn(n())}: ${Kr(r().answer)}`;
|
|
@@ -5924,7 +5924,7 @@ function Ao(e, t) {
|
|
|
5924
5924
|
let G = `${(!o(p).isFinished || o(g)) && o(p).isSelected ? "Selected " : ""}Option ${hn(n())}: ${Kr(r().answer)}`;
|
|
5925
5925
|
return o(p).isFinished && !o(m) && !o(g) ? o(p).isCorrect ? G += o(p).isSelected ? " (Correct answer)" : " (Missing Answer)" : o(p).isSelected && (G += " (Incorrect answer)") : o(m) && !o(g) ? o(p).isCorrect && (G += " (Correct answer)") : o(g) && B.length === o(h) && (o(p).isSelected ? G += o(p).isCorrect ? " (Correct answer)" : " (Incorrect answer)" : o(p).isCorrect && (G += " (Missing Answer)")), G;
|
|
5926
5926
|
};
|
|
5927
|
-
let k = /* @__PURE__ */
|
|
5927
|
+
let k = /* @__PURE__ */ S(() => o(p) ? w() : `Option ${hn(n())}: ${Kr(r().answer)}`);
|
|
5928
5928
|
var _ = {
|
|
5929
5929
|
get option() {
|
|
5930
5930
|
return r();
|
|
@@ -5970,15 +5970,15 @@ function Ao(e, t) {
|
|
|
5970
5970
|
}
|
|
5971
5971
|
}, C = Bc(), v = ce(C);
|
|
5972
5972
|
{
|
|
5973
|
-
var
|
|
5973
|
+
var A = (B) => {
|
|
5974
5974
|
var G = Nc(), be = D(G, !0);
|
|
5975
|
-
O(G), te(() => dt(be, o(g) ? "Your answer:" : o(m) ? "" : "Student's answer:")),
|
|
5975
|
+
O(G), te(() => dt(be, o(g) ? "Your answer:" : o(m) ? "" : "Student's answer:")), R(B, G);
|
|
5976
5976
|
};
|
|
5977
5977
|
j(v, (B) => {
|
|
5978
|
-
o(p)?.showStudentLabel && B(
|
|
5978
|
+
o(p)?.showStudentLabel && B(A);
|
|
5979
5979
|
});
|
|
5980
5980
|
}
|
|
5981
|
-
var
|
|
5981
|
+
var N = Q(v, 2), y = D(N);
|
|
5982
5982
|
y.__click = [Rc, l, r];
|
|
5983
5983
|
var M = D(y), E = D(M), W = D(E), $ = D(W), L = D($, !0);
|
|
5984
5984
|
O($);
|
|
@@ -5986,7 +5986,7 @@ function Ao(e, t) {
|
|
|
5986
5986
|
{
|
|
5987
5987
|
var ae = (B) => {
|
|
5988
5988
|
var G = Oc(), be = D(G, !0);
|
|
5989
|
-
O(G), te(() => dt(be, o(g) ? "Your answer:" : o(m) ? "" : "Student's answer:")),
|
|
5989
|
+
O(G), te(() => dt(be, o(g) ? "Your answer:" : o(m) ? "" : "Student's answer:")), R(B, G);
|
|
5990
5990
|
};
|
|
5991
5991
|
j(re, (B) => {
|
|
5992
5992
|
o(p)?.showMediaStudentLabel && B(ae);
|
|
@@ -5996,7 +5996,7 @@ function Ao(e, t) {
|
|
|
5996
5996
|
{
|
|
5997
5997
|
var F = (B) => {
|
|
5998
5998
|
var G = Dc();
|
|
5999
|
-
|
|
5999
|
+
R(B, G);
|
|
6000
6000
|
};
|
|
6001
6001
|
j(H, (B) => {
|
|
6002
6002
|
o(p)?.showMissingAnswerLabel && B(F);
|
|
@@ -6013,7 +6013,7 @@ function Ao(e, t) {
|
|
|
6013
6013
|
{
|
|
6014
6014
|
var oe = (B) => {
|
|
6015
6015
|
var G = Fc(), be = D(G);
|
|
6016
|
-
$e(be, { svgName: "success", className: "missing-correct-icon" }), O(G),
|
|
6016
|
+
$e(be, { svgName: "success", className: "missing-correct-icon" }), O(G), R(B, G);
|
|
6017
6017
|
};
|
|
6018
6018
|
j(X, (B) => {
|
|
6019
6019
|
o(p)?.showMissingIcon && B(oe);
|
|
@@ -6035,7 +6035,7 @@ function Ao(e, t) {
|
|
|
6035
6035
|
}
|
|
6036
6036
|
O(G), te((Ce) => le(G, 1, `${Ce ?? ""} p-0.5`), [
|
|
6037
6037
|
() => o(d).includes(r().id) || o(m) && !o(g) ? "text-green-900" : "text-red-900"
|
|
6038
|
-
]),
|
|
6038
|
+
]), R(B, G);
|
|
6039
6039
|
};
|
|
6040
6040
|
j(ye, (B) => {
|
|
6041
6041
|
o(p)?.showResultIcon && B(U);
|
|
@@ -6048,13 +6048,13 @@ function Ao(e, t) {
|
|
|
6048
6048
|
{
|
|
6049
6049
|
var tt = (Ne) => {
|
|
6050
6050
|
var Ce = Pc(), rt = D(Ce);
|
|
6051
|
-
$e(rt, { svgName: "successRounded", className: "selected-icon" }), O(Ce),
|
|
6051
|
+
$e(rt, { svgName: "successRounded", className: "selected-icon" }), O(Ce), R(Ne, Ce);
|
|
6052
6052
|
};
|
|
6053
6053
|
j(be, (Ne) => {
|
|
6054
6054
|
o(p)?.isSelected && Ne(tt);
|
|
6055
6055
|
});
|
|
6056
6056
|
}
|
|
6057
|
-
O(G), te(() => le(G, 1, Ie(o(p)?.checkboxClasses || "custom-checkbox border-gray-850"))),
|
|
6057
|
+
O(G), te(() => le(G, 1, Ie(o(p)?.checkboxClasses || "custom-checkbox border-gray-850"))), R(B, G);
|
|
6058
6058
|
};
|
|
6059
6059
|
j(ne, (B) => {
|
|
6060
6060
|
o(p)?.showCheckbox && B(_e);
|
|
@@ -6067,7 +6067,7 @@ function Ao(e, t) {
|
|
|
6067
6067
|
var G = zc(), be = D(G);
|
|
6068
6068
|
O(G), te(() => {
|
|
6069
6069
|
K(be, "id", `img-${n() ?? ""}`), K(be, "alt", `Graphic, ${(r().media?.alternative_text || "") ?? ""}`), K(be, "src", r().media.file.url);
|
|
6070
|
-
}),
|
|
6070
|
+
}), R(B, G);
|
|
6071
6071
|
};
|
|
6072
6072
|
j(ge, (B) => {
|
|
6073
6073
|
s() && r().media && B(q);
|
|
@@ -6095,12 +6095,12 @@ function Ao(e, t) {
|
|
|
6095
6095
|
s() && B(we);
|
|
6096
6096
|
});
|
|
6097
6097
|
}
|
|
6098
|
-
return O(
|
|
6098
|
+
return O(N), te(
|
|
6099
6099
|
(B) => {
|
|
6100
6100
|
K(y, "role", o(h) > 1 ? "checkbox" : null), K(y, "tabindex", o(h) > 1 ? 0 : null), K(y, "aria-describedby", `img-${n() ?? ""}`), K(y, "aria-checked", o(h) > 1 ? o(p)?.isSelected : null), K(y, "aria-disabled", o(p)?.isFinished && !o(g) ? "true" : null), K(y, "aria-label", o(k)), le(y, 1, Ie(o(p)?.buttonClasses || "group btn-mcq-option")), le(M, 1, `btn-mcq-text ${s() ? "min-h-[44px]" : ""}`), le($, 1, `choice ${s() ? "my-1.5" : ""}`), dt(L, B);
|
|
6101
6101
|
},
|
|
6102
6102
|
[() => hn(n())]
|
|
6103
|
-
),
|
|
6103
|
+
), R(e, C), he(_);
|
|
6104
6104
|
}
|
|
6105
6105
|
Sr(["click"]);
|
|
6106
6106
|
me(
|
|
@@ -6127,7 +6127,7 @@ function Io(e, t) {
|
|
|
6127
6127
|
}, u = (k, _) => {
|
|
6128
6128
|
s()?.(k, _);
|
|
6129
6129
|
};
|
|
6130
|
-
let c = /* @__PURE__ */
|
|
6130
|
+
let c = /* @__PURE__ */ S(() => r().options ?? {}), p = /* @__PURE__ */ S(() => Object.values(o(c))), h = /* @__PURE__ */ S(() => o(p).length > 0 && o(p).every((k) => k.media));
|
|
6131
6131
|
var d = {
|
|
6132
6132
|
get config() {
|
|
6133
6133
|
return r();
|
|
@@ -6164,17 +6164,17 @@ function Io(e, t) {
|
|
|
6164
6164
|
var g = (k) => {
|
|
6165
6165
|
var _ = Vc(), C = D(_);
|
|
6166
6166
|
{
|
|
6167
|
-
var v = (
|
|
6167
|
+
var v = (N) => {
|
|
6168
6168
|
var y = Wc();
|
|
6169
|
-
N
|
|
6169
|
+
R(N, y);
|
|
6170
6170
|
};
|
|
6171
|
-
j(C, (
|
|
6172
|
-
i() &&
|
|
6171
|
+
j(C, (N) => {
|
|
6172
|
+
i() && N(v);
|
|
6173
6173
|
});
|
|
6174
6174
|
}
|
|
6175
|
-
var
|
|
6176
|
-
Pn(
|
|
6177
|
-
Ao(
|
|
6175
|
+
var A = Q(C, 2);
|
|
6176
|
+
Pn(A, 21, () => Object.values(o(c)), $n, (N, y, M) => {
|
|
6177
|
+
Ao(N, {
|
|
6178
6178
|
get option() {
|
|
6179
6179
|
return o(y);
|
|
6180
6180
|
},
|
|
@@ -6191,18 +6191,18 @@ function Io(e, t) {
|
|
|
6191
6191
|
onOptionClick: l,
|
|
6192
6192
|
onExpandImage: u
|
|
6193
6193
|
});
|
|
6194
|
-
}), O(
|
|
6195
|
-
le(_, 1, Ie(o(h) ? "w-full" : "relative")), le(
|
|
6196
|
-
}),
|
|
6194
|
+
}), O(A), O(_), te(() => {
|
|
6195
|
+
le(_, 1, Ie(o(h) ? "w-full" : "relative")), le(A, 1, Ie(o(h) ? "flex flex-col justify-start items-center md:items-start md:flex-none md:grid md:[grid-template-columns:repeat(2,minmax(auto,304px))] md:gap-x-4 md:justify-center lg:justify-start" : ""));
|
|
6196
|
+
}), R(k, _);
|
|
6197
6197
|
}, w = (k) => {
|
|
6198
6198
|
var _ = jc();
|
|
6199
|
-
|
|
6199
|
+
R(k, _);
|
|
6200
6200
|
};
|
|
6201
6201
|
j(m, (k) => {
|
|
6202
6202
|
o(c) ? k(g) : k(w, !1);
|
|
6203
6203
|
});
|
|
6204
6204
|
}
|
|
6205
|
-
return
|
|
6205
|
+
return R(e, f), he(d);
|
|
6206
6206
|
}
|
|
6207
6207
|
me(
|
|
6208
6208
|
Io,
|
|
@@ -6224,14 +6224,14 @@ function Eo(e, t) {
|
|
|
6224
6224
|
const s = r().hasExistingState?.() ? r().restoreState?.() : r().createInitialState?.();
|
|
6225
6225
|
if (!s?.data)
|
|
6226
6226
|
throw new Error("Failed to initialize MCQ state");
|
|
6227
|
-
let l = /* @__PURE__ */ V(lt(s)), u = /* @__PURE__ */
|
|
6227
|
+
let l = /* @__PURE__ */ V(lt(s)), u = /* @__PURE__ */ S(() => Ri(o(l), n(), n().options)), c = /* @__PURE__ */ S(() => o(u).selectedOptions), p = /* @__PURE__ */ S(() => o(u).totalCorrectAnswers), h = /* @__PURE__ */ S(() => o(u).mode), d = /* @__PURE__ */ S(() => o(u).hasMedia), f = /* @__PURE__ */ S(() => o(h) === fe.INTERACTIVE), m = /* @__PURE__ */ V(!1), g = /* @__PURE__ */ V(0), w = null, k = /* @__PURE__ */ S(() => Object.values(n().options).filter((H) => H.media));
|
|
6228
6228
|
const _ = (H) => ({
|
|
6229
6229
|
answer_id: H,
|
|
6230
6230
|
answer_choice: [],
|
|
6231
6231
|
timestamp: Date.now()
|
|
6232
6232
|
}), C = (H) => r().validate ? r().validate(_(H)).isValid : !1, v = (H) => r().validate && r().validate(_(H)).feedback || "";
|
|
6233
|
-
let
|
|
6234
|
-
const
|
|
6233
|
+
let A = /* @__PURE__ */ S(() => Il(o(l), n(), C, v));
|
|
6234
|
+
const N = (H, F) => {
|
|
6235
6235
|
F.stopPropagation(), w = F.currentTarget;
|
|
6236
6236
|
const Y = Object.values(n().options), Z = o(k).findIndex((X, oe) => Y.findIndex((U) => U.id === o(k)[oe].id) === H);
|
|
6237
6237
|
I(g, Z >= 0 ? Z : 0, !0), I(m, !0);
|
|
@@ -6298,7 +6298,7 @@ function Eo(e, t) {
|
|
|
6298
6298
|
return i();
|
|
6299
6299
|
},
|
|
6300
6300
|
onoptionClick: E,
|
|
6301
|
-
onExpandImage:
|
|
6301
|
+
onExpandImage: N
|
|
6302
6302
|
});
|
|
6303
6303
|
}, F = (X) => {
|
|
6304
6304
|
var oe = xe(), ye = ce(oe);
|
|
@@ -6307,16 +6307,16 @@ function Eo(e, t) {
|
|
|
6307
6307
|
var ge = qc(), q = D(ge);
|
|
6308
6308
|
fi(q, {
|
|
6309
6309
|
get feedbackState() {
|
|
6310
|
-
return o(
|
|
6310
|
+
return o(A);
|
|
6311
6311
|
},
|
|
6312
6312
|
get isInteractiveMode() {
|
|
6313
6313
|
return o(f);
|
|
6314
6314
|
}
|
|
6315
|
-
}), O(ge),
|
|
6315
|
+
}), O(ge), R(_e, ge);
|
|
6316
6316
|
}, ne = (_e) => {
|
|
6317
6317
|
fi(_e, {
|
|
6318
6318
|
get feedbackState() {
|
|
6319
|
-
return o(
|
|
6319
|
+
return o(A);
|
|
6320
6320
|
},
|
|
6321
6321
|
get isInteractiveMode() {
|
|
6322
6322
|
return o(f);
|
|
@@ -6327,9 +6327,9 @@ function Eo(e, t) {
|
|
|
6327
6327
|
o(f) ? _e(U) : _e(ne, !1);
|
|
6328
6328
|
});
|
|
6329
6329
|
}
|
|
6330
|
-
|
|
6330
|
+
R(X, oe);
|
|
6331
6331
|
};
|
|
6332
|
-
let Y = /* @__PURE__ */
|
|
6332
|
+
let Y = /* @__PURE__ */ S(() => n().rubric?.text || ""), Z = /* @__PURE__ */ S(() => n().prompt || "");
|
|
6333
6333
|
Fi(P, {
|
|
6334
6334
|
get rubric() {
|
|
6335
6335
|
return o(Y);
|
|
@@ -6374,7 +6374,7 @@ function Eo(e, t) {
|
|
|
6374
6374
|
o(d) && H(ae);
|
|
6375
6375
|
});
|
|
6376
6376
|
}
|
|
6377
|
-
return
|
|
6377
|
+
return R(e, L), he($);
|
|
6378
6378
|
}
|
|
6379
6379
|
me(Eo, { api: {}, config: {}, isDataSaving: {}, onstateChange: {} }, [], [], !0);
|
|
6380
6380
|
const Yc = (e, t) => {
|
|
@@ -6585,17 +6585,17 @@ var Jc = /* @__PURE__ */ z('<label class="absolute left-0 top-0 bottom-0" aria-h
|
|
|
6585
6585
|
function Lo(e, t) {
|
|
6586
6586
|
pe(t, !0);
|
|
6587
6587
|
let r = x(t, "index", 7), n = x(t, "value", 15), i = x(t, "readonly", 7, !1), a = x(t, "showStatus", 7, !1), s = x(t, "isCorrect", 7, null), l = x(t, "totalBlanks", 7), u = x(t, "marginClass", 7, ""), c = x(t, "onBlur", 7);
|
|
6588
|
-
const p = /* @__PURE__ */
|
|
6588
|
+
const p = /* @__PURE__ */ S(() => l() > 1), h = /* @__PURE__ */ S(() => r() + 1);
|
|
6589
6589
|
let d = /* @__PURE__ */ V(lt(n()));
|
|
6590
6590
|
Te(() => {
|
|
6591
|
-
|
|
6591
|
+
i() && I(d, n(), !0);
|
|
6592
6592
|
});
|
|
6593
|
-
let f = /* @__PURE__ */
|
|
6593
|
+
let f = /* @__PURE__ */ S(() => a() ? s() === !0 ? `Student's answer (Correct), Item number ${o(h)}: ${o(d) ?? ""}` : `Student's answer (Incorrect), Item number ${o(h)}: ${o(d) ?? ""}` : `Item number ${o(h)}`), m;
|
|
6594
6594
|
const g = () => {
|
|
6595
6595
|
I(d, n(), !0), c()?.(r());
|
|
6596
6596
|
}, w = (E) => {
|
|
6597
6597
|
E.key === "Enter" && (E.preventDefault(), m?.blur(), m?.focus());
|
|
6598
|
-
}, k = /* @__PURE__ */
|
|
6598
|
+
}, k = /* @__PURE__ */ S(() => (() => {
|
|
6599
6599
|
const E = ["typein-textbox", "w-60", "py-[9px]", "pr-4"];
|
|
6600
6600
|
o(p) && E.push("pl-13.2");
|
|
6601
6601
|
const W = n() && n().trim();
|
|
@@ -6652,24 +6652,24 @@ function Lo(e, t) {
|
|
|
6652
6652
|
}
|
|
6653
6653
|
}, C = tu(), v = D(C);
|
|
6654
6654
|
{
|
|
6655
|
-
var
|
|
6655
|
+
var A = (E) => {
|
|
6656
6656
|
var W = Jc(), $ = Q(D(W), 2), L = D($, !0);
|
|
6657
6657
|
O($), O(W), te(() => {
|
|
6658
6658
|
K(W, "for", `inline-${r() ?? ""}`), dt(L, o(h));
|
|
6659
|
-
}),
|
|
6659
|
+
}), R(E, W);
|
|
6660
6660
|
};
|
|
6661
6661
|
j(v, (E) => {
|
|
6662
|
-
o(p) && E(
|
|
6662
|
+
o(p) && E(A);
|
|
6663
6663
|
});
|
|
6664
6664
|
}
|
|
6665
|
-
var
|
|
6666
|
-
ro(
|
|
6667
|
-
var y = Q(
|
|
6665
|
+
var N = Q(v, 2);
|
|
6666
|
+
ro(N), N.__keydown = w, Mt(N, (E) => m = E, () => m);
|
|
6667
|
+
var y = Q(N, 2);
|
|
6668
6668
|
{
|
|
6669
6669
|
var M = (E) => {
|
|
6670
6670
|
var W = eu(), $ = D(W);
|
|
6671
6671
|
{
|
|
6672
|
-
let L = /* @__PURE__ */
|
|
6672
|
+
let L = /* @__PURE__ */ S(() => !!s()), P = /* @__PURE__ */ S(() => s() ? "text-green-900" : "text-red-900");
|
|
6673
6673
|
un($, {
|
|
6674
6674
|
get isCorrect() {
|
|
6675
6675
|
return o(L);
|
|
@@ -6679,15 +6679,15 @@ function Lo(e, t) {
|
|
|
6679
6679
|
}
|
|
6680
6680
|
});
|
|
6681
6681
|
}
|
|
6682
|
-
O(W),
|
|
6682
|
+
O(W), R(E, W);
|
|
6683
6683
|
};
|
|
6684
6684
|
j(y, (E) => {
|
|
6685
6685
|
a() && n() && n().trim() && s() !== null && E(M);
|
|
6686
6686
|
});
|
|
6687
6687
|
}
|
|
6688
6688
|
return O(C), te(() => {
|
|
6689
|
-
le(C, 1, `relative inline-block h-fit my-2 ${u() ?? ""}`), K(
|
|
6690
|
-
}), ct("blur",
|
|
6689
|
+
le(C, 1, `relative inline-block h-fit my-2 ${u() ?? ""}`), K(N, "id", `inline-${r() ?? ""}`), le(N, 1, Ie(o(k))), K(N, "aria-label", o(f)), N.readOnly = i();
|
|
6690
|
+
}), ct("blur", N, g), li(N, n), R(e, C), he(_);
|
|
6691
6691
|
}
|
|
6692
6692
|
Sr(["keydown"]);
|
|
6693
6693
|
me(
|
|
@@ -6718,7 +6718,7 @@ const ta = (e, t) => {
|
|
|
6718
6718
|
var ru = /* @__PURE__ */ z('<textarea id="answerText" placeholder="Type your answer here" autocomplete="off" rows="3"></textarea>'), nu = /* @__PURE__ */ z('<input autocomplete="off" placeholder="Type your answer here"/>'), iu = /* @__PURE__ */ z('<div class="relative"><!></div>');
|
|
6719
6719
|
function No(e, t) {
|
|
6720
6720
|
pe(t, !0);
|
|
6721
|
-
let r = x(t, "value", 15), n = x(t, "variant", 7), i = x(t, "readonly", 7, !1), a = x(t, "disabled", 7, !1), s = x(t, "showStatus", 7, !1), l = x(t, "isCorrect", 7, null), u = x(t, "isSkipped", 7, !1), c = x(t, "onBlur", 7), p = /* @__PURE__ */
|
|
6721
|
+
let r = x(t, "value", 15), n = x(t, "variant", 7), i = x(t, "readonly", 7, !1), a = x(t, "disabled", 7, !1), s = x(t, "showStatus", 7, !1), l = x(t, "isCorrect", 7, null), u = x(t, "isSkipped", 7, !1), c = x(t, "onBlur", 7), p = /* @__PURE__ */ S(() => s() && l() !== null ? `Submitted response is ${l() ? "correct" : "incorrect"}` : r() ? "Your response is" : "Answer input: Please type your response");
|
|
6722
6722
|
const h = Qc(), d = (C) => {
|
|
6723
6723
|
h.handleFocus(C);
|
|
6724
6724
|
}, f = () => {
|
|
@@ -6779,18 +6779,18 @@ function No(e, t) {
|
|
|
6779
6779
|
var v = ru();
|
|
6780
6780
|
Na(v), v.__mousedown = [ta, h], v.__touchstart = [ra, h], v.__keydown = [na, h, c], te(() => {
|
|
6781
6781
|
le(v, 1, `typein-textbox resize-none ${s() && !u() && l() === !0 ? "border-2 border-green-800" : ""} ${s() && !u() && l() === !1 ? "border-2 border-red-800 bg-red-50" : ""}`), K(v, "aria-label", o(p)), v.readOnly = i(), v.disabled = a();
|
|
6782
|
-
}), ct("focus", v, d), ct("blur", v, f), li(v, r),
|
|
6782
|
+
}), ct("focus", v, d), ct("blur", v, f), li(v, r), R(C, v);
|
|
6783
6783
|
}, _ = (C) => {
|
|
6784
6784
|
var v = nu();
|
|
6785
6785
|
ro(v), v.__mousedown = [ta, h], v.__touchstart = [ra, h], v.__keydown = [na, h, c], te(() => {
|
|
6786
6786
|
le(v, 1, `typein-textbox typein-input ${s() && !u() && l() === !0 ? "border-2 border-green-800" : ""} ${s() && !u() && l() === !1 ? "border-2 border-red-800 bg-red-50" : ""}`), K(v, "aria-label", o(p)), v.readOnly = i(), v.disabled = a();
|
|
6787
|
-
}), ct("focus", v, d), ct("blur", v, f), li(v, r),
|
|
6787
|
+
}), ct("focus", v, d), ct("blur", v, f), li(v, r), R(C, v);
|
|
6788
6788
|
};
|
|
6789
6789
|
j(w, (C) => {
|
|
6790
6790
|
n() === "long" ? C(k) : C(_, !1);
|
|
6791
6791
|
});
|
|
6792
6792
|
}
|
|
6793
|
-
return O(g),
|
|
6793
|
+
return O(g), R(e, g), he(m);
|
|
6794
6794
|
}
|
|
6795
6795
|
Sr(["mousedown", "touchstart", "keydown"]);
|
|
6796
6796
|
me(
|
|
@@ -6841,10 +6841,10 @@ typeof window > "u" ? ((Yr = function(e) {
|
|
|
6841
6841
|
function c(h) {
|
|
6842
6842
|
var d, f, m = h.restoreTextAlign, g = m === void 0 ? null : m, w = h.testForHeightReduction, k = w === void 0 || w, _ = s.overflowY;
|
|
6843
6843
|
if (n.scrollHeight !== 0 && (s.resize === "vertical" ? n.style.resize = "none" : s.resize === "both" && (n.style.resize = "horizontal"), k && (d = (function(v) {
|
|
6844
|
-
for (var
|
|
6844
|
+
for (var A = []; v && v.parentNode && v.parentNode instanceof Element; ) v.parentNode.scrollTop && A.push([v.parentNode, v.parentNode.scrollTop]), v = v.parentNode;
|
|
6845
6845
|
return function() {
|
|
6846
|
-
return
|
|
6847
|
-
var y =
|
|
6846
|
+
return A.forEach(function(N) {
|
|
6847
|
+
var y = N[0], M = N[1];
|
|
6848
6848
|
y.style.scrollBehavior = "auto", y.scrollTop = M, y.style.scrollBehavior = null;
|
|
6849
6849
|
});
|
|
6850
6850
|
};
|
|
@@ -6874,7 +6874,7 @@ $i.destroy = Tn.destroy;
|
|
|
6874
6874
|
var su = /* @__PURE__ */ z('<span class="w-6 h-6 absolute right-4 top-[calc(50%+0.375rem)] -translate-y-1/2 flex items-center justify-center"><!></span>'), lu = /* @__PURE__ */ z('<div><label aria-hidden="true"><span class="absolute inset-0 bottom-[7px] bg-black opacity-5 rounded-l-lg w-8.5 top-1"></span> <span class="absolute font-semibold text-base leading-[19px] text-charcoal px-3 inline-block top-1/2 -translate-y-1/2 -mt-0.5"> </span></label> <textarea rows="1" readonly=""></textarea> <!></div>');
|
|
6875
6875
|
function gi(e, t) {
|
|
6876
6876
|
pe(t, !0);
|
|
6877
|
-
let r = x(t, "answer", 7), n = x(t, "isCorrect", 7), i = x(t, "questionNumber", 7), a = x(t, "type", 7), s = x(t, "showQuestionNumber", 7), l = x(t, "showResultIcon", 7), u = x(t, "comparison", 7), c = /* @__PURE__ */
|
|
6877
|
+
let r = x(t, "answer", 7), n = x(t, "isCorrect", 7), i = x(t, "questionNumber", 7), a = x(t, "type", 7), s = x(t, "showQuestionNumber", 7), l = x(t, "showResultIcon", 7), u = x(t, "comparison", 7), c = /* @__PURE__ */ S(m), p = /* @__PURE__ */ S(g), h = /* @__PURE__ */ S(w), d = /* @__PURE__ */ S(k), f = /* @__PURE__ */ S(_);
|
|
6878
6878
|
function m() {
|
|
6879
6879
|
return a() === "student" ? r() || "No answer provided" : u().correctAnswer;
|
|
6880
6880
|
}
|
|
@@ -6936,16 +6936,16 @@ function gi(e, t) {
|
|
|
6936
6936
|
set comparison($) {
|
|
6937
6937
|
u($), b();
|
|
6938
6938
|
}
|
|
6939
|
-
}, v = lu(),
|
|
6940
|
-
O(
|
|
6941
|
-
var M = Q(
|
|
6939
|
+
}, v = lu(), A = D(v), N = Q(D(A), 2), y = D(N, !0);
|
|
6940
|
+
O(N), O(A);
|
|
6941
|
+
var M = Q(A, 2);
|
|
6942
6942
|
Na(M), js(M, ($) => $i?.($));
|
|
6943
6943
|
var E = Q(M, 2);
|
|
6944
6944
|
{
|
|
6945
6945
|
var W = ($) => {
|
|
6946
6946
|
var L = su(), P = D(L);
|
|
6947
6947
|
{
|
|
6948
|
-
let re = /* @__PURE__ */
|
|
6948
|
+
let re = /* @__PURE__ */ S(() => n() ? "text-green-900" : "text-red-900");
|
|
6949
6949
|
un(P, {
|
|
6950
6950
|
get isCorrect() {
|
|
6951
6951
|
return n();
|
|
@@ -6955,15 +6955,15 @@ function gi(e, t) {
|
|
|
6955
6955
|
}
|
|
6956
6956
|
});
|
|
6957
6957
|
}
|
|
6958
|
-
O(L),
|
|
6958
|
+
O(L), R($, L);
|
|
6959
6959
|
};
|
|
6960
6960
|
j(E, ($) => {
|
|
6961
6961
|
l() && a() === "student" && $(W);
|
|
6962
6962
|
});
|
|
6963
6963
|
}
|
|
6964
6964
|
return O(v), te(() => {
|
|
6965
|
-
le(v, 1, `h-fit relative ${a() === "correct" && u().isCorrect ? "hidden md:block" : ""}`), K(
|
|
6966
|
-
}),
|
|
6965
|
+
le(v, 1, `h-fit relative ${a() === "correct" && u().isCorrect ? "hidden md:block" : ""}`), K(A, "for", `${a() ?? ""}-${u().id ?? ""}-${i() - 1}`), le(A, 1, Ie(o(p))), dt(y, i()), K(M, "aria-label", o(f)), le(M, 1, Ie(o(h))), K(M, "id", `${a() ?? ""}-${u().id ?? ""}-${i() - 1}`), Qs(M, o(c)), K(M, "tabindex", o(d));
|
|
6966
|
+
}), R(e, v), he(C);
|
|
6967
6967
|
}
|
|
6968
6968
|
me(
|
|
6969
6969
|
gi,
|
|
@@ -6983,7 +6983,7 @@ me(
|
|
|
6983
6983
|
var cu = /* @__PURE__ */ z(`<div class="flex flex-col md:flex-row"><div class="flex flex-col md:w-1/2 md:pr-4"><p>Student's answers:</p> <!></div> <div><p>Correct answers:</p> <!></div></div>`);
|
|
6984
6984
|
function Ro(e, t) {
|
|
6985
6985
|
pe(t, !0);
|
|
6986
|
-
let r = x(t, "comparison", 7), n = x(t, "showHeaders", 7, !1), i = x(t, "isMultipleAnswers", 7, !1), a = x(t, "isFirstRow", 7, !1), s = /* @__PURE__ */
|
|
6986
|
+
let r = x(t, "comparison", 7), n = x(t, "showHeaders", 7, !1), i = x(t, "isMultipleAnswers", 7, !1), a = x(t, "isFirstRow", 7, !1), s = /* @__PURE__ */ S(u), l = /* @__PURE__ */ S(c);
|
|
6987
6987
|
function u() {
|
|
6988
6988
|
return !n() || !a() ? "hidden" : "text-base text-charcoal font-semibold";
|
|
6989
6989
|
}
|
|
@@ -7056,7 +7056,7 @@ function Ro(e, t) {
|
|
|
7056
7056
|
}
|
|
7057
7057
|
}), O(g), O(h), te(() => {
|
|
7058
7058
|
le(f, 1, Ie(o(s))), le(g, 1, `flex flex-col md:w-1/2 ml-8.5 md:ml-0 md:pl-4 ${r().isCorrect ? "hidden md:block" : ""}`), le(w, 1, Ie(o(l)));
|
|
7059
|
-
}),
|
|
7059
|
+
}), R(e, h), he(p);
|
|
7060
7060
|
}
|
|
7061
7061
|
me(
|
|
7062
7062
|
Ro,
|
|
@@ -7090,7 +7090,7 @@ function uu(e, t, r, n) {
|
|
|
7090
7090
|
var du = /* @__PURE__ */ z('<div class="feedback-comparison-table" aria-live="off"></div>');
|
|
7091
7091
|
function Oo(e, t) {
|
|
7092
7092
|
pe(t, !0);
|
|
7093
|
-
let r = x(t, "sessionId", 7), n = x(t, "answerResults", 23, () => []), i = x(t, "correctAnswers", 23, () => []), a = x(t, "sessionAnswer", 23, () => []), s = /* @__PURE__ */
|
|
7093
|
+
let r = x(t, "sessionId", 7), n = x(t, "answerResults", 23, () => []), i = x(t, "correctAnswers", 23, () => []), a = x(t, "sessionAnswer", 23, () => []), s = /* @__PURE__ */ S(() => uu(r(), n(), i(), a())), l = /* @__PURE__ */ S(() => o(s).comparisons.length > 1);
|
|
7094
7094
|
var u = {
|
|
7095
7095
|
get sessionId() {
|
|
7096
7096
|
return r();
|
|
@@ -7131,13 +7131,13 @@ function Oo(e, t) {
|
|
|
7131
7131
|
},
|
|
7132
7132
|
isFirstRow: w === 0
|
|
7133
7133
|
});
|
|
7134
|
-
}), O(f),
|
|
7134
|
+
}), O(f), R(d, f);
|
|
7135
7135
|
};
|
|
7136
7136
|
j(p, (d) => {
|
|
7137
7137
|
o(s).comparisons.length > 0 && d(h);
|
|
7138
7138
|
});
|
|
7139
7139
|
}
|
|
7140
|
-
return
|
|
7140
|
+
return R(e, c), he(u);
|
|
7141
7141
|
}
|
|
7142
7142
|
me(
|
|
7143
7143
|
Oo,
|
|
@@ -7155,7 +7155,7 @@ var fu = /* @__PURE__ */ z('<div aria-hidden="true"><!> <span class="p2"> </span
|
|
|
7155
7155
|
function Do(e, t) {
|
|
7156
7156
|
pe(t, !0);
|
|
7157
7157
|
let r = x(t, "config", 7), n = x(t, "feedbackState", 7), i = x(t, "validationDetail", 7), a = x(t, "answers", 7), s = x(t, "isInteractiveMode", 7), l = x(t, "correctAnswersFlat", 7), u = x(t, "sessionAnswersFlat", 7), c = x(t, "answerResults", 7);
|
|
7158
|
-
const p = /* @__PURE__ */
|
|
7158
|
+
const p = /* @__PURE__ */ S(() => n().showStatusLine && r().variant !== "inline"), h = /* @__PURE__ */ S(() => n().isFeedbackShown && !n().isSkipped), d = /* @__PURE__ */ S(() => n().showComparisonTable && r().variant === "inline"), f = /* @__PURE__ */ S(() => s() && r().variant === "inline" ? "info" : "result");
|
|
7159
7159
|
let m = /* @__PURE__ */ V(!1);
|
|
7160
7160
|
Te(() => {
|
|
7161
7161
|
if (o(d)) {
|
|
@@ -7224,7 +7224,7 @@ function Do(e, t) {
|
|
|
7224
7224
|
var _ = (y) => {
|
|
7225
7225
|
var M = fu(), E = D(M);
|
|
7226
7226
|
{
|
|
7227
|
-
let L = /* @__PURE__ */
|
|
7227
|
+
let L = /* @__PURE__ */ S(() => n().isResultCorrect ? "text-green-800" : "text-red-800");
|
|
7228
7228
|
un(E, {
|
|
7229
7229
|
get isCorrect() {
|
|
7230
7230
|
return n().isResultCorrect;
|
|
@@ -7237,7 +7237,7 @@ function Do(e, t) {
|
|
|
7237
7237
|
var W = Q(E, 2), $ = D(W, !0);
|
|
7238
7238
|
O(W), O(M), te(() => {
|
|
7239
7239
|
le(M, 1, `flex items-center text-charcoal ${r().variant === "short" ? "mt-2" : "mt-0.5"}`), dt($, n().isResultCorrect ? "Correct" : "Incorrect");
|
|
7240
|
-
}),
|
|
7240
|
+
}), R(y, M);
|
|
7241
7241
|
};
|
|
7242
7242
|
j(k, (y) => {
|
|
7243
7243
|
o(p) && y(_);
|
|
@@ -7248,7 +7248,7 @@ function Do(e, t) {
|
|
|
7248
7248
|
var v = (y) => {
|
|
7249
7249
|
var M = pu(), E = D(M);
|
|
7250
7250
|
{
|
|
7251
|
-
let W = /* @__PURE__ */
|
|
7251
|
+
let W = /* @__PURE__ */ S(() => n().isResultCorrect ? "correct" : n().isSkipped ? "skipped" : "incorrect"), $ = /* @__PURE__ */ S(() => r().variant === "inline"), L = /* @__PURE__ */ S(() => !s());
|
|
7252
7252
|
Ni(E, {
|
|
7253
7253
|
get type() {
|
|
7254
7254
|
return o(W);
|
|
@@ -7268,17 +7268,17 @@ function Do(e, t) {
|
|
|
7268
7268
|
iconProps: "h-6 w-6 flex items-center pt-0.5 mr-2"
|
|
7269
7269
|
});
|
|
7270
7270
|
}
|
|
7271
|
-
O(M),
|
|
7271
|
+
O(M), R(y, M);
|
|
7272
7272
|
};
|
|
7273
7273
|
j(C, (y) => {
|
|
7274
7274
|
o(h) && y(v);
|
|
7275
7275
|
});
|
|
7276
7276
|
}
|
|
7277
|
-
var
|
|
7277
|
+
var A = Q(C, 2);
|
|
7278
7278
|
{
|
|
7279
|
-
var
|
|
7279
|
+
var N = (y) => {
|
|
7280
7280
|
{
|
|
7281
|
-
let M = /* @__PURE__ */
|
|
7281
|
+
let M = /* @__PURE__ */ S(() => r().rubric?.text || "typein");
|
|
7282
7282
|
Oo(y, {
|
|
7283
7283
|
get sessionId() {
|
|
7284
7284
|
return o(M);
|
|
@@ -7295,11 +7295,11 @@ function Do(e, t) {
|
|
|
7295
7295
|
});
|
|
7296
7296
|
}
|
|
7297
7297
|
};
|
|
7298
|
-
j(
|
|
7299
|
-
o(m) && y(
|
|
7298
|
+
j(A, (y) => {
|
|
7299
|
+
o(m) && y(N);
|
|
7300
7300
|
});
|
|
7301
7301
|
}
|
|
7302
|
-
return
|
|
7302
|
+
return R(e, w), he(g);
|
|
7303
7303
|
}
|
|
7304
7304
|
me(
|
|
7305
7305
|
Do,
|
|
@@ -7323,7 +7323,7 @@ function Fo(e, t) {
|
|
|
7323
7323
|
let r = x(t, "api", 7), n = x(t, "config", 7), i = x(t, "isDataSaving", 7, !1), a = x(t, "onstateChange", 7);
|
|
7324
7324
|
const s = r().hasExistingState?.() ? r().restoreState?.() : r().createInitialState?.();
|
|
7325
7325
|
if (!s?.data) throw new Error("Failed to initialize TypeIn state");
|
|
7326
|
-
let l = /* @__PURE__ */ V(lt(s)), u = /* @__PURE__ */
|
|
7326
|
+
let l = /* @__PURE__ */ V(lt(s)), u = /* @__PURE__ */ S(() => Mo(o(l), n())), c = /* @__PURE__ */ S(() => o(u).answers), p = /* @__PURE__ */ S(() => o(u).mode), h = /* @__PURE__ */ S(() => o(p) === fe.INTERACTIVE), d = /* @__PURE__ */ V("");
|
|
7327
7327
|
Te(() => {
|
|
7328
7328
|
o(d) === "" && I(
|
|
7329
7329
|
d,
|
|
@@ -7342,7 +7342,7 @@ function Fo(e, t) {
|
|
|
7342
7342
|
detail: Array.isArray(P.detail) ? P.detail : o(c).map(() => !1)
|
|
7343
7343
|
};
|
|
7344
7344
|
};
|
|
7345
|
-
let w = /* @__PURE__ */
|
|
7345
|
+
let w = /* @__PURE__ */ S(() => Gc(o(l), n(), g)), k = /* @__PURE__ */ V(""), _ = /* @__PURE__ */ V(lt([])), C = /* @__PURE__ */ V(!1);
|
|
7346
7346
|
Te(() => {
|
|
7347
7347
|
o(C) || I(k, o(l).data.userInput || "", !0);
|
|
7348
7348
|
}), Te(() => {
|
|
@@ -7365,8 +7365,10 @@ function Fo(e, t) {
|
|
|
7365
7365
|
}
|
|
7366
7366
|
},
|
|
7367
7367
|
!0
|
|
7368
|
-
),
|
|
7369
|
-
},
|
|
7368
|
+
), N(), I(C, !1);
|
|
7369
|
+
}, A = (L) => {
|
|
7370
|
+
if (n().isFinished)
|
|
7371
|
+
return;
|
|
7370
7372
|
I(C, !0);
|
|
7371
7373
|
const P = o(_)[L] || "";
|
|
7372
7374
|
I(l, r().updateInlineInput?.(o(l), L, P) || o(l), !0);
|
|
@@ -7417,9 +7419,9 @@ function Fo(e, t) {
|
|
|
7417
7419
|
}
|
|
7418
7420
|
},
|
|
7419
7421
|
!0
|
|
7420
|
-
),
|
|
7422
|
+
), N(), I(C, !1);
|
|
7421
7423
|
};
|
|
7422
|
-
function
|
|
7424
|
+
function N() {
|
|
7423
7425
|
r().onStateChange?.(o(l)), a()?.(new CustomEvent("stateChange", {
|
|
7424
7426
|
detail: {
|
|
7425
7427
|
state: o(l),
|
|
@@ -7427,7 +7429,7 @@ function Fo(e, t) {
|
|
|
7427
7429
|
}
|
|
7428
7430
|
}));
|
|
7429
7431
|
}
|
|
7430
|
-
const y = /* @__PURE__ */
|
|
7432
|
+
const y = /* @__PURE__ */ S(() => (() => {
|
|
7431
7433
|
if (r().validate) {
|
|
7432
7434
|
const L = { answer: o(c), timestamp: Date.now() }, P = r().validate(L);
|
|
7433
7435
|
return {
|
|
@@ -7435,9 +7437,9 @@ function Fo(e, t) {
|
|
|
7435
7437
|
};
|
|
7436
7438
|
}
|
|
7437
7439
|
return { detail: o(c).map(() => !1) };
|
|
7438
|
-
})()), M = /* @__PURE__ */
|
|
7440
|
+
})()), M = /* @__PURE__ */ S(() => o(w).showStatusLine ? n().variant === "inline" ? o(y).detail.map((L, P) => L ? "correct" : (o(c)[P] && o(c)[P].trim(), "")) : [
|
|
7439
7441
|
o(w).isResultCorrect ? "correct" : (o(c)[0] && o(c)[0].trim(), "")
|
|
7440
|
-
] : []), E = /* @__PURE__ */
|
|
7442
|
+
] : []), E = /* @__PURE__ */ S(() => n().correctAnswers.map((L) => Array.isArray(L) ? L[0] : L)), W = /* @__PURE__ */ S(() => o(c));
|
|
7441
7443
|
var $ = {
|
|
7442
7444
|
get api() {
|
|
7443
7445
|
return r();
|
|
@@ -7473,7 +7475,7 @@ function Fo(e, t) {
|
|
|
7473
7475
|
{
|
|
7474
7476
|
var ge = (ve) => {
|
|
7475
7477
|
var we = mu();
|
|
7476
|
-
|
|
7478
|
+
R(ve, we);
|
|
7477
7479
|
};
|
|
7478
7480
|
j(_e, (ve) => {
|
|
7479
7481
|
i() && ve(ge);
|
|
@@ -7485,19 +7487,19 @@ function Fo(e, t) {
|
|
|
7485
7487
|
{
|
|
7486
7488
|
var tt = (Ce) => {
|
|
7487
7489
|
var rt = xe(), pt = ce(rt);
|
|
7488
|
-
eo(pt, () => o(we).content),
|
|
7490
|
+
eo(pt, () => o(we).content), R(Ce, rt);
|
|
7489
7491
|
}, Ne = (Ce) => {
|
|
7490
7492
|
var rt = xe(), pt = ce(rt);
|
|
7491
7493
|
{
|
|
7492
7494
|
var rr = (Ze) => {
|
|
7493
|
-
const Ot = /* @__PURE__ */
|
|
7495
|
+
const Ot = /* @__PURE__ */ S(() => m(B));
|
|
7494
7496
|
{
|
|
7495
|
-
let jr = /* @__PURE__ */
|
|
7497
|
+
let jr = /* @__PURE__ */ S(() => o(w).showStatusLine ? o(y).detail[o(we).index] : null);
|
|
7496
7498
|
Lo(Ze, {
|
|
7497
7499
|
get index() {
|
|
7498
7500
|
return o(we).index;
|
|
7499
7501
|
},
|
|
7500
|
-
onBlur:
|
|
7502
|
+
onBlur: A,
|
|
7501
7503
|
get readonly() {
|
|
7502
7504
|
return n().isFinished;
|
|
7503
7505
|
},
|
|
@@ -7530,17 +7532,17 @@ function Fo(e, t) {
|
|
|
7530
7532
|
!0
|
|
7531
7533
|
);
|
|
7532
7534
|
}
|
|
7533
|
-
|
|
7535
|
+
R(Ce, rt);
|
|
7534
7536
|
};
|
|
7535
7537
|
j(be, (Ce) => {
|
|
7536
7538
|
o(we).type === "text" ? Ce(tt) : Ce(Ne, !1);
|
|
7537
7539
|
});
|
|
7538
7540
|
}
|
|
7539
|
-
|
|
7540
|
-
}), O(q), O(ne), Ln(2),
|
|
7541
|
+
R(ve, G);
|
|
7542
|
+
}), O(q), O(ne), Ln(2), R(ye, U);
|
|
7541
7543
|
}, oe = (ye) => {
|
|
7542
7544
|
{
|
|
7543
|
-
let U = /* @__PURE__ */
|
|
7545
|
+
let U = /* @__PURE__ */ S(() => o(w).showStatusLine ? o(y).detail[0] : null);
|
|
7544
7546
|
No(ye, {
|
|
7545
7547
|
get variant() {
|
|
7546
7548
|
return n().variant;
|
|
@@ -7574,7 +7576,7 @@ function Fo(e, t) {
|
|
|
7574
7576
|
n().variant === "inline" ? ye(X) : ye(oe, !1);
|
|
7575
7577
|
});
|
|
7576
7578
|
}
|
|
7577
|
-
|
|
7579
|
+
R(F, Y);
|
|
7578
7580
|
}, P = (F) => {
|
|
7579
7581
|
Do(F, {
|
|
7580
7582
|
get config() {
|
|
@@ -7603,7 +7605,7 @@ function Fo(e, t) {
|
|
|
7603
7605
|
}
|
|
7604
7606
|
});
|
|
7605
7607
|
};
|
|
7606
|
-
let re = /* @__PURE__ */
|
|
7608
|
+
let re = /* @__PURE__ */ S(() => n().rubric?.text || ""), ae = /* @__PURE__ */ S(() => n().prompt || ""), H = /* @__PURE__ */ S(() => n().variant !== "inline");
|
|
7607
7609
|
Fi(e, {
|
|
7608
7610
|
get rubric() {
|
|
7609
7611
|
return o(re);
|
|
@@ -7654,9 +7656,9 @@ const vu = (e, t) => {
|
|
|
7654
7656
|
for (const w of g)
|
|
7655
7657
|
if (typeof w == "string") {
|
|
7656
7658
|
if (/[\[\]\(\)]/.test(w)) {
|
|
7657
|
-
let k = w.replace(/(\[|\()([^\]\)]+)(\]|\))/g, (_, C, v,
|
|
7658
|
-
const
|
|
7659
|
-
return `${C}${
|
|
7659
|
+
let k = w.replace(/(\[|\()([^\]\)]+)(\]|\))/g, (_, C, v, A) => {
|
|
7660
|
+
const N = v.split("|").map((y) => s(y));
|
|
7661
|
+
return `${C}${N.join("|")}${A}`;
|
|
7660
7662
|
});
|
|
7661
7663
|
if (k = k.replace(/([^\[\]\(\)]+)/g, (_) => _.includes("|") ? _ : u(_)), l(m, k)) return !0;
|
|
7662
7664
|
} else if (s(w) === m) return !0;
|
|
@@ -7665,26 +7667,27 @@ const vu = (e, t) => {
|
|
|
7665
7667
|
}, p = (d) => {
|
|
7666
7668
|
const f = e.correctAnswers || [], m = d || [];
|
|
7667
7669
|
if (e.variant === "long") {
|
|
7668
|
-
const
|
|
7670
|
+
const N = m[0] || "", y = c(N, f);
|
|
7669
7671
|
return {
|
|
7670
|
-
isValid:
|
|
7671
|
-
score:
|
|
7672
|
+
isValid: y,
|
|
7673
|
+
score: y ? 1 : 0,
|
|
7672
7674
|
maxScore: 1,
|
|
7673
7675
|
feedback: "",
|
|
7674
|
-
detail: [
|
|
7676
|
+
detail: [y]
|
|
7675
7677
|
};
|
|
7676
7678
|
}
|
|
7677
7679
|
const g = [];
|
|
7678
7680
|
let w = 0;
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7681
|
+
const k = e.variant === "inline" ? f.length : m.length;
|
|
7682
|
+
for (let N = 0; N < k; N++) {
|
|
7683
|
+
const y = m[N] ?? "", M = s(y), E = (f[N] || []).map(($) => s($)).filter(Boolean), W = M.length > 0 && E.includes(M);
|
|
7684
|
+
g[N] = W, W && w++;
|
|
7685
|
+
}
|
|
7686
|
+
const _ = m.some((N) => s(N).length > 0), C = g.length > 0 ? g.every(Boolean) && _ : _ && w > 0, v = f.length > 0 ? f.length : g.length || 1;
|
|
7684
7687
|
return {
|
|
7685
|
-
isValid:
|
|
7688
|
+
isValid: C,
|
|
7686
7689
|
score: w,
|
|
7687
|
-
maxScore:
|
|
7690
|
+
maxScore: v,
|
|
7688
7691
|
feedback: "",
|
|
7689
7692
|
detail: g
|
|
7690
7693
|
};
|
|
@@ -7825,9 +7828,9 @@ const _u = {
|
|
|
7825
7828
|
};
|
|
7826
7829
|
function Cu(e, t) {
|
|
7827
7830
|
pe(t, !0), Vs(e, _u);
|
|
7828
|
-
let r = x(t, "session-id", 7), n = x(t, "item-id", 7), i = x(t, "interactive-mode", 7), a = x(t, "preview-mode", 7), s = /* @__PURE__ */ V(null), l = /* @__PURE__ */ V(null), u = /* @__PURE__ */ V(!0), c = /* @__PURE__ */ V(null), p = /* @__PURE__ */ V(null), h = /* @__PURE__ */ V(null), d = /* @__PURE__ */ V(!1), f = /* @__PURE__ */
|
|
7831
|
+
let r = x(t, "session-id", 7), n = x(t, "item-id", 7), i = x(t, "interactive-mode", 7), a = x(t, "preview-mode", 7), s = /* @__PURE__ */ V(null), l = /* @__PURE__ */ V(null), u = /* @__PURE__ */ V(!0), c = /* @__PURE__ */ V(null), p = /* @__PURE__ */ V(null), h = /* @__PURE__ */ V(null), d = /* @__PURE__ */ V(!1), f = /* @__PURE__ */ S(() => i() === !0 ? fe.INTERACTIVE : a() === !0 ? fe.PREVIEW : fe.SESSION);
|
|
7829
7832
|
vl();
|
|
7830
|
-
let m = /* @__PURE__ */
|
|
7833
|
+
let m = /* @__PURE__ */ S(() => Vr(Li) ? "?skip_user_validation=true" : "");
|
|
7831
7834
|
Te(() => {
|
|
7832
7835
|
if (o(f) === fe.SESSION && !r()) {
|
|
7833
7836
|
I(c, "No session ID provided for session mode"), I(u, !1);
|
|
@@ -7911,11 +7914,11 @@ function Cu(e, t) {
|
|
|
7911
7914
|
}, v = xe();
|
|
7912
7915
|
Ns((M) => {
|
|
7913
7916
|
var E = yu();
|
|
7914
|
-
Ln(4),
|
|
7917
|
+
Ln(4), R(M, E);
|
|
7915
7918
|
});
|
|
7916
|
-
var
|
|
7919
|
+
var A = ce(v);
|
|
7917
7920
|
{
|
|
7918
|
-
var
|
|
7921
|
+
var N = (M) => {
|
|
7919
7922
|
go(M);
|
|
7920
7923
|
}, y = (M) => {
|
|
7921
7924
|
var E = xe(), W = ce(E);
|
|
@@ -7944,7 +7947,7 @@ function Cu(e, t) {
|
|
|
7944
7947
|
},
|
|
7945
7948
|
onstateChange: _
|
|
7946
7949
|
});
|
|
7947
|
-
}),
|
|
7950
|
+
}), R(Y, Z);
|
|
7948
7951
|
}, F = (Y) => {
|
|
7949
7952
|
di(Y, { bannerLabel: "Unable to load interaction" });
|
|
7950
7953
|
};
|
|
@@ -7956,7 +7959,7 @@ function Cu(e, t) {
|
|
|
7956
7959
|
!0
|
|
7957
7960
|
);
|
|
7958
7961
|
}
|
|
7959
|
-
|
|
7962
|
+
R(P, re);
|
|
7960
7963
|
};
|
|
7961
7964
|
j(
|
|
7962
7965
|
W,
|
|
@@ -7966,13 +7969,13 @@ function Cu(e, t) {
|
|
|
7966
7969
|
!0
|
|
7967
7970
|
);
|
|
7968
7971
|
}
|
|
7969
|
-
|
|
7972
|
+
R(M, E);
|
|
7970
7973
|
};
|
|
7971
|
-
j(
|
|
7972
|
-
o(u) ? M(
|
|
7974
|
+
j(A, (M) => {
|
|
7975
|
+
o(u) ? M(N) : M(y, !1);
|
|
7973
7976
|
});
|
|
7974
7977
|
}
|
|
7975
|
-
return
|
|
7978
|
+
return R(e, v), he(C);
|
|
7976
7979
|
}
|
|
7977
7980
|
customElements.define("interaction-builder", me(
|
|
7978
7981
|
Cu,
|