@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260827034013 → 0.8.1-dev.20260827091356
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 +1162 -714
- package/dist/index.mjs +804 -360
- package/dist/server.js +945 -497
- package/dist/server.mjs +621 -177
- package/package.json +1 -1
package/dist/server.mjs
CHANGED
|
@@ -783,23 +783,450 @@ var parseSerializedContent = (raw) => {
|
|
|
783
783
|
|
|
784
784
|
// src/components/controls/view/CommentNodeRenderer.tsx
|
|
785
785
|
import React15 from "react";
|
|
786
|
-
|
|
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";
|
|
787
1207
|
var TextLeafNode = ({ node }) => {
|
|
788
1208
|
let content = node.text;
|
|
789
|
-
if (node.code) content = /* @__PURE__ */
|
|
790
|
-
if (node.bold) content = /* @__PURE__ */
|
|
791
|
-
if (node.italic) content = /* @__PURE__ */
|
|
792
|
-
if (node.underline) content = /* @__PURE__ */
|
|
793
|
-
if (node.strikethrough) content = /* @__PURE__ */
|
|
794
|
-
return /* @__PURE__ */
|
|
795
|
-
};
|
|
796
|
-
var renderChildren = (children, keyPrefix) => {
|
|
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) => {
|
|
797
1217
|
if (!children || children.length === 0) {
|
|
798
1218
|
return null;
|
|
799
1219
|
}
|
|
800
1220
|
return children.map((child, index) => {
|
|
801
1221
|
const childKey = isTextNode(child) ? void 0 : asElementNode(child).id;
|
|
802
|
-
return /* @__PURE__ */
|
|
1222
|
+
return /* @__PURE__ */ jsx24(
|
|
1223
|
+
CommentNodeRenderer,
|
|
1224
|
+
{
|
|
1225
|
+
node: child,
|
|
1226
|
+
assetBaseUrl
|
|
1227
|
+
},
|
|
1228
|
+
childKey ?? `${keyPrefix}-${index}`
|
|
1229
|
+
);
|
|
803
1230
|
});
|
|
804
1231
|
};
|
|
805
1232
|
var headingLevelFromTag = (tag) => {
|
|
@@ -807,70 +1234,83 @@ var headingLevelFromTag = (tag) => {
|
|
|
807
1234
|
const parsed = match ? Number(match[0]) : Number(tag);
|
|
808
1235
|
return Number.isFinite(parsed) && parsed >= 1 && parsed <= 6 ? parsed : 3;
|
|
809
1236
|
};
|
|
810
|
-
var CommentNodeRenderer = ({ node }) => {
|
|
1237
|
+
var CommentNodeRenderer = ({ node, assetBaseUrl }) => {
|
|
811
1238
|
if (!node || typeof node !== "object") {
|
|
812
1239
|
return null;
|
|
813
1240
|
}
|
|
814
1241
|
if (isTextNode(node)) {
|
|
815
|
-
return /* @__PURE__ */
|
|
1242
|
+
return /* @__PURE__ */ jsx24(TextLeafNode, { node });
|
|
816
1243
|
}
|
|
817
1244
|
const element = asElementNode(node);
|
|
818
1245
|
const key = element.id ?? element.type;
|
|
819
1246
|
switch (element.type) {
|
|
820
1247
|
case "paragraph":
|
|
821
|
-
return /* @__PURE__ */
|
|
1248
|
+
return /* @__PURE__ */ jsx24("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key, assetBaseUrl) ?? /* @__PURE__ */ jsx24("br", {}) });
|
|
822
1249
|
case "heading": {
|
|
823
1250
|
const level = headingLevelFromTag(element.tag ?? element.level);
|
|
824
1251
|
const HeadingTag = `h${level}`;
|
|
825
|
-
return /* @__PURE__ */
|
|
1252
|
+
return /* @__PURE__ */ jsx24(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
826
1253
|
}
|
|
827
1254
|
case "list": {
|
|
828
1255
|
const ordered = element.listType === "number" || element.ordered === true;
|
|
829
1256
|
const ListTag = ordered ? "ol" : "ul";
|
|
830
|
-
return /* @__PURE__ */
|
|
1257
|
+
return /* @__PURE__ */ jsx24(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
831
1258
|
}
|
|
832
1259
|
case "listitem":
|
|
833
1260
|
case "list-item":
|
|
834
|
-
return /* @__PURE__ */
|
|
1261
|
+
return /* @__PURE__ */ jsx24("li", { className: "comment-node-listitem", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
835
1262
|
case "quote":
|
|
836
1263
|
case "blockquote":
|
|
837
|
-
return /* @__PURE__ */
|
|
1264
|
+
return /* @__PURE__ */ jsx24("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
838
1265
|
case "code":
|
|
839
1266
|
case "code-block":
|
|
840
|
-
return /* @__PURE__ */
|
|
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 });
|
|
841
1272
|
case "link": {
|
|
842
1273
|
const url = typeof element.url === "string" ? element.url : "#";
|
|
843
|
-
return /* @__PURE__ */
|
|
1274
|
+
return /* @__PURE__ */ jsx24("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
844
1275
|
}
|
|
845
1276
|
case "mention": {
|
|
846
1277
|
const label = element.label ?? element.mentionName ?? element.text ?? "";
|
|
847
|
-
return /* @__PURE__ */
|
|
1278
|
+
return /* @__PURE__ */ jsxs10("span", { className: "comment-node-mention", children: [
|
|
848
1279
|
"@",
|
|
849
1280
|
label
|
|
850
1281
|
] });
|
|
851
1282
|
}
|
|
852
1283
|
case "linebreak":
|
|
853
1284
|
case "line-break":
|
|
854
|
-
return /* @__PURE__ */
|
|
1285
|
+
return /* @__PURE__ */ jsx24("br", {});
|
|
855
1286
|
default:
|
|
856
|
-
return /* @__PURE__ */
|
|
1287
|
+
return /* @__PURE__ */ jsx24(React15.Fragment, { children: renderChildren(element.children, key, assetBaseUrl) });
|
|
857
1288
|
}
|
|
858
1289
|
};
|
|
859
1290
|
var CommentNodeRenderer_default = CommentNodeRenderer;
|
|
860
1291
|
|
|
861
1292
|
// src/components/controls/view/Commentrenderer.tsx
|
|
862
|
-
import { jsx as
|
|
863
|
-
var CommentRenderer = ({ value, className }) => {
|
|
1293
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1294
|
+
var CommentRenderer = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
|
|
864
1295
|
const nodes = React16.useMemo(() => parseSerializedContent(value), [value]);
|
|
865
1296
|
if (!nodes || nodes.length === 0) {
|
|
866
1297
|
return null;
|
|
867
1298
|
}
|
|
868
|
-
|
|
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
|
+
)) });
|
|
869
1309
|
};
|
|
870
1310
|
var Commentrenderer_default = CommentRenderer;
|
|
871
1311
|
|
|
872
1312
|
// src/components/controls/view/ViewControl.tsx
|
|
873
|
-
import { jsx as
|
|
1313
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
874
1314
|
var ViewControl = (props) => {
|
|
875
1315
|
const ControlComponents = {
|
|
876
1316
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -901,12 +1341,12 @@ var ViewControl = (props) => {
|
|
|
901
1341
|
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default
|
|
902
1342
|
};
|
|
903
1343
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
904
|
-
return /* @__PURE__ */
|
|
1344
|
+
return /* @__PURE__ */ jsx26(React17.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx26(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
905
1345
|
};
|
|
906
1346
|
var ViewControl_default = ViewControl;
|
|
907
1347
|
|
|
908
1348
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
909
|
-
import { jsx as
|
|
1349
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
910
1350
|
function getNestedProperty(obj, path) {
|
|
911
1351
|
if (!obj || !path) return null;
|
|
912
1352
|
if (path.includes(".")) {
|
|
@@ -919,7 +1359,7 @@ function getNestedProperty(obj, path) {
|
|
|
919
1359
|
}
|
|
920
1360
|
const value = obj[path];
|
|
921
1361
|
if (Array.isArray(value)) {
|
|
922
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
1362
|
+
return value.map((item, index) => /* @__PURE__ */ jsx27("div", { children: String(item) }, index));
|
|
923
1363
|
}
|
|
924
1364
|
return value;
|
|
925
1365
|
}
|
|
@@ -982,7 +1422,7 @@ var DatafieldNode = (props) => {
|
|
|
982
1422
|
const dataType = props.node.dataType;
|
|
983
1423
|
if (isEmptyValue) return null;
|
|
984
1424
|
if (dataType === "rawContent") {
|
|
985
|
-
return /* @__PURE__ */
|
|
1425
|
+
return /* @__PURE__ */ jsx27(
|
|
986
1426
|
PageBodyRenderer_default,
|
|
987
1427
|
{
|
|
988
1428
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -998,17 +1438,19 @@ var DatafieldNode = (props) => {
|
|
|
998
1438
|
}
|
|
999
1439
|
);
|
|
1000
1440
|
}
|
|
1001
|
-
return /* @__PURE__ */
|
|
1441
|
+
return /* @__PURE__ */ jsx27(
|
|
1002
1442
|
"span",
|
|
1003
1443
|
{
|
|
1004
1444
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
1005
1445
|
style: styles,
|
|
1006
1446
|
title,
|
|
1007
|
-
children: /* @__PURE__ */
|
|
1447
|
+
children: /* @__PURE__ */ jsx27(
|
|
1008
1448
|
ViewControl_default,
|
|
1009
1449
|
{
|
|
1010
1450
|
controlType: dataType,
|
|
1011
|
-
value: value ?? `@databound[${fieldName}]
|
|
1451
|
+
value: value ?? `@databound[${fieldName}]`,
|
|
1452
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
1453
|
+
assetBaseUrl: props.assetBaseUrl
|
|
1012
1454
|
}
|
|
1013
1455
|
)
|
|
1014
1456
|
}
|
|
@@ -1017,7 +1459,7 @@ var DatafieldNode = (props) => {
|
|
|
1017
1459
|
var DatafieldNode_default = DatafieldNode;
|
|
1018
1460
|
|
|
1019
1461
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
1020
|
-
import { Fragment as Fragment2, jsx as
|
|
1462
|
+
import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1021
1463
|
var ParagraphNode = (props) => {
|
|
1022
1464
|
const NodeTypes2 = {
|
|
1023
1465
|
["text"]: TextNode_default,
|
|
@@ -1037,42 +1479,44 @@ var ParagraphNode = (props) => {
|
|
|
1037
1479
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
1038
1480
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
1039
1481
|
if (isInlineOnlyParent) {
|
|
1040
|
-
return /* @__PURE__ */
|
|
1482
|
+
return /* @__PURE__ */ jsx28(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
1041
1483
|
const SelectedNode = NodeTypes2[node.type];
|
|
1042
|
-
return /* @__PURE__ */
|
|
1484
|
+
return /* @__PURE__ */ jsx28(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
|
|
1043
1485
|
SelectedNode,
|
|
1044
1486
|
{
|
|
1045
1487
|
node,
|
|
1046
1488
|
dataitem: props.dataitem,
|
|
1047
1489
|
session: props.session,
|
|
1048
1490
|
apiBaseUrl: props.apiBaseUrl,
|
|
1491
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
1049
1492
|
routeParameters: props.routeParameters
|
|
1050
1493
|
}
|
|
1051
1494
|
) }, index);
|
|
1052
1495
|
}) });
|
|
1053
1496
|
}
|
|
1054
|
-
return /* @__PURE__ */
|
|
1497
|
+
return /* @__PURE__ */ jsxs11("div", { className: " " + formatClasses, children: [
|
|
1055
1498
|
hasChildren && props.node.children.map((node, index) => {
|
|
1056
1499
|
const SelectedNode = NodeTypes2[node.type];
|
|
1057
|
-
return /* @__PURE__ */
|
|
1500
|
+
return /* @__PURE__ */ jsx28(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
|
|
1058
1501
|
SelectedNode,
|
|
1059
1502
|
{
|
|
1060
1503
|
node,
|
|
1061
1504
|
dataitem: props.dataitem,
|
|
1062
1505
|
session: props.session,
|
|
1063
1506
|
apiBaseUrl: props.apiBaseUrl,
|
|
1507
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
1064
1508
|
routeParameters: props.routeParameters
|
|
1065
1509
|
}
|
|
1066
1510
|
) }, index);
|
|
1067
1511
|
}),
|
|
1068
|
-
!hasChildren && /* @__PURE__ */
|
|
1512
|
+
!hasChildren && /* @__PURE__ */ jsx28("div", { className: "py-1.5 lg:py-2" })
|
|
1069
1513
|
] });
|
|
1070
1514
|
};
|
|
1071
1515
|
var ParagraphNode_default = ParagraphNode;
|
|
1072
1516
|
|
|
1073
1517
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
1074
1518
|
import React19 from "react";
|
|
1075
|
-
import { Fragment as Fragment3, jsx as
|
|
1519
|
+
import { Fragment as Fragment3, jsx as jsx29 } from "react/jsx-runtime";
|
|
1076
1520
|
var HeadingNode = (props) => {
|
|
1077
1521
|
const NodeTypes2 = {
|
|
1078
1522
|
["text"]: TextNode_default,
|
|
@@ -1088,12 +1532,12 @@ var HeadingNode = (props) => {
|
|
|
1088
1532
|
{
|
|
1089
1533
|
}
|
|
1090
1534
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
1091
|
-
return /* @__PURE__ */
|
|
1535
|
+
return /* @__PURE__ */ jsx29(Fragment3, { children: React19.createElement(
|
|
1092
1536
|
HeadingTag,
|
|
1093
1537
|
{ className: formatClasses },
|
|
1094
1538
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
1095
1539
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
1096
|
-
return /* @__PURE__ */
|
|
1540
|
+
return /* @__PURE__ */ jsx29(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1097
1541
|
})
|
|
1098
1542
|
) });
|
|
1099
1543
|
};
|
|
@@ -1104,7 +1548,7 @@ import React21 from "react";
|
|
|
1104
1548
|
|
|
1105
1549
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
1106
1550
|
import React20 from "react";
|
|
1107
|
-
import { jsx as
|
|
1551
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1108
1552
|
var ListItemNode = (props) => {
|
|
1109
1553
|
const NodeTypes2 = {
|
|
1110
1554
|
text: TextNode_default,
|
|
@@ -1121,37 +1565,37 @@ var ListItemNode = (props) => {
|
|
|
1121
1565
|
liStyle.fontSize = match[1].trim();
|
|
1122
1566
|
}
|
|
1123
1567
|
}
|
|
1124
|
-
return /* @__PURE__ */
|
|
1568
|
+
return /* @__PURE__ */ jsx30("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
1125
1569
|
const SelectedNode = NodeTypes2[node.type];
|
|
1126
1570
|
if (node.type === "linebreak") {
|
|
1127
1571
|
if (!foundFirstBreak) {
|
|
1128
1572
|
foundFirstBreak = true;
|
|
1129
|
-
return /* @__PURE__ */
|
|
1573
|
+
return /* @__PURE__ */ jsx30("div", {}, index);
|
|
1130
1574
|
} else {
|
|
1131
|
-
return /* @__PURE__ */
|
|
1575
|
+
return /* @__PURE__ */ jsx30("div", { className: "py-1 lg:py-2" }, index);
|
|
1132
1576
|
}
|
|
1133
1577
|
} else {
|
|
1134
1578
|
foundFirstBreak = false;
|
|
1135
|
-
return /* @__PURE__ */
|
|
1579
|
+
return /* @__PURE__ */ jsx30(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx30(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1136
1580
|
}
|
|
1137
1581
|
}) });
|
|
1138
1582
|
};
|
|
1139
1583
|
var ListItemNode_default = ListItemNode;
|
|
1140
1584
|
|
|
1141
1585
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1142
|
-
import { jsx as
|
|
1586
|
+
import { jsx as jsx31, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1143
1587
|
var ListNode = (props) => {
|
|
1144
1588
|
const NodeTypes2 = {
|
|
1145
1589
|
listitem: ListItemNode_default
|
|
1146
1590
|
};
|
|
1147
|
-
return /* @__PURE__ */
|
|
1148
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1591
|
+
return /* @__PURE__ */ jsxs12(React21.Fragment, { children: [
|
|
1592
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx31("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1149
1593
|
const SelectedNode = NodeTypes2[node.type];
|
|
1150
|
-
return /* @__PURE__ */
|
|
1594
|
+
return /* @__PURE__ */ jsx31(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx31(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1151
1595
|
}) }),
|
|
1152
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1596
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx31("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1153
1597
|
const SelectedNode = NodeTypes2[node.type];
|
|
1154
|
-
return /* @__PURE__ */
|
|
1598
|
+
return /* @__PURE__ */ jsx31(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx31(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1155
1599
|
}) })
|
|
1156
1600
|
] });
|
|
1157
1601
|
};
|
|
@@ -1159,16 +1603,16 @@ var ListNode_default = ListNode;
|
|
|
1159
1603
|
|
|
1160
1604
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
1161
1605
|
import React22 from "react";
|
|
1162
|
-
import { jsx as
|
|
1606
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1163
1607
|
var QuoteNode = (props) => {
|
|
1164
1608
|
const NodeTypes2 = {
|
|
1165
1609
|
["text"]: TextNode_default,
|
|
1166
1610
|
["linebreak"]: LineBreakNode_default,
|
|
1167
1611
|
["link"]: LinkNode_default
|
|
1168
1612
|
};
|
|
1169
|
-
return /* @__PURE__ */
|
|
1613
|
+
return /* @__PURE__ */ jsx32("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1170
1614
|
const SelectedNode = NodeTypes2[node.type];
|
|
1171
|
-
return /* @__PURE__ */
|
|
1615
|
+
return /* @__PURE__ */ jsx32(React22.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx32(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1172
1616
|
}) });
|
|
1173
1617
|
};
|
|
1174
1618
|
var QuoteNode_default = QuoteNode;
|
|
@@ -1176,11 +1620,11 @@ var QuoteNode_default = QuoteNode;
|
|
|
1176
1620
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1177
1621
|
import React23 from "react";
|
|
1178
1622
|
import dynamic7 from "next/dynamic";
|
|
1179
|
-
import { jsx as
|
|
1623
|
+
import { jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1180
1624
|
var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
1181
1625
|
ssr: false,
|
|
1182
1626
|
// optional: fallback UI while loading
|
|
1183
|
-
loading: () => /* @__PURE__ */
|
|
1627
|
+
loading: () => /* @__PURE__ */ jsx33("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1184
1628
|
});
|
|
1185
1629
|
var CodeNode = (props) => {
|
|
1186
1630
|
const NodeTypes2 = {
|
|
@@ -1194,14 +1638,14 @@ var CodeNode = (props) => {
|
|
|
1194
1638
|
if (node.type === "link") return node.text || node.url || "";
|
|
1195
1639
|
return "";
|
|
1196
1640
|
}).join("") ?? "";
|
|
1197
|
-
return /* @__PURE__ */
|
|
1198
|
-
/* @__PURE__ */
|
|
1199
|
-
/* @__PURE__ */
|
|
1200
|
-
/* @__PURE__ */
|
|
1641
|
+
return /* @__PURE__ */ jsxs13("div", { children: [
|
|
1642
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
1643
|
+
/* @__PURE__ */ jsx33("span", { children: "Code Snippet" }),
|
|
1644
|
+
/* @__PURE__ */ jsx33(CopyButton, { text: textContent })
|
|
1201
1645
|
] }),
|
|
1202
|
-
/* @__PURE__ */
|
|
1646
|
+
/* @__PURE__ */ jsx33("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) => {
|
|
1203
1647
|
const SelectedNode = NodeTypes2[node.type];
|
|
1204
|
-
return /* @__PURE__ */
|
|
1648
|
+
return /* @__PURE__ */ jsx33(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx33(
|
|
1205
1649
|
SelectedNode,
|
|
1206
1650
|
{
|
|
1207
1651
|
node,
|
|
@@ -1216,15 +1660,15 @@ var CodeNode = (props) => {
|
|
|
1216
1660
|
var CodeNode_default = CodeNode;
|
|
1217
1661
|
|
|
1218
1662
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1219
|
-
import { jsx as
|
|
1663
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1220
1664
|
var HorizontalRuleNode = () => {
|
|
1221
|
-
return /* @__PURE__ */
|
|
1665
|
+
return /* @__PURE__ */ jsx34("hr", {});
|
|
1222
1666
|
};
|
|
1223
1667
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1224
1668
|
|
|
1225
1669
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1226
1670
|
import React24 from "react";
|
|
1227
|
-
import { Fragment as Fragment4, jsx as
|
|
1671
|
+
import { Fragment as Fragment4, jsx as jsx35 } from "react/jsx-runtime";
|
|
1228
1672
|
var WidgetNode = (props) => {
|
|
1229
1673
|
const getWidgetParameters = () => {
|
|
1230
1674
|
const widgetInputParameters = {
|
|
@@ -1288,7 +1732,7 @@ var WidgetNode = (props) => {
|
|
|
1288
1732
|
};
|
|
1289
1733
|
const widgetCode = props.node?.widgetCode;
|
|
1290
1734
|
if (!widgetCode) {
|
|
1291
|
-
return /* @__PURE__ */
|
|
1735
|
+
return /* @__PURE__ */ jsx35(Fragment4, { children: "Invalid widget" });
|
|
1292
1736
|
}
|
|
1293
1737
|
const widgetParams = getWidgetParameters();
|
|
1294
1738
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1297,7 +1741,7 @@ var WidgetNode = (props) => {
|
|
|
1297
1741
|
}
|
|
1298
1742
|
return (
|
|
1299
1743
|
// eslint-disable-next-line react-hooks/static-components
|
|
1300
|
-
/* @__PURE__ */
|
|
1744
|
+
/* @__PURE__ */ jsx35(React24.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
1301
1745
|
WidgetRenderer,
|
|
1302
1746
|
{
|
|
1303
1747
|
params: widgetParams,
|
|
@@ -1319,7 +1763,7 @@ import React25 from "react";
|
|
|
1319
1763
|
|
|
1320
1764
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1321
1765
|
import dynamic8 from "next/dynamic";
|
|
1322
|
-
import { jsx as
|
|
1766
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1323
1767
|
var IframeClient = dynamic8(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
1324
1768
|
ssr: false
|
|
1325
1769
|
});
|
|
@@ -1332,7 +1776,7 @@ var EmbedNode = (props) => {
|
|
|
1332
1776
|
} else {
|
|
1333
1777
|
src = props.node.embedSrc;
|
|
1334
1778
|
}
|
|
1335
|
-
return /* @__PURE__ */
|
|
1779
|
+
return /* @__PURE__ */ jsx36("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx36(IframeClient, { src }) });
|
|
1336
1780
|
};
|
|
1337
1781
|
var EmbedNode_default = EmbedNode;
|
|
1338
1782
|
|
|
@@ -1525,10 +1969,10 @@ var PathUtility = class {
|
|
|
1525
1969
|
var PathUtility_default = new PathUtility();
|
|
1526
1970
|
|
|
1527
1971
|
// src/components/NoDataFound.tsx
|
|
1528
|
-
import { jsx as
|
|
1972
|
+
import { jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1529
1973
|
var NoDataFound = () => {
|
|
1530
|
-
return /* @__PURE__ */
|
|
1531
|
-
/* @__PURE__ */
|
|
1974
|
+
return /* @__PURE__ */ jsxs14("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1975
|
+
/* @__PURE__ */ jsx37("div", { className: "mb-5", children: /* @__PURE__ */ jsx37("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx37(
|
|
1532
1976
|
"svg",
|
|
1533
1977
|
{
|
|
1534
1978
|
className: "w-10 h-10",
|
|
@@ -1536,7 +1980,7 @@ var NoDataFound = () => {
|
|
|
1536
1980
|
stroke: "currentColor",
|
|
1537
1981
|
viewBox: "0 0 24 24",
|
|
1538
1982
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1539
|
-
children: /* @__PURE__ */
|
|
1983
|
+
children: /* @__PURE__ */ jsx37(
|
|
1540
1984
|
"path",
|
|
1541
1985
|
{
|
|
1542
1986
|
strokeLinecap: "round",
|
|
@@ -1547,15 +1991,15 @@ var NoDataFound = () => {
|
|
|
1547
1991
|
)
|
|
1548
1992
|
}
|
|
1549
1993
|
) }) }),
|
|
1550
|
-
/* @__PURE__ */
|
|
1551
|
-
/* @__PURE__ */
|
|
1994
|
+
/* @__PURE__ */ jsx37("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1995
|
+
/* @__PURE__ */ jsx37("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1552
1996
|
] });
|
|
1553
1997
|
};
|
|
1554
1998
|
var NoDataFound_default = NoDataFound;
|
|
1555
1999
|
|
|
1556
2000
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1557
2001
|
import dynamic9 from "next/dynamic";
|
|
1558
|
-
import { Fragment as Fragment5, jsx as
|
|
2002
|
+
import { Fragment as Fragment5, jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1559
2003
|
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-BVS6BVF7.mjs"), { ssr: false });
|
|
1560
2004
|
var deviceToMediaQuery = (device) => {
|
|
1561
2005
|
switch (device) {
|
|
@@ -1711,8 +2155,8 @@ var ImageGalleryNode = (props) => {
|
|
|
1711
2155
|
right: "justify-end"
|
|
1712
2156
|
};
|
|
1713
2157
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1714
|
-
return /* @__PURE__ */
|
|
1715
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
2158
|
+
return /* @__PURE__ */ jsxs15(Fragment5, { children: [
|
|
2159
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx38(Fragment5, { children: /* @__PURE__ */ jsx38(
|
|
1716
2160
|
HlsPlayer3,
|
|
1717
2161
|
{
|
|
1718
2162
|
sources: hlsSources,
|
|
@@ -1727,7 +2171,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1727
2171
|
styles: hlsStyles
|
|
1728
2172
|
}
|
|
1729
2173
|
) }),
|
|
1730
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
2174
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx38(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs15("picture", { children: [
|
|
1731
2175
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1732
2176
|
const match = staticSources.find(
|
|
1733
2177
|
(img) => img.device === deviceKey
|
|
@@ -1743,7 +2187,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1743
2187
|
if (!srcUrl) {
|
|
1744
2188
|
return null;
|
|
1745
2189
|
}
|
|
1746
|
-
return /* @__PURE__ */
|
|
2190
|
+
return /* @__PURE__ */ jsx38(
|
|
1747
2191
|
"source",
|
|
1748
2192
|
{
|
|
1749
2193
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1768,7 +2212,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1768
2212
|
if (img.borderRadius) {
|
|
1769
2213
|
styles.borderRadius = img.borderRadius;
|
|
1770
2214
|
}
|
|
1771
|
-
return /* @__PURE__ */
|
|
2215
|
+
return /* @__PURE__ */ jsx38(
|
|
1772
2216
|
"img",
|
|
1773
2217
|
{
|
|
1774
2218
|
loading: "lazy",
|
|
@@ -1783,7 +2227,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1783
2227
|
})()
|
|
1784
2228
|
] }) : (
|
|
1785
2229
|
/* Case 2: Only device-specific images exist */
|
|
1786
|
-
/* @__PURE__ */
|
|
2230
|
+
/* @__PURE__ */ jsx38(Fragment5, { children: staticSources.map((img, index) => {
|
|
1787
2231
|
const resolved = resolveImage(img);
|
|
1788
2232
|
const imageUrl = resolved?.imageUrl;
|
|
1789
2233
|
if (!imageUrl) {
|
|
@@ -1810,7 +2254,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1810
2254
|
default:
|
|
1811
2255
|
display = "block";
|
|
1812
2256
|
}
|
|
1813
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsx38(
|
|
1814
2258
|
"img",
|
|
1815
2259
|
{
|
|
1816
2260
|
loading: "lazy",
|
|
@@ -1950,28 +2394,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1950
2394
|
};
|
|
1951
2395
|
|
|
1952
2396
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1953
|
-
import { Fragment as Fragment6, jsx as
|
|
2397
|
+
import { Fragment as Fragment6, jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1954
2398
|
var getNestedValue5 = (obj, path) => {
|
|
1955
2399
|
if (!obj || !path) return void 0;
|
|
1956
2400
|
return path.split(".").reduce((current, key) => {
|
|
1957
2401
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
1958
2402
|
}, obj);
|
|
1959
2403
|
};
|
|
1960
|
-
var
|
|
2404
|
+
var PdfIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
1961
2405
|
"svg",
|
|
1962
2406
|
{
|
|
1963
2407
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1964
2408
|
viewBox: "0 0 48 48",
|
|
1965
2409
|
className: "w-10 h-10",
|
|
1966
2410
|
children: [
|
|
1967
|
-
/* @__PURE__ */
|
|
2411
|
+
/* @__PURE__ */ jsx39(
|
|
1968
2412
|
"path",
|
|
1969
2413
|
{
|
|
1970
2414
|
fill: "#e53935",
|
|
1971
2415
|
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"
|
|
1972
2416
|
}
|
|
1973
2417
|
),
|
|
1974
|
-
/* @__PURE__ */
|
|
2418
|
+
/* @__PURE__ */ jsx39(
|
|
1975
2419
|
"path",
|
|
1976
2420
|
{
|
|
1977
2421
|
fill: "#fff",
|
|
@@ -1981,55 +2425,55 @@ var PdfIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
1981
2425
|
]
|
|
1982
2426
|
}
|
|
1983
2427
|
);
|
|
1984
|
-
var
|
|
2428
|
+
var ExcelIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
1985
2429
|
"svg",
|
|
1986
2430
|
{
|
|
1987
2431
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1988
2432
|
viewBox: "0 0 48 48",
|
|
1989
2433
|
className: "w-10 h-10",
|
|
1990
2434
|
children: [
|
|
1991
|
-
/* @__PURE__ */
|
|
2435
|
+
/* @__PURE__ */ jsx39(
|
|
1992
2436
|
"path",
|
|
1993
2437
|
{
|
|
1994
2438
|
fill: "#169154",
|
|
1995
2439
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1996
2440
|
}
|
|
1997
2441
|
),
|
|
1998
|
-
/* @__PURE__ */
|
|
2442
|
+
/* @__PURE__ */ jsx39(
|
|
1999
2443
|
"path",
|
|
2000
2444
|
{
|
|
2001
2445
|
fill: "#18482a",
|
|
2002
2446
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
2003
2447
|
}
|
|
2004
2448
|
),
|
|
2005
|
-
/* @__PURE__ */
|
|
2006
|
-
/* @__PURE__ */
|
|
2007
|
-
/* @__PURE__ */
|
|
2008
|
-
/* @__PURE__ */
|
|
2449
|
+
/* @__PURE__ */ jsx39("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
2450
|
+
/* @__PURE__ */ jsx39("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
2451
|
+
/* @__PURE__ */ jsxs16("g", { children: [
|
|
2452
|
+
/* @__PURE__ */ jsx39(
|
|
2009
2453
|
"path",
|
|
2010
2454
|
{
|
|
2011
2455
|
fill: "#29c27f",
|
|
2012
2456
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
2013
2457
|
}
|
|
2014
2458
|
),
|
|
2015
|
-
/* @__PURE__ */
|
|
2459
|
+
/* @__PURE__ */ jsx39(
|
|
2016
2460
|
"path",
|
|
2017
2461
|
{
|
|
2018
2462
|
fill: "#27663f",
|
|
2019
2463
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
2020
2464
|
}
|
|
2021
2465
|
),
|
|
2022
|
-
/* @__PURE__ */
|
|
2023
|
-
/* @__PURE__ */
|
|
2466
|
+
/* @__PURE__ */ jsx39("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
2467
|
+
/* @__PURE__ */ jsx39("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
2024
2468
|
] }),
|
|
2025
|
-
/* @__PURE__ */
|
|
2469
|
+
/* @__PURE__ */ jsx39(
|
|
2026
2470
|
"path",
|
|
2027
2471
|
{
|
|
2028
2472
|
fill: "#0c7238",
|
|
2029
2473
|
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"
|
|
2030
2474
|
}
|
|
2031
2475
|
),
|
|
2032
|
-
/* @__PURE__ */
|
|
2476
|
+
/* @__PURE__ */ jsx39(
|
|
2033
2477
|
"path",
|
|
2034
2478
|
{
|
|
2035
2479
|
fill: "#fff",
|
|
@@ -2039,7 +2483,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2039
2483
|
]
|
|
2040
2484
|
}
|
|
2041
2485
|
);
|
|
2042
|
-
var
|
|
2486
|
+
var WordIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
2043
2487
|
"svg",
|
|
2044
2488
|
{
|
|
2045
2489
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2047,14 +2491,14 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2047
2491
|
className: "w-10 h-10",
|
|
2048
2492
|
baseProfile: "basic",
|
|
2049
2493
|
children: [
|
|
2050
|
-
/* @__PURE__ */
|
|
2494
|
+
/* @__PURE__ */ jsx39(
|
|
2051
2495
|
"path",
|
|
2052
2496
|
{
|
|
2053
2497
|
fill: "#283593",
|
|
2054
2498
|
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"
|
|
2055
2499
|
}
|
|
2056
2500
|
),
|
|
2057
|
-
/* @__PURE__ */
|
|
2501
|
+
/* @__PURE__ */ jsxs16(
|
|
2058
2502
|
"linearGradient",
|
|
2059
2503
|
{
|
|
2060
2504
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -2065,19 +2509,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2065
2509
|
gradientTransform: "translate(0 -339.89)",
|
|
2066
2510
|
gradientUnits: "userSpaceOnUse",
|
|
2067
2511
|
children: [
|
|
2068
|
-
/* @__PURE__ */
|
|
2069
|
-
/* @__PURE__ */
|
|
2512
|
+
/* @__PURE__ */ jsx39("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
2513
|
+
/* @__PURE__ */ jsx39("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
2070
2514
|
]
|
|
2071
2515
|
}
|
|
2072
2516
|
),
|
|
2073
|
-
/* @__PURE__ */
|
|
2517
|
+
/* @__PURE__ */ jsx39(
|
|
2074
2518
|
"path",
|
|
2075
2519
|
{
|
|
2076
2520
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
2077
2521
|
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"
|
|
2078
2522
|
}
|
|
2079
2523
|
),
|
|
2080
|
-
/* @__PURE__ */
|
|
2524
|
+
/* @__PURE__ */ jsx39(
|
|
2081
2525
|
"path",
|
|
2082
2526
|
{
|
|
2083
2527
|
fill: "#1e88e5",
|
|
@@ -2085,21 +2529,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2085
2529
|
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"
|
|
2086
2530
|
}
|
|
2087
2531
|
),
|
|
2088
|
-
/* @__PURE__ */
|
|
2532
|
+
/* @__PURE__ */ jsx39(
|
|
2089
2533
|
"path",
|
|
2090
2534
|
{
|
|
2091
2535
|
fill: "#00e5ff",
|
|
2092
2536
|
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"
|
|
2093
2537
|
}
|
|
2094
2538
|
),
|
|
2095
|
-
/* @__PURE__ */
|
|
2539
|
+
/* @__PURE__ */ jsx39(
|
|
2096
2540
|
"path",
|
|
2097
2541
|
{
|
|
2098
2542
|
fill: "#1565c0",
|
|
2099
2543
|
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"
|
|
2100
2544
|
}
|
|
2101
2545
|
),
|
|
2102
|
-
/* @__PURE__ */
|
|
2546
|
+
/* @__PURE__ */ jsx39(
|
|
2103
2547
|
"path",
|
|
2104
2548
|
{
|
|
2105
2549
|
fill: "#fff",
|
|
@@ -2109,42 +2553,42 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2109
2553
|
]
|
|
2110
2554
|
}
|
|
2111
2555
|
);
|
|
2112
|
-
var
|
|
2556
|
+
var StandardIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
2113
2557
|
"svg",
|
|
2114
2558
|
{
|
|
2115
2559
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2116
2560
|
viewBox: "0 0 48 48",
|
|
2117
2561
|
className: "w-10 h-10",
|
|
2118
2562
|
children: [
|
|
2119
|
-
/* @__PURE__ */
|
|
2120
|
-
/* @__PURE__ */
|
|
2563
|
+
/* @__PURE__ */ jsx39("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2564
|
+
/* @__PURE__ */ jsx39("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
2121
2565
|
]
|
|
2122
2566
|
}
|
|
2123
2567
|
);
|
|
2124
|
-
var
|
|
2568
|
+
var PowerPointIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
2125
2569
|
"svg",
|
|
2126
2570
|
{
|
|
2127
2571
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2128
2572
|
viewBox: "0 0 48 48",
|
|
2129
2573
|
className: "w-10 h-10",
|
|
2130
2574
|
children: [
|
|
2131
|
-
/* @__PURE__ */
|
|
2575
|
+
/* @__PURE__ */ jsx39(
|
|
2132
2576
|
"path",
|
|
2133
2577
|
{
|
|
2134
2578
|
fill: "#dc4c2c",
|
|
2135
2579
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
2136
2580
|
}
|
|
2137
2581
|
),
|
|
2138
|
-
/* @__PURE__ */
|
|
2139
|
-
/* @__PURE__ */
|
|
2140
|
-
/* @__PURE__ */
|
|
2582
|
+
/* @__PURE__ */ jsx39("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
2583
|
+
/* @__PURE__ */ jsx39("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
2584
|
+
/* @__PURE__ */ jsx39(
|
|
2141
2585
|
"path",
|
|
2142
2586
|
{
|
|
2143
2587
|
fill: "#9b341f",
|
|
2144
2588
|
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"
|
|
2145
2589
|
}
|
|
2146
2590
|
),
|
|
2147
|
-
/* @__PURE__ */
|
|
2591
|
+
/* @__PURE__ */ jsx39(
|
|
2148
2592
|
"path",
|
|
2149
2593
|
{
|
|
2150
2594
|
fill: "#fff",
|
|
@@ -2154,16 +2598,16 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2154
2598
|
]
|
|
2155
2599
|
}
|
|
2156
2600
|
);
|
|
2157
|
-
var
|
|
2601
|
+
var TextIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
2158
2602
|
"svg",
|
|
2159
2603
|
{
|
|
2160
2604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2161
2605
|
viewBox: "0 0 48 48",
|
|
2162
2606
|
className: "w-10 h-10",
|
|
2163
2607
|
children: [
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
/* @__PURE__ */
|
|
2166
|
-
/* @__PURE__ */
|
|
2608
|
+
/* @__PURE__ */ jsx39("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2609
|
+
/* @__PURE__ */ jsx39("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
2610
|
+
/* @__PURE__ */ jsx39(
|
|
2167
2611
|
"path",
|
|
2168
2612
|
{
|
|
2169
2613
|
fill: "#1976D2",
|
|
@@ -2173,7 +2617,7 @@ var TextIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2173
2617
|
]
|
|
2174
2618
|
}
|
|
2175
2619
|
);
|
|
2176
|
-
var
|
|
2620
|
+
var ArchiveIcon2 = () => /* @__PURE__ */ jsxs16(
|
|
2177
2621
|
"svg",
|
|
2178
2622
|
{
|
|
2179
2623
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2183,14 +2627,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2183
2627
|
version: "1.0",
|
|
2184
2628
|
className: "w-10 h-10",
|
|
2185
2629
|
children: [
|
|
2186
|
-
/* @__PURE__ */
|
|
2630
|
+
/* @__PURE__ */ jsx39("defs", { children: /* @__PURE__ */ jsx39("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx39(
|
|
2187
2631
|
"path",
|
|
2188
2632
|
{
|
|
2189
2633
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
2190
2634
|
"clip-rule": "nonzero"
|
|
2191
2635
|
}
|
|
2192
2636
|
) }) }),
|
|
2193
|
-
/* @__PURE__ */
|
|
2637
|
+
/* @__PURE__ */ jsx39("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx39(
|
|
2194
2638
|
"path",
|
|
2195
2639
|
{
|
|
2196
2640
|
fill: "#ff9100",
|
|
@@ -2199,7 +2643,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2199
2643
|
"fill-rule": "nonzero"
|
|
2200
2644
|
}
|
|
2201
2645
|
) }),
|
|
2202
|
-
/* @__PURE__ */
|
|
2646
|
+
/* @__PURE__ */ jsx39(
|
|
2203
2647
|
"path",
|
|
2204
2648
|
{
|
|
2205
2649
|
fill: "#fbe9e7",
|
|
@@ -2208,7 +2652,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2208
2652
|
"fill-rule": "nonzero"
|
|
2209
2653
|
}
|
|
2210
2654
|
),
|
|
2211
|
-
/* @__PURE__ */
|
|
2655
|
+
/* @__PURE__ */ jsx39(
|
|
2212
2656
|
"path",
|
|
2213
2657
|
{
|
|
2214
2658
|
fill: "#ffe0b2",
|
|
@@ -2217,7 +2661,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2217
2661
|
"fill-rule": "nonzero"
|
|
2218
2662
|
}
|
|
2219
2663
|
),
|
|
2220
|
-
/* @__PURE__ */
|
|
2664
|
+
/* @__PURE__ */ jsx39(
|
|
2221
2665
|
"path",
|
|
2222
2666
|
{
|
|
2223
2667
|
fill: "#ffe0b2",
|
|
@@ -2226,7 +2670,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2226
2670
|
"fill-rule": "nonzero"
|
|
2227
2671
|
}
|
|
2228
2672
|
),
|
|
2229
|
-
/* @__PURE__ */
|
|
2673
|
+
/* @__PURE__ */ jsx39(
|
|
2230
2674
|
"path",
|
|
2231
2675
|
{
|
|
2232
2676
|
fill: "#ffe0b2",
|
|
@@ -2238,28 +2682,28 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2238
2682
|
]
|
|
2239
2683
|
}
|
|
2240
2684
|
);
|
|
2241
|
-
var
|
|
2685
|
+
var getFileDetails2 = (url) => {
|
|
2242
2686
|
const extMatch = url.match(/\.([a-zA-Z0-9]+)(?:[\?#]|$)/);
|
|
2243
2687
|
const ext = extMatch ? extMatch[1].toLowerCase() : "";
|
|
2244
|
-
let Icon =
|
|
2688
|
+
let Icon = StandardIcon2;
|
|
2245
2689
|
let extLabel = "FILE";
|
|
2246
2690
|
if (ext === "pdf") {
|
|
2247
|
-
Icon =
|
|
2691
|
+
Icon = PdfIcon2;
|
|
2248
2692
|
extLabel = "PDF";
|
|
2249
2693
|
} else if (["xls", "xlsx", "csv"].includes(ext)) {
|
|
2250
|
-
Icon =
|
|
2694
|
+
Icon = ExcelIcon2;
|
|
2251
2695
|
extLabel = "Excel";
|
|
2252
2696
|
} else if (["doc", "docx"].includes(ext)) {
|
|
2253
|
-
Icon =
|
|
2697
|
+
Icon = WordIcon2;
|
|
2254
2698
|
extLabel = "Word";
|
|
2255
2699
|
} else if (["ppt", "pptx"].includes(ext)) {
|
|
2256
|
-
Icon =
|
|
2700
|
+
Icon = PowerPointIcon2;
|
|
2257
2701
|
extLabel = "PowerPoint";
|
|
2258
2702
|
} else if (["txt", "rtf"].includes(ext)) {
|
|
2259
|
-
Icon =
|
|
2703
|
+
Icon = TextIcon2;
|
|
2260
2704
|
extLabel = "Text";
|
|
2261
2705
|
} else if (["zip", "rar", "7z"].includes(ext)) {
|
|
2262
|
-
Icon =
|
|
2706
|
+
Icon = ArchiveIcon2;
|
|
2263
2707
|
extLabel = "Archive";
|
|
2264
2708
|
} else if (ext) {
|
|
2265
2709
|
extLabel = ext.toUpperCase();
|
|
@@ -2301,8 +2745,8 @@ var DocumentNode = (props) => {
|
|
|
2301
2745
|
}
|
|
2302
2746
|
}
|
|
2303
2747
|
if (documents.length === 0) {
|
|
2304
|
-
return /* @__PURE__ */
|
|
2305
|
-
/* @__PURE__ */
|
|
2748
|
+
return /* @__PURE__ */ jsx39(Fragment6, { children: /* @__PURE__ */ jsxs16("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2749
|
+
/* @__PURE__ */ jsx39("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx39(
|
|
2306
2750
|
"svg",
|
|
2307
2751
|
{
|
|
2308
2752
|
className: "w-5 h-5",
|
|
@@ -2310,7 +2754,7 @@ var DocumentNode = (props) => {
|
|
|
2310
2754
|
stroke: "currentColor",
|
|
2311
2755
|
viewBox: "0 0 24 24",
|
|
2312
2756
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2313
|
-
children: /* @__PURE__ */
|
|
2757
|
+
children: /* @__PURE__ */ jsx39(
|
|
2314
2758
|
"path",
|
|
2315
2759
|
{
|
|
2316
2760
|
strokeLinecap: "round",
|
|
@@ -2321,11 +2765,11 @@ var DocumentNode = (props) => {
|
|
|
2321
2765
|
)
|
|
2322
2766
|
}
|
|
2323
2767
|
) }),
|
|
2324
|
-
/* @__PURE__ */
|
|
2325
|
-
/* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ jsx39("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2769
|
+
/* @__PURE__ */ jsx39("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2326
2770
|
] }) });
|
|
2327
2771
|
}
|
|
2328
|
-
return /* @__PURE__ */
|
|
2772
|
+
return /* @__PURE__ */ jsx39("div", { className: "", children: documents.map((doc, index) => {
|
|
2329
2773
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2330
2774
|
props.assetBaseUrl,
|
|
2331
2775
|
doc.assetUrl
|
|
@@ -2342,17 +2786,17 @@ var DocumentNode = (props) => {
|
|
|
2342
2786
|
documentTitle = documentUrl.split("/").pop()?.replace(/\.[^/.]+$/, "") || "Document";
|
|
2343
2787
|
}
|
|
2344
2788
|
}
|
|
2345
|
-
const { Icon, extLabel } =
|
|
2346
|
-
return /* @__PURE__ */
|
|
2789
|
+
const { Icon, extLabel } = getFileDetails2(documentUrl);
|
|
2790
|
+
return /* @__PURE__ */ jsxs16(
|
|
2347
2791
|
"div",
|
|
2348
2792
|
{
|
|
2349
2793
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2350
2794
|
children: [
|
|
2351
|
-
/* @__PURE__ */
|
|
2352
|
-
/* @__PURE__ */
|
|
2353
|
-
/* @__PURE__ */
|
|
2795
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center space-x-4", children: [
|
|
2796
|
+
/* @__PURE__ */ jsx39("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx39(Icon, {}) }),
|
|
2797
|
+
/* @__PURE__ */ jsx39("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx39("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2354
2798
|
] }),
|
|
2355
|
-
/* @__PURE__ */
|
|
2799
|
+
/* @__PURE__ */ jsxs16(
|
|
2356
2800
|
"a",
|
|
2357
2801
|
{
|
|
2358
2802
|
href: documentUrl,
|
|
@@ -2360,7 +2804,7 @@ var DocumentNode = (props) => {
|
|
|
2360
2804
|
rel: "noopener noreferrer",
|
|
2361
2805
|
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",
|
|
2362
2806
|
children: [
|
|
2363
|
-
/* @__PURE__ */
|
|
2807
|
+
/* @__PURE__ */ jsxs16(
|
|
2364
2808
|
"svg",
|
|
2365
2809
|
{
|
|
2366
2810
|
className: "w-4 h-4 mr-2",
|
|
@@ -2368,7 +2812,7 @@ var DocumentNode = (props) => {
|
|
|
2368
2812
|
stroke: "currentColor",
|
|
2369
2813
|
viewBox: "0 0 24 24",
|
|
2370
2814
|
children: [
|
|
2371
|
-
/* @__PURE__ */
|
|
2815
|
+
/* @__PURE__ */ jsx39(
|
|
2372
2816
|
"path",
|
|
2373
2817
|
{
|
|
2374
2818
|
strokeLinecap: "round",
|
|
@@ -2377,7 +2821,7 @@ var DocumentNode = (props) => {
|
|
|
2377
2821
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2378
2822
|
}
|
|
2379
2823
|
),
|
|
2380
|
-
/* @__PURE__ */
|
|
2824
|
+
/* @__PURE__ */ jsx39(
|
|
2381
2825
|
"path",
|
|
2382
2826
|
{
|
|
2383
2827
|
strokeLinecap: "round",
|
|
@@ -2403,13 +2847,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
2403
2847
|
|
|
2404
2848
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2405
2849
|
import dynamic10 from "next/dynamic";
|
|
2406
|
-
import { jsx as
|
|
2850
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2407
2851
|
var IframeClient2 = dynamic10(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
2408
2852
|
ssr: false
|
|
2409
2853
|
});
|
|
2410
2854
|
var GoogleMapNode = (props) => {
|
|
2411
2855
|
let src = props.node.embedUrl;
|
|
2412
|
-
return /* @__PURE__ */
|
|
2856
|
+
return /* @__PURE__ */ jsx40("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx40(
|
|
2413
2857
|
IframeClient2,
|
|
2414
2858
|
{
|
|
2415
2859
|
src,
|
|
@@ -2421,7 +2865,7 @@ var GoogleMapNode = (props) => {
|
|
|
2421
2865
|
var GoogleMapNode_default = GoogleMapNode;
|
|
2422
2866
|
|
|
2423
2867
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2424
|
-
import { jsx as
|
|
2868
|
+
import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2425
2869
|
var Pagination = dynamic11(() => import("./Pagination-QBPYDD66.mjs"), { ssr: true });
|
|
2426
2870
|
var DataBindingControls = dynamic11(() => import("./DataBindingControls-WJAY5HFO.mjs"), {
|
|
2427
2871
|
ssr: true
|
|
@@ -2680,7 +3124,7 @@ var DivContainer = async (props) => {
|
|
|
2680
3124
|
response = await serviceClient.get(endpoint);
|
|
2681
3125
|
result = response?.result;
|
|
2682
3126
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
2683
|
-
return /* @__PURE__ */
|
|
3127
|
+
return /* @__PURE__ */ jsx41(NoDataFound_default, {});
|
|
2684
3128
|
}
|
|
2685
3129
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
2686
3130
|
childCollectionData = getNestedValue6(
|
|
@@ -2700,7 +3144,7 @@ var DivContainer = async (props) => {
|
|
|
2700
3144
|
}
|
|
2701
3145
|
const SelectedNode = NodeTypes2[node.type];
|
|
2702
3146
|
if (!SelectedNode) return null;
|
|
2703
|
-
return /* @__PURE__ */
|
|
3147
|
+
return /* @__PURE__ */ jsx41(React25.Fragment, { children: /* @__PURE__ */ jsx41(
|
|
2704
3148
|
SelectedNode,
|
|
2705
3149
|
{
|
|
2706
3150
|
node,
|
|
@@ -2837,7 +3281,7 @@ var DivContainer = async (props) => {
|
|
|
2837
3281
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
2838
3282
|
);
|
|
2839
3283
|
const WrapperComponent = Wrapper;
|
|
2840
|
-
const renderedContainer = /* @__PURE__ */
|
|
3284
|
+
const renderedContainer = /* @__PURE__ */ jsx41(
|
|
2841
3285
|
WrapperComponent,
|
|
2842
3286
|
{
|
|
2843
3287
|
id: guid,
|
|
@@ -2851,11 +3295,11 @@ var DivContainer = async (props) => {
|
|
|
2851
3295
|
item,
|
|
2852
3296
|
idx,
|
|
2853
3297
|
props.href ? void 0 : item?.links?.view
|
|
2854
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
3298
|
+
)?.map((child, i) => /* @__PURE__ */ jsx41(React25.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
|
|
2855
3299
|
)
|
|
2856
3300
|
}
|
|
2857
3301
|
);
|
|
2858
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */
|
|
3302
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx41(
|
|
2859
3303
|
Pagination,
|
|
2860
3304
|
{
|
|
2861
3305
|
path: props.path,
|
|
@@ -2863,15 +3307,15 @@ var DivContainer = async (props) => {
|
|
|
2863
3307
|
dataset: response
|
|
2864
3308
|
}
|
|
2865
3309
|
) : null;
|
|
2866
|
-
return /* @__PURE__ */
|
|
2867
|
-
/* @__PURE__ */
|
|
3310
|
+
return /* @__PURE__ */ jsxs17(React25.Fragment, { children: [
|
|
3311
|
+
/* @__PURE__ */ jsx41(
|
|
2868
3312
|
"style",
|
|
2869
3313
|
{
|
|
2870
3314
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2871
3315
|
}
|
|
2872
3316
|
),
|
|
2873
|
-
showDataBindingControls ? /* @__PURE__ */
|
|
2874
|
-
/* @__PURE__ */
|
|
3317
|
+
showDataBindingControls ? /* @__PURE__ */ jsxs17(React25.Fragment, { children: [
|
|
3318
|
+
/* @__PURE__ */ jsx41(
|
|
2875
3319
|
DataBindingControls,
|
|
2876
3320
|
{
|
|
2877
3321
|
mode: "toolbar",
|
|
@@ -2883,18 +3327,18 @@ var DivContainer = async (props) => {
|
|
|
2883
3327
|
showSearchBar: dataBindingProperties?.showSearchBar
|
|
2884
3328
|
}
|
|
2885
3329
|
),
|
|
2886
|
-
/* @__PURE__ */
|
|
3330
|
+
/* @__PURE__ */ jsxs17(
|
|
2887
3331
|
"div",
|
|
2888
3332
|
{
|
|
2889
3333
|
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
2890
3334
|
children: [
|
|
2891
|
-
/* @__PURE__ */
|
|
3335
|
+
/* @__PURE__ */ jsxs17("div", { className: "min-w-0", children: [
|
|
2892
3336
|
renderedContainer,
|
|
2893
3337
|
paginationControl
|
|
2894
3338
|
] }),
|
|
2895
|
-
dataBindingProperties?.showFacets && /* @__PURE__ */
|
|
2896
|
-
/* @__PURE__ */
|
|
2897
|
-
/* @__PURE__ */
|
|
3339
|
+
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs17("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
3340
|
+
/* @__PURE__ */ jsx41("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
3341
|
+
/* @__PURE__ */ jsx41(
|
|
2898
3342
|
DataBindingControls,
|
|
2899
3343
|
{
|
|
2900
3344
|
mode: "facets",
|
|
@@ -2908,16 +3352,16 @@ var DivContainer = async (props) => {
|
|
|
2908
3352
|
]
|
|
2909
3353
|
}
|
|
2910
3354
|
)
|
|
2911
|
-
] }) : /* @__PURE__ */
|
|
3355
|
+
] }) : /* @__PURE__ */ jsxs17(React25.Fragment, { children: [
|
|
2912
3356
|
renderedContainer,
|
|
2913
|
-
paginationControl && /* @__PURE__ */
|
|
3357
|
+
paginationControl && /* @__PURE__ */ jsx41("div", { children: paginationControl })
|
|
2914
3358
|
] })
|
|
2915
3359
|
] });
|
|
2916
3360
|
};
|
|
2917
3361
|
var DivContainer_default = DivContainer;
|
|
2918
3362
|
|
|
2919
3363
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2920
|
-
import { jsx as
|
|
3364
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2921
3365
|
var NodeTypes = {
|
|
2922
3366
|
["paragraph"]: ParagraphNode_default,
|
|
2923
3367
|
["heading"]: HeadingNode_default,
|
|
@@ -2955,14 +3399,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2955
3399
|
}
|
|
2956
3400
|
return true;
|
|
2957
3401
|
};
|
|
2958
|
-
return /* @__PURE__ */
|
|
3402
|
+
return /* @__PURE__ */ jsx42(React26.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2959
3403
|
{
|
|
2960
3404
|
}
|
|
2961
3405
|
const SelectedNode = NodeTypes[node.type];
|
|
2962
3406
|
if (!shouldRenderNode(node)) {
|
|
2963
3407
|
return null;
|
|
2964
3408
|
}
|
|
2965
|
-
return /* @__PURE__ */
|
|
3409
|
+
return /* @__PURE__ */ jsx42(React26.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx42(React26.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx42(React26.Fragment, { children: /* @__PURE__ */ jsx42(
|
|
2966
3410
|
SelectedNode,
|
|
2967
3411
|
{
|
|
2968
3412
|
node,
|
|
@@ -2978,7 +3422,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2978
3422
|
device: props.device,
|
|
2979
3423
|
widgetRenderer: props.widgetRenderer
|
|
2980
3424
|
}
|
|
2981
|
-
) }) : /* @__PURE__ */
|
|
3425
|
+
) }) : /* @__PURE__ */ jsx42(React26.Fragment, { children: /* @__PURE__ */ jsx42(
|
|
2982
3426
|
SelectedNode,
|
|
2983
3427
|
{
|
|
2984
3428
|
node,
|