catchup-library-web 2.4.6 → 2.4.8
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.js +57 -56
- package/dist/index.mjs +50 -49
- package/package.json +1 -1
- package/src/components/modals/BaseModal.tsx +3 -1
package/dist/index.js
CHANGED
|
@@ -1223,8 +1223,15 @@ var BaseTitle = ({
|
|
|
1223
1223
|
};
|
|
1224
1224
|
var BaseTitle_default = BaseTitle;
|
|
1225
1225
|
|
|
1226
|
-
// src/components/
|
|
1226
|
+
// src/components/dividers/DividerLine.tsx
|
|
1227
1227
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1228
|
+
var DividerLine = () => {
|
|
1229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
|
|
1230
|
+
};
|
|
1231
|
+
var DividerLine_default = DividerLine;
|
|
1232
|
+
|
|
1233
|
+
// src/components/modals/BaseModal.tsx
|
|
1234
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1228
1235
|
var BaseModal = ({
|
|
1229
1236
|
title,
|
|
1230
1237
|
isOpen,
|
|
@@ -1234,7 +1241,7 @@ var BaseModal = ({
|
|
|
1234
1241
|
customSize,
|
|
1235
1242
|
children
|
|
1236
1243
|
}) => {
|
|
1237
|
-
return /* @__PURE__ */ (0,
|
|
1244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1238
1245
|
import_react_modal.default,
|
|
1239
1246
|
{
|
|
1240
1247
|
isOpen,
|
|
@@ -1262,20 +1269,20 @@ var BaseModal = ({
|
|
|
1262
1269
|
}
|
|
1263
1270
|
},
|
|
1264
1271
|
contentLabel: "",
|
|
1265
|
-
children: customSize ? /* @__PURE__ */ (0,
|
|
1272
|
+
children: customSize ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1266
1273
|
"div",
|
|
1267
1274
|
{
|
|
1268
1275
|
className: `${customSize} font-quicksand max-h-[calc(98vh-48px)] overflow-auto`,
|
|
1269
1276
|
children
|
|
1270
1277
|
}
|
|
1271
|
-
) : /* @__PURE__ */ (0,
|
|
1278
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1272
1279
|
"div",
|
|
1273
1280
|
{
|
|
1274
1281
|
className: `font-quicksand ${size === "small" ? "w-[600px]" : size === "medium" ? "w-[900px]" : "w-[600px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1500px]"}`,
|
|
1275
|
-
children: /* @__PURE__ */ (0,
|
|
1276
|
-
/* @__PURE__ */ (0,
|
|
1277
|
-
/* @__PURE__ */ (0,
|
|
1278
|
-
/* @__PURE__ */ (0,
|
|
1282
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(FullCard_default, { children: [
|
|
1283
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-row justify-between", children: [
|
|
1284
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(BaseTitle_default, { title }),
|
|
1285
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1279
1286
|
BaseImage_default,
|
|
1280
1287
|
{
|
|
1281
1288
|
src: "/icons/cross-red.webp",
|
|
@@ -1285,7 +1292,8 @@ var BaseModal = ({
|
|
|
1285
1292
|
}
|
|
1286
1293
|
)
|
|
1287
1294
|
] }),
|
|
1288
|
-
/* @__PURE__ */ (0,
|
|
1295
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DividerLine_default, {}),
|
|
1296
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "max-h-[calc(98vh-80px)] overflow-auto", children })
|
|
1289
1297
|
] })
|
|
1290
1298
|
}
|
|
1291
1299
|
)
|
|
@@ -1297,7 +1305,7 @@ var BaseModal_default = BaseModal;
|
|
|
1297
1305
|
// src/components/pdfs/BasePDF.tsx
|
|
1298
1306
|
var import_react10 = require("react");
|
|
1299
1307
|
var import_react_pdf = require("react-pdf");
|
|
1300
|
-
var
|
|
1308
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1301
1309
|
var BasePDF = ({ file }) => {
|
|
1302
1310
|
const [pageNumber, setPageNumber] = (0, import_react10.useState)(1);
|
|
1303
1311
|
const [numberOfPages, setNumberOfPages] = (0, import_react10.useState)(0);
|
|
@@ -1305,10 +1313,10 @@ var BasePDF = ({ file }) => {
|
|
|
1305
1313
|
setPageNumber(1);
|
|
1306
1314
|
setNumberOfPages(numPages);
|
|
1307
1315
|
};
|
|
1308
|
-
return /* @__PURE__ */ (0,
|
|
1309
|
-
/* @__PURE__ */ (0,
|
|
1310
|
-
/* @__PURE__ */ (0,
|
|
1311
|
-
pageNumber === 1 ? null : /* @__PURE__ */ (0,
|
|
1316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_react_pdf.Document, { file, onLoadSuccess: handleOnDocumentLoadSuccess, children: [
|
|
1317
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_pdf.Page, { pageNumber }),
|
|
1318
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-row items-center justify-center", children: [
|
|
1319
|
+
pageNumber === 1 ? null : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1312
1320
|
BaseImage_default,
|
|
1313
1321
|
{
|
|
1314
1322
|
alt: "arrow-left",
|
|
@@ -1319,7 +1327,7 @@ var BasePDF = ({ file }) => {
|
|
|
1319
1327
|
}
|
|
1320
1328
|
}
|
|
1321
1329
|
) }) }),
|
|
1322
|
-
Array.from(Array(numberOfPages).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0,
|
|
1330
|
+
Array.from(Array(numberOfPages).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1323
1331
|
"p",
|
|
1324
1332
|
{
|
|
1325
1333
|
className: `${pageNumber === index + 1 ? "text-2xl" : "text-md"} cursor-pointer`,
|
|
@@ -1329,7 +1337,7 @@ var BasePDF = ({ file }) => {
|
|
|
1329
1337
|
children: index + 1
|
|
1330
1338
|
}
|
|
1331
1339
|
) }, index)),
|
|
1332
|
-
numberOfPages === 0 || pageNumber === numberOfPages ? null : /* @__PURE__ */ (0,
|
|
1340
|
+
numberOfPages === 0 || pageNumber === numberOfPages ? null : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1333
1341
|
BaseImage_default,
|
|
1334
1342
|
{
|
|
1335
1343
|
src: "/icons/arrow-right.webp",
|
|
@@ -1346,9 +1354,9 @@ var BasePDF = ({ file }) => {
|
|
|
1346
1354
|
var BasePDF_default = BasePDF;
|
|
1347
1355
|
|
|
1348
1356
|
// src/components/activities/empty-contents/ActivityEmptyContent.tsx
|
|
1349
|
-
var
|
|
1357
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1350
1358
|
var ActivityEmptyContent = () => {
|
|
1351
|
-
return /* @__PURE__ */ (0,
|
|
1359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2 mb-2 bg-catchup-orange text-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-lg", children: i18n_default.t("you_have_set_this_activity_as_empty") }) });
|
|
1352
1360
|
};
|
|
1353
1361
|
var ActivityEmptyContent_default = ActivityEmptyContent;
|
|
1354
1362
|
|
|
@@ -3372,7 +3380,7 @@ var retrieveActivityCountOptionList = () => {
|
|
|
3372
3380
|
|
|
3373
3381
|
// src/components/activities/body-contents/ShowBodyMediaByContentType.tsx
|
|
3374
3382
|
var import_react_katex = require("react-katex");
|
|
3375
|
-
var
|
|
3383
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
3376
3384
|
var ShowBodyMediaByContentType = ({
|
|
3377
3385
|
index,
|
|
3378
3386
|
type,
|
|
@@ -3394,17 +3402,17 @@ var ShowBodyMediaByContentType = ({
|
|
|
3394
3402
|
}
|
|
3395
3403
|
};
|
|
3396
3404
|
const renderSpecialExpressions = (inputPart, inputPartIndex) => {
|
|
3397
|
-
return /* @__PURE__ */ (0,
|
|
3405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3398
3406
|
"span",
|
|
3399
3407
|
{
|
|
3400
3408
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
3401
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
3409
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-xl", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
3402
3410
|
},
|
|
3403
3411
|
inputPartIndex
|
|
3404
3412
|
);
|
|
3405
3413
|
};
|
|
3406
3414
|
const renderTextContent = (text, itemKey) => {
|
|
3407
|
-
return /* @__PURE__ */ (0,
|
|
3415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-xl", children: constructInputWithSpecialExpressionList(text).map(
|
|
3408
3416
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
3409
3417
|
) }, itemKey);
|
|
3410
3418
|
};
|
|
@@ -3436,7 +3444,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3436
3444
|
currentIndex++;
|
|
3437
3445
|
const itemKey = `text-inside-${index}-${currentIndex}`;
|
|
3438
3446
|
valuePartList.push(
|
|
3439
|
-
/* @__PURE__ */ (0,
|
|
3447
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-xl font-bold", children: constructInputWithSpecialExpressionList(textInsideTag).map(
|
|
3440
3448
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
3441
3449
|
) }, itemKey)
|
|
3442
3450
|
);
|
|
@@ -3453,7 +3461,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3453
3461
|
if (textBeforeTag.trim() !== "") {
|
|
3454
3462
|
currentIndex++;
|
|
3455
3463
|
valuePartList.push(
|
|
3456
|
-
/* @__PURE__ */ (0,
|
|
3464
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3457
3465
|
"p",
|
|
3458
3466
|
{
|
|
3459
3467
|
className: "text-xl",
|
|
@@ -3472,12 +3480,12 @@ var ShowBodyMediaByContentType = ({
|
|
|
3472
3480
|
);
|
|
3473
3481
|
currentIndex++;
|
|
3474
3482
|
valuePartList.push(
|
|
3475
|
-
/* @__PURE__ */ (0,
|
|
3483
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
3476
3484
|
"div",
|
|
3477
3485
|
{
|
|
3478
3486
|
className: "relative w-[200px]",
|
|
3479
3487
|
children: [
|
|
3480
|
-
/* @__PURE__ */ (0,
|
|
3488
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3481
3489
|
BaseImage_default,
|
|
3482
3490
|
{
|
|
3483
3491
|
src: imageSource,
|
|
@@ -3486,12 +3494,12 @@ var ShowBodyMediaByContentType = ({
|
|
|
3486
3494
|
className: "rounded-catchup-xlarge"
|
|
3487
3495
|
}
|
|
3488
3496
|
),
|
|
3489
|
-
/* @__PURE__ */ (0,
|
|
3497
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3490
3498
|
"div",
|
|
3491
3499
|
{
|
|
3492
3500
|
className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
|
|
3493
3501
|
onClick: () => handleOpenFullScreen(imageSource),
|
|
3494
|
-
children: /* @__PURE__ */ (0,
|
|
3502
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3495
3503
|
BaseImage_default,
|
|
3496
3504
|
{
|
|
3497
3505
|
src: "/icons/arrow-up.webp",
|
|
@@ -3520,7 +3528,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3520
3528
|
if (textBeforeTag.trim() !== "") {
|
|
3521
3529
|
currentIndex++;
|
|
3522
3530
|
valuePartList.push(
|
|
3523
|
-
/* @__PURE__ */ (0,
|
|
3531
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3524
3532
|
"p",
|
|
3525
3533
|
{
|
|
3526
3534
|
className: "text-xl",
|
|
@@ -3539,7 +3547,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3539
3547
|
);
|
|
3540
3548
|
currentIndex++;
|
|
3541
3549
|
valuePartList.push(
|
|
3542
|
-
/* @__PURE__ */ (0,
|
|
3550
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3543
3551
|
"video",
|
|
3544
3552
|
{
|
|
3545
3553
|
src: videoSource,
|
|
@@ -3562,7 +3570,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3562
3570
|
if (textBeforeTag.trim() !== "") {
|
|
3563
3571
|
currentIndex++;
|
|
3564
3572
|
valuePartList.push(
|
|
3565
|
-
/* @__PURE__ */ (0,
|
|
3573
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3566
3574
|
"p",
|
|
3567
3575
|
{
|
|
3568
3576
|
className: "text-xl",
|
|
@@ -3581,7 +3589,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3581
3589
|
);
|
|
3582
3590
|
currentIndex++;
|
|
3583
3591
|
valuePartList.push(
|
|
3584
|
-
/* @__PURE__ */ (0,
|
|
3592
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3585
3593
|
"audio",
|
|
3586
3594
|
{
|
|
3587
3595
|
src: audioSource,
|
|
@@ -3606,13 +3614,13 @@ var ShowBodyMediaByContentType = ({
|
|
|
3606
3614
|
if (regexMatchImageText) {
|
|
3607
3615
|
const imageText = regexMatchImageText[1];
|
|
3608
3616
|
valuePartList.push(
|
|
3609
|
-
/* @__PURE__ */ (0,
|
|
3617
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
3610
3618
|
"div",
|
|
3611
3619
|
{
|
|
3612
3620
|
className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2",
|
|
3613
3621
|
children: [
|
|
3614
|
-
/* @__PURE__ */ (0,
|
|
3615
|
-
/* @__PURE__ */ (0,
|
|
3622
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute -top-3 bg-catchup-white border rounded-catchup-small px-2 left-2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "font-bold", children: i18n_default.t("image_description") }) }),
|
|
3623
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-xl", children: imageText })
|
|
3616
3624
|
]
|
|
3617
3625
|
},
|
|
3618
3626
|
`img-desc-${index}-${currentIndex}`
|
|
@@ -3626,7 +3634,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3626
3634
|
return valuePartList;
|
|
3627
3635
|
};
|
|
3628
3636
|
const RenderShowFullScreenItem = () => {
|
|
3629
|
-
return /* @__PURE__ */ (0,
|
|
3637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3630
3638
|
import_react_modal2.default,
|
|
3631
3639
|
{
|
|
3632
3640
|
isOpen: showFullScreen,
|
|
@@ -3655,8 +3663,8 @@ var ShowBodyMediaByContentType = ({
|
|
|
3655
3663
|
}
|
|
3656
3664
|
},
|
|
3657
3665
|
contentLabel: "Image Fullscreen View",
|
|
3658
|
-
children: /* @__PURE__ */ (0,
|
|
3659
|
-
/* @__PURE__ */ (0,
|
|
3666
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex-1 flex flex-col", children: [
|
|
3667
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3660
3668
|
BaseImage_default,
|
|
3661
3669
|
{
|
|
3662
3670
|
src: "/icons/cross-red.webp",
|
|
@@ -3668,7 +3676,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3668
3676
|
}
|
|
3669
3677
|
}
|
|
3670
3678
|
) }),
|
|
3671
|
-
/* @__PURE__ */ (0,
|
|
3679
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3672
3680
|
BaseImage_default,
|
|
3673
3681
|
{
|
|
3674
3682
|
src: selectedFullScreenItem,
|
|
@@ -3684,16 +3692,16 @@ var ShowBodyMediaByContentType = ({
|
|
|
3684
3692
|
const RenderMainContent = () => {
|
|
3685
3693
|
switch (type) {
|
|
3686
3694
|
case "TEXT":
|
|
3687
|
-
return /* @__PURE__ */ (0,
|
|
3695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "mb-1 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "whitespace-pre-wrap", children: retrieveValueParts(value) }) });
|
|
3688
3696
|
case "IMAGE":
|
|
3689
|
-
return /* @__PURE__ */ (0,
|
|
3697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "mb-1 flex flex-col items-center relative", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
3690
3698
|
"div",
|
|
3691
3699
|
{
|
|
3692
3700
|
className: `${convertToPercentage(
|
|
3693
3701
|
size
|
|
3694
3702
|
)} rounded-catchup-xlarge relative`,
|
|
3695
3703
|
children: [
|
|
3696
|
-
/* @__PURE__ */ (0,
|
|
3704
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3697
3705
|
BaseImage_default,
|
|
3698
3706
|
{
|
|
3699
3707
|
src: value,
|
|
@@ -3702,12 +3710,12 @@ var ShowBodyMediaByContentType = ({
|
|
|
3702
3710
|
className: "w-full rounded-catchup-xlarge"
|
|
3703
3711
|
}
|
|
3704
3712
|
),
|
|
3705
|
-
/* @__PURE__ */ (0,
|
|
3713
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3706
3714
|
"div",
|
|
3707
3715
|
{
|
|
3708
3716
|
className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
|
|
3709
3717
|
onClick: () => handleOpenFullScreen(value),
|
|
3710
|
-
children: /* @__PURE__ */ (0,
|
|
3718
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3711
3719
|
BaseImage_default,
|
|
3712
3720
|
{
|
|
3713
3721
|
src: "/icons/arrow-up.webp",
|
|
@@ -3722,7 +3730,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3722
3730
|
}
|
|
3723
3731
|
) });
|
|
3724
3732
|
case "VIDEO":
|
|
3725
|
-
return /* @__PURE__ */ (0,
|
|
3733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "mb-1 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3726
3734
|
"video",
|
|
3727
3735
|
{
|
|
3728
3736
|
src: value,
|
|
@@ -3731,12 +3739,12 @@ var ShowBodyMediaByContentType = ({
|
|
|
3731
3739
|
}
|
|
3732
3740
|
) });
|
|
3733
3741
|
case "AUDIO":
|
|
3734
|
-
return /* @__PURE__ */ (0,
|
|
3742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "mb-1 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("audio", { src: value, controls: true, className: "rounded-catchup-xlarge" }) });
|
|
3735
3743
|
default:
|
|
3736
3744
|
return null;
|
|
3737
3745
|
}
|
|
3738
3746
|
};
|
|
3739
|
-
return /* @__PURE__ */ (0,
|
|
3747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "w-full", children: [
|
|
3740
3748
|
RenderShowFullScreenItem(),
|
|
3741
3749
|
RenderMainContent()
|
|
3742
3750
|
] }, `body-content-${index}`);
|
|
@@ -3744,7 +3752,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3744
3752
|
var ShowBodyMediaByContentType_default = ShowBodyMediaByContentType;
|
|
3745
3753
|
|
|
3746
3754
|
// src/components/activities/body-contents/ActivityBodyContent.tsx
|
|
3747
|
-
var
|
|
3755
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
3748
3756
|
var ActivityBodyContent = ({
|
|
3749
3757
|
templateType,
|
|
3750
3758
|
bodyMap,
|
|
@@ -3825,7 +3833,7 @@ var ActivityBodyContent = ({
|
|
|
3825
3833
|
key
|
|
3826
3834
|
});
|
|
3827
3835
|
}).filter(Boolean);
|
|
3828
|
-
return /* @__PURE__ */ (0,
|
|
3836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex flex-col justify-center items-center", children: processedBodies.map((body, index) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
3829
3837
|
ShowBodyMediaByContentType_default,
|
|
3830
3838
|
{
|
|
3831
3839
|
index,
|
|
@@ -3838,13 +3846,6 @@ var ActivityBodyContent = ({
|
|
|
3838
3846
|
};
|
|
3839
3847
|
var ActivityBodyContent_default = ActivityBodyContent;
|
|
3840
3848
|
|
|
3841
|
-
// src/components/dividers/DividerLine.tsx
|
|
3842
|
-
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
3843
|
-
var DividerLine = () => {
|
|
3844
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
|
|
3845
|
-
};
|
|
3846
|
-
var DividerLine_default = DividerLine;
|
|
3847
|
-
|
|
3848
3849
|
// src/components/dividers/VerticalDividerLine.tsx
|
|
3849
3850
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
3850
3851
|
var VerticalDividerLine = () => {
|
package/dist/index.mjs
CHANGED
|
@@ -990,8 +990,15 @@ var BaseTitle = ({
|
|
|
990
990
|
};
|
|
991
991
|
var BaseTitle_default = BaseTitle;
|
|
992
992
|
|
|
993
|
+
// src/components/dividers/DividerLine.tsx
|
|
994
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
995
|
+
var DividerLine = () => {
|
|
996
|
+
return /* @__PURE__ */ jsx16("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
|
|
997
|
+
};
|
|
998
|
+
var DividerLine_default = DividerLine;
|
|
999
|
+
|
|
993
1000
|
// src/components/modals/BaseModal.tsx
|
|
994
|
-
import { jsx as
|
|
1001
|
+
import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
995
1002
|
var BaseModal = ({
|
|
996
1003
|
title,
|
|
997
1004
|
isOpen,
|
|
@@ -1001,7 +1008,7 @@ var BaseModal = ({
|
|
|
1001
1008
|
customSize,
|
|
1002
1009
|
children
|
|
1003
1010
|
}) => {
|
|
1004
|
-
return /* @__PURE__ */
|
|
1011
|
+
return /* @__PURE__ */ jsx17(
|
|
1005
1012
|
Modal,
|
|
1006
1013
|
{
|
|
1007
1014
|
isOpen,
|
|
@@ -1029,20 +1036,20 @@ var BaseModal = ({
|
|
|
1029
1036
|
}
|
|
1030
1037
|
},
|
|
1031
1038
|
contentLabel: "",
|
|
1032
|
-
children: customSize ? /* @__PURE__ */
|
|
1039
|
+
children: customSize ? /* @__PURE__ */ jsx17(
|
|
1033
1040
|
"div",
|
|
1034
1041
|
{
|
|
1035
1042
|
className: `${customSize} font-quicksand max-h-[calc(98vh-48px)] overflow-auto`,
|
|
1036
1043
|
children
|
|
1037
1044
|
}
|
|
1038
|
-
) : /* @__PURE__ */
|
|
1045
|
+
) : /* @__PURE__ */ jsx17(
|
|
1039
1046
|
"div",
|
|
1040
1047
|
{
|
|
1041
1048
|
className: `font-quicksand ${size === "small" ? "w-[600px]" : size === "medium" ? "w-[900px]" : "w-[600px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1500px]"}`,
|
|
1042
1049
|
children: /* @__PURE__ */ jsxs11(FullCard_default, { children: [
|
|
1043
|
-
/* @__PURE__ */ jsxs11("div", { className: "flex flex-row justify-between
|
|
1044
|
-
/* @__PURE__ */
|
|
1045
|
-
/* @__PURE__ */
|
|
1050
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex flex-row justify-between", children: [
|
|
1051
|
+
/* @__PURE__ */ jsx17(BaseTitle_default, { title }),
|
|
1052
|
+
/* @__PURE__ */ jsx17(
|
|
1046
1053
|
BaseImage_default,
|
|
1047
1054
|
{
|
|
1048
1055
|
src: "/icons/cross-red.webp",
|
|
@@ -1052,7 +1059,8 @@ var BaseModal = ({
|
|
|
1052
1059
|
}
|
|
1053
1060
|
)
|
|
1054
1061
|
] }),
|
|
1055
|
-
/* @__PURE__ */
|
|
1062
|
+
/* @__PURE__ */ jsx17(DividerLine_default, {}),
|
|
1063
|
+
/* @__PURE__ */ jsx17("div", { className: "max-h-[calc(98vh-80px)] overflow-auto", children })
|
|
1056
1064
|
] })
|
|
1057
1065
|
}
|
|
1058
1066
|
)
|
|
@@ -1064,7 +1072,7 @@ var BaseModal_default = BaseModal;
|
|
|
1064
1072
|
// src/components/pdfs/BasePDF.tsx
|
|
1065
1073
|
import { useState as useState10 } from "react";
|
|
1066
1074
|
import { Document, Page } from "react-pdf";
|
|
1067
|
-
import { jsx as
|
|
1075
|
+
import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1068
1076
|
var BasePDF = ({ file }) => {
|
|
1069
1077
|
const [pageNumber, setPageNumber] = useState10(1);
|
|
1070
1078
|
const [numberOfPages, setNumberOfPages] = useState10(0);
|
|
@@ -1073,9 +1081,9 @@ var BasePDF = ({ file }) => {
|
|
|
1073
1081
|
setNumberOfPages(numPages);
|
|
1074
1082
|
};
|
|
1075
1083
|
return /* @__PURE__ */ jsxs12(Document, { file, onLoadSuccess: handleOnDocumentLoadSuccess, children: [
|
|
1076
|
-
/* @__PURE__ */
|
|
1084
|
+
/* @__PURE__ */ jsx18(Page, { pageNumber }),
|
|
1077
1085
|
/* @__PURE__ */ jsxs12("div", { className: "flex flex-row items-center justify-center", children: [
|
|
1078
|
-
pageNumber === 1 ? null : /* @__PURE__ */
|
|
1086
|
+
pageNumber === 1 ? null : /* @__PURE__ */ jsx18("div", { className: "px-2", children: /* @__PURE__ */ jsx18("div", { className: "cursor-pointer", children: /* @__PURE__ */ jsx18(
|
|
1079
1087
|
BaseImage_default,
|
|
1080
1088
|
{
|
|
1081
1089
|
alt: "arrow-left",
|
|
@@ -1086,7 +1094,7 @@ var BasePDF = ({ file }) => {
|
|
|
1086
1094
|
}
|
|
1087
1095
|
}
|
|
1088
1096
|
) }) }),
|
|
1089
|
-
Array.from(Array(numberOfPages).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */
|
|
1097
|
+
Array.from(Array(numberOfPages).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ jsx18("div", { className: "px-2", children: /* @__PURE__ */ jsx18(
|
|
1090
1098
|
"p",
|
|
1091
1099
|
{
|
|
1092
1100
|
className: `${pageNumber === index + 1 ? "text-2xl" : "text-md"} cursor-pointer`,
|
|
@@ -1096,7 +1104,7 @@ var BasePDF = ({ file }) => {
|
|
|
1096
1104
|
children: index + 1
|
|
1097
1105
|
}
|
|
1098
1106
|
) }, index)),
|
|
1099
|
-
numberOfPages === 0 || pageNumber === numberOfPages ? null : /* @__PURE__ */
|
|
1107
|
+
numberOfPages === 0 || pageNumber === numberOfPages ? null : /* @__PURE__ */ jsx18("div", { className: "px-2", children: /* @__PURE__ */ jsx18("div", { className: "cursor-pointer", children: /* @__PURE__ */ jsx18(
|
|
1100
1108
|
BaseImage_default,
|
|
1101
1109
|
{
|
|
1102
1110
|
src: "/icons/arrow-right.webp",
|
|
@@ -1113,9 +1121,9 @@ var BasePDF = ({ file }) => {
|
|
|
1113
1121
|
var BasePDF_default = BasePDF;
|
|
1114
1122
|
|
|
1115
1123
|
// src/components/activities/empty-contents/ActivityEmptyContent.tsx
|
|
1116
|
-
import { jsx as
|
|
1124
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1117
1125
|
var ActivityEmptyContent = () => {
|
|
1118
|
-
return /* @__PURE__ */
|
|
1126
|
+
return /* @__PURE__ */ jsx19("div", { className: "flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2 mb-2 bg-catchup-orange text-catchup-white", children: /* @__PURE__ */ jsx19("p", { className: "text-lg", children: i18n_default.t("you_have_set_this_activity_as_empty") }) });
|
|
1119
1127
|
};
|
|
1120
1128
|
var ActivityEmptyContent_default = ActivityEmptyContent;
|
|
1121
1129
|
|
|
@@ -3139,7 +3147,7 @@ var retrieveActivityCountOptionList = () => {
|
|
|
3139
3147
|
|
|
3140
3148
|
// src/components/activities/body-contents/ShowBodyMediaByContentType.tsx
|
|
3141
3149
|
import { InlineMath } from "react-katex";
|
|
3142
|
-
import { jsx as
|
|
3150
|
+
import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3143
3151
|
var ShowBodyMediaByContentType = ({
|
|
3144
3152
|
index,
|
|
3145
3153
|
type,
|
|
@@ -3161,17 +3169,17 @@ var ShowBodyMediaByContentType = ({
|
|
|
3161
3169
|
}
|
|
3162
3170
|
};
|
|
3163
3171
|
const renderSpecialExpressions = (inputPart, inputPartIndex) => {
|
|
3164
|
-
return /* @__PURE__ */
|
|
3172
|
+
return /* @__PURE__ */ jsx20(
|
|
3165
3173
|
"span",
|
|
3166
3174
|
{
|
|
3167
3175
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
3168
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
3176
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx20("span", { className: "text-xl", children: /* @__PURE__ */ jsx20(InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
3169
3177
|
},
|
|
3170
3178
|
inputPartIndex
|
|
3171
3179
|
);
|
|
3172
3180
|
};
|
|
3173
3181
|
const renderTextContent = (text, itemKey) => {
|
|
3174
|
-
return /* @__PURE__ */
|
|
3182
|
+
return /* @__PURE__ */ jsx20("span", { className: "text-xl", children: constructInputWithSpecialExpressionList(text).map(
|
|
3175
3183
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
3176
3184
|
) }, itemKey);
|
|
3177
3185
|
};
|
|
@@ -3203,7 +3211,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3203
3211
|
currentIndex++;
|
|
3204
3212
|
const itemKey = `text-inside-${index}-${currentIndex}`;
|
|
3205
3213
|
valuePartList.push(
|
|
3206
|
-
/* @__PURE__ */
|
|
3214
|
+
/* @__PURE__ */ jsx20("span", { className: "text-xl font-bold", children: constructInputWithSpecialExpressionList(textInsideTag).map(
|
|
3207
3215
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
3208
3216
|
) }, itemKey)
|
|
3209
3217
|
);
|
|
@@ -3220,7 +3228,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3220
3228
|
if (textBeforeTag.trim() !== "") {
|
|
3221
3229
|
currentIndex++;
|
|
3222
3230
|
valuePartList.push(
|
|
3223
|
-
/* @__PURE__ */
|
|
3231
|
+
/* @__PURE__ */ jsx20(
|
|
3224
3232
|
"p",
|
|
3225
3233
|
{
|
|
3226
3234
|
className: "text-xl",
|
|
@@ -3244,7 +3252,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3244
3252
|
{
|
|
3245
3253
|
className: "relative w-[200px]",
|
|
3246
3254
|
children: [
|
|
3247
|
-
/* @__PURE__ */
|
|
3255
|
+
/* @__PURE__ */ jsx20(
|
|
3248
3256
|
BaseImage_default,
|
|
3249
3257
|
{
|
|
3250
3258
|
src: imageSource,
|
|
@@ -3253,12 +3261,12 @@ var ShowBodyMediaByContentType = ({
|
|
|
3253
3261
|
className: "rounded-catchup-xlarge"
|
|
3254
3262
|
}
|
|
3255
3263
|
),
|
|
3256
|
-
/* @__PURE__ */
|
|
3264
|
+
/* @__PURE__ */ jsx20(
|
|
3257
3265
|
"div",
|
|
3258
3266
|
{
|
|
3259
3267
|
className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
|
|
3260
3268
|
onClick: () => handleOpenFullScreen(imageSource),
|
|
3261
|
-
children: /* @__PURE__ */
|
|
3269
|
+
children: /* @__PURE__ */ jsx20(
|
|
3262
3270
|
BaseImage_default,
|
|
3263
3271
|
{
|
|
3264
3272
|
src: "/icons/arrow-up.webp",
|
|
@@ -3287,7 +3295,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3287
3295
|
if (textBeforeTag.trim() !== "") {
|
|
3288
3296
|
currentIndex++;
|
|
3289
3297
|
valuePartList.push(
|
|
3290
|
-
/* @__PURE__ */
|
|
3298
|
+
/* @__PURE__ */ jsx20(
|
|
3291
3299
|
"p",
|
|
3292
3300
|
{
|
|
3293
3301
|
className: "text-xl",
|
|
@@ -3306,7 +3314,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3306
3314
|
);
|
|
3307
3315
|
currentIndex++;
|
|
3308
3316
|
valuePartList.push(
|
|
3309
|
-
/* @__PURE__ */
|
|
3317
|
+
/* @__PURE__ */ jsx20(
|
|
3310
3318
|
"video",
|
|
3311
3319
|
{
|
|
3312
3320
|
src: videoSource,
|
|
@@ -3329,7 +3337,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3329
3337
|
if (textBeforeTag.trim() !== "") {
|
|
3330
3338
|
currentIndex++;
|
|
3331
3339
|
valuePartList.push(
|
|
3332
|
-
/* @__PURE__ */
|
|
3340
|
+
/* @__PURE__ */ jsx20(
|
|
3333
3341
|
"p",
|
|
3334
3342
|
{
|
|
3335
3343
|
className: "text-xl",
|
|
@@ -3348,7 +3356,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3348
3356
|
);
|
|
3349
3357
|
currentIndex++;
|
|
3350
3358
|
valuePartList.push(
|
|
3351
|
-
/* @__PURE__ */
|
|
3359
|
+
/* @__PURE__ */ jsx20(
|
|
3352
3360
|
"audio",
|
|
3353
3361
|
{
|
|
3354
3362
|
src: audioSource,
|
|
@@ -3378,8 +3386,8 @@ var ShowBodyMediaByContentType = ({
|
|
|
3378
3386
|
{
|
|
3379
3387
|
className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2",
|
|
3380
3388
|
children: [
|
|
3381
|
-
/* @__PURE__ */
|
|
3382
|
-
/* @__PURE__ */
|
|
3389
|
+
/* @__PURE__ */ jsx20("div", { className: "absolute -top-3 bg-catchup-white border rounded-catchup-small px-2 left-2", children: /* @__PURE__ */ jsx20("p", { className: "font-bold", children: i18n_default.t("image_description") }) }),
|
|
3390
|
+
/* @__PURE__ */ jsx20("span", { className: "text-xl", children: imageText })
|
|
3383
3391
|
]
|
|
3384
3392
|
},
|
|
3385
3393
|
`img-desc-${index}-${currentIndex}`
|
|
@@ -3393,7 +3401,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3393
3401
|
return valuePartList;
|
|
3394
3402
|
};
|
|
3395
3403
|
const RenderShowFullScreenItem = () => {
|
|
3396
|
-
return /* @__PURE__ */
|
|
3404
|
+
return /* @__PURE__ */ jsx20(
|
|
3397
3405
|
Modal2,
|
|
3398
3406
|
{
|
|
3399
3407
|
isOpen: showFullScreen,
|
|
@@ -3423,7 +3431,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3423
3431
|
},
|
|
3424
3432
|
contentLabel: "Image Fullscreen View",
|
|
3425
3433
|
children: /* @__PURE__ */ jsxs13("div", { className: "flex-1 flex flex-col", children: [
|
|
3426
|
-
/* @__PURE__ */
|
|
3434
|
+
/* @__PURE__ */ jsx20("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ jsx20(
|
|
3427
3435
|
BaseImage_default,
|
|
3428
3436
|
{
|
|
3429
3437
|
src: "/icons/cross-red.webp",
|
|
@@ -3435,7 +3443,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3435
3443
|
}
|
|
3436
3444
|
}
|
|
3437
3445
|
) }),
|
|
3438
|
-
/* @__PURE__ */
|
|
3446
|
+
/* @__PURE__ */ jsx20("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ jsx20(
|
|
3439
3447
|
BaseImage_default,
|
|
3440
3448
|
{
|
|
3441
3449
|
src: selectedFullScreenItem,
|
|
@@ -3451,16 +3459,16 @@ var ShowBodyMediaByContentType = ({
|
|
|
3451
3459
|
const RenderMainContent = () => {
|
|
3452
3460
|
switch (type) {
|
|
3453
3461
|
case "TEXT":
|
|
3454
|
-
return /* @__PURE__ */
|
|
3462
|
+
return /* @__PURE__ */ jsx20("div", { className: "mb-1 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ jsx20("p", { className: "whitespace-pre-wrap", children: retrieveValueParts(value) }) });
|
|
3455
3463
|
case "IMAGE":
|
|
3456
|
-
return /* @__PURE__ */
|
|
3464
|
+
return /* @__PURE__ */ jsx20("div", { className: "mb-1 flex flex-col items-center relative", children: /* @__PURE__ */ jsxs13(
|
|
3457
3465
|
"div",
|
|
3458
3466
|
{
|
|
3459
3467
|
className: `${convertToPercentage(
|
|
3460
3468
|
size
|
|
3461
3469
|
)} rounded-catchup-xlarge relative`,
|
|
3462
3470
|
children: [
|
|
3463
|
-
/* @__PURE__ */
|
|
3471
|
+
/* @__PURE__ */ jsx20(
|
|
3464
3472
|
BaseImage_default,
|
|
3465
3473
|
{
|
|
3466
3474
|
src: value,
|
|
@@ -3469,12 +3477,12 @@ var ShowBodyMediaByContentType = ({
|
|
|
3469
3477
|
className: "w-full rounded-catchup-xlarge"
|
|
3470
3478
|
}
|
|
3471
3479
|
),
|
|
3472
|
-
/* @__PURE__ */
|
|
3480
|
+
/* @__PURE__ */ jsx20(
|
|
3473
3481
|
"div",
|
|
3474
3482
|
{
|
|
3475
3483
|
className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
|
|
3476
3484
|
onClick: () => handleOpenFullScreen(value),
|
|
3477
|
-
children: /* @__PURE__ */
|
|
3485
|
+
children: /* @__PURE__ */ jsx20(
|
|
3478
3486
|
BaseImage_default,
|
|
3479
3487
|
{
|
|
3480
3488
|
src: "/icons/arrow-up.webp",
|
|
@@ -3489,7 +3497,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3489
3497
|
}
|
|
3490
3498
|
) });
|
|
3491
3499
|
case "VIDEO":
|
|
3492
|
-
return /* @__PURE__ */
|
|
3500
|
+
return /* @__PURE__ */ jsx20("div", { className: "mb-1 flex flex-col items-center", children: /* @__PURE__ */ jsx20(
|
|
3493
3501
|
"video",
|
|
3494
3502
|
{
|
|
3495
3503
|
src: value,
|
|
@@ -3498,7 +3506,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3498
3506
|
}
|
|
3499
3507
|
) });
|
|
3500
3508
|
case "AUDIO":
|
|
3501
|
-
return /* @__PURE__ */
|
|
3509
|
+
return /* @__PURE__ */ jsx20("div", { className: "mb-1 flex flex-col items-center", children: /* @__PURE__ */ jsx20("audio", { src: value, controls: true, className: "rounded-catchup-xlarge" }) });
|
|
3502
3510
|
default:
|
|
3503
3511
|
return null;
|
|
3504
3512
|
}
|
|
@@ -3511,7 +3519,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3511
3519
|
var ShowBodyMediaByContentType_default = ShowBodyMediaByContentType;
|
|
3512
3520
|
|
|
3513
3521
|
// src/components/activities/body-contents/ActivityBodyContent.tsx
|
|
3514
|
-
import { jsx as
|
|
3522
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
3515
3523
|
var ActivityBodyContent = ({
|
|
3516
3524
|
templateType,
|
|
3517
3525
|
bodyMap,
|
|
@@ -3592,7 +3600,7 @@ var ActivityBodyContent = ({
|
|
|
3592
3600
|
key
|
|
3593
3601
|
});
|
|
3594
3602
|
}).filter(Boolean);
|
|
3595
|
-
return /* @__PURE__ */
|
|
3603
|
+
return /* @__PURE__ */ jsx21("div", { className: "flex flex-col justify-center items-center", children: processedBodies.map((body, index) => /* @__PURE__ */ jsx21(
|
|
3596
3604
|
ShowBodyMediaByContentType_default,
|
|
3597
3605
|
{
|
|
3598
3606
|
index,
|
|
@@ -3605,13 +3613,6 @@ var ActivityBodyContent = ({
|
|
|
3605
3613
|
};
|
|
3606
3614
|
var ActivityBodyContent_default = ActivityBodyContent;
|
|
3607
3615
|
|
|
3608
|
-
// src/components/dividers/DividerLine.tsx
|
|
3609
|
-
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
3610
|
-
var DividerLine = () => {
|
|
3611
|
-
return /* @__PURE__ */ jsx21("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
|
|
3612
|
-
};
|
|
3613
|
-
var DividerLine_default = DividerLine;
|
|
3614
|
-
|
|
3615
3616
|
// src/components/dividers/VerticalDividerLine.tsx
|
|
3616
3617
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
3617
3618
|
var VerticalDividerLine = () => {
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { IModalProps } from "../../properties/ModalProperties";
|
|
|
3
3
|
import BaseImage from "../images/BaseImage";
|
|
4
4
|
import FullCard from "../cards/FullCard";
|
|
5
5
|
import BaseTitle from "../titles/BaseTitle";
|
|
6
|
+
import DividerLine from "../dividers/DividerLine";
|
|
6
7
|
|
|
7
8
|
const BaseModal = ({
|
|
8
9
|
title,
|
|
@@ -58,7 +59,7 @@ const BaseModal = ({
|
|
|
58
59
|
}`}
|
|
59
60
|
>
|
|
60
61
|
<FullCard>
|
|
61
|
-
<div className="flex flex-row justify-between
|
|
62
|
+
<div className="flex flex-row justify-between">
|
|
62
63
|
<BaseTitle title={title} />
|
|
63
64
|
<BaseImage
|
|
64
65
|
src="/icons/cross-red.webp"
|
|
@@ -67,6 +68,7 @@ const BaseModal = ({
|
|
|
67
68
|
onClick={onRequestClose}
|
|
68
69
|
/>
|
|
69
70
|
</div>
|
|
71
|
+
<DividerLine />
|
|
70
72
|
<div className="max-h-[calc(98vh-80px)] overflow-auto">
|
|
71
73
|
{children}
|
|
72
74
|
</div>
|