catchup-library-web 2.1.6 → 2.2.0
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/index.d.mts +2 -15
- package/dist/index.d.ts +2 -15
- package/dist/index.js +122 -342
- package/dist/index.mjs +122 -341
- package/package.json +1 -1
- package/src/components/activities/ActivityPreviewByData.tsx +194 -179
- package/src/index.ts +0 -1
- package/src/properties/ActivityProperties.ts +0 -12
- package/src/components/activities/ActivityPreviewByAnswerData.tsx +0 -268
package/dist/index.mjs
CHANGED
|
@@ -6980,224 +6980,6 @@ var SelectionBox_default = SelectionBox;
|
|
|
6980
6980
|
|
|
6981
6981
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
6982
6982
|
import { Fragment as Fragment11, jsx as jsx47, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6983
|
-
var ActivityPreviewByData = ({
|
|
6984
|
-
data,
|
|
6985
|
-
showType,
|
|
6986
|
-
showDescription,
|
|
6987
|
-
lockedType,
|
|
6988
|
-
typeOptionList,
|
|
6989
|
-
showSolution,
|
|
6990
|
-
showEvaluationRubric,
|
|
6991
|
-
showDifficulty,
|
|
6992
|
-
isFullScreen
|
|
6993
|
-
}) => {
|
|
6994
|
-
const [key, setKey] = useState24((/* @__PURE__ */ new Date()).getTime());
|
|
6995
|
-
const [selectedType, setSelectedType] = useState24(null);
|
|
6996
|
-
const [optionList, setOptionList] = useState24([]);
|
|
6997
|
-
useEffect15(() => {
|
|
6998
|
-
if (!data) return;
|
|
6999
|
-
setKey((/* @__PURE__ */ new Date()).getTime());
|
|
7000
|
-
}, [data]);
|
|
7001
|
-
useEffect15(() => {
|
|
7002
|
-
if (!typeOptionList) return;
|
|
7003
|
-
if (typeOptionList.length === 0) return;
|
|
7004
|
-
let foundTypeOption;
|
|
7005
|
-
if (lockedType) {
|
|
7006
|
-
foundTypeOption = typeOptionList.find(
|
|
7007
|
-
(typeOption) => typeOption.id === lockedType
|
|
7008
|
-
);
|
|
7009
|
-
}
|
|
7010
|
-
if (foundTypeOption) {
|
|
7011
|
-
setSelectedType(foundTypeOption.id);
|
|
7012
|
-
} else {
|
|
7013
|
-
setSelectedType(typeOptionList[0].id);
|
|
7014
|
-
}
|
|
7015
|
-
}, [typeOptionList, lockedType]);
|
|
7016
|
-
useEffect15(() => {
|
|
7017
|
-
if (!data) return;
|
|
7018
|
-
if (!typeOptionList) return;
|
|
7019
|
-
if (typeOptionList.length === 0) return;
|
|
7020
|
-
let currentTypeOptionList = JSON.parse(JSON.stringify(typeOptionList));
|
|
7021
|
-
if (lockedType) {
|
|
7022
|
-
currentTypeOptionList = currentTypeOptionList.filter(
|
|
7023
|
-
(typeOption) => typeOption.id === lockedType
|
|
7024
|
-
);
|
|
7025
|
-
}
|
|
7026
|
-
if (showDifficulty) {
|
|
7027
|
-
setOptionList(
|
|
7028
|
-
currentTypeOptionList.map((typeOption) => __spreadProps(__spreadValues({}, typeOption), {
|
|
7029
|
-
subText: i18n_default.t(
|
|
7030
|
-
retrieveDifficultyByActivityTypeFromData(typeOption.id, data)
|
|
7031
|
-
)
|
|
7032
|
-
}))
|
|
7033
|
-
);
|
|
7034
|
-
} else {
|
|
7035
|
-
setOptionList(currentTypeOptionList);
|
|
7036
|
-
}
|
|
7037
|
-
}, [data, lockedType, typeOptionList, showDifficulty]);
|
|
7038
|
-
if (!data) return;
|
|
7039
|
-
if (!selectedType) return;
|
|
7040
|
-
let answerMap = constructAnswerBasedOnData(selectedType, data);
|
|
7041
|
-
return /* @__PURE__ */ jsxs36("div", { children: [
|
|
7042
|
-
showType ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7043
|
-
/* @__PURE__ */ jsxs36("div", { className: "mb-4", children: [
|
|
7044
|
-
showDescription ? /* @__PURE__ */ jsx47("div", { className: "my-2", children: /* @__PURE__ */ jsx47("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7045
|
-
/* @__PURE__ */ jsx47(
|
|
7046
|
-
SelectionBox_default,
|
|
7047
|
-
{
|
|
7048
|
-
optionList,
|
|
7049
|
-
selectedId: selectedType,
|
|
7050
|
-
handleSelectOnClick: (itemId) => {
|
|
7051
|
-
setSelectedType(itemId);
|
|
7052
|
-
}
|
|
7053
|
-
}
|
|
7054
|
-
)
|
|
7055
|
-
] }),
|
|
7056
|
-
/* @__PURE__ */ jsx47(DividerLine_default, {})
|
|
7057
|
-
] }) : null,
|
|
7058
|
-
/* @__PURE__ */ jsx47("div", { className: "", children: selectedType === "ORDERING" && data["orderingBodyMap"] != null && data["orderingMaterialMap"] != null ? /* @__PURE__ */ jsx47(
|
|
7059
|
-
OrderingActivityContent_default,
|
|
7060
|
-
{
|
|
7061
|
-
answerMap,
|
|
7062
|
-
changeAnswer: () => {
|
|
7063
|
-
},
|
|
7064
|
-
canAnswerQuestion: () => {
|
|
7065
|
-
return true;
|
|
7066
|
-
},
|
|
7067
|
-
data,
|
|
7068
|
-
isPreview: true,
|
|
7069
|
-
showCorrectAnswer: true
|
|
7070
|
-
}
|
|
7071
|
-
) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */ jsx47(
|
|
7072
|
-
DropdownActivityContent_default,
|
|
7073
|
-
{
|
|
7074
|
-
answerMap,
|
|
7075
|
-
changeAnswer: () => {
|
|
7076
|
-
},
|
|
7077
|
-
canAnswerQuestion: () => {
|
|
7078
|
-
return true;
|
|
7079
|
-
},
|
|
7080
|
-
data,
|
|
7081
|
-
isPreview: true,
|
|
7082
|
-
showCorrectAnswer: true,
|
|
7083
|
-
isFullScreen
|
|
7084
|
-
}
|
|
7085
|
-
) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */ jsx47(
|
|
7086
|
-
MCSAActivityContent_default,
|
|
7087
|
-
{
|
|
7088
|
-
answerMap,
|
|
7089
|
-
changeAnswer: () => {
|
|
7090
|
-
},
|
|
7091
|
-
canAnswerQuestion: () => {
|
|
7092
|
-
return true;
|
|
7093
|
-
},
|
|
7094
|
-
data,
|
|
7095
|
-
isPreview: true,
|
|
7096
|
-
showCorrectAnswer: true,
|
|
7097
|
-
isFullScreen
|
|
7098
|
-
}
|
|
7099
|
-
) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */ jsx47(
|
|
7100
|
-
MCMAActivityContent_default,
|
|
7101
|
-
{
|
|
7102
|
-
answerMap,
|
|
7103
|
-
changeAnswer: () => {
|
|
7104
|
-
},
|
|
7105
|
-
canAnswerQuestion: () => {
|
|
7106
|
-
return true;
|
|
7107
|
-
},
|
|
7108
|
-
data,
|
|
7109
|
-
isPreview: true,
|
|
7110
|
-
showCorrectAnswer: true,
|
|
7111
|
-
isFullScreen
|
|
7112
|
-
}
|
|
7113
|
-
) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */ jsx47(
|
|
7114
|
-
MatchingActivityContent_default,
|
|
7115
|
-
{
|
|
7116
|
-
answerMap,
|
|
7117
|
-
changeAnswer: () => {
|
|
7118
|
-
},
|
|
7119
|
-
canAnswerQuestion: () => {
|
|
7120
|
-
return true;
|
|
7121
|
-
},
|
|
7122
|
-
data,
|
|
7123
|
-
isPreview: true,
|
|
7124
|
-
showCorrectAnswer: true
|
|
7125
|
-
}
|
|
7126
|
-
) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */ jsx47(
|
|
7127
|
-
GroupingActivityContent_default,
|
|
7128
|
-
{
|
|
7129
|
-
answerMap,
|
|
7130
|
-
changeAnswer: () => {
|
|
7131
|
-
},
|
|
7132
|
-
canAnswerQuestion: () => {
|
|
7133
|
-
return true;
|
|
7134
|
-
},
|
|
7135
|
-
data,
|
|
7136
|
-
isPreview: true,
|
|
7137
|
-
showCorrectAnswer: true
|
|
7138
|
-
}
|
|
7139
|
-
) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */ jsx47(
|
|
7140
|
-
FillInTheBlanksActivityContent_default,
|
|
7141
|
-
{
|
|
7142
|
-
answerMap,
|
|
7143
|
-
changeAnswer: () => {
|
|
7144
|
-
},
|
|
7145
|
-
canAnswerQuestion: () => {
|
|
7146
|
-
return true;
|
|
7147
|
-
},
|
|
7148
|
-
data,
|
|
7149
|
-
isPreview: true,
|
|
7150
|
-
showCorrectAnswer: true,
|
|
7151
|
-
isFullScreen
|
|
7152
|
-
}
|
|
7153
|
-
) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */ jsx47(
|
|
7154
|
-
OpenEndedActivityContent_default,
|
|
7155
|
-
{
|
|
7156
|
-
answerMap,
|
|
7157
|
-
canAnswerQuestion: () => false,
|
|
7158
|
-
changeAnswer: () => {
|
|
7159
|
-
},
|
|
7160
|
-
showMaterialContent: true,
|
|
7161
|
-
data,
|
|
7162
|
-
isPreview: true,
|
|
7163
|
-
isFullScreen
|
|
7164
|
-
}
|
|
7165
|
-
) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */ jsx47(
|
|
7166
|
-
TrueFalseActivityContent_default,
|
|
7167
|
-
{
|
|
7168
|
-
answerMap,
|
|
7169
|
-
changeAnswer: () => {
|
|
7170
|
-
},
|
|
7171
|
-
canAnswerQuestion: () => {
|
|
7172
|
-
return true;
|
|
7173
|
-
},
|
|
7174
|
-
data,
|
|
7175
|
-
isPreview: true,
|
|
7176
|
-
showCorrectAnswer: true,
|
|
7177
|
-
isFullScreen
|
|
7178
|
-
}
|
|
7179
|
-
) : null }, selectedType),
|
|
7180
|
-
showSolution ? /* @__PURE__ */ jsx47("div", { className: "my-4", children: /* @__PURE__ */ jsx47(
|
|
7181
|
-
ActivitySolutionContent_default,
|
|
7182
|
-
{
|
|
7183
|
-
activityTemplateType: selectedType,
|
|
7184
|
-
data
|
|
7185
|
-
}
|
|
7186
|
-
) }) : null,
|
|
7187
|
-
showEvaluationRubric ? /* @__PURE__ */ jsx47("div", { className: "my-4", children: /* @__PURE__ */ jsx47(
|
|
7188
|
-
ActivityEvaluationRubricContent_default,
|
|
7189
|
-
{
|
|
7190
|
-
activityTemplateType: selectedType,
|
|
7191
|
-
data
|
|
7192
|
-
}
|
|
7193
|
-
) }) : null
|
|
7194
|
-
] }, key);
|
|
7195
|
-
};
|
|
7196
|
-
var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
7197
|
-
|
|
7198
|
-
// src/components/activities/ActivityPreviewByAnswerData.tsx
|
|
7199
|
-
import { useEffect as useEffect16, useState as useState25 } from "react";
|
|
7200
|
-
import { Fragment as Fragment12, jsx as jsx48, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7201
6983
|
var ACTIVITY_TEMPLATE_LIST = [
|
|
7202
6984
|
{ type: "ORDERING", materialMap: "orderingMaterialMap" },
|
|
7203
6985
|
{ type: "DROPDOWN", materialMap: "dropdownMaterialMap" },
|
|
@@ -7212,7 +6994,7 @@ var ACTIVITY_TEMPLATE_LIST = [
|
|
|
7212
6994
|
{ type: "OPEN_ENDED", materialMap: "openEndedMaterialMap" },
|
|
7213
6995
|
{ type: "TRUE_FALSE", materialMap: "trueFalseMaterialMap" }
|
|
7214
6996
|
];
|
|
7215
|
-
var
|
|
6997
|
+
var ActivityPreviewByData = ({
|
|
7216
6998
|
data,
|
|
7217
6999
|
answerType = null,
|
|
7218
7000
|
showType = true,
|
|
@@ -7224,11 +7006,11 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7224
7006
|
isFullScreen = false,
|
|
7225
7007
|
showCorrectAnswer = false
|
|
7226
7008
|
}) => {
|
|
7227
|
-
const [selectedType, setSelectedType] =
|
|
7228
|
-
const [optionList, setOptionList] =
|
|
7229
|
-
const [answerMapMap, setAnswerMapMap] =
|
|
7230
|
-
const [activityTemplateTypeList, setActivityTemplateTypeList] =
|
|
7231
|
-
|
|
7009
|
+
const [selectedType, setSelectedType] = useState24(null);
|
|
7010
|
+
const [optionList, setOptionList] = useState24([]);
|
|
7011
|
+
const [answerMapMap, setAnswerMapMap] = useState24({});
|
|
7012
|
+
const [activityTemplateTypeList, setActivityTemplateTypeList] = useState24([]);
|
|
7013
|
+
useEffect15(() => {
|
|
7232
7014
|
if (!data) return;
|
|
7233
7015
|
let currentActivityTemplateMapList = JSON.parse(
|
|
7234
7016
|
JSON.stringify(ACTIVITY_TEMPLATE_LIST)
|
|
@@ -7246,7 +7028,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7246
7028
|
}
|
|
7247
7029
|
setActivityTemplateTypeList(currentActivityTemplateMapList);
|
|
7248
7030
|
}, [data, answerType, typeList]);
|
|
7249
|
-
|
|
7031
|
+
useEffect15(() => {
|
|
7250
7032
|
if (activityTemplateTypeList.length === 0) return;
|
|
7251
7033
|
const currentOptionList = [];
|
|
7252
7034
|
for (const activityTemplateType of activityTemplateTypeList) {
|
|
@@ -7266,11 +7048,11 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7266
7048
|
}
|
|
7267
7049
|
setOptionList(currentOptionList);
|
|
7268
7050
|
}, [activityTemplateTypeList, showDifficulty]);
|
|
7269
|
-
|
|
7051
|
+
useEffect15(() => {
|
|
7270
7052
|
if (optionList.length === 0) return;
|
|
7271
7053
|
setSelectedType(optionList[0].id);
|
|
7272
7054
|
}, [optionList]);
|
|
7273
|
-
|
|
7055
|
+
useEffect15(() => {
|
|
7274
7056
|
if (activityTemplateTypeList.length === 0) return;
|
|
7275
7057
|
const currentAnswerMapMap = {};
|
|
7276
7058
|
for (const activityTemplateMap of activityTemplateTypeList) {
|
|
@@ -7300,44 +7082,44 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7300
7082
|
const isEmpty = answerMapMap[selectedType].isEmpty;
|
|
7301
7083
|
switch (selectedType) {
|
|
7302
7084
|
case "ORDERING":
|
|
7303
|
-
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */
|
|
7304
|
-
isEmpty && /* @__PURE__ */
|
|
7305
|
-
/* @__PURE__ */
|
|
7085
|
+
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7086
|
+
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7087
|
+
/* @__PURE__ */ jsx47(OrderingActivityContent_default, __spreadValues({}, commonProps))
|
|
7306
7088
|
] }) : null;
|
|
7307
7089
|
case "DROPDOWN":
|
|
7308
|
-
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */
|
|
7309
|
-
isEmpty && /* @__PURE__ */
|
|
7310
|
-
/* @__PURE__ */
|
|
7090
|
+
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7091
|
+
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7092
|
+
/* @__PURE__ */ jsx47(DropdownActivityContent_default, __spreadValues({}, commonProps))
|
|
7311
7093
|
] }) : null;
|
|
7312
7094
|
case "MCSA":
|
|
7313
|
-
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */
|
|
7314
|
-
isEmpty && /* @__PURE__ */
|
|
7315
|
-
/* @__PURE__ */
|
|
7095
|
+
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7096
|
+
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7097
|
+
/* @__PURE__ */ jsx47(MCSAActivityContent_default, __spreadValues({}, commonProps))
|
|
7316
7098
|
] }) : null;
|
|
7317
7099
|
case "MCMA":
|
|
7318
|
-
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */
|
|
7319
|
-
isEmpty && /* @__PURE__ */
|
|
7320
|
-
/* @__PURE__ */
|
|
7100
|
+
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7101
|
+
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7102
|
+
/* @__PURE__ */ jsx47(MCMAActivityContent_default, __spreadValues({}, commonProps))
|
|
7321
7103
|
] }) : null;
|
|
7322
7104
|
case "MATCHING":
|
|
7323
|
-
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */
|
|
7324
|
-
isEmpty && /* @__PURE__ */
|
|
7325
|
-
/* @__PURE__ */
|
|
7105
|
+
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7106
|
+
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7107
|
+
/* @__PURE__ */ jsx47(MatchingActivityContent_default, __spreadValues({}, commonProps))
|
|
7326
7108
|
] }) : null;
|
|
7327
7109
|
case "GROUPING":
|
|
7328
|
-
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */
|
|
7329
|
-
isEmpty && /* @__PURE__ */
|
|
7330
|
-
/* @__PURE__ */
|
|
7110
|
+
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7111
|
+
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7112
|
+
/* @__PURE__ */ jsx47(GroupingActivityContent_default, __spreadValues({}, commonProps))
|
|
7331
7113
|
] }) : null;
|
|
7332
7114
|
case "FILL_IN_THE_BLANKS":
|
|
7333
|
-
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */
|
|
7334
|
-
isEmpty && /* @__PURE__ */
|
|
7335
|
-
/* @__PURE__ */
|
|
7115
|
+
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7116
|
+
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7117
|
+
/* @__PURE__ */ jsx47(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps))
|
|
7336
7118
|
] }) : null;
|
|
7337
7119
|
case "OPEN_ENDED":
|
|
7338
|
-
return data.openEndedBodyMap ? /* @__PURE__ */
|
|
7339
|
-
isEmpty && /* @__PURE__ */
|
|
7340
|
-
/* @__PURE__ */
|
|
7120
|
+
return data.openEndedBodyMap ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7121
|
+
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7122
|
+
/* @__PURE__ */ jsx47(
|
|
7341
7123
|
OpenEndedActivityContent_default,
|
|
7342
7124
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
7343
7125
|
showMaterialContent: true
|
|
@@ -7345,20 +7127,20 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7345
7127
|
)
|
|
7346
7128
|
] }) : null;
|
|
7347
7129
|
case "TRUE_FALSE":
|
|
7348
|
-
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */
|
|
7349
|
-
isEmpty && /* @__PURE__ */
|
|
7350
|
-
/* @__PURE__ */
|
|
7130
|
+
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7131
|
+
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7132
|
+
/* @__PURE__ */ jsx47(TrueFalseActivityContent_default, __spreadValues({}, commonProps))
|
|
7351
7133
|
] }) : null;
|
|
7352
7134
|
default:
|
|
7353
7135
|
return null;
|
|
7354
7136
|
}
|
|
7355
7137
|
};
|
|
7356
7138
|
if (!data) return null;
|
|
7357
|
-
return /* @__PURE__ */
|
|
7358
|
-
showType && optionList.length > 0 ? /* @__PURE__ */
|
|
7359
|
-
/* @__PURE__ */
|
|
7360
|
-
showDescription ? /* @__PURE__ */
|
|
7361
|
-
/* @__PURE__ */
|
|
7139
|
+
return /* @__PURE__ */ jsxs36("div", { children: [
|
|
7140
|
+
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7141
|
+
/* @__PURE__ */ jsxs36("div", { className: "mb-4", children: [
|
|
7142
|
+
showDescription ? /* @__PURE__ */ jsx47("div", { className: "my-2", children: /* @__PURE__ */ jsx47("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7143
|
+
/* @__PURE__ */ jsx47(
|
|
7362
7144
|
SelectionBox_default,
|
|
7363
7145
|
{
|
|
7364
7146
|
optionList,
|
|
@@ -7369,17 +7151,17 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7369
7151
|
}
|
|
7370
7152
|
)
|
|
7371
7153
|
] }),
|
|
7372
|
-
/* @__PURE__ */
|
|
7154
|
+
/* @__PURE__ */ jsx47(DividerLine_default, {})
|
|
7373
7155
|
] }) : null,
|
|
7374
|
-
/* @__PURE__ */
|
|
7375
|
-
selectedType && showSolution ? /* @__PURE__ */
|
|
7156
|
+
/* @__PURE__ */ jsx47("div", { className: "flex flex-col my-2 w-full p-5", children: RenderSelectedActivityContent() }),
|
|
7157
|
+
selectedType && showSolution ? /* @__PURE__ */ jsx47("div", { className: "my-4", children: /* @__PURE__ */ jsx47(
|
|
7376
7158
|
ActivitySolutionContent_default,
|
|
7377
7159
|
{
|
|
7378
7160
|
activityTemplateType: selectedType,
|
|
7379
7161
|
data
|
|
7380
7162
|
}
|
|
7381
7163
|
) }) : null,
|
|
7382
|
-
selectedType && showEvaluationRubric ? /* @__PURE__ */
|
|
7164
|
+
selectedType && showEvaluationRubric ? /* @__PURE__ */ jsx47("div", { className: "my-4", children: /* @__PURE__ */ jsx47(
|
|
7383
7165
|
ActivityEvaluationRubricContent_default,
|
|
7384
7166
|
{
|
|
7385
7167
|
activityTemplateType: selectedType,
|
|
@@ -7388,20 +7170,20 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7388
7170
|
) }) : null
|
|
7389
7171
|
] });
|
|
7390
7172
|
};
|
|
7391
|
-
var
|
|
7173
|
+
var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
7392
7174
|
|
|
7393
7175
|
// src/components/errors/StatusError.tsx
|
|
7394
|
-
import { jsx as
|
|
7176
|
+
import { jsx as jsx48, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7395
7177
|
var StatusError = ({
|
|
7396
7178
|
statusCode,
|
|
7397
7179
|
statusText,
|
|
7398
7180
|
textSize
|
|
7399
7181
|
}) => {
|
|
7400
|
-
return /* @__PURE__ */
|
|
7401
|
-
/* @__PURE__ */
|
|
7402
|
-
/* @__PURE__ */
|
|
7403
|
-
/* @__PURE__ */
|
|
7404
|
-
/* @__PURE__ */
|
|
7182
|
+
return /* @__PURE__ */ jsxs37("div", { className: "flex flex-col justify-center items-center", children: [
|
|
7183
|
+
/* @__PURE__ */ jsx48("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
|
|
7184
|
+
/* @__PURE__ */ jsxs37("div", { className: "text-center my-5", children: [
|
|
7185
|
+
/* @__PURE__ */ jsx48("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
|
|
7186
|
+
/* @__PURE__ */ jsxs37("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
|
|
7405
7187
|
"(",
|
|
7406
7188
|
statusCode ? `${statusCode} - ` : null,
|
|
7407
7189
|
statusText,
|
|
@@ -7413,9 +7195,9 @@ var StatusError = ({
|
|
|
7413
7195
|
var StatusError_default = StatusError;
|
|
7414
7196
|
|
|
7415
7197
|
// src/components/dividers/BlueVerticalDividerLine.tsx
|
|
7416
|
-
import { jsx as
|
|
7198
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
7417
7199
|
var BlueVerticalDividerLine = ({ opacity }) => {
|
|
7418
|
-
return /* @__PURE__ */
|
|
7200
|
+
return /* @__PURE__ */ jsx49(
|
|
7419
7201
|
"div",
|
|
7420
7202
|
{
|
|
7421
7203
|
className: `w-[2px] h-[40px] my-4 bg-catchup-blue ${opacity === "medium" ? "opacity-50" : ""}`
|
|
@@ -7425,7 +7207,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
|
|
|
7425
7207
|
var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
|
|
7426
7208
|
|
|
7427
7209
|
// src/components/groups/LeftTextRightInputGroup.tsx
|
|
7428
|
-
import { jsx as
|
|
7210
|
+
import { jsx as jsx50, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7429
7211
|
var LeftTextRightInputGroup = ({
|
|
7430
7212
|
type,
|
|
7431
7213
|
title,
|
|
@@ -7435,9 +7217,9 @@ var LeftTextRightInputGroup = ({
|
|
|
7435
7217
|
disabled,
|
|
7436
7218
|
errorText
|
|
7437
7219
|
}) => {
|
|
7438
|
-
return /* @__PURE__ */
|
|
7439
|
-
/* @__PURE__ */
|
|
7440
|
-
/* @__PURE__ */
|
|
7220
|
+
return /* @__PURE__ */ jsxs38("div", { className: "w-full flex flex-row mx-2", children: [
|
|
7221
|
+
/* @__PURE__ */ jsx50("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ jsx50("p", { children: title }) }),
|
|
7222
|
+
/* @__PURE__ */ jsx50("div", { className: "flex-1", children: /* @__PURE__ */ jsx50(
|
|
7441
7223
|
InputGroup_default,
|
|
7442
7224
|
{
|
|
7443
7225
|
type,
|
|
@@ -7453,8 +7235,8 @@ var LeftTextRightInputGroup = ({
|
|
|
7453
7235
|
var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
|
|
7454
7236
|
|
|
7455
7237
|
// src/components/groups/PageTravelGroup.tsx
|
|
7456
|
-
import { useEffect as
|
|
7457
|
-
import { jsx as
|
|
7238
|
+
import { useEffect as useEffect16, useState as useState25 } from "react";
|
|
7239
|
+
import { jsx as jsx51, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7458
7240
|
var PageTravelGroup = ({
|
|
7459
7241
|
isImageProcessing,
|
|
7460
7242
|
handleImageProcessing,
|
|
@@ -7463,17 +7245,17 @@ var PageTravelGroup = ({
|
|
|
7463
7245
|
setPageNumber,
|
|
7464
7246
|
setImageReady
|
|
7465
7247
|
}) => {
|
|
7466
|
-
const [totalPageNumber, setTotalPageNumber] =
|
|
7467
|
-
const [newPageNumber, setNewPageNumber] =
|
|
7468
|
-
|
|
7248
|
+
const [totalPageNumber, setTotalPageNumber] = useState25(0);
|
|
7249
|
+
const [newPageNumber, setNewPageNumber] = useState25(0);
|
|
7250
|
+
useEffect16(() => {
|
|
7469
7251
|
if (!initialTotalPageNumber) return;
|
|
7470
7252
|
setTotalPageNumber(initialTotalPageNumber);
|
|
7471
7253
|
}, [initialTotalPageNumber]);
|
|
7472
|
-
|
|
7254
|
+
useEffect16(() => {
|
|
7473
7255
|
setNewPageNumber(pageNumber + 1);
|
|
7474
7256
|
}, [pageNumber]);
|
|
7475
|
-
return /* @__PURE__ */
|
|
7476
|
-
pageNumber === 0 ? null : /* @__PURE__ */
|
|
7257
|
+
return /* @__PURE__ */ jsxs39("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap", children: [
|
|
7258
|
+
pageNumber === 0 ? null : /* @__PURE__ */ jsx51("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ jsx51(
|
|
7477
7259
|
BaseImage_default,
|
|
7478
7260
|
{
|
|
7479
7261
|
size: "small",
|
|
@@ -7491,7 +7273,7 @@ var PageTravelGroup = ({
|
|
|
7491
7273
|
}
|
|
7492
7274
|
}
|
|
7493
7275
|
) }),
|
|
7494
|
-
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */
|
|
7276
|
+
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ jsx51("div", { className: "px-2", children: /* @__PURE__ */ jsx51(
|
|
7495
7277
|
"p",
|
|
7496
7278
|
{
|
|
7497
7279
|
className: `${pageNumber === index ? "text-2xl" : "text-md"} cursor-pointer`,
|
|
@@ -7506,7 +7288,7 @@ var PageTravelGroup = ({
|
|
|
7506
7288
|
children: index + 1
|
|
7507
7289
|
}
|
|
7508
7290
|
) }, index)),
|
|
7509
|
-
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */
|
|
7291
|
+
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ jsx51("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ jsx51(
|
|
7510
7292
|
BaseImage_default,
|
|
7511
7293
|
{
|
|
7512
7294
|
size: "small",
|
|
@@ -7524,7 +7306,7 @@ var PageTravelGroup = ({
|
|
|
7524
7306
|
}
|
|
7525
7307
|
}
|
|
7526
7308
|
) }),
|
|
7527
|
-
/* @__PURE__ */
|
|
7309
|
+
/* @__PURE__ */ jsx51("div", { children: /* @__PURE__ */ jsx51(
|
|
7528
7310
|
"input",
|
|
7529
7311
|
{
|
|
7530
7312
|
className: `w-[90px] py-2 px-4 border border-catchup-gray-100 rounded-catchup-xlarge focus:outline-none placeholder-catchup-gray-200 focus:border-catchup-blue-400 focus:shadow-input`,
|
|
@@ -7548,14 +7330,14 @@ var PageTravelGroup = ({
|
|
|
7548
7330
|
var PageTravelGroup_default = PageTravelGroup;
|
|
7549
7331
|
|
|
7550
7332
|
// src/components/boxes/SelectionCheckbox.tsx
|
|
7551
|
-
import { jsx as
|
|
7333
|
+
import { jsx as jsx52, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7552
7334
|
var SelectionCheckbox = ({
|
|
7553
7335
|
optionList,
|
|
7554
7336
|
selectedIdList,
|
|
7555
7337
|
handleSelectOnClick,
|
|
7556
7338
|
handleRemoveOnClick
|
|
7557
7339
|
}) => {
|
|
7558
|
-
return /* @__PURE__ */
|
|
7340
|
+
return /* @__PURE__ */ jsx52("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx52(
|
|
7559
7341
|
"div",
|
|
7560
7342
|
{
|
|
7561
7343
|
className: `${selectedIdList.findIndex(
|
|
@@ -7570,14 +7352,14 @@ var SelectionCheckbox = ({
|
|
|
7570
7352
|
handleRemoveOnClick(option.id);
|
|
7571
7353
|
}
|
|
7572
7354
|
},
|
|
7573
|
-
children: /* @__PURE__ */
|
|
7355
|
+
children: /* @__PURE__ */ jsxs40(
|
|
7574
7356
|
"div",
|
|
7575
7357
|
{
|
|
7576
7358
|
className: `flex flex-row items-center gap-x-1 ${selectedIdList.findIndex(
|
|
7577
7359
|
(selectedId) => selectedId === option.id
|
|
7578
7360
|
) > -1 ? "opacity-100" : "opacity-50"}`,
|
|
7579
7361
|
children: [
|
|
7580
|
-
/* @__PURE__ */
|
|
7362
|
+
/* @__PURE__ */ jsx52(
|
|
7581
7363
|
BaseImage_default,
|
|
7582
7364
|
{
|
|
7583
7365
|
src: selectedIdList.findIndex(
|
|
@@ -7587,7 +7369,7 @@ var SelectionCheckbox = ({
|
|
|
7587
7369
|
size: "small"
|
|
7588
7370
|
}
|
|
7589
7371
|
),
|
|
7590
|
-
/* @__PURE__ */
|
|
7372
|
+
/* @__PURE__ */ jsx52("div", { className: "flex-1", children: /* @__PURE__ */ jsx52("p", { children: option.text }) })
|
|
7591
7373
|
]
|
|
7592
7374
|
}
|
|
7593
7375
|
)
|
|
@@ -7598,7 +7380,7 @@ var SelectionCheckbox = ({
|
|
|
7598
7380
|
var SelectionCheckbox_default = SelectionCheckbox;
|
|
7599
7381
|
|
|
7600
7382
|
// src/components/tabs/SelectionTab.tsx
|
|
7601
|
-
import { jsx as
|
|
7383
|
+
import { jsx as jsx53, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7602
7384
|
var SelectionTab = ({
|
|
7603
7385
|
optionList,
|
|
7604
7386
|
selectedId,
|
|
@@ -7608,7 +7390,7 @@ var SelectionTab = ({
|
|
|
7608
7390
|
textColor,
|
|
7609
7391
|
borderColor
|
|
7610
7392
|
}) => {
|
|
7611
|
-
return /* @__PURE__ */
|
|
7393
|
+
return /* @__PURE__ */ jsx53("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsxs41(
|
|
7612
7394
|
"div",
|
|
7613
7395
|
{
|
|
7614
7396
|
className: `${selectedId === option.id ? selectedTextColor ? selectedTextColor : "text-catchup-blue-500" : textColor ? textColor : "text-catchup-gray-300"} ${selectedId === option.id ? selectedBorderColor ? selectedBorderColor : "border-catchup-blue-500" : borderColor ? borderColor : "border-catchup-gray-50"} border-b-2 transition-all duration-300 p-3 cursor-pointer`,
|
|
@@ -7616,8 +7398,8 @@ var SelectionTab = ({
|
|
|
7616
7398
|
handleSelectOnClick(option.id);
|
|
7617
7399
|
},
|
|
7618
7400
|
children: [
|
|
7619
|
-
/* @__PURE__ */
|
|
7620
|
-
option.subTitle ? /* @__PURE__ */
|
|
7401
|
+
/* @__PURE__ */ jsx53("p", { className: "text-lg", children: option.title }),
|
|
7402
|
+
option.subTitle ? /* @__PURE__ */ jsx53("p", { className: "text-md", children: option.subTitle }) : null
|
|
7621
7403
|
]
|
|
7622
7404
|
},
|
|
7623
7405
|
index
|
|
@@ -7626,20 +7408,20 @@ var SelectionTab = ({
|
|
|
7626
7408
|
var SelectionTab_default = SelectionTab;
|
|
7627
7409
|
|
|
7628
7410
|
// src/components/tabs/SelectionTabFill.tsx
|
|
7629
|
-
import { jsx as
|
|
7411
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
7630
7412
|
var SelectionTabFill = ({
|
|
7631
7413
|
optionList,
|
|
7632
7414
|
selectedId,
|
|
7633
7415
|
handleSelectOnClick
|
|
7634
7416
|
}) => {
|
|
7635
|
-
return /* @__PURE__ */
|
|
7417
|
+
return /* @__PURE__ */ jsx54("div", { className: "w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx54(
|
|
7636
7418
|
"div",
|
|
7637
7419
|
{
|
|
7638
7420
|
className: "cursor-pointer",
|
|
7639
7421
|
onClick: () => {
|
|
7640
7422
|
handleSelectOnClick(option.id);
|
|
7641
7423
|
},
|
|
7642
|
-
children: /* @__PURE__ */
|
|
7424
|
+
children: /* @__PURE__ */ jsx54(
|
|
7643
7425
|
"p",
|
|
7644
7426
|
{
|
|
7645
7427
|
className: `${selectedId === option.id ? "text-catchup-white bg-catchup-blue-500" : "text-catchup-gray-300"} transition-all duration-300 rounded-catchup-medium px-2 py-1`,
|
|
@@ -7653,34 +7435,34 @@ var SelectionTabFill = ({
|
|
|
7653
7435
|
var SelectionTabFill_default = SelectionTabFill;
|
|
7654
7436
|
|
|
7655
7437
|
// src/components/labels/ActivityTemplateLabel.tsx
|
|
7656
|
-
import { jsx as
|
|
7438
|
+
import { jsx as jsx55, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7657
7439
|
var ActivityTemplateLabel = ({
|
|
7658
7440
|
title,
|
|
7659
7441
|
icon,
|
|
7660
7442
|
font
|
|
7661
7443
|
}) => {
|
|
7662
|
-
return /* @__PURE__ */
|
|
7663
|
-
icon ? icon : /* @__PURE__ */
|
|
7664
|
-
/* @__PURE__ */
|
|
7444
|
+
return /* @__PURE__ */ jsx55("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs42("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7445
|
+
icon ? icon : /* @__PURE__ */ jsx55(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
|
|
7446
|
+
/* @__PURE__ */ jsx55("p", { className: font ? font : "text-sm", children: title })
|
|
7665
7447
|
] }) });
|
|
7666
7448
|
};
|
|
7667
7449
|
var ActivityTemplateLabel_default = ActivityTemplateLabel;
|
|
7668
7450
|
|
|
7669
7451
|
// src/components/labels/BrandLabel.tsx
|
|
7670
|
-
import { jsx as
|
|
7452
|
+
import { jsx as jsx56, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7671
7453
|
var BrandLabel = ({ title, icon, font }) => {
|
|
7672
|
-
return /* @__PURE__ */
|
|
7673
|
-
icon ? icon : /* @__PURE__ */
|
|
7674
|
-
/* @__PURE__ */
|
|
7454
|
+
return /* @__PURE__ */ jsx56("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs43("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7455
|
+
icon ? icon : /* @__PURE__ */ jsx56(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
|
|
7456
|
+
/* @__PURE__ */ jsx56("p", { className: font ? font : "text-sm", children: title })
|
|
7675
7457
|
] }) });
|
|
7676
7458
|
};
|
|
7677
7459
|
var BrandLabel_default = BrandLabel;
|
|
7678
7460
|
|
|
7679
7461
|
// src/components/labels/CategoryLabel.tsx
|
|
7680
|
-
import { jsx as
|
|
7462
|
+
import { jsx as jsx57, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7681
7463
|
var CategoryLabel = ({ title, icon, font }) => {
|
|
7682
|
-
return /* @__PURE__ */
|
|
7683
|
-
icon ? icon : /* @__PURE__ */
|
|
7464
|
+
return /* @__PURE__ */ jsx57("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs44("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7465
|
+
icon ? icon : /* @__PURE__ */ jsx57(
|
|
7684
7466
|
BaseImage_default,
|
|
7685
7467
|
{
|
|
7686
7468
|
src: "/icons/category-label.webp",
|
|
@@ -7688,40 +7470,40 @@ var CategoryLabel = ({ title, icon, font }) => {
|
|
|
7688
7470
|
size: "xsmall"
|
|
7689
7471
|
}
|
|
7690
7472
|
),
|
|
7691
|
-
/* @__PURE__ */
|
|
7473
|
+
/* @__PURE__ */ jsx57("p", { className: font ? font : "text-sm", children: title })
|
|
7692
7474
|
] }) });
|
|
7693
7475
|
};
|
|
7694
7476
|
var CategoryLabel_default = CategoryLabel;
|
|
7695
7477
|
|
|
7696
7478
|
// src/components/labels/CoterieLabel.tsx
|
|
7697
|
-
import { jsx as
|
|
7479
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
7698
7480
|
var CoterieLabel = ({ title, font }) => {
|
|
7699
|
-
return /* @__PURE__ */
|
|
7481
|
+
return /* @__PURE__ */ jsx58("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsx58("p", { className: font ? font : "text-sm", children: title }) });
|
|
7700
7482
|
};
|
|
7701
7483
|
var CoterieLabel_default = CoterieLabel;
|
|
7702
7484
|
|
|
7703
7485
|
// src/components/labels/GradeLabel.tsx
|
|
7704
|
-
import { jsx as
|
|
7486
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
7705
7487
|
var GradeLabel = ({ title, font }) => {
|
|
7706
|
-
return /* @__PURE__ */
|
|
7488
|
+
return /* @__PURE__ */ jsx59("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsx59("p", { className: font ? font : "text-sm", children: title }) });
|
|
7707
7489
|
};
|
|
7708
7490
|
var GradeLabel_default = GradeLabel;
|
|
7709
7491
|
|
|
7710
7492
|
// src/components/labels/OutcomeLabel.tsx
|
|
7711
|
-
import { jsx as
|
|
7493
|
+
import { jsx as jsx60, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7712
7494
|
var OutcomeLabel = ({ title, font }) => {
|
|
7713
|
-
return /* @__PURE__ */
|
|
7714
|
-
/* @__PURE__ */
|
|
7715
|
-
/* @__PURE__ */
|
|
7495
|
+
return /* @__PURE__ */ jsx60("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs45("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7496
|
+
/* @__PURE__ */ jsx60(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
|
|
7497
|
+
/* @__PURE__ */ jsx60("p", { className: font ? font : "text-sm", children: title })
|
|
7716
7498
|
] }) });
|
|
7717
7499
|
};
|
|
7718
7500
|
var OutcomeLabel_default = OutcomeLabel;
|
|
7719
7501
|
|
|
7720
7502
|
// src/components/labels/PersonalLabel.tsx
|
|
7721
|
-
import { jsx as
|
|
7503
|
+
import { jsx as jsx61, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7722
7504
|
var PersonalLabel = ({ title, icon, font }) => {
|
|
7723
|
-
return /* @__PURE__ */
|
|
7724
|
-
icon ? icon : /* @__PURE__ */
|
|
7505
|
+
return /* @__PURE__ */ jsx61("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs46("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7506
|
+
icon ? icon : /* @__PURE__ */ jsx61(
|
|
7725
7507
|
BaseImage_default,
|
|
7726
7508
|
{
|
|
7727
7509
|
src: "/icons/personal-label.webp",
|
|
@@ -7729,16 +7511,16 @@ var PersonalLabel = ({ title, icon, font }) => {
|
|
|
7729
7511
|
size: "xsmall"
|
|
7730
7512
|
}
|
|
7731
7513
|
),
|
|
7732
|
-
/* @__PURE__ */
|
|
7514
|
+
/* @__PURE__ */ jsx61("p", { className: font ? font : "text-sm", children: title })
|
|
7733
7515
|
] }) });
|
|
7734
7516
|
};
|
|
7735
7517
|
var PersonalLabel_default = PersonalLabel;
|
|
7736
7518
|
|
|
7737
7519
|
// src/components/labels/PublishingHouseLabel.tsx
|
|
7738
|
-
import { jsx as
|
|
7520
|
+
import { jsx as jsx62, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7739
7521
|
var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
7740
|
-
return /* @__PURE__ */
|
|
7741
|
-
icon ? icon : /* @__PURE__ */
|
|
7522
|
+
return /* @__PURE__ */ jsx62("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs47("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7523
|
+
icon ? icon : /* @__PURE__ */ jsx62(
|
|
7742
7524
|
BaseImage_default,
|
|
7743
7525
|
{
|
|
7744
7526
|
src: "/icons/publishing-house-label.webp",
|
|
@@ -7746,55 +7528,55 @@ var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
|
7746
7528
|
size: "xsmall"
|
|
7747
7529
|
}
|
|
7748
7530
|
),
|
|
7749
|
-
/* @__PURE__ */
|
|
7531
|
+
/* @__PURE__ */ jsx62("p", { className: font ? font : "text-sm", children: title })
|
|
7750
7532
|
] }) });
|
|
7751
7533
|
};
|
|
7752
7534
|
var PublishingHouseLabel_default = PublishingHouseLabel;
|
|
7753
7535
|
|
|
7754
7536
|
// src/components/labels/ActivityLabel.tsx
|
|
7755
|
-
import { jsx as
|
|
7537
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
7756
7538
|
var ActivityLabel = ({ title, font }) => {
|
|
7757
|
-
return /* @__PURE__ */
|
|
7539
|
+
return /* @__PURE__ */ jsx63("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsx63("p", { className: font ? font : "text-sm", children: title }) });
|
|
7758
7540
|
};
|
|
7759
7541
|
var ActivityLabel_default = ActivityLabel;
|
|
7760
7542
|
|
|
7761
7543
|
// src/components/infos/InfoWithText.tsx
|
|
7762
|
-
import { jsx as
|
|
7544
|
+
import { jsx as jsx64, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7763
7545
|
var InfoWithText = (props) => {
|
|
7764
7546
|
const { value } = props;
|
|
7765
|
-
return /* @__PURE__ */
|
|
7766
|
-
/* @__PURE__ */
|
|
7767
|
-
/* @__PURE__ */
|
|
7547
|
+
return /* @__PURE__ */ jsxs48("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
7548
|
+
/* @__PURE__ */ jsx64(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
|
|
7549
|
+
/* @__PURE__ */ jsx64("div", { className: "flex-1", children: /* @__PURE__ */ jsx64("p", { className: "", children: value }) })
|
|
7768
7550
|
] });
|
|
7769
7551
|
};
|
|
7770
7552
|
var InfoWithText_default = InfoWithText;
|
|
7771
7553
|
|
|
7772
7554
|
// src/components/titles/BaseTitle.tsx
|
|
7773
|
-
import { jsx as
|
|
7555
|
+
import { jsx as jsx65, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7774
7556
|
var BaseTitle = ({
|
|
7775
7557
|
title,
|
|
7776
7558
|
totalItemCount,
|
|
7777
7559
|
itemName,
|
|
7778
7560
|
description
|
|
7779
7561
|
}) => {
|
|
7780
|
-
return /* @__PURE__ */
|
|
7781
|
-
/* @__PURE__ */
|
|
7562
|
+
return /* @__PURE__ */ jsxs49("div", { className: "flex flex-col gap-y-2", children: [
|
|
7563
|
+
/* @__PURE__ */ jsxs49("p", { className: "text-2xl font-medium", children: [
|
|
7782
7564
|
title,
|
|
7783
|
-
totalItemCount && itemName ? /* @__PURE__ */
|
|
7565
|
+
totalItemCount && itemName ? /* @__PURE__ */ jsxs49("span", { className: "p-2 text-base text-catchup-blue-600 border border-catchup-blue-300 rounded-catchup-3xlarge mx-2 bg-catchup-blue-100", children: [
|
|
7784
7566
|
totalItemCount,
|
|
7785
7567
|
" ",
|
|
7786
7568
|
itemName
|
|
7787
7569
|
] }) : null
|
|
7788
7570
|
] }),
|
|
7789
|
-
description ? /* @__PURE__ */
|
|
7571
|
+
description ? /* @__PURE__ */ jsx65("p", { className: "", children: description }) : null
|
|
7790
7572
|
] });
|
|
7791
7573
|
};
|
|
7792
7574
|
var BaseTitle_default = BaseTitle;
|
|
7793
7575
|
|
|
7794
7576
|
// src/components/titles/SubTitle.tsx
|
|
7795
|
-
import { jsx as
|
|
7577
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
7796
7578
|
var SubTitle = ({ title }) => {
|
|
7797
|
-
return /* @__PURE__ */
|
|
7579
|
+
return /* @__PURE__ */ jsx66("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
|
|
7798
7580
|
};
|
|
7799
7581
|
var SubTitle_default = SubTitle;
|
|
7800
7582
|
|
|
@@ -10515,7 +10297,6 @@ export {
|
|
|
10515
10297
|
ActivityEmptyContent_default as ActivityEmptyContent,
|
|
10516
10298
|
ActivityEvaluationRubricContent_default as ActivityEvaluationRubricContent,
|
|
10517
10299
|
ActivityLabel_default as ActivityLabel,
|
|
10518
|
-
ActivityPreviewByAnswerData_default as ActivityPreviewByAnswerData,
|
|
10519
10300
|
ActivityPreviewByData_default as ActivityPreviewByData,
|
|
10520
10301
|
ActivitySolutionContent_default as ActivitySolutionContent,
|
|
10521
10302
|
ActivityTemplateLabel_default as ActivityTemplateLabel,
|