@burdenoff/microfe-buildmyiq 2026.1102.2 → 2026.1102.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/buildmyiq/hooks/index.d.ts +1 -0
- package/dist/buildmyiq/hooks/index.d.ts.map +1 -1
- package/dist/buildmyiq/hooks/index.js +1 -0
- package/dist/buildmyiq/hooks/useBuiInteractive.d.ts +139 -0
- package/dist/buildmyiq/hooks/useBuiInteractive.d.ts.map +1 -0
- package/dist/buildmyiq/hooks/useBuiInteractive.js +104 -0
- package/dist/buildmyiq/hooks/useBuiInteractive.js.map +1 -0
- package/dist/buildmyiq/pages/authoring/CourseBuilderPage.d.ts.map +1 -1
- package/dist/buildmyiq/pages/authoring/CourseBuilderPage.js +94 -73
- package/dist/buildmyiq/pages/authoring/CourseBuilderPage.js.map +1 -1
- package/dist/buildmyiq/pages/authoring/InteractivePackageModal.d.ts +7 -0
- package/dist/buildmyiq/pages/authoring/InteractivePackageModal.d.ts.map +1 -0
- package/dist/buildmyiq/pages/authoring/InteractivePackageModal.js +237 -0
- package/dist/buildmyiq/pages/authoring/InteractivePackageModal.js.map +1 -0
- package/dist/buildmyiq/pages/learning/InteractiveActivity.d.ts +22 -0
- package/dist/buildmyiq/pages/learning/InteractiveActivity.d.ts.map +1 -0
- package/dist/buildmyiq/pages/learning/InteractiveActivity.js +259 -0
- package/dist/buildmyiq/pages/learning/InteractiveActivity.js.map +1 -0
- package/dist/buildmyiq/pages/learning/LessonPlayerPage.d.ts.map +1 -1
- package/dist/buildmyiq/pages/learning/LessonPlayerPage.js +125 -96
- package/dist/buildmyiq/pages/learning/LessonPlayerPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,21 +20,22 @@ import { Field as D, Modal as O, NO_SKILL as k, SelectField as A } from "./_form
|
|
|
20
20
|
import { COURSE_LEVELS as ee, LESSON_TYPES as te } from "../../types/index.js";
|
|
21
21
|
import { CourseAccessibilityTab as ne } from "./CourseAccessibilityTab.js";
|
|
22
22
|
import { CourseAssistantSettingsPanel as re } from "./CourseAssistantSettingsPanel.js";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
23
|
+
import { InteractivePackageModal as ie } from "./InteractivePackageModal.js";
|
|
24
|
+
import { canPublishVersion as j, sourceBadge as ae } from "../repository/repositoryModel.js";
|
|
25
|
+
import { InsertFromRepositoryDialog as M, PublishVersionDialog as oe, SaveToRepositoryDialog as se } from "../repository/RepositoryDialogs.js";
|
|
25
26
|
import { useState as N } from "react";
|
|
26
|
-
import { Accessibility as
|
|
27
|
-
import { useParams as
|
|
27
|
+
import { Accessibility as ce, Archive as le, ArrowLeft as ue, BarChart3 as de, BookOpen as fe, Calendar as pe, ClipboardList as me, Clock as P, CopyPlus as F, Eye as he, FileText as I, Globe as ge, History as _e, Image as ve, Library as L, Link2 as ye, ListChecks as R, MessageSquare as z, MousePointerClick as B, PlayCircle as be, Plus as V, Radio as H, Send as xe } from "lucide-react";
|
|
28
|
+
import { useParams as Se } from "react-router";
|
|
28
29
|
import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
29
30
|
import { Button as K, GlassCard as q, Input as J, Textarea as Y } from "@burdenoff/fe-libs/ui";
|
|
30
31
|
//#region src/buildmyiq/pages/authoring/CourseBuilderPage.tsx
|
|
31
32
|
var X = ({ source: e }) => {
|
|
32
|
-
let n =
|
|
33
|
+
let n = ae(e);
|
|
33
34
|
return n ? /* @__PURE__ */ G("span", {
|
|
34
35
|
title: e ? `From repository item “${e.title}”` : void 0,
|
|
35
36
|
className: t("inline-flex shrink-0 items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", n.tone === "warning" ? "bg-status-warning-bg-subtle text-status-warning-text" : "bg-bg-sunken text-text-secondary"),
|
|
36
37
|
children: [
|
|
37
|
-
/* @__PURE__ */ W(
|
|
38
|
+
/* @__PURE__ */ W(L, {
|
|
38
39
|
className: "h-3 w-3",
|
|
39
40
|
"aria-hidden": "true"
|
|
40
41
|
}),
|
|
@@ -54,44 +55,44 @@ var X = ({ source: e }) => {
|
|
|
54
55
|
n.stopPropagation(), t(e);
|
|
55
56
|
},
|
|
56
57
|
"aria-label": j(e.source) ? `Publish “${e.title}” as a new repository version` : `Save “${e.title}” to the repository`,
|
|
57
|
-
children: j(e.source) ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(
|
|
58
|
+
children: j(e.source) ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(_e, { className: "me-1.5 h-4 w-4" }), " Publish version"] }) : /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(L, { className: "me-1.5 h-4 w-4" }), " Save to repository"] })
|
|
58
59
|
})
|
|
59
|
-
}), Q = ({ target: e, courseId: t, onClose: n }) => e.source && j(e.source) ? /* @__PURE__ */ W(
|
|
60
|
+
}), Q = ({ target: e, courseId: t, onClose: n }) => e.source && j(e.source) ? /* @__PURE__ */ W(oe, {
|
|
60
61
|
entityId: e.entityId,
|
|
61
62
|
courseId: t,
|
|
62
63
|
source: e.source,
|
|
63
64
|
onClose: n
|
|
64
|
-
}) : /* @__PURE__ */ W(
|
|
65
|
+
}) : /* @__PURE__ */ W(se, {
|
|
65
66
|
kind: e.kind,
|
|
66
67
|
entityId: e.entityId,
|
|
67
68
|
defaultTitle: e.title,
|
|
68
69
|
onClose: n
|
|
69
|
-
}),
|
|
70
|
+
}), Ce = {
|
|
70
71
|
ARTICLE: {
|
|
71
|
-
icon:
|
|
72
|
+
icon: I,
|
|
72
73
|
tint: "bg-bg-sunken text-text-secondary"
|
|
73
74
|
},
|
|
74
75
|
VIDEO: {
|
|
75
|
-
icon:
|
|
76
|
+
icon: be,
|
|
76
77
|
tint: "bg-[var(--color-accent-soft)] text-text-primary"
|
|
77
78
|
},
|
|
78
79
|
QUIZ: {
|
|
79
|
-
icon:
|
|
80
|
+
icon: R,
|
|
80
81
|
tint: "bg-status-warning-bg-subtle text-status-warning-text"
|
|
81
82
|
},
|
|
82
83
|
ASSIGNMENT: {
|
|
83
|
-
icon:
|
|
84
|
+
icon: me,
|
|
84
85
|
tint: "bg-status-success-bg-subtle text-status-success-text"
|
|
85
86
|
},
|
|
86
87
|
INTERACTIVE: {
|
|
87
|
-
icon:
|
|
88
|
+
icon: B,
|
|
88
89
|
tint: "bg-[color-mix(in_srgb,var(--color-accent-teal)_18%,transparent)] text-[var(--color-accent-teal)]"
|
|
89
90
|
},
|
|
90
91
|
LIVE_SESSION: {
|
|
91
|
-
icon:
|
|
92
|
+
icon: H,
|
|
92
93
|
tint: "bg-[color-mix(in_srgb,var(--color-accent-primary)_16%,transparent)] text-[var(--color-accent-primary)]"
|
|
93
94
|
}
|
|
94
|
-
},
|
|
95
|
+
}, we = ({ course: e }) => {
|
|
95
96
|
let t = b(), n = y(), r = n.data ?? [], [i, o] = N(e.title), [s, c] = N(e.summary ?? ""), [l, d] = N(e.description ?? ""), [f, p] = N(e.level), [m, h] = N(e.language), [g, _] = N(String(e.estimatedHours ?? 0)), [v, x] = N(e.skillId ?? "__none__"), [S, C] = N(e.isPublic), [T, O] = N(null);
|
|
96
97
|
return /* @__PURE__ */ W("div", {
|
|
97
98
|
className: "mx-auto max-w-3xl",
|
|
@@ -238,7 +239,7 @@ var X = ({ source: e }) => {
|
|
|
238
239
|
})
|
|
239
240
|
})
|
|
240
241
|
});
|
|
241
|
-
},
|
|
242
|
+
}, Te = ({ courseId: e, position: t, onClose: n }) => {
|
|
242
243
|
let r = g(), [i, a] = N(""), [o, s] = N(""), [c, l] = N(null), u = i.trim().length > 0 && !r.isPending;
|
|
243
244
|
return /* @__PURE__ */ W(O, {
|
|
244
245
|
open: !0,
|
|
@@ -300,7 +301,7 @@ var X = ({ source: e }) => {
|
|
|
300
301
|
]
|
|
301
302
|
})
|
|
302
303
|
});
|
|
303
|
-
},
|
|
304
|
+
}, Ee = ({ courseId: e, moduleId: t, position: n, onClose: r }) => {
|
|
304
305
|
let i = h(), [o, s] = N(""), [c, l] = N("ARTICLE"), [u, d] = N(""), [f, p] = N(""), [m, g] = N(!1), [_, v] = N(null), [y, b] = N(null), x = o.trim().length > 0 && !i.isPending;
|
|
305
306
|
return /* @__PURE__ */ W(O, {
|
|
306
307
|
open: !0,
|
|
@@ -404,6 +405,10 @@ var X = ({ source: e }) => {
|
|
|
404
405
|
onChange: v,
|
|
405
406
|
hint: "Attach a video, audio file or PDF for this lesson."
|
|
406
407
|
}),
|
|
408
|
+
c === "INTERACTIVE" && /* @__PURE__ */ W("p", {
|
|
409
|
+
className: "text-xs text-text-secondary",
|
|
410
|
+
children: "After adding the lesson, use its H5P button to upload an .h5p package (Multiple Choice, True/False, Fill in the Blanks or Question Set)."
|
|
411
|
+
}),
|
|
407
412
|
/* @__PURE__ */ G("label", {
|
|
408
413
|
className: "inline-flex cursor-pointer items-center gap-2 text-sm text-text-secondary",
|
|
409
414
|
children: [/* @__PURE__ */ W(E, {
|
|
@@ -419,10 +424,10 @@ var X = ({ source: e }) => {
|
|
|
419
424
|
]
|
|
420
425
|
})
|
|
421
426
|
});
|
|
422
|
-
},
|
|
423
|
-
let o =
|
|
427
|
+
}, De = ({ lesson: e, source: n, onRepository: r }) => {
|
|
428
|
+
let o = Ce[e.type], s = o.icon, [c, l] = N(!1);
|
|
424
429
|
return /* @__PURE__ */ G("li", {
|
|
425
|
-
className: "flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface px-3 py-2.5",
|
|
430
|
+
className: "flex flex-wrap items-center gap-x-3 gap-y-2 rounded-lg border border-border-seam bg-bg-surface px-3 py-2.5",
|
|
426
431
|
children: [
|
|
427
432
|
/* @__PURE__ */ W("span", {
|
|
428
433
|
className: t("flex h-8 w-8 shrink-0 items-center justify-center rounded-lg", o.tint),
|
|
@@ -430,7 +435,7 @@ var X = ({ source: e }) => {
|
|
|
430
435
|
children: /* @__PURE__ */ W(s, { className: "h-4 w-4" })
|
|
431
436
|
}),
|
|
432
437
|
/* @__PURE__ */ G("div", {
|
|
433
|
-
className: "min-w-0 flex-1",
|
|
438
|
+
className: "min-w-0 flex-1 basis-40",
|
|
434
439
|
children: [/* @__PURE__ */ W("p", {
|
|
435
440
|
className: "truncate text-sm font-medium text-text-primary",
|
|
436
441
|
children: e.title
|
|
@@ -439,31 +444,47 @@ var X = ({ source: e }) => {
|
|
|
439
444
|
children: a(e.type)
|
|
440
445
|
})]
|
|
441
446
|
}),
|
|
442
|
-
|
|
443
|
-
className: "
|
|
447
|
+
/* @__PURE__ */ G("div", {
|
|
448
|
+
className: "flex flex-wrap items-center gap-2 sm:gap-3",
|
|
444
449
|
children: [
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
|
|
447
|
-
|
|
450
|
+
e.durationMin > 0 && /* @__PURE__ */ G("span", {
|
|
451
|
+
className: "inline-flex shrink-0 items-center gap-1 text-xs text-text-secondary",
|
|
452
|
+
children: [
|
|
453
|
+
/* @__PURE__ */ W(P, { className: "h-3.5 w-3.5" }),
|
|
454
|
+
" ",
|
|
455
|
+
i(e.durationMin)
|
|
456
|
+
]
|
|
457
|
+
}),
|
|
458
|
+
e.isPreview && /* @__PURE__ */ W("span", {
|
|
459
|
+
className: "shrink-0 rounded-full bg-[var(--color-accent-soft)] px-2 py-0.5 text-xs font-medium text-text-primary",
|
|
460
|
+
children: "Preview"
|
|
461
|
+
}),
|
|
462
|
+
e.type === "INTERACTIVE" && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ G(K, {
|
|
463
|
+
variant: "outline",
|
|
464
|
+
size: "sm",
|
|
465
|
+
className: "shrink-0",
|
|
466
|
+
onClick: () => l(!0),
|
|
467
|
+
"aria-label": `H5P package for ${e.title}`,
|
|
468
|
+
children: [/* @__PURE__ */ W(B, { className: "me-1 h-3.5 w-3.5" }), "H5P"]
|
|
469
|
+
}), c && /* @__PURE__ */ W(ie, {
|
|
470
|
+
lesson: e,
|
|
471
|
+
onClose: () => l(!1)
|
|
472
|
+
})] }),
|
|
473
|
+
/* @__PURE__ */ W(X, { source: n }),
|
|
474
|
+
/* @__PURE__ */ W(Z, {
|
|
475
|
+
target: {
|
|
476
|
+
kind: "LESSON",
|
|
477
|
+
entityId: e.id,
|
|
478
|
+
title: e.title,
|
|
479
|
+
source: n
|
|
480
|
+
},
|
|
481
|
+
onSelect: r
|
|
482
|
+
})
|
|
448
483
|
]
|
|
449
|
-
}),
|
|
450
|
-
e.isPreview && /* @__PURE__ */ W("span", {
|
|
451
|
-
className: "shrink-0 rounded-full bg-[var(--color-accent-soft)] px-2 py-0.5 text-xs font-medium text-text-primary",
|
|
452
|
-
children: "Preview"
|
|
453
|
-
}),
|
|
454
|
-
/* @__PURE__ */ W(X, { source: n }),
|
|
455
|
-
/* @__PURE__ */ W(Z, {
|
|
456
|
-
target: {
|
|
457
|
-
kind: "LESSON",
|
|
458
|
-
entityId: e.id,
|
|
459
|
-
title: e.title,
|
|
460
|
-
source: n
|
|
461
|
-
},
|
|
462
|
-
onSelect: r
|
|
463
484
|
})
|
|
464
485
|
]
|
|
465
486
|
});
|
|
466
|
-
},
|
|
487
|
+
}, Oe = ({ module: e, index: t, onAddLesson: n, onInsertLesson: r, sources: a, onRepository: o }) => {
|
|
467
488
|
let s = [...e.lessons ?? []].sort((e, t) => e.position - t.position), c = s.reduce((e, t) => e + (t.durationMin || 0), 0);
|
|
468
489
|
return /* @__PURE__ */ G(q, {
|
|
469
490
|
treatment: "plain",
|
|
@@ -508,7 +529,7 @@ var X = ({ source: e }) => {
|
|
|
508
529
|
size: "sm",
|
|
509
530
|
onClick: r,
|
|
510
531
|
className: "shrink-0",
|
|
511
|
-
children: [/* @__PURE__ */ W(
|
|
532
|
+
children: [/* @__PURE__ */ W(F, { className: "me-1.5 h-4 w-4" }), " From repository"]
|
|
512
533
|
})
|
|
513
534
|
}),
|
|
514
535
|
/* @__PURE__ */ W(w, {
|
|
@@ -543,7 +564,7 @@ var X = ({ source: e }) => {
|
|
|
543
564
|
})
|
|
544
565
|
}) : /* @__PURE__ */ W("ul", {
|
|
545
566
|
className: "flex flex-col gap-2",
|
|
546
|
-
children: s.map((e) => /* @__PURE__ */ W(
|
|
567
|
+
children: s.map((e) => /* @__PURE__ */ W(De, {
|
|
547
568
|
lesson: e,
|
|
548
569
|
source: a.get(e.id) ?? null,
|
|
549
570
|
onRepository: o
|
|
@@ -569,7 +590,7 @@ var X = ({ source: e }) => {
|
|
|
569
590
|
children: n
|
|
570
591
|
})
|
|
571
592
|
]
|
|
572
|
-
}),
|
|
593
|
+
}), ke = ({ course: e }) => {
|
|
573
594
|
let t = e.id, n = _(t), i = b(), [o, d] = N(!1), [f, p] = N(null), [m, h] = N(null), [g, v] = N(null), y = x(t).data ?? /* @__PURE__ */ new Map(), [C, T] = N(null), [E, D] = N(null), O = [...n.data ?? []].sort((e, t) => e.position - t.position), k = O.find((e) => e.id === f) ?? null;
|
|
574
595
|
return /* @__PURE__ */ G("div", {
|
|
575
596
|
className: "grid gap-6 lg:grid-cols-3",
|
|
@@ -606,7 +627,7 @@ var X = ({ source: e }) => {
|
|
|
606
627
|
})
|
|
607
628
|
}) : /* @__PURE__ */ G("div", {
|
|
608
629
|
className: "flex flex-col gap-4",
|
|
609
|
-
children: [O.map((e, t) => /* @__PURE__ */ W(
|
|
630
|
+
children: [O.map((e, t) => /* @__PURE__ */ W(Oe, {
|
|
610
631
|
module: e,
|
|
611
632
|
index: t,
|
|
612
633
|
onAddLesson: () => p(e.id),
|
|
@@ -649,7 +670,7 @@ var X = ({ source: e }) => {
|
|
|
649
670
|
className: "h-full w-full object-cover"
|
|
650
671
|
}) : /* @__PURE__ */ G("div", {
|
|
651
672
|
className: "flex h-full items-center justify-center gap-2 text-sm text-text-tertiary",
|
|
652
|
-
children: [/* @__PURE__ */ W(
|
|
673
|
+
children: [/* @__PURE__ */ W(ve, { className: "h-5 w-5" }), " No cover yet"]
|
|
653
674
|
})
|
|
654
675
|
}),
|
|
655
676
|
/* @__PURE__ */ G("div", {
|
|
@@ -689,27 +710,27 @@ var X = ({ source: e }) => {
|
|
|
689
710
|
className: "mt-2 flex flex-col divide-y divide-border-seam",
|
|
690
711
|
children: [
|
|
691
712
|
/* @__PURE__ */ W($, {
|
|
692
|
-
icon: /* @__PURE__ */ W(
|
|
713
|
+
icon: /* @__PURE__ */ W(ye, { className: "h-4 w-4" }),
|
|
693
714
|
label: "Slug",
|
|
694
715
|
value: e.slug
|
|
695
716
|
}),
|
|
696
717
|
/* @__PURE__ */ W($, {
|
|
697
|
-
icon: /* @__PURE__ */ W(
|
|
718
|
+
icon: /* @__PURE__ */ W(ge, { className: "h-4 w-4" }),
|
|
698
719
|
label: "Language",
|
|
699
720
|
value: e.language ? e.language.toUpperCase() : "—"
|
|
700
721
|
}),
|
|
701
722
|
/* @__PURE__ */ W($, {
|
|
702
|
-
icon: /* @__PURE__ */ W(
|
|
723
|
+
icon: /* @__PURE__ */ W(de, { className: "h-4 w-4" }),
|
|
703
724
|
label: "Level",
|
|
704
725
|
value: a(e.level)
|
|
705
726
|
}),
|
|
706
727
|
/* @__PURE__ */ W($, {
|
|
707
|
-
icon: /* @__PURE__ */ W(
|
|
728
|
+
icon: /* @__PURE__ */ W(he, { className: "h-4 w-4" }),
|
|
708
729
|
label: "Visibility",
|
|
709
730
|
value: e.isPublic ? "Public" : "Private"
|
|
710
731
|
}),
|
|
711
732
|
/* @__PURE__ */ W($, {
|
|
712
|
-
icon: /* @__PURE__ */ W(
|
|
733
|
+
icon: /* @__PURE__ */ W(pe, { className: "h-4 w-4" }),
|
|
713
734
|
label: "Created",
|
|
714
735
|
value: r(e.createdAt)
|
|
715
736
|
})
|
|
@@ -717,12 +738,12 @@ var X = ({ source: e }) => {
|
|
|
717
738
|
})]
|
|
718
739
|
})]
|
|
719
740
|
}),
|
|
720
|
-
o && /* @__PURE__ */ W(
|
|
741
|
+
o && /* @__PURE__ */ W(Te, {
|
|
721
742
|
courseId: t,
|
|
722
743
|
position: O.length,
|
|
723
744
|
onClose: () => d(!1)
|
|
724
745
|
}),
|
|
725
|
-
f && /* @__PURE__ */ W(
|
|
746
|
+
f && /* @__PURE__ */ W(Ee, {
|
|
726
747
|
courseId: t,
|
|
727
748
|
moduleId: f,
|
|
728
749
|
position: k?.lessons?.length ?? 0,
|
|
@@ -741,7 +762,7 @@ var X = ({ source: e }) => {
|
|
|
741
762
|
})
|
|
742
763
|
]
|
|
743
764
|
});
|
|
744
|
-
},
|
|
765
|
+
}, Ae = ({ courseId: t }) => {
|
|
745
766
|
let { navigateTo: n } = e(), r = p(t), d = r.data ?? [], f = x(t).data ?? /* @__PURE__ */ new Map(), [m, h] = N(!1), [g, _] = N(null);
|
|
746
767
|
return /* @__PURE__ */ G(u, {
|
|
747
768
|
title: "Assessments",
|
|
@@ -753,7 +774,7 @@ var X = ({ source: e }) => {
|
|
|
753
774
|
children: /* @__PURE__ */ G(K, {
|
|
754
775
|
variant: "outline",
|
|
755
776
|
onClick: () => h(!0),
|
|
756
|
-
children: [/* @__PURE__ */ W(
|
|
777
|
+
children: [/* @__PURE__ */ W(F, { className: "me-1.5 h-4 w-4" }), " Insert from repository"]
|
|
757
778
|
})
|
|
758
779
|
}),
|
|
759
780
|
children: [
|
|
@@ -802,7 +823,7 @@ var X = ({ source: e }) => {
|
|
|
802
823
|
e.timeLimitMin > 0 && /* @__PURE__ */ G("span", {
|
|
803
824
|
className: "inline-flex items-center gap-1",
|
|
804
825
|
children: [
|
|
805
|
-
/* @__PURE__ */ W(
|
|
826
|
+
/* @__PURE__ */ W(P, { className: "h-3.5 w-3.5" }),
|
|
806
827
|
" ",
|
|
807
828
|
i(e.timeLimitMin)
|
|
808
829
|
]
|
|
@@ -837,8 +858,8 @@ var X = ({ source: e }) => {
|
|
|
837
858
|
})
|
|
838
859
|
]
|
|
839
860
|
});
|
|
840
|
-
},
|
|
841
|
-
let { courseId: t } =
|
|
861
|
+
}, je = () => {
|
|
862
|
+
let { courseId: t } = Se(), { navigateTo: r } = e(), [i, a] = N("details"), u = m(t), p = u.data ?? null, h = v(), g = f(), [_, y] = N(null), [b, x] = N(!1), S = async () => {
|
|
842
863
|
if (p) {
|
|
843
864
|
y(null);
|
|
844
865
|
try {
|
|
@@ -884,33 +905,33 @@ var X = ({ source: e }) => {
|
|
|
884
905
|
{
|
|
885
906
|
value: "details",
|
|
886
907
|
label: "Details",
|
|
887
|
-
icon: /* @__PURE__ */ W(
|
|
908
|
+
icon: /* @__PURE__ */ W(I, { className: "h-4 w-4" })
|
|
888
909
|
},
|
|
889
910
|
{
|
|
890
911
|
value: "curriculum",
|
|
891
912
|
label: "Curriculum",
|
|
892
|
-
icon: /* @__PURE__ */ W(
|
|
913
|
+
icon: /* @__PURE__ */ W(fe, { className: "h-4 w-4" }),
|
|
893
914
|
count: p.modules?.length ?? 0
|
|
894
915
|
},
|
|
895
916
|
{
|
|
896
917
|
value: "assessments",
|
|
897
918
|
label: "Assessments",
|
|
898
|
-
icon: /* @__PURE__ */ W(
|
|
919
|
+
icon: /* @__PURE__ */ W(R, { className: "h-4 w-4" })
|
|
899
920
|
},
|
|
900
921
|
{
|
|
901
922
|
value: "accessibility",
|
|
902
923
|
label: "Accessibility",
|
|
903
|
-
icon: /* @__PURE__ */ W(
|
|
924
|
+
icon: /* @__PURE__ */ W(ce, { className: "h-4 w-4" })
|
|
904
925
|
},
|
|
905
926
|
{
|
|
906
927
|
value: "discussion",
|
|
907
928
|
label: "Discussion",
|
|
908
|
-
icon: /* @__PURE__ */ W(
|
|
929
|
+
icon: /* @__PURE__ */ W(z, { className: "h-4 w-4" })
|
|
909
930
|
},
|
|
910
931
|
{
|
|
911
932
|
value: "assistant",
|
|
912
933
|
label: "AI Tutor",
|
|
913
|
-
icon: /* @__PURE__ */ W(
|
|
934
|
+
icon: /* @__PURE__ */ W(z, { className: "h-4 w-4" })
|
|
914
935
|
}
|
|
915
936
|
];
|
|
916
937
|
return /* @__PURE__ */ G(n, {
|
|
@@ -930,7 +951,7 @@ var X = ({ source: e }) => {
|
|
|
930
951
|
/* @__PURE__ */ G(K, {
|
|
931
952
|
variant: "ghost",
|
|
932
953
|
onClick: () => r("authoring"),
|
|
933
|
-
children: [/* @__PURE__ */ W(
|
|
954
|
+
children: [/* @__PURE__ */ W(ue, { className: "me-1.5 h-4 w-4 rtl:-scale-x-100" }), " Back"]
|
|
934
955
|
}),
|
|
935
956
|
D && /* @__PURE__ */ W(w, {
|
|
936
957
|
resource: "buildmyiq-course",
|
|
@@ -939,7 +960,7 @@ var X = ({ source: e }) => {
|
|
|
939
960
|
children: /* @__PURE__ */ G(K, {
|
|
940
961
|
variant: "outline",
|
|
941
962
|
onClick: () => x(!0),
|
|
942
|
-
children: [/* @__PURE__ */ W(
|
|
963
|
+
children: [/* @__PURE__ */ W(le, { className: "me-1.5 h-4 w-4" }), " Archive"]
|
|
943
964
|
})
|
|
944
965
|
}),
|
|
945
966
|
E && /* @__PURE__ */ W(w, {
|
|
@@ -949,7 +970,7 @@ var X = ({ source: e }) => {
|
|
|
949
970
|
children: /* @__PURE__ */ G(K, {
|
|
950
971
|
onClick: S,
|
|
951
972
|
disabled: h.isPending,
|
|
952
|
-
children: [/* @__PURE__ */ W(
|
|
973
|
+
children: [/* @__PURE__ */ W(xe, { className: "me-1.5 h-4 w-4" }), h.isPending ? "Publishing…" : "Publish"]
|
|
953
974
|
})
|
|
954
975
|
})
|
|
955
976
|
] }),
|
|
@@ -966,9 +987,9 @@ var X = ({ source: e }) => {
|
|
|
966
987
|
onChange: a
|
|
967
988
|
}),
|
|
968
989
|
i === "assistant" && /* @__PURE__ */ W(re, { courseId: t }, t),
|
|
969
|
-
i === "details" && /* @__PURE__ */ W(
|
|
970
|
-
i === "curriculum" && /* @__PURE__ */ W(
|
|
971
|
-
i === "assessments" && /* @__PURE__ */ W(
|
|
990
|
+
i === "details" && /* @__PURE__ */ W(we, { course: p }, p.id),
|
|
991
|
+
i === "curriculum" && /* @__PURE__ */ W(ke, { course: p }),
|
|
992
|
+
i === "assessments" && /* @__PURE__ */ W(Ae, { courseId: t }),
|
|
972
993
|
i === "accessibility" && /* @__PURE__ */ W(ne, { courseId: t }),
|
|
973
994
|
i === "discussion" && /* @__PURE__ */ W(C, {
|
|
974
995
|
entityType: "buildmyiq-course",
|
|
@@ -999,6 +1020,6 @@ var X = ({ source: e }) => {
|
|
|
999
1020
|
});
|
|
1000
1021
|
};
|
|
1001
1022
|
//#endregion
|
|
1002
|
-
export {
|
|
1023
|
+
export { je as CourseBuilderPage };
|
|
1003
1024
|
|
|
1004
1025
|
//# sourceMappingURL=CourseBuilderPage.js.map
|