@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260827034013 → 0.8.1-dev.20260827063633
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 +756 -705
- package/dist/index.mjs +343 -293
- package/dist/server.js +539 -488
- package/dist/server.mjs +192 -142
- package/package.json +1 -1
package/dist/server.mjs
CHANGED
|
@@ -783,23 +783,58 @@ 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/CommentNodeRenderer.tsx
|
|
814
|
+
import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
787
815
|
var TextLeafNode = ({ node }) => {
|
|
788
816
|
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) => {
|
|
817
|
+
if (node.code) content = /* @__PURE__ */ jsx22("code", { className: "comment-node-code", children: content });
|
|
818
|
+
if (node.bold) content = /* @__PURE__ */ jsx22("strong", { children: content });
|
|
819
|
+
if (node.italic) content = /* @__PURE__ */ jsx22("em", { children: content });
|
|
820
|
+
if (node.underline) content = /* @__PURE__ */ jsx22("u", { children: content });
|
|
821
|
+
if (node.strikethrough) content = /* @__PURE__ */ jsx22("s", { children: content });
|
|
822
|
+
return /* @__PURE__ */ jsx22(React15.Fragment, { children: content });
|
|
823
|
+
};
|
|
824
|
+
var renderChildren = (children, keyPrefix, assetBaseUrl) => {
|
|
797
825
|
if (!children || children.length === 0) {
|
|
798
826
|
return null;
|
|
799
827
|
}
|
|
800
828
|
return children.map((child, index) => {
|
|
801
829
|
const childKey = isTextNode(child) ? void 0 : asElementNode(child).id;
|
|
802
|
-
return /* @__PURE__ */
|
|
830
|
+
return /* @__PURE__ */ jsx22(
|
|
831
|
+
CommentNodeRenderer,
|
|
832
|
+
{
|
|
833
|
+
node: child,
|
|
834
|
+
assetBaseUrl
|
|
835
|
+
},
|
|
836
|
+
childKey ?? `${keyPrefix}-${index}`
|
|
837
|
+
);
|
|
803
838
|
});
|
|
804
839
|
};
|
|
805
840
|
var headingLevelFromTag = (tag) => {
|
|
@@ -807,40 +842,42 @@ var headingLevelFromTag = (tag) => {
|
|
|
807
842
|
const parsed = match ? Number(match[0]) : Number(tag);
|
|
808
843
|
return Number.isFinite(parsed) && parsed >= 1 && parsed <= 6 ? parsed : 3;
|
|
809
844
|
};
|
|
810
|
-
var CommentNodeRenderer = ({ node }) => {
|
|
845
|
+
var CommentNodeRenderer = ({ node, assetBaseUrl }) => {
|
|
811
846
|
if (!node || typeof node !== "object") {
|
|
812
847
|
return null;
|
|
813
848
|
}
|
|
814
849
|
if (isTextNode(node)) {
|
|
815
|
-
return /* @__PURE__ */
|
|
850
|
+
return /* @__PURE__ */ jsx22(TextLeafNode, { node });
|
|
816
851
|
}
|
|
817
852
|
const element = asElementNode(node);
|
|
818
853
|
const key = element.id ?? element.type;
|
|
819
854
|
switch (element.type) {
|
|
820
855
|
case "paragraph":
|
|
821
|
-
return /* @__PURE__ */
|
|
856
|
+
return /* @__PURE__ */ jsx22("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key, assetBaseUrl) ?? /* @__PURE__ */ jsx22("br", {}) });
|
|
822
857
|
case "heading": {
|
|
823
858
|
const level = headingLevelFromTag(element.tag ?? element.level);
|
|
824
859
|
const HeadingTag = `h${level}`;
|
|
825
|
-
return /* @__PURE__ */
|
|
860
|
+
return /* @__PURE__ */ jsx22(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
826
861
|
}
|
|
827
862
|
case "list": {
|
|
828
863
|
const ordered = element.listType === "number" || element.ordered === true;
|
|
829
864
|
const ListTag = ordered ? "ol" : "ul";
|
|
830
|
-
return /* @__PURE__ */
|
|
865
|
+
return /* @__PURE__ */ jsx22(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
831
866
|
}
|
|
832
867
|
case "listitem":
|
|
833
868
|
case "list-item":
|
|
834
|
-
return /* @__PURE__ */
|
|
869
|
+
return /* @__PURE__ */ jsx22("li", { className: "comment-node-listitem", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
835
870
|
case "quote":
|
|
836
871
|
case "blockquote":
|
|
837
|
-
return /* @__PURE__ */
|
|
872
|
+
return /* @__PURE__ */ jsx22("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
838
873
|
case "code":
|
|
839
874
|
case "code-block":
|
|
840
|
-
return /* @__PURE__ */
|
|
875
|
+
return /* @__PURE__ */ jsx22("pre", { className: "comment-node-codeblock", children: /* @__PURE__ */ jsx22("code", { children: renderChildren(element.children, key, assetBaseUrl) }) });
|
|
876
|
+
case "image":
|
|
877
|
+
return /* @__PURE__ */ jsx22(CommentImageNode_default, { node: element, assetBaseUrl });
|
|
841
878
|
case "link": {
|
|
842
879
|
const url = typeof element.url === "string" ? element.url : "#";
|
|
843
|
-
return /* @__PURE__ */
|
|
880
|
+
return /* @__PURE__ */ jsx22("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
844
881
|
}
|
|
845
882
|
case "mention": {
|
|
846
883
|
const label = element.label ?? element.mentionName ?? element.text ?? "";
|
|
@@ -851,26 +888,35 @@ var CommentNodeRenderer = ({ node }) => {
|
|
|
851
888
|
}
|
|
852
889
|
case "linebreak":
|
|
853
890
|
case "line-break":
|
|
854
|
-
return /* @__PURE__ */
|
|
891
|
+
return /* @__PURE__ */ jsx22("br", {});
|
|
855
892
|
default:
|
|
856
|
-
return /* @__PURE__ */
|
|
893
|
+
return /* @__PURE__ */ jsx22(React15.Fragment, { children: renderChildren(element.children, key, assetBaseUrl) });
|
|
857
894
|
}
|
|
858
895
|
};
|
|
859
896
|
var CommentNodeRenderer_default = CommentNodeRenderer;
|
|
860
897
|
|
|
861
898
|
// src/components/controls/view/Commentrenderer.tsx
|
|
862
|
-
import { jsx as
|
|
863
|
-
var CommentRenderer = ({ value, className }) => {
|
|
899
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
900
|
+
var CommentRenderer = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
|
|
864
901
|
const nodes = React16.useMemo(() => parseSerializedContent(value), [value]);
|
|
865
902
|
if (!nodes || nodes.length === 0) {
|
|
866
903
|
return null;
|
|
867
904
|
}
|
|
868
|
-
|
|
905
|
+
const resolvedAssetBaseUrl = assetBaseUrl ?? apiBaseUrl;
|
|
906
|
+
console.log(resolvedAssetBaseUrl, "resolvedAssetBaseUrl");
|
|
907
|
+
return /* @__PURE__ */ jsx23("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ jsx23(
|
|
908
|
+
CommentNodeRenderer_default,
|
|
909
|
+
{
|
|
910
|
+
node,
|
|
911
|
+
assetBaseUrl: resolvedAssetBaseUrl
|
|
912
|
+
},
|
|
913
|
+
node.id ?? `comment-node-${index}`
|
|
914
|
+
)) });
|
|
869
915
|
};
|
|
870
916
|
var Commentrenderer_default = CommentRenderer;
|
|
871
917
|
|
|
872
918
|
// src/components/controls/view/ViewControl.tsx
|
|
873
|
-
import { jsx as
|
|
919
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
874
920
|
var ViewControl = (props) => {
|
|
875
921
|
const ControlComponents = {
|
|
876
922
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -901,12 +947,12 @@ var ViewControl = (props) => {
|
|
|
901
947
|
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default
|
|
902
948
|
};
|
|
903
949
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
904
|
-
return /* @__PURE__ */
|
|
950
|
+
return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx24(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
905
951
|
};
|
|
906
952
|
var ViewControl_default = ViewControl;
|
|
907
953
|
|
|
908
954
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
909
|
-
import { jsx as
|
|
955
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
910
956
|
function getNestedProperty(obj, path) {
|
|
911
957
|
if (!obj || !path) return null;
|
|
912
958
|
if (path.includes(".")) {
|
|
@@ -919,7 +965,7 @@ function getNestedProperty(obj, path) {
|
|
|
919
965
|
}
|
|
920
966
|
const value = obj[path];
|
|
921
967
|
if (Array.isArray(value)) {
|
|
922
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
968
|
+
return value.map((item, index) => /* @__PURE__ */ jsx25("div", { children: String(item) }, index));
|
|
923
969
|
}
|
|
924
970
|
return value;
|
|
925
971
|
}
|
|
@@ -982,7 +1028,7 @@ var DatafieldNode = (props) => {
|
|
|
982
1028
|
const dataType = props.node.dataType;
|
|
983
1029
|
if (isEmptyValue) return null;
|
|
984
1030
|
if (dataType === "rawContent") {
|
|
985
|
-
return /* @__PURE__ */
|
|
1031
|
+
return /* @__PURE__ */ jsx25(
|
|
986
1032
|
PageBodyRenderer_default,
|
|
987
1033
|
{
|
|
988
1034
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -998,17 +1044,19 @@ var DatafieldNode = (props) => {
|
|
|
998
1044
|
}
|
|
999
1045
|
);
|
|
1000
1046
|
}
|
|
1001
|
-
return /* @__PURE__ */
|
|
1047
|
+
return /* @__PURE__ */ jsx25(
|
|
1002
1048
|
"span",
|
|
1003
1049
|
{
|
|
1004
1050
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
1005
1051
|
style: styles,
|
|
1006
1052
|
title,
|
|
1007
|
-
children: /* @__PURE__ */
|
|
1053
|
+
children: /* @__PURE__ */ jsx25(
|
|
1008
1054
|
ViewControl_default,
|
|
1009
1055
|
{
|
|
1010
1056
|
controlType: dataType,
|
|
1011
|
-
value: value ?? `@databound[${fieldName}]
|
|
1057
|
+
value: value ?? `@databound[${fieldName}]`,
|
|
1058
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
1059
|
+
assetBaseUrl: props.assetBaseUrl
|
|
1012
1060
|
}
|
|
1013
1061
|
)
|
|
1014
1062
|
}
|
|
@@ -1017,7 +1065,7 @@ var DatafieldNode = (props) => {
|
|
|
1017
1065
|
var DatafieldNode_default = DatafieldNode;
|
|
1018
1066
|
|
|
1019
1067
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
1020
|
-
import { Fragment as Fragment2, jsx as
|
|
1068
|
+
import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1021
1069
|
var ParagraphNode = (props) => {
|
|
1022
1070
|
const NodeTypes2 = {
|
|
1023
1071
|
["text"]: TextNode_default,
|
|
@@ -1037,15 +1085,16 @@ var ParagraphNode = (props) => {
|
|
|
1037
1085
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
1038
1086
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
1039
1087
|
if (isInlineOnlyParent) {
|
|
1040
|
-
return /* @__PURE__ */
|
|
1088
|
+
return /* @__PURE__ */ jsx26(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
1041
1089
|
const SelectedNode = NodeTypes2[node.type];
|
|
1042
|
-
return /* @__PURE__ */
|
|
1090
|
+
return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(
|
|
1043
1091
|
SelectedNode,
|
|
1044
1092
|
{
|
|
1045
1093
|
node,
|
|
1046
1094
|
dataitem: props.dataitem,
|
|
1047
1095
|
session: props.session,
|
|
1048
1096
|
apiBaseUrl: props.apiBaseUrl,
|
|
1097
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
1049
1098
|
routeParameters: props.routeParameters
|
|
1050
1099
|
}
|
|
1051
1100
|
) }, index);
|
|
@@ -1054,25 +1103,26 @@ var ParagraphNode = (props) => {
|
|
|
1054
1103
|
return /* @__PURE__ */ jsxs9("div", { className: " " + formatClasses, children: [
|
|
1055
1104
|
hasChildren && props.node.children.map((node, index) => {
|
|
1056
1105
|
const SelectedNode = NodeTypes2[node.type];
|
|
1057
|
-
return /* @__PURE__ */
|
|
1106
|
+
return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(
|
|
1058
1107
|
SelectedNode,
|
|
1059
1108
|
{
|
|
1060
1109
|
node,
|
|
1061
1110
|
dataitem: props.dataitem,
|
|
1062
1111
|
session: props.session,
|
|
1063
1112
|
apiBaseUrl: props.apiBaseUrl,
|
|
1113
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
1064
1114
|
routeParameters: props.routeParameters
|
|
1065
1115
|
}
|
|
1066
1116
|
) }, index);
|
|
1067
1117
|
}),
|
|
1068
|
-
!hasChildren && /* @__PURE__ */
|
|
1118
|
+
!hasChildren && /* @__PURE__ */ jsx26("div", { className: "py-1.5 lg:py-2" })
|
|
1069
1119
|
] });
|
|
1070
1120
|
};
|
|
1071
1121
|
var ParagraphNode_default = ParagraphNode;
|
|
1072
1122
|
|
|
1073
1123
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
1074
1124
|
import React19 from "react";
|
|
1075
|
-
import { Fragment as Fragment3, jsx as
|
|
1125
|
+
import { Fragment as Fragment3, jsx as jsx27 } from "react/jsx-runtime";
|
|
1076
1126
|
var HeadingNode = (props) => {
|
|
1077
1127
|
const NodeTypes2 = {
|
|
1078
1128
|
["text"]: TextNode_default,
|
|
@@ -1088,12 +1138,12 @@ var HeadingNode = (props) => {
|
|
|
1088
1138
|
{
|
|
1089
1139
|
}
|
|
1090
1140
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
1091
|
-
return /* @__PURE__ */
|
|
1141
|
+
return /* @__PURE__ */ jsx27(Fragment3, { children: React19.createElement(
|
|
1092
1142
|
HeadingTag,
|
|
1093
1143
|
{ className: formatClasses },
|
|
1094
1144
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
1095
1145
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
1096
|
-
return /* @__PURE__ */
|
|
1146
|
+
return /* @__PURE__ */ jsx27(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1097
1147
|
})
|
|
1098
1148
|
) });
|
|
1099
1149
|
};
|
|
@@ -1104,7 +1154,7 @@ import React21 from "react";
|
|
|
1104
1154
|
|
|
1105
1155
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
1106
1156
|
import React20 from "react";
|
|
1107
|
-
import { jsx as
|
|
1157
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1108
1158
|
var ListItemNode = (props) => {
|
|
1109
1159
|
const NodeTypes2 = {
|
|
1110
1160
|
text: TextNode_default,
|
|
@@ -1121,37 +1171,37 @@ var ListItemNode = (props) => {
|
|
|
1121
1171
|
liStyle.fontSize = match[1].trim();
|
|
1122
1172
|
}
|
|
1123
1173
|
}
|
|
1124
|
-
return /* @__PURE__ */
|
|
1174
|
+
return /* @__PURE__ */ jsx28("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
1125
1175
|
const SelectedNode = NodeTypes2[node.type];
|
|
1126
1176
|
if (node.type === "linebreak") {
|
|
1127
1177
|
if (!foundFirstBreak) {
|
|
1128
1178
|
foundFirstBreak = true;
|
|
1129
|
-
return /* @__PURE__ */
|
|
1179
|
+
return /* @__PURE__ */ jsx28("div", {}, index);
|
|
1130
1180
|
} else {
|
|
1131
|
-
return /* @__PURE__ */
|
|
1181
|
+
return /* @__PURE__ */ jsx28("div", { className: "py-1 lg:py-2" }, index);
|
|
1132
1182
|
}
|
|
1133
1183
|
} else {
|
|
1134
1184
|
foundFirstBreak = false;
|
|
1135
|
-
return /* @__PURE__ */
|
|
1185
|
+
return /* @__PURE__ */ jsx28(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1136
1186
|
}
|
|
1137
1187
|
}) });
|
|
1138
1188
|
};
|
|
1139
1189
|
var ListItemNode_default = ListItemNode;
|
|
1140
1190
|
|
|
1141
1191
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1142
|
-
import { jsx as
|
|
1192
|
+
import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1143
1193
|
var ListNode = (props) => {
|
|
1144
1194
|
const NodeTypes2 = {
|
|
1145
1195
|
listitem: ListItemNode_default
|
|
1146
1196
|
};
|
|
1147
1197
|
return /* @__PURE__ */ jsxs10(React21.Fragment, { children: [
|
|
1148
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1198
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx29("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1149
1199
|
const SelectedNode = NodeTypes2[node.type];
|
|
1150
|
-
return /* @__PURE__ */
|
|
1200
|
+
return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1151
1201
|
}) }),
|
|
1152
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1202
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx29("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1153
1203
|
const SelectedNode = NodeTypes2[node.type];
|
|
1154
|
-
return /* @__PURE__ */
|
|
1204
|
+
return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1155
1205
|
}) })
|
|
1156
1206
|
] });
|
|
1157
1207
|
};
|
|
@@ -1159,16 +1209,16 @@ var ListNode_default = ListNode;
|
|
|
1159
1209
|
|
|
1160
1210
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
1161
1211
|
import React22 from "react";
|
|
1162
|
-
import { jsx as
|
|
1212
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1163
1213
|
var QuoteNode = (props) => {
|
|
1164
1214
|
const NodeTypes2 = {
|
|
1165
1215
|
["text"]: TextNode_default,
|
|
1166
1216
|
["linebreak"]: LineBreakNode_default,
|
|
1167
1217
|
["link"]: LinkNode_default
|
|
1168
1218
|
};
|
|
1169
|
-
return /* @__PURE__ */
|
|
1219
|
+
return /* @__PURE__ */ jsx30("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1170
1220
|
const SelectedNode = NodeTypes2[node.type];
|
|
1171
|
-
return /* @__PURE__ */
|
|
1221
|
+
return /* @__PURE__ */ jsx30(React22.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx30(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1172
1222
|
}) });
|
|
1173
1223
|
};
|
|
1174
1224
|
var QuoteNode_default = QuoteNode;
|
|
@@ -1176,11 +1226,11 @@ var QuoteNode_default = QuoteNode;
|
|
|
1176
1226
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1177
1227
|
import React23 from "react";
|
|
1178
1228
|
import dynamic7 from "next/dynamic";
|
|
1179
|
-
import { jsx as
|
|
1229
|
+
import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1180
1230
|
var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
1181
1231
|
ssr: false,
|
|
1182
1232
|
// optional: fallback UI while loading
|
|
1183
|
-
loading: () => /* @__PURE__ */
|
|
1233
|
+
loading: () => /* @__PURE__ */ jsx31("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1184
1234
|
});
|
|
1185
1235
|
var CodeNode = (props) => {
|
|
1186
1236
|
const NodeTypes2 = {
|
|
@@ -1196,12 +1246,12 @@ var CodeNode = (props) => {
|
|
|
1196
1246
|
}).join("") ?? "";
|
|
1197
1247
|
return /* @__PURE__ */ jsxs11("div", { children: [
|
|
1198
1248
|
/* @__PURE__ */ jsxs11("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
1199
|
-
/* @__PURE__ */
|
|
1200
|
-
/* @__PURE__ */
|
|
1249
|
+
/* @__PURE__ */ jsx31("span", { children: "Code Snippet" }),
|
|
1250
|
+
/* @__PURE__ */ jsx31(CopyButton, { text: textContent })
|
|
1201
1251
|
] }),
|
|
1202
|
-
/* @__PURE__ */
|
|
1252
|
+
/* @__PURE__ */ jsx31("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
1253
|
const SelectedNode = NodeTypes2[node.type];
|
|
1204
|
-
return /* @__PURE__ */
|
|
1254
|
+
return /* @__PURE__ */ jsx31(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx31(
|
|
1205
1255
|
SelectedNode,
|
|
1206
1256
|
{
|
|
1207
1257
|
node,
|
|
@@ -1216,15 +1266,15 @@ var CodeNode = (props) => {
|
|
|
1216
1266
|
var CodeNode_default = CodeNode;
|
|
1217
1267
|
|
|
1218
1268
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1219
|
-
import { jsx as
|
|
1269
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1220
1270
|
var HorizontalRuleNode = () => {
|
|
1221
|
-
return /* @__PURE__ */
|
|
1271
|
+
return /* @__PURE__ */ jsx32("hr", {});
|
|
1222
1272
|
};
|
|
1223
1273
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1224
1274
|
|
|
1225
1275
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1226
1276
|
import React24 from "react";
|
|
1227
|
-
import { Fragment as Fragment4, jsx as
|
|
1277
|
+
import { Fragment as Fragment4, jsx as jsx33 } from "react/jsx-runtime";
|
|
1228
1278
|
var WidgetNode = (props) => {
|
|
1229
1279
|
const getWidgetParameters = () => {
|
|
1230
1280
|
const widgetInputParameters = {
|
|
@@ -1288,7 +1338,7 @@ var WidgetNode = (props) => {
|
|
|
1288
1338
|
};
|
|
1289
1339
|
const widgetCode = props.node?.widgetCode;
|
|
1290
1340
|
if (!widgetCode) {
|
|
1291
|
-
return /* @__PURE__ */
|
|
1341
|
+
return /* @__PURE__ */ jsx33(Fragment4, { children: "Invalid widget" });
|
|
1292
1342
|
}
|
|
1293
1343
|
const widgetParams = getWidgetParameters();
|
|
1294
1344
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1297,7 +1347,7 @@ var WidgetNode = (props) => {
|
|
|
1297
1347
|
}
|
|
1298
1348
|
return (
|
|
1299
1349
|
// eslint-disable-next-line react-hooks/static-components
|
|
1300
|
-
/* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ jsx33(React24.Fragment, { children: /* @__PURE__ */ jsx33(
|
|
1301
1351
|
WidgetRenderer,
|
|
1302
1352
|
{
|
|
1303
1353
|
params: widgetParams,
|
|
@@ -1319,7 +1369,7 @@ import React25 from "react";
|
|
|
1319
1369
|
|
|
1320
1370
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1321
1371
|
import dynamic8 from "next/dynamic";
|
|
1322
|
-
import { jsx as
|
|
1372
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1323
1373
|
var IframeClient = dynamic8(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
1324
1374
|
ssr: false
|
|
1325
1375
|
});
|
|
@@ -1332,7 +1382,7 @@ var EmbedNode = (props) => {
|
|
|
1332
1382
|
} else {
|
|
1333
1383
|
src = props.node.embedSrc;
|
|
1334
1384
|
}
|
|
1335
|
-
return /* @__PURE__ */
|
|
1385
|
+
return /* @__PURE__ */ jsx34("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx34(IframeClient, { src }) });
|
|
1336
1386
|
};
|
|
1337
1387
|
var EmbedNode_default = EmbedNode;
|
|
1338
1388
|
|
|
@@ -1525,10 +1575,10 @@ var PathUtility = class {
|
|
|
1525
1575
|
var PathUtility_default = new PathUtility();
|
|
1526
1576
|
|
|
1527
1577
|
// src/components/NoDataFound.tsx
|
|
1528
|
-
import { jsx as
|
|
1578
|
+
import { jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1529
1579
|
var NoDataFound = () => {
|
|
1530
1580
|
return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1531
|
-
/* @__PURE__ */
|
|
1581
|
+
/* @__PURE__ */ jsx35("div", { className: "mb-5", children: /* @__PURE__ */ jsx35("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx35(
|
|
1532
1582
|
"svg",
|
|
1533
1583
|
{
|
|
1534
1584
|
className: "w-10 h-10",
|
|
@@ -1536,7 +1586,7 @@ var NoDataFound = () => {
|
|
|
1536
1586
|
stroke: "currentColor",
|
|
1537
1587
|
viewBox: "0 0 24 24",
|
|
1538
1588
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1539
|
-
children: /* @__PURE__ */
|
|
1589
|
+
children: /* @__PURE__ */ jsx35(
|
|
1540
1590
|
"path",
|
|
1541
1591
|
{
|
|
1542
1592
|
strokeLinecap: "round",
|
|
@@ -1547,15 +1597,15 @@ var NoDataFound = () => {
|
|
|
1547
1597
|
)
|
|
1548
1598
|
}
|
|
1549
1599
|
) }) }),
|
|
1550
|
-
/* @__PURE__ */
|
|
1551
|
-
/* @__PURE__ */
|
|
1600
|
+
/* @__PURE__ */ jsx35("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1601
|
+
/* @__PURE__ */ jsx35("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1552
1602
|
] });
|
|
1553
1603
|
};
|
|
1554
1604
|
var NoDataFound_default = NoDataFound;
|
|
1555
1605
|
|
|
1556
1606
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1557
1607
|
import dynamic9 from "next/dynamic";
|
|
1558
|
-
import { Fragment as Fragment5, jsx as
|
|
1608
|
+
import { Fragment as Fragment5, jsx as jsx36, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1559
1609
|
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-BVS6BVF7.mjs"), { ssr: false });
|
|
1560
1610
|
var deviceToMediaQuery = (device) => {
|
|
1561
1611
|
switch (device) {
|
|
@@ -1712,7 +1762,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1712
1762
|
};
|
|
1713
1763
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1714
1764
|
return /* @__PURE__ */ jsxs13(Fragment5, { children: [
|
|
1715
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1765
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx36(Fragment5, { children: /* @__PURE__ */ jsx36(
|
|
1716
1766
|
HlsPlayer3,
|
|
1717
1767
|
{
|
|
1718
1768
|
sources: hlsSources,
|
|
@@ -1727,7 +1777,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1727
1777
|
styles: hlsStyles
|
|
1728
1778
|
}
|
|
1729
1779
|
) }),
|
|
1730
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1780
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx36(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
|
|
1731
1781
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1732
1782
|
const match = staticSources.find(
|
|
1733
1783
|
(img) => img.device === deviceKey
|
|
@@ -1743,7 +1793,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1743
1793
|
if (!srcUrl) {
|
|
1744
1794
|
return null;
|
|
1745
1795
|
}
|
|
1746
|
-
return /* @__PURE__ */
|
|
1796
|
+
return /* @__PURE__ */ jsx36(
|
|
1747
1797
|
"source",
|
|
1748
1798
|
{
|
|
1749
1799
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1768,7 +1818,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1768
1818
|
if (img.borderRadius) {
|
|
1769
1819
|
styles.borderRadius = img.borderRadius;
|
|
1770
1820
|
}
|
|
1771
|
-
return /* @__PURE__ */
|
|
1821
|
+
return /* @__PURE__ */ jsx36(
|
|
1772
1822
|
"img",
|
|
1773
1823
|
{
|
|
1774
1824
|
loading: "lazy",
|
|
@@ -1783,7 +1833,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1783
1833
|
})()
|
|
1784
1834
|
] }) : (
|
|
1785
1835
|
/* Case 2: Only device-specific images exist */
|
|
1786
|
-
/* @__PURE__ */
|
|
1836
|
+
/* @__PURE__ */ jsx36(Fragment5, { children: staticSources.map((img, index) => {
|
|
1787
1837
|
const resolved = resolveImage(img);
|
|
1788
1838
|
const imageUrl = resolved?.imageUrl;
|
|
1789
1839
|
if (!imageUrl) {
|
|
@@ -1810,7 +1860,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1810
1860
|
default:
|
|
1811
1861
|
display = "block";
|
|
1812
1862
|
}
|
|
1813
|
-
return /* @__PURE__ */
|
|
1863
|
+
return /* @__PURE__ */ jsx36(
|
|
1814
1864
|
"img",
|
|
1815
1865
|
{
|
|
1816
1866
|
loading: "lazy",
|
|
@@ -1950,7 +2000,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1950
2000
|
};
|
|
1951
2001
|
|
|
1952
2002
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1953
|
-
import { Fragment as Fragment6, jsx as
|
|
2003
|
+
import { Fragment as Fragment6, jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1954
2004
|
var getNestedValue5 = (obj, path) => {
|
|
1955
2005
|
if (!obj || !path) return void 0;
|
|
1956
2006
|
return path.split(".").reduce((current, key) => {
|
|
@@ -1964,14 +2014,14 @@ var PdfIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
1964
2014
|
viewBox: "0 0 48 48",
|
|
1965
2015
|
className: "w-10 h-10",
|
|
1966
2016
|
children: [
|
|
1967
|
-
/* @__PURE__ */
|
|
2017
|
+
/* @__PURE__ */ jsx37(
|
|
1968
2018
|
"path",
|
|
1969
2019
|
{
|
|
1970
2020
|
fill: "#e53935",
|
|
1971
2021
|
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
2022
|
}
|
|
1973
2023
|
),
|
|
1974
|
-
/* @__PURE__ */
|
|
2024
|
+
/* @__PURE__ */ jsx37(
|
|
1975
2025
|
"path",
|
|
1976
2026
|
{
|
|
1977
2027
|
fill: "#fff",
|
|
@@ -1988,48 +2038,48 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
1988
2038
|
viewBox: "0 0 48 48",
|
|
1989
2039
|
className: "w-10 h-10",
|
|
1990
2040
|
children: [
|
|
1991
|
-
/* @__PURE__ */
|
|
2041
|
+
/* @__PURE__ */ jsx37(
|
|
1992
2042
|
"path",
|
|
1993
2043
|
{
|
|
1994
2044
|
fill: "#169154",
|
|
1995
2045
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1996
2046
|
}
|
|
1997
2047
|
),
|
|
1998
|
-
/* @__PURE__ */
|
|
2048
|
+
/* @__PURE__ */ jsx37(
|
|
1999
2049
|
"path",
|
|
2000
2050
|
{
|
|
2001
2051
|
fill: "#18482a",
|
|
2002
2052
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
2003
2053
|
}
|
|
2004
2054
|
),
|
|
2005
|
-
/* @__PURE__ */
|
|
2006
|
-
/* @__PURE__ */
|
|
2055
|
+
/* @__PURE__ */ jsx37("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
2056
|
+
/* @__PURE__ */ jsx37("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
2007
2057
|
/* @__PURE__ */ jsxs14("g", { children: [
|
|
2008
|
-
/* @__PURE__ */
|
|
2058
|
+
/* @__PURE__ */ jsx37(
|
|
2009
2059
|
"path",
|
|
2010
2060
|
{
|
|
2011
2061
|
fill: "#29c27f",
|
|
2012
2062
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
2013
2063
|
}
|
|
2014
2064
|
),
|
|
2015
|
-
/* @__PURE__ */
|
|
2065
|
+
/* @__PURE__ */ jsx37(
|
|
2016
2066
|
"path",
|
|
2017
2067
|
{
|
|
2018
2068
|
fill: "#27663f",
|
|
2019
2069
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
2020
2070
|
}
|
|
2021
2071
|
),
|
|
2022
|
-
/* @__PURE__ */
|
|
2023
|
-
/* @__PURE__ */
|
|
2072
|
+
/* @__PURE__ */ jsx37("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
2073
|
+
/* @__PURE__ */ jsx37("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
2024
2074
|
] }),
|
|
2025
|
-
/* @__PURE__ */
|
|
2075
|
+
/* @__PURE__ */ jsx37(
|
|
2026
2076
|
"path",
|
|
2027
2077
|
{
|
|
2028
2078
|
fill: "#0c7238",
|
|
2029
2079
|
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
2080
|
}
|
|
2031
2081
|
),
|
|
2032
|
-
/* @__PURE__ */
|
|
2082
|
+
/* @__PURE__ */ jsx37(
|
|
2033
2083
|
"path",
|
|
2034
2084
|
{
|
|
2035
2085
|
fill: "#fff",
|
|
@@ -2047,7 +2097,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2047
2097
|
className: "w-10 h-10",
|
|
2048
2098
|
baseProfile: "basic",
|
|
2049
2099
|
children: [
|
|
2050
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ jsx37(
|
|
2051
2101
|
"path",
|
|
2052
2102
|
{
|
|
2053
2103
|
fill: "#283593",
|
|
@@ -2065,19 +2115,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2065
2115
|
gradientTransform: "translate(0 -339.89)",
|
|
2066
2116
|
gradientUnits: "userSpaceOnUse",
|
|
2067
2117
|
children: [
|
|
2068
|
-
/* @__PURE__ */
|
|
2069
|
-
/* @__PURE__ */
|
|
2118
|
+
/* @__PURE__ */ jsx37("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
2119
|
+
/* @__PURE__ */ jsx37("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
2070
2120
|
]
|
|
2071
2121
|
}
|
|
2072
2122
|
),
|
|
2073
|
-
/* @__PURE__ */
|
|
2123
|
+
/* @__PURE__ */ jsx37(
|
|
2074
2124
|
"path",
|
|
2075
2125
|
{
|
|
2076
2126
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
2077
2127
|
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
2128
|
}
|
|
2079
2129
|
),
|
|
2080
|
-
/* @__PURE__ */
|
|
2130
|
+
/* @__PURE__ */ jsx37(
|
|
2081
2131
|
"path",
|
|
2082
2132
|
{
|
|
2083
2133
|
fill: "#1e88e5",
|
|
@@ -2085,21 +2135,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2085
2135
|
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
2136
|
}
|
|
2087
2137
|
),
|
|
2088
|
-
/* @__PURE__ */
|
|
2138
|
+
/* @__PURE__ */ jsx37(
|
|
2089
2139
|
"path",
|
|
2090
2140
|
{
|
|
2091
2141
|
fill: "#00e5ff",
|
|
2092
2142
|
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
2143
|
}
|
|
2094
2144
|
),
|
|
2095
|
-
/* @__PURE__ */
|
|
2145
|
+
/* @__PURE__ */ jsx37(
|
|
2096
2146
|
"path",
|
|
2097
2147
|
{
|
|
2098
2148
|
fill: "#1565c0",
|
|
2099
2149
|
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
2150
|
}
|
|
2101
2151
|
),
|
|
2102
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ jsx37(
|
|
2103
2153
|
"path",
|
|
2104
2154
|
{
|
|
2105
2155
|
fill: "#fff",
|
|
@@ -2116,8 +2166,8 @@ var StandardIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2116
2166
|
viewBox: "0 0 48 48",
|
|
2117
2167
|
className: "w-10 h-10",
|
|
2118
2168
|
children: [
|
|
2119
|
-
/* @__PURE__ */
|
|
2120
|
-
/* @__PURE__ */
|
|
2169
|
+
/* @__PURE__ */ jsx37("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2170
|
+
/* @__PURE__ */ jsx37("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
2121
2171
|
]
|
|
2122
2172
|
}
|
|
2123
2173
|
);
|
|
@@ -2128,23 +2178,23 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2128
2178
|
viewBox: "0 0 48 48",
|
|
2129
2179
|
className: "w-10 h-10",
|
|
2130
2180
|
children: [
|
|
2131
|
-
/* @__PURE__ */
|
|
2181
|
+
/* @__PURE__ */ jsx37(
|
|
2132
2182
|
"path",
|
|
2133
2183
|
{
|
|
2134
2184
|
fill: "#dc4c2c",
|
|
2135
2185
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
2136
2186
|
}
|
|
2137
2187
|
),
|
|
2138
|
-
/* @__PURE__ */
|
|
2139
|
-
/* @__PURE__ */
|
|
2140
|
-
/* @__PURE__ */
|
|
2188
|
+
/* @__PURE__ */ jsx37("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
2189
|
+
/* @__PURE__ */ jsx37("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
2190
|
+
/* @__PURE__ */ jsx37(
|
|
2141
2191
|
"path",
|
|
2142
2192
|
{
|
|
2143
2193
|
fill: "#9b341f",
|
|
2144
2194
|
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
2195
|
}
|
|
2146
2196
|
),
|
|
2147
|
-
/* @__PURE__ */
|
|
2197
|
+
/* @__PURE__ */ jsx37(
|
|
2148
2198
|
"path",
|
|
2149
2199
|
{
|
|
2150
2200
|
fill: "#fff",
|
|
@@ -2161,9 +2211,9 @@ var TextIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2161
2211
|
viewBox: "0 0 48 48",
|
|
2162
2212
|
className: "w-10 h-10",
|
|
2163
2213
|
children: [
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
/* @__PURE__ */
|
|
2166
|
-
/* @__PURE__ */
|
|
2214
|
+
/* @__PURE__ */ jsx37("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2215
|
+
/* @__PURE__ */ jsx37("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
2216
|
+
/* @__PURE__ */ jsx37(
|
|
2167
2217
|
"path",
|
|
2168
2218
|
{
|
|
2169
2219
|
fill: "#1976D2",
|
|
@@ -2183,14 +2233,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2183
2233
|
version: "1.0",
|
|
2184
2234
|
className: "w-10 h-10",
|
|
2185
2235
|
children: [
|
|
2186
|
-
/* @__PURE__ */
|
|
2236
|
+
/* @__PURE__ */ jsx37("defs", { children: /* @__PURE__ */ jsx37("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx37(
|
|
2187
2237
|
"path",
|
|
2188
2238
|
{
|
|
2189
2239
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
2190
2240
|
"clip-rule": "nonzero"
|
|
2191
2241
|
}
|
|
2192
2242
|
) }) }),
|
|
2193
|
-
/* @__PURE__ */
|
|
2243
|
+
/* @__PURE__ */ jsx37("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx37(
|
|
2194
2244
|
"path",
|
|
2195
2245
|
{
|
|
2196
2246
|
fill: "#ff9100",
|
|
@@ -2199,7 +2249,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2199
2249
|
"fill-rule": "nonzero"
|
|
2200
2250
|
}
|
|
2201
2251
|
) }),
|
|
2202
|
-
/* @__PURE__ */
|
|
2252
|
+
/* @__PURE__ */ jsx37(
|
|
2203
2253
|
"path",
|
|
2204
2254
|
{
|
|
2205
2255
|
fill: "#fbe9e7",
|
|
@@ -2208,7 +2258,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2208
2258
|
"fill-rule": "nonzero"
|
|
2209
2259
|
}
|
|
2210
2260
|
),
|
|
2211
|
-
/* @__PURE__ */
|
|
2261
|
+
/* @__PURE__ */ jsx37(
|
|
2212
2262
|
"path",
|
|
2213
2263
|
{
|
|
2214
2264
|
fill: "#ffe0b2",
|
|
@@ -2217,7 +2267,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2217
2267
|
"fill-rule": "nonzero"
|
|
2218
2268
|
}
|
|
2219
2269
|
),
|
|
2220
|
-
/* @__PURE__ */
|
|
2270
|
+
/* @__PURE__ */ jsx37(
|
|
2221
2271
|
"path",
|
|
2222
2272
|
{
|
|
2223
2273
|
fill: "#ffe0b2",
|
|
@@ -2226,7 +2276,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2226
2276
|
"fill-rule": "nonzero"
|
|
2227
2277
|
}
|
|
2228
2278
|
),
|
|
2229
|
-
/* @__PURE__ */
|
|
2279
|
+
/* @__PURE__ */ jsx37(
|
|
2230
2280
|
"path",
|
|
2231
2281
|
{
|
|
2232
2282
|
fill: "#ffe0b2",
|
|
@@ -2301,8 +2351,8 @@ var DocumentNode = (props) => {
|
|
|
2301
2351
|
}
|
|
2302
2352
|
}
|
|
2303
2353
|
if (documents.length === 0) {
|
|
2304
|
-
return /* @__PURE__ */
|
|
2305
|
-
/* @__PURE__ */
|
|
2354
|
+
return /* @__PURE__ */ jsx37(Fragment6, { children: /* @__PURE__ */ jsxs14("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2355
|
+
/* @__PURE__ */ jsx37("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx37(
|
|
2306
2356
|
"svg",
|
|
2307
2357
|
{
|
|
2308
2358
|
className: "w-5 h-5",
|
|
@@ -2310,7 +2360,7 @@ var DocumentNode = (props) => {
|
|
|
2310
2360
|
stroke: "currentColor",
|
|
2311
2361
|
viewBox: "0 0 24 24",
|
|
2312
2362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2313
|
-
children: /* @__PURE__ */
|
|
2363
|
+
children: /* @__PURE__ */ jsx37(
|
|
2314
2364
|
"path",
|
|
2315
2365
|
{
|
|
2316
2366
|
strokeLinecap: "round",
|
|
@@ -2321,11 +2371,11 @@ var DocumentNode = (props) => {
|
|
|
2321
2371
|
)
|
|
2322
2372
|
}
|
|
2323
2373
|
) }),
|
|
2324
|
-
/* @__PURE__ */
|
|
2325
|
-
/* @__PURE__ */
|
|
2374
|
+
/* @__PURE__ */ jsx37("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2375
|
+
/* @__PURE__ */ jsx37("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2326
2376
|
] }) });
|
|
2327
2377
|
}
|
|
2328
|
-
return /* @__PURE__ */
|
|
2378
|
+
return /* @__PURE__ */ jsx37("div", { className: "", children: documents.map((doc, index) => {
|
|
2329
2379
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2330
2380
|
props.assetBaseUrl,
|
|
2331
2381
|
doc.assetUrl
|
|
@@ -2349,8 +2399,8 @@ var DocumentNode = (props) => {
|
|
|
2349
2399
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2350
2400
|
children: [
|
|
2351
2401
|
/* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-4", children: [
|
|
2352
|
-
/* @__PURE__ */
|
|
2353
|
-
/* @__PURE__ */
|
|
2402
|
+
/* @__PURE__ */ jsx37("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx37(Icon, {}) }),
|
|
2403
|
+
/* @__PURE__ */ jsx37("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx37("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2354
2404
|
] }),
|
|
2355
2405
|
/* @__PURE__ */ jsxs14(
|
|
2356
2406
|
"a",
|
|
@@ -2368,7 +2418,7 @@ var DocumentNode = (props) => {
|
|
|
2368
2418
|
stroke: "currentColor",
|
|
2369
2419
|
viewBox: "0 0 24 24",
|
|
2370
2420
|
children: [
|
|
2371
|
-
/* @__PURE__ */
|
|
2421
|
+
/* @__PURE__ */ jsx37(
|
|
2372
2422
|
"path",
|
|
2373
2423
|
{
|
|
2374
2424
|
strokeLinecap: "round",
|
|
@@ -2377,7 +2427,7 @@ var DocumentNode = (props) => {
|
|
|
2377
2427
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2378
2428
|
}
|
|
2379
2429
|
),
|
|
2380
|
-
/* @__PURE__ */
|
|
2430
|
+
/* @__PURE__ */ jsx37(
|
|
2381
2431
|
"path",
|
|
2382
2432
|
{
|
|
2383
2433
|
strokeLinecap: "round",
|
|
@@ -2403,13 +2453,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
2403
2453
|
|
|
2404
2454
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2405
2455
|
import dynamic10 from "next/dynamic";
|
|
2406
|
-
import { jsx as
|
|
2456
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2407
2457
|
var IframeClient2 = dynamic10(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
2408
2458
|
ssr: false
|
|
2409
2459
|
});
|
|
2410
2460
|
var GoogleMapNode = (props) => {
|
|
2411
2461
|
let src = props.node.embedUrl;
|
|
2412
|
-
return /* @__PURE__ */
|
|
2462
|
+
return /* @__PURE__ */ jsx38("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx38(
|
|
2413
2463
|
IframeClient2,
|
|
2414
2464
|
{
|
|
2415
2465
|
src,
|
|
@@ -2421,7 +2471,7 @@ var GoogleMapNode = (props) => {
|
|
|
2421
2471
|
var GoogleMapNode_default = GoogleMapNode;
|
|
2422
2472
|
|
|
2423
2473
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2424
|
-
import { jsx as
|
|
2474
|
+
import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2425
2475
|
var Pagination = dynamic11(() => import("./Pagination-QBPYDD66.mjs"), { ssr: true });
|
|
2426
2476
|
var DataBindingControls = dynamic11(() => import("./DataBindingControls-WJAY5HFO.mjs"), {
|
|
2427
2477
|
ssr: true
|
|
@@ -2680,7 +2730,7 @@ var DivContainer = async (props) => {
|
|
|
2680
2730
|
response = await serviceClient.get(endpoint);
|
|
2681
2731
|
result = response?.result;
|
|
2682
2732
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
2683
|
-
return /* @__PURE__ */
|
|
2733
|
+
return /* @__PURE__ */ jsx39(NoDataFound_default, {});
|
|
2684
2734
|
}
|
|
2685
2735
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
2686
2736
|
childCollectionData = getNestedValue6(
|
|
@@ -2700,7 +2750,7 @@ var DivContainer = async (props) => {
|
|
|
2700
2750
|
}
|
|
2701
2751
|
const SelectedNode = NodeTypes2[node.type];
|
|
2702
2752
|
if (!SelectedNode) return null;
|
|
2703
|
-
return /* @__PURE__ */
|
|
2753
|
+
return /* @__PURE__ */ jsx39(React25.Fragment, { children: /* @__PURE__ */ jsx39(
|
|
2704
2754
|
SelectedNode,
|
|
2705
2755
|
{
|
|
2706
2756
|
node,
|
|
@@ -2837,7 +2887,7 @@ var DivContainer = async (props) => {
|
|
|
2837
2887
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
2838
2888
|
);
|
|
2839
2889
|
const WrapperComponent = Wrapper;
|
|
2840
|
-
const renderedContainer = /* @__PURE__ */
|
|
2890
|
+
const renderedContainer = /* @__PURE__ */ jsx39(
|
|
2841
2891
|
WrapperComponent,
|
|
2842
2892
|
{
|
|
2843
2893
|
id: guid,
|
|
@@ -2851,11 +2901,11 @@ var DivContainer = async (props) => {
|
|
|
2851
2901
|
item,
|
|
2852
2902
|
idx,
|
|
2853
2903
|
props.href ? void 0 : item?.links?.view
|
|
2854
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2904
|
+
)?.map((child, i) => /* @__PURE__ */ jsx39(React25.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
|
|
2855
2905
|
)
|
|
2856
2906
|
}
|
|
2857
2907
|
);
|
|
2858
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */
|
|
2908
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx39(
|
|
2859
2909
|
Pagination,
|
|
2860
2910
|
{
|
|
2861
2911
|
path: props.path,
|
|
@@ -2864,14 +2914,14 @@ var DivContainer = async (props) => {
|
|
|
2864
2914
|
}
|
|
2865
2915
|
) : null;
|
|
2866
2916
|
return /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
|
|
2867
|
-
/* @__PURE__ */
|
|
2917
|
+
/* @__PURE__ */ jsx39(
|
|
2868
2918
|
"style",
|
|
2869
2919
|
{
|
|
2870
2920
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2871
2921
|
}
|
|
2872
2922
|
),
|
|
2873
2923
|
showDataBindingControls ? /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
|
|
2874
|
-
/* @__PURE__ */
|
|
2924
|
+
/* @__PURE__ */ jsx39(
|
|
2875
2925
|
DataBindingControls,
|
|
2876
2926
|
{
|
|
2877
2927
|
mode: "toolbar",
|
|
@@ -2893,8 +2943,8 @@ var DivContainer = async (props) => {
|
|
|
2893
2943
|
paginationControl
|
|
2894
2944
|
] }),
|
|
2895
2945
|
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs15("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
2896
|
-
/* @__PURE__ */
|
|
2897
|
-
/* @__PURE__ */
|
|
2946
|
+
/* @__PURE__ */ jsx39("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
2947
|
+
/* @__PURE__ */ jsx39(
|
|
2898
2948
|
DataBindingControls,
|
|
2899
2949
|
{
|
|
2900
2950
|
mode: "facets",
|
|
@@ -2910,14 +2960,14 @@ var DivContainer = async (props) => {
|
|
|
2910
2960
|
)
|
|
2911
2961
|
] }) : /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
|
|
2912
2962
|
renderedContainer,
|
|
2913
|
-
paginationControl && /* @__PURE__ */
|
|
2963
|
+
paginationControl && /* @__PURE__ */ jsx39("div", { children: paginationControl })
|
|
2914
2964
|
] })
|
|
2915
2965
|
] });
|
|
2916
2966
|
};
|
|
2917
2967
|
var DivContainer_default = DivContainer;
|
|
2918
2968
|
|
|
2919
2969
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2920
|
-
import { jsx as
|
|
2970
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2921
2971
|
var NodeTypes = {
|
|
2922
2972
|
["paragraph"]: ParagraphNode_default,
|
|
2923
2973
|
["heading"]: HeadingNode_default,
|
|
@@ -2955,14 +3005,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2955
3005
|
}
|
|
2956
3006
|
return true;
|
|
2957
3007
|
};
|
|
2958
|
-
return /* @__PURE__ */
|
|
3008
|
+
return /* @__PURE__ */ jsx40(React26.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2959
3009
|
{
|
|
2960
3010
|
}
|
|
2961
3011
|
const SelectedNode = NodeTypes[node.type];
|
|
2962
3012
|
if (!shouldRenderNode(node)) {
|
|
2963
3013
|
return null;
|
|
2964
3014
|
}
|
|
2965
|
-
return /* @__PURE__ */
|
|
3015
|
+
return /* @__PURE__ */ jsx40(React26.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx40(React26.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx40(React26.Fragment, { children: /* @__PURE__ */ jsx40(
|
|
2966
3016
|
SelectedNode,
|
|
2967
3017
|
{
|
|
2968
3018
|
node,
|
|
@@ -2978,7 +3028,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2978
3028
|
device: props.device,
|
|
2979
3029
|
widgetRenderer: props.widgetRenderer
|
|
2980
3030
|
}
|
|
2981
|
-
) }) : /* @__PURE__ */
|
|
3031
|
+
) }) : /* @__PURE__ */ jsx40(React26.Fragment, { children: /* @__PURE__ */ jsx40(
|
|
2982
3032
|
SelectedNode,
|
|
2983
3033
|
{
|
|
2984
3034
|
node,
|