@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260827101734 → 0.8.1-dev.20260829044749
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/CommentRendererClient-JBEXVDPU.mjs +948 -0
- package/dist/CommentRendererClient-LO3DHVJE.mjs +950 -0
- package/dist/{DataBindingControls-ESDLOHNB.mjs → DataBindingControls-JLAO3NJL.mjs} +1 -1
- package/dist/{DataBindingControls-WJAY5HFO.mjs → DataBindingControls-Y4JXUDZV.mjs} +1 -1
- package/dist/{InputControlClient-4M2BZXQO.mjs → InputControlClient-POQDFVL3.mjs} +4 -2
- package/dist/chunk-7OCDXSTR.mjs +44 -0
- package/dist/{chunk-GKI42H4B.mjs → chunk-GGG5MJLN.mjs} +1 -1
- package/dist/chunk-JDX47MFV.mjs +47 -0
- package/dist/chunk-UPCAOGEY.mjs +27 -0
- package/dist/{chunk-GJOJX2O3.mjs → chunk-XTG4JW2O.mjs} +0 -22
- package/dist/index.js +5574 -5079
- package/dist/index.mjs +389 -949
- package/dist/server.js +4871 -4376
- package/dist/server.mjs +186 -748
- package/package.json +1 -1
- package/dist/{InputControlClient-AORN4DRF.mjs → InputControlClient-XC24HYZX.mjs} +3 -3
package/dist/server.mjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OdataBuilder
|
|
3
3
|
} from "./chunk-5TQWVOWH.mjs";
|
|
4
|
-
import {
|
|
5
|
-
AssetUtility_default
|
|
6
|
-
} from "./chunk-TQ6BXQ3A.mjs";
|
|
7
4
|
import {
|
|
8
5
|
Hyperlink
|
|
9
6
|
} from "./chunk-2R26M6CK.mjs";
|
|
@@ -12,12 +9,16 @@ import {
|
|
|
12
9
|
ServiceClient_default
|
|
13
10
|
} from "./chunk-WXZMRMRS.mjs";
|
|
14
11
|
import "./chunk-56HSDML5.mjs";
|
|
12
|
+
import "./chunk-7OCDXSTR.mjs";
|
|
13
|
+
import {
|
|
14
|
+
AssetUtility_default
|
|
15
|
+
} from "./chunk-TQ6BXQ3A.mjs";
|
|
15
16
|
|
|
16
17
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
17
|
-
import
|
|
18
|
+
import React24 from "react";
|
|
18
19
|
|
|
19
20
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
20
|
-
import
|
|
21
|
+
import React16 from "react";
|
|
21
22
|
|
|
22
23
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
23
24
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -340,7 +341,7 @@ var LinkNode = (props) => {
|
|
|
340
341
|
};
|
|
341
342
|
const linkType = node.cssClass ? getLinkTypeFromCssClass(node.cssClass) : void 0;
|
|
342
343
|
const isButton = node.isButton === true;
|
|
343
|
-
const
|
|
344
|
+
const renderChildren = () => {
|
|
344
345
|
if (!node.children || node.children.length === 0) return null;
|
|
345
346
|
return /* @__PURE__ */ jsx5(Fragment, { children: node.children.map((childNode, index) => {
|
|
346
347
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
@@ -381,7 +382,7 @@ var LinkNode = (props) => {
|
|
|
381
382
|
linkType,
|
|
382
383
|
linkUrl,
|
|
383
384
|
children: [
|
|
384
|
-
|
|
385
|
+
renderChildren(),
|
|
385
386
|
renderFallback()
|
|
386
387
|
]
|
|
387
388
|
}
|
|
@@ -394,7 +395,7 @@ var LinkNode = (props) => {
|
|
|
394
395
|
linkType,
|
|
395
396
|
alt: linkText || node.title || "",
|
|
396
397
|
children: [
|
|
397
|
-
|
|
398
|
+
renderChildren(),
|
|
398
399
|
renderFallback()
|
|
399
400
|
]
|
|
400
401
|
}
|
|
@@ -457,7 +458,7 @@ var EquationNode = ({ node }) => {
|
|
|
457
458
|
var EquationNode_default = EquationNode;
|
|
458
459
|
|
|
459
460
|
// src/components/controls/view/ViewControl.tsx
|
|
460
|
-
import
|
|
461
|
+
import React15 from "react";
|
|
461
462
|
|
|
462
463
|
// src/components/controls/view/ViewControlTypes.tsx
|
|
463
464
|
var ViewControlTypes = {
|
|
@@ -740,577 +741,14 @@ var TimeUntilStarts = dynamic6(() => import("./TimeUntilStartsClient-4C7NDEAD.mj
|
|
|
740
741
|
var TimeUntilStarts_default = TimeUntilStarts;
|
|
741
742
|
|
|
742
743
|
// src/components/controls/view/Commentrenderer.tsx
|
|
743
|
-
import
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
return !!node && typeof node === "object" && node.type === "text";
|
|
748
|
-
};
|
|
749
|
-
var asElementNode = (node) => node;
|
|
750
|
-
|
|
751
|
-
// src/components/controls/view/commentParser.ts
|
|
752
|
-
var parseSerializedContent = (raw) => {
|
|
753
|
-
if (raw === null || raw === void 0) {
|
|
754
|
-
return [];
|
|
755
|
-
}
|
|
756
|
-
let value = raw;
|
|
757
|
-
if (typeof raw === "string") {
|
|
758
|
-
const trimmed = raw.trim();
|
|
759
|
-
if (!trimmed) {
|
|
760
|
-
return [];
|
|
761
|
-
}
|
|
762
|
-
if (trimmed.startsWith("{") || trimmed.startsWith("[")) {
|
|
763
|
-
try {
|
|
764
|
-
value = JSON.parse(trimmed);
|
|
765
|
-
} catch {
|
|
766
|
-
return [{ type: "paragraph", children: [{ type: "text", text: raw }] }];
|
|
767
|
-
}
|
|
768
|
-
} else {
|
|
769
|
-
return [{ type: "paragraph", children: [{ type: "text", text: raw }] }];
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
if (Array.isArray(value)) {
|
|
773
|
-
return value;
|
|
774
|
-
}
|
|
775
|
-
if (value && typeof value === "object") {
|
|
776
|
-
const children = value.children;
|
|
777
|
-
if (Array.isArray(children)) {
|
|
778
|
-
return children;
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
return [];
|
|
782
|
-
};
|
|
783
|
-
|
|
784
|
-
// src/components/controls/view/CommentNodeRenderer.tsx
|
|
785
|
-
import React15 from "react";
|
|
786
|
-
|
|
787
|
-
// src/components/controls/view/CommentImageNode.tsx
|
|
788
|
-
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
789
|
-
var CommentImageNode = ({ node, assetBaseUrl }) => {
|
|
790
|
-
const rawUrl = typeof node.url === "string" && node.url || typeof node.src === "string" && node.src || typeof node.assetUrl === "string" && node.assetUrl || "";
|
|
791
|
-
if (!rawUrl) {
|
|
792
|
-
return null;
|
|
793
|
-
}
|
|
794
|
-
const resolvedUrl = AssetUtility_default.resolveUrl(assetBaseUrl, rawUrl);
|
|
795
|
-
if (!resolvedUrl) {
|
|
796
|
-
return null;
|
|
797
|
-
}
|
|
798
|
-
console.log("resolvedUrl", resolvedUrl);
|
|
799
|
-
const alt = typeof node.fileName === "string" && node.fileName || typeof node.altText === "string" && node.altText || typeof node.alt === "string" && node.alt || "";
|
|
800
|
-
return /* @__PURE__ */ jsx21(
|
|
801
|
-
"img",
|
|
802
|
-
{
|
|
803
|
-
className: "comment-node-image",
|
|
804
|
-
src: resolvedUrl,
|
|
805
|
-
alt,
|
|
806
|
-
loading: "lazy",
|
|
807
|
-
style: { maxWidth: "100%", height: "auto", display: "block" }
|
|
808
|
-
}
|
|
809
|
-
);
|
|
810
|
-
};
|
|
811
|
-
var CommentImageNode_default = CommentImageNode;
|
|
812
|
-
|
|
813
|
-
// src/components/controls/view/FileIcon.tsx
|
|
814
|
-
import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
815
|
-
var PdfIcon = () => /* @__PURE__ */ jsxs8(
|
|
816
|
-
"svg",
|
|
817
|
-
{
|
|
818
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
819
|
-
viewBox: "0 0 48 48",
|
|
820
|
-
className: "w-10 h-10",
|
|
821
|
-
children: [
|
|
822
|
-
/* @__PURE__ */ jsx22(
|
|
823
|
-
"path",
|
|
824
|
-
{
|
|
825
|
-
fill: "#e53935",
|
|
826
|
-
d: "M38,42H10c-2.209,0-4-1.791-4-4V10c0-2.209,1.791-4,4-4h28c2.209,0,4,1.791,4,4v28 C42,40.209,40.209,42,38,42z"
|
|
827
|
-
}
|
|
828
|
-
),
|
|
829
|
-
/* @__PURE__ */ jsx22(
|
|
830
|
-
"path",
|
|
831
|
-
{
|
|
832
|
-
fill: "#fff",
|
|
833
|
-
d: "M34.841,26.799c-1.692-1.757-6.314-1.041-7.42-0.911c-1.627-1.562-2.734-3.45-3.124-4.101 c0.586-1.757,0.976-3.515,1.041-5.402c0-1.627-0.651-3.385-2.473-3.385c-0.651,0-1.237,0.391-1.562,0.911 c-0.781,1.367-0.456,4.101,0.781,6.899c-0.716,2.018-1.367,3.97-3.189,7.42c-1.888,0.781-5.858,2.604-6.183,4.556 c-0.13,0.586,0.065,1.172,0.521,1.627C13.688,34.805,14.273,35,14.859,35c2.408,0,4.751-3.32,6.379-6.118 c1.367-0.456,3.515-1.107,5.663-1.497c2.538,2.213,4.751,2.538,5.923,2.538c1.562,0,2.148-0.651,2.343-1.237 C35.492,28.036,35.297,27.32,34.841,26.799z M33.214,27.905c-0.065,0.456-0.651,0.911-1.692,0.651 c-1.237-0.325-2.343-0.911-3.32-1.692c0.846-0.13,2.734-0.325,4.101-0.065C32.824,26.929,33.344,27.254,33.214,27.905z M22.344,14.497c0.13-0.195,0.325-0.325,0.521-0.325c0.586,0,0.716,0.716,0.716,1.302c-0.065,1.367-0.325,2.734-0.781,4.036 C21.824,16.905,22.019,15.083,22.344,14.497z M22.214,27.124c0.521-1.041,1.237-2.864,1.497-3.645 c0.586,0.976,1.562,2.148,2.083,2.669C25.794,26.213,23.776,26.604,22.214,27.124z M18.374,29.728 c-1.497,2.473-3.059,4.036-3.905,4.036c-0.13,0-0.26-0.065-0.391-0.13c-0.195-0.13-0.26-0.325-0.195-0.586 C14.078,32.136,15.77,30.899,18.374,29.728z"
|
|
834
|
-
}
|
|
835
|
-
)
|
|
836
|
-
]
|
|
837
|
-
}
|
|
838
|
-
);
|
|
839
|
-
var ExcelIcon = () => /* @__PURE__ */ jsxs8(
|
|
840
|
-
"svg",
|
|
841
|
-
{
|
|
842
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
843
|
-
viewBox: "0 0 48 48",
|
|
844
|
-
className: "w-10 h-10",
|
|
845
|
-
children: [
|
|
846
|
-
/* @__PURE__ */ jsx22(
|
|
847
|
-
"path",
|
|
848
|
-
{
|
|
849
|
-
fill: "#169154",
|
|
850
|
-
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
851
|
-
}
|
|
852
|
-
),
|
|
853
|
-
/* @__PURE__ */ jsx22(
|
|
854
|
-
"path",
|
|
855
|
-
{
|
|
856
|
-
fill: "#18482a",
|
|
857
|
-
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
858
|
-
}
|
|
859
|
-
),
|
|
860
|
-
/* @__PURE__ */ jsx22("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
861
|
-
/* @__PURE__ */ jsx22("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
862
|
-
/* @__PURE__ */ jsxs8("g", { children: [
|
|
863
|
-
/* @__PURE__ */ jsx22(
|
|
864
|
-
"path",
|
|
865
|
-
{
|
|
866
|
-
fill: "#29c27f",
|
|
867
|
-
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
868
|
-
}
|
|
869
|
-
),
|
|
870
|
-
/* @__PURE__ */ jsx22(
|
|
871
|
-
"path",
|
|
872
|
-
{
|
|
873
|
-
fill: "#27663f",
|
|
874
|
-
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
875
|
-
}
|
|
876
|
-
),
|
|
877
|
-
/* @__PURE__ */ jsx22("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
878
|
-
/* @__PURE__ */ jsx22("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
879
|
-
] }),
|
|
880
|
-
/* @__PURE__ */ jsx22(
|
|
881
|
-
"path",
|
|
882
|
-
{
|
|
883
|
-
fill: "#0c7238",
|
|
884
|
-
d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
|
|
885
|
-
}
|
|
886
|
-
),
|
|
887
|
-
/* @__PURE__ */ jsx22(
|
|
888
|
-
"path",
|
|
889
|
-
{
|
|
890
|
-
fill: "#fff",
|
|
891
|
-
d: "M9.807 19L12.193 19 14.129 22.754 16.175 19 18.404 19 15.333 24 18.474 29 16.123 29 14.013 25.07 11.912 29 9.526 29 12.719 23.982z"
|
|
892
|
-
}
|
|
893
|
-
)
|
|
894
|
-
]
|
|
895
|
-
}
|
|
896
|
-
);
|
|
897
|
-
var WordIcon = () => /* @__PURE__ */ jsxs8(
|
|
898
|
-
"svg",
|
|
899
|
-
{
|
|
900
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
901
|
-
viewBox: "0 0 48 48",
|
|
902
|
-
className: "w-10 h-10",
|
|
903
|
-
baseProfile: "basic",
|
|
904
|
-
children: [
|
|
905
|
-
/* @__PURE__ */ jsx22(
|
|
906
|
-
"path",
|
|
907
|
-
{
|
|
908
|
-
fill: "#283593",
|
|
909
|
-
d: "M9,33.595l14.911-18.706L41,26v13.306C41,41.346,39.346,43,37.306,43H15.332 C11.835,43,9,40.164,9,36.667C9,36.667,9,33.595,9,33.595z"
|
|
910
|
-
}
|
|
911
|
-
),
|
|
912
|
-
/* @__PURE__ */ jsxs8(
|
|
913
|
-
"linearGradient",
|
|
914
|
-
{
|
|
915
|
-
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
916
|
-
x1: "9",
|
|
917
|
-
x2: "33.506",
|
|
918
|
-
y1: "364.445",
|
|
919
|
-
y2: "364.445",
|
|
920
|
-
gradientTransform: "translate(0 -339.89)",
|
|
921
|
-
gradientUnits: "userSpaceOnUse",
|
|
922
|
-
children: [
|
|
923
|
-
/* @__PURE__ */ jsx22("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
924
|
-
/* @__PURE__ */ jsx22("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
925
|
-
]
|
|
926
|
-
}
|
|
927
|
-
),
|
|
928
|
-
/* @__PURE__ */ jsx22(
|
|
929
|
-
"path",
|
|
930
|
-
{
|
|
931
|
-
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
932
|
-
d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
|
|
933
|
-
}
|
|
934
|
-
),
|
|
935
|
-
/* @__PURE__ */ jsx22(
|
|
936
|
-
"path",
|
|
937
|
-
{
|
|
938
|
-
fill: "#1e88e5",
|
|
939
|
-
"fill-opacity": ".6",
|
|
940
|
-
d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
|
|
941
|
-
}
|
|
942
|
-
),
|
|
943
|
-
/* @__PURE__ */ jsx22(
|
|
944
|
-
"path",
|
|
945
|
-
{
|
|
946
|
-
fill: "#00e5ff",
|
|
947
|
-
d: "M9,10.333C9,6.836,11.835,4,15.332,4h21.975C39.346,4,41,5.654,41,7.694v5.611 C41,15.346,39.346,17,37.306,17H15.332C11.835,17,9,19.836,9,23.333C9,23.333,9,10.333,9,10.333z"
|
|
948
|
-
}
|
|
949
|
-
),
|
|
950
|
-
/* @__PURE__ */ jsx22(
|
|
951
|
-
"path",
|
|
952
|
-
{
|
|
953
|
-
fill: "#1565c0",
|
|
954
|
-
d: "M7.5,23h10c1.933,0,3.5,1.567,3.5,3.5v10c0,1.933-1.567,3.5-3.5,3.5h-10C5.567,40,4,38.433,4,36.5 v-10C4,24.567,5.567,23,7.5,23z"
|
|
955
|
-
}
|
|
956
|
-
),
|
|
957
|
-
/* @__PURE__ */ jsx22(
|
|
958
|
-
"path",
|
|
959
|
-
{
|
|
960
|
-
fill: "#fff",
|
|
961
|
-
d: "M18.327,26.643l-2.092,9.713l-2.501,0.002L12.5,30.529l-1.293,5.829H8.683l-2.01-9.713h2.062 l1.24,6.41l1.232-6.41h2.528l1.291,6.41l1.21-6.41L18.327,26.643L18.327,26.643z"
|
|
962
|
-
}
|
|
963
|
-
)
|
|
964
|
-
]
|
|
965
|
-
}
|
|
966
|
-
);
|
|
967
|
-
var StandardIcon = () => /* @__PURE__ */ jsxs8(
|
|
968
|
-
"svg",
|
|
969
|
-
{
|
|
970
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
971
|
-
viewBox: "0 0 48 48",
|
|
972
|
-
className: "w-10 h-10",
|
|
973
|
-
children: [
|
|
974
|
-
/* @__PURE__ */ jsx22("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
975
|
-
/* @__PURE__ */ jsx22("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
976
|
-
]
|
|
977
|
-
}
|
|
978
|
-
);
|
|
979
|
-
var PowerPointIcon = () => /* @__PURE__ */ jsxs8(
|
|
980
|
-
"svg",
|
|
981
|
-
{
|
|
982
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
983
|
-
viewBox: "0 0 48 48",
|
|
984
|
-
className: "w-10 h-10",
|
|
985
|
-
children: [
|
|
986
|
-
/* @__PURE__ */ jsx22(
|
|
987
|
-
"path",
|
|
988
|
-
{
|
|
989
|
-
fill: "#dc4c2c",
|
|
990
|
-
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
991
|
-
}
|
|
992
|
-
),
|
|
993
|
-
/* @__PURE__ */ jsx22("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
994
|
-
/* @__PURE__ */ jsx22("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
995
|
-
/* @__PURE__ */ jsx22(
|
|
996
|
-
"path",
|
|
997
|
-
{
|
|
998
|
-
fill: "#9b341f",
|
|
999
|
-
d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
|
|
1000
|
-
}
|
|
1001
|
-
),
|
|
1002
|
-
/* @__PURE__ */ jsx22(
|
|
1003
|
-
"path",
|
|
1004
|
-
{
|
|
1005
|
-
fill: "#fff",
|
|
1006
|
-
d: "M14.673,19.012H10v10h2.024v-3.521H14.3c1.876,0,3.397-1.521,3.397-3.397v-0.058 C17.697,20.366,16.343,19.012,14.673,19.012z M15.57,22.358c0,0.859-0.697,1.556-1.556,1.556h-1.99v-3.325h1.99 c0.859,0,1.556,0.697,1.556,1.556V22.358z"
|
|
1007
|
-
}
|
|
1008
|
-
)
|
|
1009
|
-
]
|
|
1010
|
-
}
|
|
1011
|
-
);
|
|
1012
|
-
var TextIcon = () => /* @__PURE__ */ jsxs8(
|
|
1013
|
-
"svg",
|
|
1014
|
-
{
|
|
1015
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1016
|
-
viewBox: "0 0 48 48",
|
|
1017
|
-
className: "w-10 h-10",
|
|
1018
|
-
children: [
|
|
1019
|
-
/* @__PURE__ */ jsx22("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
1020
|
-
/* @__PURE__ */ jsx22("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
1021
|
-
/* @__PURE__ */ jsx22(
|
|
1022
|
-
"path",
|
|
1023
|
-
{
|
|
1024
|
-
fill: "#1976D2",
|
|
1025
|
-
d: "M16 21H33V23H16zM16 25H29V27H16zM16 29H33V31H16zM16 33H29V35H16z"
|
|
1026
|
-
}
|
|
1027
|
-
)
|
|
1028
|
-
]
|
|
1029
|
-
}
|
|
1030
|
-
);
|
|
1031
|
-
var ArchiveIcon = () => /* @__PURE__ */ jsxs8(
|
|
1032
|
-
"svg",
|
|
1033
|
-
{
|
|
1034
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1035
|
-
zoomAndPan: "magnify",
|
|
1036
|
-
viewBox: "0 0 75 74.999997",
|
|
1037
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
1038
|
-
version: "1.0",
|
|
1039
|
-
className: "w-10 h-10",
|
|
1040
|
-
children: [
|
|
1041
|
-
/* @__PURE__ */ jsx22("defs", { children: /* @__PURE__ */ jsx22("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx22(
|
|
1042
|
-
"path",
|
|
1043
|
-
{
|
|
1044
|
-
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
1045
|
-
"clip-rule": "nonzero"
|
|
1046
|
-
}
|
|
1047
|
-
) }) }),
|
|
1048
|
-
/* @__PURE__ */ jsx22("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx22(
|
|
1049
|
-
"path",
|
|
1050
|
-
{
|
|
1051
|
-
fill: "#ff9100",
|
|
1052
|
-
d: "M 65.882812 75 L 8.929688 75 L 8.929688 0 L 48.085938 0 L 65.882812 17.855469 Z M 65.882812 75 ",
|
|
1053
|
-
"fill-opacity": "1",
|
|
1054
|
-
"fill-rule": "nonzero"
|
|
1055
|
-
}
|
|
1056
|
-
) }),
|
|
1057
|
-
/* @__PURE__ */ jsx22(
|
|
1058
|
-
"path",
|
|
1059
|
-
{
|
|
1060
|
-
fill: "#fbe9e7",
|
|
1061
|
-
d: "M 63.214844 19.644531 L 46.304688 19.644531 L 46.304688 2.679688 Z M 63.214844 19.644531 ",
|
|
1062
|
-
"fill-opacity": "1",
|
|
1063
|
-
"fill-rule": "nonzero"
|
|
1064
|
-
}
|
|
1065
|
-
),
|
|
1066
|
-
/* @__PURE__ */ jsx22(
|
|
1067
|
-
"path",
|
|
1068
|
-
{
|
|
1069
|
-
fill: "#ffe0b2",
|
|
1070
|
-
d: "M 26.523438 50.59375 L 33.824219 50.59375 L 33.824219 53.570312 L 22.339844 53.570312 L 22.339844 51.410156 L 29.566406 38.789062 L 22.265625 38.789062 L 22.265625 35.796875 L 33.691406 35.796875 L 33.691406 37.910156 Z M 26.523438 50.59375 ",
|
|
1071
|
-
"fill-opacity": "1",
|
|
1072
|
-
"fill-rule": "nonzero"
|
|
1073
|
-
}
|
|
1074
|
-
),
|
|
1075
|
-
/* @__PURE__ */ jsx22(
|
|
1076
|
-
"path",
|
|
1077
|
-
{
|
|
1078
|
-
fill: "#ffe0b2",
|
|
1079
|
-
d: "M 36.183594 35.796875 L 39.757812 35.796875 L 39.757812 53.570312 L 36.183594 53.570312 Z M 36.183594 35.796875 ",
|
|
1080
|
-
"fill-opacity": "1",
|
|
1081
|
-
"fill-rule": "nonzero"
|
|
1082
|
-
}
|
|
1083
|
-
),
|
|
1084
|
-
/* @__PURE__ */ jsx22(
|
|
1085
|
-
"path",
|
|
1086
|
-
{
|
|
1087
|
-
fill: "#ffe0b2",
|
|
1088
|
-
d: "M 46.34375 47.320312 L 46.34375 53.570312 L 42.765625 53.570312 L 42.765625 35.796875 L 48.800781 35.796875 C 50.550781 35.796875 51.953125 36.34375 52.992188 37.433594 C 54.035156 38.523438 54.554688 39.9375 54.554688 41.683594 C 54.554688 43.425781 54.039062 44.796875 53.011719 45.808594 C 51.980469 46.820312 50.550781 47.320312 48.726562 47.320312 Z M 46.34375 44.332031 L 48.800781 44.332031 C 49.484375 44.332031 50.007812 44.105469 50.382812 43.660156 C 50.757812 43.210938 50.941406 42.5625 50.941406 41.707031 C 50.941406 40.816406 50.753906 40.113281 50.371094 39.585938 C 49.988281 39.0625 49.476562 38.796875 48.839844 38.789062 L 46.34375 38.789062 Z M 46.34375 44.332031 ",
|
|
1089
|
-
"fill-opacity": "1",
|
|
1090
|
-
"fill-rule": "nonzero"
|
|
1091
|
-
}
|
|
1092
|
-
)
|
|
1093
|
-
]
|
|
1094
|
-
}
|
|
1095
|
-
);
|
|
1096
|
-
var getFileDetails = (url) => {
|
|
1097
|
-
const extMatch = url.match(/\.([a-zA-Z0-9]+)(?:[\?#]|$)/);
|
|
1098
|
-
const ext = extMatch ? extMatch[1].toLowerCase() : "";
|
|
1099
|
-
let Icon = StandardIcon;
|
|
1100
|
-
let extLabel = "FILE";
|
|
1101
|
-
if (ext === "pdf") {
|
|
1102
|
-
Icon = PdfIcon;
|
|
1103
|
-
extLabel = "PDF";
|
|
1104
|
-
} else if (["xls", "xlsx", "csv"].includes(ext)) {
|
|
1105
|
-
Icon = ExcelIcon;
|
|
1106
|
-
extLabel = "Excel";
|
|
1107
|
-
} else if (["doc", "docx"].includes(ext)) {
|
|
1108
|
-
Icon = WordIcon;
|
|
1109
|
-
extLabel = "Word";
|
|
1110
|
-
} else if (["ppt", "pptx"].includes(ext)) {
|
|
1111
|
-
Icon = PowerPointIcon;
|
|
1112
|
-
extLabel = "PowerPoint";
|
|
1113
|
-
} else if (["txt", "rtf"].includes(ext)) {
|
|
1114
|
-
Icon = TextIcon;
|
|
1115
|
-
extLabel = "Text";
|
|
1116
|
-
} else if (["zip", "rar", "7z"].includes(ext)) {
|
|
1117
|
-
Icon = ArchiveIcon;
|
|
1118
|
-
extLabel = "Archive";
|
|
1119
|
-
} else if (ext) {
|
|
1120
|
-
extLabel = ext.toUpperCase();
|
|
1121
|
-
}
|
|
1122
|
-
return { Icon, extLabel };
|
|
1123
|
-
};
|
|
1124
|
-
var FileIcon = ({ fileName, className }) => {
|
|
1125
|
-
const { Icon } = getFileDetails(fileName);
|
|
1126
|
-
return /* @__PURE__ */ jsx22("span", { className, children: /* @__PURE__ */ jsx22(Icon, {}) });
|
|
1127
|
-
};
|
|
1128
|
-
var FileIcon_default = FileIcon;
|
|
1129
|
-
|
|
1130
|
-
// src/components/controls/view/CommentFileNode.tsx
|
|
1131
|
-
import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1132
|
-
var formatFileSize = (sizeBytes) => {
|
|
1133
|
-
const bytes = typeof sizeBytes === "number" ? sizeBytes : Number(sizeBytes);
|
|
1134
|
-
if (!Number.isFinite(bytes) || bytes <= 0) {
|
|
1135
|
-
return "";
|
|
1136
|
-
}
|
|
1137
|
-
if (bytes < 1024) {
|
|
1138
|
-
return `${bytes} B`;
|
|
1139
|
-
}
|
|
1140
|
-
const units = ["KB", "MB", "GB"];
|
|
1141
|
-
let value = bytes / 1024;
|
|
1142
|
-
let unitIndex = 0;
|
|
1143
|
-
while (value >= 1024 && unitIndex < units.length - 1) {
|
|
1144
|
-
value /= 1024;
|
|
1145
|
-
unitIndex += 1;
|
|
1146
|
-
}
|
|
1147
|
-
return `${value.toFixed(value < 10 ? 1 : 0)} ${units[unitIndex]}`;
|
|
1148
|
-
};
|
|
1149
|
-
var CommentFileNode = ({ node, assetBaseUrl }) => {
|
|
1150
|
-
const rawUrl = typeof node.url === "string" && node.url || typeof node.src === "string" && node.src || typeof node.assetUrl === "string" && node.assetUrl || "";
|
|
1151
|
-
if (!rawUrl) {
|
|
1152
|
-
return null;
|
|
1153
|
-
}
|
|
1154
|
-
const href = AssetUtility_default.resolveUrl(assetBaseUrl, rawUrl);
|
|
1155
|
-
if (!href) {
|
|
1156
|
-
return null;
|
|
1157
|
-
}
|
|
1158
|
-
const fileName = typeof node.fileName === "string" && node.fileName || typeof node.name === "string" && node.name || rawUrl.split("/").pop() || "file";
|
|
1159
|
-
const sizeLabel = formatFileSize(node.fileSize);
|
|
1160
|
-
return /* @__PURE__ */ jsxs9(
|
|
1161
|
-
"a",
|
|
1162
|
-
{
|
|
1163
|
-
href,
|
|
1164
|
-
target: "_blank",
|
|
1165
|
-
rel: "noopener noreferrer",
|
|
1166
|
-
download: fileName,
|
|
1167
|
-
className: "comment-node-file",
|
|
1168
|
-
style: {
|
|
1169
|
-
display: "inline-flex",
|
|
1170
|
-
alignItems: "center",
|
|
1171
|
-
gap: "8px",
|
|
1172
|
-
padding: "8px 12px",
|
|
1173
|
-
border: "1px solid rgba(0,0,0,0.12)",
|
|
1174
|
-
borderRadius: "8px",
|
|
1175
|
-
textDecoration: "none",
|
|
1176
|
-
color: "inherit",
|
|
1177
|
-
maxWidth: "100%"
|
|
1178
|
-
},
|
|
1179
|
-
children: [
|
|
1180
|
-
/* @__PURE__ */ jsx23(FileIcon_default, { fileName, className: "comment-node-file-icon" }),
|
|
1181
|
-
/* @__PURE__ */ jsxs9(
|
|
1182
|
-
"span",
|
|
1183
|
-
{
|
|
1184
|
-
className: "comment-node-file-text",
|
|
1185
|
-
style: { display: "flex", flexDirection: "column", minWidth: 0 },
|
|
1186
|
-
children: [
|
|
1187
|
-
/* @__PURE__ */ jsx23(
|
|
1188
|
-
"span",
|
|
1189
|
-
{
|
|
1190
|
-
className: "comment-node-file-name",
|
|
1191
|
-
style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
|
|
1192
|
-
children: fileName
|
|
1193
|
-
}
|
|
1194
|
-
),
|
|
1195
|
-
sizeLabel ? /* @__PURE__ */ jsx23("span", { className: "comment-node-file-size", style: { fontSize: "0.8em", opacity: 0.7 }, children: sizeLabel }) : null
|
|
1196
|
-
]
|
|
1197
|
-
}
|
|
1198
|
-
)
|
|
1199
|
-
]
|
|
1200
|
-
}
|
|
1201
|
-
);
|
|
1202
|
-
};
|
|
1203
|
-
var CommentFileNode_default = CommentFileNode;
|
|
1204
|
-
|
|
1205
|
-
// src/components/controls/view/CommentNodeRenderer.tsx
|
|
1206
|
-
import { jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1207
|
-
var TextLeafNode = ({ node }) => {
|
|
1208
|
-
let content = node.text;
|
|
1209
|
-
if (node.code) content = /* @__PURE__ */ jsx24("code", { className: "comment-node-code", children: content });
|
|
1210
|
-
if (node.bold) content = /* @__PURE__ */ jsx24("strong", { children: content });
|
|
1211
|
-
if (node.italic) content = /* @__PURE__ */ jsx24("em", { children: content });
|
|
1212
|
-
if (node.underline) content = /* @__PURE__ */ jsx24("u", { children: content });
|
|
1213
|
-
if (node.strikethrough) content = /* @__PURE__ */ jsx24("s", { children: content });
|
|
1214
|
-
return /* @__PURE__ */ jsx24(React15.Fragment, { children: content });
|
|
1215
|
-
};
|
|
1216
|
-
var renderChildren = (children, keyPrefix, assetBaseUrl) => {
|
|
1217
|
-
if (!children || children.length === 0) {
|
|
1218
|
-
return null;
|
|
1219
|
-
}
|
|
1220
|
-
return children.map((child, index) => {
|
|
1221
|
-
const childKey = isTextNode(child) ? void 0 : asElementNode(child).id;
|
|
1222
|
-
return /* @__PURE__ */ jsx24(
|
|
1223
|
-
CommentNodeRenderer,
|
|
1224
|
-
{
|
|
1225
|
-
node: child,
|
|
1226
|
-
assetBaseUrl
|
|
1227
|
-
},
|
|
1228
|
-
childKey ?? `${keyPrefix}-${index}`
|
|
1229
|
-
);
|
|
1230
|
-
});
|
|
1231
|
-
};
|
|
1232
|
-
var headingLevelFromTag = (tag) => {
|
|
1233
|
-
const match = typeof tag === "string" ? tag.match(/\d/) : null;
|
|
1234
|
-
const parsed = match ? Number(match[0]) : Number(tag);
|
|
1235
|
-
return Number.isFinite(parsed) && parsed >= 1 && parsed <= 6 ? parsed : 3;
|
|
1236
|
-
};
|
|
1237
|
-
var CommentNodeRenderer = ({ node, assetBaseUrl }) => {
|
|
1238
|
-
if (!node || typeof node !== "object") {
|
|
1239
|
-
return null;
|
|
1240
|
-
}
|
|
1241
|
-
if (isTextNode(node)) {
|
|
1242
|
-
return /* @__PURE__ */ jsx24(TextLeafNode, { node });
|
|
1243
|
-
}
|
|
1244
|
-
const element = asElementNode(node);
|
|
1245
|
-
const key = element.id ?? element.type;
|
|
1246
|
-
switch (element.type) {
|
|
1247
|
-
case "paragraph":
|
|
1248
|
-
return /* @__PURE__ */ jsx24("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key, assetBaseUrl) ?? /* @__PURE__ */ jsx24("br", {}) });
|
|
1249
|
-
case "heading": {
|
|
1250
|
-
const level = headingLevelFromTag(element.tag ?? element.level);
|
|
1251
|
-
const HeadingTag = `h${level}`;
|
|
1252
|
-
return /* @__PURE__ */ jsx24(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
1253
|
-
}
|
|
1254
|
-
case "list": {
|
|
1255
|
-
const ordered = element.listType === "number" || element.ordered === true;
|
|
1256
|
-
const ListTag = ordered ? "ol" : "ul";
|
|
1257
|
-
return /* @__PURE__ */ jsx24(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
1258
|
-
}
|
|
1259
|
-
case "listitem":
|
|
1260
|
-
case "list-item":
|
|
1261
|
-
return /* @__PURE__ */ jsx24("li", { className: "comment-node-listitem", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
1262
|
-
case "quote":
|
|
1263
|
-
case "blockquote":
|
|
1264
|
-
return /* @__PURE__ */ jsx24("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
1265
|
-
case "code":
|
|
1266
|
-
case "code-block":
|
|
1267
|
-
return /* @__PURE__ */ jsx24("pre", { className: "comment-node-codeblock", children: /* @__PURE__ */ jsx24("code", { children: renderChildren(element.children, key, assetBaseUrl) }) });
|
|
1268
|
-
case "image":
|
|
1269
|
-
return /* @__PURE__ */ jsx24(CommentImageNode_default, { node: element, assetBaseUrl });
|
|
1270
|
-
case "file":
|
|
1271
|
-
return /* @__PURE__ */ jsx24(CommentFileNode_default, { node: element, assetBaseUrl });
|
|
1272
|
-
case "link": {
|
|
1273
|
-
const url = typeof element.url === "string" ? element.url : "#";
|
|
1274
|
-
return /* @__PURE__ */ jsx24("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
1275
|
-
}
|
|
1276
|
-
case "mention": {
|
|
1277
|
-
const label = element.label ?? element.mentionName ?? element.text ?? "";
|
|
1278
|
-
return /* @__PURE__ */ jsxs10("span", { className: "comment-node-mention", children: [
|
|
1279
|
-
"@",
|
|
1280
|
-
label
|
|
1281
|
-
] });
|
|
1282
|
-
}
|
|
1283
|
-
case "linebreak":
|
|
1284
|
-
case "line-break":
|
|
1285
|
-
return /* @__PURE__ */ jsx24("br", {});
|
|
1286
|
-
default:
|
|
1287
|
-
return /* @__PURE__ */ jsx24(React15.Fragment, { children: renderChildren(element.children, key, assetBaseUrl) });
|
|
1288
|
-
}
|
|
1289
|
-
};
|
|
1290
|
-
var CommentNodeRenderer_default = CommentNodeRenderer;
|
|
1291
|
-
|
|
1292
|
-
// src/components/controls/view/Commentrenderer.tsx
|
|
1293
|
-
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1294
|
-
var CommentRenderer = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
|
|
1295
|
-
const nodes = React16.useMemo(() => parseSerializedContent(value), [value]);
|
|
1296
|
-
if (!nodes || nodes.length === 0) {
|
|
1297
|
-
return null;
|
|
1298
|
-
}
|
|
1299
|
-
const resolvedAssetBaseUrl = assetBaseUrl ?? apiBaseUrl;
|
|
1300
|
-
console.log(resolvedAssetBaseUrl, "resolvedAssetBaseUrl");
|
|
1301
|
-
return /* @__PURE__ */ jsx25("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ jsx25(
|
|
1302
|
-
CommentNodeRenderer_default,
|
|
1303
|
-
{
|
|
1304
|
-
node,
|
|
1305
|
-
assetBaseUrl: resolvedAssetBaseUrl
|
|
1306
|
-
},
|
|
1307
|
-
node.id ?? `comment-node-${index}`
|
|
1308
|
-
)) });
|
|
1309
|
-
};
|
|
744
|
+
import dynamic7 from "next/dynamic";
|
|
745
|
+
var CommentRenderer = dynamic7(() => import("./CommentRendererClient-JBEXVDPU.mjs"), {
|
|
746
|
+
ssr: false
|
|
747
|
+
});
|
|
1310
748
|
var Commentrenderer_default = CommentRenderer;
|
|
1311
749
|
|
|
1312
750
|
// src/components/controls/view/ViewControl.tsx
|
|
1313
|
-
import { jsx as
|
|
751
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1314
752
|
var ViewControl = (props) => {
|
|
1315
753
|
const ControlComponents = {
|
|
1316
754
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -1341,12 +779,12 @@ var ViewControl = (props) => {
|
|
|
1341
779
|
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default
|
|
1342
780
|
};
|
|
1343
781
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
1344
|
-
return /* @__PURE__ */
|
|
782
|
+
return /* @__PURE__ */ jsx21(React15.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx21(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
1345
783
|
};
|
|
1346
784
|
var ViewControl_default = ViewControl;
|
|
1347
785
|
|
|
1348
786
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
1349
|
-
import { jsx as
|
|
787
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1350
788
|
function getNestedProperty(obj, path) {
|
|
1351
789
|
if (!obj || !path) return null;
|
|
1352
790
|
if (path.includes(".")) {
|
|
@@ -1359,7 +797,7 @@ function getNestedProperty(obj, path) {
|
|
|
1359
797
|
}
|
|
1360
798
|
const value = obj[path];
|
|
1361
799
|
if (Array.isArray(value)) {
|
|
1362
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
800
|
+
return value.map((item, index) => /* @__PURE__ */ jsx22("div", { children: String(item) }, index));
|
|
1363
801
|
}
|
|
1364
802
|
return value;
|
|
1365
803
|
}
|
|
@@ -1422,7 +860,7 @@ var DatafieldNode = (props) => {
|
|
|
1422
860
|
const dataType = props.node.dataType;
|
|
1423
861
|
if (isEmptyValue) return null;
|
|
1424
862
|
if (dataType === "rawContent") {
|
|
1425
|
-
return /* @__PURE__ */
|
|
863
|
+
return /* @__PURE__ */ jsx22(
|
|
1426
864
|
PageBodyRenderer_default,
|
|
1427
865
|
{
|
|
1428
866
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -1438,13 +876,13 @@ var DatafieldNode = (props) => {
|
|
|
1438
876
|
}
|
|
1439
877
|
);
|
|
1440
878
|
}
|
|
1441
|
-
return /* @__PURE__ */
|
|
879
|
+
return /* @__PURE__ */ jsx22(
|
|
1442
880
|
"span",
|
|
1443
881
|
{
|
|
1444
882
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
1445
883
|
style: styles,
|
|
1446
884
|
title,
|
|
1447
|
-
children: /* @__PURE__ */
|
|
885
|
+
children: /* @__PURE__ */ jsx22(
|
|
1448
886
|
ViewControl_default,
|
|
1449
887
|
{
|
|
1450
888
|
controlType: dataType,
|
|
@@ -1459,7 +897,7 @@ var DatafieldNode = (props) => {
|
|
|
1459
897
|
var DatafieldNode_default = DatafieldNode;
|
|
1460
898
|
|
|
1461
899
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
1462
|
-
import { Fragment as Fragment2, jsx as
|
|
900
|
+
import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1463
901
|
var ParagraphNode = (props) => {
|
|
1464
902
|
const NodeTypes2 = {
|
|
1465
903
|
["text"]: TextNode_default,
|
|
@@ -1479,9 +917,9 @@ var ParagraphNode = (props) => {
|
|
|
1479
917
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
1480
918
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
1481
919
|
if (isInlineOnlyParent) {
|
|
1482
|
-
return /* @__PURE__ */
|
|
920
|
+
return /* @__PURE__ */ jsx23(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
1483
921
|
const SelectedNode = NodeTypes2[node.type];
|
|
1484
|
-
return /* @__PURE__ */
|
|
922
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
|
|
1485
923
|
SelectedNode,
|
|
1486
924
|
{
|
|
1487
925
|
node,
|
|
@@ -1494,10 +932,10 @@ var ParagraphNode = (props) => {
|
|
|
1494
932
|
) }, index);
|
|
1495
933
|
}) });
|
|
1496
934
|
}
|
|
1497
|
-
return /* @__PURE__ */
|
|
935
|
+
return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
|
|
1498
936
|
hasChildren && props.node.children.map((node, index) => {
|
|
1499
937
|
const SelectedNode = NodeTypes2[node.type];
|
|
1500
|
-
return /* @__PURE__ */
|
|
938
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
|
|
1501
939
|
SelectedNode,
|
|
1502
940
|
{
|
|
1503
941
|
node,
|
|
@@ -1509,14 +947,14 @@ var ParagraphNode = (props) => {
|
|
|
1509
947
|
}
|
|
1510
948
|
) }, index);
|
|
1511
949
|
}),
|
|
1512
|
-
!hasChildren && /* @__PURE__ */
|
|
950
|
+
!hasChildren && /* @__PURE__ */ jsx23("div", { className: "py-1.5 lg:py-2" })
|
|
1513
951
|
] });
|
|
1514
952
|
};
|
|
1515
953
|
var ParagraphNode_default = ParagraphNode;
|
|
1516
954
|
|
|
1517
955
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
1518
|
-
import
|
|
1519
|
-
import { Fragment as Fragment3, jsx as
|
|
956
|
+
import React17 from "react";
|
|
957
|
+
import { Fragment as Fragment3, jsx as jsx24 } from "react/jsx-runtime";
|
|
1520
958
|
var HeadingNode = (props) => {
|
|
1521
959
|
const NodeTypes2 = {
|
|
1522
960
|
["text"]: TextNode_default,
|
|
@@ -1532,23 +970,23 @@ var HeadingNode = (props) => {
|
|
|
1532
970
|
{
|
|
1533
971
|
}
|
|
1534
972
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
1535
|
-
return /* @__PURE__ */
|
|
973
|
+
return /* @__PURE__ */ jsx24(Fragment3, { children: React17.createElement(
|
|
1536
974
|
HeadingTag,
|
|
1537
975
|
{ className: formatClasses },
|
|
1538
976
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
1539
977
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
1540
|
-
return /* @__PURE__ */
|
|
978
|
+
return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1541
979
|
})
|
|
1542
980
|
) });
|
|
1543
981
|
};
|
|
1544
982
|
var HeadingNode_default = HeadingNode;
|
|
1545
983
|
|
|
1546
984
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1547
|
-
import
|
|
985
|
+
import React19 from "react";
|
|
1548
986
|
|
|
1549
987
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
1550
|
-
import
|
|
1551
|
-
import { jsx as
|
|
988
|
+
import React18 from "react";
|
|
989
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1552
990
|
var ListItemNode = (props) => {
|
|
1553
991
|
const NodeTypes2 = {
|
|
1554
992
|
text: TextNode_default,
|
|
@@ -1565,66 +1003,66 @@ var ListItemNode = (props) => {
|
|
|
1565
1003
|
liStyle.fontSize = match[1].trim();
|
|
1566
1004
|
}
|
|
1567
1005
|
}
|
|
1568
|
-
return /* @__PURE__ */
|
|
1006
|
+
return /* @__PURE__ */ jsx25("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
1569
1007
|
const SelectedNode = NodeTypes2[node.type];
|
|
1570
1008
|
if (node.type === "linebreak") {
|
|
1571
1009
|
if (!foundFirstBreak) {
|
|
1572
1010
|
foundFirstBreak = true;
|
|
1573
|
-
return /* @__PURE__ */
|
|
1011
|
+
return /* @__PURE__ */ jsx25("div", {}, index);
|
|
1574
1012
|
} else {
|
|
1575
|
-
return /* @__PURE__ */
|
|
1013
|
+
return /* @__PURE__ */ jsx25("div", { className: "py-1 lg:py-2" }, index);
|
|
1576
1014
|
}
|
|
1577
1015
|
} else {
|
|
1578
1016
|
foundFirstBreak = false;
|
|
1579
|
-
return /* @__PURE__ */
|
|
1017
|
+
return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1580
1018
|
}
|
|
1581
1019
|
}) });
|
|
1582
1020
|
};
|
|
1583
1021
|
var ListItemNode_default = ListItemNode;
|
|
1584
1022
|
|
|
1585
1023
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1586
|
-
import { jsx as
|
|
1024
|
+
import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1587
1025
|
var ListNode = (props) => {
|
|
1588
1026
|
const NodeTypes2 = {
|
|
1589
1027
|
listitem: ListItemNode_default
|
|
1590
1028
|
};
|
|
1591
|
-
return /* @__PURE__ */
|
|
1592
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1029
|
+
return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
|
|
1030
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx26("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1593
1031
|
const SelectedNode = NodeTypes2[node.type];
|
|
1594
|
-
return /* @__PURE__ */
|
|
1032
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1595
1033
|
}) }),
|
|
1596
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1034
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx26("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1597
1035
|
const SelectedNode = NodeTypes2[node.type];
|
|
1598
|
-
return /* @__PURE__ */
|
|
1036
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1599
1037
|
}) })
|
|
1600
1038
|
] });
|
|
1601
1039
|
};
|
|
1602
1040
|
var ListNode_default = ListNode;
|
|
1603
1041
|
|
|
1604
1042
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
1605
|
-
import
|
|
1606
|
-
import { jsx as
|
|
1043
|
+
import React20 from "react";
|
|
1044
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1607
1045
|
var QuoteNode = (props) => {
|
|
1608
1046
|
const NodeTypes2 = {
|
|
1609
1047
|
["text"]: TextNode_default,
|
|
1610
1048
|
["linebreak"]: LineBreakNode_default,
|
|
1611
1049
|
["link"]: LinkNode_default
|
|
1612
1050
|
};
|
|
1613
|
-
return /* @__PURE__ */
|
|
1051
|
+
return /* @__PURE__ */ jsx27("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1614
1052
|
const SelectedNode = NodeTypes2[node.type];
|
|
1615
|
-
return /* @__PURE__ */
|
|
1053
|
+
return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1616
1054
|
}) });
|
|
1617
1055
|
};
|
|
1618
1056
|
var QuoteNode_default = QuoteNode;
|
|
1619
1057
|
|
|
1620
1058
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1621
|
-
import
|
|
1622
|
-
import
|
|
1623
|
-
import { jsx as
|
|
1624
|
-
var CopyButton =
|
|
1059
|
+
import React21 from "react";
|
|
1060
|
+
import dynamic8 from "next/dynamic";
|
|
1061
|
+
import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1062
|
+
var CopyButton = dynamic8(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
1625
1063
|
ssr: false,
|
|
1626
1064
|
// optional: fallback UI while loading
|
|
1627
|
-
loading: () => /* @__PURE__ */
|
|
1065
|
+
loading: () => /* @__PURE__ */ jsx28("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1628
1066
|
});
|
|
1629
1067
|
var CodeNode = (props) => {
|
|
1630
1068
|
const NodeTypes2 = {
|
|
@@ -1638,14 +1076,14 @@ var CodeNode = (props) => {
|
|
|
1638
1076
|
if (node.type === "link") return node.text || node.url || "";
|
|
1639
1077
|
return "";
|
|
1640
1078
|
}).join("") ?? "";
|
|
1641
|
-
return /* @__PURE__ */
|
|
1642
|
-
/* @__PURE__ */
|
|
1643
|
-
/* @__PURE__ */
|
|
1644
|
-
/* @__PURE__ */
|
|
1079
|
+
return /* @__PURE__ */ jsxs10("div", { children: [
|
|
1080
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
1081
|
+
/* @__PURE__ */ jsx28("span", { children: "Code Snippet" }),
|
|
1082
|
+
/* @__PURE__ */ jsx28(CopyButton, { text: textContent })
|
|
1645
1083
|
] }),
|
|
1646
|
-
/* @__PURE__ */
|
|
1084
|
+
/* @__PURE__ */ jsx28("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
|
|
1647
1085
|
const SelectedNode = NodeTypes2[node.type];
|
|
1648
|
-
return /* @__PURE__ */
|
|
1086
|
+
return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
|
|
1649
1087
|
SelectedNode,
|
|
1650
1088
|
{
|
|
1651
1089
|
node,
|
|
@@ -1660,15 +1098,15 @@ var CodeNode = (props) => {
|
|
|
1660
1098
|
var CodeNode_default = CodeNode;
|
|
1661
1099
|
|
|
1662
1100
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1663
|
-
import { jsx as
|
|
1101
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1664
1102
|
var HorizontalRuleNode = () => {
|
|
1665
|
-
return /* @__PURE__ */
|
|
1103
|
+
return /* @__PURE__ */ jsx29("hr", {});
|
|
1666
1104
|
};
|
|
1667
1105
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1668
1106
|
|
|
1669
1107
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1670
|
-
import
|
|
1671
|
-
import { Fragment as Fragment4, jsx as
|
|
1108
|
+
import React22 from "react";
|
|
1109
|
+
import { Fragment as Fragment4, jsx as jsx30 } from "react/jsx-runtime";
|
|
1672
1110
|
var WidgetNode = (props) => {
|
|
1673
1111
|
const getWidgetParameters = () => {
|
|
1674
1112
|
const widgetInputParameters = {
|
|
@@ -1732,7 +1170,7 @@ var WidgetNode = (props) => {
|
|
|
1732
1170
|
};
|
|
1733
1171
|
const widgetCode = props.node?.widgetCode;
|
|
1734
1172
|
if (!widgetCode) {
|
|
1735
|
-
return /* @__PURE__ */
|
|
1173
|
+
return /* @__PURE__ */ jsx30(Fragment4, { children: "Invalid widget" });
|
|
1736
1174
|
}
|
|
1737
1175
|
const widgetParams = getWidgetParameters();
|
|
1738
1176
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1741,7 +1179,7 @@ var WidgetNode = (props) => {
|
|
|
1741
1179
|
}
|
|
1742
1180
|
return (
|
|
1743
1181
|
// eslint-disable-next-line react-hooks/static-components
|
|
1744
|
-
/* @__PURE__ */
|
|
1182
|
+
/* @__PURE__ */ jsx30(React22.Fragment, { children: /* @__PURE__ */ jsx30(
|
|
1745
1183
|
WidgetRenderer,
|
|
1746
1184
|
{
|
|
1747
1185
|
params: widgetParams,
|
|
@@ -1758,13 +1196,13 @@ var WidgetNode = (props) => {
|
|
|
1758
1196
|
var WidgetNode_default = WidgetNode;
|
|
1759
1197
|
|
|
1760
1198
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
1761
|
-
import
|
|
1762
|
-
import
|
|
1199
|
+
import dynamic12 from "next/dynamic";
|
|
1200
|
+
import React23 from "react";
|
|
1763
1201
|
|
|
1764
1202
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1765
|
-
import
|
|
1766
|
-
import { jsx as
|
|
1767
|
-
var IframeClient =
|
|
1203
|
+
import dynamic9 from "next/dynamic";
|
|
1204
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1205
|
+
var IframeClient = dynamic9(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
1768
1206
|
ssr: false
|
|
1769
1207
|
});
|
|
1770
1208
|
var EmbedNode = (props) => {
|
|
@@ -1776,7 +1214,7 @@ var EmbedNode = (props) => {
|
|
|
1776
1214
|
} else {
|
|
1777
1215
|
src = props.node.embedSrc;
|
|
1778
1216
|
}
|
|
1779
|
-
return /* @__PURE__ */
|
|
1217
|
+
return /* @__PURE__ */ jsx31("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx31(IframeClient, { src }) });
|
|
1780
1218
|
};
|
|
1781
1219
|
var EmbedNode_default = EmbedNode;
|
|
1782
1220
|
|
|
@@ -1969,10 +1407,10 @@ var PathUtility = class {
|
|
|
1969
1407
|
var PathUtility_default = new PathUtility();
|
|
1970
1408
|
|
|
1971
1409
|
// src/components/NoDataFound.tsx
|
|
1972
|
-
import { jsx as
|
|
1410
|
+
import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1973
1411
|
var NoDataFound = () => {
|
|
1974
|
-
return /* @__PURE__ */
|
|
1975
|
-
/* @__PURE__ */
|
|
1412
|
+
return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1413
|
+
/* @__PURE__ */ jsx32("div", { className: "mb-5", children: /* @__PURE__ */ jsx32("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx32(
|
|
1976
1414
|
"svg",
|
|
1977
1415
|
{
|
|
1978
1416
|
className: "w-10 h-10",
|
|
@@ -1980,7 +1418,7 @@ var NoDataFound = () => {
|
|
|
1980
1418
|
stroke: "currentColor",
|
|
1981
1419
|
viewBox: "0 0 24 24",
|
|
1982
1420
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1983
|
-
children: /* @__PURE__ */
|
|
1421
|
+
children: /* @__PURE__ */ jsx32(
|
|
1984
1422
|
"path",
|
|
1985
1423
|
{
|
|
1986
1424
|
strokeLinecap: "round",
|
|
@@ -1991,16 +1429,16 @@ var NoDataFound = () => {
|
|
|
1991
1429
|
)
|
|
1992
1430
|
}
|
|
1993
1431
|
) }) }),
|
|
1994
|
-
/* @__PURE__ */
|
|
1995
|
-
/* @__PURE__ */
|
|
1432
|
+
/* @__PURE__ */ jsx32("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1433
|
+
/* @__PURE__ */ jsx32("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1996
1434
|
] });
|
|
1997
1435
|
};
|
|
1998
1436
|
var NoDataFound_default = NoDataFound;
|
|
1999
1437
|
|
|
2000
1438
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
2001
|
-
import
|
|
2002
|
-
import { Fragment as Fragment5, jsx as
|
|
2003
|
-
var HlsPlayer3 =
|
|
1439
|
+
import dynamic10 from "next/dynamic";
|
|
1440
|
+
import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1441
|
+
var HlsPlayer3 = dynamic10(() => import("./HlsPlayer-BVS6BVF7.mjs"), { ssr: false });
|
|
2004
1442
|
var deviceToMediaQuery = (device) => {
|
|
2005
1443
|
switch (device) {
|
|
2006
1444
|
case "lg":
|
|
@@ -2155,8 +1593,8 @@ var ImageGalleryNode = (props) => {
|
|
|
2155
1593
|
right: "justify-end"
|
|
2156
1594
|
};
|
|
2157
1595
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
2158
|
-
return /* @__PURE__ */
|
|
2159
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1596
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1597
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx33(Fragment5, { children: /* @__PURE__ */ jsx33(
|
|
2160
1598
|
HlsPlayer3,
|
|
2161
1599
|
{
|
|
2162
1600
|
sources: hlsSources,
|
|
@@ -2171,7 +1609,7 @@ var ImageGalleryNode = (props) => {
|
|
|
2171
1609
|
styles: hlsStyles
|
|
2172
1610
|
}
|
|
2173
1611
|
) }),
|
|
2174
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1612
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx33(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs12("picture", { children: [
|
|
2175
1613
|
DEVICE_ORDER.map((deviceKey) => {
|
|
2176
1614
|
const match = staticSources.find(
|
|
2177
1615
|
(img) => img.device === deviceKey
|
|
@@ -2187,7 +1625,7 @@ var ImageGalleryNode = (props) => {
|
|
|
2187
1625
|
if (!srcUrl) {
|
|
2188
1626
|
return null;
|
|
2189
1627
|
}
|
|
2190
|
-
return /* @__PURE__ */
|
|
1628
|
+
return /* @__PURE__ */ jsx33(
|
|
2191
1629
|
"source",
|
|
2192
1630
|
{
|
|
2193
1631
|
media: deviceToMediaQuery(match.device),
|
|
@@ -2212,7 +1650,7 @@ var ImageGalleryNode = (props) => {
|
|
|
2212
1650
|
if (img.borderRadius) {
|
|
2213
1651
|
styles.borderRadius = img.borderRadius;
|
|
2214
1652
|
}
|
|
2215
|
-
return /* @__PURE__ */
|
|
1653
|
+
return /* @__PURE__ */ jsx33(
|
|
2216
1654
|
"img",
|
|
2217
1655
|
{
|
|
2218
1656
|
loading: "lazy",
|
|
@@ -2227,7 +1665,7 @@ var ImageGalleryNode = (props) => {
|
|
|
2227
1665
|
})()
|
|
2228
1666
|
] }) : (
|
|
2229
1667
|
/* Case 2: Only device-specific images exist */
|
|
2230
|
-
/* @__PURE__ */
|
|
1668
|
+
/* @__PURE__ */ jsx33(Fragment5, { children: staticSources.map((img, index) => {
|
|
2231
1669
|
const resolved = resolveImage(img);
|
|
2232
1670
|
const imageUrl = resolved?.imageUrl;
|
|
2233
1671
|
if (!imageUrl) {
|
|
@@ -2254,7 +1692,7 @@ var ImageGalleryNode = (props) => {
|
|
|
2254
1692
|
default:
|
|
2255
1693
|
display = "block";
|
|
2256
1694
|
}
|
|
2257
|
-
return /* @__PURE__ */
|
|
1695
|
+
return /* @__PURE__ */ jsx33(
|
|
2258
1696
|
"img",
|
|
2259
1697
|
{
|
|
2260
1698
|
loading: "lazy",
|
|
@@ -2394,28 +1832,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
2394
1832
|
};
|
|
2395
1833
|
|
|
2396
1834
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
2397
|
-
import { Fragment as Fragment6, jsx as
|
|
1835
|
+
import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2398
1836
|
var getNestedValue5 = (obj, path) => {
|
|
2399
1837
|
if (!obj || !path) return void 0;
|
|
2400
1838
|
return path.split(".").reduce((current, key) => {
|
|
2401
1839
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
2402
1840
|
}, obj);
|
|
2403
1841
|
};
|
|
2404
|
-
var
|
|
1842
|
+
var PdfIcon = () => /* @__PURE__ */ jsxs13(
|
|
2405
1843
|
"svg",
|
|
2406
1844
|
{
|
|
2407
1845
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2408
1846
|
viewBox: "0 0 48 48",
|
|
2409
1847
|
className: "w-10 h-10",
|
|
2410
1848
|
children: [
|
|
2411
|
-
/* @__PURE__ */
|
|
1849
|
+
/* @__PURE__ */ jsx34(
|
|
2412
1850
|
"path",
|
|
2413
1851
|
{
|
|
2414
1852
|
fill: "#e53935",
|
|
2415
1853
|
d: "M38,42H10c-2.209,0-4-1.791-4-4V10c0-2.209,1.791-4,4-4h28c2.209,0,4,1.791,4,4v28 C42,40.209,40.209,42,38,42z"
|
|
2416
1854
|
}
|
|
2417
1855
|
),
|
|
2418
|
-
/* @__PURE__ */
|
|
1856
|
+
/* @__PURE__ */ jsx34(
|
|
2419
1857
|
"path",
|
|
2420
1858
|
{
|
|
2421
1859
|
fill: "#fff",
|
|
@@ -2425,55 +1863,55 @@ var PdfIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2425
1863
|
]
|
|
2426
1864
|
}
|
|
2427
1865
|
);
|
|
2428
|
-
var
|
|
1866
|
+
var ExcelIcon = () => /* @__PURE__ */ jsxs13(
|
|
2429
1867
|
"svg",
|
|
2430
1868
|
{
|
|
2431
1869
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2432
1870
|
viewBox: "0 0 48 48",
|
|
2433
1871
|
className: "w-10 h-10",
|
|
2434
1872
|
children: [
|
|
2435
|
-
/* @__PURE__ */
|
|
1873
|
+
/* @__PURE__ */ jsx34(
|
|
2436
1874
|
"path",
|
|
2437
1875
|
{
|
|
2438
1876
|
fill: "#169154",
|
|
2439
1877
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
2440
1878
|
}
|
|
2441
1879
|
),
|
|
2442
|
-
/* @__PURE__ */
|
|
1880
|
+
/* @__PURE__ */ jsx34(
|
|
2443
1881
|
"path",
|
|
2444
1882
|
{
|
|
2445
1883
|
fill: "#18482a",
|
|
2446
1884
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
2447
1885
|
}
|
|
2448
1886
|
),
|
|
2449
|
-
/* @__PURE__ */
|
|
2450
|
-
/* @__PURE__ */
|
|
2451
|
-
/* @__PURE__ */
|
|
2452
|
-
/* @__PURE__ */
|
|
1887
|
+
/* @__PURE__ */ jsx34("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
1888
|
+
/* @__PURE__ */ jsx34("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
1889
|
+
/* @__PURE__ */ jsxs13("g", { children: [
|
|
1890
|
+
/* @__PURE__ */ jsx34(
|
|
2453
1891
|
"path",
|
|
2454
1892
|
{
|
|
2455
1893
|
fill: "#29c27f",
|
|
2456
1894
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
2457
1895
|
}
|
|
2458
1896
|
),
|
|
2459
|
-
/* @__PURE__ */
|
|
1897
|
+
/* @__PURE__ */ jsx34(
|
|
2460
1898
|
"path",
|
|
2461
1899
|
{
|
|
2462
1900
|
fill: "#27663f",
|
|
2463
1901
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
2464
1902
|
}
|
|
2465
1903
|
),
|
|
2466
|
-
/* @__PURE__ */
|
|
2467
|
-
/* @__PURE__ */
|
|
1904
|
+
/* @__PURE__ */ jsx34("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
1905
|
+
/* @__PURE__ */ jsx34("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
2468
1906
|
] }),
|
|
2469
|
-
/* @__PURE__ */
|
|
1907
|
+
/* @__PURE__ */ jsx34(
|
|
2470
1908
|
"path",
|
|
2471
1909
|
{
|
|
2472
1910
|
fill: "#0c7238",
|
|
2473
1911
|
d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
|
|
2474
1912
|
}
|
|
2475
1913
|
),
|
|
2476
|
-
/* @__PURE__ */
|
|
1914
|
+
/* @__PURE__ */ jsx34(
|
|
2477
1915
|
"path",
|
|
2478
1916
|
{
|
|
2479
1917
|
fill: "#fff",
|
|
@@ -2483,7 +1921,7 @@ var ExcelIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2483
1921
|
]
|
|
2484
1922
|
}
|
|
2485
1923
|
);
|
|
2486
|
-
var
|
|
1924
|
+
var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
2487
1925
|
"svg",
|
|
2488
1926
|
{
|
|
2489
1927
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2491,14 +1929,14 @@ var WordIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2491
1929
|
className: "w-10 h-10",
|
|
2492
1930
|
baseProfile: "basic",
|
|
2493
1931
|
children: [
|
|
2494
|
-
/* @__PURE__ */
|
|
1932
|
+
/* @__PURE__ */ jsx34(
|
|
2495
1933
|
"path",
|
|
2496
1934
|
{
|
|
2497
1935
|
fill: "#283593",
|
|
2498
1936
|
d: "M9,33.595l14.911-18.706L41,26v13.306C41,41.346,39.346,43,37.306,43H15.332 C11.835,43,9,40.164,9,36.667C9,36.667,9,33.595,9,33.595z"
|
|
2499
1937
|
}
|
|
2500
1938
|
),
|
|
2501
|
-
/* @__PURE__ */
|
|
1939
|
+
/* @__PURE__ */ jsxs13(
|
|
2502
1940
|
"linearGradient",
|
|
2503
1941
|
{
|
|
2504
1942
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -2509,19 +1947,19 @@ var WordIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2509
1947
|
gradientTransform: "translate(0 -339.89)",
|
|
2510
1948
|
gradientUnits: "userSpaceOnUse",
|
|
2511
1949
|
children: [
|
|
2512
|
-
/* @__PURE__ */
|
|
2513
|
-
/* @__PURE__ */
|
|
1950
|
+
/* @__PURE__ */ jsx34("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
1951
|
+
/* @__PURE__ */ jsx34("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
2514
1952
|
]
|
|
2515
1953
|
}
|
|
2516
1954
|
),
|
|
2517
|
-
/* @__PURE__ */
|
|
1955
|
+
/* @__PURE__ */ jsx34(
|
|
2518
1956
|
"path",
|
|
2519
1957
|
{
|
|
2520
1958
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
2521
1959
|
d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
|
|
2522
1960
|
}
|
|
2523
1961
|
),
|
|
2524
|
-
/* @__PURE__ */
|
|
1962
|
+
/* @__PURE__ */ jsx34(
|
|
2525
1963
|
"path",
|
|
2526
1964
|
{
|
|
2527
1965
|
fill: "#1e88e5",
|
|
@@ -2529,21 +1967,21 @@ var WordIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2529
1967
|
d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
|
|
2530
1968
|
}
|
|
2531
1969
|
),
|
|
2532
|
-
/* @__PURE__ */
|
|
1970
|
+
/* @__PURE__ */ jsx34(
|
|
2533
1971
|
"path",
|
|
2534
1972
|
{
|
|
2535
1973
|
fill: "#00e5ff",
|
|
2536
1974
|
d: "M9,10.333C9,6.836,11.835,4,15.332,4h21.975C39.346,4,41,5.654,41,7.694v5.611 C41,15.346,39.346,17,37.306,17H15.332C11.835,17,9,19.836,9,23.333C9,23.333,9,10.333,9,10.333z"
|
|
2537
1975
|
}
|
|
2538
1976
|
),
|
|
2539
|
-
/* @__PURE__ */
|
|
1977
|
+
/* @__PURE__ */ jsx34(
|
|
2540
1978
|
"path",
|
|
2541
1979
|
{
|
|
2542
1980
|
fill: "#1565c0",
|
|
2543
1981
|
d: "M7.5,23h10c1.933,0,3.5,1.567,3.5,3.5v10c0,1.933-1.567,3.5-3.5,3.5h-10C5.567,40,4,38.433,4,36.5 v-10C4,24.567,5.567,23,7.5,23z"
|
|
2544
1982
|
}
|
|
2545
1983
|
),
|
|
2546
|
-
/* @__PURE__ */
|
|
1984
|
+
/* @__PURE__ */ jsx34(
|
|
2547
1985
|
"path",
|
|
2548
1986
|
{
|
|
2549
1987
|
fill: "#fff",
|
|
@@ -2553,42 +1991,42 @@ var WordIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2553
1991
|
]
|
|
2554
1992
|
}
|
|
2555
1993
|
);
|
|
2556
|
-
var
|
|
1994
|
+
var StandardIcon = () => /* @__PURE__ */ jsxs13(
|
|
2557
1995
|
"svg",
|
|
2558
1996
|
{
|
|
2559
1997
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2560
1998
|
viewBox: "0 0 48 48",
|
|
2561
1999
|
className: "w-10 h-10",
|
|
2562
2000
|
children: [
|
|
2563
|
-
/* @__PURE__ */
|
|
2564
|
-
/* @__PURE__ */
|
|
2001
|
+
/* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2002
|
+
/* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
2565
2003
|
]
|
|
2566
2004
|
}
|
|
2567
2005
|
);
|
|
2568
|
-
var
|
|
2006
|
+
var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
|
|
2569
2007
|
"svg",
|
|
2570
2008
|
{
|
|
2571
2009
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2572
2010
|
viewBox: "0 0 48 48",
|
|
2573
2011
|
className: "w-10 h-10",
|
|
2574
2012
|
children: [
|
|
2575
|
-
/* @__PURE__ */
|
|
2013
|
+
/* @__PURE__ */ jsx34(
|
|
2576
2014
|
"path",
|
|
2577
2015
|
{
|
|
2578
2016
|
fill: "#dc4c2c",
|
|
2579
2017
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
2580
2018
|
}
|
|
2581
2019
|
),
|
|
2582
|
-
/* @__PURE__ */
|
|
2583
|
-
/* @__PURE__ */
|
|
2584
|
-
/* @__PURE__ */
|
|
2020
|
+
/* @__PURE__ */ jsx34("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
2021
|
+
/* @__PURE__ */ jsx34("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
2022
|
+
/* @__PURE__ */ jsx34(
|
|
2585
2023
|
"path",
|
|
2586
2024
|
{
|
|
2587
2025
|
fill: "#9b341f",
|
|
2588
2026
|
d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
|
|
2589
2027
|
}
|
|
2590
2028
|
),
|
|
2591
|
-
/* @__PURE__ */
|
|
2029
|
+
/* @__PURE__ */ jsx34(
|
|
2592
2030
|
"path",
|
|
2593
2031
|
{
|
|
2594
2032
|
fill: "#fff",
|
|
@@ -2598,16 +2036,16 @@ var PowerPointIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2598
2036
|
]
|
|
2599
2037
|
}
|
|
2600
2038
|
);
|
|
2601
|
-
var
|
|
2039
|
+
var TextIcon = () => /* @__PURE__ */ jsxs13(
|
|
2602
2040
|
"svg",
|
|
2603
2041
|
{
|
|
2604
2042
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2605
2043
|
viewBox: "0 0 48 48",
|
|
2606
2044
|
className: "w-10 h-10",
|
|
2607
2045
|
children: [
|
|
2608
|
-
/* @__PURE__ */
|
|
2609
|
-
/* @__PURE__ */
|
|
2610
|
-
/* @__PURE__ */
|
|
2046
|
+
/* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2047
|
+
/* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
2048
|
+
/* @__PURE__ */ jsx34(
|
|
2611
2049
|
"path",
|
|
2612
2050
|
{
|
|
2613
2051
|
fill: "#1976D2",
|
|
@@ -2617,7 +2055,7 @@ var TextIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2617
2055
|
]
|
|
2618
2056
|
}
|
|
2619
2057
|
);
|
|
2620
|
-
var
|
|
2058
|
+
var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
2621
2059
|
"svg",
|
|
2622
2060
|
{
|
|
2623
2061
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2627,14 +2065,14 @@ var ArchiveIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2627
2065
|
version: "1.0",
|
|
2628
2066
|
className: "w-10 h-10",
|
|
2629
2067
|
children: [
|
|
2630
|
-
/* @__PURE__ */
|
|
2068
|
+
/* @__PURE__ */ jsx34("defs", { children: /* @__PURE__ */ jsx34("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx34(
|
|
2631
2069
|
"path",
|
|
2632
2070
|
{
|
|
2633
2071
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
2634
2072
|
"clip-rule": "nonzero"
|
|
2635
2073
|
}
|
|
2636
2074
|
) }) }),
|
|
2637
|
-
/* @__PURE__ */
|
|
2075
|
+
/* @__PURE__ */ jsx34("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx34(
|
|
2638
2076
|
"path",
|
|
2639
2077
|
{
|
|
2640
2078
|
fill: "#ff9100",
|
|
@@ -2643,7 +2081,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2643
2081
|
"fill-rule": "nonzero"
|
|
2644
2082
|
}
|
|
2645
2083
|
) }),
|
|
2646
|
-
/* @__PURE__ */
|
|
2084
|
+
/* @__PURE__ */ jsx34(
|
|
2647
2085
|
"path",
|
|
2648
2086
|
{
|
|
2649
2087
|
fill: "#fbe9e7",
|
|
@@ -2652,7 +2090,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2652
2090
|
"fill-rule": "nonzero"
|
|
2653
2091
|
}
|
|
2654
2092
|
),
|
|
2655
|
-
/* @__PURE__ */
|
|
2093
|
+
/* @__PURE__ */ jsx34(
|
|
2656
2094
|
"path",
|
|
2657
2095
|
{
|
|
2658
2096
|
fill: "#ffe0b2",
|
|
@@ -2661,7 +2099,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2661
2099
|
"fill-rule": "nonzero"
|
|
2662
2100
|
}
|
|
2663
2101
|
),
|
|
2664
|
-
/* @__PURE__ */
|
|
2102
|
+
/* @__PURE__ */ jsx34(
|
|
2665
2103
|
"path",
|
|
2666
2104
|
{
|
|
2667
2105
|
fill: "#ffe0b2",
|
|
@@ -2670,7 +2108,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2670
2108
|
"fill-rule": "nonzero"
|
|
2671
2109
|
}
|
|
2672
2110
|
),
|
|
2673
|
-
/* @__PURE__ */
|
|
2111
|
+
/* @__PURE__ */ jsx34(
|
|
2674
2112
|
"path",
|
|
2675
2113
|
{
|
|
2676
2114
|
fill: "#ffe0b2",
|
|
@@ -2682,28 +2120,28 @@ var ArchiveIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
|
2682
2120
|
]
|
|
2683
2121
|
}
|
|
2684
2122
|
);
|
|
2685
|
-
var
|
|
2123
|
+
var getFileDetails = (url) => {
|
|
2686
2124
|
const extMatch = url.match(/\.([a-zA-Z0-9]+)(?:[\?#]|$)/);
|
|
2687
2125
|
const ext = extMatch ? extMatch[1].toLowerCase() : "";
|
|
2688
|
-
let Icon =
|
|
2126
|
+
let Icon = StandardIcon;
|
|
2689
2127
|
let extLabel = "FILE";
|
|
2690
2128
|
if (ext === "pdf") {
|
|
2691
|
-
Icon =
|
|
2129
|
+
Icon = PdfIcon;
|
|
2692
2130
|
extLabel = "PDF";
|
|
2693
2131
|
} else if (["xls", "xlsx", "csv"].includes(ext)) {
|
|
2694
|
-
Icon =
|
|
2132
|
+
Icon = ExcelIcon;
|
|
2695
2133
|
extLabel = "Excel";
|
|
2696
2134
|
} else if (["doc", "docx"].includes(ext)) {
|
|
2697
|
-
Icon =
|
|
2135
|
+
Icon = WordIcon;
|
|
2698
2136
|
extLabel = "Word";
|
|
2699
2137
|
} else if (["ppt", "pptx"].includes(ext)) {
|
|
2700
|
-
Icon =
|
|
2138
|
+
Icon = PowerPointIcon;
|
|
2701
2139
|
extLabel = "PowerPoint";
|
|
2702
2140
|
} else if (["txt", "rtf"].includes(ext)) {
|
|
2703
|
-
Icon =
|
|
2141
|
+
Icon = TextIcon;
|
|
2704
2142
|
extLabel = "Text";
|
|
2705
2143
|
} else if (["zip", "rar", "7z"].includes(ext)) {
|
|
2706
|
-
Icon =
|
|
2144
|
+
Icon = ArchiveIcon;
|
|
2707
2145
|
extLabel = "Archive";
|
|
2708
2146
|
} else if (ext) {
|
|
2709
2147
|
extLabel = ext.toUpperCase();
|
|
@@ -2745,8 +2183,8 @@ var DocumentNode = (props) => {
|
|
|
2745
2183
|
}
|
|
2746
2184
|
}
|
|
2747
2185
|
if (documents.length === 0) {
|
|
2748
|
-
return /* @__PURE__ */
|
|
2749
|
-
/* @__PURE__ */
|
|
2186
|
+
return /* @__PURE__ */ jsx34(Fragment6, { children: /* @__PURE__ */ jsxs13("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2187
|
+
/* @__PURE__ */ jsx34("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx34(
|
|
2750
2188
|
"svg",
|
|
2751
2189
|
{
|
|
2752
2190
|
className: "w-5 h-5",
|
|
@@ -2754,7 +2192,7 @@ var DocumentNode = (props) => {
|
|
|
2754
2192
|
stroke: "currentColor",
|
|
2755
2193
|
viewBox: "0 0 24 24",
|
|
2756
2194
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2757
|
-
children: /* @__PURE__ */
|
|
2195
|
+
children: /* @__PURE__ */ jsx34(
|
|
2758
2196
|
"path",
|
|
2759
2197
|
{
|
|
2760
2198
|
strokeLinecap: "round",
|
|
@@ -2765,11 +2203,11 @@ var DocumentNode = (props) => {
|
|
|
2765
2203
|
)
|
|
2766
2204
|
}
|
|
2767
2205
|
) }),
|
|
2768
|
-
/* @__PURE__ */
|
|
2769
|
-
/* @__PURE__ */
|
|
2206
|
+
/* @__PURE__ */ jsx34("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2207
|
+
/* @__PURE__ */ jsx34("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2770
2208
|
] }) });
|
|
2771
2209
|
}
|
|
2772
|
-
return /* @__PURE__ */
|
|
2210
|
+
return /* @__PURE__ */ jsx34("div", { className: "", children: documents.map((doc, index) => {
|
|
2773
2211
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2774
2212
|
props.assetBaseUrl,
|
|
2775
2213
|
doc.assetUrl
|
|
@@ -2786,17 +2224,17 @@ var DocumentNode = (props) => {
|
|
|
2786
2224
|
documentTitle = documentUrl.split("/").pop()?.replace(/\.[^/.]+$/, "") || "Document";
|
|
2787
2225
|
}
|
|
2788
2226
|
}
|
|
2789
|
-
const { Icon, extLabel } =
|
|
2790
|
-
return /* @__PURE__ */
|
|
2227
|
+
const { Icon, extLabel } = getFileDetails(documentUrl);
|
|
2228
|
+
return /* @__PURE__ */ jsxs13(
|
|
2791
2229
|
"div",
|
|
2792
2230
|
{
|
|
2793
2231
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2794
2232
|
children: [
|
|
2795
|
-
/* @__PURE__ */
|
|
2796
|
-
/* @__PURE__ */
|
|
2797
|
-
/* @__PURE__ */
|
|
2233
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-4", children: [
|
|
2234
|
+
/* @__PURE__ */ jsx34("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx34(Icon, {}) }),
|
|
2235
|
+
/* @__PURE__ */ jsx34("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx34("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2798
2236
|
] }),
|
|
2799
|
-
/* @__PURE__ */
|
|
2237
|
+
/* @__PURE__ */ jsxs13(
|
|
2800
2238
|
"a",
|
|
2801
2239
|
{
|
|
2802
2240
|
href: documentUrl,
|
|
@@ -2804,7 +2242,7 @@ var DocumentNode = (props) => {
|
|
|
2804
2242
|
rel: "noopener noreferrer",
|
|
2805
2243
|
className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors",
|
|
2806
2244
|
children: [
|
|
2807
|
-
/* @__PURE__ */
|
|
2245
|
+
/* @__PURE__ */ jsxs13(
|
|
2808
2246
|
"svg",
|
|
2809
2247
|
{
|
|
2810
2248
|
className: "w-4 h-4 mr-2",
|
|
@@ -2812,7 +2250,7 @@ var DocumentNode = (props) => {
|
|
|
2812
2250
|
stroke: "currentColor",
|
|
2813
2251
|
viewBox: "0 0 24 24",
|
|
2814
2252
|
children: [
|
|
2815
|
-
/* @__PURE__ */
|
|
2253
|
+
/* @__PURE__ */ jsx34(
|
|
2816
2254
|
"path",
|
|
2817
2255
|
{
|
|
2818
2256
|
strokeLinecap: "round",
|
|
@@ -2821,7 +2259,7 @@ var DocumentNode = (props) => {
|
|
|
2821
2259
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2822
2260
|
}
|
|
2823
2261
|
),
|
|
2824
|
-
/* @__PURE__ */
|
|
2262
|
+
/* @__PURE__ */ jsx34(
|
|
2825
2263
|
"path",
|
|
2826
2264
|
{
|
|
2827
2265
|
strokeLinecap: "round",
|
|
@@ -2846,14 +2284,14 @@ var DocumentNode = (props) => {
|
|
|
2846
2284
|
var DocumentNode_default = DocumentNode;
|
|
2847
2285
|
|
|
2848
2286
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2849
|
-
import
|
|
2850
|
-
import { jsx as
|
|
2851
|
-
var IframeClient2 =
|
|
2287
|
+
import dynamic11 from "next/dynamic";
|
|
2288
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2289
|
+
var IframeClient2 = dynamic11(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
2852
2290
|
ssr: false
|
|
2853
2291
|
});
|
|
2854
2292
|
var GoogleMapNode = (props) => {
|
|
2855
2293
|
let src = props.node.embedUrl;
|
|
2856
|
-
return /* @__PURE__ */
|
|
2294
|
+
return /* @__PURE__ */ jsx35("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx35(
|
|
2857
2295
|
IframeClient2,
|
|
2858
2296
|
{
|
|
2859
2297
|
src,
|
|
@@ -2865,12 +2303,12 @@ var GoogleMapNode = (props) => {
|
|
|
2865
2303
|
var GoogleMapNode_default = GoogleMapNode;
|
|
2866
2304
|
|
|
2867
2305
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2868
|
-
import { jsx as
|
|
2869
|
-
var Pagination =
|
|
2870
|
-
var DataBindingControls =
|
|
2306
|
+
import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2307
|
+
var Pagination = dynamic12(() => import("./Pagination-QBPYDD66.mjs"), { ssr: true });
|
|
2308
|
+
var DataBindingControls = dynamic12(() => import("./DataBindingControls-Y4JXUDZV.mjs"), {
|
|
2871
2309
|
ssr: true
|
|
2872
2310
|
});
|
|
2873
|
-
var Slider =
|
|
2311
|
+
var Slider = dynamic12(() => import("./Slider-PEIVH6A5.mjs"), {
|
|
2874
2312
|
ssr: false
|
|
2875
2313
|
});
|
|
2876
2314
|
function toCamelCase(str) {
|
|
@@ -3124,7 +2562,7 @@ var DivContainer = async (props) => {
|
|
|
3124
2562
|
response = await serviceClient.get(endpoint);
|
|
3125
2563
|
result = response?.result;
|
|
3126
2564
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
3127
|
-
return /* @__PURE__ */
|
|
2565
|
+
return /* @__PURE__ */ jsx36(NoDataFound_default, {});
|
|
3128
2566
|
}
|
|
3129
2567
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
3130
2568
|
childCollectionData = getNestedValue6(
|
|
@@ -3144,7 +2582,7 @@ var DivContainer = async (props) => {
|
|
|
3144
2582
|
}
|
|
3145
2583
|
const SelectedNode = NodeTypes2[node.type];
|
|
3146
2584
|
if (!SelectedNode) return null;
|
|
3147
|
-
return /* @__PURE__ */
|
|
2585
|
+
return /* @__PURE__ */ jsx36(React23.Fragment, { children: /* @__PURE__ */ jsx36(
|
|
3148
2586
|
SelectedNode,
|
|
3149
2587
|
{
|
|
3150
2588
|
node,
|
|
@@ -3164,7 +2602,7 @@ var DivContainer = async (props) => {
|
|
|
3164
2602
|
}
|
|
3165
2603
|
) }, key);
|
|
3166
2604
|
}
|
|
3167
|
-
function
|
|
2605
|
+
function renderChildren(nodes, props2, data, key, href) {
|
|
3168
2606
|
if (!nodes) return null;
|
|
3169
2607
|
const childNodes = nodes.map((node, index) => {
|
|
3170
2608
|
if (
|
|
@@ -3281,7 +2719,7 @@ var DivContainer = async (props) => {
|
|
|
3281
2719
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
3282
2720
|
);
|
|
3283
2721
|
const WrapperComponent = Wrapper;
|
|
3284
|
-
const renderedContainer = /* @__PURE__ */
|
|
2722
|
+
const renderedContainer = /* @__PURE__ */ jsx36(
|
|
3285
2723
|
WrapperComponent,
|
|
3286
2724
|
{
|
|
3287
2725
|
id: guid,
|
|
@@ -3289,17 +2727,17 @@ var DivContainer = async (props) => {
|
|
|
3289
2727
|
className: classNames || void 0,
|
|
3290
2728
|
...wrapperProps,
|
|
3291
2729
|
children: dataToRender.map(
|
|
3292
|
-
(item, idx) => item?.links?.view && renderLink ?
|
|
2730
|
+
(item, idx) => item?.links?.view && renderLink ? renderChildren(
|
|
3293
2731
|
props.node.children,
|
|
3294
2732
|
props,
|
|
3295
2733
|
item,
|
|
3296
2734
|
idx,
|
|
3297
2735
|
props.href ? void 0 : item?.links?.view
|
|
3298
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2736
|
+
)?.map((child, i) => /* @__PURE__ */ jsx36(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
3299
2737
|
)
|
|
3300
2738
|
}
|
|
3301
2739
|
);
|
|
3302
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */
|
|
2740
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx36(
|
|
3303
2741
|
Pagination,
|
|
3304
2742
|
{
|
|
3305
2743
|
path: props.path,
|
|
@@ -3307,15 +2745,15 @@ var DivContainer = async (props) => {
|
|
|
3307
2745
|
dataset: response
|
|
3308
2746
|
}
|
|
3309
2747
|
) : null;
|
|
3310
|
-
return /* @__PURE__ */
|
|
3311
|
-
/* @__PURE__ */
|
|
2748
|
+
return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2749
|
+
/* @__PURE__ */ jsx36(
|
|
3312
2750
|
"style",
|
|
3313
2751
|
{
|
|
3314
2752
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
3315
2753
|
}
|
|
3316
2754
|
),
|
|
3317
|
-
showDataBindingControls ? /* @__PURE__ */
|
|
3318
|
-
/* @__PURE__ */
|
|
2755
|
+
showDataBindingControls ? /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2756
|
+
/* @__PURE__ */ jsx36(
|
|
3319
2757
|
DataBindingControls,
|
|
3320
2758
|
{
|
|
3321
2759
|
mode: "toolbar",
|
|
@@ -3327,18 +2765,18 @@ var DivContainer = async (props) => {
|
|
|
3327
2765
|
showSearchBar: dataBindingProperties?.showSearchBar
|
|
3328
2766
|
}
|
|
3329
2767
|
),
|
|
3330
|
-
/* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ jsxs14(
|
|
3331
2769
|
"div",
|
|
3332
2770
|
{
|
|
3333
2771
|
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
3334
2772
|
children: [
|
|
3335
|
-
/* @__PURE__ */
|
|
2773
|
+
/* @__PURE__ */ jsxs14("div", { className: "min-w-0", children: [
|
|
3336
2774
|
renderedContainer,
|
|
3337
2775
|
paginationControl
|
|
3338
2776
|
] }),
|
|
3339
|
-
dataBindingProperties?.showFacets && /* @__PURE__ */
|
|
3340
|
-
/* @__PURE__ */
|
|
3341
|
-
/* @__PURE__ */
|
|
2777
|
+
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs14("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
2778
|
+
/* @__PURE__ */ jsx36("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
2779
|
+
/* @__PURE__ */ jsx36(
|
|
3342
2780
|
DataBindingControls,
|
|
3343
2781
|
{
|
|
3344
2782
|
mode: "facets",
|
|
@@ -3352,16 +2790,16 @@ var DivContainer = async (props) => {
|
|
|
3352
2790
|
]
|
|
3353
2791
|
}
|
|
3354
2792
|
)
|
|
3355
|
-
] }) : /* @__PURE__ */
|
|
2793
|
+
] }) : /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
3356
2794
|
renderedContainer,
|
|
3357
|
-
paginationControl && /* @__PURE__ */
|
|
2795
|
+
paginationControl && /* @__PURE__ */ jsx36("div", { children: paginationControl })
|
|
3358
2796
|
] })
|
|
3359
2797
|
] });
|
|
3360
2798
|
};
|
|
3361
2799
|
var DivContainer_default = DivContainer;
|
|
3362
2800
|
|
|
3363
2801
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
3364
|
-
import { jsx as
|
|
2802
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3365
2803
|
var NodeTypes = {
|
|
3366
2804
|
["paragraph"]: ParagraphNode_default,
|
|
3367
2805
|
["heading"]: HeadingNode_default,
|
|
@@ -3399,14 +2837,14 @@ var PageBodyRenderer = (props) => {
|
|
|
3399
2837
|
}
|
|
3400
2838
|
return true;
|
|
3401
2839
|
};
|
|
3402
|
-
return /* @__PURE__ */
|
|
2840
|
+
return /* @__PURE__ */ jsx37(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
3403
2841
|
{
|
|
3404
2842
|
}
|
|
3405
2843
|
const SelectedNode = NodeTypes[node.type];
|
|
3406
2844
|
if (!shouldRenderNode(node)) {
|
|
3407
2845
|
return null;
|
|
3408
2846
|
}
|
|
3409
|
-
return /* @__PURE__ */
|
|
2847
|
+
return /* @__PURE__ */ jsx37(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
3410
2848
|
SelectedNode,
|
|
3411
2849
|
{
|
|
3412
2850
|
node,
|
|
@@ -3422,7 +2860,7 @@ var PageBodyRenderer = (props) => {
|
|
|
3422
2860
|
device: props.device,
|
|
3423
2861
|
widgetRenderer: props.widgetRenderer
|
|
3424
2862
|
}
|
|
3425
|
-
) }) : /* @__PURE__ */
|
|
2863
|
+
) }) : /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
3426
2864
|
SelectedNode,
|
|
3427
2865
|
{
|
|
3428
2866
|
node,
|