@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260829044749 → 0.8.1-dev.20260829085511
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 → CommentRendererClient-IAXFBEMF.mjs} +3 -1
- package/dist/{CommentRendererClient-LO3DHVJE.mjs → CommentRendererClient-XPZN5L64.mjs} +3 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +768 -690
- package/dist/index.mjs +352 -276
- package/dist/server.d.mts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +545 -467
- package/dist/server.mjs +196 -120
- package/package.json +1 -1
package/dist/server.mjs
CHANGED
|
@@ -487,7 +487,8 @@ var ViewControlTypes = {
|
|
|
487
487
|
aiGeneratedSummary: "aiGeneratedSummary",
|
|
488
488
|
booleanView: "booleanView",
|
|
489
489
|
text: "text",
|
|
490
|
-
commentRenderer: "commentRenderer"
|
|
490
|
+
commentRenderer: "commentRenderer",
|
|
491
|
+
avatar: "avatar"
|
|
491
492
|
};
|
|
492
493
|
var ViewControlTypes_default = ViewControlTypes;
|
|
493
494
|
|
|
@@ -742,13 +743,87 @@ var TimeUntilStarts_default = TimeUntilStarts;
|
|
|
742
743
|
|
|
743
744
|
// src/components/controls/view/Commentrenderer.tsx
|
|
744
745
|
import dynamic7 from "next/dynamic";
|
|
745
|
-
var CommentRenderer = dynamic7(() => import("./CommentRendererClient-
|
|
746
|
+
var CommentRenderer = dynamic7(() => import("./CommentRendererClient-IAXFBEMF.mjs"), {
|
|
746
747
|
ssr: false
|
|
747
748
|
});
|
|
748
749
|
var Commentrenderer_default = CommentRenderer;
|
|
749
750
|
|
|
750
|
-
// src/components/controls/view/
|
|
751
|
+
// src/components/controls/view/AvatarView.tsx
|
|
751
752
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
753
|
+
var AVATAR_COLORS = [
|
|
754
|
+
"#1abc9c",
|
|
755
|
+
"#2ecc71",
|
|
756
|
+
"#3498db",
|
|
757
|
+
"#9b59b6",
|
|
758
|
+
"#e67e22",
|
|
759
|
+
"#e74c3c",
|
|
760
|
+
"#16a085",
|
|
761
|
+
"#27ae60",
|
|
762
|
+
"#2980b9",
|
|
763
|
+
"#8e44ad",
|
|
764
|
+
"#f39c12",
|
|
765
|
+
"#d35400",
|
|
766
|
+
"#c0392b",
|
|
767
|
+
"#7f8c8d",
|
|
768
|
+
"#2c3e50"
|
|
769
|
+
];
|
|
770
|
+
var hashString = (text) => {
|
|
771
|
+
let hash = 0;
|
|
772
|
+
for (let i = 0; i < text.length; i += 1) {
|
|
773
|
+
hash = (hash << 5) - hash + text.charCodeAt(i);
|
|
774
|
+
hash |= 0;
|
|
775
|
+
}
|
|
776
|
+
return Math.abs(hash);
|
|
777
|
+
};
|
|
778
|
+
var getInitials = (text) => {
|
|
779
|
+
const words = text.trim().split(/\s+/).filter(Boolean);
|
|
780
|
+
if (words.length === 0) {
|
|
781
|
+
return "";
|
|
782
|
+
}
|
|
783
|
+
if (words.length === 1) {
|
|
784
|
+
return words[0].slice(0, 2).toUpperCase();
|
|
785
|
+
}
|
|
786
|
+
return (words[0][0] + words[words.length - 1][0]).toUpperCase();
|
|
787
|
+
};
|
|
788
|
+
var AvatarView = (props) => {
|
|
789
|
+
const text = props.value === null || props.value === void 0 ? "" : String(props.value).trim();
|
|
790
|
+
if (!text) {
|
|
791
|
+
return null;
|
|
792
|
+
}
|
|
793
|
+
const initials = getInitials(text);
|
|
794
|
+
const backgroundColor = AVATAR_COLORS[hashString(text) % AVATAR_COLORS.length];
|
|
795
|
+
const size = props.width ?? "2rem";
|
|
796
|
+
return /* @__PURE__ */ jsx21(
|
|
797
|
+
"span",
|
|
798
|
+
{
|
|
799
|
+
className: "avatar-view",
|
|
800
|
+
title: text,
|
|
801
|
+
"aria-label": text,
|
|
802
|
+
style: {
|
|
803
|
+
display: "inline-flex",
|
|
804
|
+
alignItems: "center",
|
|
805
|
+
justifyContent: "center",
|
|
806
|
+
width: size,
|
|
807
|
+
height: size,
|
|
808
|
+
borderRadius: "9999px",
|
|
809
|
+
backgroundColor,
|
|
810
|
+
color: "#fff",
|
|
811
|
+
fontWeight: 600,
|
|
812
|
+
fontSize: "0.75em",
|
|
813
|
+
lineHeight: 1,
|
|
814
|
+
textTransform: "uppercase",
|
|
815
|
+
userSelect: "none",
|
|
816
|
+
flexShrink: 0,
|
|
817
|
+
overflow: "hidden"
|
|
818
|
+
},
|
|
819
|
+
children: initials
|
|
820
|
+
}
|
|
821
|
+
);
|
|
822
|
+
};
|
|
823
|
+
var AvatarView_default = AvatarView;
|
|
824
|
+
|
|
825
|
+
// src/components/controls/view/ViewControl.tsx
|
|
826
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
752
827
|
var ViewControl = (props) => {
|
|
753
828
|
const ControlComponents = {
|
|
754
829
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -776,15 +851,16 @@ var ViewControl = (props) => {
|
|
|
776
851
|
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
777
852
|
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
778
853
|
[ViewControlTypes_default.text]: LineTextView_default,
|
|
779
|
-
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default
|
|
854
|
+
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default,
|
|
855
|
+
[ViewControlTypes_default.avatar]: AvatarView_default
|
|
780
856
|
};
|
|
781
857
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
782
|
-
return /* @__PURE__ */
|
|
858
|
+
return /* @__PURE__ */ jsx22(React15.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx22(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
783
859
|
};
|
|
784
860
|
var ViewControl_default = ViewControl;
|
|
785
861
|
|
|
786
862
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
787
|
-
import { jsx as
|
|
863
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
788
864
|
function getNestedProperty(obj, path) {
|
|
789
865
|
if (!obj || !path) return null;
|
|
790
866
|
if (path.includes(".")) {
|
|
@@ -797,7 +873,7 @@ function getNestedProperty(obj, path) {
|
|
|
797
873
|
}
|
|
798
874
|
const value = obj[path];
|
|
799
875
|
if (Array.isArray(value)) {
|
|
800
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
876
|
+
return value.map((item, index) => /* @__PURE__ */ jsx23("div", { children: String(item) }, index));
|
|
801
877
|
}
|
|
802
878
|
return value;
|
|
803
879
|
}
|
|
@@ -860,7 +936,7 @@ var DatafieldNode = (props) => {
|
|
|
860
936
|
const dataType = props.node.dataType;
|
|
861
937
|
if (isEmptyValue) return null;
|
|
862
938
|
if (dataType === "rawContent") {
|
|
863
|
-
return /* @__PURE__ */
|
|
939
|
+
return /* @__PURE__ */ jsx23(
|
|
864
940
|
PageBodyRenderer_default,
|
|
865
941
|
{
|
|
866
942
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -876,13 +952,13 @@ var DatafieldNode = (props) => {
|
|
|
876
952
|
}
|
|
877
953
|
);
|
|
878
954
|
}
|
|
879
|
-
return /* @__PURE__ */
|
|
955
|
+
return /* @__PURE__ */ jsx23(
|
|
880
956
|
"span",
|
|
881
957
|
{
|
|
882
958
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
883
959
|
style: styles,
|
|
884
960
|
title,
|
|
885
|
-
children: /* @__PURE__ */
|
|
961
|
+
children: /* @__PURE__ */ jsx23(
|
|
886
962
|
ViewControl_default,
|
|
887
963
|
{
|
|
888
964
|
controlType: dataType,
|
|
@@ -897,7 +973,7 @@ var DatafieldNode = (props) => {
|
|
|
897
973
|
var DatafieldNode_default = DatafieldNode;
|
|
898
974
|
|
|
899
975
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
900
|
-
import { Fragment as Fragment2, jsx as
|
|
976
|
+
import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
901
977
|
var ParagraphNode = (props) => {
|
|
902
978
|
const NodeTypes2 = {
|
|
903
979
|
["text"]: TextNode_default,
|
|
@@ -917,9 +993,9 @@ var ParagraphNode = (props) => {
|
|
|
917
993
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
918
994
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
919
995
|
if (isInlineOnlyParent) {
|
|
920
|
-
return /* @__PURE__ */
|
|
996
|
+
return /* @__PURE__ */ jsx24(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
921
997
|
const SelectedNode = NodeTypes2[node.type];
|
|
922
|
-
return /* @__PURE__ */
|
|
998
|
+
return /* @__PURE__ */ jsx24(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
|
|
923
999
|
SelectedNode,
|
|
924
1000
|
{
|
|
925
1001
|
node,
|
|
@@ -935,7 +1011,7 @@ var ParagraphNode = (props) => {
|
|
|
935
1011
|
return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
|
|
936
1012
|
hasChildren && props.node.children.map((node, index) => {
|
|
937
1013
|
const SelectedNode = NodeTypes2[node.type];
|
|
938
|
-
return /* @__PURE__ */
|
|
1014
|
+
return /* @__PURE__ */ jsx24(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
|
|
939
1015
|
SelectedNode,
|
|
940
1016
|
{
|
|
941
1017
|
node,
|
|
@@ -947,14 +1023,14 @@ var ParagraphNode = (props) => {
|
|
|
947
1023
|
}
|
|
948
1024
|
) }, index);
|
|
949
1025
|
}),
|
|
950
|
-
!hasChildren && /* @__PURE__ */
|
|
1026
|
+
!hasChildren && /* @__PURE__ */ jsx24("div", { className: "py-1.5 lg:py-2" })
|
|
951
1027
|
] });
|
|
952
1028
|
};
|
|
953
1029
|
var ParagraphNode_default = ParagraphNode;
|
|
954
1030
|
|
|
955
1031
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
956
1032
|
import React17 from "react";
|
|
957
|
-
import { Fragment as Fragment3, jsx as
|
|
1033
|
+
import { Fragment as Fragment3, jsx as jsx25 } from "react/jsx-runtime";
|
|
958
1034
|
var HeadingNode = (props) => {
|
|
959
1035
|
const NodeTypes2 = {
|
|
960
1036
|
["text"]: TextNode_default,
|
|
@@ -970,12 +1046,12 @@ var HeadingNode = (props) => {
|
|
|
970
1046
|
{
|
|
971
1047
|
}
|
|
972
1048
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
973
|
-
return /* @__PURE__ */
|
|
1049
|
+
return /* @__PURE__ */ jsx25(Fragment3, { children: React17.createElement(
|
|
974
1050
|
HeadingTag,
|
|
975
1051
|
{ className: formatClasses },
|
|
976
1052
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
977
1053
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
978
|
-
return /* @__PURE__ */
|
|
1054
|
+
return /* @__PURE__ */ jsx25(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
979
1055
|
})
|
|
980
1056
|
) });
|
|
981
1057
|
};
|
|
@@ -986,7 +1062,7 @@ import React19 from "react";
|
|
|
986
1062
|
|
|
987
1063
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
988
1064
|
import React18 from "react";
|
|
989
|
-
import { jsx as
|
|
1065
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
990
1066
|
var ListItemNode = (props) => {
|
|
991
1067
|
const NodeTypes2 = {
|
|
992
1068
|
text: TextNode_default,
|
|
@@ -1003,37 +1079,37 @@ var ListItemNode = (props) => {
|
|
|
1003
1079
|
liStyle.fontSize = match[1].trim();
|
|
1004
1080
|
}
|
|
1005
1081
|
}
|
|
1006
|
-
return /* @__PURE__ */
|
|
1082
|
+
return /* @__PURE__ */ jsx26("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
1007
1083
|
const SelectedNode = NodeTypes2[node.type];
|
|
1008
1084
|
if (node.type === "linebreak") {
|
|
1009
1085
|
if (!foundFirstBreak) {
|
|
1010
1086
|
foundFirstBreak = true;
|
|
1011
|
-
return /* @__PURE__ */
|
|
1087
|
+
return /* @__PURE__ */ jsx26("div", {}, index);
|
|
1012
1088
|
} else {
|
|
1013
|
-
return /* @__PURE__ */
|
|
1089
|
+
return /* @__PURE__ */ jsx26("div", { className: "py-1 lg:py-2" }, index);
|
|
1014
1090
|
}
|
|
1015
1091
|
} else {
|
|
1016
1092
|
foundFirstBreak = false;
|
|
1017
|
-
return /* @__PURE__ */
|
|
1093
|
+
return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1018
1094
|
}
|
|
1019
1095
|
}) });
|
|
1020
1096
|
};
|
|
1021
1097
|
var ListItemNode_default = ListItemNode;
|
|
1022
1098
|
|
|
1023
1099
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1024
|
-
import { jsx as
|
|
1100
|
+
import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1025
1101
|
var ListNode = (props) => {
|
|
1026
1102
|
const NodeTypes2 = {
|
|
1027
1103
|
listitem: ListItemNode_default
|
|
1028
1104
|
};
|
|
1029
1105
|
return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
|
|
1030
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1106
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx27("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1031
1107
|
const SelectedNode = NodeTypes2[node.type];
|
|
1032
|
-
return /* @__PURE__ */
|
|
1108
|
+
return /* @__PURE__ */ jsx27(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1033
1109
|
}) }),
|
|
1034
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1110
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx27("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1035
1111
|
const SelectedNode = NodeTypes2[node.type];
|
|
1036
|
-
return /* @__PURE__ */
|
|
1112
|
+
return /* @__PURE__ */ jsx27(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1037
1113
|
}) })
|
|
1038
1114
|
] });
|
|
1039
1115
|
};
|
|
@@ -1041,16 +1117,16 @@ var ListNode_default = ListNode;
|
|
|
1041
1117
|
|
|
1042
1118
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
1043
1119
|
import React20 from "react";
|
|
1044
|
-
import { jsx as
|
|
1120
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1045
1121
|
var QuoteNode = (props) => {
|
|
1046
1122
|
const NodeTypes2 = {
|
|
1047
1123
|
["text"]: TextNode_default,
|
|
1048
1124
|
["linebreak"]: LineBreakNode_default,
|
|
1049
1125
|
["link"]: LinkNode_default
|
|
1050
1126
|
};
|
|
1051
|
-
return /* @__PURE__ */
|
|
1127
|
+
return /* @__PURE__ */ jsx28("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1052
1128
|
const SelectedNode = NodeTypes2[node.type];
|
|
1053
|
-
return /* @__PURE__ */
|
|
1129
|
+
return /* @__PURE__ */ jsx28(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1054
1130
|
}) });
|
|
1055
1131
|
};
|
|
1056
1132
|
var QuoteNode_default = QuoteNode;
|
|
@@ -1058,11 +1134,11 @@ var QuoteNode_default = QuoteNode;
|
|
|
1058
1134
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1059
1135
|
import React21 from "react";
|
|
1060
1136
|
import dynamic8 from "next/dynamic";
|
|
1061
|
-
import { jsx as
|
|
1137
|
+
import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1062
1138
|
var CopyButton = dynamic8(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
1063
1139
|
ssr: false,
|
|
1064
1140
|
// optional: fallback UI while loading
|
|
1065
|
-
loading: () => /* @__PURE__ */
|
|
1141
|
+
loading: () => /* @__PURE__ */ jsx29("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1066
1142
|
});
|
|
1067
1143
|
var CodeNode = (props) => {
|
|
1068
1144
|
const NodeTypes2 = {
|
|
@@ -1078,12 +1154,12 @@ var CodeNode = (props) => {
|
|
|
1078
1154
|
}).join("") ?? "";
|
|
1079
1155
|
return /* @__PURE__ */ jsxs10("div", { children: [
|
|
1080
1156
|
/* @__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__ */
|
|
1082
|
-
/* @__PURE__ */
|
|
1157
|
+
/* @__PURE__ */ jsx29("span", { children: "Code Snippet" }),
|
|
1158
|
+
/* @__PURE__ */ jsx29(CopyButton, { text: textContent })
|
|
1083
1159
|
] }),
|
|
1084
|
-
/* @__PURE__ */
|
|
1160
|
+
/* @__PURE__ */ jsx29("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) => {
|
|
1085
1161
|
const SelectedNode = NodeTypes2[node.type];
|
|
1086
|
-
return /* @__PURE__ */
|
|
1162
|
+
return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(
|
|
1087
1163
|
SelectedNode,
|
|
1088
1164
|
{
|
|
1089
1165
|
node,
|
|
@@ -1098,15 +1174,15 @@ var CodeNode = (props) => {
|
|
|
1098
1174
|
var CodeNode_default = CodeNode;
|
|
1099
1175
|
|
|
1100
1176
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1101
|
-
import { jsx as
|
|
1177
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1102
1178
|
var HorizontalRuleNode = () => {
|
|
1103
|
-
return /* @__PURE__ */
|
|
1179
|
+
return /* @__PURE__ */ jsx30("hr", {});
|
|
1104
1180
|
};
|
|
1105
1181
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1106
1182
|
|
|
1107
1183
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1108
1184
|
import React22 from "react";
|
|
1109
|
-
import { Fragment as Fragment4, jsx as
|
|
1185
|
+
import { Fragment as Fragment4, jsx as jsx31 } from "react/jsx-runtime";
|
|
1110
1186
|
var WidgetNode = (props) => {
|
|
1111
1187
|
const getWidgetParameters = () => {
|
|
1112
1188
|
const widgetInputParameters = {
|
|
@@ -1170,7 +1246,7 @@ var WidgetNode = (props) => {
|
|
|
1170
1246
|
};
|
|
1171
1247
|
const widgetCode = props.node?.widgetCode;
|
|
1172
1248
|
if (!widgetCode) {
|
|
1173
|
-
return /* @__PURE__ */
|
|
1249
|
+
return /* @__PURE__ */ jsx31(Fragment4, { children: "Invalid widget" });
|
|
1174
1250
|
}
|
|
1175
1251
|
const widgetParams = getWidgetParameters();
|
|
1176
1252
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1179,7 +1255,7 @@ var WidgetNode = (props) => {
|
|
|
1179
1255
|
}
|
|
1180
1256
|
return (
|
|
1181
1257
|
// eslint-disable-next-line react-hooks/static-components
|
|
1182
|
-
/* @__PURE__ */
|
|
1258
|
+
/* @__PURE__ */ jsx31(React22.Fragment, { children: /* @__PURE__ */ jsx31(
|
|
1183
1259
|
WidgetRenderer,
|
|
1184
1260
|
{
|
|
1185
1261
|
params: widgetParams,
|
|
@@ -1201,7 +1277,7 @@ import React23 from "react";
|
|
|
1201
1277
|
|
|
1202
1278
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1203
1279
|
import dynamic9 from "next/dynamic";
|
|
1204
|
-
import { jsx as
|
|
1280
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1205
1281
|
var IframeClient = dynamic9(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
1206
1282
|
ssr: false
|
|
1207
1283
|
});
|
|
@@ -1214,7 +1290,7 @@ var EmbedNode = (props) => {
|
|
|
1214
1290
|
} else {
|
|
1215
1291
|
src = props.node.embedSrc;
|
|
1216
1292
|
}
|
|
1217
|
-
return /* @__PURE__ */
|
|
1293
|
+
return /* @__PURE__ */ jsx32("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx32(IframeClient, { src }) });
|
|
1218
1294
|
};
|
|
1219
1295
|
var EmbedNode_default = EmbedNode;
|
|
1220
1296
|
|
|
@@ -1407,10 +1483,10 @@ var PathUtility = class {
|
|
|
1407
1483
|
var PathUtility_default = new PathUtility();
|
|
1408
1484
|
|
|
1409
1485
|
// src/components/NoDataFound.tsx
|
|
1410
|
-
import { jsx as
|
|
1486
|
+
import { jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1411
1487
|
var NoDataFound = () => {
|
|
1412
1488
|
return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1413
|
-
/* @__PURE__ */
|
|
1489
|
+
/* @__PURE__ */ jsx33("div", { className: "mb-5", children: /* @__PURE__ */ jsx33("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx33(
|
|
1414
1490
|
"svg",
|
|
1415
1491
|
{
|
|
1416
1492
|
className: "w-10 h-10",
|
|
@@ -1418,7 +1494,7 @@ var NoDataFound = () => {
|
|
|
1418
1494
|
stroke: "currentColor",
|
|
1419
1495
|
viewBox: "0 0 24 24",
|
|
1420
1496
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1421
|
-
children: /* @__PURE__ */
|
|
1497
|
+
children: /* @__PURE__ */ jsx33(
|
|
1422
1498
|
"path",
|
|
1423
1499
|
{
|
|
1424
1500
|
strokeLinecap: "round",
|
|
@@ -1429,15 +1505,15 @@ var NoDataFound = () => {
|
|
|
1429
1505
|
)
|
|
1430
1506
|
}
|
|
1431
1507
|
) }) }),
|
|
1432
|
-
/* @__PURE__ */
|
|
1433
|
-
/* @__PURE__ */
|
|
1508
|
+
/* @__PURE__ */ jsx33("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1509
|
+
/* @__PURE__ */ jsx33("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1434
1510
|
] });
|
|
1435
1511
|
};
|
|
1436
1512
|
var NoDataFound_default = NoDataFound;
|
|
1437
1513
|
|
|
1438
1514
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1439
1515
|
import dynamic10 from "next/dynamic";
|
|
1440
|
-
import { Fragment as Fragment5, jsx as
|
|
1516
|
+
import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1441
1517
|
var HlsPlayer3 = dynamic10(() => import("./HlsPlayer-BVS6BVF7.mjs"), { ssr: false });
|
|
1442
1518
|
var deviceToMediaQuery = (device) => {
|
|
1443
1519
|
switch (device) {
|
|
@@ -1594,7 +1670,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1594
1670
|
};
|
|
1595
1671
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1596
1672
|
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1597
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1673
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsx34(
|
|
1598
1674
|
HlsPlayer3,
|
|
1599
1675
|
{
|
|
1600
1676
|
sources: hlsSources,
|
|
@@ -1609,7 +1685,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1609
1685
|
styles: hlsStyles
|
|
1610
1686
|
}
|
|
1611
1687
|
) }),
|
|
1612
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1688
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx34(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs12("picture", { children: [
|
|
1613
1689
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1614
1690
|
const match = staticSources.find(
|
|
1615
1691
|
(img) => img.device === deviceKey
|
|
@@ -1625,7 +1701,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1625
1701
|
if (!srcUrl) {
|
|
1626
1702
|
return null;
|
|
1627
1703
|
}
|
|
1628
|
-
return /* @__PURE__ */
|
|
1704
|
+
return /* @__PURE__ */ jsx34(
|
|
1629
1705
|
"source",
|
|
1630
1706
|
{
|
|
1631
1707
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1650,7 +1726,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1650
1726
|
if (img.borderRadius) {
|
|
1651
1727
|
styles.borderRadius = img.borderRadius;
|
|
1652
1728
|
}
|
|
1653
|
-
return /* @__PURE__ */
|
|
1729
|
+
return /* @__PURE__ */ jsx34(
|
|
1654
1730
|
"img",
|
|
1655
1731
|
{
|
|
1656
1732
|
loading: "lazy",
|
|
@@ -1665,7 +1741,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1665
1741
|
})()
|
|
1666
1742
|
] }) : (
|
|
1667
1743
|
/* Case 2: Only device-specific images exist */
|
|
1668
|
-
/* @__PURE__ */
|
|
1744
|
+
/* @__PURE__ */ jsx34(Fragment5, { children: staticSources.map((img, index) => {
|
|
1669
1745
|
const resolved = resolveImage(img);
|
|
1670
1746
|
const imageUrl = resolved?.imageUrl;
|
|
1671
1747
|
if (!imageUrl) {
|
|
@@ -1692,7 +1768,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1692
1768
|
default:
|
|
1693
1769
|
display = "block";
|
|
1694
1770
|
}
|
|
1695
|
-
return /* @__PURE__ */
|
|
1771
|
+
return /* @__PURE__ */ jsx34(
|
|
1696
1772
|
"img",
|
|
1697
1773
|
{
|
|
1698
1774
|
loading: "lazy",
|
|
@@ -1832,7 +1908,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1832
1908
|
};
|
|
1833
1909
|
|
|
1834
1910
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1835
|
-
import { Fragment as Fragment6, jsx as
|
|
1911
|
+
import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1836
1912
|
var getNestedValue5 = (obj, path) => {
|
|
1837
1913
|
if (!obj || !path) return void 0;
|
|
1838
1914
|
return path.split(".").reduce((current, key) => {
|
|
@@ -1846,14 +1922,14 @@ var PdfIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1846
1922
|
viewBox: "0 0 48 48",
|
|
1847
1923
|
className: "w-10 h-10",
|
|
1848
1924
|
children: [
|
|
1849
|
-
/* @__PURE__ */
|
|
1925
|
+
/* @__PURE__ */ jsx35(
|
|
1850
1926
|
"path",
|
|
1851
1927
|
{
|
|
1852
1928
|
fill: "#e53935",
|
|
1853
1929
|
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"
|
|
1854
1930
|
}
|
|
1855
1931
|
),
|
|
1856
|
-
/* @__PURE__ */
|
|
1932
|
+
/* @__PURE__ */ jsx35(
|
|
1857
1933
|
"path",
|
|
1858
1934
|
{
|
|
1859
1935
|
fill: "#fff",
|
|
@@ -1870,48 +1946,48 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1870
1946
|
viewBox: "0 0 48 48",
|
|
1871
1947
|
className: "w-10 h-10",
|
|
1872
1948
|
children: [
|
|
1873
|
-
/* @__PURE__ */
|
|
1949
|
+
/* @__PURE__ */ jsx35(
|
|
1874
1950
|
"path",
|
|
1875
1951
|
{
|
|
1876
1952
|
fill: "#169154",
|
|
1877
1953
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1878
1954
|
}
|
|
1879
1955
|
),
|
|
1880
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ jsx35(
|
|
1881
1957
|
"path",
|
|
1882
1958
|
{
|
|
1883
1959
|
fill: "#18482a",
|
|
1884
1960
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
1885
1961
|
}
|
|
1886
1962
|
),
|
|
1887
|
-
/* @__PURE__ */
|
|
1888
|
-
/* @__PURE__ */
|
|
1963
|
+
/* @__PURE__ */ jsx35("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
1964
|
+
/* @__PURE__ */ jsx35("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
1889
1965
|
/* @__PURE__ */ jsxs13("g", { children: [
|
|
1890
|
-
/* @__PURE__ */
|
|
1966
|
+
/* @__PURE__ */ jsx35(
|
|
1891
1967
|
"path",
|
|
1892
1968
|
{
|
|
1893
1969
|
fill: "#29c27f",
|
|
1894
1970
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
1895
1971
|
}
|
|
1896
1972
|
),
|
|
1897
|
-
/* @__PURE__ */
|
|
1973
|
+
/* @__PURE__ */ jsx35(
|
|
1898
1974
|
"path",
|
|
1899
1975
|
{
|
|
1900
1976
|
fill: "#27663f",
|
|
1901
1977
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
1902
1978
|
}
|
|
1903
1979
|
),
|
|
1904
|
-
/* @__PURE__ */
|
|
1905
|
-
/* @__PURE__ */
|
|
1980
|
+
/* @__PURE__ */ jsx35("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
1981
|
+
/* @__PURE__ */ jsx35("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
1906
1982
|
] }),
|
|
1907
|
-
/* @__PURE__ */
|
|
1983
|
+
/* @__PURE__ */ jsx35(
|
|
1908
1984
|
"path",
|
|
1909
1985
|
{
|
|
1910
1986
|
fill: "#0c7238",
|
|
1911
1987
|
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"
|
|
1912
1988
|
}
|
|
1913
1989
|
),
|
|
1914
|
-
/* @__PURE__ */
|
|
1990
|
+
/* @__PURE__ */ jsx35(
|
|
1915
1991
|
"path",
|
|
1916
1992
|
{
|
|
1917
1993
|
fill: "#fff",
|
|
@@ -1929,7 +2005,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1929
2005
|
className: "w-10 h-10",
|
|
1930
2006
|
baseProfile: "basic",
|
|
1931
2007
|
children: [
|
|
1932
|
-
/* @__PURE__ */
|
|
2008
|
+
/* @__PURE__ */ jsx35(
|
|
1933
2009
|
"path",
|
|
1934
2010
|
{
|
|
1935
2011
|
fill: "#283593",
|
|
@@ -1947,19 +2023,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1947
2023
|
gradientTransform: "translate(0 -339.89)",
|
|
1948
2024
|
gradientUnits: "userSpaceOnUse",
|
|
1949
2025
|
children: [
|
|
1950
|
-
/* @__PURE__ */
|
|
1951
|
-
/* @__PURE__ */
|
|
2026
|
+
/* @__PURE__ */ jsx35("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
2027
|
+
/* @__PURE__ */ jsx35("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
1952
2028
|
]
|
|
1953
2029
|
}
|
|
1954
2030
|
),
|
|
1955
|
-
/* @__PURE__ */
|
|
2031
|
+
/* @__PURE__ */ jsx35(
|
|
1956
2032
|
"path",
|
|
1957
2033
|
{
|
|
1958
2034
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
1959
2035
|
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"
|
|
1960
2036
|
}
|
|
1961
2037
|
),
|
|
1962
|
-
/* @__PURE__ */
|
|
2038
|
+
/* @__PURE__ */ jsx35(
|
|
1963
2039
|
"path",
|
|
1964
2040
|
{
|
|
1965
2041
|
fill: "#1e88e5",
|
|
@@ -1967,21 +2043,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1967
2043
|
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"
|
|
1968
2044
|
}
|
|
1969
2045
|
),
|
|
1970
|
-
/* @__PURE__ */
|
|
2046
|
+
/* @__PURE__ */ jsx35(
|
|
1971
2047
|
"path",
|
|
1972
2048
|
{
|
|
1973
2049
|
fill: "#00e5ff",
|
|
1974
2050
|
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"
|
|
1975
2051
|
}
|
|
1976
2052
|
),
|
|
1977
|
-
/* @__PURE__ */
|
|
2053
|
+
/* @__PURE__ */ jsx35(
|
|
1978
2054
|
"path",
|
|
1979
2055
|
{
|
|
1980
2056
|
fill: "#1565c0",
|
|
1981
2057
|
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"
|
|
1982
2058
|
}
|
|
1983
2059
|
),
|
|
1984
|
-
/* @__PURE__ */
|
|
2060
|
+
/* @__PURE__ */ jsx35(
|
|
1985
2061
|
"path",
|
|
1986
2062
|
{
|
|
1987
2063
|
fill: "#fff",
|
|
@@ -1998,8 +2074,8 @@ var StandardIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1998
2074
|
viewBox: "0 0 48 48",
|
|
1999
2075
|
className: "w-10 h-10",
|
|
2000
2076
|
children: [
|
|
2001
|
-
/* @__PURE__ */
|
|
2002
|
-
/* @__PURE__ */
|
|
2077
|
+
/* @__PURE__ */ jsx35("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2078
|
+
/* @__PURE__ */ jsx35("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
2003
2079
|
]
|
|
2004
2080
|
}
|
|
2005
2081
|
);
|
|
@@ -2010,23 +2086,23 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2010
2086
|
viewBox: "0 0 48 48",
|
|
2011
2087
|
className: "w-10 h-10",
|
|
2012
2088
|
children: [
|
|
2013
|
-
/* @__PURE__ */
|
|
2089
|
+
/* @__PURE__ */ jsx35(
|
|
2014
2090
|
"path",
|
|
2015
2091
|
{
|
|
2016
2092
|
fill: "#dc4c2c",
|
|
2017
2093
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
2018
2094
|
}
|
|
2019
2095
|
),
|
|
2020
|
-
/* @__PURE__ */
|
|
2021
|
-
/* @__PURE__ */
|
|
2022
|
-
/* @__PURE__ */
|
|
2096
|
+
/* @__PURE__ */ jsx35("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
2097
|
+
/* @__PURE__ */ jsx35("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
2098
|
+
/* @__PURE__ */ jsx35(
|
|
2023
2099
|
"path",
|
|
2024
2100
|
{
|
|
2025
2101
|
fill: "#9b341f",
|
|
2026
2102
|
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"
|
|
2027
2103
|
}
|
|
2028
2104
|
),
|
|
2029
|
-
/* @__PURE__ */
|
|
2105
|
+
/* @__PURE__ */ jsx35(
|
|
2030
2106
|
"path",
|
|
2031
2107
|
{
|
|
2032
2108
|
fill: "#fff",
|
|
@@ -2043,9 +2119,9 @@ var TextIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2043
2119
|
viewBox: "0 0 48 48",
|
|
2044
2120
|
className: "w-10 h-10",
|
|
2045
2121
|
children: [
|
|
2046
|
-
/* @__PURE__ */
|
|
2047
|
-
/* @__PURE__ */
|
|
2048
|
-
/* @__PURE__ */
|
|
2122
|
+
/* @__PURE__ */ jsx35("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2123
|
+
/* @__PURE__ */ jsx35("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
2124
|
+
/* @__PURE__ */ jsx35(
|
|
2049
2125
|
"path",
|
|
2050
2126
|
{
|
|
2051
2127
|
fill: "#1976D2",
|
|
@@ -2065,14 +2141,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2065
2141
|
version: "1.0",
|
|
2066
2142
|
className: "w-10 h-10",
|
|
2067
2143
|
children: [
|
|
2068
|
-
/* @__PURE__ */
|
|
2144
|
+
/* @__PURE__ */ jsx35("defs", { children: /* @__PURE__ */ jsx35("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx35(
|
|
2069
2145
|
"path",
|
|
2070
2146
|
{
|
|
2071
2147
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
2072
2148
|
"clip-rule": "nonzero"
|
|
2073
2149
|
}
|
|
2074
2150
|
) }) }),
|
|
2075
|
-
/* @__PURE__ */
|
|
2151
|
+
/* @__PURE__ */ jsx35("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx35(
|
|
2076
2152
|
"path",
|
|
2077
2153
|
{
|
|
2078
2154
|
fill: "#ff9100",
|
|
@@ -2081,7 +2157,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2081
2157
|
"fill-rule": "nonzero"
|
|
2082
2158
|
}
|
|
2083
2159
|
) }),
|
|
2084
|
-
/* @__PURE__ */
|
|
2160
|
+
/* @__PURE__ */ jsx35(
|
|
2085
2161
|
"path",
|
|
2086
2162
|
{
|
|
2087
2163
|
fill: "#fbe9e7",
|
|
@@ -2090,7 +2166,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2090
2166
|
"fill-rule": "nonzero"
|
|
2091
2167
|
}
|
|
2092
2168
|
),
|
|
2093
|
-
/* @__PURE__ */
|
|
2169
|
+
/* @__PURE__ */ jsx35(
|
|
2094
2170
|
"path",
|
|
2095
2171
|
{
|
|
2096
2172
|
fill: "#ffe0b2",
|
|
@@ -2099,7 +2175,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2099
2175
|
"fill-rule": "nonzero"
|
|
2100
2176
|
}
|
|
2101
2177
|
),
|
|
2102
|
-
/* @__PURE__ */
|
|
2178
|
+
/* @__PURE__ */ jsx35(
|
|
2103
2179
|
"path",
|
|
2104
2180
|
{
|
|
2105
2181
|
fill: "#ffe0b2",
|
|
@@ -2108,7 +2184,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2108
2184
|
"fill-rule": "nonzero"
|
|
2109
2185
|
}
|
|
2110
2186
|
),
|
|
2111
|
-
/* @__PURE__ */
|
|
2187
|
+
/* @__PURE__ */ jsx35(
|
|
2112
2188
|
"path",
|
|
2113
2189
|
{
|
|
2114
2190
|
fill: "#ffe0b2",
|
|
@@ -2183,8 +2259,8 @@ var DocumentNode = (props) => {
|
|
|
2183
2259
|
}
|
|
2184
2260
|
}
|
|
2185
2261
|
if (documents.length === 0) {
|
|
2186
|
-
return /* @__PURE__ */
|
|
2187
|
-
/* @__PURE__ */
|
|
2262
|
+
return /* @__PURE__ */ jsx35(Fragment6, { children: /* @__PURE__ */ jsxs13("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2263
|
+
/* @__PURE__ */ jsx35("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx35(
|
|
2188
2264
|
"svg",
|
|
2189
2265
|
{
|
|
2190
2266
|
className: "w-5 h-5",
|
|
@@ -2192,7 +2268,7 @@ var DocumentNode = (props) => {
|
|
|
2192
2268
|
stroke: "currentColor",
|
|
2193
2269
|
viewBox: "0 0 24 24",
|
|
2194
2270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2195
|
-
children: /* @__PURE__ */
|
|
2271
|
+
children: /* @__PURE__ */ jsx35(
|
|
2196
2272
|
"path",
|
|
2197
2273
|
{
|
|
2198
2274
|
strokeLinecap: "round",
|
|
@@ -2203,11 +2279,11 @@ var DocumentNode = (props) => {
|
|
|
2203
2279
|
)
|
|
2204
2280
|
}
|
|
2205
2281
|
) }),
|
|
2206
|
-
/* @__PURE__ */
|
|
2207
|
-
/* @__PURE__ */
|
|
2282
|
+
/* @__PURE__ */ jsx35("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2283
|
+
/* @__PURE__ */ jsx35("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2208
2284
|
] }) });
|
|
2209
2285
|
}
|
|
2210
|
-
return /* @__PURE__ */
|
|
2286
|
+
return /* @__PURE__ */ jsx35("div", { className: "", children: documents.map((doc, index) => {
|
|
2211
2287
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2212
2288
|
props.assetBaseUrl,
|
|
2213
2289
|
doc.assetUrl
|
|
@@ -2231,8 +2307,8 @@ var DocumentNode = (props) => {
|
|
|
2231
2307
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2232
2308
|
children: [
|
|
2233
2309
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-4", children: [
|
|
2234
|
-
/* @__PURE__ */
|
|
2235
|
-
/* @__PURE__ */
|
|
2310
|
+
/* @__PURE__ */ jsx35("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx35(Icon, {}) }),
|
|
2311
|
+
/* @__PURE__ */ jsx35("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx35("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2236
2312
|
] }),
|
|
2237
2313
|
/* @__PURE__ */ jsxs13(
|
|
2238
2314
|
"a",
|
|
@@ -2250,7 +2326,7 @@ var DocumentNode = (props) => {
|
|
|
2250
2326
|
stroke: "currentColor",
|
|
2251
2327
|
viewBox: "0 0 24 24",
|
|
2252
2328
|
children: [
|
|
2253
|
-
/* @__PURE__ */
|
|
2329
|
+
/* @__PURE__ */ jsx35(
|
|
2254
2330
|
"path",
|
|
2255
2331
|
{
|
|
2256
2332
|
strokeLinecap: "round",
|
|
@@ -2259,7 +2335,7 @@ var DocumentNode = (props) => {
|
|
|
2259
2335
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2260
2336
|
}
|
|
2261
2337
|
),
|
|
2262
|
-
/* @__PURE__ */
|
|
2338
|
+
/* @__PURE__ */ jsx35(
|
|
2263
2339
|
"path",
|
|
2264
2340
|
{
|
|
2265
2341
|
strokeLinecap: "round",
|
|
@@ -2285,13 +2361,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
2285
2361
|
|
|
2286
2362
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2287
2363
|
import dynamic11 from "next/dynamic";
|
|
2288
|
-
import { jsx as
|
|
2364
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2289
2365
|
var IframeClient2 = dynamic11(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
2290
2366
|
ssr: false
|
|
2291
2367
|
});
|
|
2292
2368
|
var GoogleMapNode = (props) => {
|
|
2293
2369
|
let src = props.node.embedUrl;
|
|
2294
|
-
return /* @__PURE__ */
|
|
2370
|
+
return /* @__PURE__ */ jsx36("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx36(
|
|
2295
2371
|
IframeClient2,
|
|
2296
2372
|
{
|
|
2297
2373
|
src,
|
|
@@ -2303,7 +2379,7 @@ var GoogleMapNode = (props) => {
|
|
|
2303
2379
|
var GoogleMapNode_default = GoogleMapNode;
|
|
2304
2380
|
|
|
2305
2381
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2306
|
-
import { jsx as
|
|
2382
|
+
import { jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2307
2383
|
var Pagination = dynamic12(() => import("./Pagination-QBPYDD66.mjs"), { ssr: true });
|
|
2308
2384
|
var DataBindingControls = dynamic12(() => import("./DataBindingControls-Y4JXUDZV.mjs"), {
|
|
2309
2385
|
ssr: true
|
|
@@ -2562,7 +2638,7 @@ var DivContainer = async (props) => {
|
|
|
2562
2638
|
response = await serviceClient.get(endpoint);
|
|
2563
2639
|
result = response?.result;
|
|
2564
2640
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
2565
|
-
return /* @__PURE__ */
|
|
2641
|
+
return /* @__PURE__ */ jsx37(NoDataFound_default, {});
|
|
2566
2642
|
}
|
|
2567
2643
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
2568
2644
|
childCollectionData = getNestedValue6(
|
|
@@ -2582,7 +2658,7 @@ var DivContainer = async (props) => {
|
|
|
2582
2658
|
}
|
|
2583
2659
|
const SelectedNode = NodeTypes2[node.type];
|
|
2584
2660
|
if (!SelectedNode) return null;
|
|
2585
|
-
return /* @__PURE__ */
|
|
2661
|
+
return /* @__PURE__ */ jsx37(React23.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
2586
2662
|
SelectedNode,
|
|
2587
2663
|
{
|
|
2588
2664
|
node,
|
|
@@ -2719,7 +2795,7 @@ var DivContainer = async (props) => {
|
|
|
2719
2795
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
2720
2796
|
);
|
|
2721
2797
|
const WrapperComponent = Wrapper;
|
|
2722
|
-
const renderedContainer = /* @__PURE__ */
|
|
2798
|
+
const renderedContainer = /* @__PURE__ */ jsx37(
|
|
2723
2799
|
WrapperComponent,
|
|
2724
2800
|
{
|
|
2725
2801
|
id: guid,
|
|
@@ -2733,11 +2809,11 @@ var DivContainer = async (props) => {
|
|
|
2733
2809
|
item,
|
|
2734
2810
|
idx,
|
|
2735
2811
|
props.href ? void 0 : item?.links?.view
|
|
2736
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2812
|
+
)?.map((child, i) => /* @__PURE__ */ jsx37(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
2737
2813
|
)
|
|
2738
2814
|
}
|
|
2739
2815
|
);
|
|
2740
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */
|
|
2816
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx37(
|
|
2741
2817
|
Pagination,
|
|
2742
2818
|
{
|
|
2743
2819
|
path: props.path,
|
|
@@ -2746,14 +2822,14 @@ var DivContainer = async (props) => {
|
|
|
2746
2822
|
}
|
|
2747
2823
|
) : null;
|
|
2748
2824
|
return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2749
|
-
/* @__PURE__ */
|
|
2825
|
+
/* @__PURE__ */ jsx37(
|
|
2750
2826
|
"style",
|
|
2751
2827
|
{
|
|
2752
2828
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2753
2829
|
}
|
|
2754
2830
|
),
|
|
2755
2831
|
showDataBindingControls ? /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2756
|
-
/* @__PURE__ */
|
|
2832
|
+
/* @__PURE__ */ jsx37(
|
|
2757
2833
|
DataBindingControls,
|
|
2758
2834
|
{
|
|
2759
2835
|
mode: "toolbar",
|
|
@@ -2775,8 +2851,8 @@ var DivContainer = async (props) => {
|
|
|
2775
2851
|
paginationControl
|
|
2776
2852
|
] }),
|
|
2777
2853
|
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs14("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
2778
|
-
/* @__PURE__ */
|
|
2779
|
-
/* @__PURE__ */
|
|
2854
|
+
/* @__PURE__ */ jsx37("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
2855
|
+
/* @__PURE__ */ jsx37(
|
|
2780
2856
|
DataBindingControls,
|
|
2781
2857
|
{
|
|
2782
2858
|
mode: "facets",
|
|
@@ -2792,14 +2868,14 @@ var DivContainer = async (props) => {
|
|
|
2792
2868
|
)
|
|
2793
2869
|
] }) : /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2794
2870
|
renderedContainer,
|
|
2795
|
-
paginationControl && /* @__PURE__ */
|
|
2871
|
+
paginationControl && /* @__PURE__ */ jsx37("div", { children: paginationControl })
|
|
2796
2872
|
] })
|
|
2797
2873
|
] });
|
|
2798
2874
|
};
|
|
2799
2875
|
var DivContainer_default = DivContainer;
|
|
2800
2876
|
|
|
2801
2877
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2802
|
-
import { jsx as
|
|
2878
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2803
2879
|
var NodeTypes = {
|
|
2804
2880
|
["paragraph"]: ParagraphNode_default,
|
|
2805
2881
|
["heading"]: HeadingNode_default,
|
|
@@ -2837,14 +2913,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2837
2913
|
}
|
|
2838
2914
|
return true;
|
|
2839
2915
|
};
|
|
2840
|
-
return /* @__PURE__ */
|
|
2916
|
+
return /* @__PURE__ */ jsx38(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2841
2917
|
{
|
|
2842
2918
|
}
|
|
2843
2919
|
const SelectedNode = NodeTypes[node.type];
|
|
2844
2920
|
if (!shouldRenderNode(node)) {
|
|
2845
2921
|
return null;
|
|
2846
2922
|
}
|
|
2847
|
-
return /* @__PURE__ */
|
|
2923
|
+
return /* @__PURE__ */ jsx38(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx38(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
|
|
2848
2924
|
SelectedNode,
|
|
2849
2925
|
{
|
|
2850
2926
|
node,
|
|
@@ -2860,7 +2936,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2860
2936
|
device: props.device,
|
|
2861
2937
|
widgetRenderer: props.widgetRenderer
|
|
2862
2938
|
}
|
|
2863
|
-
) }) : /* @__PURE__ */
|
|
2939
|
+
) }) : /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
|
|
2864
2940
|
SelectedNode,
|
|
2865
2941
|
{
|
|
2866
2942
|
node,
|