@pie-element/ebsr 15.0.5 → 15.0.6-next.20261015154938
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/browser/author/index.js +2 -2
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/delivery/index.js +3 -3
- package/dist/browser/{delivery-CixOzAQF.js → delivery-DM3qyxDZ.js} +2 -2
- package/dist/browser/{delivery-CixOzAQF.js.map → delivery-DM3qyxDZ.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +2 -2
- package/dist/browser/editor-runtime/controller/index.js +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +3 -3
- package/dist/browser/editor-runtime/{delivery-7mZ5Q_Zm.js → delivery-CI5tMNOF.js} +2 -2
- package/dist/browser/editor-runtime/{delivery-7mZ5Q_Zm.js.map → delivery-CI5tMNOF.js.map} +1 -1
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-CqS-aGtV.js → mathjax-CptWnMbQ-DWankXZ8.js} +2 -2
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-CqS-aGtV.js.map → mathjax-CptWnMbQ-DWankXZ8.js.map} +1 -1
- package/dist/browser/editor-runtime/print/index.js +3 -3
- package/dist/browser/editor-runtime/{private-tags-C-DNQiLI.js → private-tags-B69J0LRf.js} +3 -3
- package/dist/browser/editor-runtime/{private-tags-C-DNQiLI.js.map → private-tags-B69J0LRf.js.map} +1 -1
- package/dist/browser/{mathjax-CptWnMbQ-Y6tlgx6e.js → mathjax-CptWnMbQ-Cg6ms2GP.js} +2 -2
- package/dist/browser/{mathjax-CptWnMbQ-Y6tlgx6e.js.map → mathjax-CptWnMbQ-Cg6ms2GP.js.map} +1 -1
- package/dist/browser/print/index.js +3 -3
- package/dist/browser/{private-tags-BysQnObj.js → private-tags-DAEdgadw.js} +3 -3
- package/dist/browser/{private-tags-BysQnObj.js.map → private-tags-DAEdgadw.js.map} +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/private-tags.js +1 -1
- package/dist/schemas/configuration.schema.json +1 -1
- package/dist/schemas/model.schema.json +1 -1
- package/dist/schemas/session.schema.json +1 -1
- package/module/print.js +1 -1
- package/module/print.js.map +1 -1
- package/package.json +11 -11
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
(document.head || document.documentElement).appendChild(style);
|
|
17
17
|
}
|
|
18
18
|
})([["cb0f0518b022d739", (url) => "@font-face{font-family:Symbola;src:local(Symbola Regular),local(Symbola),url(\"" + url(() => new URL("../assets/Symbola-4c507403.woff2", import.meta.url)) + "\")format(\"woff2\")}.mq-editable-field{display:inline-block}.mq-editable-field .mq-cursor{z-index:1;border-left:1px solid #000;margin-left:-1px;padding:0;display:inline-block;position:relative}.mq-editable-field .mq-cursor.mq-blink{visibility:hidden}.mq-editable-field,.mq-math-mode .mq-editable-field{border:1px solid gray}.mq-editable-field.mq-focused,.mq-math-mode .mq-editable-field.mq-focused{border-color:#709ac0;border-radius:1px;box-shadow:0 0 1px 2px #8bd,inset 0 0 2px #6ae}.mq-math-mode .mq-editable-field{margin:1px}.mq-editable-field .mq-latex-command-input{color:inherit;border:1px solid gray;margin-left:2px;margin-right:1px;padding-right:1px;font-family:Courier New,monospace}.mq-editable-field .mq-latex-command-input.mq-empty{background:0 0}.mq-editable-field .mq-latex-command-input.mq-hasCursor{border-color:activeborder}.mq-editable-field.mq-empty:after,.mq-editable-field.mq-text-mode:after,.mq-math-mode .mq-empty:after,.mq-editable-field .mq-cursor:only-child:after,.mq-editable-field .mq-textarea+.mq-cursor:last-child:after{visibility:hidden;content:\"c\"}.mq-editable-field .mq-text-mode .mq-cursor:only-child:after{content:\"\"}.mq-editable-field.mq-text-mode{overflow:auto hidden}.mq-root-block,.mq-math-mode .mq-root-block{box-sizing:border-box;white-space:nowrap;vertical-align:middle;width:100%;padding:2px;display:inline-block;overflow:hidden}.mq-math-mode{font-variant:normal;font-size:115%;font-style:normal;font-weight:400;line-height:1;display:inline-block}.mq-math-mode .mq-non-leaf,.mq-math-mode .mq-scaled{display:inline-block}.mq-math-mode var,.mq-math-mode .mq-text-mode,.mq-math-mode .mq-nonSymbola{font-family:Times New Roman,Symbola,serif;line-height:.9}.mq-math-mode *{font-size:inherit;line-height:inherit;-webkit-user-select:none;user-select:none;box-sizing:border-box;border-color:#000;margin:0;padding:0}.mq-math-mode .mq-empty,.mq-math-mode.mq-empty{background:0 0}.mq-math-mode .mq-text-mode{white-space:pre;display:inline-block}.mq-math-mode .mq-text-mode.mq-hasCursor{min-width:1ex;margin:0 -.1em;padding:0 .1em;box-shadow:inset 0 .1em .2em #a9a9a9}.mq-math-mode .mq-font{font:1em Times New Roman,Symbola,serif}.mq-math-mode .mq-font *{font-family:inherit;font-style:inherit}.mq-math-mode b,.mq-math-mode b.mq-font{font-weight:bolder}.mq-math-mode var,.mq-math-mode i,.mq-math-mode i.mq-font{font-style:italic}.mq-math-mode var.mq-f{margin-left:.1em;margin-right:.2em}.mq-math-mode .mq-roman var.mq-f{margin:0}.mq-math-mode big{font-size:200%}.mq-math-mode .mq-int>big{vertical-align:-.16em;display:inline-block;transform:scaleX(.7)}.mq-math-mode .mq-int>.mq-supsub{vertical-align:-1.1em;padding-right:.2em;font-size:80%}.mq-math-mode .mq-int>.mq-supsub>.mq-sup>.mq-sup-inner{vertical-align:1.3em}.mq-math-mode .mq-int>.mq-supsub>.mq-sub{margin-left:-.35em}.mq-math-mode .mq-roman{font-style:normal}.mq-math-mode .mq-sans-serif{font-family:sans-serif,Symbola,serif}.mq-math-mode .mq-monospace{font-family:monospace,Symbola,serif}.mq-math-mode .mq-overleftrightarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overline .mq-overline-inner{text-align:center;border-top:.14em solid #4d4d4d;margin-left:.1em;padding-top:.2em;padding-right:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-right,.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-left{display:none}.mq-math-mode .mq-longdiv{padding-top:.2em}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border{border-top-right-radius:100em;border-bottom-right-radius:100em;width:2px;max-width:2px;margin-right:-.12em;padding-top:.2em;font-size:1.4em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner{text-align:center;border-top:1px solid gray;border-radius:0 0 0 10px;min-width:1em;margin-left:-.2em;margin-right:.15em;padding-top:.19em;padding-left:.44em;font-size:1em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner .mq-empty{min-width:1.5em;display:inline-block}.mq-math-mode .mq-underline{border-bottom:1px solid #000;margin-bottom:1px}.mq-math-mode .mq-underline.mq-empty{min-width:1em}.mq-math-mode .mq-overarc{-moz-border-radius-topright:50% .3em;-moz-border-radius-topleft:50% .3em;border-top:1px solid #000;border-top-left-radius:50% .3em;border-top-right-radius:50% .3em;margin-top:1px;padding-top:.15em}.mq-math-mode .mq-overarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:none;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-right{display:none}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-left{display:block}.mq-math-mode .mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-math-mode .mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-math-mode .mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-xarrow{text-align:center;vertical-align:.9em;padding:0 .2em;font-size:70%;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-over{border-bottom:1px solid #000;padding:.1em .1em .2em;display:block;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-under{float:left;margin-bottom:.2em;padding:0 .1em .2em;position:relative;top:.2em}.mq-math-mode .mq-xarrow .mq-xarrow-over:before{content:\"➤\";height:1em;font-size:.6em;display:block;position:absolute;bottom:-.62em;right:-.3em}.mq-math-mode .mq-xarrow.mq-arrow-left .mq-xarrow-over:before{filter:FlipH;-ms-filter:\"FlipH\";left:-.3em;right:auto;transform:scaleX(-1)}.mq-math-mode .mq-binary-operator{padding:0 .2em;display:inline-block}.mq-math-mode .mq-supsub{text-align:left;vertical-align:-.5em;font-size:90%}.mq-math-mode .mq-supsub.mq-sup-only{vertical-align:.5em}.mq-math-mode .mq-supsub.mq-sup-only .mq-sup{vertical-align:text-bottom;display:inline-block}.mq-math-mode .mq-supsub .mq-sup{display:block}.mq-math-mode .mq-supsub .mq-sub{float:left;display:block}.mq-math-mode .mq-supsub .mq-binary-operator{padding:0 .1em}.mq-math-mode .mq-supsub .mq-fraction{font-size:70%}.mq-math-mode sup.mq-nthroot{vertical-align:.8em;min-width:.5em;margin-left:.2em;margin-right:-.6em;font-size:80%}.mq-math-mode .mq-paren{vertical-align:top;transform-origin:50% .06em;padding:0 .1em}.mq-math-mode .mq-paren.mq-ghost{color:silver}.mq-math-mode .mq-paren+span{margin-top:.1em;margin-bottom:.1em}.mq-math-mode .mq-array{vertical-align:middle;text-align:center}.mq-math-mode .mq-array>span{display:block}.mq-math-mode .mq-operator-name{font-family:Symbola,Times New Roman,serif;font-style:normal;line-height:.9}.mq-math-mode var.mq-operator-name.mq-first{padding-left:.2em}.mq-math-mode var.mq-operator-name.mq-last,.mq-math-mode .mq-supsub.mq-after-operator-name{padding-right:.2em}.mq-math-mode .mq-fraction{text-align:center;vertical-align:-.4em;padding:0 .2em;font-size:90%}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator{display:-moz-groupbox}.mq-math-mode x:-moz-any-link{display:-moz-groupbox}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator,.mq-math-mode x:default{display:inline-block}.mq-math-mode x:-moz-any-link{display:inline-block}.mq-math-mode .mq-underset.mq-tilde-vector .mq-under{line-height:.6em}.mq-math-mode .mq-numerator,.mq-math-mode .mq-denominator,.mq-math-mode .mq-dot-recurring,.mq-math-mode .mq-over,.mq-math-mode .mq-under{display:block}.mq-math-mode .mq-numerator,.mq-math-mode .mq-over{margin-bottom:.2em;padding:0 .1em}.mq-math-mode .mq-denominator{float:right;border-top:1px solid;width:100%;padding:.3em .1em .1em}.mq-math-mode .mq-dot-recurring{text-align:center;height:.6em}.mq-math-mode .mq-overunder{text-align:center;position:relative;top:.01em}.mq-math-mode .mq-overunder .mq-font{font-family:inherit}.mq-math-mode .mq-overunder.mq-underset{vertical-align:text-top}.mq-math-mode .mq-overunder.mq-underset .mq-under,.mq-math-mode .mq-overunder.mq-overset .mq-over{font-size:.7em;display:block}.mq-math-mode .mq-sqrt-prefix{vertical-align:top;transform-origin:top;padding-top:0;position:relative;top:.1em}.mq-math-mode .mq-sqrt-stem{border-top:1px solid;margin-top:1px;margin-right:.1em;padding-top:1px;padding-left:.15em;padding-right:.2em}.mq-math-mode .mq-diacritic-above{text-align:center;line-height:.4em;display:block}.mq-math-mode .mq-diacritic-stem{text-align:center;display:block}.mq-math-mode .mq-hat-prefix{text-align:center;margin-bottom:-.7em;line-height:.95em;display:block;transform:scaleX(1.5)}.mq-math-mode .mq-hat-stem{display:block}.mq-math-mode .mq-large-operator{vertical-align:-.2em;text-align:center;vertical-align:middle;padding:.2em}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator big,.mq-math-mode .mq-large-operator .mq-to{display:block}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator .mq-to{font-size:80%}.mq-math-mode .mq-large-operator .mq-from{float:right;width:100%}.mq-math-mode .mq-lim{text-align:center}.mq-math-mode .mq-lim span{display:block}.mq-math-mode .mq-lim .mq-approaches{float:right;width:100%;font-size:80%}.mq-math-mode .mq-lim .mq-approaches span>span{display:inline}.mq-math-mode .mq-matrix{vertical-align:middle;margin-left:.1em;margin-right:.1em}.mq-math-mode .mq-matrix table{border-spacing:3px;border-collapse:separate;border-bottom:none;width:auto}.mq-math-mode .mq-matrix table.mq-rows-1{vertical-align:middle;margin-bottom:1px}.mq-math-mode .mq-matrix td{vertical-align:baseline;border:1px dotted #fff;width:auto;padding:.1em .3em}.mq-math-mode .mq-matrix td.mq-empty{border:1px dotted #000}.mq-math-mode .mq-abs{border-left:1px solid #000;border-right:1px solid #000;margin-left:.1em;margin-right:.1em;padding-left:.2em;padding-right:.2em}.mq-math-mode .mq-lrnplaceholder{margin-left:.05em;margin-right:.05em}.mq-math-mode .mq-parallelogram{margin-top:-.5em;line-height:1em;position:relative;overflow:hidden}.mq-math-mode .mq-parallelogram .mq-parallelogram-inner{font-size:2em;position:relative;top:.23em}.mq-math-mode,.mq-math-mode .mq-editable-field{cursor:text;font-family:Symbola,Times New Roman,serif}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border,.mq-math-mode .mq-editable-field .mq-longdiv .mq-longdiv-curve-border{font-size:1.33em}.mq-overarrow{text-align:center;border-top:1px solid #000;min-width:.5em;margin-top:1px;padding-top:.2em}.mq-overarrow:before{content:\"➤\";text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-.34em}.mq-overarrow.mq-arrow-left:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-selection,.mq-editable-field .mq-selection,.mq-math-mode .mq-selection .mq-non-leaf,.mq-editable-field .mq-selection .mq-non-leaf,.mq-math-mode .mq-selection .mq-scaled,.mq-editable-field .mq-selection .mq-scaled{color:highlighttext;border-color:highlighttext;background:highlight!important}.mq-math-mode .mq-selection .mq-matrixed,.mq-editable-field .mq-selection .mq-matrixed{background:#39f!important}.mq-math-mode .mq-selection .mq-matrixed-container,.mq-editable-field .mq-selection .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#3399FF\")!important}.mq-math-mode .mq-selection.mq-blur,.mq-editable-field .mq-selection.mq-blur,.mq-math-mode .mq-selection.mq-blur .mq-non-leaf,.mq-editable-field .mq-selection.mq-blur .mq-non-leaf,.mq-math-mode .mq-selection.mq-blur .mq-scaled,.mq-editable-field .mq-selection.mq-blur .mq-scaled,.mq-math-mode .mq-selection.mq-blur .mq-matrixed,.mq-editable-field .mq-selection.mq-blur .mq-matrixed{color:#000;border-color:#000;background:#d4d4d4!important}.mq-math-mode .mq-selection.mq-blur .mq-matrixed-container,.mq-editable-field .mq-selection.mq-blur .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#D4D4D4\")!important}.mq-editable-field .mq-textarea,.mq-math-mode .mq-textarea{-webkit-user-select:text;user-select:text;position:relative}.mq-editable-field .mq-textarea>textarea,.mq-math-mode .mq-textarea>textarea{opacity:0;overflow:hidden}.mq-editable-field .mq-textarea *,.mq-math-mode .mq-textarea *,.mq-editable-field .mq-selectable,.mq-math-mode .mq-selectable{-webkit-user-select:text;user-select:text;clip:rect(1em 1em 1em 1em);resize:none;box-sizing:content-box;width:1px;height:1px;position:absolute;transform:scale(0)}.mq-math-mode .mq-matrixed{background:#fff;display:inline-block}.mq-math-mode .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"white\");margin-top:-.1em}.mq-math-mode .mq-matrix table{border-spacing:2px}button .mq-math-mode .mq-matrix table.mq-rows-2 td,button .mq-math-mode .mq-matrix table.mq-rows-3 td{width:.9em;font-size:.3em}button .mq-math-mode .mq-matrix table.mq-rows-2{margin-bottom:-2px}button .mq-math-mode .mq-matrix table.mq-rows-1{margin-bottom:3px}button .mq-math-mode .mq-matrix table.mq-rows-1 td{width:1.1em;margin-bottom:3px;font-size:.6em}button .mq-math-mode .mq-matrix .matrix-edit-content-row{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-row p{font-size:.7em}button .mq-math-mode .mq-matrix .matrix-edit-content-col{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-col p{padding:0 .15em;font-size:.7em}button .mq-math-mode .mq-matrix .mq-paren{padding:0;display:inline-block;transform:scale(1.13,1.77)}button .matrix-edit .mq-empty{width:.8em;margin:.1em;padding:.1em;font-size:.4em}\n"]]);
|
|
19
|
-
import { $ as e, A as t, At as n, Bt as r, C as i, Ct as a, D as o, Dt as s, F as c, Ft as l, G as u, Gt as d, H as f, Ht as p, I as m, It as h, J as g, Jt as _, K as v, Kt as y, Lt as b, M as x, Mt as S, Nt as C, O as w, Ot as T, P as E, Pt as D, Q as O, Qt as k, Rt as A, S as j, St as M, T as ee, U as te, Ut as ne, Vt as re, W as N, Wt as ie, X as ae, Xt as oe, Y as se, Yt as ce, Z as P, Zt as le, _t as ue, a as de, at as F, b as fe, bt as pe, c as me, ct as he, d as ge, dt as _e, et as ve, f as ye, ft as I, gt as be, ht as xe, i as Se, it as Ce, j as we, jt as Te, k as Ee, kt as De, l as Oe, lt as ke, m as Ae, mt as je, nt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, q as Le, qt as Re, r as ze, rt as Be, s as Ve, st as He, t as Ue, tt as We, u as Ge, ut as Ke, vt as qe, w as Je, x as Ye, xt as Xe, y as Ze, yt as Qe, zt as $e } from "../private-tags-
|
|
19
|
+
import { $ as e, A as t, At as n, Bt as r, C as i, Ct as a, D as o, Dt as s, F as c, Ft as l, G as u, Gt as d, H as f, Ht as p, I as m, It as h, J as g, Jt as _, K as v, Kt as y, Lt as b, M as x, Mt as S, Nt as C, O as w, Ot as T, P as E, Pt as D, Q as O, Qt as k, Rt as A, S as j, St as M, T as ee, U as te, Ut as ne, Vt as re, W as N, Wt as ie, X as ae, Xt as oe, Y as se, Yt as ce, Z as P, Zt as le, _t as ue, a as de, at as F, b as fe, bt as pe, c as me, ct as he, d as ge, dt as _e, et as ve, f as ye, ft as I, gt as be, ht as xe, i as Se, it as Ce, j as we, jt as Te, k as Ee, kt as De, l as Oe, lt as ke, m as Ae, mt as je, nt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, q as Le, qt as Re, r as ze, rt as Be, s as Ve, st as He, t as Ue, tt as We, u as Ge, ut as Ke, vt as qe, w as Je, x as Ye, xt as Xe, y as Ze, yt as Qe, zt as $e } from "../private-tags-B69J0LRf.js";
|
|
20
20
|
import { a as et, c as tt, d as nt, f as rt, g as it, h as at, i as ot, l as st, m as ct, n as lt, o as ut, p as dt, r as ft, s as pt, t as mt, u as ht } from "../dist-Bz0Flq6B.js";
|
|
21
21
|
import * as L from "react";
|
|
22
22
|
import R, { Component as gt, createContext as _t, createElement as vt, createRef as yt, forwardRef as bt, memo as xt, useCallback as St, useContext as Ct, useDebugValue as wt, useEffect as Tt, useId as Et, useLayoutEffect as Dt, useMemo as Ot, useRef as kt, useState as At, version as jt } from "react";
|
|
@@ -19510,7 +19510,7 @@ var mT = (e, t) => ({
|
|
|
19510
19510
|
}
|
|
19511
19511
|
}, _T = Object.freeze({
|
|
19512
19512
|
name: "@pie-element/ebsr",
|
|
19513
|
-
version: "15.0.
|
|
19513
|
+
version: "15.0.6-next.20261015154938"
|
|
19514
19514
|
});
|
|
19515
19515
|
//#endregion
|
|
19516
19516
|
export { gT as default, _T as piePackage };
|
|
@@ -253,7 +253,7 @@ var O = (e) => {
|
|
|
253
253
|
};
|
|
254
254
|
}, N = Object.freeze({
|
|
255
255
|
name: "@pie-element/ebsr",
|
|
256
|
-
version: "15.0.
|
|
256
|
+
version: "15.0.6-next.20261015154938"
|
|
257
257
|
});
|
|
258
258
|
//#endregion
|
|
259
259
|
export { k as createCorrectResponseSession, C as createDefaultModel, E as getLogTrace, S as model, x as normalize, D as outcome, N as piePackage, M as validate };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Qt as e, U as t, W as n, n as r } from "../private-tags-
|
|
2
|
-
import { n as i, t as a } from "../delivery-
|
|
1
|
+
import { Qt as e, U as t, W as n, n as r } from "../private-tags-B69J0LRf.js";
|
|
2
|
+
import { n as i, t as a } from "../delivery-CI5tMNOF.js";
|
|
3
3
|
import { g as o, s } from "../dist-Bz0Flq6B.js";
|
|
4
4
|
//#region src/delivery/index.tsx
|
|
5
5
|
var c = /* @__PURE__ */ e(n(), 1), { translator: l } = o, u = i.TYPE, d = r, f = (0, c.default)("pie-elements:ebsr"), p = class extends a {};
|
|
@@ -155,7 +155,7 @@ var _ = class extends HTMLElement {
|
|
|
155
155
|
}
|
|
156
156
|
}, v = Object.freeze({
|
|
157
157
|
name: "@pie-element/ebsr",
|
|
158
|
-
version: "15.0.
|
|
158
|
+
version: "15.0.6-next.20261015154938"
|
|
159
159
|
});
|
|
160
160
|
//#endregion
|
|
161
161
|
export { _ as default, h as isSessionComplete, v as piePackage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as e, Et as t, Gt as n, N as r, Ot as i, P as a, Qt as o, Tt as s, U as c, W as l, _ as u, c as d, h as f, i as p, l as m, o as h, qt as g, r as _, v, wt as y } from "./private-tags-
|
|
1
|
+
import { E as e, Et as t, Gt as n, N as r, Ot as i, P as a, Qt as o, Tt as s, U as c, W as l, _ as u, c as d, h as f, i as p, l as m, o as h, qt as g, r as _, v, wt as y } from "./private-tags-B69J0LRf.js";
|
|
2
2
|
import { a as b, g as x } from "./dist-Bz0Flq6B.js";
|
|
3
3
|
import S, { useRef as C } from "react";
|
|
4
4
|
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
@@ -1381,4 +1381,4 @@ var yt = class extends HTMLElement {
|
|
|
1381
1381
|
//#endregion
|
|
1382
1382
|
export { F as n, yt as t };
|
|
1383
1383
|
|
|
1384
|
-
//# sourceMappingURL=delivery-
|
|
1384
|
+
//# sourceMappingURL=delivery-CI5tMNOF.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery-7mZ5Q_Zm.js","names":["e","t"],"sources":["../../../../../shared/player-events/dist/index.js","../../../../multiple-choice/dist/delivery/utils.js","../../../../multiple-choice/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js","../../../../../lib-react/icons/dist/correct-response-icon.js","../../../../multiple-choice/dist/delivery/feedback-tick.js","../../../../multiple-choice/dist/delivery/choice-input.js","../../../../multiple-choice/dist/delivery/choice.js","../../../../../lib-react/correct-answer-toggle/dist/expander.js","../../../../../lib-react/correct-answer-toggle/dist/index.js","../../../../multiple-choice/dist/delivery/multiple-choice.js","../../../../multiple-choice/dist/delivery/main.js","../../../../multiple-choice/dist/delivery/session-updater.js","../../../../multiple-choice/dist/delivery/index.js"],"sourcesContent":["//#region src/session-notifier.ts\nvar e = \"commitPendingSession\", t = /* @__PURE__ */ new WeakMap();\nfunction n(e, n) {\n\tlet r = t.get(e);\n\tr || (r = /* @__PURE__ */ new Set(), t.set(e, r)), r.add(n);\n}\nfunction r(t) {\n\treturn Object.getOwnPropertyDescriptor(t, e) !== void 0;\n}\nfunction i(t) {\n\tif (r(t)) return;\n\tlet n = t[e];\n\tObject.defineProperty(t, e, {\n\t\tvalue: () => {\n\t\t\tif (typeof n == \"function\") try {\n\t\t\t\tn.call(t);\n\t\t\t} catch {}\n\t\t\to(t);\n\t\t},\n\t\tconfigurable: !0,\n\t\tenumerable: !1,\n\t\twritable: !0\n\t});\n}\nfunction a(e, t, r = {}) {\n\tlet a = r.delayMs, o = typeof a == \"function\" ? a : () => a ?? 0, s = r.maxWaitMs, c = null, l = null, u = !1, d = () => {\n\t\tc !== null && (clearTimeout(c), c = null), l !== null && (clearTimeout(l), l = null);\n\t}, f = () => {\n\t\td(), u && (u = !1, t());\n\t}, p = {\n\t\tnotify() {\n\t\t\tu = !0, c !== null && clearTimeout(c), c = setTimeout(f, Math.max(0, o())), s !== void 0 && l === null && (l = setTimeout(f, Math.max(0, s)));\n\t\t},\n\t\tflush() {\n\t\t\tif (!u) {\n\t\t\t\td();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tf();\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(\"[session-notifier] a committed session-changed dispatch threw\", e);\n\t\t\t}\n\t\t}\n\t};\n\treturn n(e, p), i(e), p;\n}\nfunction o(e) {\n\tlet n = t.get(e);\n\tif (n) for (let e of [...n]) e.flush();\n}\n//#endregion\n//#region ../../../node_modules/.bun/@pie-players+pie-context@1.0.0-beta.3/node_modules/@pie-players/pie-context/dist/events.js\nfunction s(e, t, n) {\n\tlet r = t.ownerDocument?.defaultView?.Event ?? Event;\n\treturn Object.assign(new r(e, {\n\t\tbubbles: !0,\n\t\tcomposed: !0\n\t}), n);\n}\nvar c = /* @__PURE__ */ new WeakSet(), l = (e, t) => typeof t == \"object\" && !!t && e.has(t), u = class {\n\tconstructor(e, t, n, r) {\n\t\tlet i = s(\"context-request\", t, {\n\t\t\tcontext: e,\n\t\t\tcontextTarget: t,\n\t\t\tcallback: n,\n\t\t\tsubscribe: r ?? !1\n\t\t});\n\t\treturn c.add(i), i;\n\t}\n\tstatic [Symbol.hasInstance](e) {\n\t\treturn l(c, e);\n\t}\n}, d = (e) => {\n\tlet t = [];\n\tfor (let n of e) n.requestorRef.deref() && n.callbackRef.deref() && t.push(n);\n\treturn t;\n}, f = class {\n\thost;\n\tpendingByContext = /* @__PURE__ */ new Map();\n\tattached = !1;\n\tconstructor(e) {\n\t\tthis.host = e;\n\t}\n\tattach() {\n\t\tthis.attached || (this.attached = !0, this.host.addEventListener(\"context-request\", this.onContextRequest), this.host.addEventListener(\"context-provider\", this.onContextProvider));\n\t}\n\tdetach() {\n\t\tthis.attached && (this.attached = !1, this.host.removeEventListener(\"context-request\", this.onContextRequest), this.host.removeEventListener(\"context-provider\", this.onContextProvider), this.pendingByContext.clear());\n\t}\n\tonContextRequest = (e) => {\n\t\tif (e.cancelBubble) return;\n\t\tlet t = e;\n\t\tif (t.subscribe !== !0 || typeof t.callback != \"function\" || t.context === void 0) return;\n\t\tlet n = t.contextTarget ?? e.composedPath?.()[0];\n\t\tif (!n) return;\n\t\tlet r = this.pendingByContext.get(t.context);\n\t\tr || (r = {\n\t\t\tcallbacks: /* @__PURE__ */ new WeakMap(),\n\t\t\trequests: []\n\t\t}, this.pendingByContext.set(t.context, r));\n\t\tlet i = t.callback, a = r.callbacks.get(n);\n\t\ta || (a = /* @__PURE__ */ new WeakSet(), r.callbacks.set(n, a)), !a.has(i) && (a.add(i), r.requests.push({\n\t\t\trequestorRef: new WeakRef(n),\n\t\t\tcallbackRef: new WeakRef(i)\n\t\t}), r.requests = d(r.requests));\n\t};\n\tonContextProvider = (e) => {\n\t\tlet t = e.context;\n\t\tif (t === void 0) return;\n\t\tlet n = this.pendingByContext.get(t);\n\t\tif (!(!n || n.requests.length === 0)) {\n\t\t\tthis.pendingByContext.delete(t);\n\t\t\tfor (let e of n.requests) {\n\t\t\t\tlet n = e.requestorRef.deref(), r = e.callbackRef.deref();\n\t\t\t\t!n || !r || n.dispatchEvent(new u(t, n, r, !0));\n\t\t\t}\n\t\t}\n\t};\n}, p = Symbol.for(\"pie.context.documentRoot\");\nfunction m(e) {\n\tif (!e) return;\n\tlet t = e;\n\tif (t[p]) return;\n\tlet n = e.documentElement;\n\tif (!n) return;\n\tlet r = new f(n);\n\tr.attach(), t[p] = r;\n}\n//#endregion\n//#region ../../../node_modules/.bun/@pie-players+pie-context@1.0.0-beta.3/node_modules/@pie-players/pie-context/dist/consumer.js\nvar h = class {\n\thost;\n\tcontext;\n\tsubscribe;\n\tonValue;\n\tisConnected = !1;\n\tisDisconnected = !1;\n\tunsubscribe;\n\tcurrentValue;\n\tconstructor(e, t) {\n\t\tthis.host = e, this.context = t.context, this.subscribe = t.subscribe ?? !0, this.onValue = t.onValue;\n\t}\n\tconnect() {\n\t\tthis.isConnected || (this.isConnected = !0, this.isDisconnected = !1, this.subscribe && m(this.host.ownerDocument), this.requestValue());\n\t}\n\tdisconnect() {\n\t\tthis.isConnected && (this.isConnected = !1, this.isDisconnected = !0, this.unsubscribe?.(), this.unsubscribe = void 0);\n\t}\n\tget value() {\n\t\treturn this.currentValue;\n\t}\n\thandleValue = (e, t) => {\n\t\tif (this.isDisconnected) {\n\t\t\tt?.();\n\t\t\treturn;\n\t\t}\n\t\tt !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = t), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = e, this.onValue?.(e);\n\t};\n\trequestValue() {\n\t\tthis.host.dispatchEvent(new u(this.context, this.host, this.handleValue, this.subscribe));\n\t}\n}, g = (e, t, n) => {\n\tlet r = new h(e, {\n\t\tcontext: t,\n\t\tsubscribe: !0,\n\t\tonValue: n\n\t});\n\tr.connect();\n\tlet i = (e) => {\n\t\te.context === t && r.requestValue();\n\t};\n\treturn e.addEventListener(\"context-provider\", i), () => {\n\t\te.removeEventListener(\"context-provider\", i), r.disconnect();\n\t};\n}, _ = ((e) => e)(Symbol.for(\"pie.sessionCommit\")), v = 1500;\nfunction y(e) {\n\treturn typeof e == \"number\" && Number.isFinite(e) && e >= 0 ? e : v;\n}\nfunction b(e, t) {\n\treturn g(e, _, (e) => {\n\t\tt(y(e?.idleSaveDelayMs));\n\t});\n}\n//#endregion\n//#region src/index.ts\nvar x = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"model-set\";\n\t}\n\tconstructor(t, n, r) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t,\n\t\t\t\thasModel: r\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n}, S = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"session-changed\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n};\n//#endregion\nexport { v as DEFAULT_IDLE_SAVE_DELAY_MS, x as ModelSetEvent, e as SESSION_COMMIT_METHOD, S as SessionChangedEvent, a as createSessionNotifier, o as flushSessionNotifiers, y as resolveIdleSaveDelay, b as subscribeIdleSaveDelay };\n","//#region src/delivery/utils.ts\nvar e = (e, t) => t != null && e >= t, t = (e, t) => t != null && e > t;\n//#endregion\nexport { t as exceedsMaxSelections, e as reachedMaxSelections };\n","//#region ../../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs\nfunction e(t) {\n\tvar n, r, i = \"\";\n\tif (typeof t == \"string\" || typeof t == \"number\") i += t;\n\telse if (typeof t == \"object\") if (Array.isArray(t)) {\n\t\tvar a = t.length;\n\t\tfor (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += \" \"), i += r);\n\t} else for (r in t) t[r] && (i && (i += \" \"), i += r);\n\treturn i;\n}\nfunction t() {\n\tfor (var t, n, r = 0, i = \"\", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += \" \"), i += n);\n\treturn i;\n}\n//#endregion\nexport { t as clsx, t as default };\n","import \"react\";\nimport e from \"prop-types\";\nimport { jsx as t, jsxs as n } from \"react/jsx-runtime\";\nimport { styled as r } from \"@mui/material/styles\";\n//#region src/correct-response-icon.tsx\nvar i = ({ bgFill: e, fgFill: r }) => /* @__PURE__ */ n(\"svg\", {\n\t\"aria-hidden\": \"true\",\n\tfocusable: \"false\",\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-283 359 34 35\",\n\tstyle: { enableBackground: \"new -283 359 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-266\",\n\t\t\tcy: \"375.9\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z\\n M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\ni.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired\n};\nvar a = ({ bgFill: e, fgFill: r, borderFill: i }) => /* @__PURE__ */ n(\"svg\", {\n\t\"aria-hidden\": \"true\",\n\tfocusable: \"false\",\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-129.5 127 34 35\",\n\tstyle: { enableBackground: \"new -129.5 127 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#D0CAC5\",\n\t\t\t\tstroke: \"#E6E3E0\",\n\t\t\t\tstrokeWidth: .75,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5\\n C-97.4,153.5-104.3,160.4-112.9,160.4z\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#B3ABA4\",\n\t\t\t\tstroke: \"#CDC7C2\",\n\t\t\t\tstrokeWidth: .5,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-114.2\",\n\t\t\tcy: \"143.5\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z\\n M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\",\n\t\t\tfill: i\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\na.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired,\n\tborderFill: e.string.isRequired\n};\nvar o = r(\"div\")(({ size: e }) => ({\n\twidth: e || \"25px\",\n\theight: e || \"25px\"\n})), s = ({ open: e, size: n }) => /* @__PURE__ */ t(o, {\n\tsize: n,\n\tchildren: e ? /* @__PURE__ */ t(i, {\n\t\tbgFill: \"#bce2ff\",\n\t\tfgFill: \"#1a9cff\"\n\t}) : /* @__PURE__ */ t(a, {\n\t\tbgFill: \"white\",\n\t\tfgFill: \"#1a9cff\",\n\t\tborderFill: \"#bce2ff\"\n\t})\n});\ns.propTypes = {\n\topen: e.bool,\n\tsize: e.string\n}, s.defaultProps = { open: !1 };\n//#endregion\nexport { s as default };\n","import e from \"react\";\nimport t from \"prop-types\";\nimport { color as n } from \"@pie-lib/render-ui\";\nimport { jsx as r, jsxs as i } from \"react/jsx-runtime\";\nimport { styled as a } from \"@mui/material/styles\";\nimport o from \"@mui/material/Box\";\nimport { CSSTransition as s, TransitionGroup as c } from \"react-transition-group\";\n//#region src/delivery/feedback-tick.tsx\nvar l = a(o)({\n\twidth: \"33px\",\n\theight: \"33px\",\n\t\"& svg\": {\n\t\tposition: \"absolute\",\n\t\tdisplay: \"inline-block\",\n\t\twidth: \"33px\",\n\t\theight: \"33px\",\n\t\tverticalAlign: \"middle\",\n\t\t\"& hide\": { display: \"none\" }\n\t}\n}), u = a(\"svg\")({\n\t\"& .incorrect-fill\": { fill: n.incorrect() },\n\t\"& .correct-fill\": { fill: n.correct() }\n}), d = a(\"div\")({\n\tposition: \"relative\",\n\t\"&.feedback-tick-enter\": {\n\t\topacity: \"0\",\n\t\tleft: \"-50px\"\n\t},\n\t\"&.feedback-tick-enter-active\": {\n\t\topacity: \"1\",\n\t\tleft: \"0px\",\n\t\ttransition: \"left 500ms ease-in 200ms, opacity 500ms linear 200ms\"\n\t},\n\t\"&.feedback-tick-exit\": {\n\t\topacity: \"1\",\n\t\tleft: \"0px\"\n\t},\n\t\"&.feedback-tick-exit-active\": {\n\t\topacity: \"0\",\n\t\tleft: \"-50px\",\n\t\ttransition: \"left 300ms ease-in, opacity 300ms\"\n\t}\n}), f = class extends e.Component {\n\tstatic propTypes = { correctness: t.string };\n\tconstructor(t) {\n\t\tsuper(t), this.nodeRef = e.createRef();\n\t}\n\tgetIncorrectIcon = () => /* @__PURE__ */ r(u, {\n\t\tpreserveAspectRatio: \"xMinYMin meet\",\n\t\tx: \"0px\",\n\t\ty: \"0px\",\n\t\tviewBox: \"0 0 44 40\",\n\t\tstyle: { enableBackground: \"new 0 0 44 40\" },\n\t\tchildren: /* @__PURE__ */ i(\"g\", { children: [/* @__PURE__ */ r(\"rect\", {\n\t\t\tx: \"11\",\n\t\t\ty: \"17.3\",\n\t\t\ttransform: \"matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)\",\n\t\t\tclassName: \"incorrect-fill\",\n\t\t\twidth: \"16.6\",\n\t\t\theight: \"3.7\"\n\t\t}), /* @__PURE__ */ r(\"rect\", {\n\t\t\tx: \"17.4\",\n\t\t\ty: \"10.7\",\n\t\t\ttransform: \"matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)\",\n\t\t\tclassName: \"incorrect-fill\",\n\t\t\twidth: \"3.7\",\n\t\t\theight: \"16.6\"\n\t\t})] })\n\t}, \"1\");\n\tgetCorrectIcon = () => /* @__PURE__ */ r(u, {\n\t\tpreserveAspectRatio: \"xMinYMin meet\",\n\t\tversion: \"1.1\",\n\t\tx: \"0px\",\n\t\ty: \"0px\",\n\t\tviewBox: \"0 0 44 40\",\n\t\tstyle: { enableBackground: \"new 0 0 44 40\" },\n\t\tchildren: /* @__PURE__ */ r(\"polygon\", {\n\t\t\tclassName: \"correct-fill\",\n\t\t\tpoints: \"19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4\"\n\t\t})\n\t}, \"2\");\n\trender() {\n\t\tlet { correctness: e } = this.props, t = e === \"incorrect\" ? this.getIncorrectIcon() : e === \"correct\" ? this.getCorrectIcon() : null;\n\t\treturn /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(c, { children: e && /* @__PURE__ */ r(s, {\n\t\t\tnodeRef: this.nodeRef,\n\t\t\tclassNames: {\n\t\t\t\tenter: \"feedback-tick-enter\",\n\t\t\t\tenterActive: \"feedback-tick-enter-active\",\n\t\t\t\texit: \"feedback-tick-exit\",\n\t\t\t\texitActive: \"feedback-tick-exit-active\"\n\t\t\t},\n\t\t\ttimeout: {\n\t\t\t\tenter: 700,\n\t\t\t\texit: 300\n\t\t\t},\n\t\t\tchildren: /* @__PURE__ */ r(d, {\n\t\t\t\tref: this.nodeRef,\n\t\t\t\tchildren: t\n\t\t\t})\n\t\t}) }) });\n\t}\n};\n//#endregion\nexport { f as default };\n","import { clsx as e } from \"../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js\";\nimport t from \"./feedback-tick.js\";\nimport n from \"react\";\nimport r from \"prop-types\";\nimport * as i from \"@pie-lib/render-ui\";\nimport { Feedback as a, PreviewPrompt as o, color as s, createUniqueId as c } from \"@pie-lib/render-ui\";\nimport { Fragment as l, jsx as u, jsxs as d } from \"react/jsx-runtime\";\nimport { styled as f } from \"@mui/material/styles\";\nimport p from \"@mui/material/Box\";\nimport m from \"@mui/material/FormControlLabel\";\nimport h from \"@mui/material/Checkbox\";\nimport g from \"@mui/material/Radio\";\n//#region src/delivery/choice-input.tsx\nfunction _(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction v(e, t) {\n\treturn !e || _(e) ? e : _(e.default) ? e.default : t && _(e[t]) ? e[t] : t && _(e[t]?.default) ? e[t].default : e;\n}\nvar y = i, b = y.default, x = b && typeof b == \"object\" ? b : y, S = v(o, \"PreviewPrompt\") || v(x.PreviewPrompt, \"PreviewPrompt\"), C = v(a, \"Feedback\") || v(x.Feedback, \"Feedback\"), w = \"multiple-choice-component\", T = f(p)({\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tbackgroundColor: s.background()\n}), E = f(p)({\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tbackgroundColor: s.background(),\n\tflex: 1,\n\t\"& .MuiFormControlLabel-root\": { marginLeft: \"-14px\" },\n\t\"& label\": {\n\t\tcolor: s.text(),\n\t\t\"& > span\": { fontSize: \"inherit\" },\n\t\t\"& > .MuiButtonBase-root\": { padding: \"12px\" }\n\t}\n}), D = f(\"span\")(({ theme: e }) => ({\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\t\"& > span\": { marginLeft: `-${e.spacing(1)}` }\n})), O = f(\"span\")({\n\tposition: \"absolute\",\n\tleft: \"-10000px\",\n\ttop: \"auto\",\n\twidth: \"1px\",\n\theight: \"1px\",\n\toverflow: \"hidden\"\n}), k = f(m)({\n\t\"& .MuiFormControlLabel-label\": {\n\t\tcolor: `${s.text()} !important`,\n\t\tbackgroundColor: s.background(),\n\t\tletterSpacing: \"normal\"\n\t},\n\t\"&.Mui-disabled *\": { cursor: \"not-allowed !important\" }\n}), A = (e, t) => ({ [`&.${w}`]: { color: `var(--choice-input-${e}, ${t}) !important` } }), j = (e) => {\n\tlet t = (t) => e ? `${e}-${t}` : t;\n\treturn {\n\t\t[t(\"root\")]: {\n\t\t\t...A(\"color\", s.text()),\n\t\t\t...e === \"correct\" ? A(\"correct-color\", s.text()) : {},\n\t\t\t...e === \"incorrect\" ? A(\"incorrect-color\", s.incorrect()) : {}\n\t\t},\n\t\t[t(\"checked\")]: {\n\t\t\t...e === \"correct\" ? A(\"correct-selected-color\", s.correct()) : {},\n\t\t\t...e === \"incorrect\" ? A(\"incorrect-checked\", s.incorrect()) : {},\n\t\t\t...e ? {} : A(\"selected-color\", s.primary())\n\t\t},\n\t\t[t(\"disabled\")]: {\n\t\t\t...A(\"disabled-color\", s.text()),\n\t\t\t...e === \"correct\" ? A(\"correct-disabled-color\", s.disabled()) : {},\n\t\t\t...e === \"incorrect\" ? A(\"incorrect-disabled-color\", s.disabled()) : {},\n\t\t\topacity: .6,\n\t\t\tcursor: \"not-allowed !important\",\n\t\t\tpointerEvents: \"initial !important\"\n\t\t},\n\t\tfocusVisibleUnchecked: {\n\t\t\toutline: `2px solid ${s.focusOutline()}`,\n\t\t\tbackgroundColor: \"transparent\"\n\t\t},\n\t\tfocusVisibleChecked: {\n\t\t\toutline: `2px solid ${s.focusOutline()}`,\n\t\t\tbackgroundColor: \"transparent\"\n\t\t}\n\t};\n}, M = f(h, { shouldForwardProp: (e) => e !== \"correctness\" })(({ correctness: e }) => {\n\tlet t = j(e), n = (t) => e ? `${e}-${t}` : t;\n\treturn {\n\t\t[`&.${w}`]: {\n\t\t\t...t[n(\"root\")],\n\t\t\t\"&.Mui-checked\": t[n(\"checked\")],\n\t\t\t\"&.Mui-disabled\": e ? {} : t[n(\"disabled\")],\n\t\t\t\"&:hover:not(.Mui-disabled) svg\": {\n\t\t\t\tboxShadow: `0px 0px 0px 2px ${s.focusOutline()}`,\n\t\t\t\tborderRadius: \"4px\"\n\t\t\t}\n\t\t},\n\t\t\"&.Mui-focusVisible\": {\n\t\t\t\"&:not(.Mui-checked)\": t.focusVisibleUnchecked,\n\t\t\t\"&.Mui-checked\": t.focusVisibleChecked\n\t\t}\n\t};\n}), N = (e) => {\n\tlet { correctness: t, checked: n, onChange: r, disabled: i, value: a, id: o, onKeyDown: s, inputRef: c } = e;\n\treturn /* @__PURE__ */ u(M, {\n\t\tid: o,\n\t\tslotProps: { input: { ref: c } },\n\t\tonKeyDown: s,\n\t\tdisableRipple: !0,\n\t\tchecked: n,\n\t\tonChange: r,\n\t\tdisabled: i,\n\t\tvalue: a,\n\t\tcorrectness: t,\n\t\tclassName: w\n\t});\n}, P = f(g, { shouldForwardProp: (e) => e !== \"correctness\" })(({ correctness: e }) => {\n\tlet t = j(e), n = (t) => e ? `${e}-${t}` : t;\n\treturn {\n\t\t[`&.${w}`]: {\n\t\t\t...t[n(\"root\")],\n\t\t\t\"&.Mui-checked\": t[n(\"checked\")],\n\t\t\t\"&.Mui-disabled\": e ? {} : t[n(\"disabled\")],\n\t\t\t\"&.Mui-focusVisible:not(.Mui-checked)\": t.focusVisibleUnchecked,\n\t\t\t\"&.Mui-focusVisible.Mui-checked\": t.focusVisibleChecked,\n\t\t\t\"&:hover:not(.Mui-disabled) svg\": {\n\t\t\t\tboxShadow: `0px 0px 0px 2px ${s.focusOutline()}`,\n\t\t\t\tborderRadius: \"50%\"\n\t\t\t}\n\t\t},\n\t\t\"&.Mui-focusVisible\": {\n\t\t\t\"& input\": { outline: 0 },\n\t\t\t\"& .MuiTouchRipple-root\": { display: \"none\" }\n\t\t}\n\t};\n}), F = (e) => {\n\tlet { correctness: t, checked: n, onChange: r, disabled: i, value: a, id: o, tagName: s, inputRef: c } = e;\n\treturn /* @__PURE__ */ u(P, {\n\t\tid: o,\n\t\tslotProps: { input: { ref: c } },\n\t\tdisableRipple: !0,\n\t\tchecked: n,\n\t\tonChange: r,\n\t\tdisabled: i,\n\t\tvalue: a,\n\t\tcorrectness: t,\n\t\tclassName: w,\n\t\tname: s\n\t});\n}, I = class extends n.Component {\n\tstatic propTypes = {\n\t\tchoiceMode: r.oneOf([\"radio\", \"checkbox\"]),\n\t\tdisplayKey: r.string,\n\t\tchecked: r.bool.isRequired,\n\t\tcorrectness: r.string,\n\t\tdisabled: r.bool.isRequired,\n\t\tfeedback: r.string,\n\t\tlabel: r.string.isRequired,\n\t\trationale: r.string,\n\t\tonChange: r.func.isRequired,\n\t\tvalue: r.string.isRequired,\n\t\tclassName: r.string,\n\t\ttagName: r.string,\n\t\thideTick: r.bool,\n\t\tisEvaluateMode: r.bool,\n\t\tchoicesLayout: r.oneOf([\n\t\t\t\"vertical\",\n\t\t\t\"grid\",\n\t\t\t\"horizontal\"\n\t\t]),\n\t\tisSelectionButtonBelow: r.bool\n\t};\n\tstatic defaultProps = {\n\t\trationale: null,\n\t\tchecked: !1,\n\t\tisEvaluateMode: !1\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.onToggleChoice = this.onToggleChoice.bind(this), this.choiceId = c(\"choice\"), this.descId = `${this.choiceId}-desc`;\n\t}\n\tonToggleChoice(e) {\n\t\tthis.props.onChange(e);\n\t}\n\thandleKeyDown = (e) => {\n\t\tlet { choiceMode: t } = this.props;\n\t\tif (t !== \"checkbox\") return;\n\t\tlet n = e.key === \"ArrowDown\", r = e.key === \"ArrowUp\";\n\t\tif (!n && !r) return;\n\t\te.preventDefault();\n\t\tlet i = document.getElementById(this.choiceId);\n\t\tif (!i) return;\n\t\tlet a = i.closest(\"fieldset\");\n\t\tif (!a) return;\n\t\tlet o = Array.from(a.querySelectorAll(\"input[type=\\\"checkbox\\\"]\")), s = o.findIndex((e) => e === i);\n\t\tif (s === -1) return;\n\t\tlet c = o[n ? s + 1 : s - 1];\n\t\tc && c.focus();\n\t};\n\trender() {\n\t\tlet { choiceMode: n, disabled: r, displayKey: i, feedback: a, label: o, correctness: s, className: c, rationale: f, hideTick: p, isEvaluateMode: m, choicesLayout: h, value: g, checked: _, tagName: v, isSelectionButtonBelow: y } = this.props, b = n === \"checkbox\" ? N : F, x = n === \"checkbox\" ? \"checkbox\" : \"radio-button\", A = {\n\t\t\t...h === \"horizontal\" && { [`& .${w}`]: {\n\t\t\t\tpadding: \"8px\",\n\t\t\t\tmargin: \"4px 0 4px 4px\"\n\t\t\t} },\n\t\t\t...y && h !== \"grid\" && { \"& > label\": { alignItems: \"flex-start\" } },\n\t\t\t...y && h === \"grid\" && {\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\"& > label\": { alignItems: \"center\" }\n\t\t\t}\n\t\t}, j = typeof o == \"string\" && (o.includes(\"<math\") || o.includes(\"\\\\(\") || o.includes(\"\\\\[\") || o.includes(\"<img\") || o.includes(\"data-latex\") || o.includes(\"data-raw\") || o.includes(\"<mjx-container\")), M = i ? /* @__PURE__ */ u(O, {\n\t\t\tid: this.descId,\n\t\t\tchildren: j ? `Pick the answer below, ${i}` : i\n\t\t}) : null, P = /* @__PURE__ */ u(l, { children: i && !y ? /* @__PURE__ */ d(T, {\n\t\t\tcomponent: \"span\",\n\t\t\tchildren: [/* @__PURE__ */ d(\"span\", {\n\t\t\t\t\"aria-hidden\": \"true\",\n\t\t\t\tchildren: [\n\t\t\t\t\ti,\n\t\t\t\t\t\".\",\n\t\t\t\t\t\"\\xA0\"\n\t\t\t\t]\n\t\t\t}), /* @__PURE__ */ u(S, {\n\t\t\t\tclassName: \"prompt-label\",\n\t\t\t\tprompt: o,\n\t\t\t\ttagName: \"span\"\n\t\t\t})]\n\t\t}) : /* @__PURE__ */ u(S, {\n\t\t\tclassName: \"prompt-label\",\n\t\t\tprompt: o,\n\t\t\ttagName: \"span\"\n\t\t}) }), I = {\n\t\t\tdisabled: r,\n\t\t\tchecked: _,\n\t\t\tcorrectness: s,\n\t\t\ttagName: v,\n\t\t\tvalue: g,\n\t\t\tid: this.choiceId,\n\t\t\tonChange: this.onToggleChoice,\n\t\t\tonKeyDown: this.handleKeyDown,\n\t\t\t...M ? { \"aria-describedby\": this.descId } : {}\n\t\t}, L = y ? /* @__PURE__ */ d(D, { children: [\n\t\t\tM,\n\t\t\t/* @__PURE__ */ u(b, {\n\t\t\t\t...I,\n\t\t\t\tstyle: { padding: 0 }\n\t\t\t}),\n\t\t\t/* @__PURE__ */ u(\"span\", {\n\t\t\t\t\"aria-hidden\": \"true\",\n\t\t\t\tchildren: i ? `${i}.` : \"\"\n\t\t\t})\n\t\t] }) : /* @__PURE__ */ d(l, { children: [M, /* @__PURE__ */ u(b, { ...I })] });\n\t\treturn /* @__PURE__ */ d(\"div\", {\n\t\t\tclassName: e(c, \"corespring-\" + x, \"choice-input\"),\n\t\t\tchildren: [\n\t\t\t\t/* @__PURE__ */ d(T, { children: [!p && m && /* @__PURE__ */ u(t, { correctness: s }), /* @__PURE__ */ u(E, {\n\t\t\t\t\tclassName: \"checkbox-holder\",\n\t\t\t\t\tsx: A,\n\t\t\t\t\tchildren: /* @__PURE__ */ u(k, {\n\t\t\t\t\t\tlabel: P,\n\t\t\t\t\t\tvalue: g,\n\t\t\t\t\t\thtmlFor: this.choiceId,\n\t\t\t\t\t\tlabelPlacement: y ? \"top\" : void 0,\n\t\t\t\t\t\tcontrol: L\n\t\t\t\t\t})\n\t\t\t\t})] }),\n\t\t\t\tf && /* @__PURE__ */ u(S, {\n\t\t\t\t\tclassName: \"rationale\",\n\t\t\t\t\tdefaultClassName: \"rationale\",\n\t\t\t\t\tprompt: f\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ u(C, {\n\t\t\t\t\tfeedback: a,\n\t\t\t\t\tcorrectness: s\n\t\t\t\t})\n\t\t\t]\n\t\t});\n\t}\n};\n//#endregion\nexport { I as ChoiceInput, I as default, N as StyledCheckbox, k as StyledFormControlLabel, F as StyledRadio };\n","import { ChoiceInput as e } from \"./choice-input.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { color as r } from \"@pie-lib/render-ui\";\nimport { jsx as i } from \"react/jsx-runtime\";\nimport { styled as a } from \"@mui/material/styles\";\nimport o from \"@mui/material/Box\";\n//#region src/delivery/choice.tsx\nvar s = a(o, { shouldForwardProp: (e) => e !== \"noBorder\" && e !== \"horizontalLayout\" })(({ theme: e, noBorder: t, horizontalLayout: n }) => ({\n\tpaddingTop: e.spacing(2.5),\n\tpaddingBottom: `calc(${e.spacing(1)} + 2px)`,\n\tpaddingLeft: `calc(${e.spacing(1)} + 2px)`,\n\tpaddingRight: `calc(${e.spacing(1)} + 2px)`,\n\tborderBottom: t ? \"none\" : `1px solid ${r.border()}`,\n\t...n && {\n\t\tpaddingRight: e.spacing(2.5),\n\t\t\"& label\": { marginRight: e.spacing(1) }\n\t}\n})), c = class extends t.Component {\n\tstatic propTypes = {};\n\tstate = { isHovered: !1 };\n\thandleMouseEnter = () => {\n\t\tlet { disabled: e, checked: t } = this.props;\n\t\t!e && !t && this.setState({ isHovered: !0 });\n\t};\n\thandleMouseLeave = () => {\n\t\tthis.setState({ isHovered: !1 });\n\t};\n\tonChange = (e) => {\n\t\tlet { disabled: t, onChoiceChanged: n } = this.props;\n\t\tt || n(e);\n\t};\n\trender() {\n\t\tlet { choice: t, index: n, choicesLength: r, showCorrect: a, isEvaluateMode: o, choiceMode: c, disabled: l, checked: u, correctness: d, displayKey: f, choicesLayout: p, gridColumns: m, isSelectionButtonBelow: h, selectedAnswerBackgroundColor: g, selectedAnswerStrokeColor: _, selectedAnswerStrokeWidth: v, hoverAnswerBackgroundColor: y, hoverAnswerStrokeColor: b, hoverAnswerStrokeWidth: x, tagName: S } = this.props, { isHovered: C } = this.state, w = \"choice\" + (n === r - 1 ? \" last\" : \"\"), T = !o || a ? \"\" : t.feedback, E = {\n\t\t\t...t,\n\t\t\tchecked: u,\n\t\t\tchoiceMode: c,\n\t\t\tdisabled: l,\n\t\t\tfeedback: T,\n\t\t\tcorrectness: d,\n\t\t\tdisplayKey: f,\n\t\t\tindex: n,\n\t\t\tchoicesLayout: p,\n\t\t\tgridColumns: m,\n\t\t\tonChange: this.onChange,\n\t\t\tisEvaluateMode: o,\n\t\t\tisSelectionButtonBelow: h,\n\t\t\tselectedAnswerStrokeColor: _,\n\t\t\tselectedAnswerStrokeWidth: v,\n\t\t\ttagName: S\n\t\t}, D = (e) => {\n\t\t\tif (!e) return \"2px\";\n\t\t\tlet t = String(e).trim();\n\t\t\treturn /^\\d+(\\.\\d+)?$/.test(t) ? `${t}px` : t;\n\t\t}, O = _ && _ !== \"initial\", k = b && b !== \"initial\", A = \"transparent\", j = \"2px\", M = \"initial\";\n\t\t(O || k) && (u && O ? (A = _, j = v) : C && !l && k && (A = b, j = x)), u && g && g !== \"initial\" ? M = g : C && !l && y && y !== \"initial\" && (M = y);\n\t\tlet N = O || k, P = N ? {\n\t\t\tborder: `${D(j)} solid ${A}`,\n\t\t\tborderRadius: \"8px\"\n\t\t} : {}, F = n === r - 1 || p !== \"vertical\" || N, I = p === \"horizontal\";\n\t\treturn /* @__PURE__ */ i(\"div\", {\n\t\t\tclassName: w,\n\t\t\tstyle: {\n\t\t\t\tbackgroundColor: M === \"initial\" ? \"initial\" : M,\n\t\t\t\t...P\n\t\t\t},\n\t\t\tonMouseEnter: this.handleMouseEnter,\n\t\t\tonMouseLeave: this.handleMouseLeave,\n\t\t\tchildren: /* @__PURE__ */ i(s, {\n\t\t\t\tcomponent: \"div\",\n\t\t\t\tnoBorder: F,\n\t\t\t\thorizontalLayout: I,\n\t\t\t\tchildren: /* @__PURE__ */ i(e, { ...E })\n\t\t\t})\n\t\t}, n);\n\t}\n};\nc.propTypes = {\n\tchoiceMode: n.oneOf([\"radio\", \"checkbox\"]),\n\tchoice: n.object,\n\tdisabled: n.bool.isRequired,\n\tonChoiceChanged: n.func,\n\tindex: n.number,\n\tchoicesLength: n.number,\n\tshowCorrect: n.bool,\n\tisEvaluateMode: n.bool,\n\tchecked: n.bool,\n\tcorrectness: n.string,\n\tdisplayKey: n.string,\n\tchoicesLayout: n.oneOf([\n\t\t\"vertical\",\n\t\t\"grid\",\n\t\t\"horizontal\"\n\t]),\n\tgridColumns: n.string,\n\tselectedAnswerBackgroundColor: n.string,\n\tselectedAnswerStrokeColor: n.string,\n\tselectedAnswerStrokeWidth: n.string,\n\thoverAnswerBackgroundColor: n.string,\n\thoverAnswerStrokeColor: n.string,\n\thoverAnswerStrokeWidth: n.string,\n\ttagName: n.string,\n\tisSelectionButtonBelow: n.bool\n};\n//#endregion\nexport { c as Choice, c as default };\n","import { styled as e } from \"@mui/material/styles\";\nimport { CSSTransition as t } from \"react-transition-group\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { useRef as r } from \"react\";\nimport i from \"prop-types\";\n//#region src/expander.tsx\nvar a = \"height ease-in 300ms, opacity ease-in 300ms\", o = e(\"div\")(() => ({\n\tposition: \"relative\",\n\theight: 0,\n\toverflow: \"hidden\",\n\tdisplay: \"flex\",\n\tvisibility: \"hidden\",\n\twidth: 0,\n\t\"&.enter\": {\n\t\ttransition: a,\n\t\topacity: 1,\n\t\theight: \"auto\",\n\t\twidth: \"auto\",\n\t\tvisibility: \"visible\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.enter-done\": {\n\t\theight: \"auto\",\n\t\tvisibility: \"visible\",\n\t\twidth: \"auto\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.exit\": {\n\t\ttransition: a,\n\t\topacity: 0,\n\t\theight: 0,\n\t\tvisibility: \"visible\",\n\t\twidth: 0\n\t},\n\t\"&.exit-done\": {\n\t\topacity: 0,\n\t\tvisibility: \"hidden\",\n\t\theight: 0,\n\t\twidth: 0\n\t}\n})), s = (e) => {\n\tlet { show: i, children: a, className: s } = e, c = r(null);\n\treturn /* @__PURE__ */ n(t, {\n\t\tnodeRef: c,\n\t\tin: i,\n\t\tappear: !0,\n\t\tmountOnEnter: !1,\n\t\ttimeout: 300,\n\t\tclassNames: {\n\t\t\tenter: \"enter\",\n\t\t\tenterDone: \"enter-done\",\n\t\t\texit: \"exit\",\n\t\t\texitDone: \"exit-done\"\n\t\t},\n\t\tchildren: /* @__PURE__ */ n(o, {\n\t\t\tref: c,\n\t\t\tclassName: s,\n\t\t\tchildren: a\n\t\t})\n\t});\n};\ns.propTypes = {\n\tshow: i.bool.isRequired,\n\tclassName: i.string,\n\tchildren: i.oneOfType([i.arrayOf(i.node), i.node]).isRequired\n};\n//#endregion\nexport { s as default };\n","import e from \"./expander.js\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { CSSTransition as n } from \"react-transition-group\";\nimport { CorrectResponse as r } from \"@pie-lib/icons\";\nimport * as i from \"@pie-lib/render-ui\";\nimport { Readable as a, color as o } from \"@pie-lib/render-ui\";\nimport { jsx as s, jsxs as c } from \"react/jsx-runtime\";\nimport l from \"react\";\nimport u from \"prop-types\";\nimport d from \"@pie-lib/translator\";\n//#region src/index.tsx\nfunction f(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction p(e, t) {\n\treturn !e || f(e) ? e : f(e.default) ? e.default : t && f(e[t]) ? e[t] : t && f(e[t]?.default) ? e[t].default : e;\n}\nvar m = i, h = m.default, g = h && typeof h == \"object\" ? h : m, _ = p(a, \"Readable\") || p(g.Readable, \"Readable\"), { translator: v } = d, y = {\n\tWebkitTouchCallout: \"none\",\n\tWebkitUserSelect: \"none\",\n\tKhtmlUserSelect: \"none\",\n\tMozUserSelect: \"none\",\n\tmsUserSelect: \"none\",\n\tuserSelect: \"none\"\n}, b = t(\"div\")(() => ({\n\twidth: \"100%\",\n\tcursor: \"pointer\"\n})), x = t(\"button\")(() => ({\n\tmargin: \"0 auto\",\n\ttextAlign: \"center\",\n\tdisplay: \"flex\",\n\tminWidth: \"24px\",\n\tminHeight: \"24px\",\n\tpadding: 0,\n\tborder: 0,\n\tbackground: \"none\",\n\tcolor: \"inherit\",\n\tfont: \"inherit\",\n\tcursor: \"pointer\",\n\t\"&:focus-visible\": {\n\t\toutline: `2px solid ${o.buttonFocusOutline()}`,\n\t\toutlineOffset: \"-2px\"\n\t}\n})), S = t(\"div\")(() => ({\n\twidth: \"fit-content\",\n\tminWidth: \"140px\",\n\talignSelf: \"center\",\n\tverticalAlign: \"middle\",\n\tcolor: `var(--correct-answer-toggle-label-color, ${o.text()})`,\n\tfontWeight: \"normal\",\n\t...y\n})), C = t(\"div\")(() => ({\n\tposition: \"absolute\",\n\twidth: \"25px\",\n\t\"&.enter\": { opacity: \"0\" },\n\t\"&.enter-active\": {\n\t\topacity: \"1\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t},\n\t\"&.exit\": { opacity: \"1\" },\n\t\"&.exit-active\": {\n\t\topacity: \"0\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t}\n})), w = t(\"div\")(() => ({\n\twidth: \"25px\",\n\tmarginRight: \"5px\",\n\tdisplay: \"flex\",\n\talignItems: \"center\"\n})), T = class t extends l.Component {\n\tstatic propTypes = {\n\t\tonToggle: u.func,\n\t\ttoggled: u.bool,\n\t\tshow: u.bool,\n\t\thideMessage: u.string,\n\t\tshowMessage: u.string,\n\t\tclassName: u.string,\n\t\tlanguage: u.string\n\t};\n\tstatic defaultProps = {\n\t\tshowMessage: \"Show correct answer\",\n\t\thideMessage: \"Hide correct answer\",\n\t\tshow: !1,\n\t\ttoggled: !1\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.state = { show: e.show }, this.openIconRef = l.createRef(), this.closedIconRef = l.createRef(), t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t};\n\t}\n\tonClick() {\n\t\tthis.props.onToggle(!this.props.toggled);\n\t}\n\tonTouch(e) {\n\t\te.preventDefault(), this.props.onToggle(!this.props.toggled);\n\t}\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\tthis.setState({ show: e.show }), e.language !== this.props?.language && (t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t});\n\t}\n\trender() {\n\t\tlet { className: t, toggled: i, hideMessage: a, showMessage: o } = this.props;\n\t\treturn /* @__PURE__ */ s(b, {\n\t\t\tclassName: t,\n\t\t\tchildren: /* @__PURE__ */ s(e, {\n\t\t\t\tshow: this.state.show,\n\t\t\t\tchildren: /* @__PURE__ */ c(x, {\n\t\t\t\t\ttype: \"button\",\n\t\t\t\t\t\"aria-pressed\": !!i,\n\t\t\t\t\tonClick: this.onClick.bind(this),\n\t\t\t\t\tonTouchEnd: this.onTouch.bind(this),\n\t\t\t\t\tchildren: [/* @__PURE__ */ c(w, { children: [/* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.openIconRef,\n\t\t\t\t\t\ttimeout: 400,\n\t\t\t\t\t\tin: i,\n\t\t\t\t\t\texit: !i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.openIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-open\")\n\t\t\t\t\t\t})\n\t\t\t\t\t}), /* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.closedIconRef,\n\t\t\t\t\t\ttimeout: 5e3,\n\t\t\t\t\t\tin: !i,\n\t\t\t\t\t\texit: i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.closedIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-closed\")\n\t\t\t\t\t\t})\n\t\t\t\t\t})] }), /* @__PURE__ */ s(_, {\n\t\t\t\t\t\tfalse: !0,\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(S, {\n\t\t\t\t\t\t\t\"aria-hidden\": !this.state.show,\n\t\t\t\t\t\t\tchildren: i ? a : o\n\t\t\t\t\t\t})\n\t\t\t\t\t})]\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n};\n//#endregion\nexport { T as CorrectAnswerToggle, T as default };\n","import { clsx as e } from \"../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js\";\nimport { Choice as t } from \"./choice.js\";\nimport { reachedMaxSelections as n } from \"./utils.js\";\nimport r from \"react\";\nimport i from \"prop-types\";\nimport * as a from \"@pie-lib/render-ui\";\nimport { Collapsible as o, PreviewPrompt as s, color as c, createUniqueId as l, transformDataHeadings as u } from \"@pie-lib/render-ui\";\nimport { jsx as d, jsxs as f } from \"react/jsx-runtime\";\nimport p from \"@pie-lib/correct-answer-toggle\";\nimport { styled as m } from \"@mui/material/styles\";\nimport h from \"@mui/material/Box\";\nimport g from \"@pie-lib/translator\";\n//#region src/delivery/multiple-choice.tsx\nfunction _(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction v(e, t) {\n\treturn !e || _(e) ? e : _(e.default) ? e.default : t && _(e[t]) ? e[t] : t && _(e[t]?.default) ? e[t].default : e;\n}\nvar y = a, b = y.default, x = b && typeof b == \"object\" ? b : y, S = v(s, \"PreviewPrompt\") || v(x.PreviewPrompt, \"PreviewPrompt\"), C = v(o, \"Collapsible\") || v(x.Collapsible, \"Collapsible\"), { translator: w } = g, T = m(h)({\n\tcolor: c.text(),\n\tbackgroundColor: c.background(),\n\t\"& *\": { \"-webkit-font-smoothing\": \"antialiased\" },\n\tposition: \"relative\",\n\t\"& legend\": { border: \"none !important\" }\n}), E = m(\"h2\")(({ theme: e }) => ({\n\tdisplay: \"block\",\n\tfontSize: \"inherit\",\n\tmargin: \"0\",\n\tfontWeight: \"normal\",\n\tpaddingBottom: e.spacing(2)\n})), D = m(h)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), O = m(h)({\n\tdisplay: \"flex\",\n\tflexDirection: \"row\",\n\tflexWrap: \"wrap\"\n}), k = m(h)({ display: \"grid\" }), A = m(\"fieldset\")({\n\tborder: \"0px\",\n\tpadding: \"0.01em 0 0 0\",\n\tmargin: \"0px\",\n\tminWidth: \"0px\"\n}), j = m(\"h3\")({\n\tposition: \"absolute\",\n\tleft: \"-10000px\",\n\ttop: \"auto\",\n\twidth: \"1px\",\n\theight: \"1px\",\n\toverflow: \"hidden\"\n}), M = m(\"div\")(({ theme: e }) => ({\n\tfontSize: e.typography.fontSize - 2,\n\tcolor: c.missing(),\n\tpaddingTop: e.spacing(1)\n})), N = class extends r.Component {\n\tstatic propTypes = {\n\t\tclassName: i.string,\n\t\tmode: i.oneOf([\n\t\t\t\"gather\",\n\t\t\t\"view\",\n\t\t\t\"evaluate\"\n\t\t]),\n\t\tchoiceMode: i.oneOf([\"radio\", \"checkbox\"]),\n\t\tkeyMode: i.oneOf([\n\t\t\t\"numbers\",\n\t\t\t\"letters\",\n\t\t\t\"none\"\n\t\t]),\n\t\tchoices: i.array,\n\t\tpartLabel: i.string,\n\t\tprompt: i.string,\n\t\tteacherInstructions: i.string,\n\t\tsession: i.object,\n\t\tdisabled: i.bool,\n\t\teliminatedChoices: i.arrayOf(i.string),\n\t\tonChoiceChanged: i.func,\n\t\tresponseCorrect: i.bool,\n\t\tcorrectResponse: i.array,\n\t\tchoicesLayout: i.oneOf([\n\t\t\t\"vertical\",\n\t\t\t\"grid\",\n\t\t\t\"horizontal\"\n\t\t]),\n\t\tgridColumns: i.string,\n\t\talwaysShowCorrect: i.bool,\n\t\tanimationsDisabled: i.bool,\n\t\tlanguage: i.string,\n\t\tselectedAnswerBackgroundColor: i.string,\n\t\tselectedAnswerStrokeColor: i.string,\n\t\tselectedAnswerStrokeWidth: i.string,\n\t\thoverAnswerBackgroundColor: i.string,\n\t\thoverAnswerStrokeColor: i.string,\n\t\thoverAnswerStrokeWidth: i.string,\n\t\tonShowCorrectToggle: i.func,\n\t\tisSelectionButtonBelow: i.bool,\n\t\tminSelections: i.number,\n\t\tmaxSelections: i.number,\n\t\tautoplayAudioEnabled: i.bool,\n\t\tcustomAudioButton: {\n\t\t\tplayImage: i.string,\n\t\t\tpauseImage: i.string\n\t\t},\n\t\toptions: i.object,\n\t\tbaseHeadingLevel: i.number,\n\t\tincludeSrHeading: i.bool\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.state = {\n\t\t\tshowCorrect: this.props.options && this.props.alwaysShowCorrect || !1,\n\t\t\tmaxSelectionsErrorState: !1\n\t\t}, this.onToggle = this.onToggle.bind(this), this.groupName = `mc-group-${Math.random().toString(36).slice(2, 10)}`, this.mainContainerId = l(\"main-container\");\n\t}\n\tisSelected(e) {\n\t\tlet t = this.props.session && this.props.session.value;\n\t\treturn t && t.indexOf && t.indexOf(e) >= 0;\n\t}\n\thandleChange = (e) => {\n\t\tlet { value: t, checked: r } = e.target, { choiceMode: i, maxSelections: a, onChoiceChanged: o, session: s } = this.props;\n\t\ti !== \"radio\" && s.value && n(s.value.length, a) && (this.setState({ maxSelectionsErrorState: r }), r) || o({\n\t\t\tvalue: t,\n\t\t\tselected: r,\n\t\t\tselector: \"Mouse\"\n\t\t});\n\t};\n\tonToggle = () => {\n\t\tthis.props.mode === \"evaluate\" && this.setState({ showCorrect: !this.state.showCorrect }, () => {\n\t\t\tthis.props.onShowCorrectToggle && this.props.onShowCorrectToggle();\n\t\t});\n\t};\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\t!e.correctResponse && this.state.showCorrect !== !1 && this.setState({ showCorrect: !1 }, () => {\n\t\t\tthis.props.onShowCorrectToggle && this.props.onShowCorrectToggle();\n\t\t}), e.options && e.alwaysShowCorrect && this.state.showCorrect !== !0 && this.setState({ showCorrect: !0 }, () => {\n\t\t\tthis.props.onShowCorrectToggle && this.props.onShowCorrectToggle();\n\t\t});\n\t}\n\tindexToSymbol(e) {\n\t\treturn this.props.keyMode === \"numbers\" ? `${e + 1}` : this.props.keyMode === \"letters\" ? String.fromCharCode(97 + e).toUpperCase() : \"\";\n\t}\n\tgetCorrectness = (e = {}) => {\n\t\tlet t = e.correct, n = this.isSelected(e.value);\n\t\tif (this.state.showCorrect) return t ? \"correct\" : void 0;\n\t\tif (t) return n ? \"correct\" : \"incorrect\";\n\t\tif (n) return \"incorrect\";\n\t};\n\tgetChecked(e) {\n\t\treturn this.props.options && this.props.alwaysShowCorrect || this.state.showCorrect && this.props.mode === \"evaluate\" ? e.correct || !1 : this.isSelected(e.value);\n\t}\n\trenderHeading() {\n\t\tlet { mode: e, choiceMode: t, includeSrHeading: n, baseHeadingLevel: r, partLabel: i, language: a } = this.props;\n\t\tif (!(!i && n !== !1) || e !== \"gather\") return null;\n\t\tlet o = r ? Math.min(6, r) : 2;\n\t\treturn /* @__PURE__ */ d(j.withComponent(`h${o}`), { children: w.t(t === \"radio\" ? \"multipleChoice.multipleChoiceQuestion\" : \"multipleChoice.multipleSelectQuestion\", { lng: a }) });\n\t}\n\trender() {\n\t\tlet { mode: n, disabled: r, className: i, choices: a = [], choiceMode: o, gridColumns: s, partLabel: c, prompt: l, responseCorrect: m, teacherInstructions: g, alwaysShowCorrect: _, animationsDisabled: v, language: y, isSelectionButtonBelow: b, minSelections: x, maxSelections: j, autoplayAudioEnabled: N, session: P, customAudioButton: F, options: I, baseHeadingLevel: L, eliminatedChoices: R = [] } = this.props, { showCorrect: z, maxSelectionsErrorState: B } = this.state, V = n === \"evaluate\", H = V && !m, U = s > 1 ? { gridTemplateColumns: `repeat(${s}, 1fr)` } : void 0, W = P.value && P.value.length || 0, G = (() => {\n\t\t\tif (!L) return;\n\t\t\tlet e = 1;\n\t\t\treturn c && (e += 1), Math.min(6, L + e);\n\t\t})(), K = (e) => e && G ? u(e, G) : e, q = /* @__PURE__ */ d(S, {\n\t\t\ttagName: \"div\",\n\t\t\tclassName: \"prompt\",\n\t\t\tdefaultClassName: \"teacher-instructions\",\n\t\t\tprompt: g\n\t\t}), J = () => x && j ? x === j ? w.t(\"translation:multipleChoice:minmaxSelections_equal\", {\n\t\t\tlng: y,\n\t\t\tminSelections: x\n\t\t}) : w.t(\"translation:multipleChoice:minmaxSelections_range\", {\n\t\t\tlng: y,\n\t\t\tminSelections: x,\n\t\t\tmaxSelections: j\n\t\t}) : x ? w.t(\"translation:multipleChoice:minSelections\", {\n\t\t\tlng: y,\n\t\t\tminSelections: x\n\t\t}) : \"\", Y = this.props.choicesLayout === \"grid\" ? k : this.props.choicesLayout === \"horizontal\" ? O : h;\n\t\treturn /* @__PURE__ */ f(T, {\n\t\t\tid: this.mainContainerId,\n\t\t\tclassName: e(i, \"multiple-choice\", \"main-container\"),\n\t\t\tchildren: [\n\t\t\t\tc && /* @__PURE__ */ d(E, {\n\t\t\t\t\tas: L ? `h${Math.min(6, L + 1)}` : \"h2\",\n\t\t\t\t\tchildren: c\n\t\t\t\t}),\n\t\t\t\tthis.renderHeading(),\n\t\t\t\tg && /* @__PURE__ */ d(D, { children: v ? q : /* @__PURE__ */ d(C, {\n\t\t\t\t\tlabels: {\n\t\t\t\t\t\thidden: w.t(\"common:showTeacherInstructions\", { lng: y }),\n\t\t\t\t\t\tvisible: w.t(\"common:hideTeacherInstructions\", { lng: y })\n\t\t\t\t\t},\n\t\t\t\t\tchildren: q\n\t\t\t\t}) }),\n\t\t\t\t/* @__PURE__ */ f(A, {\n\t\t\t\t\trole: o === \"radio\" ? \"radiogroup\" : \"group\",\n\t\t\t\t\tchildren: [\n\t\t\t\t\t\t/* @__PURE__ */ d(S, {\n\t\t\t\t\t\t\tclassName: \"prompt\",\n\t\t\t\t\t\t\tdefaultClassName: \"prompt\",\n\t\t\t\t\t\t\tprompt: K(l),\n\t\t\t\t\t\t\ttagName: \"legend\",\n\t\t\t\t\t\t\tautoplayAudioEnabled: N,\n\t\t\t\t\t\t\tcustomAudioButton: F,\n\t\t\t\t\t\t\tlanguage: y\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t!(I && _) && /* @__PURE__ */ d(p, {\n\t\t\t\t\t\t\tshow: H,\n\t\t\t\t\t\t\ttoggled: z,\n\t\t\t\t\t\t\tonToggle: this.onToggle.bind(this),\n\t\t\t\t\t\t\tlanguage: y\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t/* @__PURE__ */ d(Y, {\n\t\t\t\t\t\t\tstyle: U,\n\t\t\t\t\t\t\tchildren: a.map((e, n) => /* @__PURE__ */ d(t, {\n\t\t\t\t\t\t\t\tchoicesLayout: this.props.choicesLayout,\n\t\t\t\t\t\t\t\tselectedAnswerBackgroundColor: this.props.selectedAnswerBackgroundColor,\n\t\t\t\t\t\t\t\tselectedAnswerStrokeColor: this.props.selectedAnswerStrokeColor,\n\t\t\t\t\t\t\t\tselectedAnswerStrokeWidth: this.props.selectedAnswerStrokeWidth,\n\t\t\t\t\t\t\t\thoverAnswerBackgroundColor: this.props.hoverAnswerBackgroundColor,\n\t\t\t\t\t\t\t\thoverAnswerStrokeColor: this.props.hoverAnswerStrokeColor,\n\t\t\t\t\t\t\t\thoverAnswerStrokeWidth: this.props.hoverAnswerStrokeWidth,\n\t\t\t\t\t\t\t\tgridColumns: s,\n\t\t\t\t\t\t\t\tchoice: e,\n\t\t\t\t\t\t\t\tindex: n,\n\t\t\t\t\t\t\t\tchoicesLength: a.length,\n\t\t\t\t\t\t\t\tshowCorrect: z,\n\t\t\t\t\t\t\t\tisEvaluateMode: V,\n\t\t\t\t\t\t\t\tchoiceMode: o,\n\t\t\t\t\t\t\t\tdisabled: r || R.includes(String(e.value)),\n\t\t\t\t\t\t\t\ttagName: this.groupName,\n\t\t\t\t\t\t\t\tonChoiceChanged: this.handleChange,\n\t\t\t\t\t\t\t\thideTick: e.hideTick,\n\t\t\t\t\t\t\t\tchecked: this.getChecked(e),\n\t\t\t\t\t\t\t\tcorrectness: V ? this.getCorrectness(e) : void 0,\n\t\t\t\t\t\t\t\tdisplayKey: this.indexToSymbol(n),\n\t\t\t\t\t\t\t\tisSelectionButtonBelow: b\n\t\t\t\t\t\t\t}, `choice-${n}`))\n\t\t\t\t\t\t})\n\t\t\t\t\t]\n\t\t\t\t}),\n\t\t\t\to === \"checkbox\" && W < x && /* @__PURE__ */ d(M, { children: J() }),\n\t\t\t\to === \"checkbox\" && B && /* @__PURE__ */ d(M, { children: w.t(`translation:multipleChoice:maxSelections_${j === 1 ? \"one\" : \"other\"}`, {\n\t\t\t\t\tlng: y,\n\t\t\t\t\tmaxSelections: j\n\t\t\t\t}) })\n\t\t\t]\n\t\t});\n\t}\n};\nN.defaultProps = { session: { value: [] } };\n//#endregion\nexport { N as MultipleChoice, N as default };\n","import { MultipleChoice as e } from \"./multiple-choice.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport * as r from \"@pie-lib/render-ui\";\nimport { PreviewLayout as i } from \"@pie-lib/render-ui\";\nimport { jsx as a } from \"react/jsx-runtime\";\n//#region src/delivery/main.tsx\nfunction o(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction s(e, t) {\n\treturn !e || o(e) ? e : o(e.default) ? e.default : t && o(e[t]) ? e[t] : t && o(e[t]?.default) ? e[t].default : e;\n}\nvar c = r, l = c.default, u = l && typeof l == \"object\" ? l : c, d = s(i, \"PreviewLayout\") || s(u.PreviewLayout, \"PreviewLayout\"), f = class extends t.Component {\n\tstatic propTypes = {\n\t\tmodel: n.object,\n\t\tsession: n.object,\n\t\toptions: n.object,\n\t\tonChoiceChanged: n.func,\n\t\tonShowCorrectToggle: n.func,\n\t\textraCSSRules: n.shape({\n\t\t\tnames: n.arrayOf(n.string),\n\t\t\trules: n.string\n\t\t}),\n\t\tbaseHeadingLevel: n.number,\n\t\tincludeSrHeading: n.bool,\n\t\teliminatedChoices: n.arrayOf(n.string)\n\t};\n\tstatic defaultProps = {\n\t\tmodel: {},\n\t\tsession: {}\n\t};\n\trender() {\n\t\tlet { model: t, onChoiceChanged: n, session: r, onShowCorrectToggle: i, options: o, baseHeadingLevel: s, includeSrHeading: c, eliminatedChoices: l } = this.props, { extraCSSRules: u, fontSizeFactor: f } = t;\n\t\treturn /* @__PURE__ */ a(d, {\n\t\t\textraCSSRules: u,\n\t\t\tfontSizeFactor: f,\n\t\t\tclasses: {},\n\t\t\tchildren: /* @__PURE__ */ a(e, {\n\t\t\t\t...t,\n\t\t\t\toptions: o,\n\t\t\t\tsession: r,\n\t\t\t\tonChoiceChanged: n,\n\t\t\t\tonShowCorrectToggle: i,\n\t\t\t\tbaseHeadingLevel: s,\n\t\t\t\tincludeSrHeading: c,\n\t\t\t\teliminatedChoices: l\n\t\t\t})\n\t\t});\n\t}\n};\n//#endregion\nexport { f as default };\n","//#region src/delivery/session-updater.ts\nfunction e(e, t, n) {\n\te.value = e.value || [], t === \"checkbox\" && (n.selected ? e.value = Array.from(/* @__PURE__ */ new Set([...e.value, n.value])) : e.value = e.value.filter((e) => e !== n.value)), t === \"radio\" && (n.selected ? e.value = [n.value] : e.value = []), e.selector = n.selector;\n}\nfunction t(e, t) {\n\te.audioStartTime = e.audioStartTime || t.audioStartTime, e.audioEndTime = e.audioEndTime || t.audioEndTime, !e.waitTime && e.audioStartTime && e.audioEndTime && (e.waitTime = e.audioEndTime - e.audioStartTime);\n}\n//#endregion\nexport { t as updateSessionMetadata, e as updateSessionValue };\n","import { exceedsMaxSelections as e } from \"./utils.js\";\nimport t from \"./main.js\";\nimport { updateSessionMetadata as n, updateSessionValue as r } from \"./session-updater.js\";\nimport i from \"react\";\nimport * as a from \"@pie-lib/render-ui\";\nimport { EnableAudioAutoplayImage as o, createUniqueId as s } from \"@pie-lib/render-ui\";\nimport c from \"@pie-lib/translator\";\nimport { createRoot as l } from \"react-dom/client\";\nimport { debounce as u } from \"@pie-element/shared-lodash\";\nimport d from \"debug\";\nimport { ModelSetEvent as f, SessionChangedEvent as p, createSessionNotifier as m, flushSessionNotifiers as h } from \"@pie-element/shared-player-events\";\nimport { renderMath as g } from \"@pie-element/shared-math-rendering-mathjax\";\n//#region src/delivery/index.ts\nfunction _(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction v(e, t) {\n\treturn !e || _(e) ? e : _(e.default) ? e.default : t && _(e[t]) ? e[t] : t && _(e[t]?.default) ? e[t].default : e;\n}\nvar y = a, b = y.default, x = b && typeof b == \"object\" ? b : y, S = v(o, \"EnableAudioAutoplayImage\") || v(x.EnableAudioAutoplayImage, \"EnableAudioAutoplayImage\"), { translator: C } = c, w = d(\"pie-ui:multiple-choice\"), T = (t, n, r, i) => {\n\tlet { completeAudioEnabled: a } = n || {};\n\tif (a && !r && i) {\n\t\tlet e = i.querySelector(\"audio\"), t = e && e.closest(\".preview-prompt\");\n\t\tif (e && t) return !1;\n\t}\n\tif (!t || !t.value) return !1;\n\tlet { choiceMode: o, minSelections: s = 1, maxSelections: c } = n || {}, l = t.value.length || 0;\n\treturn o === \"radio\" ? !!l : !(l < s || e(l, c));\n};\nfunction E(e) {\n\tlet t = e.closest(\"pie-player\") || e.closest(\"pie-item-player\");\n\tif (!t) return {\n\t\tbaseHeadingLevel: void 0,\n\t\tincludeSrHeading: !0\n\t};\n\tlet n = (e, n, r) => {\n\t\tlet i = t[e];\n\t\treturn i ??= t.getAttribute(n) ?? t.getAttribute(r), i;\n\t}, r = n(\"baseHeadingLevel\", \"base-heading-level\", \"baseheadinglevel\"), i = parseInt(r, 10), a = Number.isFinite(i) && i >= 1 && i <= 6 ? i : void 0, o = n(\"includeSrHeading\", \"include-sr-heading\", \"includesrheading\");\n\treturn {\n\t\tbaseHeadingLevel: a,\n\t\tincludeSrHeading: o == null || o !== !1 && o !== \"false\"\n\t};\n}\nfunction D(e) {\n\tlet t = E(e);\n\treturn {\n\t\tbaseHeadingLevel: e._baseHeadingLevel === void 0 ? t.baseHeadingLevel : e._baseHeadingLevel,\n\t\tincludeSrHeading: e._includeSrHeading === void 0 ? t.includeSrHeading : e._includeSrHeading\n\t};\n}\nvar O = class extends HTMLElement {\n\tstatic pieSupports = Object.freeze([\"answer-masking\"]);\n\tconstructor() {\n\t\tsuper(), this._model = null, this._session = null, this._eliminatedChoices = /* @__PURE__ */ new Set(), this._options = null, this.audioComplete = !1, this._boundHandleKeyDown = this.handleKeyDown.bind(this), this._keyboardEventsEnabled = !1, this._audioInitialized = !1, this._root = null, this._mathObserver = null, this._mathRenderPending = !1, this._rerender = u(() => {\n\t\t\tif (this._model && this._session) {\n\t\t\t\tvar e = i.createElement(t, {\n\t\t\t\t\tmodel: this._model,\n\t\t\t\t\tsession: this._session,\n\t\t\t\t\toptions: this._options,\n\t\t\t\t\tonChoiceChanged: this._onChange.bind(this),\n\t\t\t\t\tonShowCorrectToggle: this.onShowCorrectToggle.bind(this),\n\t\t\t\t\teliminatedChoices: [...this._eliminatedChoices],\n\t\t\t\t\t...D(this)\n\t\t\t\t});\n\t\t\t\tthis.setAttribute(\"aria-label\", C.t(this._model.choiceMode === \"radio\" ? \"multipleChoice.multipleChoiceQuestion\" : \"multipleChoice.multipleCorrectAnswerQuestion\", { lng: this._model.language })), this.setAttribute(\"role\", \"region\"), this.setLangAttribute(), this._initMathObserver(), this._root ||= l(this), this._root.render(e), this._model.keyboardEventsEnabled === !0 && !this._keyboardEventsEnabled && this.enableKeyboardEvents();\n\t\t\t} else w(\"skip\");\n\t\t}, 50, {\n\t\t\tleading: !1,\n\t\t\ttrailing: !0\n\t\t}), this._sessionNotifier = m(this, () => {\n\t\t\tthis.dispatchEvent(new p(this.tagName.toLowerCase(), T(this._session, this._model, this.audioComplete, this)));\n\t\t}), this._dispatchResponseChanged = () => this._sessionNotifier.notify(), this._dispatchModelSet = u(() => {\n\t\t\tthis.dispatchEvent(new f(this.tagName.toLowerCase(), T(this._session, this._model, this.audioComplete, this), this._model !== void 0));\n\t\t}, 50, {\n\t\t\tleading: !1,\n\t\t\ttrailing: !0\n\t\t});\n\t}\n\t_scheduleMathRender = () => {\n\t\tthis._mathRenderPending || (this._mathRenderPending = !0, requestAnimationFrame(() => {\n\t\t\tthis._mathObserver && this._mathObserver.disconnect(), w(\"render complete - render math\"), g(this), this._mathRenderPending = !1, setTimeout(() => {\n\t\t\t\tthis._mathObserver && this._mathObserver.observe(this, {\n\t\t\t\t\tchildList: !0,\n\t\t\t\t\tsubtree: !0\n\t\t\t\t});\n\t\t\t}, 50);\n\t\t}));\n\t};\n\t_initMathObserver() {\n\t\tthis._mathObserver || (this._mathObserver = new MutationObserver(this._scheduleMathRender), this._mathObserver.observe(this, {\n\t\t\tchildList: !0,\n\t\t\tsubtree: !0\n\t\t}));\n\t}\n\t_disconnectMathObserver() {\n\t\tthis._mathObserver &&= (this._mathObserver.disconnect(), null);\n\t}\n\tonShowCorrectToggle() {\n\t\tg(this);\n\t}\n\tsetLangAttribute() {\n\t\tlet e = this._model && typeof this._model.language ? this._model.language : \"\", t = e ? e.slice(0, 2) : \"en\";\n\t\tthis.setAttribute(\"lang\", t);\n\t}\n\tset model(e) {\n\t\tthis._model = e, this._rerender(), this._audioInitialized = !1, this._dispatchModelSet();\n\t}\n\tget session() {\n\t\treturn this._session;\n\t}\n\tget options() {\n\t\treturn this._options;\n\t}\n\tset options(e) {\n\t\tthis._options = e, this._rerender();\n\t}\n\tset baseHeadingLevel(e) {\n\t\tthis._baseHeadingLevel = e, this._rerender();\n\t}\n\tset includeSrHeading(e) {\n\t\tthis._includeSrHeading = e, this._rerender();\n\t}\n\tset session(e) {\n\t\tthis._session = e, this._rerender();\n\t}\n\t_onChange(e) {\n\t\te.selected && this._eliminatedChoices.has(String(e.value)) || (r(this._session, this._model.choiceMode, e), this._dispatchResponseChanged(), this._rerender());\n\t}\n\tpieSupportTargets(e) {\n\t\treturn e === \"answer-masking\" ? Array.from(this.querySelectorAll(\".choice-input\")).flatMap((e) => {\n\t\t\tlet t = e.querySelector(\"input[type=\\\"radio\\\"], input[type=\\\"checkbox\\\"]\"), n = e.querySelector(\"label\");\n\t\t\tif (!t?.value || !n) return [];\n\t\t\tlet { value: r } = t;\n\t\t\treturn [{\n\t\t\t\tid: r,\n\t\t\t\tlabel: (n.querySelector(\".prompt-label\") ?? n).textContent.trim(),\n\t\t\t\tcontainer: e,\n\t\t\t\tcontent: n,\n\t\t\t\tisSelected: () => this._isChoiceSelected(r),\n\t\t\t\tisEliminable: () => this._model?.mode === \"gather\" && !this._model.disabled && !this._isChoiceSelected(r),\n\t\t\t\tsetEliminated: (e) => this._setChoiceEliminated(r, e)\n\t\t\t}];\n\t\t}) : [];\n\t}\n\t_isChoiceSelected(e) {\n\t\treturn (this._session?.value ?? []).some((t) => String(t) === e);\n\t}\n\t_setChoiceEliminated(e, t) {\n\t\tt !== this._eliminatedChoices.has(e) && (t ? this._eliminatedChoices.add(e) : this._eliminatedChoices.delete(e), this._rerender());\n\t}\n\t_createAudioInfoToast() {\n\t\tlet e = document.createElement(\"div\");\n\t\te.id = s(\"play-audio-info\"), e.className = \"play-audio-info\", Object.assign(e.style, {\n\t\t\tposition: \"absolute\",\n\t\t\ttop: 0,\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\",\n\t\t\tdisplay: \"flex\",\n\t\t\tjustifyContent: \"center\",\n\t\t\talignItems: \"center\",\n\t\t\tbackground: \"white\",\n\t\t\tzIndex: \"1000\",\n\t\t\tcursor: \"pointer\"\n\t\t});\n\t\tlet t = document.createElement(\"img\");\n\t\treturn t.src = S, t.alt = \"Click anywhere to enable audio autoplay\", t.width = 500, t.height = 300, e.appendChild(t), e;\n\t}\n\tconnectedCallback() {\n\t\tthis._initMathObserver(), this._initPlayerObserver(), this._rerender(), new MutationObserver((e, t) => {\n\t\t\te.forEach((e) => {\n\t\t\t\tif (e.type === \"childList\") {\n\t\t\t\t\tif (this._audioInitialized) return;\n\t\t\t\t\tlet e = this.querySelector(\"audio\"), r = e && e.closest(\".preview-prompt\");\n\t\t\t\t\tif (!this._model) return;\n\t\t\t\t\tlet { autoplayAudioEnabled: i, completeAudioEnabled: a } = this._model;\n\t\t\t\t\tif (!i && !a || e && !r || !e) return;\n\t\t\t\t\tlet o = this._createAudioInfoToast(), s = this.querySelector(\".main-container\"), c = () => {\n\t\t\t\t\t\tthis.querySelector(\".play-audio-info\") && (e.play(), s.removeChild(o)), document.removeEventListener(\"click\", c);\n\t\t\t\t\t};\n\t\t\t\t\ti && setTimeout(() => {\n\t\t\t\t\t\te.paused && !this.querySelector(\".play-audio-info\") ? (s.appendChild(o), document.addEventListener(\"click\", c)) : document.removeEventListener(\"click\", c);\n\t\t\t\t\t}, 500);\n\t\t\t\t\tlet l = () => {\n\t\t\t\t\t\tn(this._session, { audioStartTime: (/* @__PURE__ */ new Date()).getTime() });\n\t\t\t\t\t\tlet t = this.querySelector(\".play-audio-info\");\n\t\t\t\t\t\tt && s.removeChild(t), e.removeEventListener(\"playing\", l);\n\t\t\t\t\t};\n\t\t\t\t\te.addEventListener(\"playing\", l);\n\t\t\t\t\tlet u = () => {\n\t\t\t\t\t\tn(this._session, { audioEndTime: (/* @__PURE__ */ new Date()).getTime() }), this.audioComplete = !0, this._dispatchResponseChanged(), e.removeEventListener(\"ended\", u);\n\t\t\t\t\t};\n\t\t\t\t\te.addEventListener(\"ended\", u), this._audio = e, this._handlePlaying = l, this._handleEnded = u, this._enableAudio = c, this._audioInitialized = !0, t.disconnect();\n\t\t\t\t}\n\t\t\t});\n\t\t}).observe(this, {\n\t\t\tchildList: !0,\n\t\t\tsubtree: !0\n\t\t});\n\t}\n\tenableKeyboardEvents() {\n\t\tthis._keyboardEventsEnabled ||= (window.addEventListener(\"keydown\", this._boundHandleKeyDown), !0);\n\t}\n\t_initPlayerObserver() {\n\t\tlet e = this.closest(\"pie-player\") || this.closest(\"pie-item-player\");\n\t\te && (this._playerObserver = new MutationObserver(() => {\n\t\t\tthis._rerender();\n\t\t}), this._playerObserver.observe(e, {\n\t\t\tattributes: !0,\n\t\t\tattributeFilter: [\n\t\t\t\t\"base-heading-level\",\n\t\t\t\t\"baseheadinglevel\",\n\t\t\t\t\"include-sr-heading\",\n\t\t\t\t\"includesrheading\"\n\t\t\t]\n\t\t}));\n\t}\n\t_disconnectPlayerObserver() {\n\t\tthis._playerObserver &&= (this._playerObserver.disconnect(), null);\n\t}\n\tdisconnectedCallback() {\n\t\th(this), this._disconnectMathObserver(), this._disconnectPlayerObserver(), this._keyboardEventsEnabled &&= (window.removeEventListener(\"keydown\", this._boundHandleKeyDown), !1), document.removeEventListener(\"click\", this._enableAudio), this._audio &&= (this._audio.removeEventListener(\"playing\", this._handlePlaying), this._audio.removeEventListener(\"ended\", this._handleEnded), null), this._rerender.cancel(), this._root &&= (this._root.unmount(), null);\n\t}\n\thandleKeyDown(e) {\n\t\tif (!this._model || !this._session) return;\n\t\tlet { mode: t } = this._model;\n\t\tif (t !== \"gather\") return;\n\t\tlet n = ((e) => {\n\t\t\tlet t = e >= \"1\" && e <= \"9\" ? e - \"1\" : e === \"0\" ? 9 : -1, n = /^[a-jA-J]$/.test(e) ? e.toLowerCase().charCodeAt(0) - 97 : -1;\n\t\t\treturn t >= 0 ? t : n;\n\t\t})(e.key);\n\t\tif (n === void 0 || n <= -1 || n >= this._model.choices?.length) return;\n\t\tlet r = this._session.value || [], i = this._model.choices[n].value, a = r.includes(i), o = {\n\t\t\tvalue: i,\n\t\t\tselected: this._model.choiceMode === \"radio\" || !a,\n\t\t\tselector: \"Keyboard\"\n\t\t};\n\t\tthis._onChange(o);\n\t}\n};\n//#endregion\nexport { O as default, T as isComplete };\n"],"x_google_ignoreList":[2],"mappings":";;;;;;AACA,IAAI,IAAI,wBAAwB,oBAAoB,IAAI,QAAQ;AAChE,SAAS,EAAE,GAAG,GAAG;CAChB,IAAI,IAAI,EAAE,IAAI,CAAC;CACf,MAAM,oBAAoB,IAAI,IAAI,GAAG,EAAE,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC;AAC3D;AACA,SAAS,EAAE,GAAG;CACb,OAAO,OAAO,yBAAyB,GAAG,CAAC,MAAM,KAAK;AACvD;AACA,SAAS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AAY,GAAG,KAAK,YAAY,KAAK,OAAO,oBAAoB,WAAW,KAAK,cAAc,GAAG,KAAK,OAAO,oBAAoB,SAAS,KAAK,YAAY,GAAG,OAAO,KAAK,UAAU,OAAO,GAAG,KAAK,WAAW,KAAK,MAAM,QAAQ,GAAG;CAClc;CACA,cAAc,GAAG;EAChB,IAAI,CAAC,KAAK,UAAU,CAAC,KAAK,UAAU;EACpC,IAAI,EAAE,MAAM,MAAM,KAAK;EACvB,IAAI,MAAM,UAAU;EACpB,IAAI,MAAM,MAAM;GACf,IAAI,IAAI,KAAK,OAAO,KAAK,MAAM,IAAI,MAAM,MAAM,MAAM,IAAI,IAAI,IAAI,aAAa,KAAK,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,WAAW,CAAC,IAAI,KAAK;GAC7H,OAAO,KAAK,IAAI,IAAI;EACrB,EAAA,CAAG,EAAE,GAAG;EACR,IAAI,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,KAAK,OAAO,SAAS,QAAQ;EACjE,IAAI,IAAI,KAAK,SAAS,SAAS,CAAC,GAAG,IAAI,KAAK,OAAO,QAAQ,EAAE,CAAC,OAAO,IAAI,EAAE,SAAS,CAAC,GAAG,IAAI;GAC3F,OAAO;GACP,UAAU,KAAK,OAAO,eAAe,WAAW,CAAC;GACjD,UAAU;EACX;EACA,KAAK,UAAU,CAAC;CACjB;AACD"}
|
|
1
|
+
{"version":3,"file":"delivery-CI5tMNOF.js","names":["e","t"],"sources":["../../../../../shared/player-events/dist/index.js","../../../../multiple-choice/dist/delivery/utils.js","../../../../multiple-choice/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js","../../../../../lib-react/icons/dist/correct-response-icon.js","../../../../multiple-choice/dist/delivery/feedback-tick.js","../../../../multiple-choice/dist/delivery/choice-input.js","../../../../multiple-choice/dist/delivery/choice.js","../../../../../lib-react/correct-answer-toggle/dist/expander.js","../../../../../lib-react/correct-answer-toggle/dist/index.js","../../../../multiple-choice/dist/delivery/multiple-choice.js","../../../../multiple-choice/dist/delivery/main.js","../../../../multiple-choice/dist/delivery/session-updater.js","../../../../multiple-choice/dist/delivery/index.js"],"sourcesContent":["//#region src/session-notifier.ts\nvar e = \"commitPendingSession\", t = /* @__PURE__ */ new WeakMap();\nfunction n(e, n) {\n\tlet r = t.get(e);\n\tr || (r = /* @__PURE__ */ new Set(), t.set(e, r)), r.add(n);\n}\nfunction r(t) {\n\treturn Object.getOwnPropertyDescriptor(t, e) !== void 0;\n}\nfunction i(t) {\n\tif (r(t)) return;\n\tlet n = t[e];\n\tObject.defineProperty(t, e, {\n\t\tvalue: () => {\n\t\t\tif (typeof n == \"function\") try {\n\t\t\t\tn.call(t);\n\t\t\t} catch {}\n\t\t\to(t);\n\t\t},\n\t\tconfigurable: !0,\n\t\tenumerable: !1,\n\t\twritable: !0\n\t});\n}\nfunction a(e, t, r = {}) {\n\tlet a = r.delayMs, o = typeof a == \"function\" ? a : () => a ?? 0, s = r.maxWaitMs, c = null, l = null, u = !1, d = () => {\n\t\tc !== null && (clearTimeout(c), c = null), l !== null && (clearTimeout(l), l = null);\n\t}, f = () => {\n\t\td(), u && (u = !1, t());\n\t}, p = {\n\t\tnotify() {\n\t\t\tu = !0, c !== null && clearTimeout(c), c = setTimeout(f, Math.max(0, o())), s !== void 0 && l === null && (l = setTimeout(f, Math.max(0, s)));\n\t\t},\n\t\tflush() {\n\t\t\tif (!u) {\n\t\t\t\td();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tf();\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(\"[session-notifier] a committed session-changed dispatch threw\", e);\n\t\t\t}\n\t\t}\n\t};\n\treturn n(e, p), i(e), p;\n}\nfunction o(e) {\n\tlet n = t.get(e);\n\tif (n) for (let e of [...n]) e.flush();\n}\n//#endregion\n//#region ../../../node_modules/.bun/@pie-players+pie-context@1.0.0-beta.3/node_modules/@pie-players/pie-context/dist/events.js\nfunction s(e, t, n) {\n\tlet r = t.ownerDocument?.defaultView?.Event ?? Event;\n\treturn Object.assign(new r(e, {\n\t\tbubbles: !0,\n\t\tcomposed: !0\n\t}), n);\n}\nvar c = /* @__PURE__ */ new WeakSet(), l = (e, t) => typeof t == \"object\" && !!t && e.has(t), u = class {\n\tconstructor(e, t, n, r) {\n\t\tlet i = s(\"context-request\", t, {\n\t\t\tcontext: e,\n\t\t\tcontextTarget: t,\n\t\t\tcallback: n,\n\t\t\tsubscribe: r ?? !1\n\t\t});\n\t\treturn c.add(i), i;\n\t}\n\tstatic [Symbol.hasInstance](e) {\n\t\treturn l(c, e);\n\t}\n}, d = (e) => {\n\tlet t = [];\n\tfor (let n of e) n.requestorRef.deref() && n.callbackRef.deref() && t.push(n);\n\treturn t;\n}, f = class {\n\thost;\n\tpendingByContext = /* @__PURE__ */ new Map();\n\tattached = !1;\n\tconstructor(e) {\n\t\tthis.host = e;\n\t}\n\tattach() {\n\t\tthis.attached || (this.attached = !0, this.host.addEventListener(\"context-request\", this.onContextRequest), this.host.addEventListener(\"context-provider\", this.onContextProvider));\n\t}\n\tdetach() {\n\t\tthis.attached && (this.attached = !1, this.host.removeEventListener(\"context-request\", this.onContextRequest), this.host.removeEventListener(\"context-provider\", this.onContextProvider), this.pendingByContext.clear());\n\t}\n\tonContextRequest = (e) => {\n\t\tif (e.cancelBubble) return;\n\t\tlet t = e;\n\t\tif (t.subscribe !== !0 || typeof t.callback != \"function\" || t.context === void 0) return;\n\t\tlet n = t.contextTarget ?? e.composedPath?.()[0];\n\t\tif (!n) return;\n\t\tlet r = this.pendingByContext.get(t.context);\n\t\tr || (r = {\n\t\t\tcallbacks: /* @__PURE__ */ new WeakMap(),\n\t\t\trequests: []\n\t\t}, this.pendingByContext.set(t.context, r));\n\t\tlet i = t.callback, a = r.callbacks.get(n);\n\t\ta || (a = /* @__PURE__ */ new WeakSet(), r.callbacks.set(n, a)), !a.has(i) && (a.add(i), r.requests.push({\n\t\t\trequestorRef: new WeakRef(n),\n\t\t\tcallbackRef: new WeakRef(i)\n\t\t}), r.requests = d(r.requests));\n\t};\n\tonContextProvider = (e) => {\n\t\tlet t = e.context;\n\t\tif (t === void 0) return;\n\t\tlet n = this.pendingByContext.get(t);\n\t\tif (!(!n || n.requests.length === 0)) {\n\t\t\tthis.pendingByContext.delete(t);\n\t\t\tfor (let e of n.requests) {\n\t\t\t\tlet n = e.requestorRef.deref(), r = e.callbackRef.deref();\n\t\t\t\t!n || !r || n.dispatchEvent(new u(t, n, r, !0));\n\t\t\t}\n\t\t}\n\t};\n}, p = Symbol.for(\"pie.context.documentRoot\");\nfunction m(e) {\n\tif (!e) return;\n\tlet t = e;\n\tif (t[p]) return;\n\tlet n = e.documentElement;\n\tif (!n) return;\n\tlet r = new f(n);\n\tr.attach(), t[p] = r;\n}\n//#endregion\n//#region ../../../node_modules/.bun/@pie-players+pie-context@1.0.0-beta.3/node_modules/@pie-players/pie-context/dist/consumer.js\nvar h = class {\n\thost;\n\tcontext;\n\tsubscribe;\n\tonValue;\n\tisConnected = !1;\n\tisDisconnected = !1;\n\tunsubscribe;\n\tcurrentValue;\n\tconstructor(e, t) {\n\t\tthis.host = e, this.context = t.context, this.subscribe = t.subscribe ?? !0, this.onValue = t.onValue;\n\t}\n\tconnect() {\n\t\tthis.isConnected || (this.isConnected = !0, this.isDisconnected = !1, this.subscribe && m(this.host.ownerDocument), this.requestValue());\n\t}\n\tdisconnect() {\n\t\tthis.isConnected && (this.isConnected = !1, this.isDisconnected = !0, this.unsubscribe?.(), this.unsubscribe = void 0);\n\t}\n\tget value() {\n\t\treturn this.currentValue;\n\t}\n\thandleValue = (e, t) => {\n\t\tif (this.isDisconnected) {\n\t\t\tt?.();\n\t\t\treturn;\n\t\t}\n\t\tt !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = t), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = e, this.onValue?.(e);\n\t};\n\trequestValue() {\n\t\tthis.host.dispatchEvent(new u(this.context, this.host, this.handleValue, this.subscribe));\n\t}\n}, g = (e, t, n) => {\n\tlet r = new h(e, {\n\t\tcontext: t,\n\t\tsubscribe: !0,\n\t\tonValue: n\n\t});\n\tr.connect();\n\tlet i = (e) => {\n\t\te.context === t && r.requestValue();\n\t};\n\treturn e.addEventListener(\"context-provider\", i), () => {\n\t\te.removeEventListener(\"context-provider\", i), r.disconnect();\n\t};\n}, _ = ((e) => e)(Symbol.for(\"pie.sessionCommit\")), v = 1500;\nfunction y(e) {\n\treturn typeof e == \"number\" && Number.isFinite(e) && e >= 0 ? e : v;\n}\nfunction b(e, t) {\n\treturn g(e, _, (e) => {\n\t\tt(y(e?.idleSaveDelayMs));\n\t});\n}\n//#endregion\n//#region src/index.ts\nvar x = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"model-set\";\n\t}\n\tconstructor(t, n, r) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t,\n\t\t\t\thasModel: r\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n}, S = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"session-changed\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n};\n//#endregion\nexport { v as DEFAULT_IDLE_SAVE_DELAY_MS, x as ModelSetEvent, e as SESSION_COMMIT_METHOD, S as SessionChangedEvent, a as createSessionNotifier, o as flushSessionNotifiers, y as resolveIdleSaveDelay, b as subscribeIdleSaveDelay };\n","//#region src/delivery/utils.ts\nvar e = (e, t) => t != null && e >= t, t = (e, t) => t != null && e > t;\n//#endregion\nexport { t as exceedsMaxSelections, e as reachedMaxSelections };\n","//#region ../../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs\nfunction e(t) {\n\tvar n, r, i = \"\";\n\tif (typeof t == \"string\" || typeof t == \"number\") i += t;\n\telse if (typeof t == \"object\") if (Array.isArray(t)) {\n\t\tvar a = t.length;\n\t\tfor (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += \" \"), i += r);\n\t} else for (r in t) t[r] && (i && (i += \" \"), i += r);\n\treturn i;\n}\nfunction t() {\n\tfor (var t, n, r = 0, i = \"\", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += \" \"), i += n);\n\treturn i;\n}\n//#endregion\nexport { t as clsx, t as default };\n","import \"react\";\nimport e from \"prop-types\";\nimport { jsx as t, jsxs as n } from \"react/jsx-runtime\";\nimport { styled as r } from \"@mui/material/styles\";\n//#region src/correct-response-icon.tsx\nvar i = ({ bgFill: e, fgFill: r }) => /* @__PURE__ */ n(\"svg\", {\n\t\"aria-hidden\": \"true\",\n\tfocusable: \"false\",\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-283 359 34 35\",\n\tstyle: { enableBackground: \"new -283 359 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-266\",\n\t\t\tcy: \"375.9\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z\\n M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\ni.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired\n};\nvar a = ({ bgFill: e, fgFill: r, borderFill: i }) => /* @__PURE__ */ n(\"svg\", {\n\t\"aria-hidden\": \"true\",\n\tfocusable: \"false\",\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-129.5 127 34 35\",\n\tstyle: { enableBackground: \"new -129.5 127 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#D0CAC5\",\n\t\t\t\tstroke: \"#E6E3E0\",\n\t\t\t\tstrokeWidth: .75,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5\\n C-97.4,153.5-104.3,160.4-112.9,160.4z\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#B3ABA4\",\n\t\t\t\tstroke: \"#CDC7C2\",\n\t\t\t\tstrokeWidth: .5,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-114.2\",\n\t\t\tcy: \"143.5\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z\\n M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\",\n\t\t\tfill: i\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\na.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired,\n\tborderFill: e.string.isRequired\n};\nvar o = r(\"div\")(({ size: e }) => ({\n\twidth: e || \"25px\",\n\theight: e || \"25px\"\n})), s = ({ open: e, size: n }) => /* @__PURE__ */ t(o, {\n\tsize: n,\n\tchildren: e ? /* @__PURE__ */ t(i, {\n\t\tbgFill: \"#bce2ff\",\n\t\tfgFill: \"#1a9cff\"\n\t}) : /* @__PURE__ */ t(a, {\n\t\tbgFill: \"white\",\n\t\tfgFill: \"#1a9cff\",\n\t\tborderFill: \"#bce2ff\"\n\t})\n});\ns.propTypes = {\n\topen: e.bool,\n\tsize: e.string\n}, s.defaultProps = { open: !1 };\n//#endregion\nexport { s as default };\n","import e from \"react\";\nimport t from \"prop-types\";\nimport { color as n } from \"@pie-lib/render-ui\";\nimport { jsx as r, jsxs as i } from \"react/jsx-runtime\";\nimport { styled as a } from \"@mui/material/styles\";\nimport o from \"@mui/material/Box\";\nimport { CSSTransition as s, TransitionGroup as c } from \"react-transition-group\";\n//#region src/delivery/feedback-tick.tsx\nvar l = a(o)({\n\twidth: \"33px\",\n\theight: \"33px\",\n\t\"& svg\": {\n\t\tposition: \"absolute\",\n\t\tdisplay: \"inline-block\",\n\t\twidth: \"33px\",\n\t\theight: \"33px\",\n\t\tverticalAlign: \"middle\",\n\t\t\"& hide\": { display: \"none\" }\n\t}\n}), u = a(\"svg\")({\n\t\"& .incorrect-fill\": { fill: n.incorrect() },\n\t\"& .correct-fill\": { fill: n.correct() }\n}), d = a(\"div\")({\n\tposition: \"relative\",\n\t\"&.feedback-tick-enter\": {\n\t\topacity: \"0\",\n\t\tleft: \"-50px\"\n\t},\n\t\"&.feedback-tick-enter-active\": {\n\t\topacity: \"1\",\n\t\tleft: \"0px\",\n\t\ttransition: \"left 500ms ease-in 200ms, opacity 500ms linear 200ms\"\n\t},\n\t\"&.feedback-tick-exit\": {\n\t\topacity: \"1\",\n\t\tleft: \"0px\"\n\t},\n\t\"&.feedback-tick-exit-active\": {\n\t\topacity: \"0\",\n\t\tleft: \"-50px\",\n\t\ttransition: \"left 300ms ease-in, opacity 300ms\"\n\t}\n}), f = class extends e.Component {\n\tstatic propTypes = { correctness: t.string };\n\tconstructor(t) {\n\t\tsuper(t), this.nodeRef = e.createRef();\n\t}\n\tgetIncorrectIcon = () => /* @__PURE__ */ r(u, {\n\t\tpreserveAspectRatio: \"xMinYMin meet\",\n\t\tx: \"0px\",\n\t\ty: \"0px\",\n\t\tviewBox: \"0 0 44 40\",\n\t\tstyle: { enableBackground: \"new 0 0 44 40\" },\n\t\tchildren: /* @__PURE__ */ i(\"g\", { children: [/* @__PURE__ */ r(\"rect\", {\n\t\t\tx: \"11\",\n\t\t\ty: \"17.3\",\n\t\t\ttransform: \"matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)\",\n\t\t\tclassName: \"incorrect-fill\",\n\t\t\twidth: \"16.6\",\n\t\t\theight: \"3.7\"\n\t\t}), /* @__PURE__ */ r(\"rect\", {\n\t\t\tx: \"17.4\",\n\t\t\ty: \"10.7\",\n\t\t\ttransform: \"matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)\",\n\t\t\tclassName: \"incorrect-fill\",\n\t\t\twidth: \"3.7\",\n\t\t\theight: \"16.6\"\n\t\t})] })\n\t}, \"1\");\n\tgetCorrectIcon = () => /* @__PURE__ */ r(u, {\n\t\tpreserveAspectRatio: \"xMinYMin meet\",\n\t\tversion: \"1.1\",\n\t\tx: \"0px\",\n\t\ty: \"0px\",\n\t\tviewBox: \"0 0 44 40\",\n\t\tstyle: { enableBackground: \"new 0 0 44 40\" },\n\t\tchildren: /* @__PURE__ */ r(\"polygon\", {\n\t\t\tclassName: \"correct-fill\",\n\t\t\tpoints: \"19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4\"\n\t\t})\n\t}, \"2\");\n\trender() {\n\t\tlet { correctness: e } = this.props, t = e === \"incorrect\" ? this.getIncorrectIcon() : e === \"correct\" ? this.getCorrectIcon() : null;\n\t\treturn /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(c, { children: e && /* @__PURE__ */ r(s, {\n\t\t\tnodeRef: this.nodeRef,\n\t\t\tclassNames: {\n\t\t\t\tenter: \"feedback-tick-enter\",\n\t\t\t\tenterActive: \"feedback-tick-enter-active\",\n\t\t\t\texit: \"feedback-tick-exit\",\n\t\t\t\texitActive: \"feedback-tick-exit-active\"\n\t\t\t},\n\t\t\ttimeout: {\n\t\t\t\tenter: 700,\n\t\t\t\texit: 300\n\t\t\t},\n\t\t\tchildren: /* @__PURE__ */ r(d, {\n\t\t\t\tref: this.nodeRef,\n\t\t\t\tchildren: t\n\t\t\t})\n\t\t}) }) });\n\t}\n};\n//#endregion\nexport { f as default };\n","import { clsx as e } from \"../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js\";\nimport t from \"./feedback-tick.js\";\nimport n from \"react\";\nimport r from \"prop-types\";\nimport * as i from \"@pie-lib/render-ui\";\nimport { Feedback as a, PreviewPrompt as o, color as s, createUniqueId as c } from \"@pie-lib/render-ui\";\nimport { Fragment as l, jsx as u, jsxs as d } from \"react/jsx-runtime\";\nimport { styled as f } from \"@mui/material/styles\";\nimport p from \"@mui/material/Box\";\nimport m from \"@mui/material/FormControlLabel\";\nimport h from \"@mui/material/Checkbox\";\nimport g from \"@mui/material/Radio\";\n//#region src/delivery/choice-input.tsx\nfunction _(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction v(e, t) {\n\treturn !e || _(e) ? e : _(e.default) ? e.default : t && _(e[t]) ? e[t] : t && _(e[t]?.default) ? e[t].default : e;\n}\nvar y = i, b = y.default, x = b && typeof b == \"object\" ? b : y, S = v(o, \"PreviewPrompt\") || v(x.PreviewPrompt, \"PreviewPrompt\"), C = v(a, \"Feedback\") || v(x.Feedback, \"Feedback\"), w = \"multiple-choice-component\", T = f(p)({\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tbackgroundColor: s.background()\n}), E = f(p)({\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tbackgroundColor: s.background(),\n\tflex: 1,\n\t\"& .MuiFormControlLabel-root\": { marginLeft: \"-14px\" },\n\t\"& label\": {\n\t\tcolor: s.text(),\n\t\t\"& > span\": { fontSize: \"inherit\" },\n\t\t\"& > .MuiButtonBase-root\": { padding: \"12px\" }\n\t}\n}), D = f(\"span\")(({ theme: e }) => ({\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\t\"& > span\": { marginLeft: `-${e.spacing(1)}` }\n})), O = f(\"span\")({\n\tposition: \"absolute\",\n\tleft: \"-10000px\",\n\ttop: \"auto\",\n\twidth: \"1px\",\n\theight: \"1px\",\n\toverflow: \"hidden\"\n}), k = f(m)({\n\t\"& .MuiFormControlLabel-label\": {\n\t\tcolor: `${s.text()} !important`,\n\t\tbackgroundColor: s.background(),\n\t\tletterSpacing: \"normal\"\n\t},\n\t\"&.Mui-disabled *\": { cursor: \"not-allowed !important\" }\n}), A = (e, t) => ({ [`&.${w}`]: { color: `var(--choice-input-${e}, ${t}) !important` } }), j = (e) => {\n\tlet t = (t) => e ? `${e}-${t}` : t;\n\treturn {\n\t\t[t(\"root\")]: {\n\t\t\t...A(\"color\", s.text()),\n\t\t\t...e === \"correct\" ? A(\"correct-color\", s.text()) : {},\n\t\t\t...e === \"incorrect\" ? A(\"incorrect-color\", s.incorrect()) : {}\n\t\t},\n\t\t[t(\"checked\")]: {\n\t\t\t...e === \"correct\" ? A(\"correct-selected-color\", s.correct()) : {},\n\t\t\t...e === \"incorrect\" ? A(\"incorrect-checked\", s.incorrect()) : {},\n\t\t\t...e ? {} : A(\"selected-color\", s.primary())\n\t\t},\n\t\t[t(\"disabled\")]: {\n\t\t\t...A(\"disabled-color\", s.text()),\n\t\t\t...e === \"correct\" ? A(\"correct-disabled-color\", s.disabled()) : {},\n\t\t\t...e === \"incorrect\" ? A(\"incorrect-disabled-color\", s.disabled()) : {},\n\t\t\topacity: .6,\n\t\t\tcursor: \"not-allowed !important\",\n\t\t\tpointerEvents: \"initial !important\"\n\t\t},\n\t\tfocusVisibleUnchecked: {\n\t\t\toutline: `2px solid ${s.focusOutline()}`,\n\t\t\tbackgroundColor: \"transparent\"\n\t\t},\n\t\tfocusVisibleChecked: {\n\t\t\toutline: `2px solid ${s.focusOutline()}`,\n\t\t\tbackgroundColor: \"transparent\"\n\t\t}\n\t};\n}, M = f(h, { shouldForwardProp: (e) => e !== \"correctness\" })(({ correctness: e }) => {\n\tlet t = j(e), n = (t) => e ? `${e}-${t}` : t;\n\treturn {\n\t\t[`&.${w}`]: {\n\t\t\t...t[n(\"root\")],\n\t\t\t\"&.Mui-checked\": t[n(\"checked\")],\n\t\t\t\"&.Mui-disabled\": e ? {} : t[n(\"disabled\")],\n\t\t\t\"&:hover:not(.Mui-disabled) svg\": {\n\t\t\t\tboxShadow: `0px 0px 0px 2px ${s.focusOutline()}`,\n\t\t\t\tborderRadius: \"4px\"\n\t\t\t}\n\t\t},\n\t\t\"&.Mui-focusVisible\": {\n\t\t\t\"&:not(.Mui-checked)\": t.focusVisibleUnchecked,\n\t\t\t\"&.Mui-checked\": t.focusVisibleChecked\n\t\t}\n\t};\n}), N = (e) => {\n\tlet { correctness: t, checked: n, onChange: r, disabled: i, value: a, id: o, onKeyDown: s, inputRef: c } = e;\n\treturn /* @__PURE__ */ u(M, {\n\t\tid: o,\n\t\tslotProps: { input: { ref: c } },\n\t\tonKeyDown: s,\n\t\tdisableRipple: !0,\n\t\tchecked: n,\n\t\tonChange: r,\n\t\tdisabled: i,\n\t\tvalue: a,\n\t\tcorrectness: t,\n\t\tclassName: w\n\t});\n}, P = f(g, { shouldForwardProp: (e) => e !== \"correctness\" })(({ correctness: e }) => {\n\tlet t = j(e), n = (t) => e ? `${e}-${t}` : t;\n\treturn {\n\t\t[`&.${w}`]: {\n\t\t\t...t[n(\"root\")],\n\t\t\t\"&.Mui-checked\": t[n(\"checked\")],\n\t\t\t\"&.Mui-disabled\": e ? {} : t[n(\"disabled\")],\n\t\t\t\"&.Mui-focusVisible:not(.Mui-checked)\": t.focusVisibleUnchecked,\n\t\t\t\"&.Mui-focusVisible.Mui-checked\": t.focusVisibleChecked,\n\t\t\t\"&:hover:not(.Mui-disabled) svg\": {\n\t\t\t\tboxShadow: `0px 0px 0px 2px ${s.focusOutline()}`,\n\t\t\t\tborderRadius: \"50%\"\n\t\t\t}\n\t\t},\n\t\t\"&.Mui-focusVisible\": {\n\t\t\t\"& input\": { outline: 0 },\n\t\t\t\"& .MuiTouchRipple-root\": { display: \"none\" }\n\t\t}\n\t};\n}), F = (e) => {\n\tlet { correctness: t, checked: n, onChange: r, disabled: i, value: a, id: o, tagName: s, inputRef: c } = e;\n\treturn /* @__PURE__ */ u(P, {\n\t\tid: o,\n\t\tslotProps: { input: { ref: c } },\n\t\tdisableRipple: !0,\n\t\tchecked: n,\n\t\tonChange: r,\n\t\tdisabled: i,\n\t\tvalue: a,\n\t\tcorrectness: t,\n\t\tclassName: w,\n\t\tname: s\n\t});\n}, I = class extends n.Component {\n\tstatic propTypes = {\n\t\tchoiceMode: r.oneOf([\"radio\", \"checkbox\"]),\n\t\tdisplayKey: r.string,\n\t\tchecked: r.bool.isRequired,\n\t\tcorrectness: r.string,\n\t\tdisabled: r.bool.isRequired,\n\t\tfeedback: r.string,\n\t\tlabel: r.string.isRequired,\n\t\trationale: r.string,\n\t\tonChange: r.func.isRequired,\n\t\tvalue: r.string.isRequired,\n\t\tclassName: r.string,\n\t\ttagName: r.string,\n\t\thideTick: r.bool,\n\t\tisEvaluateMode: r.bool,\n\t\tchoicesLayout: r.oneOf([\n\t\t\t\"vertical\",\n\t\t\t\"grid\",\n\t\t\t\"horizontal\"\n\t\t]),\n\t\tisSelectionButtonBelow: r.bool\n\t};\n\tstatic defaultProps = {\n\t\trationale: null,\n\t\tchecked: !1,\n\t\tisEvaluateMode: !1\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.onToggleChoice = this.onToggleChoice.bind(this), this.choiceId = c(\"choice\"), this.descId = `${this.choiceId}-desc`;\n\t}\n\tonToggleChoice(e) {\n\t\tthis.props.onChange(e);\n\t}\n\thandleKeyDown = (e) => {\n\t\tlet { choiceMode: t } = this.props;\n\t\tif (t !== \"checkbox\") return;\n\t\tlet n = e.key === \"ArrowDown\", r = e.key === \"ArrowUp\";\n\t\tif (!n && !r) return;\n\t\te.preventDefault();\n\t\tlet i = document.getElementById(this.choiceId);\n\t\tif (!i) return;\n\t\tlet a = i.closest(\"fieldset\");\n\t\tif (!a) return;\n\t\tlet o = Array.from(a.querySelectorAll(\"input[type=\\\"checkbox\\\"]\")), s = o.findIndex((e) => e === i);\n\t\tif (s === -1) return;\n\t\tlet c = o[n ? s + 1 : s - 1];\n\t\tc && c.focus();\n\t};\n\trender() {\n\t\tlet { choiceMode: n, disabled: r, displayKey: i, feedback: a, label: o, correctness: s, className: c, rationale: f, hideTick: p, isEvaluateMode: m, choicesLayout: h, value: g, checked: _, tagName: v, isSelectionButtonBelow: y } = this.props, b = n === \"checkbox\" ? N : F, x = n === \"checkbox\" ? \"checkbox\" : \"radio-button\", A = {\n\t\t\t...h === \"horizontal\" && { [`& .${w}`]: {\n\t\t\t\tpadding: \"8px\",\n\t\t\t\tmargin: \"4px 0 4px 4px\"\n\t\t\t} },\n\t\t\t...y && h !== \"grid\" && { \"& > label\": { alignItems: \"flex-start\" } },\n\t\t\t...y && h === \"grid\" && {\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\"& > label\": { alignItems: \"center\" }\n\t\t\t}\n\t\t}, j = typeof o == \"string\" && (o.includes(\"<math\") || o.includes(\"\\\\(\") || o.includes(\"\\\\[\") || o.includes(\"<img\") || o.includes(\"data-latex\") || o.includes(\"data-raw\") || o.includes(\"<mjx-container\")), M = i ? /* @__PURE__ */ u(O, {\n\t\t\tid: this.descId,\n\t\t\tchildren: j ? `Pick the answer below, ${i}` : i\n\t\t}) : null, P = /* @__PURE__ */ u(l, { children: i && !y ? /* @__PURE__ */ d(T, {\n\t\t\tcomponent: \"span\",\n\t\t\tchildren: [/* @__PURE__ */ d(\"span\", {\n\t\t\t\t\"aria-hidden\": \"true\",\n\t\t\t\tchildren: [\n\t\t\t\t\ti,\n\t\t\t\t\t\".\",\n\t\t\t\t\t\"\\xA0\"\n\t\t\t\t]\n\t\t\t}), /* @__PURE__ */ u(S, {\n\t\t\t\tclassName: \"prompt-label\",\n\t\t\t\tprompt: o,\n\t\t\t\ttagName: \"span\"\n\t\t\t})]\n\t\t}) : /* @__PURE__ */ u(S, {\n\t\t\tclassName: \"prompt-label\",\n\t\t\tprompt: o,\n\t\t\ttagName: \"span\"\n\t\t}) }), I = {\n\t\t\tdisabled: r,\n\t\t\tchecked: _,\n\t\t\tcorrectness: s,\n\t\t\ttagName: v,\n\t\t\tvalue: g,\n\t\t\tid: this.choiceId,\n\t\t\tonChange: this.onToggleChoice,\n\t\t\tonKeyDown: this.handleKeyDown,\n\t\t\t...M ? { \"aria-describedby\": this.descId } : {}\n\t\t}, L = y ? /* @__PURE__ */ d(D, { children: [\n\t\t\tM,\n\t\t\t/* @__PURE__ */ u(b, {\n\t\t\t\t...I,\n\t\t\t\tstyle: { padding: 0 }\n\t\t\t}),\n\t\t\t/* @__PURE__ */ u(\"span\", {\n\t\t\t\t\"aria-hidden\": \"true\",\n\t\t\t\tchildren: i ? `${i}.` : \"\"\n\t\t\t})\n\t\t] }) : /* @__PURE__ */ d(l, { children: [M, /* @__PURE__ */ u(b, { ...I })] });\n\t\treturn /* @__PURE__ */ d(\"div\", {\n\t\t\tclassName: e(c, \"corespring-\" + x, \"choice-input\"),\n\t\t\tchildren: [\n\t\t\t\t/* @__PURE__ */ d(T, { children: [!p && m && /* @__PURE__ */ u(t, { correctness: s }), /* @__PURE__ */ u(E, {\n\t\t\t\t\tclassName: \"checkbox-holder\",\n\t\t\t\t\tsx: A,\n\t\t\t\t\tchildren: /* @__PURE__ */ u(k, {\n\t\t\t\t\t\tlabel: P,\n\t\t\t\t\t\tvalue: g,\n\t\t\t\t\t\thtmlFor: this.choiceId,\n\t\t\t\t\t\tlabelPlacement: y ? \"top\" : void 0,\n\t\t\t\t\t\tcontrol: L\n\t\t\t\t\t})\n\t\t\t\t})] }),\n\t\t\t\tf && /* @__PURE__ */ u(S, {\n\t\t\t\t\tclassName: \"rationale\",\n\t\t\t\t\tdefaultClassName: \"rationale\",\n\t\t\t\t\tprompt: f\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ u(C, {\n\t\t\t\t\tfeedback: a,\n\t\t\t\t\tcorrectness: s\n\t\t\t\t})\n\t\t\t]\n\t\t});\n\t}\n};\n//#endregion\nexport { I as ChoiceInput, I as default, N as StyledCheckbox, k as StyledFormControlLabel, F as StyledRadio };\n","import { ChoiceInput as e } from \"./choice-input.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { color as r } from \"@pie-lib/render-ui\";\nimport { jsx as i } from \"react/jsx-runtime\";\nimport { styled as a } from \"@mui/material/styles\";\nimport o from \"@mui/material/Box\";\n//#region src/delivery/choice.tsx\nvar s = a(o, { shouldForwardProp: (e) => e !== \"noBorder\" && e !== \"horizontalLayout\" })(({ theme: e, noBorder: t, horizontalLayout: n }) => ({\n\tpaddingTop: e.spacing(2.5),\n\tpaddingBottom: `calc(${e.spacing(1)} + 2px)`,\n\tpaddingLeft: `calc(${e.spacing(1)} + 2px)`,\n\tpaddingRight: `calc(${e.spacing(1)} + 2px)`,\n\tborderBottom: t ? \"none\" : `1px solid ${r.border()}`,\n\t...n && {\n\t\tpaddingRight: e.spacing(2.5),\n\t\t\"& label\": { marginRight: e.spacing(1) }\n\t}\n})), c = class extends t.Component {\n\tstatic propTypes = {};\n\tstate = { isHovered: !1 };\n\thandleMouseEnter = () => {\n\t\tlet { disabled: e, checked: t } = this.props;\n\t\t!e && !t && this.setState({ isHovered: !0 });\n\t};\n\thandleMouseLeave = () => {\n\t\tthis.setState({ isHovered: !1 });\n\t};\n\tonChange = (e) => {\n\t\tlet { disabled: t, onChoiceChanged: n } = this.props;\n\t\tt || n(e);\n\t};\n\trender() {\n\t\tlet { choice: t, index: n, choicesLength: r, showCorrect: a, isEvaluateMode: o, choiceMode: c, disabled: l, checked: u, correctness: d, displayKey: f, choicesLayout: p, gridColumns: m, isSelectionButtonBelow: h, selectedAnswerBackgroundColor: g, selectedAnswerStrokeColor: _, selectedAnswerStrokeWidth: v, hoverAnswerBackgroundColor: y, hoverAnswerStrokeColor: b, hoverAnswerStrokeWidth: x, tagName: S } = this.props, { isHovered: C } = this.state, w = \"choice\" + (n === r - 1 ? \" last\" : \"\"), T = !o || a ? \"\" : t.feedback, E = {\n\t\t\t...t,\n\t\t\tchecked: u,\n\t\t\tchoiceMode: c,\n\t\t\tdisabled: l,\n\t\t\tfeedback: T,\n\t\t\tcorrectness: d,\n\t\t\tdisplayKey: f,\n\t\t\tindex: n,\n\t\t\tchoicesLayout: p,\n\t\t\tgridColumns: m,\n\t\t\tonChange: this.onChange,\n\t\t\tisEvaluateMode: o,\n\t\t\tisSelectionButtonBelow: h,\n\t\t\tselectedAnswerStrokeColor: _,\n\t\t\tselectedAnswerStrokeWidth: v,\n\t\t\ttagName: S\n\t\t}, D = (e) => {\n\t\t\tif (!e) return \"2px\";\n\t\t\tlet t = String(e).trim();\n\t\t\treturn /^\\d+(\\.\\d+)?$/.test(t) ? `${t}px` : t;\n\t\t}, O = _ && _ !== \"initial\", k = b && b !== \"initial\", A = \"transparent\", j = \"2px\", M = \"initial\";\n\t\t(O || k) && (u && O ? (A = _, j = v) : C && !l && k && (A = b, j = x)), u && g && g !== \"initial\" ? M = g : C && !l && y && y !== \"initial\" && (M = y);\n\t\tlet N = O || k, P = N ? {\n\t\t\tborder: `${D(j)} solid ${A}`,\n\t\t\tborderRadius: \"8px\"\n\t\t} : {}, F = n === r - 1 || p !== \"vertical\" || N, I = p === \"horizontal\";\n\t\treturn /* @__PURE__ */ i(\"div\", {\n\t\t\tclassName: w,\n\t\t\tstyle: {\n\t\t\t\tbackgroundColor: M === \"initial\" ? \"initial\" : M,\n\t\t\t\t...P\n\t\t\t},\n\t\t\tonMouseEnter: this.handleMouseEnter,\n\t\t\tonMouseLeave: this.handleMouseLeave,\n\t\t\tchildren: /* @__PURE__ */ i(s, {\n\t\t\t\tcomponent: \"div\",\n\t\t\t\tnoBorder: F,\n\t\t\t\thorizontalLayout: I,\n\t\t\t\tchildren: /* @__PURE__ */ i(e, { ...E })\n\t\t\t})\n\t\t}, n);\n\t}\n};\nc.propTypes = {\n\tchoiceMode: n.oneOf([\"radio\", \"checkbox\"]),\n\tchoice: n.object,\n\tdisabled: n.bool.isRequired,\n\tonChoiceChanged: n.func,\n\tindex: n.number,\n\tchoicesLength: n.number,\n\tshowCorrect: n.bool,\n\tisEvaluateMode: n.bool,\n\tchecked: n.bool,\n\tcorrectness: n.string,\n\tdisplayKey: n.string,\n\tchoicesLayout: n.oneOf([\n\t\t\"vertical\",\n\t\t\"grid\",\n\t\t\"horizontal\"\n\t]),\n\tgridColumns: n.string,\n\tselectedAnswerBackgroundColor: n.string,\n\tselectedAnswerStrokeColor: n.string,\n\tselectedAnswerStrokeWidth: n.string,\n\thoverAnswerBackgroundColor: n.string,\n\thoverAnswerStrokeColor: n.string,\n\thoverAnswerStrokeWidth: n.string,\n\ttagName: n.string,\n\tisSelectionButtonBelow: n.bool\n};\n//#endregion\nexport { c as Choice, c as default };\n","import { styled as e } from \"@mui/material/styles\";\nimport { CSSTransition as t } from \"react-transition-group\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { useRef as r } from \"react\";\nimport i from \"prop-types\";\n//#region src/expander.tsx\nvar a = \"height ease-in 300ms, opacity ease-in 300ms\", o = e(\"div\")(() => ({\n\tposition: \"relative\",\n\theight: 0,\n\toverflow: \"hidden\",\n\tdisplay: \"flex\",\n\tvisibility: \"hidden\",\n\twidth: 0,\n\t\"&.enter\": {\n\t\ttransition: a,\n\t\topacity: 1,\n\t\theight: \"auto\",\n\t\twidth: \"auto\",\n\t\tvisibility: \"visible\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.enter-done\": {\n\t\theight: \"auto\",\n\t\tvisibility: \"visible\",\n\t\twidth: \"auto\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.exit\": {\n\t\ttransition: a,\n\t\topacity: 0,\n\t\theight: 0,\n\t\tvisibility: \"visible\",\n\t\twidth: 0\n\t},\n\t\"&.exit-done\": {\n\t\topacity: 0,\n\t\tvisibility: \"hidden\",\n\t\theight: 0,\n\t\twidth: 0\n\t}\n})), s = (e) => {\n\tlet { show: i, children: a, className: s } = e, c = r(null);\n\treturn /* @__PURE__ */ n(t, {\n\t\tnodeRef: c,\n\t\tin: i,\n\t\tappear: !0,\n\t\tmountOnEnter: !1,\n\t\ttimeout: 300,\n\t\tclassNames: {\n\t\t\tenter: \"enter\",\n\t\t\tenterDone: \"enter-done\",\n\t\t\texit: \"exit\",\n\t\t\texitDone: \"exit-done\"\n\t\t},\n\t\tchildren: /* @__PURE__ */ n(o, {\n\t\t\tref: c,\n\t\t\tclassName: s,\n\t\t\tchildren: a\n\t\t})\n\t});\n};\ns.propTypes = {\n\tshow: i.bool.isRequired,\n\tclassName: i.string,\n\tchildren: i.oneOfType([i.arrayOf(i.node), i.node]).isRequired\n};\n//#endregion\nexport { s as default };\n","import e from \"./expander.js\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { CSSTransition as n } from \"react-transition-group\";\nimport { CorrectResponse as r } from \"@pie-lib/icons\";\nimport * as i from \"@pie-lib/render-ui\";\nimport { Readable as a, color as o } from \"@pie-lib/render-ui\";\nimport { jsx as s, jsxs as c } from \"react/jsx-runtime\";\nimport l from \"react\";\nimport u from \"prop-types\";\nimport d from \"@pie-lib/translator\";\n//#region src/index.tsx\nfunction f(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction p(e, t) {\n\treturn !e || f(e) ? e : f(e.default) ? e.default : t && f(e[t]) ? e[t] : t && f(e[t]?.default) ? e[t].default : e;\n}\nvar m = i, h = m.default, g = h && typeof h == \"object\" ? h : m, _ = p(a, \"Readable\") || p(g.Readable, \"Readable\"), { translator: v } = d, y = {\n\tWebkitTouchCallout: \"none\",\n\tWebkitUserSelect: \"none\",\n\tKhtmlUserSelect: \"none\",\n\tMozUserSelect: \"none\",\n\tmsUserSelect: \"none\",\n\tuserSelect: \"none\"\n}, b = t(\"div\")(() => ({\n\twidth: \"100%\",\n\tcursor: \"pointer\"\n})), x = t(\"button\")(() => ({\n\tmargin: \"0 auto\",\n\ttextAlign: \"center\",\n\tdisplay: \"flex\",\n\tminWidth: \"24px\",\n\tminHeight: \"24px\",\n\tpadding: 0,\n\tborder: 0,\n\tbackground: \"none\",\n\tcolor: \"inherit\",\n\tfont: \"inherit\",\n\tcursor: \"pointer\",\n\t\"&:focus-visible\": {\n\t\toutline: `2px solid ${o.buttonFocusOutline()}`,\n\t\toutlineOffset: \"-2px\"\n\t}\n})), S = t(\"div\")(() => ({\n\twidth: \"fit-content\",\n\tminWidth: \"140px\",\n\talignSelf: \"center\",\n\tverticalAlign: \"middle\",\n\tcolor: `var(--correct-answer-toggle-label-color, ${o.text()})`,\n\tfontWeight: \"normal\",\n\t...y\n})), C = t(\"div\")(() => ({\n\tposition: \"absolute\",\n\twidth: \"25px\",\n\t\"&.enter\": { opacity: \"0\" },\n\t\"&.enter-active\": {\n\t\topacity: \"1\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t},\n\t\"&.exit\": { opacity: \"1\" },\n\t\"&.exit-active\": {\n\t\topacity: \"0\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t}\n})), w = t(\"div\")(() => ({\n\twidth: \"25px\",\n\tmarginRight: \"5px\",\n\tdisplay: \"flex\",\n\talignItems: \"center\"\n})), T = class t extends l.Component {\n\tstatic propTypes = {\n\t\tonToggle: u.func,\n\t\ttoggled: u.bool,\n\t\tshow: u.bool,\n\t\thideMessage: u.string,\n\t\tshowMessage: u.string,\n\t\tclassName: u.string,\n\t\tlanguage: u.string\n\t};\n\tstatic defaultProps = {\n\t\tshowMessage: \"Show correct answer\",\n\t\thideMessage: \"Hide correct answer\",\n\t\tshow: !1,\n\t\ttoggled: !1\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.state = { show: e.show }, this.openIconRef = l.createRef(), this.closedIconRef = l.createRef(), t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t};\n\t}\n\tonClick() {\n\t\tthis.props.onToggle(!this.props.toggled);\n\t}\n\tonTouch(e) {\n\t\te.preventDefault(), this.props.onToggle(!this.props.toggled);\n\t}\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\tthis.setState({ show: e.show }), e.language !== this.props?.language && (t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t});\n\t}\n\trender() {\n\t\tlet { className: t, toggled: i, hideMessage: a, showMessage: o } = this.props;\n\t\treturn /* @__PURE__ */ s(b, {\n\t\t\tclassName: t,\n\t\t\tchildren: /* @__PURE__ */ s(e, {\n\t\t\t\tshow: this.state.show,\n\t\t\t\tchildren: /* @__PURE__ */ c(x, {\n\t\t\t\t\ttype: \"button\",\n\t\t\t\t\t\"aria-pressed\": !!i,\n\t\t\t\t\tonClick: this.onClick.bind(this),\n\t\t\t\t\tonTouchEnd: this.onTouch.bind(this),\n\t\t\t\t\tchildren: [/* @__PURE__ */ c(w, { children: [/* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.openIconRef,\n\t\t\t\t\t\ttimeout: 400,\n\t\t\t\t\t\tin: i,\n\t\t\t\t\t\texit: !i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.openIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-open\")\n\t\t\t\t\t\t})\n\t\t\t\t\t}), /* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.closedIconRef,\n\t\t\t\t\t\ttimeout: 5e3,\n\t\t\t\t\t\tin: !i,\n\t\t\t\t\t\texit: i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.closedIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-closed\")\n\t\t\t\t\t\t})\n\t\t\t\t\t})] }), /* @__PURE__ */ s(_, {\n\t\t\t\t\t\tfalse: !0,\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(S, {\n\t\t\t\t\t\t\t\"aria-hidden\": !this.state.show,\n\t\t\t\t\t\t\tchildren: i ? a : o\n\t\t\t\t\t\t})\n\t\t\t\t\t})]\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n};\n//#endregion\nexport { T as CorrectAnswerToggle, T as default };\n","import { clsx as e } from \"../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js\";\nimport { Choice as t } from \"./choice.js\";\nimport { reachedMaxSelections as n } from \"./utils.js\";\nimport r from \"react\";\nimport i from \"prop-types\";\nimport * as a from \"@pie-lib/render-ui\";\nimport { Collapsible as o, PreviewPrompt as s, color as c, createUniqueId as l, transformDataHeadings as u } from \"@pie-lib/render-ui\";\nimport { jsx as d, jsxs as f } from \"react/jsx-runtime\";\nimport p from \"@pie-lib/correct-answer-toggle\";\nimport { styled as m } from \"@mui/material/styles\";\nimport h from \"@mui/material/Box\";\nimport g from \"@pie-lib/translator\";\n//#region src/delivery/multiple-choice.tsx\nfunction _(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction v(e, t) {\n\treturn !e || _(e) ? e : _(e.default) ? e.default : t && _(e[t]) ? e[t] : t && _(e[t]?.default) ? e[t].default : e;\n}\nvar y = a, b = y.default, x = b && typeof b == \"object\" ? b : y, S = v(s, \"PreviewPrompt\") || v(x.PreviewPrompt, \"PreviewPrompt\"), C = v(o, \"Collapsible\") || v(x.Collapsible, \"Collapsible\"), { translator: w } = g, T = m(h)({\n\tcolor: c.text(),\n\tbackgroundColor: c.background(),\n\t\"& *\": { \"-webkit-font-smoothing\": \"antialiased\" },\n\tposition: \"relative\",\n\t\"& legend\": { border: \"none !important\" }\n}), E = m(\"h2\")(({ theme: e }) => ({\n\tdisplay: \"block\",\n\tfontSize: \"inherit\",\n\tmargin: \"0\",\n\tfontWeight: \"normal\",\n\tpaddingBottom: e.spacing(2)\n})), D = m(h)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), O = m(h)({\n\tdisplay: \"flex\",\n\tflexDirection: \"row\",\n\tflexWrap: \"wrap\"\n}), k = m(h)({ display: \"grid\" }), A = m(\"fieldset\")({\n\tborder: \"0px\",\n\tpadding: \"0.01em 0 0 0\",\n\tmargin: \"0px\",\n\tminWidth: \"0px\"\n}), j = m(\"h3\")({\n\tposition: \"absolute\",\n\tleft: \"-10000px\",\n\ttop: \"auto\",\n\twidth: \"1px\",\n\theight: \"1px\",\n\toverflow: \"hidden\"\n}), M = m(\"div\")(({ theme: e }) => ({\n\tfontSize: e.typography.fontSize - 2,\n\tcolor: c.missing(),\n\tpaddingTop: e.spacing(1)\n})), N = class extends r.Component {\n\tstatic propTypes = {\n\t\tclassName: i.string,\n\t\tmode: i.oneOf([\n\t\t\t\"gather\",\n\t\t\t\"view\",\n\t\t\t\"evaluate\"\n\t\t]),\n\t\tchoiceMode: i.oneOf([\"radio\", \"checkbox\"]),\n\t\tkeyMode: i.oneOf([\n\t\t\t\"numbers\",\n\t\t\t\"letters\",\n\t\t\t\"none\"\n\t\t]),\n\t\tchoices: i.array,\n\t\tpartLabel: i.string,\n\t\tprompt: i.string,\n\t\tteacherInstructions: i.string,\n\t\tsession: i.object,\n\t\tdisabled: i.bool,\n\t\teliminatedChoices: i.arrayOf(i.string),\n\t\tonChoiceChanged: i.func,\n\t\tresponseCorrect: i.bool,\n\t\tcorrectResponse: i.array,\n\t\tchoicesLayout: i.oneOf([\n\t\t\t\"vertical\",\n\t\t\t\"grid\",\n\t\t\t\"horizontal\"\n\t\t]),\n\t\tgridColumns: i.string,\n\t\talwaysShowCorrect: i.bool,\n\t\tanimationsDisabled: i.bool,\n\t\tlanguage: i.string,\n\t\tselectedAnswerBackgroundColor: i.string,\n\t\tselectedAnswerStrokeColor: i.string,\n\t\tselectedAnswerStrokeWidth: i.string,\n\t\thoverAnswerBackgroundColor: i.string,\n\t\thoverAnswerStrokeColor: i.string,\n\t\thoverAnswerStrokeWidth: i.string,\n\t\tonShowCorrectToggle: i.func,\n\t\tisSelectionButtonBelow: i.bool,\n\t\tminSelections: i.number,\n\t\tmaxSelections: i.number,\n\t\tautoplayAudioEnabled: i.bool,\n\t\tcustomAudioButton: {\n\t\t\tplayImage: i.string,\n\t\t\tpauseImage: i.string\n\t\t},\n\t\toptions: i.object,\n\t\tbaseHeadingLevel: i.number,\n\t\tincludeSrHeading: i.bool\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.state = {\n\t\t\tshowCorrect: this.props.options && this.props.alwaysShowCorrect || !1,\n\t\t\tmaxSelectionsErrorState: !1\n\t\t}, this.onToggle = this.onToggle.bind(this), this.groupName = `mc-group-${Math.random().toString(36).slice(2, 10)}`, this.mainContainerId = l(\"main-container\");\n\t}\n\tisSelected(e) {\n\t\tlet t = this.props.session && this.props.session.value;\n\t\treturn t && t.indexOf && t.indexOf(e) >= 0;\n\t}\n\thandleChange = (e) => {\n\t\tlet { value: t, checked: r } = e.target, { choiceMode: i, maxSelections: a, onChoiceChanged: o, session: s } = this.props;\n\t\ti !== \"radio\" && s.value && n(s.value.length, a) && (this.setState({ maxSelectionsErrorState: r }), r) || o({\n\t\t\tvalue: t,\n\t\t\tselected: r,\n\t\t\tselector: \"Mouse\"\n\t\t});\n\t};\n\tonToggle = () => {\n\t\tthis.props.mode === \"evaluate\" && this.setState({ showCorrect: !this.state.showCorrect }, () => {\n\t\t\tthis.props.onShowCorrectToggle && this.props.onShowCorrectToggle();\n\t\t});\n\t};\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\t!e.correctResponse && this.state.showCorrect !== !1 && this.setState({ showCorrect: !1 }, () => {\n\t\t\tthis.props.onShowCorrectToggle && this.props.onShowCorrectToggle();\n\t\t}), e.options && e.alwaysShowCorrect && this.state.showCorrect !== !0 && this.setState({ showCorrect: !0 }, () => {\n\t\t\tthis.props.onShowCorrectToggle && this.props.onShowCorrectToggle();\n\t\t});\n\t}\n\tindexToSymbol(e) {\n\t\treturn this.props.keyMode === \"numbers\" ? `${e + 1}` : this.props.keyMode === \"letters\" ? String.fromCharCode(97 + e).toUpperCase() : \"\";\n\t}\n\tgetCorrectness = (e = {}) => {\n\t\tlet t = e.correct, n = this.isSelected(e.value);\n\t\tif (this.state.showCorrect) return t ? \"correct\" : void 0;\n\t\tif (t) return n ? \"correct\" : \"incorrect\";\n\t\tif (n) return \"incorrect\";\n\t};\n\tgetChecked(e) {\n\t\treturn this.props.options && this.props.alwaysShowCorrect || this.state.showCorrect && this.props.mode === \"evaluate\" ? e.correct || !1 : this.isSelected(e.value);\n\t}\n\trenderHeading() {\n\t\tlet { mode: e, choiceMode: t, includeSrHeading: n, baseHeadingLevel: r, partLabel: i, language: a } = this.props;\n\t\tif (!(!i && n !== !1) || e !== \"gather\") return null;\n\t\tlet o = r ? Math.min(6, r) : 2;\n\t\treturn /* @__PURE__ */ d(j.withComponent(`h${o}`), { children: w.t(t === \"radio\" ? \"multipleChoice.multipleChoiceQuestion\" : \"multipleChoice.multipleSelectQuestion\", { lng: a }) });\n\t}\n\trender() {\n\t\tlet { mode: n, disabled: r, className: i, choices: a = [], choiceMode: o, gridColumns: s, partLabel: c, prompt: l, responseCorrect: m, teacherInstructions: g, alwaysShowCorrect: _, animationsDisabled: v, language: y, isSelectionButtonBelow: b, minSelections: x, maxSelections: j, autoplayAudioEnabled: N, session: P, customAudioButton: F, options: I, baseHeadingLevel: L, eliminatedChoices: R = [] } = this.props, { showCorrect: z, maxSelectionsErrorState: B } = this.state, V = n === \"evaluate\", H = V && !m, U = s > 1 ? { gridTemplateColumns: `repeat(${s}, 1fr)` } : void 0, W = P.value && P.value.length || 0, G = (() => {\n\t\t\tif (!L) return;\n\t\t\tlet e = 1;\n\t\t\treturn c && (e += 1), Math.min(6, L + e);\n\t\t})(), K = (e) => e && G ? u(e, G) : e, q = /* @__PURE__ */ d(S, {\n\t\t\ttagName: \"div\",\n\t\t\tclassName: \"prompt\",\n\t\t\tdefaultClassName: \"teacher-instructions\",\n\t\t\tprompt: g\n\t\t}), J = () => x && j ? x === j ? w.t(\"translation:multipleChoice:minmaxSelections_equal\", {\n\t\t\tlng: y,\n\t\t\tminSelections: x\n\t\t}) : w.t(\"translation:multipleChoice:minmaxSelections_range\", {\n\t\t\tlng: y,\n\t\t\tminSelections: x,\n\t\t\tmaxSelections: j\n\t\t}) : x ? w.t(\"translation:multipleChoice:minSelections\", {\n\t\t\tlng: y,\n\t\t\tminSelections: x\n\t\t}) : \"\", Y = this.props.choicesLayout === \"grid\" ? k : this.props.choicesLayout === \"horizontal\" ? O : h;\n\t\treturn /* @__PURE__ */ f(T, {\n\t\t\tid: this.mainContainerId,\n\t\t\tclassName: e(i, \"multiple-choice\", \"main-container\"),\n\t\t\tchildren: [\n\t\t\t\tc && /* @__PURE__ */ d(E, {\n\t\t\t\t\tas: L ? `h${Math.min(6, L + 1)}` : \"h2\",\n\t\t\t\t\tchildren: c\n\t\t\t\t}),\n\t\t\t\tthis.renderHeading(),\n\t\t\t\tg && /* @__PURE__ */ d(D, { children: v ? q : /* @__PURE__ */ d(C, {\n\t\t\t\t\tlabels: {\n\t\t\t\t\t\thidden: w.t(\"common:showTeacherInstructions\", { lng: y }),\n\t\t\t\t\t\tvisible: w.t(\"common:hideTeacherInstructions\", { lng: y })\n\t\t\t\t\t},\n\t\t\t\t\tchildren: q\n\t\t\t\t}) }),\n\t\t\t\t/* @__PURE__ */ f(A, {\n\t\t\t\t\trole: o === \"radio\" ? \"radiogroup\" : \"group\",\n\t\t\t\t\tchildren: [\n\t\t\t\t\t\t/* @__PURE__ */ d(S, {\n\t\t\t\t\t\t\tclassName: \"prompt\",\n\t\t\t\t\t\t\tdefaultClassName: \"prompt\",\n\t\t\t\t\t\t\tprompt: K(l),\n\t\t\t\t\t\t\ttagName: \"legend\",\n\t\t\t\t\t\t\tautoplayAudioEnabled: N,\n\t\t\t\t\t\t\tcustomAudioButton: F,\n\t\t\t\t\t\t\tlanguage: y\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t!(I && _) && /* @__PURE__ */ d(p, {\n\t\t\t\t\t\t\tshow: H,\n\t\t\t\t\t\t\ttoggled: z,\n\t\t\t\t\t\t\tonToggle: this.onToggle.bind(this),\n\t\t\t\t\t\t\tlanguage: y\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t/* @__PURE__ */ d(Y, {\n\t\t\t\t\t\t\tstyle: U,\n\t\t\t\t\t\t\tchildren: a.map((e, n) => /* @__PURE__ */ d(t, {\n\t\t\t\t\t\t\t\tchoicesLayout: this.props.choicesLayout,\n\t\t\t\t\t\t\t\tselectedAnswerBackgroundColor: this.props.selectedAnswerBackgroundColor,\n\t\t\t\t\t\t\t\tselectedAnswerStrokeColor: this.props.selectedAnswerStrokeColor,\n\t\t\t\t\t\t\t\tselectedAnswerStrokeWidth: this.props.selectedAnswerStrokeWidth,\n\t\t\t\t\t\t\t\thoverAnswerBackgroundColor: this.props.hoverAnswerBackgroundColor,\n\t\t\t\t\t\t\t\thoverAnswerStrokeColor: this.props.hoverAnswerStrokeColor,\n\t\t\t\t\t\t\t\thoverAnswerStrokeWidth: this.props.hoverAnswerStrokeWidth,\n\t\t\t\t\t\t\t\tgridColumns: s,\n\t\t\t\t\t\t\t\tchoice: e,\n\t\t\t\t\t\t\t\tindex: n,\n\t\t\t\t\t\t\t\tchoicesLength: a.length,\n\t\t\t\t\t\t\t\tshowCorrect: z,\n\t\t\t\t\t\t\t\tisEvaluateMode: V,\n\t\t\t\t\t\t\t\tchoiceMode: o,\n\t\t\t\t\t\t\t\tdisabled: r || R.includes(String(e.value)),\n\t\t\t\t\t\t\t\ttagName: this.groupName,\n\t\t\t\t\t\t\t\tonChoiceChanged: this.handleChange,\n\t\t\t\t\t\t\t\thideTick: e.hideTick,\n\t\t\t\t\t\t\t\tchecked: this.getChecked(e),\n\t\t\t\t\t\t\t\tcorrectness: V ? this.getCorrectness(e) : void 0,\n\t\t\t\t\t\t\t\tdisplayKey: this.indexToSymbol(n),\n\t\t\t\t\t\t\t\tisSelectionButtonBelow: b\n\t\t\t\t\t\t\t}, `choice-${n}`))\n\t\t\t\t\t\t})\n\t\t\t\t\t]\n\t\t\t\t}),\n\t\t\t\to === \"checkbox\" && W < x && /* @__PURE__ */ d(M, { children: J() }),\n\t\t\t\to === \"checkbox\" && B && /* @__PURE__ */ d(M, { children: w.t(`translation:multipleChoice:maxSelections_${j === 1 ? \"one\" : \"other\"}`, {\n\t\t\t\t\tlng: y,\n\t\t\t\t\tmaxSelections: j\n\t\t\t\t}) })\n\t\t\t]\n\t\t});\n\t}\n};\nN.defaultProps = { session: { value: [] } };\n//#endregion\nexport { N as MultipleChoice, N as default };\n","import { MultipleChoice as e } from \"./multiple-choice.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport * as r from \"@pie-lib/render-ui\";\nimport { PreviewLayout as i } from \"@pie-lib/render-ui\";\nimport { jsx as a } from \"react/jsx-runtime\";\n//#region src/delivery/main.tsx\nfunction o(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction s(e, t) {\n\treturn !e || o(e) ? e : o(e.default) ? e.default : t && o(e[t]) ? e[t] : t && o(e[t]?.default) ? e[t].default : e;\n}\nvar c = r, l = c.default, u = l && typeof l == \"object\" ? l : c, d = s(i, \"PreviewLayout\") || s(u.PreviewLayout, \"PreviewLayout\"), f = class extends t.Component {\n\tstatic propTypes = {\n\t\tmodel: n.object,\n\t\tsession: n.object,\n\t\toptions: n.object,\n\t\tonChoiceChanged: n.func,\n\t\tonShowCorrectToggle: n.func,\n\t\textraCSSRules: n.shape({\n\t\t\tnames: n.arrayOf(n.string),\n\t\t\trules: n.string\n\t\t}),\n\t\tbaseHeadingLevel: n.number,\n\t\tincludeSrHeading: n.bool,\n\t\teliminatedChoices: n.arrayOf(n.string)\n\t};\n\tstatic defaultProps = {\n\t\tmodel: {},\n\t\tsession: {}\n\t};\n\trender() {\n\t\tlet { model: t, onChoiceChanged: n, session: r, onShowCorrectToggle: i, options: o, baseHeadingLevel: s, includeSrHeading: c, eliminatedChoices: l } = this.props, { extraCSSRules: u, fontSizeFactor: f } = t;\n\t\treturn /* @__PURE__ */ a(d, {\n\t\t\textraCSSRules: u,\n\t\t\tfontSizeFactor: f,\n\t\t\tclasses: {},\n\t\t\tchildren: /* @__PURE__ */ a(e, {\n\t\t\t\t...t,\n\t\t\t\toptions: o,\n\t\t\t\tsession: r,\n\t\t\t\tonChoiceChanged: n,\n\t\t\t\tonShowCorrectToggle: i,\n\t\t\t\tbaseHeadingLevel: s,\n\t\t\t\tincludeSrHeading: c,\n\t\t\t\teliminatedChoices: l\n\t\t\t})\n\t\t});\n\t}\n};\n//#endregion\nexport { f as default };\n","//#region src/delivery/session-updater.ts\nfunction e(e, t, n) {\n\te.value = e.value || [], t === \"checkbox\" && (n.selected ? e.value = Array.from(/* @__PURE__ */ new Set([...e.value, n.value])) : e.value = e.value.filter((e) => e !== n.value)), t === \"radio\" && (n.selected ? e.value = [n.value] : e.value = []), e.selector = n.selector;\n}\nfunction t(e, t) {\n\te.audioStartTime = e.audioStartTime || t.audioStartTime, e.audioEndTime = e.audioEndTime || t.audioEndTime, !e.waitTime && e.audioStartTime && e.audioEndTime && (e.waitTime = e.audioEndTime - e.audioStartTime);\n}\n//#endregion\nexport { t as updateSessionMetadata, e as updateSessionValue };\n","import { exceedsMaxSelections as e } from \"./utils.js\";\nimport t from \"./main.js\";\nimport { updateSessionMetadata as n, updateSessionValue as r } from \"./session-updater.js\";\nimport i from \"react\";\nimport * as a from \"@pie-lib/render-ui\";\nimport { EnableAudioAutoplayImage as o, createUniqueId as s } from \"@pie-lib/render-ui\";\nimport c from \"@pie-lib/translator\";\nimport { createRoot as l } from \"react-dom/client\";\nimport { debounce as u } from \"@pie-element/shared-lodash\";\nimport d from \"debug\";\nimport { ModelSetEvent as f, SessionChangedEvent as p, createSessionNotifier as m, flushSessionNotifiers as h } from \"@pie-element/shared-player-events\";\nimport { renderMath as g } from \"@pie-element/shared-math-rendering-mathjax\";\n//#region src/delivery/index.ts\nfunction _(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction v(e, t) {\n\treturn !e || _(e) ? e : _(e.default) ? e.default : t && _(e[t]) ? e[t] : t && _(e[t]?.default) ? e[t].default : e;\n}\nvar y = a, b = y.default, x = b && typeof b == \"object\" ? b : y, S = v(o, \"EnableAudioAutoplayImage\") || v(x.EnableAudioAutoplayImage, \"EnableAudioAutoplayImage\"), { translator: C } = c, w = d(\"pie-ui:multiple-choice\"), T = (t, n, r, i) => {\n\tlet { completeAudioEnabled: a } = n || {};\n\tif (a && !r && i) {\n\t\tlet e = i.querySelector(\"audio\"), t = e && e.closest(\".preview-prompt\");\n\t\tif (e && t) return !1;\n\t}\n\tif (!t || !t.value) return !1;\n\tlet { choiceMode: o, minSelections: s = 1, maxSelections: c } = n || {}, l = t.value.length || 0;\n\treturn o === \"radio\" ? !!l : !(l < s || e(l, c));\n};\nfunction E(e) {\n\tlet t = e.closest(\"pie-player\") || e.closest(\"pie-item-player\");\n\tif (!t) return {\n\t\tbaseHeadingLevel: void 0,\n\t\tincludeSrHeading: !0\n\t};\n\tlet n = (e, n, r) => {\n\t\tlet i = t[e];\n\t\treturn i ??= t.getAttribute(n) ?? t.getAttribute(r), i;\n\t}, r = n(\"baseHeadingLevel\", \"base-heading-level\", \"baseheadinglevel\"), i = parseInt(r, 10), a = Number.isFinite(i) && i >= 1 && i <= 6 ? i : void 0, o = n(\"includeSrHeading\", \"include-sr-heading\", \"includesrheading\");\n\treturn {\n\t\tbaseHeadingLevel: a,\n\t\tincludeSrHeading: o == null || o !== !1 && o !== \"false\"\n\t};\n}\nfunction D(e) {\n\tlet t = E(e);\n\treturn {\n\t\tbaseHeadingLevel: e._baseHeadingLevel === void 0 ? t.baseHeadingLevel : e._baseHeadingLevel,\n\t\tincludeSrHeading: e._includeSrHeading === void 0 ? t.includeSrHeading : e._includeSrHeading\n\t};\n}\nvar O = class extends HTMLElement {\n\tstatic pieSupports = Object.freeze([\"answer-masking\"]);\n\tconstructor() {\n\t\tsuper(), this._model = null, this._session = null, this._eliminatedChoices = /* @__PURE__ */ new Set(), this._options = null, this.audioComplete = !1, this._boundHandleKeyDown = this.handleKeyDown.bind(this), this._keyboardEventsEnabled = !1, this._audioInitialized = !1, this._root = null, this._mathObserver = null, this._mathRenderPending = !1, this._rerender = u(() => {\n\t\t\tif (this._model && this._session) {\n\t\t\t\tvar e = i.createElement(t, {\n\t\t\t\t\tmodel: this._model,\n\t\t\t\t\tsession: this._session,\n\t\t\t\t\toptions: this._options,\n\t\t\t\t\tonChoiceChanged: this._onChange.bind(this),\n\t\t\t\t\tonShowCorrectToggle: this.onShowCorrectToggle.bind(this),\n\t\t\t\t\teliminatedChoices: [...this._eliminatedChoices],\n\t\t\t\t\t...D(this)\n\t\t\t\t});\n\t\t\t\tthis.setAttribute(\"aria-label\", C.t(this._model.choiceMode === \"radio\" ? \"multipleChoice.multipleChoiceQuestion\" : \"multipleChoice.multipleCorrectAnswerQuestion\", { lng: this._model.language })), this.setAttribute(\"role\", \"region\"), this.setLangAttribute(), this._initMathObserver(), this._root ||= l(this), this._root.render(e), this._model.keyboardEventsEnabled === !0 && !this._keyboardEventsEnabled && this.enableKeyboardEvents();\n\t\t\t} else w(\"skip\");\n\t\t}, 50, {\n\t\t\tleading: !1,\n\t\t\ttrailing: !0\n\t\t}), this._sessionNotifier = m(this, () => {\n\t\t\tthis.dispatchEvent(new p(this.tagName.toLowerCase(), T(this._session, this._model, this.audioComplete, this)));\n\t\t}), this._dispatchResponseChanged = () => this._sessionNotifier.notify(), this._dispatchModelSet = u(() => {\n\t\t\tthis.dispatchEvent(new f(this.tagName.toLowerCase(), T(this._session, this._model, this.audioComplete, this), this._model !== void 0));\n\t\t}, 50, {\n\t\t\tleading: !1,\n\t\t\ttrailing: !0\n\t\t});\n\t}\n\t_scheduleMathRender = () => {\n\t\tthis._mathRenderPending || (this._mathRenderPending = !0, requestAnimationFrame(() => {\n\t\t\tthis._mathObserver && this._mathObserver.disconnect(), w(\"render complete - render math\"), g(this), this._mathRenderPending = !1, setTimeout(() => {\n\t\t\t\tthis._mathObserver && this._mathObserver.observe(this, {\n\t\t\t\t\tchildList: !0,\n\t\t\t\t\tsubtree: !0\n\t\t\t\t});\n\t\t\t}, 50);\n\t\t}));\n\t};\n\t_initMathObserver() {\n\t\tthis._mathObserver || (this._mathObserver = new MutationObserver(this._scheduleMathRender), this._mathObserver.observe(this, {\n\t\t\tchildList: !0,\n\t\t\tsubtree: !0\n\t\t}));\n\t}\n\t_disconnectMathObserver() {\n\t\tthis._mathObserver &&= (this._mathObserver.disconnect(), null);\n\t}\n\tonShowCorrectToggle() {\n\t\tg(this);\n\t}\n\tsetLangAttribute() {\n\t\tlet e = this._model && typeof this._model.language ? this._model.language : \"\", t = e ? e.slice(0, 2) : \"en\";\n\t\tthis.setAttribute(\"lang\", t);\n\t}\n\tset model(e) {\n\t\tthis._model = e, this._rerender(), this._audioInitialized = !1, this._dispatchModelSet();\n\t}\n\tget session() {\n\t\treturn this._session;\n\t}\n\tget options() {\n\t\treturn this._options;\n\t}\n\tset options(e) {\n\t\tthis._options = e, this._rerender();\n\t}\n\tset baseHeadingLevel(e) {\n\t\tthis._baseHeadingLevel = e, this._rerender();\n\t}\n\tset includeSrHeading(e) {\n\t\tthis._includeSrHeading = e, this._rerender();\n\t}\n\tset session(e) {\n\t\tthis._session = e, this._rerender();\n\t}\n\t_onChange(e) {\n\t\te.selected && this._eliminatedChoices.has(String(e.value)) || (r(this._session, this._model.choiceMode, e), this._dispatchResponseChanged(), this._rerender());\n\t}\n\tpieSupportTargets(e) {\n\t\treturn e === \"answer-masking\" ? Array.from(this.querySelectorAll(\".choice-input\")).flatMap((e) => {\n\t\t\tlet t = e.querySelector(\"input[type=\\\"radio\\\"], input[type=\\\"checkbox\\\"]\"), n = e.querySelector(\"label\");\n\t\t\tif (!t?.value || !n) return [];\n\t\t\tlet { value: r } = t;\n\t\t\treturn [{\n\t\t\t\tid: r,\n\t\t\t\tlabel: (n.querySelector(\".prompt-label\") ?? n).textContent.trim(),\n\t\t\t\tcontainer: e,\n\t\t\t\tcontent: n,\n\t\t\t\tisSelected: () => this._isChoiceSelected(r),\n\t\t\t\tisEliminable: () => this._model?.mode === \"gather\" && !this._model.disabled && !this._isChoiceSelected(r),\n\t\t\t\tsetEliminated: (e) => this._setChoiceEliminated(r, e)\n\t\t\t}];\n\t\t}) : [];\n\t}\n\t_isChoiceSelected(e) {\n\t\treturn (this._session?.value ?? []).some((t) => String(t) === e);\n\t}\n\t_setChoiceEliminated(e, t) {\n\t\tt !== this._eliminatedChoices.has(e) && (t ? this._eliminatedChoices.add(e) : this._eliminatedChoices.delete(e), this._rerender());\n\t}\n\t_createAudioInfoToast() {\n\t\tlet e = document.createElement(\"div\");\n\t\te.id = s(\"play-audio-info\"), e.className = \"play-audio-info\", Object.assign(e.style, {\n\t\t\tposition: \"absolute\",\n\t\t\ttop: 0,\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\",\n\t\t\tdisplay: \"flex\",\n\t\t\tjustifyContent: \"center\",\n\t\t\talignItems: \"center\",\n\t\t\tbackground: \"white\",\n\t\t\tzIndex: \"1000\",\n\t\t\tcursor: \"pointer\"\n\t\t});\n\t\tlet t = document.createElement(\"img\");\n\t\treturn t.src = S, t.alt = \"Click anywhere to enable audio autoplay\", t.width = 500, t.height = 300, e.appendChild(t), e;\n\t}\n\tconnectedCallback() {\n\t\tthis._initMathObserver(), this._initPlayerObserver(), this._rerender(), new MutationObserver((e, t) => {\n\t\t\te.forEach((e) => {\n\t\t\t\tif (e.type === \"childList\") {\n\t\t\t\t\tif (this._audioInitialized) return;\n\t\t\t\t\tlet e = this.querySelector(\"audio\"), r = e && e.closest(\".preview-prompt\");\n\t\t\t\t\tif (!this._model) return;\n\t\t\t\t\tlet { autoplayAudioEnabled: i, completeAudioEnabled: a } = this._model;\n\t\t\t\t\tif (!i && !a || e && !r || !e) return;\n\t\t\t\t\tlet o = this._createAudioInfoToast(), s = this.querySelector(\".main-container\"), c = () => {\n\t\t\t\t\t\tthis.querySelector(\".play-audio-info\") && (e.play(), s.removeChild(o)), document.removeEventListener(\"click\", c);\n\t\t\t\t\t};\n\t\t\t\t\ti && setTimeout(() => {\n\t\t\t\t\t\te.paused && !this.querySelector(\".play-audio-info\") ? (s.appendChild(o), document.addEventListener(\"click\", c)) : document.removeEventListener(\"click\", c);\n\t\t\t\t\t}, 500);\n\t\t\t\t\tlet l = () => {\n\t\t\t\t\t\tn(this._session, { audioStartTime: (/* @__PURE__ */ new Date()).getTime() });\n\t\t\t\t\t\tlet t = this.querySelector(\".play-audio-info\");\n\t\t\t\t\t\tt && s.removeChild(t), e.removeEventListener(\"playing\", l);\n\t\t\t\t\t};\n\t\t\t\t\te.addEventListener(\"playing\", l);\n\t\t\t\t\tlet u = () => {\n\t\t\t\t\t\tn(this._session, { audioEndTime: (/* @__PURE__ */ new Date()).getTime() }), this.audioComplete = !0, this._dispatchResponseChanged(), e.removeEventListener(\"ended\", u);\n\t\t\t\t\t};\n\t\t\t\t\te.addEventListener(\"ended\", u), this._audio = e, this._handlePlaying = l, this._handleEnded = u, this._enableAudio = c, this._audioInitialized = !0, t.disconnect();\n\t\t\t\t}\n\t\t\t});\n\t\t}).observe(this, {\n\t\t\tchildList: !0,\n\t\t\tsubtree: !0\n\t\t});\n\t}\n\tenableKeyboardEvents() {\n\t\tthis._keyboardEventsEnabled ||= (window.addEventListener(\"keydown\", this._boundHandleKeyDown), !0);\n\t}\n\t_initPlayerObserver() {\n\t\tlet e = this.closest(\"pie-player\") || this.closest(\"pie-item-player\");\n\t\te && (this._playerObserver = new MutationObserver(() => {\n\t\t\tthis._rerender();\n\t\t}), this._playerObserver.observe(e, {\n\t\t\tattributes: !0,\n\t\t\tattributeFilter: [\n\t\t\t\t\"base-heading-level\",\n\t\t\t\t\"baseheadinglevel\",\n\t\t\t\t\"include-sr-heading\",\n\t\t\t\t\"includesrheading\"\n\t\t\t]\n\t\t}));\n\t}\n\t_disconnectPlayerObserver() {\n\t\tthis._playerObserver &&= (this._playerObserver.disconnect(), null);\n\t}\n\tdisconnectedCallback() {\n\t\th(this), this._disconnectMathObserver(), this._disconnectPlayerObserver(), this._keyboardEventsEnabled &&= (window.removeEventListener(\"keydown\", this._boundHandleKeyDown), !1), document.removeEventListener(\"click\", this._enableAudio), this._audio &&= (this._audio.removeEventListener(\"playing\", this._handlePlaying), this._audio.removeEventListener(\"ended\", this._handleEnded), null), this._rerender.cancel(), this._root &&= (this._root.unmount(), null);\n\t}\n\thandleKeyDown(e) {\n\t\tif (!this._model || !this._session) return;\n\t\tlet { mode: t } = this._model;\n\t\tif (t !== \"gather\") return;\n\t\tlet n = ((e) => {\n\t\t\tlet t = e >= \"1\" && e <= \"9\" ? e - \"1\" : e === \"0\" ? 9 : -1, n = /^[a-jA-J]$/.test(e) ? e.toLowerCase().charCodeAt(0) - 97 : -1;\n\t\t\treturn t >= 0 ? t : n;\n\t\t})(e.key);\n\t\tif (n === void 0 || n <= -1 || n >= this._model.choices?.length) return;\n\t\tlet r = this._session.value || [], i = this._model.choices[n].value, a = r.includes(i), o = {\n\t\t\tvalue: i,\n\t\t\tselected: this._model.choiceMode === \"radio\" || !a,\n\t\t\tselector: \"Keyboard\"\n\t\t};\n\t\tthis._onChange(o);\n\t}\n};\n//#endregion\nexport { O as default, T as isComplete };\n"],"x_google_ignoreList":[2],"mappings":";;;;;;AACA,IAAI,IAAI,wBAAwB,oBAAoB,IAAI,QAAQ;AAChE,SAAS,EAAE,GAAG,GAAG;CAChB,IAAI,IAAI,EAAE,IAAI,CAAC;CACf,MAAM,oBAAoB,IAAI,IAAI,GAAG,EAAE,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC;AAC3D;AACA,SAAS,EAAE,GAAG;CACb,OAAO,OAAO,yBAAyB,GAAG,CAAC,MAAM,KAAK;AACvD;AACA,SAAS,EAAE,GAAG;CACb,IAAI,EAAE,CAAC,GAAG;CACV,IAAI,IAAI,EAAE;CACV,OAAO,eAAe,GAAG,GAAG;EAC3B,aAAa;GACZ,IAAI,OAAO,KAAK,YAAY,IAAI;IAC/B,EAAE,KAAK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